/* ========== 基础重置 ========== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #ffffff;
    color: #14180f;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; background: none; border: none; }

/* ========== 设计变量 ========== */
:root {
    --ink: #14180f;
    --text: #1d2118;
    --text-secondary: #5c6155;
    --text-muted: #9aa094;
    --lime: #c8f542;
    --lime-deep: #a8d62f;
    --bg: #ffffff;
    --bg-soft: #f3f4f0;
    --bg-dark: #0e120a;
    --bg-card: #22281d;
    --border: #e6e8e0;
    --nav-h: 64px;
}

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 40px;
}

/* ========== 通用标题 ========== */
.section-label {
    font-size: 11px;
    letter-spacing: 3px;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 14px;
}

.section-title {
    font-size: 34px;
    font-weight: 900;
    color: var(--text);
    line-height: 1.25;
    letter-spacing: 1px;
}

.section-desc {
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-secondary);
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.section-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: color 0.25s;
}

.section-more svg {
    width: 14px;
    height: 14px;
    transition: transform 0.25s;
}

.section-more:hover {
    color: var(--ink);
}

.section-more:hover svg {
    transform: translateX(4px);
}

/* ========== 按钮 ========== */
.btn-outline-light,
.btn-outline-dark {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 26px;
    font-size: 14px;
    letter-spacing: 2px;
    border-radius: 999px;
    transition: all 0.3s;
}

.btn-outline-light {
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.btn-outline-light:hover {
    background: #fff;
    color: var(--ink);
}

.btn-outline-dark {
    color: var(--ink);
    border: 1px solid #b9bdb0;
}

.btn-outline-dark:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.btn-outline-light svg,
.btn-outline-dark svg {
    width: 15px;
    height: 15px;
    transition: transform 0.3s;
}

.btn-outline-light:hover svg,
.btn-outline-dark:hover svg {
    transform: translateX(3px);
}

.btn-sm {
    padding: 9px 20px;
    font-size: 12px;
    letter-spacing: 1px;
}

.btn-lime {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 34px;
    background: var(--lime);
    color: var(--ink);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 3px;
    border-radius: 999px;
    transition: background 0.3s, transform 0.3s;
}

.btn-lime svg {
    width: 16px;
    height: 16px;
}

.btn-lime:hover {
    background: #d6ff57;
    transform: translateY(-2px);
}

/* ========== 导航栏 ========== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-h);
    z-index: 100;
    transition: background 0.3s, border-color 0.3s;
    border-bottom: 1px solid transparent;
}

.nav.scrolled {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-bottom-color: var(--border);
}

.nav-inner {
    max-width: 1440px;
    margin: 0 auto;
    height: 100%;
    padding: 0 40px;
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #fff;
    transition: color 0.3s;
}

.nav.scrolled .nav-logo {
    color: var(--ink);
}

.nav-logo-mark {
    width: 34px;
    height: 34px;
    background: #fff;
    color: var(--ink);
    font-weight: 900;
    font-size: 19px;
    font-style: italic;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
}

.nav.scrolled .nav-logo-mark {
    background: var(--ink);
    color: #fff;
}

.nav-logo-text {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1.2;
}

.nav-logo-text small {
    display: block;
    font-size: 8px;
    font-weight: 400;
    letter-spacing: 2.5px;
    opacity: 0.7;
}

.nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 34px;
}

.nav-links a {
    position: relative;
    font-size: 13.5px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
    padding: 4px 0;
    transition: color 0.3s;
}

.nav.scrolled .nav-links a {
    color: var(--text-secondary);
}

.nav-links a:hover {
    color: #fff;
}

.nav.scrolled .nav-links a:hover {
    color: var(--ink);
}

.nav-links a.active {
    color: #fff;
    font-weight: 700;
}

.nav.scrolled .nav-links a.active {
    color: var(--ink);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -6px;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    border-radius: 2px;
    background: var(--lime);
}

/* 汉堡按钮与遮罩：桌面端默认隐藏 */
.nav-toggle,
.nav-overlay {
    display: none;
}

/* ========== CTA 小程序区 ========== */
.cta {
    background: var(--bg-dark);
    padding: 70px 0;
    position: relative;
    overflow: hidden;
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(600px 300px at 15% 80%, rgba(200, 245, 66, 0.08), transparent 70%);
    pointer-events: none;
}

.cta-inner {
    position: relative;
    display: grid;
    grid-template-columns: 220px 1fr 150px 260px;
    gap: 48px;
    align-items: center;
}

.cta-phone img {
    width: 100%;
    filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.6));
}

.cta-label {
    font-size: 11px;
    letter-spacing: 4px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.cta-title {
    font-size: 32px;
    font-weight: 900;
    color: #fff;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.cta-desc {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 28px;
}

.cta-qr {
    text-align: center;
}

.cta-qr-code {
    width: 120px;
    height: 120px;
    background: #fff;
    padding: 8px;
    border-radius: 8px;
    margin: 0 auto 10px;
}

.cta-qr-code img {
    width: 100%;
    height: 100%;
}

.cta-qr span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
}

.cta-icons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px 14px;
}

.cta-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.cta-icon > svg {
    width: 22px;
    height: 22px;
    color: rgba(255, 255, 255, 0.85);
    box-sizing: content-box;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    transition: border-color 0.3s, background 0.3s;
}

.cta-icon:hover > svg {
    border-color: var(--lime);
    background: rgba(200, 245, 66, 0.08);
    color: var(--lime);
}

.cta-icon span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.75);
}

/* ========== 页脚 ========== */
.footer {
    background: #080b06;
    padding: 32px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 40px;
}

.footer-brand .nav-logo {
    color: #fff;
}

.footer-brand .nav-logo-mark {
    background: #fff;
    color: var(--ink);
}

.footer-slogan {
    margin-top: 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 2px;
}

.footer-links {
    display: flex;
    gap: 28px;
}

.footer-links a {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--lime);
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.footer-socials {
    display: flex;
    gap: 10px;
}

.footer-socials a {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.25s;
}

.footer-socials a:hover {
    border-color: var(--lime);
    color: var(--lime);
}

.footer-copy {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
}

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
    /* 移动端：汉堡菜单 */
    .nav-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 42px;
        height: 42px;
        margin-left: auto;
        padding: 0;
        background: none;
        border: none;
        cursor: pointer;
        color: #fff;
        -webkit-tap-highlight-color: transparent;
    }

    .nav.scrolled .nav-toggle {
        color: var(--ink);
    }

    .nav-toggle span {
        display: block;
        width: 22px;
        height: 2px;
        margin: 0 auto;
        background: currentColor;
        border-radius: 2px;
        transition: transform 0.3s, opacity 0.3s;
    }

    .nav.open .nav-toggle span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav.open .nav-toggle span:nth-child(2) {
        opacity: 0;
    }

    .nav.open .nav-toggle span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    /* nav-links 下拉面板 */
    .nav-links {
        position: fixed;
        top: var(--nav-h);
        left: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        gap: 0;
        background: #fff;
        border-top: 1px solid var(--border);
        border-bottom: 1px solid var(--border);
        padding: 6px 16px 12px;
        box-shadow: 0 20px 40px rgba(20, 24, 15, 0.14);
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: transform 0.28s ease, opacity 0.28s ease, visibility 0s 0.28s;
        z-index: 999;
    }

    .nav.open .nav-links {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
        transition: transform 0.28s ease, opacity 0.28s ease, visibility 0s;
    }

    .nav-links li {
        width: 100%;
        border-bottom: 1px solid var(--border);
    }

    .nav-links li:last-child {
        border-bottom: none;
    }

    .nav-links a {
        display: block;
        padding: 14px 4px;
        font-size: 15px;
        font-weight: 500;
        color: var(--text);
        white-space: nowrap;
    }

    .nav-links a.active {
        color: var(--ink);
        font-weight: 700;
    }

    .nav-links a.active::after {
        display: none;
    }

    /* 遮罩层 */
    .nav-overlay {
        display: block;
        position: fixed;
        top: var(--nav-h);
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10, 14, 8, 0.42);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.28s ease, visibility 0s 0.28s;
        z-index: 998;
        -webkit-tap-highlight-color: transparent;
    }

    .nav.open .nav-overlay {
        opacity: 1;
        visibility: visible;
        transition: opacity 0.28s ease, visibility 0s;
    }

    .nav-inner {
        padding: 0 12px;
        justify-content: space-between;
    }

    .nav-logo-text {
        font-size: 13px;
    }

    .nav-logo-mark {
        width: 28px;
        height: 28px;
        font-size: 15px;
    }

    .nav-logo-text small {
        font-size: 6px;
        letter-spacing: 1.5px;
    }

    .container,
    .nav-inner {
        padding: 0 12px;
    }

    /* nav 在移动端确保不被任何内容遮住 */
    .nav {
        z-index: 999;
    }

    .cta-inner {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        justify-items: center;
        text-align: center;
    }

    .cta-main {
        order: -1;
        grid-column: 1 / -1;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
        justify-items: center;
    }

    .footer-right {
        align-items: center;
    }
}

@media (max-width: 768px) {
    .section-title {
        font-size: 26px;
    }

    .section-head {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .cta-inner {
        grid-template-columns: 1fr;
    }

    .cta-phone {
        width: 180px;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
}

/* ========== 小程序码弹窗（立即体验按钮触发） ========== */
.mp-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.mp-modal.open {
    display: flex;
}

.mp-modal-mask {
    position: absolute;
    inset: 0;
    background: rgba(8, 10, 6, 0.88);
    backdrop-filter: blur(4px);
    -webkit-tap-highlight-color: transparent;
}

.mp-modal-dialog {
    position: relative;
    z-index: 2;
    width: min(420px, 100%);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
    overflow: hidden;
}

.mp-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    background: var(--bg-soft);
    transition: background 0.25s, color 0.25s, transform 0.25s;
    -webkit-tap-highlight-color: transparent;
    z-index: 3;
}

.mp-modal-close svg {
    width: 16px;
    height: 16px;
}

.mp-modal-close:hover {
    background: var(--border);
    color: var(--ink);
    transform: rotate(90deg);
}

.mp-modal-body {
    padding: 36px 28px 30px;
    text-align: center;
}

.mp-modal-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: 2px;
    margin-bottom: 18px;
}

.mp-modal-qr {
    display: inline-block;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 16px;
}

.mp-modal-qr img {
    display: block;
    width: 220px;
    height: 220px;
    object-fit: cover;
    border-radius: 6px;
}

.mp-modal-tip {
    font-size: 13px;
    line-height: 1.8;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .mp-modal-body {
        padding: 30px 22px 24px;
    }

    .mp-modal-qr img {
        width: 180px;
        height: 180px;
    }
}
