﻿body {
    padding: 0;
    margin: 0;
}
/* ---------- 公告栏 ---------- */
.top-notice {
    background-color: #0b90c7;
    color: white;
    height: 32px;
    overflow: hidden;
    position: relative;
    width: 100%;
    z-index: 20;
}

.notice-marquee {
    width: 100%;
    height: 100%;
    overflow: hidden;
    white-space: nowrap;
    display: flex;
    align-items: center;
}
.logo-img {
    height: 20px;
    width: auto;
    max-width: 100%;
    display: block;
}
.mobile-logo-img {
    height: 20px;
    width: auto;
    max-width: 100%;
}

.notice-track {
    display: inline-flex;
    gap: 20px;
    align-items: center;
    will-change: transform;
}
.notice-marquee {
    pointer-events: auto; /* 确保可以触发鼠标事件 */
}
.notice-marquee.pause .notice-track {
    animation-play-state: paused;
}

.notice-item {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
}

@keyframes scrollNotice {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@media (max-width: 640px) {
    .notice-item {
        font-size: 11px;
    }
}


/* ---------- 导航栏 (桌面端居中 + 手机端汉堡菜单) ---------- */
.navbar {
    position: sticky;
    top: 0;
    background: white;
    width: 100%;
    z-index: 100;
    box-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

.nav-container {
    width: 100%;
    max-width: 1336px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* 桌面端：LOGO区 */
.logo-area {
    flex-shrink: 0;
    width: 120px;
}

.logo {
    font-weight: 700;
    font-size: 22px;
    text-decoration: none;
    background: linear-gradient(135deg, #0b90c7, #1e9b9d);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

/* 桌面端导航菜单 (居中) */
.nav-links-desktop {
    display: flex;
    gap: 100px;
    align-items: center;
    margin: 0 auto; /* 利用margin auto实现居中，但需要左右留白自适应 */
}

    .nav-links-desktop a {
        text-decoration: none;
        font-size: 14px;
        font-weight: 500;
        color: #2c3e3f;
        white-space: nowrap;
        transition: color 0.2s;
    }

        .nav-links-desktop a:hover {
            color: #0b90c7;
        }

/* 右侧操作区 (登录/注册) */
.nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-shrink: 0;
}

    .nav-actions .btn-login,
    .nav-actions .btn-register {
        text-decoration: none;
        font-size: 13px;
        font-weight: 600;
        padding: 6px 12px;
        border-radius: 30px;
        transition: all 0.2s;
        white-space: nowrap;
    }

    .nav-actions .btn-login {
        color: #0b90c7;
        background: transparent;
        border: 1px solid #0b90c7;
    }

        .nav-actions .btn-login:hover {
            background: #0b90c7;
            color: white;
        }

    .nav-actions .btn-register {
        background: #0b90c7;
        color: white;
        border: 1px solid #0b90c7;
    }

        .nav-actions .btn-register:hover {
            background: #1e9b9d;
            border-color: #1e9b9d;
        }

/* 手机端专用样式 (隐藏桌面导航，显示汉堡菜单) */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    padding: 0 8px;
    color: #1e1e1e;
    line-height: 1;
}

.mobile-logo {
    display: none;
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
    background: linear-gradient(135deg, #0b90c7, #1e9b9d);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}
/* 手机端遮罩菜单 */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0.2s, opacity 0.2s;
}

    .mobile-menu-overlay.active {
        visibility: visible;
        opacity: 1;
    }

.mobile-menu-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background: white;
    box-shadow: 2px 0 12px rgba(0,0,0,0.1);
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 201;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mobile-menu-overlay.active .mobile-menu-panel {
    transform: translateX(0);
}

.mobile-menu-close {
    align-self: flex-end;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    margin-bottom: 16px;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

    .mobile-nav-links a {
        text-decoration: none;
        font-size: 18px;
        font-weight: 500;
        color: #2c3e3f;
        padding: 8px 0;
        border-bottom: 1px solid #eef2f4;
    }

body.menu-open {
    overflow: hidden;
}

@media (max-width: 767px) {
    .nav-container {
        padding: 0 16px;
    }

    .logo-area {
        display: none;
    }

    .mobile-logo {
        display: block;
        margin-right: auto;
        margin-left: 8px;
    }

    .mobile-menu-btn {
        display: block;
    }

    .nav-links-desktop {
        display: none;
    }

    .nav-actions .btn-login,
    .nav-actions .btn-register {
        font-size: 11px;
        padding: 4px 10px;
    }

    .mobile-menu-logo img {
        width: 70px;
    }
}

/* ---------- 通用模块样式 ---------- */
.section-padded {
    padding: 60px 24px;
    text-align: center;
    border-bottom: 1px solid #eef2f4;
}

.container {
    max-width: 1336px;
    margin: 0 auto;
}

.placeholder-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 16px;
    color: #1e2f30;
}

.placeholder-desc {
    font-size: 14px;
    color: #5f7a7c;
    max-width: 600px;
    margin: 0 auto;
}

.product-grid {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 32px;
}

.product-card {
    background: #eef2f5;
    border-radius: 24px;
    padding: 32px 16px;
    width: 220px;
}

@media (max-width: 767px) {
    .product-card {
        width: 100%;
        max-width: 280px;
    }
}

.feedback-grid {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 36px;
}

.feedback-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    width: 260px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

@media (max-width: 767px) {
    .feedback-card {
        width: 100%;
        max-width: 320px;
    }
}

.banner-area {
    background: linear-gradient(105deg, #eef9fa, #d4f0f2);
    min-height: 360px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 48px 20px;
}

.video-placeholder {
    background: #cbdcdd;
    max-width: 800px;
    margin: 30px auto 0;
    border-radius: 28px;
    padding: 60px 20px;
}

.btn-primary {
    display: inline-block;
    background: #28c3c5;
    color: white;
    padding: 10px 28px;
    border-radius: 40px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    margin-top: 20px;
}

.mobile-menu-logo {
    display: block;
    text-align: left;
    margin: 20px 0 10px;
}

    .mobile-menu-logo img {
        width: 80px; /* 原 120px → 80px，等比缩小 */
        height: auto;
    }
