/* 页脚组件样式 */

/* 页脚 */
.footer {
    background: rgba(255, 255, 255, 0.9);
    margin-top: 60px;
    border-top: 1px solid #f0f0f0;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.footer-main {
    padding: 40px 0;
    width: 100%;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 100px;
    align-items: start;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    width: 100%;
    box-sizing: border-box;
}

/* 左侧品牌区域 */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.footer-brand .desktop-download {
    margin-top: 20px;
}

.brand-info .footer-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.footer-logo .logo-icon {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: white;
    border-radius: var(--border-radius-small);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}

.footer-logo .logo-text {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
}

.brand-description {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 14px;
    max-width: 280px;
}

/* 二维码区域 */
.qr-download {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.qr-code {
    width: 80px;
    height: 80px;
    position: relative;
}

.qr-placeholder {
    width: 100%;
    height: 100%;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius-small);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.qr-logo {
    width: 24px;
    height: 24px;
    background: var(--primary-color);
    color: white;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    z-index: 2;
}

.qr-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(0deg, #ddd, #ddd 2px, transparent 2px, transparent 8px),
        repeating-linear-gradient(90deg, #ddd, #ddd 2px, transparent 2px, transparent 8px);
    opacity: 0.3;
}

.qr-text {
    font-size: 14px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* 下载区域 */
.desktop-download {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    align-items: center;
}

/* 二维码下载按钮 */
.qr-download-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--animation-speed);
    min-width: 140px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.qr-download-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.qr-download-btn .qr-code {
    width: 80px;
    height: 80px;
}

.qr-download-btn .qr-text {
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}

.desktop-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #e0e0e0;
    border-radius: var(--border-radius);
    text-decoration: none;
    color: var(--text-primary);
    transition: all var(--animation-speed);
    min-width: 140px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.desktop-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.desktop-icon {
    font-size: 3rem;
}

.desktop-icon img,
.qr-icon img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.desktop-btn span {
    font-weight: 500;
    font-size: 14px;
    text-align: center;
}

/* 右侧链接区域 */
.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}

.link-column h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.link-column ul {
    list-style: none;
    padding: 0;
}

.link-column ul li {
    margin-bottom: 8px;
}

.link-column ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color var(--animation-speed);
    white-space: nowrap;
}

.link-column ul li a:hover {
    color: var(--primary-color);
}

.contact-info {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.contact-info p {
    margin-bottom: 12px;
}

.contact-info p:first-child,
.contact-info p:last-child {
    white-space: nowrap;
}

.contact-info strong {
    color: var(--text-primary);
}

/* 底部版权区域 */
.footer-bottom {
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    padding: 20px 0;
    width: 100%;
}

.copyright-info {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.copyright-info p {
    color: var(--text-light);
    font-size: 12px;
    margin-bottom: 8px;
    line-height: 1.4;
}

.icp-info {
    margin-left: 20px;
}

.business-license {
    font-size: 11px !important;
    color: #999 !important;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-brand {
        text-align: center;
        gap: 20px;
    }
    
    .brand-description {
        max-width: none;
        text-align: center;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: left;
    }
    
    .link-column {
        text-align: center;
    }
    
    .contact-info {
        text-align: center;
    }
    
    .desktop-download {
        grid-template-columns: 1fr;
        gap: 16px;
        justify-items: center;
    }
    
    .qr-download-btn .qr-code {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 480px) {
    .footer-content {
        padding: 0 16px;
        gap: 30px;
    }
    
    .footer-links {
        gap: 20px;
    }
    
    .desktop-btn, .qr-download-btn {
        min-width: 120px;
        padding: 16px 24px;
    }
    
    .desktop-download {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .qr-download-btn .qr-code {
        width: 80px;
        height: 80px;
    }
    
    .copyright-info {
        padding: 0 16px;
    }
    
    .copyright-info p {
        font-size: 11px;
    }
    
    .business-license {
        font-size: 10px !important;
    }
}
