/* CSS变量 - 色彩系统 */
:root {
    --bg-primary: #ffffff;
    --bg-surface: #f5f7fa;
    --bg-elevated: #ffffff;
    --text-primary: #1a1a2e;
    --text-secondary: #666666;
    --text-light: #9ca3af;
    --primary: #359fff;
    --primary-hover: #57b3ff;
    --primary-active: #1a8fff;
    --accent: #359fff;
    --accent-cyan: #00d4ff;
    --gradient-primary: linear-gradient(135deg, #359fff 0%, #57b3ff 100%);
    --gradient-primary-alt: linear-gradient(135deg, #57b3ff 0%, #359fff 100%);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(0, 0, 0, 0.06);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    --border-radius: 4px;
    --border-radius-lg: 8px;
    --border-radius-xl: 16px;
    --font-primary: 'DM Mono', 'Noto Sans SC', monospace;

    --font-display: 'Bebas Neue', 'Noto Sans SC', sans-serif;
    --font-heading: 'Syne', 'Noto Sans SC', sans-serif;
    --font-body: 'DM Mono', 'Noto Sans SC', monospace;

    --transition: all 0.3s ease-out;
    --radius: 4px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 60px);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ============================================
   导航栏
   ============================================ */

.navbar {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 72px;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 400;
    letter-spacing: 2px;
    color: var(--text-primary);
}

.logo img {
    height: 70px;
    width: auto;
    margin-right: 10px;
}

.nav-menu {
    display: flex;
    align-items: center;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    gap: 4px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-weight: 400;
    font-size: 15px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 8px 16px;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--text-primary);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 16px;
    right: 16px;
    height: 2px;
    background: var(--accent);
}

.nav-divider {
    width: 1px;
    height: 20px;
    background: rgba(0, 0, 0, 0.08);
    margin: 0 8px;
}

.nav-experience-btn {
    color: var(--accent) !important;
    font-weight: 500 !important;
}

.nav-experience-btn:hover {
    color: var(--primary-hover) !important;
}

.nav-contact-link {
    position: relative;
    cursor: pointer;
    white-space: nowrap;
}

.nav-contact-link .qr-popup {
    display: none;
    position: absolute;
    top: 100%;
    right: 50%;
    transform: translateX(50%);
    margin-top: 12px;
    padding: 12px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    z-index: 1001;
    text-align: center;
    white-space: nowrap;
    width: max-content;
}

.nav-contact-link .qr-popup img {
    width: 160px;
    height: 160px;
    display: block;
    border-radius: 4px;
}

.nav-contact-link .qr-popup::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: #fff;
    border-left: 1px solid rgba(0, 0, 0, 0.06);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-contact-link:hover .qr-popup {
    display: block;
}

.nav-contact-link .qr-popup .qr-tip {
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    letter-spacing: 0;
    text-transform: none;
}

.nav-login-btn,
.nav-register-btn {
    font-size: 12px !important;
    padding: 8px 20px !important;
    border-radius: 2px !important;
    letter-spacing: 1.5px !important;
}

.nav-login-btn {
    color: var(--text-secondary) !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
}

.nav-login-btn:hover {
    color: var(--text-primary) !important;
    border-color: var(--text-secondary) !important;
}

.nav-register-btn {
    background: var(--accent) !important;
    color: #fff !important;
    border: none !important;
}

.nav-register-btn:hover {
    opacity: 0.85;
}

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-size: 22px;
}

.nav-close-btn {
    display: none;
}

@media (max-width: 768px) {
    .logo img {
        height: 52px;
        margin-right: 0;
    }

    .menu-toggle {
        display: flex !important;
    }

    .nav-menu {
        visibility: hidden;
        opacity: 0;
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100vh;
        background: var(--bg-surface);
        z-index: 1002;
        padding: 100px 30px 40px;
        transition:
            right 0.4s ease-out,
            opacity 0.3s ease-out;
        overflow-y: auto;
        border-left: 1px solid rgba(0, 0, 0, 0.06);
    }

    .nav-menu.active {
        visibility: visible;
        opacity: 1;
        right: 0;
    }

    .nav-menu ul {
        flex-direction: column;
        gap: 8px;
        width: 100%;
        text-align: left;
    }

    .nav-menu li a {
        display: block;
        padding: 14px 16px;
        font-size: 14px;
        color: var(--text-secondary);
        border-radius: var(--radius);
        transition: var(--transition);
    }

    .nav-menu li a:hover,
    .nav-menu li a.active {
        color: var(--text-primary);
        background: rgba(0, 0, 0, 0.04);
        transform: none;
    }

    .nav-menu a::after {
        display: none;
    }

    .nav-divider {
        display: none;
    }

    .nav-close-btn {
        display: flex !important;
        position: absolute;
        top: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        align-items: center;
        justify-content: center;
        color: var(--text-primary);
        font-size: 22px;
    }

    .nav-overlay {
        visibility: hidden;
        opacity: 0;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.7);
        z-index: 999;
        transition: opacity 0.3s ease-out;
    }

    .nav-overlay.active {
        visibility: visible;
        opacity: 1;
    }
}

/* ============================================
   页脚
   ============================================ */

.footer {
    background: #0a0a0a;
    color: rgba(255, 255, 255, 0.6);
    padding: 60px 0 24px;
    border-top: none;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr 2fr;
        gap: 60px;
    }
}

.footer-logo img {
    height: 80px;
    width: auto;
    margin-bottom: 16px;
}

.footer-description {
    font-size: 13px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.5);
    max-width: 320px;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.footer-column h4 {
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 16px;
    font-weight: 600;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column li {
    margin-bottom: 10px;
    padding-left: 0;
}

.footer-column li::before {
    display: none;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    letter-spacing: 0;
    transition: all 0.3s ease;
}

.footer-column a:hover {
    color: white;
    padding-left: 8px;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}
.footer-copyright {
    display: flex;
    align-items: center;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: white;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.footer-social a:hover {
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

.footer-contact-info {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px 24px;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.6;
}

.footer-contact-item a {
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.3s ease;
    font-size: 13px;
}

.footer-contact-item a:hover {
    color: white;
    padding-left: 0;
}

.footer-qrcode {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer-qrcode img {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    background: #fff;
    padding: 4px;
}

.footer-qrcode span {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 768px) {
    .footer-links {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-contact-info {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        text-align: center;
        align-items: center;
    }

    .footer-social {
        justify-content: center;
    }
}

/* ============================================
   按钮系统
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 13px;
    font-family: var(--font-body);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 400;
    border-radius: var(--radius);
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(245, 240, 232, 0.2);
}

.btn-outline:hover {
    border-color: var(--text-primary);
}

.btn-large {
    padding: 18px 48px;
    font-size: 14px;
}

/* ============================================
   Page Hero 横幅
   ============================================ */

.page-hero {
    padding: 100px 0 50px;
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(53, 159, 255, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(0, 212, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.section-tag {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    padding: 6px 16px;
    background: rgba(53, 159, 255, 0.06);
    border-radius: 4px;
    margin-bottom: 20px;
}

.page-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(36px, 5vw, 56px);
    letter-spacing: 3px;
    line-height: 0.85;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.page-hero p {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-secondary);
    max-width: 500px;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .page-hero {
        padding: 80px 0 40px;
    }

    .page-hero h1 {
        letter-spacing: 2px;
        font-size: clamp(28px, 6vw, 40px);
        line-height: 1.1;
    }

    .page-hero p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .page-hero {
        padding: 70px 0 32px;
    }

    .section-tag {
        font-size: 11px;
        padding: 5px 12px;
        margin-bottom: 16px;
    }

    .page-hero h1 {
        margin-bottom: 16px;
    }
}

/* ============================================
   回到顶部按钮
   ============================================ */

.scroll-top-btn {
    position: fixed;
    bottom: 80px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--bg-surface);
    border: 1px solid rgba(245, 240, 232, 0.1);
    color: var(--text-primary);
    font-size: 16px;
    cursor: pointer;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    pointer-events: none;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.scroll-top-btn.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

.scroll-top-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

@media (max-width: 768px) {
    .scroll-top-btn {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

/* ============================================
   滚动动画 - 极简
   仅用于 2-3 处关键位置
   ============================================ */

.scroll-animate {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.7s ease-out,
        transform 0.7s ease-out;
    will-change: opacity, transform;
}

.scroll-animate.visible {
    opacity: 1;
    transform: translateY(0);
    will-change: auto;
}

/* 左侧滑入 */
.scroll-animate.left {
    transform: translateX(-40px);
}

.scroll-animate.left.visible {
    transform: translateX(0);
}

/* 右侧滑入 */
.scroll-animate.right {
    transform: translateX(40px);
}

.scroll-animate.right.visible {
    transform: translateX(0);
}

/* 缩放 */
.scroll-animate.scale {
    transform: scale(0.92);
}

.scroll-animate.scale.visible {
    transform: scale(1);
}

/* 延迟 */
.scroll-animate.delay-1 {
    transition-delay: 0.1s;
}

.scroll-animate.delay-2 {
    transition-delay: 0.2s;
}

.scroll-animate.delay-3 {
    transition-delay: 0.3s;
}

.scroll-animate.delay-4 {
    transition-delay: 0.4s;
}

/* ============================================
   自定义滚动条
   ============================================ */

::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: var(--text-secondary);
    border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-primary);
}

/* ============================================
   Section 基础
   ============================================ */

section {
    position: relative;
}

/* ============================================
   通用工具类
   ============================================ */

.text-accent {
    color: var(--accent);
}

.text-cyan {
    color: var(--accent-cyan);
}

.text-muted {
    color: var(--text-secondary);
}

/* ============================================
   CTA 横幅
   ============================================ */

.cta-banner {
    background: linear-gradient(135deg, var(--primary) 0%, #2563eb 100%);
    padding: 100px 0;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.cta-text h2 {
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 16px;
}

.cta-text p {
    font-size: clamp(16px, 2vw, 20px);
    opacity: 0.9;
}

.cta-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    pointer-events: none;
    z-index: 0;
}

.cta-shape-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -50px;
}

.cta-shape-2 {
    width: 200px;
    height: 200px;
    bottom: -80px;
    left: -30px;
}

.cta-banner .btn-primary {
    background: #fff;
    color: var(--primary);
    font-weight: 500;
    border-radius: 8px;
    padding: 18px 48px;
    font-size: 14px;
    letter-spacing: 1px;
    white-space: nowrap;
    position: relative;
    z-index: 2;
}

.cta-banner .btn-primary:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .cta-banner {
        padding: 60px 0;
    }

    .cta-content {
        flex-direction: column;
        text-align: center;
    }

    .cta-banner .btn-primary {
        width: 100%;
        max-width: 300px;
    }

    .cta-shape {
        display: none;
    }
}
