/* ================= 基础 ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    background-color: #ffffff;
    color: #333333;
    overflow-x: hidden;
}

/* ================= 顶部 Header ================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    z-index: 1000;
    transition: transform .45s ease;
}
header.header-hidden { transform: translateY(-100%); }

.header-left {
    display: flex;
    align-items: center;
    gap: 60px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo-icon {
    width: 28px;
    height: 28px;
    background: #e60012;
    clip-path: polygon(50% 0%, 100% 100%, 0% 100%);
}

.logo-text {
    font-size: 22px;
    font-weight: 900;
    color: #e60012;
}

nav.main-nav {
    display: flex;
    gap: 28px;
}

nav.main-nav a {
    text-decoration: none;
    color: #050505;
    font-size: 17px;
    font-weight: 500;
}

/* ================= 导航下拉：Mega 全宽面板 / 单项下拉列 ================= */
.nav-item { position: relative; }
.nav-item > a {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 64px;
    text-decoration: none;
    color: #050505;
    font-size: 17px;
    font-weight: 500;
}
.nav-item > a i { font-size: 12px; color: #999; transition: transform .25s; }
.nav-item:hover > a i { transform: rotate(180deg); }
.mega-panel, .drop-panel {
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.nav-item:hover .mega-panel,
.nav-item:hover .drop-panel {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}
.mega-panel {
    position: fixed;
    left: 0;
    top: 64px;
    width: 100%;
    background: #ffffff;
    box-shadow: 0 14px 24px rgba(0,0,0,0.08);
    border-top: 1px solid #f0f0f0;
}
.mega-inner {
    max-width: 1500px;
    margin: 0 auto;
    padding: 36px 40px 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}
.main-nav .mega-col h4 { font-size: 15px; color: #e60012; font-weight: 700; margin-bottom: 12px; letter-spacing: .5px; }
.main-nav .mega-thumb { width: 120px; height: 64px; object-fit: cover; display: block; margin-bottom: 12px; }
.main-nav .mega-col a { display: block; font-size: 14px; color: #555; padding: 7px 0; text-decoration: none; }
.main-nav .mega-col a:hover { color: #e60012; }
.drop-panel {
    position: absolute;
    top: 64px;
    left: 0;
    min-width: 210px;
    background: #ffffff;
    box-shadow: 0 14px 24px rgba(0,0,0,0.08);
    padding: 12px 0;
}
.main-nav .drop-panel a {
    display: block;
    padding: 9px 22px;
    font-size: 14px;
    color: #444;
    font-weight: 500;
    text-decoration: none;
}
.main-nav .drop-panel a:hover { background: #f5f5f5; color: #e60012; }

.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.btn-inquiry-top {
    background: #e60012;
    color: #ffffff;
    padding: 8px 18px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 2px;
}

/* ================= 通用工具 ================= */
.btn-red {
    background-color: #e60012;
    color: #ffffff;
    text-align: center;
    padding: 12px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 2px;
}

.btn-gray {
    background-color: #e8e8e8;
    color: #333333;
    text-align: center;
    padding: 12px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 2px;
}

.g3-accent {
    width: 52px;
    height: 3px;
    background: #e60012;
    margin-bottom: 24px;
}

/* 主内容区域，居中显示 */
.main-container {
    max-width: 1500px;
    margin: 60px auto;
    padding: 0 40px;
}

/* 通用板块标题 */
.section { margin: 90px 0 0; }
.section-head { text-align: center; margin-bottom: 44px; }
.section-head .g3-accent { margin: 0 auto 18px; }
.section-title { font-size: 36px; font-weight: 800; color: #303030; line-height: 1.2; }
.section-sub { color: #7e8694; margin-top: 12px; }

/* 滚入淡入 */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ================= 右侧固定侧边栏 ================= */
.sidebar-fixed {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    box-shadow: -2px 0 12px rgba(0,0,0,0.1);
    z-index: 999;
    width: 72px;
}

.sidebar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 68px;
    text-decoration: none;
    color: #666666;
    font-size: 13px;
    border-bottom: 1px solid #f0f0f0;
    gap: 6px;
}

.sidebar-item i {
    font-size: 20px;
}

.sidebar-item.red-top {
    background-color: #e60012;
    color: #ffffff;
}

/* ================= 页脚（亮色） ================= */
footer.site-footer {
    background: #f0f1f3;
    color: #666666;
    padding: 60px 40px 0;
    margin-top: 90px;
}
.footer-grid {
    max-width: 1500px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2.2fr 1fr 1fr 1.5fr;
    gap: 48px;
    padding-bottom: 48px;
}
.footer-brand .logo-text { color: #e60012; }
.footer-brand p { font-size: 13px; line-height: 1.85; margin-top: 16px; max-width: 340px; color: #777777; }
.footer-social { display: flex; gap: 14px; margin-top: 20px; }
.footer-social a {
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid #d5d7db;
    color: #777777; text-decoration: none; font-size: 15px;
    transition: border-color .25s, color .25s;
}
.footer-social a:hover { border-color: #e60012; color: #e60012; }
.footer-col h4 { color: #303030; font-size: 18px; font-weight: 700; margin-bottom: 18px; letter-spacing: 1px; }
.footer-col a {
    display: block; color: #666666;
    text-decoration: none; margin-bottom: 12px;
}
.footer-col a:hover { color: #e60012; }
.footer-contact li {
    list-style: none; display: flex; gap: 12px; align-items: flex-start;
    font-size: 14px; margin-bottom: 14px; line-height: 1.6;
}
.footer-contact i { color: #e60012; margin-top:5px; }
.footer-bottom {
    border-top: 1px solid #dcdde0;
    padding: 22px 0;
    text-align: center;
    font-size: 12px;
    color: #9aa0ad;
}

/* ================= 响应式 ================= */
@media (max-width: 1024px) {
    .sidebar-fixed { display: none; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
}

@media (max-width: 640px) {
    .main-container { padding: 0 16px; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* ================= 移动端 Header（≤992px） ================= */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 20px;
    color: #303030;
    cursor: pointer;
    padding: 6px 4px;
    line-height: 1;
}
.btn-inquiry-top i { display: none; }
.mobile-lang { display: none; }
.nav-backdrop { display: none; }
@media (max-width: 992px) {
    header { padding: 0 16px; }
    .header-left { gap: 0; }
    .header-right { gap: 12px; }
    .header-right > div { display: none; }
    .nav-toggle { display: block; }

    /* Inquiry 变为圆形客服图标按钮 */
    .btn-inquiry-top { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border-radius: 50%; }
    .btn-inquiry-top span { display: none; }
    .btn-inquiry-top i { display: block; font-size: 16px; }

    /* 右侧滑出抽屉 */
    nav.main-nav {
        display: flex;
        position: fixed;
        top: 64px;
        right: 0;
        bottom: 0;
        width: 300px;
        max-width: 82%;
        flex-direction: column;
        gap: 0;
        background: #ffffff;
        padding: 10px 20px 24px;
        overflow-y: auto;
        box-shadow: -10px 0 30px rgba(0,0,0,0.12);
        transform: translateX(105%);
        transition: transform .35s ease;
        z-index: 999;
    }
    nav.main-nav.nav-open { transform: translateX(0); }
    .nav-backdrop { position: fixed; top: 64px; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.35); z-index: 998; }
    .nav-backdrop.show { display: block; }

    .nav-item { position: static; border-bottom: 1px solid #f0f0f0; }
    .nav-item > a { height: 48px; font-size: 16px; }
    .nav-item.open > a i { transform: rotate(180deg); }

    /* 下拉面板改为静态手风琴，点击展开 */
    .mega-panel, .drop-panel {
        display: none;
        position: static;
        visibility: visible;
        opacity: 1;
        transform: none;
        transition: none;
        width: auto;
        min-width: 0;
        box-shadow: none;
        border-top: none;
        padding: 0;
    }
    .nav-item.open > .mega-panel,
    .nav-item.open > .drop-panel { display: block; }
    .mega-inner { grid-template-columns: 1fr; gap: 14px; padding: 4px 0 14px 12px; }
    .mega-thumb { display: none; }
    .main-nav .mega-col a { padding: 6px 0; }
    .main-nav .drop-panel { padding: 0 0 10px 12px; }
    .main-nav .drop-panel a { padding: 8px 0; }

    /* 语言切换：抽屉底部 */
    .mobile-lang {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-top: 18px;
        padding-top: 16px;
        border-top: 1px solid #f0f0f0;
        font-size: 15px;
        color: #444444;
        cursor: pointer;
    }
    .mobile-lang .fa-angle-down { margin-left: auto; font-size: 12px; color: #999999; }
}
