/* ========== 全局变量 ========== */
:root {
    --primary-color: #0a4b8c;
    --primary-light: #1a7bc4;
    --primary-dark: #062e55;
    --bg-color: #f0f4f8;
    --text-color: #1a2332;
    --card-bg: #ffffff;
    --border-color: #dce4ec;
    --shadow: 0 10px 30px rgba(10, 75, 140, 0.15);
    --gradient: linear-gradient(135deg, #0a4b8c, #1a7bc4);
    --nav-bg: rgba(10, 75, 140, 0.95);
}

/* ===== 主题配色 ===== */
.theme-blue {
    --primary-color: #0a4b8c;
    --primary-light: #1a7bc4;
    --primary-dark: #062e55;
    --gradient: linear-gradient(135deg, #0a4b8c, #1a7bc4);
    --nav-bg: rgba(10, 75, 140, 0.95);
}
.theme-dark {
    --primary-color: #1a1a2e;
    --primary-light: #c9a84c;
    --primary-dark: #0d0d1a;
    --bg-color: #0d0d1a;
    --text-color: #e8e6e3;
    --card-bg: #1e1e32;
    --border-color: #333;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    --gradient: linear-gradient(135deg, #1a1a2e, #c9a84c);
    --nav-bg: rgba(26, 26, 46, 0.95);
}
.theme-orange {
    --primary-color: #d35400;
    --primary-light: #e67e22;
    --primary-dark: #a04000;
    --gradient: linear-gradient(135deg, #d35400, #e67e22);
    --nav-bg: rgba(211, 84, 0, 0.95);
}
.theme-green {
    --primary-color: #1a7a5a;
    --primary-light: #27ae60;
    --primary-dark: #0f4c3a;
    --gradient: linear-gradient(135deg, #1a7a5a, #27ae60);
    --nav-bg: rgba(26, 122, 90, 0.95);
}
.theme-purple {
    --primary-color: #4a1a7a;
    --primary-light: #7d3c98;
    --primary-dark: #2e0f4a;
    --gradient: linear-gradient(135deg, #4a1a7a, #7d3c98);
    --nav-bg: rgba(74, 26, 122, 0.95);
}

/* ===== 全局重置 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
body {
    background: var(--bg-color);
    color: var(--text-color);
    transition: all 0.3s ease;
}
a {
    text-decoration: none;
    color: var(--primary-color);
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== 导航栏 ===== */
.navbar {
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: background 0.3s;
}
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
}
.logo {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    flex-shrink: 0;
    letter-spacing: -0.5px;
    line-height: 1;
}
.logo img {
    height: auto;
    max-height: 50px;
    width: auto;
    display: block;
}
.nav-links {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    flex: 1 1 auto;
    margin-left: 20px;
}
.nav-links a {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    transition: 0.3s;
    font-size: 15px;
    white-space: nowrap;
}
.nav-links a:hover {
    color: #fff;
}

/* ===== 页脚 ===== */
.footer {
    background: var(--primary-dark);
    color: rgba(255, 255, 255, 0.7);
    padding: 40px 0 20px;
    margin-top: 60px;
}
.footer .container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}
.footer h4 {
    color: #fff;
    margin-bottom: 12px;
    font-size: 16px;
}
.footer p {
    font-size: 14px;
    line-height: 1.8;
}
.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 20px;
    font-size: 13px;
}

/* ===== 配色切换按钮 ===== */
.theme-switcher {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
    display: flex;
    gap: 8px;
    background: var(--card-bg);
    padding: 10px 14px;
    border-radius: 50px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    flex-wrap: wrap;
    max-width: 200px;
}
.theme-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: 0.3s;
}
.theme-dot:hover {
    transform: scale(1.15);
}
.theme-dot.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.2);
}
.dot-blue {
    background: #0a4b8c;
}
.dot-dark {
    background: #1a1a2e;
}
.dot-orange {
    background: #d35400;
}
.dot-green {
    background: #1a7a5a;
}
.dot-purple {
    background: #4a1a7a;
}

/* ===== 通用卡片 ===== */
.card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: 0.3s;
    margin-bottom: 30px;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}
.btn {
    display: inline-block;
    padding: 12px 32px;
    background: var(--gradient);
    color: #fff;
    border-radius: 30px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: 0.3s;
}
.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(10, 75, 140, 0.3);
}
.section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 16px;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.section-sub {
    font-size: 18px;
    color: var(--text-color);
    opacity: 0.8;
    max-width: 700px;
    line-height: 1.7;
}
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* ===== AI 元素装饰 ===== */
.ai-badge {
    display: inline-block;
    background: rgba(100, 181, 246, 0.15);
    color: var(--primary-light);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: 1px solid rgba(100, 181, 246, 0.2);
}
.hero {
    padding: 60px 0 40px;
    text-align: center;
    background: var(--gradient);
    border-radius: 0 0 40px 40px;
    color: #fff;
    margin-bottom: 40px;
}
.hero h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
}
.hero p {
    font-size: 20px;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto 24px;
    line-height: 1.7;
}
.hero .btn {
    background: #fff;
    color: var(--primary-color);
}
.hero .btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* ===== 轮播图样式 ===== */
.banner-carousel {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 20px auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.banner-slides {
    display: flex;
    transition: transform 0.5s ease;
}
.banner-slide {
    min-width: 100%;
    position: relative;
}
.banner-slide a {
    display: block;
}
.banner-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    display: block;
}
.banner-arrow {
    background: rgba(0,0,0,0.3);
    color: #fff;
    border: none;
    padding: 10px 16px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 24px;
    transition: background 0.3s;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
}
.banner-arrow.prev { left: 10px; }
.banner-arrow.next { right: 10px; }
.banner-arrow:hover {
    background: rgba(0,0,0,0.6);
}
.banner-dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 10;
}
.banner-dots .dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    margin: 0 5px;
    cursor: pointer;
    transition: background 0.3s;
}
.banner-dots .dot.active {
    background: rgba(255,255,255,0.9);
}
.banner-title {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.6);
    font-size: 24px;
    font-weight: bold;
    pointer-events: none;
    padding: 0 20px;
    box-sizing: border-box;
}

/* ===== 响应式（手机端：LOGO居中，导航在下方） ===== */
@media (max-width: 768px) {
    .navbar .container {
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
    }
    .logo {
        font-size: 20px;
        line-height: 1;
        white-space: nowrap;
        flex: 0 0 auto;
        text-align: center;
        order: 1;
        width: 100%;
        padding: 4px 0;
    }
    .logo img {
        max-height: 40px;
        width: auto;
        vertical-align: middle;
    }
    .menu-toggle {
        display: none !important;
    }
    .nav-links {
        display: flex !important;
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 10px 16px;
        order: 2;
        margin-left: 0;
        padding: 4px 0 8px;
        flex: 0 0 100%;
        background: transparent;
    }
    .nav-links a {
        font-size: 15px;
        padding: 4px 0;
        white-space: nowrap;
    }
    .hero h1 {
        font-size: 32px;
    }
    .hero p {
        font-size: 16px;
    }
    .section-title {
        font-size: 28px;
    }
    .theme-switcher {
        bottom: 16px;
        right: 16px;
        padding: 8px 12px;
    }
    .theme-dot {
        width: 22px;
        height: 22px;
    }
    .banner-slide img {
        height: auto !important;
        aspect-ratio: 16 / 9;
        max-height: 300px;
        object-fit: cover !important;
        width: 100% !important;
        display: block !important;
    }
    .banner-arrow {
        font-size: 18px;
        padding: 6px 12px;
    }
    .banner-title {
        font-size: 16px;
        bottom: 20px;
        padding: 0 10px;
    }
    .banner-dots .dot {
        width: 10px;
        height: 10px;
        margin: 0 4px;
    }
}

/* ===== 轮播图强制修复（防止PC变形） ===== */
.banner-carousel {
    display: block !important;
    width: 100% !important;
    min-height: 200px !important;
}
.banner-slides {
    display: flex !important;
    width: 100% !important;
}
.banner-slide {
    flex: 0 0 100% !important;
    min-width: 100% !important;
}
.banner-slide img {
    width: 100% !important;
    height: 400px !important;
    object-fit: cover !important;
    display: block !important;
}
@media (max-width: 768px) {
    .banner-slide img {
        height: auto !important;
        aspect-ratio: 16 / 9 !important;
        max-height: 300px !important;
    }
}

/* ===== 在线浮窗 & 返回顶部 ===== */
#contactFloat a {
    transition: transform 0.3s;
}
#contactFloat a:hover {
    transform: scale(1.05);
}
#backTop {
    transition: opacity 0.3s;
}
#backTop:hover {
    opacity: 0.8;
}

/* ===== 汉堡菜单（移动端已弃用） ===== */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
}

/* ===== 微信弹窗 ===== */
#wechatModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}
#wechatModal > div {
    background: #fff;
    padding: 30px 20px;
    border-radius: 16px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}
#wechatModal .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #888;
}
#wechatModal .close-btn:hover {
    color: #333;
}
#wechatModal img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
@media (max-width: 480px) {
    #wechatModal > div {
        padding: 20px 15px;
    }
}

/* ===== 招商页面样式 ===== */
.zhaoshang-hero {
    background: linear-gradient(135deg, #0a4b8c, #1a7bc4);
    padding: 60px 0 50px;
    text-align: center;
    color: #fff;
    border-radius: 0 0 40px 40px;
    margin-bottom: 40px;
}
.zhaoshang-hero h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 16px;
}
.zhaoshang-hero p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.8;
}
.zhaoshang-hero .highlight {
    color: #f39c12;
}
.partner-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 40px 0;
}
.partner-card {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 35px 30px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: 0.3s;
}
.partner-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}
.partner-card .icon {
    font-size: 48px;
    margin-bottom: 12px;
}
.partner-card h2 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 12px;
}
.partner-card ul {
    list-style: none;
    padding: 0;
    margin: 16px 0;
}
.partner-card ul li {
    padding: 6px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
    line-height: 1.6;
}
.partner-card ul li:last-child {
    border-bottom: none;
}
.partner-card .btn {
    margin-top: 12px;
}
.advantage-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
}
.advantage-item {
    text-align: center;
    padding: 20px;
    background: var(--card-bg);
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}
.advantage-item .num {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-color);
}
.advantage-item p {
    margin-top: 6px;
    font-size: 14px;
    opacity: 0.8;
}
@media (max-width: 768px) {
    .partner-grid {
        grid-template-columns: 1fr;
    }
    .zhaoshang-hero h1 {
        font-size: 28px;
    }
    .zhaoshang-hero p {
        font-size: 16px;
    }
}