/* ===== 设计变量（默认暗黑科技风） ===== */
:root,
:root[data-theme="dark"] {
  --bg: #060912;
  --bg-soft: #0c1322;
  --text: #e8edf7;
  --muted: #97a3bd;
  --accent: #22d3ee;
  --accent-2: #a855f7;
  --border: #1b2740;
  --card: rgba(255, 255, 255, 0.035);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.55);
  --radius: 16px;
  --maxw: 1120px;
  --font: "Inter", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "Orbitron", "Inter", system-ui, sans-serif;
}

[data-theme="light"] {
  --bg: #f4f7fc;
  --bg-soft: #e9eef7;
  --text: #10141f;
  --muted: #5b6678;
  --accent: #0891b2;
  --accent-2: #7c3aed;
  --border: #d6deea;
  --card: #ffffff;
  --shadow: 0 14px 36px rgba(20, 30, 60, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-weight: 300;
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  transition: background 0.3s ease, color 0.3s ease;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.grad {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ===== 导航 ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.nav__brand { font-family: var(--display); font-weight: 600; font-size: 24px; letter-spacing: 2px; color: var(--accent); line-height: 1; }
.nav__links { display: flex; gap: 26px; }
.nav__links a { color: var(--muted); font-weight: 400; font-size: 15px; transition: color 0.2s; }
.nav__links a:hover { color: var(--accent); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--card);
  color: var(--text); cursor: pointer; font-size: 16px;
}
.nav__burger { display: none; background: none; border: none; color: var(--text); font-size: 22px; cursor: pointer; }

/* ===== 首屏 ===== */
.hero { position: relative; overflow: hidden; padding: 130px 0 110px; }
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(120, 160, 220, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 160, 220, 0.08) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 40%, transparent 100%);
  z-index: 0;
}
.hero__glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; z-index: 0; }
.hero__glow--1 { width: 460px; height: 460px; background: #22d3ee; top: -120px; left: -80px; }
.hero__glow--2 { width: 420px; height: 420px; background: #a855f7; bottom: -140px; right: -60px; }
.hero__inner { text-align: center; position: relative; z-index: 1; }
.hero__eyebrow { color: var(--accent); font-weight: 500; letter-spacing: 3px; text-transform: uppercase; font-size: 13px; }
.hero__title { font-family: var(--display); font-size: clamp(38px, 7vw, 72px); line-height: 1.08; margin: 14px 0 20px; font-weight: 600; }
.hero__desc { color: var(--muted); max-width: 620px; margin: 0 auto 32px; font-size: 17px; font-weight: 300; }
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero__visual {
  margin-top: 56px; position: relative; overflow: hidden; isolation: isolate;
  border: 1px solid var(--border); border-radius: 20px; min-height: 280px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
}
.hero__visual::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: url('https://picsum.photos/seed/jiggrow-hero/1200/600');
  background-size: cover; background-position: center; filter: blur(8px) brightness(0.8); transform: scale(1.12);
}
.hero__visual::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(135deg, rgba(34,211,238,0.18), rgba(168,85,247,0.18)), rgba(6,9,18,0.55);
}
.hero__visual span { font-family: var(--display); font-size: clamp(16px, 2.4vw, 24px); letter-spacing: 1px; padding: 14px 24px; }

/* ===== 核心数据条 ===== */
.stats { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.stats__grid { display: flex; gap: 40px; justify-content: center; flex-wrap: wrap; padding: 30px 24px; }
.stats__grid div { display: flex; flex-direction: column; align-items: center; }
.stats__grid strong { font-family: var(--display); font-size: 30px; }
.stats__grid span { color: var(--muted); font-size: 13px; margin-top: 4px; }

/* ===== 按钮 ===== */
.btn { display: inline-block; padding: 13px 30px; border-radius: 999px; font-weight: 500; transition: transform 0.15s ease, box-shadow 0.2s ease; }
.btn--sm { padding: 8px 18px; font-size: 14px; border-radius: 999px; }
.btn--primary { background: linear-gradient(100deg, var(--accent), var(--accent-2)); color: #04121a; box-shadow: 0 10px 28px rgba(34, 211, 238, 0.35); }
.btn--primary:hover { transform: translateY(-2px); }
.btn--ghost { border: 1px solid var(--border); color: var(--text); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ===== 区块 ===== */
.section { padding: 96px 0; }
.section--soft { background: var(--bg-soft); }
.section__title { font-family: var(--display); font-size: clamp(26px, 4vw, 40px); font-weight: 500; margin-bottom: 44px; text-align: center; letter-spacing: 1px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 44px; gap: 16px; flex-wrap: wrap; }
.section__head .section__title { text-align: left; margin-bottom: 0; }
.section__more { color: var(--accent); font-weight: 500; font-size: 15px; white-space: nowrap; }
.section__more:hover { text-decoration: underline; }
.section__sub { color: var(--muted); max-width: 640px; margin: -24px auto 50px; text-align: center; font-size: 16px; font-weight: 300; }

/* ===== 关于 ===== */
.about { display: grid; grid-template-columns: 1.5fr 1fr; gap: 44px; align-items: center; }
.about__text p { color: var(--muted); margin-bottom: 16px; }
.about__text strong { color: var(--text); }
.about__list { list-style: none; margin-top: 20px; display: grid; gap: 12px; }
.about__list li { padding-left: 26px; position: relative; color: var(--muted); }
.about__list li::before { content: "▹"; position: absolute; left: 0; color: var(--accent); }
.about__panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.panel__row { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px dashed var(--border); }
.panel__row:last-child { border-bottom: none; }
.panel__row span { color: var(--muted); font-size: 14px; }
.panel__row b { font-size: 14px; }

/* ===== 产品卡片 ===== */
.products { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow); transition: transform 0.2s ease, border-color 0.2s ease;
  position: relative; overflow: hidden;
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius);
  background: radial-gradient(400px circle at 0% 0%, rgba(34, 211, 238, 0.12), transparent 40%);
  opacity: 0; transition: opacity 0.3s ease;
}
.card:hover { transform: translateY(-6px); border-color: var(--accent); }
.card:hover::after { opacity: 1; }
.card__icon { font-size: 26px; color: var(--accent); margin-bottom: 14px; }
.card h3 { font-size: 20px; font-weight: 500; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 14.5px; font-weight: 300; margin-bottom: 16px; }
.card p b { color: var(--text); }
.card__tags { display: flex; gap: 8px; flex-wrap: wrap; }
.card__tags span { font-size: 12px; color: var(--accent); border: 1px solid var(--border); padding: 4px 12px; border-radius: 999px; }

/* ===== 价值主张（三段式） ===== */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.pillar { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow); transition: transform 0.2s ease, border-color 0.2s ease; }
.pillar:hover { transform: translateY(-6px); border-color: var(--accent); }
.pillar__n { font-family: var(--display); color: var(--accent); font-size: 30px; font-weight: 600; }
.pillar h4 { font-size: 19px; font-weight: 500; margin: 14px 0 10px; }
.pillar p { color: var(--muted); font-size: 14.5px; font-weight: 300; }

/* ===== 资讯条 ===== */
.news-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* ===== FAQ ===== */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 14px; }
.faq__item { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 0 22px; transition: border-color 0.2s; }
.faq__item[open] { border-color: var(--accent); }
.faq__item summary { cursor: pointer; list-style: none; padding: 18px 0; font-size: 16px; font-weight: 500; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; color: var(--accent); font-size: 22px; font-weight: 400; transition: transform 0.2s; }
.faq__item[open] summary::after { content: "\2212"; }
.faq__item p { color: var(--muted); font-size: 14.5px; font-weight: 300; padding: 0 0 20px; }

/* ===== 技术 ===== */
.tech { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
.tech__points { display: grid; gap: 18px; }
.point { display: flex; gap: 16px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 18px 20px; }
.point__n { font-family: var(--display); color: var(--accent); font-size: 18px; font-weight: 700; }
.point h4 { font-size: 16px; font-weight: 500; margin-bottom: 4px; }
.point p { color: var(--muted); font-size: 14px; }
.tech__table { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.tech__table h4 { margin-bottom: 16px; font-size: 16px; font-weight: 500; }
.tech__table table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tech__table th, .tech__table td { text-align: left; padding: 11px 8px; border-bottom: 1px solid var(--border); }
.tech__table th { color: var(--accent); font-weight: 600; }
.tech__table td { color: var(--muted); }

/* ===== 应用（模糊配图背景） ===== */
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.app {
  position: relative; overflow: hidden; isolation: isolate;
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s;
  min-height: 170px; display: flex; flex-direction: column; justify-content: flex-end;
}
.app::before {
  content: ""; position: absolute; inset: -24px; z-index: -2;
  background-image: var(--img); background-size: cover; background-position: center;
  filter: blur(14px) saturate(1.1); transform: scale(1.18); opacity: 0.55;
}
.app::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(160deg, rgba(6, 9, 18, 0.35) 0%, rgba(6, 9, 18, 0.82) 100%);
}
.app:hover { transform: translateY(-5px); border-color: var(--accent); }
.app h4 { font-size: 17px; font-weight: 500; margin-bottom: 8px; }
.app p { color: var(--muted); font-size: 14px; font-weight: 300; }

/* ===== 资讯 ===== */
.news { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news__item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); transition: border-color 0.2s; }
.news__item:hover { border-color: var(--accent); }
.news__date { color: var(--accent); font-family: var(--display); font-size: 13px; letter-spacing: 1px; }
.news__item h4 { font-size: 16px; font-weight: 500; margin: 10px 0 10px; line-height: 1.4; }
.news__item p { color: var(--muted); font-size: 14px; }

/* ===== 联系 ===== */
.contact { text-align: center; }
.contact__desc { color: var(--muted); margin-bottom: 30px; }
.contact__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; max-width: 760px; margin: 0 auto 30px; }
.contact__grid div { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 20px; }
.contact__grid span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 6px; }
.contact__grid b { font-size: 15px; }
.contact__socials { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-top: 6px; }
.contact__socials a {
  width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 50%; color: var(--muted);
  background: var(--card); transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.contact__socials a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-3px); }
.contact__socials svg { width: 22px; height: 22px; display: block; }

/* ===== 页脚 ===== */
.footer { border-top: 1px solid var(--border); padding: 28px 0; }
.footer__inner { display: flex; justify-content: space-between; color: var(--muted); font-size: 14px; }

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

/* ===== 响应式 ===== */
@media (max-width: 860px) {
  .nav__links { position: absolute; top: 66px; right: 0; flex-direction: column; gap: 0; background: var(--bg); border: 1px solid var(--border); border-radius: 0 0 12px 12px; width: 190px; padding: 8px 0; display: none; }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 12px 20px; }
  .nav__burger { display: block; }
  .about, .tech { grid-template-columns: 1fr; }
  .products, .apps, .news, .news-strip, .pillars, .contact__grid { grid-template-columns: 1fr; }
  .section { padding: 66px 0; }
  .hero__metrics { gap: 26px; }
  .section__head { margin-bottom: 32px; }
  .hero__visual { min-height: 200px; }
}
