﻿/* ==========================================================================
   模板 06 · 玻璃拟态 Bento
   特点：渐变光斑背景、毛玻璃卡片、胶囊悬浮导航、Bento 网格（含跨列重点格）
   ========================================================================== */

:root {
  --bg: #07070f;
  --text: #f4f4fb;
  --dim: #a9adc6;
  --mute: #7b8098;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-2: rgba(255, 255, 255, 0.1);
  --stroke: rgba(255, 255, 255, 0.14);
  --stroke-soft: rgba(255, 255, 255, 0.08);
  --violet: #7c5cff;
  --cyan: #22d3ee;
  --pink: #ff6ec7;
  --up: #35e0a1;
  --maxw: 1140px;
  --radius: 22px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.7;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { display: block; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.section { padding: 76px 0; }

/* 背景光斑 */
.mesh { position: fixed; inset: 0; z-index: -2; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; transition: transform 0.5s ease-out; }
.b1 { width: 46vw; height: 46vw; left: -10vw; top: -12vw; background: radial-gradient(circle, var(--violet), transparent 66%); }
.b2 { width: 40vw; height: 40vw; right: -8vw; top: 4vw; background: radial-gradient(circle, var(--cyan), transparent 66%); opacity: 0.36; }
.b3 { width: 52vw; height: 52vw; left: 22vw; bottom: -20vw; background: radial-gradient(circle, var(--pink), transparent 68%); opacity: 0.28; }
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.35;
  background-image: linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000, transparent 78%);
}

/* 控件 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 999px; font-size: 15px; font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-lg { padding: 14px 30px; font-size: 16px; }
.btn-sm { padding: 8px 16px; font-size: 13.5px; }
.btn-primary { background: linear-gradient(120deg, var(--violet), var(--cyan)); color: #0a0a14; box-shadow: 0 16px 34px -18px var(--violet); }
.btn-glass { background: var(--glass); border: 1px solid var(--stroke); color: var(--text); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.btn-glass:hover { background: var(--glass-2); }
.ghost-sm { font-size: 14px; color: var(--dim); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 15px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--text); background: var(--glass); border: 1px solid var(--stroke); backdrop-filter: blur(12px); }

/* 玻璃卡 */
.tile {
  position: relative; padding: 24px; border-radius: var(--radius);
  background: var(--glass); border: 1px solid var(--stroke-soft);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  overflow: hidden;
}
.tile::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent); opacity: 0.5; }
.tile-label { display: block; font-size: 12.5px; letter-spacing: 0.6px; color: var(--mute); margin-bottom: 12px; }
.tile h3 { font-size: 17px; margin-bottom: 8px; }
.tile p { font-size: 14.5px; color: var(--dim); }
.tile .ico { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 14px; border-radius: 13px; background: var(--glass-2); border: 1px solid var(--stroke); font-size: 18px; }
.up { color: var(--up); }
.fine { margin-top: 10px; font-size: 12px; color: var(--mute); }

/* 悬浮导航 */
.dock { position: sticky; top: 16px; z-index: 50; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }
.dock-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 10px 12px 10px 18px; border-radius: 999px;
  background: rgba(18, 18, 30, 0.6); border: 1px solid var(--stroke);
  backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow: 0 20px 44px -30px rgba(0, 0, 0, 0.9);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.2px; }
.prism { width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(135deg, var(--violet), var(--cyan) 55%, var(--pink)); box-shadow: 0 0 18px -4px var(--violet); }
.dock-links { display: flex; gap: 24px; }
.dock-links a { font-size: 14.5px; color: var(--dim); }
.dock-links a:hover { color: var(--text); }
.dock-cta { display: flex; align-items: center; gap: 12px; }
.burger { display: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--stroke); padding: 9px; }
.burger i { display: block; height: 2px; background: var(--text); border-radius: 2px; margin: 3px 0; transition: 0.25s; }
.burger.is-open i:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger.is-open i:nth-child(2) { opacity: 0; }
.burger.is-open i:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
.dock-mobile { display: none; margin-top: 10px; padding: 14px 18px; border-radius: 20px; background: rgba(18, 18, 30, 0.9); border: 1px solid var(--stroke); backdrop-filter: blur(18px); }
.dock-mobile a { display: block; padding: 11px 0; color: var(--dim); border-bottom: 1px solid var(--stroke-soft); }
.dock-mobile a:last-child { border-bottom: 0; }
.dock-mobile.is-open { display: block; }

/* Hero */
.hero { padding: 80px 0 42px; text-align: center; }
.hero h1 { margin: 24px 0 18px; font-size: clamp(32px, 5.4vw, 62px); font-weight: 800; line-height: 1.12; letter-spacing: -1.8px; }
.hero h1 em { font-style: normal; background: linear-gradient(110deg, var(--violet), var(--cyan) 48%, var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { max-width: 620px; margin: 0 auto; color: var(--dim); font-size: 17px; }
.hero-cta { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

/* Bento 主网格 */
.bento {
  display: grid; gap: 16px; margin: 34px 0 20px;
  grid-template-columns: repeat(4, 1fr);
  grid-template-areas:
    "a a b c"
    "d e e c";
}
.tile-a { grid-area: a; }
.tile-b { grid-area: b; }
.tile-c { grid-area: c; }
.tile-d { grid-area: d; }
.tile-e { grid-area: e; }
.tile-head { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: var(--mute); }
.live { display: inline-flex; align-items: center; gap: 6px; color: var(--up); font-weight: 700; letter-spacing: 1px; }
.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 4px rgba(53, 224, 161, 0.16); }
.dash { margin-top: 14px; }
.dash-num { display: flex; align-items: baseline; gap: 12px; }
.dash-num b { font-size: 30px; font-weight: 800; letter-spacing: -1px; }
.dash-num i { font-style: normal; font-size: 14px; }
.dash svg { width: 100%; height: 96px; margin-top: 8px; }
.tile-b { text-align: center; }
.ring { display: grid; place-items: center; width: 112px; height: 112px; margin: 6px auto 12px; border-radius: 50%; background: radial-gradient(circle at 50% 50%, rgba(18, 18, 30, 0.9) 60%, transparent 61%), conic-gradient(var(--cyan) 0 76%, rgba(255, 255, 255, 0.12) 76% 100%); }
.ring b { font-size: 22px; font-weight: 800; letter-spacing: -0.6px; }
.tile-b p { font-size: 12.5px; color: var(--mute); }
.tile-c { display: flex; flex-direction: column; }
.qr { width: 128px; height: 128px; margin: 4px auto 14px; padding: 8px; border-radius: 16px; background: #fff; }
.tile-btns { display: grid; gap: 8px; }
.devices { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.devices span { padding: 6px 12px; border-radius: 999px; font-size: 13px; background: var(--glass-2); border: 1px solid var(--stroke-soft); }

/* 特性网格 */
.head { max-width: 660px; margin: 0 auto 40px; text-align: center; }
.head h2 { margin: 18px 0 12px; font-size: clamp(24px, 3.6vw, 38px); font-weight: 800; letter-spacing: -0.8px; line-height: 1.28; }
.head p { color: var(--dim); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tiles .span2 { grid-column: span 2; }
.spark { display: flex; align-items: flex-end; gap: 5px; height: 54px; margin-top: 18px; }
.spark i { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, rgba(124, 92, 255, 0.9), rgba(34, 211, 238, 0.25)); }
.spark i:nth-child(1) { height: 32%; } .spark i:nth-child(2) { height: 54%; } .spark i:nth-child(3) { height: 42%; }
.spark i:nth-child(4) { height: 70%; } .spark i:nth-child(5) { height: 52%; } .spark i:nth-child(6) { height: 84%; }
.spark i:nth-child(7) { height: 60%; } .spark i:nth-child(8) { height: 92%; } .spark i:nth-child(9) { height: 68%; }
.spark i:nth-child(10) { height: 78%; } .spark i:nth-child(11) { height: 46%; } .spark i:nth-child(12) { height: 66%; }

/* 集成墙 */
.logos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.logos li {
  padding: 22px 16px; text-align: center; font-size: 14px; color: var(--dim);
  border-radius: 16px; background: var(--glass); border: 1px solid var(--stroke-soft);
  backdrop-filter: blur(14px); transition: background 0.2s ease, color 0.2s ease;
}
.logos li:hover { background: var(--glass-2); color: var(--text); }

/* 评价 */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.quotes p { font-size: 16px; color: var(--text); }
.quotes footer { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.avatar { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: var(--glass-2); border: 1px solid var(--stroke); font-weight: 700; }
.quotes b { display: block; font-size: 14.5px; }
.quotes em { font-style: normal; font-size: 12.5px; color: var(--mute); }

/* FAQ */
.faq { display: grid; gap: 12px; max-width: 820px; margin: 0 auto; }
.faq details { border-radius: 16px; background: var(--glass); border: 1px solid var(--stroke-soft); backdrop-filter: blur(16px); overflow: hidden; }
.faq details[open] { border-color: var(--stroke); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 22px; font-size: 16px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--cyan); font-weight: 700; transition: transform 0.25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 22px 20px; color: var(--dim); font-size: 15px; }

/* CTA */
.cta { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 30px; align-items: center; padding: 40px; margin: 20px 0 40px; }
.cta h2 { font-size: clamp(24px, 3.4vw, 36px); font-weight: 800; letter-spacing: -0.8px; }
.cta p { margin-top: 10px; color: var(--dim); }
.cta .hero-cta { justify-content: flex-start; }
.stats { display: grid; gap: 18px; }
.stats b { font-size: 32px; font-weight: 800; letter-spacing: -1px; background: linear-gradient(110deg, var(--violet), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { display: block; font-size: 13px; color: var(--mute); }

/* 页脚 */
.foot { padding: 30px 22px 60px; }
.foot-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px solid var(--stroke-soft); }
.foot nav { display: flex; gap: 20px; font-size: 14px; color: var(--dim); }
.foot nav a:hover { color: var(--text); }
.disclaimer { margin-top: 18px; font-size: 12.5px; color: var(--mute); }

/* 响应式 */
@media (max-width: 1024px) {
  .dock-links, .ghost-sm { display: none; }
  .burger { display: block; }
  .bento {
    grid-template-columns: repeat(2, 1fr);
    grid-template-areas: "a a" "b c" "e e" "d d";
  }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tiles .span2 { grid-column: span 2; }
  .logos { grid-template-columns: repeat(3, 1fr); }
  .cta { grid-template-columns: 1fr; padding: 30px; }
}
@media (max-width: 700px) {
  .hero { padding: 56px 0 30px; }
  .hero h1 { letter-spacing: -1px; }
  .section { padding: 56px 0; }
  .quotes { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .tiles { grid-template-columns: 1fr; }
  .tiles .span2 { grid-column: span 1; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .bento { grid-template-columns: 1fr; grid-template-areas: "a" "b" "c" "e" "d"; }
  .dock { top: 10px; padding: 0 16px; }
  .hero .btn, .cta .btn { width: 100%; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .cta { padding: 24px; }
}

/* =========================================================
   Mobile / desktop responsive fixes (appended)
   1) anchor jump offset under sticky header
   2) larger touch targets for nav & footer links
   3) 16px form controls to avoid iOS focus zoom
   ========================================================= */
:where(section, article, div, main)[id] {
  scroll-margin-top: 92px;
}

@media (max-width: 900px) {
  .mobile-nav a,
  .mobile-menu a,
  #mobile a,
  #dockMobile a,
  .menu a {
    min-height: 46px;
    display: flex;
    align-items: center;
  }

  .mobile-nav a + a,
  .mobile-menu a + a,
  #mobile a + a,
  #dockMobile a + a {
    border-top: 1px solid rgba(127, 127, 127, 0.18);
  }

  footer a,
  .footer a,
  .footer-grid a,
  .footer-links a,
  .site-footer a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
  }

  input,
  select,
  textarea {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  footer a,
  .footer a,
  .footer-grid a,
  .footer-links a,
  .site-footer a {
    min-height: 40px;
  }
}
/* force 16px form controls on small screens (prevents iOS focus zoom) */
@media (max-width: 900px) {
  input, select, textarea { font-size: 16px !important; }
}

/* ===== 变体 G · 紫红 (Prism) ===== */
html:root {
  --violet: #d946ef;
  --cyan: #a855f7;
  --pink: #22d3ee;
  --bg: #100616;
  --radius: 20px;
}

/* ===== 手机端两列优化：功能网格（Bento 卡 = 2 列排布） ===== */
@media (max-width: 520px) {
  #features .tiles { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  #features .tile { padding: 18px 14px; }
  #features .tile h3 { font-size: 15px; }
  #features .tile p { font-size: 13px; }
  #features .tile .ico { width: 36px; height: 36px; font-size: 16px; }
}

/* ===== 二维码格删除后：重排 Bento 网格 ===== */
.bento { grid-template-columns: repeat(3, 1fr); grid-template-areas: "a a b" "d e e"; }
@media (max-width: 1024px) {
  .bento { grid-template-columns: repeat(2, 1fr); grid-template-areas: "a a" "b b" "e e" "d d"; }
}
@media (max-width: 520px) {
  .bento { grid-template-columns: 1fr; grid-template-areas: "a" "b" "e" "d"; }
}

/* ===== 手机端整体压缩（方案A）：区块间距统一 40px ===== */
@media (max-width: 1024px) {
  .section { padding: 40px 0; }
  .foot { padding: 26px 22px 40px; }
}

/* ===== H1 上提：收紧首屏上方留白 ===== */
.hero { padding-top: 40px; }
.hero h1 { margin-top: 0; }
@media (max-width: 700px) { .hero { padding-top: 18px; } }

/* ===== 桌面端区块间距压缩（原来 76px，现 48px） ===== */
@media (min-width: 1025px) {
  .section { padding: 48px 0; }
  .foot { padding: 30px 22px 44px; }
}

/* ===== 导航下载按钮缩小 ===== */
.dock-cta .btn-glass { padding: 8px 16px; font-size: 14px; }

/* ===== 下载按钮「下载」两字保持左右排列，不换行 ===== */
.dock-cta .btn-glass { white-space: nowrap; }

/* ===== 手机端：删除首屏与产品预览之间的多余空白 ===== */
@media (max-width: 700px) {
  .bento { margin-top: 10px; }
}
