@import url("../../../assets/libs/fonts/inter.css");

/* =========================================
   CSS Reset & Vibrant Premium Variables
========================================= */
:root {
    --color-black: #09090B;
    --color-white: #FFFFFF;
    --color-bg-main: #FFFFFF;
    --color-bg-alt: #F8FAFC;
    --color-border: #E2E8F0;
    --text-primary: #0F172A;
    --text-secondary: #64748B;

    --brand-blue: #2563EB;
    --brand-purple: #8B5CF6;
    --brand-cyan: #06B6D4;
    --brand-gradient: linear-gradient(135deg, var(--brand-blue), var(--brand-purple));
    --brand-glow: rgba(37, 99, 235, 0.15);

    --font-main: 'Inter', 'Noto Sans SC', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body, html {
    font-family: var(--font-main);
    color: var(--text-primary);
    background-color: var(--color-bg-main);
    overflow: hidden;
    height: 100%;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* =========================================
   Custom FullPage Scroll Engine
========================================= */
.snap-container { height: 100vh; width: 100vw; overflow: hidden; position: relative; }

.sections-wrapper {
    height: 100%; width: 100%;
    transition: transform 0.7s cubic-bezier(0.645, 0.045, 0.355, 1);
    will-change: transform;
}

.snap-section {
    height: 100vh; width: 100vw; position: relative;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden; padding-top: 80px;
}

.ambient-glow {
    position: absolute; border-radius: 50%; filter: blur(100px);
    opacity: 0.4; z-index: -1; pointer-events: none;
}

/* =========================================
   Navbar
========================================= */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; height: 80px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 40px; background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    z-index: 1000; border-bottom: 1px solid transparent;
    transition: var(--transition);
}
.navbar > .nav-left,
.navbar > .nav-right {
    /* 由 nav-inner 统一约束，这里保持原有 flex */
}
/* 内容限宽容器 */
.navbar::before { display: none; }
.nav-inner {
    width: 100%; max-width: 1200px;
    display: flex; align-items: center; justify-content: space-between;
}
.navbar.scrolled { border-bottom: 1px solid var(--color-border); box-shadow: 0 4px 20px rgba(0,0,0,0.02); }

.nav-left { display: flex; align-items: center; gap: 40px; }
.logo { font-size: 24px; font-weight: 900; color: var(--text-primary); display: flex; align-items: center; gap: 8px; letter-spacing: -0.5px; cursor: pointer; text-decoration: none; }
.logo i { background: var(--brand-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.logo-img { width: 32px; height: 32px; object-fit: contain; display: block; flex-shrink: 0; }
.logo-text { font-size: 22px; font-weight: 900; letter-spacing: -0.5px; }

.nav-links { display: flex; align-items: center; gap: 28px; font-weight: 600; font-size: 15px; }
.nav-link { cursor: pointer; color: var(--text-secondary); transition: var(--transition); position: relative; }
.nav-link:hover, .nav-link.active { color: var(--brand-blue); }
.nav-link.active::after { content: ''; position: absolute; bottom: -6px; left: 0; width: 100%; height: 2px; background: var(--brand-blue); border-radius: 2px; }

.nav-right { display: flex; align-items: center; gap: 16px; font-size: 14px; }
/* ── 语言切换器 ── */
.lang-switch {
  position: relative;
}
.lang-current {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 14px;
  font-family: inherit;
  padding: 7px 12px;
  border-radius: 8px;
  border: none;
  background: transparent;
  transition: var(--transition);
  white-space: nowrap;
}
.lang-current:hover { color: var(--text-primary); background: rgba(0,0,0,.05); }
.lang-caret { font-size: 9px; transition: transform .2s; }
.lang-switch.open .lang-caret { transform: rotate(180deg); }

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid rgba(0,0,0,.09);
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,.12);
  min-width: 148px;
  padding: 6px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .18s, transform .18s;
  z-index: 500;
}
.lang-switch.open .lang-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: background .15s;
  text-decoration: none;
  white-space: nowrap;
}
.lang-option:hover { background: #F3F4F6; color: #111; }
.lang-option.active { color: var(--brand-purple, #6366F1); font-weight: 700; background: #EEF2FF; }
.lang-option .lang-flag { font-size: 16px; line-height: 1; }

/* 移动端将语言选项追加进汉堡菜单（白色菜单背景） */
.mobile-lang-group {
  border-top: 1px solid var(--color-border);
  padding-top: 12px;
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-left: 4px;
}
.mobile-lang-option {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid var(--color-border);
  text-decoration: none;
  transition: color .15s, background .15s, border-color .15s;
  background: transparent;
}
.mobile-lang-option:hover { color: var(--text-primary); background: #F3F4F6; border-color: #D1D5DB; }
.mobile-lang-option.active { color: var(--brand-blue); border-color: var(--brand-blue); background: #EFF6FF; font-weight: 700; }

.btn { padding: 12px 24px; border-radius: 8px; font-weight: 700; cursor: pointer; transition: var(--transition); border: 1px solid transparent; font-size: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn-black { background: var(--color-black); color: var(--color-white); box-shadow: 0 4px 12px rgba(0,0,0,0.1); position: relative; overflow: hidden; }
.btn-black:hover { background: #27272A; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }

.btn-black::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: skewX(-20deg); transition: 0.5s;
}
.btn-black:hover::before { left: 150%; }

.btn-outline { background-color: transparent; color: var(--text-primary); border-color: var(--color-border); }
.btn-outline:hover { background-color: var(--color-bg-alt); border-color: #CBD5E1; color: var(--brand-blue); }

/* =========================================
   Hamburger Button（仅移动端显示）
========================================= */
.nav-hamburger {
    display: none;
    flex-direction: column; justify-content: center; align-items: center;
    gap: 5px; width: 36px; height: 36px;
    background: none; border: none; cursor: pointer; padding: 4px;
    border-radius: 8px; transition: var(--transition);
}
.nav-hamburger:hover { background: var(--color-bg-alt); }
.nav-hamburger span {
    display: block; width: 20px; height: 2px;
    background: var(--text-primary); border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
    transform-origin: center;
}
/* 打开状态：X 形 */
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; width: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================
   Mobile Menu 下拉抽屉
========================================= */
.mobile-menu {
    display: none;
    position: fixed; top: 60px; left: 0; width: 100%;
    background: rgba(255,255,255,0.97); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--color-border);
    z-index: 999; padding: 12px 20px 20px;
    transform: translateY(-8px); opacity: 0;
    transition: transform 0.25s cubic-bezier(0.16,1,0.3,1), opacity 0.2s ease;
    pointer-events: none;
}
.mobile-menu.open {
    transform: translateY(0); opacity: 1;
    pointer-events: auto;
}
.mobile-menu-nav {
    display: flex; flex-direction: column; gap: 2px;
}
.mobile-nav-link {
    display: block; padding: 12px 8px;
    font-size: 16px; font-weight: 600; color: var(--text-secondary);
    border-radius: 8px; transition: var(--transition); cursor: pointer;
    border-bottom: 1px solid var(--color-border);
}
.mobile-nav-link:last-child { border-bottom: none; }
.mobile-nav-link:hover, .mobile-nav-link.active { color: var(--brand-blue); background: #EFF6FF; }
.mobile-nav-link.active { color: var(--brand-blue); }

/* 遮罩 */
.mobile-menu-overlay {
    display: none;
    position: fixed; inset: 0; z-index: 998;
    background: rgba(0,0,0,0.2);
    backdrop-filter: blur(2px);
    opacity: 0; transition: opacity 0.2s ease;
    pointer-events: none; /* 关闭状态不拦截任何事件 */
}
.mobile-menu-overlay.open {
    opacity: 1;
    pointer-events: auto; /* 仅菜单打开时拦截点击以关闭菜单 */
}

/* =========================================
   Animation Utilities
========================================= */
.anim-up { opacity: 0; transform: translateY(40px); transition: opacity 1s ease, transform 1s cubic-bezier(0.16, 1, 0.3, 1); }
.in-view .anim-up { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

.text-gradient { background: var(--brand-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

/* =========================================
   Section Layouts (Split View)
========================================= */
.split-layout { display: flex; width: 100%; max-width: 1200px; align-items: center; gap: 100px; padding: 0 40px; }
.split-text { flex: 1.1; }
.split-visual { flex: 0.9; position: relative; display: flex; justify-content: center; align-items: center; height: 500px; }

.sec-label { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; color: var(--brand-blue); margin-bottom: 16px; display: inline-block; background: #EFF6FF; padding: 6px 12px; border-radius: 6px; }
.section-title { font-size: 48px; font-weight: 900; line-height: 1.2; margin-bottom: 24px; letter-spacing: -1.5px; }
.section-desc { font-size: 16px; font-weight: 500; color: var(--text-secondary); line-height: 1.7; margin-bottom: 40px; }

.list-items { list-style: none; }
.list-items li { margin-bottom: 20px; font-size: 15px; font-weight: 600; display: flex; align-items: flex-start; gap: 16px; border-top: 1px solid var(--color-border); padding-top: 20px; }
.list-items li:first-child { border-top: none; padding-top: 0; }
.list-items li i { color: var(--color-white); background: var(--brand-gradient); font-size: 14px; padding: 6px; border-radius: 6px; margin-top: 2px; box-shadow: 0 4px 10px var(--brand-glow); flex-shrink: 0; }

/* 统计信息横条 */
.stat-strip { display: flex; margin-top: 32px; border: 1px solid var(--color-border); border-radius: 12px; overflow: hidden; background: var(--color-bg-alt); }
.stat-strip-item { flex: 1; padding: 14px 16px; text-align: center; border-right: 1px solid var(--color-border); }
.stat-strip-item:last-child { border-right: none; }
.stat-strip-item .sv { font-family: var(--font-mono); font-size: 20px; font-weight: 800; background: var(--brand-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.stat-strip-item .sl { font-size: 11px; color: var(--text-secondary); font-weight: 600; margin-top: 2px; letter-spacing: 0.5px; }

/* =========================================
   Section 1: Hero
========================================= */
.s-hero { flex-direction: column; background: var(--color-bg-main); z-index: 2; }

.hero-bg {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: -1;
    background-image: radial-gradient(var(--color-border) 1px, transparent 1px);
    background-size: 40px 40px; opacity: 0.5;
    mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black 30%, transparent 80%);
}

.hero-official-strip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 700;
    color: var(--brand-purple, #7C3AED);
    margin: 16px 0 24px;
    letter-spacing: .01em;
}
.hero-official-strip i { font-size: 14px; }
.hero-official-dot { color: var(--text-secondary); font-weight: 400; }

.hero-title { font-size: 72px; font-weight: 900; letter-spacing: -2px; margin-bottom: 8px; color: var(--text-primary); line-height: 1.1; }
.dynamic-wrapper { display: flex; justify-content: center; height: 90px; overflow: hidden; margin-bottom: 24px; }
.dynamic-text { font-size: 72px; font-weight: 900; letter-spacing: -2px; animation: slideUpFade 1s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

.hero-desc { font-size: 18px; color: var(--text-secondary); max-width: 650px; text-align: center; line-height: 1.6; margin-bottom: 40px; font-weight: 500; }
.hero-actions { display: flex; gap: 16px; justify-content: center; margin-bottom: 32px; }

.platform-badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.p-badge {
    display: flex; align-items: center; gap: 14px; padding: 14px 22px; border-radius: 14px;
    background: var(--color-white); border: 1px solid var(--color-border);
    transition: var(--transition); cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04); min-width: 160px;
}
.p-badge .pb-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; transition: var(--transition); }
.p-badge .pb-text { display: flex; flex-direction: column; gap: 2px; }
.p-badge .pb-name { font-size: 14px; font-weight: 800; color: var(--text-primary); line-height: 1; }
.p-badge .pb-sub  { font-size: 11px; font-weight: 500; color: var(--text-secondary); }
.p-badge:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(0,0,0,0.1); border-color: transparent; }
.p-badge.win:hover { background: #EFF6FF; border-color: #BFDBFE; }
.p-badge.win:hover .pb-icon { background: #DBEAFE; color: #1D4ED8; }
.p-badge.mac:hover { background: #F5F5F7; }
.p-badge.mac:hover .pb-icon { background: #E5E7EB; color: #111827; }
.p-badge.and:hover { background: #F0FDF4; border-color: #BBF7D0; }
.p-badge.and:hover .pb-icon { background: #DCFCE7; color: #16A34A; }
.p-badge.ios:hover { background: #F5F5F7; }
.p-badge.ios:hover .pb-icon { background: #E5E7EB; color: #111827; }
.p-badge.lnx:hover { background: #FEFCE8; border-color: #FDE68A; }
.p-badge.lnx:hover .pb-icon { background: #FEF9C3; color: #CA8A04; }

.scroll-down { position: absolute; bottom: 40px; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--color-border); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: var(--transition); color: var(--text-secondary); background: white; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.scroll-down:hover { background: var(--brand-blue); color: var(--color-white); border-color: var(--brand-blue); transform: translateY(5px); }

@keyframes slideUpFade { 0% { transform: translateY(80px); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }

/* =========================================
   Section 2: Rules Engine
========================================= */
.s-rules { background: var(--color-bg-alt); }

.terminal-container { position: relative; width: 100%; max-width: 520px; z-index: 2; }
.terminal-box { background: #0F172A; border-radius: 16px; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25); overflow: hidden; border: 1px solid #1E293B; }
.term-header { padding: 12px 16px; display: flex; gap: 8px; border-bottom: 1px solid #1E293B; background: #020617; }
.term-dot { width: 12px; height: 12px; border-radius: 50%; }
.term-dot.r { background: #EF4444; } .term-dot.y { background: #F59E0B; } .term-dot.g { background: #10B981; }
.term-body { padding: 24px; font-family: var(--font-mono); font-size: 13px; line-height: 1.8; color: #94A3B8; }
.c-key { color: #38BDF8; font-weight: 800; } .c-val { color: #A7F3D0; } .c-cmt { color: #64748B; }

.log-box { position: absolute; bottom: -20px; right: -40px; background: rgba(255,255,255,0.85); backdrop-filter: blur(12px); border: 1px solid var(--color-border); border-radius: 12px; padding: 16px; box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1); font-family: var(--font-mono); font-size: 11px; z-index: 3; width: 300px; }
.log-line { margin-bottom: 8px; color: #475569; display: flex; gap: 8px; align-items: center; }
.log-line span.tag { background: #EFF6FF; color: var(--brand-blue); padding: 2px 6px; border-radius: 4px; font-weight: 800; }
.log-line span.tag.red { background: #FEF2F2; color: #EF4444; }

.route-tag { position: absolute; background: var(--color-white); padding: 8px 12px; border-radius: 8px; font-family: var(--font-mono); font-size: 12px; font-weight: 800; border: 1px solid var(--color-border); box-shadow: 0 10px 15px -3px rgba(0,0,0,0.05); z-index: 4; display: flex; align-items: center; gap: 8px; color: var(--brand-blue); }
.rt-1 { top: 30px; right: -20px; animation: floatSync 5s ease-in-out infinite; }

@keyframes floatSync { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* =========================================
   Section 3: Ecosystem
========================================= */
.s-ecosystem { background: var(--color-white); }

.device-network { position: relative; width: 450px; height: 450px; border: 1px solid var(--color-border); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.device-network::before { content: ''; position: absolute; width: 250px; height: 250px; border: 1px solid var(--brand-blue); border-radius: 50%; border-style: dashed; opacity: 0.3; animation: spin 20s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }

.core-node { width: 90px; height: 90px; background: var(--color-black); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-size: 32px; z-index: 10; box-shadow: 0 0 20px var(--brand-glow); border: 2px solid #333; }

.d-node { position: absolute; background: var(--color-white); border: 1px solid var(--color-border); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; width: 100px; height: 100px; transition: var(--transition); box-shadow: 0 4px 6px rgba(0,0,0,0.02); z-index: 5; }
.d-node i { font-size: 32px; color: var(--text-primary); }
.d-node span { font-size: 12px; font-weight: 700; }
.d-node:hover { transform: scale(1.1); border-color: var(--brand-blue); box-shadow: 0 10px 20px var(--brand-glow); color: var(--brand-blue); }
.d-node:hover i { color: var(--brand-blue); }

.proto-badge { position: absolute; font-size: 11px; font-weight: 800; padding: 6px 10px; border-radius: 12px; background: var(--color-white); border: 1px solid var(--color-border); color: var(--text-secondary); z-index: 4; box-shadow: 0 4px 6px rgba(0,0,0,0.02); }
.pb-1 { top: 10%; left: 15%; animation: floatSync 4s infinite 1s; }
.pb-2 { bottom: 15%; right: 10%; animation: floatSync 5s infinite 2s; }
.pb-3 { top: 20%; right: 20%; animation: floatSync 4.5s infinite 0.5s; }

.dn-1 { top: -25px; left: 50%; margin-left: -50px; }
.dn-2 { bottom: -25px; left: 50%; margin-left: -50px; }
.dn-3 { left: -25px; top: 50%; margin-top: -50px; }
.dn-4 { right: -25px; top: 50%; margin-top: -50px; }

/* =========================================
   Section 4: Dashboard & API
========================================= */
.s-dashboard { background: var(--color-bg-alt); }

.mock-dashboard { width: 100%; max-width: 550px; background: white; border-radius: 16px; box-shadow: 0 25px 50px -12px rgba(0,0,0,0.1); border: 1px solid var(--color-border); overflow: hidden; display: flex; flex-direction: column; }
.md-header { padding: 16px 24px; border-bottom: 1px solid var(--color-border); display: flex; justify-content: space-between; align-items: center; background: #F8FAFC; }
.md-title { font-weight: 800; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.md-body { padding: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.md-card { background: #F1F5F9; border-radius: 12px; padding: 16px; }
.md-card-title { font-size: 11px; color: var(--text-secondary); font-weight: 700; text-transform: uppercase; margin-bottom: 12px; }

.chart-pie { width: 60px; height: 60px; border-radius: 50%; background: conic-gradient(var(--brand-blue) 0% 60%, var(--brand-purple) 60% 85%, #CBD5E1 85% 100%); margin: 0 auto; }
.chart-bars { display: flex; align-items: flex-end; gap: 4px; height: 60px; }
.bar { flex: 1; background: var(--brand-blue); border-radius: 4px 4px 0 0; }
.bar:nth-child(1) { height: 40%; opacity: 0.5; } .bar:nth-child(2) { height: 70%; opacity: 0.8; } .bar:nth-child(3) { height: 100%; } .bar:nth-child(4) { height: 60%; opacity: 0.6; }

/* =========================================
   Section 5: Dense Features Grid
========================================= */
.s-features { background: var(--color-white); flex-direction: column; justify-content: center; }

.premium-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 230px); gap: 24px; width: 100%; max-width: 1200px; padding: 0 40px; margin-top: 40px; }

.feat-card { background: var(--color-bg-alt); border: 1px solid var(--color-border); border-radius: 16px; padding: 32px; display: flex; flex-direction: column; transition: var(--transition); position: relative; overflow: hidden; }
.feat-card:hover { border-color: var(--brand-blue); box-shadow: 0 10px 30px var(--brand-glow); transform: translateY(-4px); background: white; }
.feat-card i { font-size: 28px; margin-bottom: auto; color: var(--brand-blue); transition: var(--transition); }
.feat-card:hover i { transform: scale(1.1); color: var(--brand-purple); }
.feat-card h3 { font-size: 17px; font-weight: 800; margin-bottom: 10px; color: var(--text-primary); }
.feat-card p  { font-size: 13px; color: var(--text-secondary); line-height: 1.6; font-weight: 500; }

.card-dark { background: var(--color-black); color: var(--color-white); border-color: var(--color-black); }
.card-dark:hover { background: #18181B; border-color: #27272A; box-shadow: 0 15px 30px rgba(0,0,0,0.2); }
.card-dark h3 { color: var(--color-white); }
.card-dark p  { color: #A1A1AA; }
.card-dark i  { background: var(--brand-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.card-wide { grid-column: span 2; }

.card-tag { position: absolute; top: 32px; right: 32px; font-size: 11px; font-weight: 800; border: 1px solid var(--color-border); padding: 4px 10px; border-radius: 100px; color: var(--text-secondary); background: white; }
.card-dark .card-tag { border-color: #333; color: #A1A1AA; background: transparent; }

/* =========================================
   Footer Section (由 layout.js 注入)
========================================= */
.s-footer { background: var(--color-black); color: var(--color-white); flex-direction: column; justify-content: center; position: relative; padding-top: 80px; }

.trust-numbers { display: flex; justify-content: center; gap: 120px; margin-bottom: 60px; text-align: center; border-bottom: 1px solid #27272A; padding-bottom: 50px; width: 100%; max-width: 1000px; }
.num-item h4 { font-family: var(--font-mono); font-size: 56px; font-weight: 800; margin-bottom: 8px; background: var(--brand-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.num-item p  { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: #A1A1AA; }

.cta-content { text-align: center; max-width: 700px; margin-bottom: 60px; }
.cta-content h2 { font-size: 48px; font-weight: 900; letter-spacing: -1.5px; margin-bottom: 16px; line-height: 1.2; }
.cta-content p  { font-size: 16px; color: #A1A1AA; margin-bottom: 32px; line-height: 1.6; }

.dl-group { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }
.btn-white { background: var(--color-white); color: var(--color-black); padding: 14px 28px; border-radius: 8px; font-weight: 800; display: inline-flex; align-items: center; gap: 10px; transition: var(--transition); }
.btn-white:hover { background: #E5E7EB; transform: translateY(-2px); }
.btn-dark-outline { background: #18181B; color: var(--color-white); border: 1px solid #3F3F46; padding: 14px 28px; border-radius: 8px; font-weight: 600; display: inline-flex; align-items: center; gap: 10px; transition: var(--transition); }
.btn-dark-outline:hover { background: #27272A; border-color: #52525B; color: var(--brand-cyan); }

.footer-expanded { width: 100%; max-width: 1200px; display: grid; grid-template-columns: 2.5fr 1fr 1fr 1fr; gap: 40px; padding: 0 40px 40px; margin-top: auto; border-top: 1px solid #27272A; padding-top: 50px; }
.f-col h5 { font-size: 15px; font-weight: 800; color: var(--color-white); margin-bottom: 24px; }
.f-col ul { display: flex; flex-direction: column; gap: 14px; }
.f-col a  { color: #A1A1AA; font-size: 14px; font-weight: 500; transition: color 0.2s; }
.f-col a:hover { color: var(--brand-cyan); }
.f-brand p { color: #A1A1AA; font-size: 14px; line-height: 1.7; margin-top: 16px; max-width: 350px; }

.footer-absolute { width: 100%; max-width: 1200px; padding: 20px 40px 30px; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #27272A; font-size: 13px; color: #71717A; }

/* =========================================
   .site-footer — 普通页面的常规页脚（非全屏 snap）
   与 .s-footer 共用颜色变量，去掉全屏定位逻辑
========================================= */
.site-footer {
    background: var(--color-black);
    color: var(--color-white);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 80px 40px 0;
    position: relative;
}
/* 普通页面中 trust-numbers / cta-content 不需要固定宽度约束 */
.site-footer .trust-numbers { width: 100%; }
.site-footer .footer-expanded { margin-top: 0; }

/* =========================================
   Responsive — Tablet (≤1024px)
========================================= */
@media (max-width: 1024px) {
    .split-layout { flex-direction: column; text-align: center; gap: 32px; padding: 0 24px; }
    .split-text { order: 2; width: 100%; }
    .split-visual { order: 1; height: 320px; width: 100%; }
    .list-items li { justify-content: flex-start; }
    .premium-grid { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; height: 62vh; overflow-y: auto; scrollbar-width: none; padding: 0 24px; }
    .premium-grid::-webkit-scrollbar { display: none; }
    .card-wide { grid-column: span 1; }
    .footer-expanded { grid-template-columns: 1fr 1fr; gap: 24px; padding: 0 24px 32px; }
    .trust-numbers { gap: 60px; }
}

/* =========================================
   Responsive — Mobile (≤768px)
========================================= */
@media (max-width: 768px) {
    /* Navbar */
    .navbar { height: 60px; padding: 0 20px; }
    .nav-inner { max-width: 100%; }
    .snap-section { padding-top: 60px; overflow-y: auto; -webkit-overflow-scrolling: touch; align-items: flex-start; justify-content: flex-start; padding-bottom: 40px; }
    .logo { font-size: 20px; }
    .nav-links { display: none; }
    .lang-switch { display: none; }
    .nav-right .btn.btn-black { display: none; }
    /* 汉堡按钮显示 */
    .nav-hamburger { display: flex; }
    /* 移动端菜单切换为 block（open 类控制可见性与交互） */
    .mobile-menu { display: block; }
    /* 遮罩：display:block 但保持 pointer-events:none，不干扰页面交互 */
    .mobile-menu-overlay { display: block; pointer-events: none; }

    /* Hero */
    .s-hero { justify-content: flex-start; align-items: center; padding: 80px 20px 20px; gap: 0; }
    .hero-official-strip { font-size: 13px; margin: 12px 0 20px; }
    .hero-title { font-size: 36px; letter-spacing: -1px; margin-bottom: 4px; text-align: center; width: 100%; }
    .dynamic-wrapper { height: 52px; margin-bottom: 16px; width: 100%; }
    .dynamic-text { font-size: 38px; letter-spacing: -1px; }
    .hero-desc { font-size: 14px; max-width: 100%; padding: 0; margin-bottom: 20px; line-height: 1.5; }
    .hero-actions { flex-direction: column; align-items: center; gap: 10px; margin-bottom: 20px; width: 100%; padding: 0; }
    .hero-actions .btn { width: 100%; max-width: 320px; justify-content: center; }
    .platform-badges { gap: 10px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; justify-items: stretch; width: 100%; }
    .p-badge { min-width: unset; padding: 10px 14px; gap: 10px; border-radius: 12px; }
    .p-badge .pb-icon { width: 34px; height: 34px; font-size: 16px; border-radius: 8px; }
    .p-badge .pb-name { font-size: 13px; }
    .p-badge .pb-sub  { font-size: 10px; }
    .scroll-down { display: none; }

    /* Split Sections */
    .split-layout { gap: 0; padding: 20px 20px 0; align-items: flex-start; }
    .split-visual { display: none; }
    .split-text { order: 1; width: 100%; text-align: left; }
    .section-title { font-size: 28px; letter-spacing: -0.5px; margin-bottom: 14px; }
    .section-desc { font-size: 14px; margin-bottom: 20px; line-height: 1.6; }
    .sec-label { font-size: 11px; margin-bottom: 10px; }
    .list-items li { margin-bottom: 14px; padding-top: 14px; gap: 12px; font-size: 14px; }
    .list-items li i { padding: 5px; font-size: 12px; }
    .list-items li span[style] { font-size: 12px !important; }
    .stat-strip { margin-top: 20px; }
    .stat-strip-item { padding: 10px 8px; }
    .stat-strip-item .sv { font-size: 16px; }
    .stat-strip-item .sl { font-size: 10px; }

    /* Features Grid */
    .s-features .anim-up { padding: 0 20px; }
    .premium-grid { grid-template-columns: 1fr; height: auto; overflow-y: visible; padding: 0 20px; gap: 12px; margin-top: 16px; }
    .feat-card { padding: 22px; }
    .feat-card i { font-size: 22px; }
    .feat-card h3 { font-size: 15px; }
    .feat-card p  { font-size: 12px; }
    .card-tag { font-size: 10px; top: 22px; right: 22px; }

    /* Dashboard */
    .mock-dashboard { display: none; }

    /* Footer */
    .s-footer { padding-top: 60px; }
    .trust-numbers { gap: 20px; flex-direction: row; flex-wrap: wrap; justify-content: center; margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid #27272A; width: 100%; }
    .num-item h4 { font-size: 32px; }
    .num-item p  { font-size: 10px; letter-spacing: 1px; }
    .cta-content { padding: 0 20px; margin-bottom: 32px; }
    .cta-content h2 { font-size: 28px; letter-spacing: -0.5px; margin-bottom: 12px; }
    .cta-content p  { font-size: 13px; margin-bottom: 20px; }
    .dl-group { flex-direction: column; align-items: center; gap: 10px; }
    .btn-white, .btn-dark-outline { width: 100%; max-width: 300px; justify-content: center; padding: 12px 20px; font-size: 14px; }
    .footer-expanded { grid-template-columns: 1fr 1fr; gap: 16px; padding: 24px 20px; }
    .f-col h5 { font-size: 13px; margin-bottom: 14px; }
    .f-col a  { font-size: 12px; }
    .f-col ul { gap: 10px; }
    .f-brand { display: none; }
    .footer-absolute { flex-direction: column; gap: 8px; text-align: center; padding: 16px 20px 24px; font-size: 11px; }
}

/* =========================================
   Responsive — Small Mobile (≤480px)
========================================= */
@media (max-width: 480px) {
    .hero-title { font-size: 30px; }
    .dynamic-text { font-size: 32px; }
    .platform-badges { grid-template-columns: 1fr 1fr; }
    .trust-numbers { flex-direction: column; gap: 12px; border-bottom: none; padding-bottom: 0; }
    .num-item h4 { font-size: 28px; }
    .footer-expanded { grid-template-columns: 1fr; }
}
