/* 全局变量与重置 */
:root {
    --primary: #0D47A1;
    --primary-dark: #0A357A;
    --primary-light: #42A5F5;
    --success: #10B981;
    --bg-light: #F0F5FB;
    --text-dark: #0A1F3D;
    --text-gray: #667085;
    --white: #FFFFFF;
    --border-radius: 12px;
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 24px rgba(13, 71, 161, 0.15);
    --shadow-lg: 0 16px 48px rgba(13, 71, 161, 0.2);
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background: var(--white);
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}
/* 通用按钮样式 */
.btn {
    padding: 10px 24px;
    border: none;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    font-family: inherit;
}
.btn-light {
    background: var(--white);
    color: var(--primary);
    font-weight: 600;
}
.btn-light:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}
.btn-dark {
    background: var(--text-dark);
    color: var(--white);
    font-size: 13px;
    padding: 8px 20px;
}
.btn-dark:hover {
    background: var(--primary);
    animation: btnBounce 0.4s ease;
}
@keyframes btnBounce {
    0% { transform: translateY(0); }
    30% { transform: translateY(-3px); }
    50% { transform: translateY(0); }
    70% { transform: translateY(-3px); }
    100% { transform: translateY(0); }
}
.btn-full {
    width: 100%;
}
.btn-sm {
    padding: 6px 16px;
    font-size: 12px;
}


/* CTA 区 */
.cta {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
    padding: 80px 0;
    text-align: center;
}
.cta h2 {
    font-size: 36px;
    margin-bottom: 20px;
    line-height: 1.3;
}
.cta > .container > p {
    font-size: 15px;
    opacity: 0.9;
    margin-bottom: 32px;
}
.cta-form {
    display: flex;
    gap: 12px;
    max-width: 480px;
    margin: 0 auto 16px;
}
.cta-form input {
    flex: 1;
    padding: 12px 20px;
    border: none;
    border-radius: 24px;
    font-size: 14px;
    outline: none;
    font-family: inherit;
}
.cta-note {
    font-size: 12px;
    opacity: 0.7;
}
/* 页脚 */
.footer {
    background: #0A1F3D;
    color: var(--white);
    padding: 60px 0 0;
}
.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 40px;
}

.logo-img {
    
    height: 40px;
    width: auto;  

}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--white);
    

}

.footer-brand .logo-text {
    color: var(--white);
    
}

.footer-brand .logo {
    
    display: flex; /* 弹性布局 */
    align-items: center; /* 图片、文字垂直居中（同一水平线） */
    gap: 10px; /* 替代margin-left，统一图片文字间距 */
    color: var(--white);
    margin-bottom: 12px;
    height: 40px; /* 和图片高度统一，限制容器高度 */
}


.footer-brand p {
    font-size: 13px;
    opacity: 0.7;
    line-height: 1.7;
}
.footer-col h4 {
    font-size: 14px;
    margin-bottom: 20px;
    font-weight: 600;
}
.footer-col ul {
    list-style: none;
}
.footer-col li {
    font-size: 13px;
    margin-bottom: 10px;
}

/* 强制所有状态链接颜色一致 */
.footer-col a,
.footer-col a:link,
.footer-col a:visited,
.footer-col a:hover,
.footer-col a:active {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: opacity 0.3s ease;
}
.footer-col a:hover {
    opacity: 1;
    color: #ffffff;
}

.social-icons {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}
.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    text-decoration: none;
}
.social-icon img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    transition: all 0.3s ease;
}
.social-icon:hover {
    background: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
/* ICP备案区域 */
.footer-icp {
    margin-top: 16px;
    margin-left: 0;
    padding-left: 0;
}
.footer-icp p {
    color: rgba(255,255,255,0.6);
    font-size: 12px;
    line-height: 1.7;
    margin: 0;
    padding-left: 0;   /* 移除可能的内边距 */
    
}
.icp-icon {
    width: 14px;
    height: 14px;
    margin-right: 6px;
    vertical-align: middle;
    display: inline-block;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    font-size: 12px;
    opacity: 0.6;
}
.footer-bottom .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-links {
    display: flex;
    gap: 24px;
}
.footer-links a {
    color: inherit;
    text-decoration: none;
}
.footer-links a:hover {
    opacity: 1;
}
/* 立即咨询按钮交互 */
.contact-btn {
    transition: all 0.3s ease;
    display: block;
    width: 100%;
    text-align: center;
    background: var(--white);
    color: var(--text-dark);
    text-decoration: none;
}
.contact-btn:hover {
    animation: btnBounce 0.4s ease;
    background: var(--white);
    color: var(--text-dark);
}
.contact-btn:active {
    transform: scale(0.98);
}
/* ========================
   响应式适配：iPad & 手机
   ======================== */
/* --- iPad (768px - 1024px) --- */
@media (max-width: 1024px) {
    .container {
        padding: 0 20px;
    }
   
    /* 页脚 */
    .footer-container {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}
/* --- 手机 (< 768px) --- */
@media (max-width: 768px) {
    .footer-brand .logo {
        /* 让logo容器自身在父容器水平居中 */
        justify-content: center;
    }
    
    .container {
        padding: 0 16px;
    }
    
    /* CTA */
    .cta {
        padding: 60px 0;
    }
    .cta h2 {
        font-size: 28px;
    }
    .cta-form {
        flex-direction: column;
        gap: 12px;
    }
    .cta-form input {
        width: 100%;
    }
    /* 页脚 */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 32px;
        text-align: center;
    }
    .social-icons {
        justify-content: center;
    }
    .footer-bottom .container {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}
/* --- 小屏手机 (< 480px) --- */


/* ========== 二维码弹窗样式 ========== */
.qr-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.qr-modal.active {
    opacity: 1;
    visibility: visible;
}

/* 毛玻璃背景遮罩 */
.qr-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 31, 61, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* 二维码内容区域 */
.qr-content {
    position: relative;
    background: var(--white);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    z-index: 1;
}

.qr-modal.active .qr-content {
    transform: scale(1) translateY(0);
}

/* 关闭按钮 */
.qr-close {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: var(--text-dark);
    color: var(--white);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
    z-index: 2;
}

.qr-close:hover {
    background: var(--primary);
    transform: scale(1.1);
}

/* 二维码图片 */
.qr-image-wrap {
    width: 320px;
    height: 320px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--white);
}

.qr-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    -webkit-touch-callout: default; /* 允许长按保存 */
    user-select: none;
    -webkit-user-select: none;
}

.qr-tip {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-gray);
}

/* --- iPad 适配 (768px - 1024px) --- */
@media (max-width: 1024px) {
    .qr-image-wrap {
        width: 280px;
        height: 280px;
    }
    .qr-content {
        padding: 24px;
    }
}

/* --- 手机适配 (< 768px) --- */
@media (max-width: 768px) {
    .qr-image-wrap {
        width: 240px;
        height: 240px;
    }
    .qr-content {
        padding: 20px;
        border-radius: 12px;
    }
    .qr-close {
        top: -10px;
        right: -10px;
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
    .qr-tip {
        font-size: 12px;
        margin-top: 12px;
    }
}

/* --- 小屏手机 (< 480px) --- */
@media (max-width: 480px) {
    .qr-image-wrap {
        width: 200px;
        height: 200px;
    }
    .qr-content {
        padding: 16px;
    }
}


/* 联系方式中的邮箱和电话颜色 */
.footer-col ul li a[href^="mailto"],
.footer-col ul li a[href^="tel"] {
    color: rgba(255, 255, 255, 0.8);
}
.footer-col ul li a[href^="mailto"]:hover,
.footer-col ul li a[href^="tel"]:hover {
    color: #ffffff;
}