/**
 * 页脚高级设计 - 阿斯创
 * Premium Footer Design - ASC
 * 
 * 配色方案：信任蓝 (#1976d2) + 纯白 (#ffffff) + 浅灰 (#fafbfc)
 * 设计理念：现代、专业、高级感
 */

/* ============================================================================
   页脚主体 - 浅灰背景 + 蓝色点缀
   ========================================================================== */

.site-footer {
    background: linear-gradient(180deg, #f5f7f9 0%, #fafbfc 100%);
    border-top: 3px solid #1976d2;
    position: relative;
}

/* 页脚主要内容区域 */
.footer-main {
    padding: 60px 0 40px;
    position: relative;
}

/* 页脚网格布局 */
.footer-widgets {
    display: grid;
    grid-template-columns: 2fr 1fr 1.2fr 1.5fr;
    gap: 40px;
    align-items: start;
}

/* ============================================================================
   公司信息区域 - 品牌展示
   ========================================================================== */

.footer-about {
    padding-right: 20px;
}

.footer-about .footer-widget-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1976d2;
    margin-bottom: 1rem;
    letter-spacing: 0.5px;
    border-bottom: none;
    padding-bottom: 0;
}

.footer-about-content {
    color: #546e7a;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

.footer-about-content p {
    margin: 0;
}

/* 社交媒体图标 - 现代设计 */
.footer-social {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.footer-social .social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #ffffff;
    color: #1976d2;
    border: 2px solid #eceff1;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 18px;
}

.footer-social .social-link .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
}

.footer-social .social-link:hover {
    background: #1976d2;
    color: #ffffff;
    border-color: #1976d2;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(25, 118, 210, 0.3);
}

/* ============================================================================
   页脚标题 - 统一样式
   ========================================================================== */

.footer-widget-title {
    font-size: 1rem;
    font-weight: 700;
    color: #263238;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #1976d2;
    position: relative;
}

.footer-widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: #42a5f5;
}

/* ============================================================================
   产品中心和解决方案 - 链接列表
   ========================================================================== */

.footer-products .footer-menu,
.footer-solutions .footer-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-products .footer-menu li,
.footer-solutions .footer-menu li {
    margin-bottom: 0.75rem;
}

.footer-products .footer-menu a,
.footer-solutions .footer-menu a {
    color: #546e7a;
    text-decoration: none;
    font-size: 0.9375rem;
    display: inline-flex;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
    padding-left: 0;
}

.footer-products .footer-menu a::before,
.footer-solutions .footer-menu a::before {
    content: '→';
    opacity: 0;
    margin-right: 8px;
    color: #1976d2;
    font-weight: 600;
    transition: all 0.3s ease;
    transform: translateX(-10px);
}

.footer-products .footer-menu a:hover,
.footer-solutions .footer-menu a:hover {
    color: #1976d2;
    padding-left: 20px;
}

.footer-products .footer-menu a:hover::before,
.footer-solutions .footer-menu a:hover::before {
    opacity: 1;
    transform: translateX(0);
}

/* 解决方案 - 两列布局 */
.footer-solutions .footer-menu {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1rem;
}

/* ============================================================================
   联系信息 - 图标 + 文字
   ========================================================================== */

.footer-contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 1rem;
    color: #546e7a;
    font-size: 0.9375rem;
    line-height: 1.6;
}

.contact-item:last-child {
    margin-bottom: 0;
}

/* 联系图标 - 无背景简洁样式 */
.contact-icon {
    flex-shrink: 0;
    width: auto;
    height: auto;
    display: inline-block;
    color: #78909c;
    background: none;
    border-radius: 0;
    font-size: 16px;
}

.contact-icon .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
    color: inherit;
}

.contact-text {
    flex: 1;
    color: #546e7a;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item a.contact-text:hover {
    color: #1976d2;
}

/* 在线咨询按钮 - 高级设计 */
.btn-footer-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #1976d2 0%, #42a5f5 100%);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.2);
    border: none;
}

.btn-footer-contact .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
}

.btn-footer-contact:hover {
    background: linear-gradient(135deg, #1565c0 0%, #1976d2 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(25, 118, 210, 0.35);
    color: #ffffff;
}

/* ============================================================================
   页脚底部 - 深色背景
   ========================================================================== */

.footer-bottom {
    background: #263238;
    border-top: 1px solid #37474f;
    padding: 24px 0;
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

/* 版权信息 */
.site-info {
    color: #b0bec5;
    font-size: 0.875rem;
}

.site-info p {
    margin: 0;
    color: #b0bec5;
}

.site-info strong {
    color: #ffffff;
    font-weight: 700;
}

/* 备案信息 */
.footer-icp {
    color: #90a4ae;
    font-size: 0.875rem;
}

.footer-icp a {
    color: #90a4ae;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-icp a:hover {
    color: #ffffff;
}

/* 技术支持 */
.footer-credits {
    color: #78909c;
    font-size: 0.875rem;
}

/* 页脚底部链接 */
.footer-links-bottom {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.875rem;
}

.footer-links-bottom a {
    color: #90a4ae;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links-bottom a:hover {
    color: #ffffff;
}

.footer-links-bottom .separator {
    color: #546e7a;
}
    font-style: italic;
}

/* ============================================================================
   响应式设计
   ========================================================================== */

/* 平板设备 */
@media (max-width: 992px) {
    .footer-widgets {
        grid-template-columns: 1fr 1fr;
        gap: 40px 30px;
    }
    
    .footer-about {
        grid-column: 1 / -1;
        padding-right: 0;
        text-align: center;
    }
    
    .footer-about .footer-widget-title {
        justify-content: center;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-solutions .footer-menu {
        grid-template-columns: 1fr;
    }
}

/* 手机设备 */
@media (max-width: 768px) {
    .footer-main {
        padding: 40px 0 30px;
    }
    
    .footer-widgets {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-about {
        text-align: left;
    }
    
    .footer-about .footer-widget-title {
        font-size: 1.5rem;
    }
    
    .footer-social {
        justify-content: flex-start;
    }
    
    .footer-solutions .footer-menu {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .site-info,
    .footer-icp,
    .footer-credits {
        width: 100%;
    }
}

/* 小手机设备 */
@media (max-width: 480px) {
    .footer-about .footer-widget-title {
        font-size: 1.25rem;
    }
    
    .footer-widget-title {
        font-size: 0.9375rem;
    }
    
    .footer-products .footer-menu a,
    .footer-solutions .footer-menu a,
    .contact-text {
        font-size: 0.875rem;
    }
    
    .btn-footer-contact {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }
    
    .contact-icon {
        width: 32px;
        height: 32px;
    }
    
    .contact-icon .dashicons {
        width: 16px;
        height: 16px;
        font-size: 16px;
    }
}

/* ============================================================================
   打印样式
   ========================================================================== */

@media print {
    .site-footer {
        background: #ffffff !important;
        border-top: 2px solid #000000;
    }
    
    .footer-main {
        padding: 20px 0;
    }
    
    .footer-bottom {
        background: #f5f5f5 !important;
        border-top: 1px solid #cccccc;
    }
    
    .footer-social,
    .btn-footer-contact {
        display: none;
    }
    
    .footer-products .footer-menu a,
    .footer-solutions .footer-menu a,
    .contact-text,
    .site-info,
    .footer-icp a {
        color: #000000 !important;
    }
}

/* ============================================================================
   深色模式支持（可选）
   ========================================================================== */

@media (prefers-color-scheme: dark) {
    /* 如果需要深色模式，可以在这里添加样式 */
}

/* ============================================================================
   动画效果
   ========================================================================== */

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

/* 页脚加载动画 */
.footer-widget-area {
    animation: fadeInUp 0.6s ease-out;
}

.footer-widget-area:nth-child(1) {
    animation-delay: 0.1s;
}

.footer-widget-area:nth-child(2) {
    animation-delay: 0.2s;
}

.footer-widget-area:nth-child(3) {
    animation-delay: 0.3s;
}

.footer-widget-area:nth-child(4) {
    animation-delay: 0.4s;
}

/* ============================================================================
   辅助功能优化
   ========================================================================== */

/* 焦点样式 */
.footer-menu a:focus,
.contact-text:focus,
.btn-footer-contact:focus,
.social-link:focus {
    outline: 2px solid #1976d2;
    outline-offset: 2px;
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
    .footer-products .footer-menu a,
    .footer-solutions .footer-menu a {
        color: #000000;
    }
    
    .footer-products .footer-menu a:hover,
    .footer-solutions .footer-menu a:hover {
        color: #0000ff;
        text-decoration: underline;
    }
}
