:root {
  --bg: #fbfbfd;
  --surface: #ffffff;
  --surface-2: #f4f5f8;
  --text: #1c1f26;
  --text-soft: #5a6172;
  --border: #e8eaf0;
  --brand: #5b6cff;
  --brand-2: #8a5bff;
  --shadow: 0 10px 40px rgba(28, 31, 38, 0.08);
  --radius: 18px;
  --maxw: 1120px;
  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

[data-theme="dark"] {
  --bg: #0e1016;
  --surface: #161922;
  --surface-2: #1e2230;
  --text: #eef1f7;
  --text-soft: #9aa3b5;
  --border: #262b38;
  --brand: #7c8aff;
  --brand-2: #a07bff;
  --shadow: 0 10px 50px rgba(0, 0, 0, 0.45);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
}

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

.section__head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section__tag {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: 14px;
}
.section__title { font-size: clamp(26px, 4vw, 40px); line-height: 1.25; font-weight: 800; }
.section__desc { margin-top: 14px; color: var(--text-soft); font-size: 16px; }

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
}
.nav__brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.nav__logo {
  width: 32px; height: 32px; border-radius: 9px;
  display: grid; place-items: center; color: #fff; font-weight: 800;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}
.nav__links { display: flex; gap: 28px; font-size: 15px; }
.nav__links a { color: var(--text-soft); transition: color 0.2s; }
.nav__links a:hover { color: var(--text); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  width: 38px; height: 38px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface);
  display: grid; place-items: center; color: var(--text-soft);
  transition: all 0.2s;
}
.theme-toggle:hover { color: var(--brand); border-color: var(--brand); }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
.theme-toggle svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nav__burger { display: none; flex-direction: column; gap: 4px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 110px 24px 90px; }
.hero__bg {
  position: absolute; inset: -20% -10% auto -10%; height: 620px; z-index: 0;
  background:
    radial-gradient(50% 60% at 20% 20%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%),
    radial-gradient(45% 55% at 85% 10%, color-mix(in srgb, var(--brand-2) 22%, transparent), transparent 70%);
  filter: blur(20px);
}
.hero__inner { position: relative; z-index: 1; max-width: 880px; margin: 0 auto; text-align: center; }
.hero__eyebrow {
  display: inline-block; font-size: 14px; font-weight: 600; letter-spacing: 1px;
  color: var(--brand); padding: 6px 14px; border: 1px solid var(--border);
  border-radius: 999px; background: var(--surface); margin-bottom: 22px;
}
.hero__title { font-size: clamp(30px, 5.4vw, 56px); font-weight: 850; line-height: 1.2; }
.grad { background: linear-gradient(120deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { margin: 24px auto 0; max-width: 620px; color: var(--text-soft); font-size: 17px; }
.hero__cta { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  padding: 13px 26px; border-radius: 12px; font-weight: 600; font-size: 15px;
  cursor: pointer; border: 1px solid transparent; transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn--primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 8px 22px color-mix(in srgb, var(--brand) 40%, transparent); }
.btn--primary:hover { transform: translateY(-2px); }
.btn--ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.hero__stats { margin-top: 56px; display: flex; gap: 44px; justify-content: center; flex-wrap: wrap; }
.stat { text-align: center; }
.stat strong { display: block; font-size: 34px; font-weight: 850; color: var(--text); }
.stat span { font-size: 13px; color: var(--text-soft); }

/* ---------- 关于我 ---------- */
.about { max-width: var(--maxw); margin: 0 auto; padding: 100px 24px; }
.about__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }
.about__text p { color: var(--text-soft); font-size: 16px; margin-bottom: 16px; }
.about__list { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.about__list li { padding: 8px 16px; background: var(--surface-2); border-radius: 10px; font-size: 14px; border: 1px solid var(--border); }
.about__card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.about__avatar {
  width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center;
  font-size: 28px; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); margin-bottom: 18px;
}
.about__card h3 { margin-bottom: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { padding: 7px 14px; font-size: 13px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text-soft); }

/* ---------- 产品 ---------- */
.products { max-width: var(--maxw); margin: 0 auto; padding: 40px 24px 100px; }
.products__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.product {
  background: var(--surface); border: 1px solid var(--border); border-radius: 22px;
  overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.product:hover { transform: translateY(-6px); box-shadow: 0 22px 60px rgba(28, 31, 38, 0.14); }
.product__thumb {
  height: 200px; display: grid; place-items: center; position: relative;
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent, var(--brand)) 16%, var(--surface)), color-mix(in srgb, var(--accent, var(--brand)) 4%, var(--surface)));
}
.product__body { padding: 26px 28px 30px; }
.product__kind { font-size: 12px; font-weight: 600; letter-spacing: 1px; color: var(--accent, var(--brand)); text-transform: uppercase; }
.product__name { font-size: 24px; font-weight: 800; margin: 6px 0 12px; }
.product__desc { color: var(--text-soft); font-size: 15px; }
.product__feats { list-style: none; margin: 16px 0 0; display: flex; flex-direction: column; gap: 9px; }
.product__feats li { position: relative; padding-left: 22px; font-size: 14px; color: var(--text); }
.product__feats li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent, var(--brand)); }
.product__links { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 18px; }
.product__links .link { font-size: 14px; font-weight: 600; color: var(--accent, var(--brand)); }
.product__links .link:hover { text-decoration: underline; }

/* 手机 mockup */
.mock--phone {
  width: 120px; height: 180px; border-radius: 22px; background: var(--surface);
  border: 3px solid var(--border); box-shadow: 0 14px 30px rgba(0,0,0,0.18);
  overflow: hidden; position: relative;
}
.mock__bar { height: 14px; background: var(--surface-2); }
.mock__body { padding: 12px 12px; }
.mock__tag { display: inline-block; font-size: 9px; font-weight: 700; color: #fff; background: var(--accent, var(--brand)); padding: 2px 7px; border-radius: 6px; }
.mock__row { height: 7px; border-radius: 4px; background: var(--surface-2); margin-top: 10px; }
.mock__row.short { width: 60%; }
.mock__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 12px; }
.mock__grid i { height: 26px; border-radius: 6px; background: color-mix(in srgb, var(--accent, var(--brand)) 22%, var(--surface-2)); }
.mock__list { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
.mock__list i { height: 16px; border-radius: 5px; background: var(--surface-2); }
.mock__canvas { height: 60px; border-radius: 8px; margin-top: 10px; background: color-mix(in srgb, var(--accent, var(--brand)) 12%, var(--surface-2)); position: relative; }
.mock__canvas .dot { position: absolute; border-radius: 50%; }
.mock__canvas .dot.a { width: 16px; height: 16px; background: var(--accent, var(--brand)); top: 12px; left: 16px; }
.mock__canvas .dot.b { width: 10px; height: 10px; background: var(--brand-2); top: 30px; left: 40px; }
.mock__canvas .dot.c { width: 13px; height: 13px; background: #ff7a59; top: 18px; left: 64px; }

/* ---------- 联系 ---------- */
.contact { padding: 30px 24px 100px; }
.contact__inner {
  max-width: 760px; margin: 0 auto; text-align: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 10%, var(--surface)), color-mix(in srgb, var(--brand-2) 10%, var(--surface)));
  border: 1px solid var(--border); border-radius: 26px; padding: 56px 30px;
}
.contact__links { margin-top: 28px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- 页脚 ---------- */
.footer { border-top: 1px solid var(--border); padding: 28px 24px; text-align: center; color: var(--text-soft); font-size: 14px; }

/* ---------- 滚动动画 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; }
  .products__grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav__links {
    position: fixed; top: 60px; right: 16px; left: 16px;
    flex-direction: column; gap: 0; background: var(--surface);
    border: 1px solid var(--border); border-radius: 14px; padding: 8px;
    box-shadow: var(--shadow); display: none;
  }
  .nav__links.open { display: flex; }
  .nav__links a { padding: 12px 10px; border-radius: 8px; }
  .nav__links a:hover { background: var(--surface-2); }
  .nav__burger { display: flex; }
  .hero { padding: 80px 20px 60px; }
  .hero__stats { gap: 28px; }
}
