/* TIR 国际物流认证标识样式 */

/* 头部认证标识 */
.tir-header-badge {
    position: fixed;
    right: 20px;
    top: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    padding: 8px 15px;
    border-radius: 25px;
    border: 2px solid #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.tir-header-badge:hover {
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.4);
    transform: scale(1.05);
}

.tir-header-badge img {
    width: 40px;
    height: 40px;
}

.tir-badge-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tir-badge-text .title {
    font-size: 14px;
    font-weight: bold;
    color: #1e40af;
    line-height: 1;
}

.tir-badge-text .subtitle {
    font-size: 11px;
    color: #3b82f6;
    line-height: 1;
}

/* 头部小认证图标组 */
.tir-mini-badges {
    display: flex;
    gap: 8px;
    align-items: center;
}

.tir-mini-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    background: white;
    padding: 6px 8px;
    border-radius: 8px;
    border: 1.5px solid #e5e7eb;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.tir-mini-badge:hover {
    border-color: #3b82f6;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
    transform: translateY(-2px);
}

.tir-mini-badge img {
    width: 30px;
    height: 30px;
}

.tir-mini-badge .mini-text {
    font-size: 9px;
    color: #6b7280;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
    white-space: nowrap;
}

/* 页脚认证区域 */
.footer-certifications {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    padding: 20px 0;
    border-top: 1px solid #e5e7eb;
    margin-top: 20px;
}

.cert-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s ease;
}

.cert-item:hover {
    transform: translateY(-3px);
}

.cert-item img {
    width: 60px;
    height: 60px;
}

.cert-item .cert-name {
    font-size: 12px;
    color: #374151;
    font-weight: 500;
    text-align: center;
}

/* TIR 浮动徽章（右下角） */
.tir-floating-badge {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    background: white;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    cursor: pointer;
}

.tir-floating-badge:hover {
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
    transform: scale(1.05);
}

.tir-floating-badge img {
    width: 50px;
    height: 50px;
}

.tir-floating-badge .badge-text {
    font-size: 10px;
    color: #1e40af;
    font-weight: 600;
    text-align: center;
    line-height: 1.2;
}

/* 认证信息弹窗 */
.tir-info-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
}

.tir-info-modal.active {
    display: block;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -45%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

.modal-overlay.active {
    display: block;
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e7eb;
}

.modal-header img {
    width: 60px;
    height: 60px;
}

.modal-header h3 {
    font-size: 20px;
    color: #1e40af;
    margin: 0;
}

.modal-content {
    color: #374151;
    line-height: 1.8;
}

.modal-content h4 {
    color: #1e40af;
    margin-top: 15px;
    margin-bottom: 10px;
    font-size: 16px;
}

.modal-content ul {
    margin: 10px 0;
    padding-left: 20px;
}

.modal-content li {
    margin: 5px 0;
}

.modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    width: 30px;
    height: 30px;
    border: none;
    background: #f3f4f6;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    color: #6b7280;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #e5e7eb;
    color: #1f2937;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .tir-header-badge {
        position: static;
        transform: none;
        margin: 10px auto;
        width: fit-content;
    }
    
    .tir-floating-badge {
        right: 10px;
        bottom: 80px;
    }
    
    .footer-certifications {
        flex-wrap: wrap;
        gap: 20px;
    }
}
