﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}

body {
    background: #f5f9fe;
    line-height: 1.5;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 头部 (增加会员/登录/溯源/地区) */
.top-bar {
    background: #ffffff;
    padding: 0.8rem 0;
    border-bottom: 1px solid #e0ecf9;
}

    .top-bar .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
        gap: 15px;
    }

.logo-area {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: #0e4b7a;
    letter-spacing: 1px;
}

    .logo span {
        color: #2a9d8f;
        font-weight: 400;
    }

.slogan {
    background: #ecf5fd;
    padding: 0.4rem 1.2rem;
    border-radius: 40px;
    color: #1f6193;
    font-size: 0.9rem;
}

/* 用户操作栏：会员/登录/溯源/地区 */
.user-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.user-link {
    display: flex;
    align-items: center;
    gap: 5px;
    background: #f1f8ff;
    padding: 0.4rem 1.2rem;
    border-radius: 40px;
    color: #2c6b9e;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: 0.1s;
}

    .user-link i {
        font-size: 1rem;
    }

    .user-link:hover, .user-link.active {
        background: #dbeafe;
    }

.region-selector {
    background: white;
    border: 1.5px solid #cde0f2;
    border-radius: 40px;
    padding: 0.4rem 1.2rem;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #1d5587;
    cursor: pointer;
}

    .region-selector i {
        color: #3079b5;
    }

/* 导航主菜单 (带下拉) */
.nav-bar {
    background: #c1d2a8;
    box-shadow: 0 6px 18px rgba(0,40,70,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-menu {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 4px;
    padding: 0.8rem 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0.7rem 1.2rem;
    border-radius: 50px;
    color: #174771;
    font-weight: 500;
    text-decoration: none;
    transition: 0.15s;
    cursor: pointer;
}

    .nav-link i {
        color: #3079b5;
        font-size: 0.9rem;
    }

    .nav-link:hover, .nav-link.active {
        background: #88c135;
        color: #fff;
    }

.dropdown-icon {
    font-size: 0.7rem;
    margin-left: 4px;
}

/* 下拉菜单面板 */
.dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: white;
    border-radius: 28px;
    box-shadow: 0 16px 34px rgba(0,40,80,0.18);
    padding: 1rem 0.6rem;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: 0.2s;
    border: 1px solid #d9e9fc;
    z-index: 200;
}

.nav-item:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.8rem 1.4rem;
    border-radius: 40px;
    color: #154e7c;
    text-decoration: none;
    transition: 0.1s;
    font-weight: 500;
}

    .dropdown-item i {
        width: 22px;
        color: #1e6bb8;
    }

    .dropdown-item:hover {
        background: #ecf5ff;
    }




/* 底部辅助栏目 */
.footer-links {
    background: white;
    border-radius: 10px 10px 0 0;
    padding: 2.5rem 2rem;
    margin-top: 4rem;
    box-shadow: 0 -6px 20px rgba(0,20,40,0.04);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 30px;
}

.footer-col h5 {
    color: #1a4e7a;
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.7rem;
}

.footer-col a {
    text-decoration: none;
    color: #3d6893;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .footer-col a:hover {
        color: #1d7abd;
    }

.copyright {
    text-align: center;
    padding: 1.5rem 0 1rem;
    color: #51769e;
    border-top: 1px solid #dce9f7;
    margin-top: 2rem;
}

.online-chat {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #1d7abd;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 8px 20px rgba(23,95,170,0.4);
    cursor: pointer;
    transition: 0.2s;
    z-index: 99;
}

    .online-chat:hover {
        background: #0f5990;
        transform: scale(1.05);
    }

hr {
    border: 1px solid #d9e8f8;
    margin: 2rem 0;
}

@media (max-width: 800px) {
    .enterprise-showcase {
        grid-template-columns: 1fr;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }
}



/* ========== 客服中心侧边条与弹窗样式 ========== */
/* 侧边客服按钮 */
.cs-sidebar {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #2c7a6b;
    color: #fff;
    padding: 14px 10px;
    border-radius: 16px 0 0 16px;
    cursor: pointer;
    box-shadow: -4px 4px 18px rgba(0,0,0,0.18);
    transition: all 0.3s ease;
    writing-mode: horizontal-tb;
}

    .cs-sidebar:hover {
        background: #1e5c4e;
        padding-right: 14px;
    }

    .cs-sidebar .cs-icon {
        font-size: 32px;
        margin-bottom: 6px;
    }

    .cs-sidebar .cs-text {
        font-size: 16px;
        font-weight: 600;
        letter-spacing: 0.06em;
        writing-mode: vertical-rl;
        text-orientation: upright;
    }

    .cs-sidebar .cs-badge {
        position: absolute;
        top: -6px;
        right: -6px;
        background: #e74c3c;
        color: #fff;
        border-radius: 50%;
        width: 20px;
        height: 20px;
        font-size: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    }
/* 遮罩 */
.cs-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

    .cs-overlay.active {
        opacity: 1;
        visibility: visible;
    }
/* 弹窗 */
.cs-panel {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 420px;
    height: 560px;
    max-width: calc(100vw - 30px);
    max-height: calc(100vh - 40px);
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    opacity: 0;
    visibility: hidden;
    transform: translateY(30px) scale(0.95);
    transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease;
    overflow: hidden;
}

    .cs-panel.active {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }
/* 弹窗头部 */
.cs-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #2c7a6b;
    color: #fff;
    cursor: move;
    user-select: none;
    border-radius: 20px 20px 0 0;
}

    .cs-panel-header h3 {
        font-size: 20px;
        font-weight: 600;
        letter-spacing: 0.04em;
    }

.cs-panel-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 0 6px;
    transition: transform 0.2s;
}

    .cs-panel-close:hover {
        transform: scale(1.2);
    }
/* iframe容器 */
.cs-iframe-wrapper {
    flex: 1;
    width: 100%;
    border: none;
    background: #f9f9f9;
}

    .cs-iframe-wrapper iframe {
        width: 100%;
        height: 100%;
        border: none;
    }

/* 移动端适配 */
/*@media (max-width: 480px) {
    .cs-sidebar {
        padding: 10px 6px;
    }

        .cs-sidebar .cs-icon {
            font-size: 26px;
        }

        .cs-sidebar .cs-text {
            font-size: 14px;
        }

    .cs-panel {
        right: 0;
        bottom: 0;
        width: 100%;
        height: 70vh;
        border-radius: 20px 20px 0 0;
    }

    .cs-panel-header {
        border-radius: 20px 20px 0 0;
    }
}*/

/* 原有响应式微调 */
/*@media (max-width: 480px) {
    :root {
        --base-font-size: 20px;
        --h1-size: 36px;
        --h2-size: 27px;
        --h4-size: 22px;
        --body-size: 18px;
        --data-value-size: 28px;
    }

    .main-container {
        max-width: 100%;
        padding: 0 16px 40px;
    }

    .hero {
        padding: 36px 20px 32px;
    }

    .card {
        padding: 24px 20px;
    }

    .three-layer-visual .layer {
        font-size: 16px;
        padding: 12px 16px;
    }

    .timeline {
        padding-left: 42px;
    }

        .timeline::before {
            left: 16px;
        }

    .timeline-step::before {
        left: -33px;
        width: 14px;
        height: 14px;
        top: 24px;
    }

    .compare-wrapper {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .data-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
}

@media (min-width: 481px) and (max-width: 680px) {
    .main-container {
        max-width: 640px;
    }

    .compare-wrapper {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 681px) {
    .main-container {
        max-width: 720px;
    }

    .data-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}*/