/*
===============================================
CCBONLINE Premium Footer Styles v3.0
最后更新: 2025-01-31
设计理念: 现代化·高端·视觉层次清晰
===============================================
*/

/* ============================================
   1. 基础容器与布局
============================================ */

.footer {
    background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
    border-top: 1px solid rgba(251, 191, 36, 0.2);
    color: white;
    position: relative;
    overflow: hidden;
}

/* 装饰性背景渐变 */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 300px;
    background: radial-gradient(ellipse at top, rgba(251, 191, 36, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.footer .container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

/* ============================================
   2. 主内容区域 - 网格布局升级
============================================ */

.footer-content {
    display: grid;
    grid-template-columns: 2.5fr 1.2fr 1.2fr 1.2fr 1.5fr;
    gap: 4rem;
    padding: 4rem 0 3rem;
    align-items: start;
}

/* ============================================
   3. 品牌区域美化
============================================ */

.footer-brand {
    padding-right: 2rem;
}

.footer-logo {
    margin-bottom: 2rem;
    position: relative;
}

.footer-logo-svg {
    width: 260px;
    height: 85px;
    display: block;
    filter: drop-shadow(0 4px 12px rgba(251, 191, 36, 0.15));
    transition: transform 0.3s ease;
}

.footer-logo:hover .footer-logo-svg {
    transform: scale(1.02);
}

/* 品牌描述 - 现代卡片式设计 */
.footer-description {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    color: #cbd5e1;
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.footer-description:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(251, 191, 36, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(251, 191, 36, 0.15);
}

.footer-description strong {
    font-weight: 600;
    position: relative;
}

.footer-description em {
    font-style: normal;
    font-weight: 600;
    color: #fbbf24;
    padding: 0 0.25rem;
    border-radius: 4px;
    background: rgba(251, 191, 36, 0.1);
}

/* 认证徽章 - Premium 设计 */
.footer-certifications {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

.certification-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(147, 51, 234, 0.12) 100%);
    border: 1.5px solid rgba(59, 130, 246, 0.3);
    padding: 0.75rem 1.25rem;
    border-radius: 24px;
    font-size: 0.85rem;
    color: #e0e7ff;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.certification-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.certification-badge:hover::before {
    left: 100%;
}

.certification-badge:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(147, 51, 234, 0.2) 100%);
    border-color: rgba(59, 130, 246, 0.5);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.25);
}

.certification-badge i {
    font-size: 1.1rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* ============================================
   4. 页脚栏目 - 现代化设计
============================================ */

.footer-section h4 {
    color: #fbbf24;
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid transparent;
    border-image: linear-gradient(90deg, #fbbf24, transparent) 1;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: #fbbf24;
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.5);
}

/* 列表样式升级 */
.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-section li {
    position: relative;
    transition: all 0.3s ease;
}

/* 链接样式 - 现代交互 */
.footer-section a {
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    line-height: 1.6;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
}

.footer-section a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 70%;
    background: linear-gradient(90deg, #fbbf24, transparent);
    transition: width 0.3s ease;
    border-radius: 0 4px 4px 0;
}

.footer-section a:hover::before {
    width: 4px;
}

.footer-section a:hover {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.08);
    padding-left: 1.25rem;
    transform: translateX(4px);
}

.footer-section a:focus {
    outline: 2px solid #fbbf24;
    outline-offset: 3px;
    background: rgba(251, 191, 36, 0.12);
}

/* 图标美化 */
.footer-section a i {
    color: rgba(251, 191, 36, 0.7);
    margin-right: 0.85rem;
    font-size: 0.9rem;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.footer-section a:hover i {
    color: #fbbf24;
    transform: scale(1.15) rotate(5deg);
}

/* 高亮链接 - Premium CTA 样式 */
.footer-highlight {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #f97316 100%) !important;
    color: #111827 !important;
    font-weight: 700 !important;
    padding: 0.85rem 1.5rem !important;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(251, 191, 36, 0.35),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.footer-highlight::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    transition: all 0.5s;
}

.footer-highlight:hover::before {
    left: 100%;
}

.footer-highlight:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 50%, #dc2626 100%) !important;
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 8px 24px rgba(251, 191, 36, 0.5),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.footer-highlight i {
    color: #111827 !important;
}

/* ============================================
   5. 联系信息区域 - 豪华设计
============================================ */

.footer-contact {
    border-left: 2px solid rgba(251, 191, 36, 0.2);
    padding-left: 2rem;
    position: relative;
}

.footer-contact::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 0;
    width: 2px;
    height: 60px;
    background: linear-gradient(180deg, #fbbf24, transparent);
    box-shadow: 0 0 8px rgba(251, 191, 36, 0.5);
}

.footer-contact li {
    margin-bottom: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.footer-contact li:hover {
    background: rgba(255, 255, 255, 0.03);
    transform: translateX(4px);
}

.footer-contact i {
    margin-top: 0.25rem;
    width: 20px;
    flex-shrink: 0;
    font-size: 1.1rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.footer-contact a {
    display: inline;
    padding: 0;
    color: #e0e7ff;
    font-weight: 500;
}

.footer-contact a:hover {
    background: none;
    padding: 0;
    color: #fbbf24;
    text-decoration: underline;
    text-decoration-color: rgba(251, 191, 36, 0.5);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

/* 营业时间 - 卡片式设计 */
.business-hours {
    background: rgba(251, 191, 36, 0.05);
    border: 1px solid rgba(251, 191, 36, 0.15);
    border-radius: 12px;
    padding: 1.25rem;
    margin-top: 1.5rem;
}

.business-hours > div:first-child {
    color: #fbbf24;
    font-weight: 700;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.business-hours > div:last-child {
    color: #cbd5e1;
    font-size: 0.9rem;
    line-height: 1.8;
}

.business-hours > div:last-child > div {
    padding: 0.25rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.business-hours > div:last-child > div:last-child {
    border-bottom: none;
    color: #94a3b8;
    font-style: italic;
}

/* ============================================
   6. 页脚底部 - Premium 设计
============================================ */

.footer-bottom {
    border-top: 1px solid rgba(251, 191, 36, 0.15);
    padding: 2.5rem 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.4) 100%);
    backdrop-filter: blur(10px);
}

.footer-bottom-content {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3rem;
    align-items: center;
}

/* 版权信息美化 */
.copyright-section p {
    margin: 0;
    color: #94a3b8;
    font-size: 0.9rem;
    line-height: 1.6;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.copyright-section p i {
    color: #fbbf24;
    font-size: 1rem;
}

.copyright-section small {
    color: #64748b;
    font-size: 0.8rem;
    margin-top: 0.5rem;
    display: block;
    line-height: 1.6;
}

.copyright-section small a {
    color: #3b82f6;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0 0.25rem;
    border-radius: 4px;
}

.copyright-section small a:hover {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
}

/* 法律链接 - 现代圆角设计 */
.footer-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid transparent;
}

.footer-links a:hover {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.1);
    border-color: rgba(251, 191, 36, 0.3);
    transform: translateY(-1px);
}

.footer-links a:focus {
    outline: 2px solid #fbbf24;
    outline-offset: 2px;
}

.footer-links span {
    color: #475569;
}

/* ============================================
   7. 响应式布局优化
============================================ */

/* 平板 (768px - 1024px) */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 3rem;
    }
    
    .footer-contact {
        grid-column: 1 / -1;
        border-left: none;
        border-top: 1px solid rgba(251, 191, 36, 0.2);
        padding-left: 0;
        padding-top: 2.5rem;
        margin-top: 2rem;
    }
    
    .footer-contact::before {
        display: none;
    }
    
    .footer-certifications {
        justify-content: flex-start;
    }
}

/* 移动端 (最大768px) */
@media (max-width: 768px) {
    .footer .container {
        padding: 0 1.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 3rem 0 2rem;
    }
    
    .footer-brand {
        order: 1;
        padding-right: 0;
        text-align: center;
    }
    
    .footer-logo {
        display: flex;
        justify-content: center;
    }
    
    .footer-logo-svg {
        width: 220px;
        height: 75px;
    }
    
    .footer-description {
        text-align: left;
        font-size: 0.85rem;
    }
    
    .footer-certifications {
        justify-content: center;
        gap: 0.75rem;
    }
    
    .certification-badge {
        font-size: 0.8rem;
        padding: 0.6rem 1rem;
    }
    
    .footer-contact {
        order: 2;
        border-left: none;
        border-top: 1px solid rgba(251, 191, 36, 0.2);
        padding-left: 0;
        padding-top: 2rem;
    }
    
    .footer-section {
        order: 3;
    }
    
    .footer-section h4 {
        justify-content: center;
        font-size: 1.05rem;
    }
    
    .footer-bottom-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 1.5rem;
    }
    
    .copyright-section p {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .footer-links {
        justify-content: center;
    }
}

/* 小屏移动端 (最大480px) */
@media (max-width: 480px) {
    .footer-content {
        padding: 2rem 0 1.5rem;
        gap: 2rem;
    }
    
    .footer-logo-svg {
        width: 190px;
        height: 65px;
    }
    
    .footer-description {
        font-size: 0.8rem;
        padding: 1.25rem;
    }
    
    .footer-section h4 {
        font-size: 1rem;
    }
    
    .footer-section a {
        font-size: 0.85rem;
        padding: 0.5rem 0.6rem;
    }
    
    .footer-links a {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
    
    .certification-badge {
        font-size: 0.75rem;
        padding: 0.5rem 0.85rem;
    }
}

/* ============================================
   8. 无障碍与性能优化
============================================ */

/* 高对比度模式 */
@media (prefers-contrast: high) {
    .footer {
        border-top: 3px solid #fbbf24;
    }
    
    .footer-section a {
        border: 1px solid transparent;
    }
    
    .footer-section a:hover,
    .footer-section a:focus {
        border-color: #fbbf24;
        background: rgba(251, 191, 36, 0.2);
    }
}

/* 减动效模式 */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .footer-section li:hover,
    .footer-section a:hover,
    .certification-badge:hover {
        transform: none;
    }
}

/* 打印样式 */
@media print {
    .footer {
        background: white !important;
        color: black !important;
        border-top: 2px solid black;
    }
    
    .footer::before {
        display: none;
    }
    
    .footer-section a {
        color: black !important;
        text-decoration: underline;
    }
    
    .footer-logo-svg {
        filter: grayscale(1);
    }
    
    .certification-badge {
        border-color: black !important;
        background: white !important;
        color: black !important;
    }
}

/* 焦点可见性 */
.footer a:focus-visible {
    outline: 3px solid #fbbf24;
    outline-offset: 3px;
    border-radius: 6px;
}

/* 性能优化 - GPU 加速 */
.footer-logo-svg,
.certification-badge,
.footer-section a {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* ============================================
   9. 微交互动画
============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.footer-section {
    animation: fadeInUp 0.6s ease-out forwards;
}

.footer-section:nth-child(1) { animation-delay: 0.1s; }
.footer-section:nth-child(2) { animation-delay: 0.2s; }
.footer-section:nth-child(3) { animation-delay: 0.3s; }
.footer-section:nth-child(4) { animation-delay: 0.4s; }
.footer-section:nth-child(5) { animation-delay: 0.5s; }

/* Hover 效果仅在支持的设备上启用 */
@media (hover: hover) and (pointer: fine) {
    .footer-section li:hover {
        transform: translateX(2px);
    }
    
    .footer-highlight:hover {
        transform: translateY(-2px) scale(1.02) !important;
    }
    
    .certification-badge:hover {
        transform: translateY(-2px) scale(1.02);
    }
}