/* TideFlow · 站点样式（落地页 / 登录 / 购买 / 条款） */
:root {
  --bg: #0a0b0e;
  --bg-2: #0e1014;
  --panel: #101216;
  --panel-2: #14171d;
  --line: #232830;
  --line-2: #2d343f;
  --text: #d3dae3;
  --text-2: #a2adba;
  --mut: #78838f;
  --accent: #2fe0c8;
  --accent-2: #1aa897;
  --accent-soft: rgba(47, 224, 200, .1);
  --up: #2fbf8f;
  --down: #f0576b;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, input, select { font-family: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
::selection { background: rgba(47, 224, 200, .25); }
.container { width: min(1140px, calc(100% - 48px)); margin: 0 auto; }

/* ---------- nav ---------- */
.site-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 0 max(24px, calc((100vw - 1140px) / 2));
  background: rgba(10, 11, 14, .72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .055);
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font: 600 16px/1 var(--mono);
  letter-spacing: 3.5px;
  color: #eaf7f5;
}
.brand svg { flex: none; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-links a {
  padding: 7px 12px;
  border-radius: 6px;
  color: #9aa5b2;
  font-size: 13.5px;
  text-decoration: none;
}
.nav-links a:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: transform .15s, filter .15s, background .15s, border-color .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(180deg, #45e9d2, #22bda9);
  color: #052521;
  box-shadow: 0 10px 30px rgba(47, 224, 200, .18), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn-primary:hover { filter: brightness(1.06); }
.btn-ghost {
  border: 1px solid var(--line-2);
  color: #cfd8e3;
  background: rgba(255, 255, 255, .02);
}
.btn-ghost:hover { border-color: #3b4552; background: rgba(255, 255, 255, .05); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; border-radius: 6px; }
.btn-block { width: 100%; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 150px 0 40px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -30% -20% auto -20%;
  height: 900px;
  background:
    radial-gradient(46% 46% at 50% 34%, rgba(47, 224, 200, .16), transparent 70%),
    radial-gradient(30% 30% at 72% 12%, rgba(90, 140, 255, .1), transparent 70%),
    radial-gradient(34% 34% at 28% 20%, rgba(159, 124, 255, .09), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(60% 52% at 50% 34%, #000, transparent);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 2; text-align: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border: 1px solid rgba(47, 224, 200, .22);
  border-radius: 30px;
  background: rgba(47, 224, 200, .06);
  color: #8ceadb;
  font: 11px/1 var(--mono);
  letter-spacing: .8px;
}
.eyebrow i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.hero h1 {
  margin: 26px auto 20px;
  max-width: 900px;
  font-size: clamp(38px, 5.4vw, 66px);
  line-height: 1.08;
  letter-spacing: -1.5px;
  font-weight: 700;
  color: #f2f7fa;
}
.hero h1 .grad {
  background: linear-gradient(92deg, #8ef7e8 0%, #2fe0c8 42%, #9ff0e4 68%, #5a8cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  max-width: 660px;
  margin: 0 auto;
  color: #95a1af;
  font-size: 16.5px;
  line-height: 1.8;
}
.hero-actions { display: flex; justify-content: center; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 22px;
  color: #6f7b89;
  font: 11px/1 var(--mono);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: #3b4653; }

/* ---------- app preview ---------- */
.shot-wrap { position: relative; z-index: 2; margin: 54px auto 0; max-width: 1120px; }
.shot {
  position: relative;
  border-radius: 14px;
  border: 1px solid #2a313b;
  background: #0c0e12;
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .65), 0 0 0 1px rgba(47, 224, 200, .06), 0 0 120px rgba(47, 224, 200, .07);
}
.shot img { display: block; width: 100%; height: auto; }
.shot picture { display: block; }
.shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 62%, rgba(10, 11, 14, .55));
  pointer-events: none;
}
.shot-tag {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  border-radius: 7px;
  background: rgba(14, 17, 21, .92);
  border: 1px solid rgba(47, 224, 200, .28);
  color: #a9f2e7;
  font: 11px/1 var(--mono);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
  backdrop-filter: blur(6px);
}
.shot-tag b { color: #fff; font-weight: 600; }
.shot-tag .d { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.tag-1 { top: 24%; right: -18px; }
.tag-2 { top: 46%; left: -22px; }
.tag-3 { bottom: 12%; right: 8%; }

/* ---------- sections ---------- */
.section { padding: 96px 0; position: relative; }
section[id] { scroll-margin-top: 84px; }
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-eyebrow { color: #5fd8c7; font: 11px/1 var(--mono); letter-spacing: 3px; text-transform: uppercase; }
.section-head h2 {
  margin: 14px 0 10px;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.25;
  letter-spacing: -.6px;
  color: #f0f5f9;
}
.section-head p { margin: 0; color: #8a95a2; font-size: 15px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card {
  position: relative;
  padding: 24px 22px 22px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(180deg, #12151a, #0f1115);
  transition: border-color .2s, transform .2s;
  overflow: hidden;
}
.card:hover { border-color: #323b47; transform: translateY(-2px); }
.card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 160px; height: 1px;
  background: linear-gradient(90deg, rgba(47, 224, 200, .5), transparent);
  opacity: 0;
  transition: opacity .2s;
}
.card:hover::before { opacity: 1; }
.card-ico {
  width: 38px; height: 38px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(47, 224, 200, .08);
  border: 1px solid rgba(47, 224, 200, .14);
  color: #6fe8d7;
  margin-bottom: 16px;
}
.card h3 { margin: 0 0 8px; font-size: 15.5px; color: #e8eef5; letter-spacing: .1px; }
.card p { margin: 0; color: #8792a0; font-size: 13.5px; line-height: 1.75; }

.strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #0e1014;
  overflow: hidden;
}
.strip div { padding: 22px 24px; border-right: 1px solid var(--line); }
.strip div:last-child { border-right: 0; }
.strip b { display: block; color: #e7eef5; font: 600 16px/1.3 var(--mono); letter-spacing: .5px; }
.strip span { color: #78838f; font-size: 12px; }

/* ---------- pricing ---------- */
.pricing-wrap { display: flex; justify-content: center; }
.price-card {
  width: min(560px, 100%);
  border: 1px solid rgba(47, 224, 200, .22);
  border-radius: 16px;
  background:
    radial-gradient(100% 80% at 50% 0%, rgba(47, 224, 200, .1), transparent 62%),
    linear-gradient(180deg, #12151a, #0d0f13);
  padding: 34px 34px 30px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
.price-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.price-name { color: #dfe8f1; font-size: 17px; font-weight: 600; }
.price-name small { display: block; margin-top: 3px; color: #78838f; font-size: 12px; font-weight: 400; }
.price-badge {
  padding: 4px 9px;
  border-radius: 4px;
  background: rgba(47, 224, 200, .1);
  border: 1px solid rgba(47, 224, 200, .25);
  color: #7df0df;
  font: 10px/1 var(--mono);
  letter-spacing: .5px;
}
.price-num { display: flex; align-items: baseline; gap: 8px; margin: 22px 0 4px; }
.price-num b { font: 700 46px/1 var(--mono); color: #f4f9fc; letter-spacing: -1px; }
.price-num span { color: #7c8794; font-size: 13px; }
.price-cny { color: #7c8794; font: 12px/1 var(--mono); }
.price-list { list-style: none; margin: 24px 0 26px; padding: 0; display: grid; gap: 10px; }
.price-list li { display: flex; align-items: center; gap: 9px; color: #aab5c2; font-size: 13.5px; }
.price-list svg { color: var(--accent); flex: none; }
.price-note { margin-top: 14px; color: #6f7b89; font-size: 11.5px; text-align: center; line-height: 1.7; }

/* ---------- faq ---------- */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 8px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #0f1115;
  padding: 0 18px;
}
.faq details[open] { border-color: #313a46; }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 26px 16px 0;
  color: #d5dde6;
  font-size: 14px;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 0; top: 14px;
  color: #6e7b89;
  font: 300 18px/1 var(--mono);
}
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 0 0 16px; color: #8893a0; font-size: 13.5px; }

/* ---------- cta band ---------- */
.cta-band {
  position: relative;
  padding: 64px 32px;
  border-radius: 18px;
  border: 1px solid rgba(47, 224, 200, .18);
  background:
    radial-gradient(80% 140% at 50% 0%, rgba(47, 224, 200, .12), transparent 60%),
    #0e1115;
  text-align: center;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .02) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .02) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(60% 100% at 50% 0%, #000, transparent 70%);
  pointer-events: none;
}
.cta-band h2 { margin: 0 0 10px; font-size: clamp(24px, 3vw, 34px); letter-spacing: -.5px; color: #f2f7fb; position: relative; z-index: 1; }
.cta-band p { margin: 0 0 26px; color: #8b96a3; position: relative; z-index: 1; }
.cta-band .hero-actions { margin-top: 0; position: relative; z-index: 1; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 30px; margin-top: 96px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.footer-brand p { margin: 14px 0 0; color: #6f7b89; font-size: 12.5px; line-height: 1.8; max-width: 300px; }
.footer-col h4 { margin: 0 0 12px; color: #b9c4d0; font-size: 12px; letter-spacing: 1px; font-weight: 600; }
.footer-col a, .footer-col button { display: block; margin: 0 0 8px; color: #7c8794; font-size: 12.5px; text-decoration: none; padding: 0; }
.footer-col a:hover, .footer-col button:hover { color: #cfe0dc; }
.footer-bottom {
  margin-top: 44px;
  padding-top: 18px;
  border-top: 1px solid #1a1f26;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: #5d6875;
  font-size: 11.5px;
  line-height: 1.7;
}
.risk { color: #5d6875; font-size: 11px; max-width: 520px; }

/* ---------- auth pages ---------- */
.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
}
.auth-side {
  position: relative;
  padding: 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid var(--line);
  overflow: hidden;
  background:
    radial-gradient(80% 60% at 20% 10%, rgba(47, 224, 200, .14), transparent 60%),
    radial-gradient(60% 50% at 90% 80%, rgba(90, 140, 255, .09), transparent 60%),
    #0b0d10;
}
.auth-side::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(70% 70% at 30% 20%, #000, transparent);
  pointer-events: none;
}
.auth-side > * { position: relative; z-index: 1; }
.auth-copy h1 { margin: 0 0 18px; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.18; letter-spacing: -1px; color: #f0f7fa; }
.auth-copy h1 em { font-style: normal; background: linear-gradient(92deg, #8ef7e8, #2fe0c8 60%, #5a8cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-copy p { max-width: 440px; color: #8d99a7; font-size: 14.5px; line-height: 1.8; }
.auth-points { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 13px; }
.auth-points li { display: flex; align-items: center; gap: 10px; color: #b6c1ce; font-size: 13.5px; }
.auth-points svg { color: #5fe0cf; flex: none; }
.auth-mini { display: flex; gap: 26px; margin-top: 42px; }
.auth-mini div { color: #6f7b89; font: 10.5px/1.6 var(--mono); }
.auth-mini b { display: block; color: #dfe9f2; font-size: 16px; font-weight: 600; letter-spacing: .5px; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-card { width: min(400px, 100%); }
.auth-card > .brand { justify-content: center; margin-bottom: 34px; }
.auth-title { margin: 0 0 6px; font-size: 22px; letter-spacing: -.3px; color: #eef4fa; text-align: center; }
.auth-sub { margin: 0 0 26px; color: #7c8794; font-size: 12.5px; text-align: center; }
.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d0f13;
  margin-bottom: 20px;
}
.tabs button {
  height: 32px;
  border-radius: 5px;
  color: #8b96a3;
  font-size: 13px;
}
.tabs button.active { background: #171b21; color: #eaf2f8; box-shadow: inset 0 0 0 1px #2c333e; }
.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 6px; color: #8c98a5; font-size: 12px; }
.input {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border-radius: 7px;
  border: 1px solid var(--line-2);
  background: #0c0e12;
  color: #e4ecf4;
  font-size: 13.5px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: #4f5a67; }
.input:focus { border-color: rgba(47, 224, 200, .55); box-shadow: 0 0 0 3px rgba(47, 224, 200, .08); }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 42px; }
.pw-toggle { position: absolute; right: 5px; top: 5px; width: 32px; height: 32px; display: grid; place-items: center; color: #6f7b89; border-radius: 5px; }
.pw-toggle:hover { color: #cfd8e3; background: rgba(255, 255, 255, .05); }
.form-msg { min-height: 18px; margin: 2px 0 8px; font-size: 12px; color: #f0818f; }
.form-msg.ok { color: #6fe3c8; }
.hint { margin-top: 14px; color: #6f7b89; font-size: 11.5px; line-height: 1.7; text-align: center; }
.hint a { color: #8fe9db; text-decoration: none; }
.hint a:hover { text-decoration: underline; }
.demo-box {
  margin: 16px 0 4px;
  padding: 12px 14px;
  border: 1px dashed #303845;
  border-radius: 8px;
  background: rgba(255, 255, 255, .015);
  font-size: 11.5px;
  color: #7c8794;
  line-height: 1.7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.demo-box b { color: #cfdae5; font-family: var(--mono); font-weight: 500; }
.demo-box button { color: #7df0df; font-size: 11.5px; white-space: nowrap; }
.auth-foot { margin-top: 26px; color: #5f6a77; font-size: 10.5px; text-align: center; line-height: 1.8; }
.auth-foot a { color: #7c8794; }

/* ---------- buy ---------- */
.buy-page { padding: 110px 0 60px; min-height: 100vh; }
.buy-head { max-width: 640px; margin-bottom: 34px; }
.buy-head h1 { margin: 8px 0 10px; font-size: clamp(28px, 3.4vw, 38px); letter-spacing: -.7px; color: #f2f7fb; }
.buy-head p { margin: 0; color: #85909d; font-size: 14px; }
.buy-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 18px; align-items: start; }
.panel {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #12151a, #0e1014);
  padding: 28px;
}
.panel h2 { margin: 0 0 4px; font-size: 15px; color: #dbe5ee; }
.panel .sub { color: #78838f; font-size: 12px; margin-bottom: 22px; }
.buy-plan { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.buy-plan .name { color: #e8eff6; font-size: 17px; font-weight: 600; }
.buy-plan .desc { color: #78838f; font-size: 12px; margin-top: 4px; }
.buy-price { text-align: right; }
.buy-price b { display: block; font: 700 34px/1 var(--mono); color: #f4f9fc; }
.buy-price span { color: #7c8794; font-size: 11px; font-family: var(--mono); }
.buy-feats { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.buy-feats li { display: flex; align-items: center; gap: 9px; color: #a6b1bd; font-size: 13px; }
.buy-feats svg { color: var(--accent); flex: none; }
.pay-methods { display: grid; gap: 10px; margin-bottom: 20px; }
.pay-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: #0d0f13;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.pay-opt:hover { border-color: #3a4552; }
.pay-opt.on { border-color: rgba(47, 224, 200, .55); background: rgba(47, 224, 200, .045); }
.pay-opt .radio { width: 15px; height: 15px; border-radius: 50%; border: 1px solid #46515e; display: grid; place-items: center; flex: none; }
.pay-opt.on .radio { border-color: var(--accent); }
.pay-opt.on .radio::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.pay-opt .pname { color: #dfe7ef; font-size: 13.5px; }
.pay-opt .pmeta { margin-left: auto; color: #6f7b89; font-size: 11px; }
.pay-opt svg { flex: none; }
.total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 0 18px; border-top: 1px solid var(--line); margin-top: 18px; }
.total span { color: #8b96a3; font-size: 12.5px; }
.total b { font: 700 26px/1 var(--mono); color: #f2f8fc; }
.buy-note { margin-top: 14px; color: #6f7b89; font-size: 11px; line-height: 1.7; text-align: center; }
.demo-tip {
  margin-top: 16px;
  padding: 10px 12px;
  border-radius: 7px;
  background: rgba(240, 179, 78, .07);
  border: 1px solid rgba(240, 179, 78, .22);
  color: #d8b06f;
  font-size: 11.5px;
  line-height: 1.7;
}

/* ---------- modal ---------- */
.modal-mask {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(4, 6, 8, .72);
  backdrop-filter: blur(6px);
}
.modal {
  width: min(430px, 100%);
  border: 1px solid #2d3541;
  border-radius: 14px;
  background: #12151a;
  padding: 26px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .6);
  animation: pop .18s ease;
}
@keyframes pop { from { transform: translateY(8px) scale(.98); opacity: 0; } }
.modal h3 { margin: 0 0 6px; color: #ecf3f9; font-size: 17px; }
.modal .msub { margin: 0 0 18px; color: #78838f; font-size: 12px; line-height: 1.7; }
.qr {
  width: 176px; height: 176px;
  margin: 4px auto 16px;
  padding: 10px;
  background: #fff;
  border-radius: 8px;
  display: grid;
  place-items: center;
}
.qr canvas { display: block; }
.pay-amount { text-align: center; color: #c6d2de; font: 12px/1 var(--mono); margin-bottom: 18px; }
.pay-amount b { color: #7df0df; font-size: 18px; }
.key-box {
  display: flex;
  gap: 8px;
  padding: 12px;
  border: 1px dashed rgba(47, 224, 200, .4);
  border-radius: 8px;
  background: rgba(47, 224, 200, .05);
  margin: 14px 0;
}
.key-box code {
  flex: 1;
  color: #a9f5e8;
  font: 600 14px/1.5 var(--mono);
  letter-spacing: 1px;
  word-break: break-all;
}
.key-box button { color: #7df0df; font-size: 11.5px; white-space: nowrap; }
.key-warn { color: #d8b06f; font-size: 11px; line-height: 1.7; margin: 0 0 18px; }

/* ---------- terms ---------- */
.legal { padding: 120px 0 70px; }
.legal .container { max-width: 760px; }
.legal h1 { margin: 0 0 6px; font-size: 32px; letter-spacing: -.5px; }
.legal .upd { color: #6f7b89; font: 11px/1 var(--mono); margin-bottom: 34px; }
.legal h2 { margin: 30px 0 8px; font-size: 16px; color: #dbe5ee; }
.legal p, .legal li { color: #8a95a2; font-size: 13.5px; line-height: 1.9; }
.legal ul { padding-left: 20px; }
.legal a { color: #8fe9db; }

/* ---------- AI 副驾 ---------- */
.nav-links a.on { color: #7df0df; background: rgba(47, 224, 200, .08); }
.ai-page { padding: 120px 0 20px; min-height: 100vh; }
.ai-hero { max-width: 760px; margin-bottom: 40px; }
.ai-hero h1 { margin: 20px 0 16px; font-size: clamp(34px, 4.4vw, 54px); line-height: 1.12; letter-spacing: -1.4px; color: #f1f7fa; }
.ai-hero h1 .grad { background: linear-gradient(92deg, #8ef7e8, #2fe0c8 55%, #5a8cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ai-hero p { max-width: 640px; color: #95a1af; font-size: 15.5px; line-height: 1.85; }
.ai-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.ai-chips span { padding: 5px 10px; border-radius: 4px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .02); color: #8a96a4; font: 10.5px/1 var(--mono); }

.ai-layout { display: grid; grid-template-columns: 390px 1fr; gap: 16px; align-items: start; }
.ai-config { padding: 26px; }
.ai-config h2 { margin: 0 0 4px; font-size: 17px; color: #e6eef6; }
.ai-config .sub { margin: 0 0 20px; color: #78838f; font-size: 11.5px; line-height: 1.7; }
.ai-netwarn { margin: -8px 0 18px; padding: 8px 10px; border-radius: 6px; background: rgba(240, 179, 78, .06); border: 1px solid rgba(240, 179, 78, .18); color: #c9a86f; font-size: 10.5px; line-height: 1.7; }
.prov-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.prov {
  text-align: left;
  padding: 11px 12px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: #0d0f13;
  transition: border-color .15s, background .15s;
}
.prov:hover { border-color: #3a4552; }
.prov.on { border-color: rgba(47, 224, 200, .55); background: rgba(47, 224, 200, .06); }
.prov b { display: block; color: #dfe8f1; font-size: 13px; font-weight: 600; }
.prov span { display: block; margin-top: 3px; color: #6f7b89; font-size: 10.5px; }
.prov.on span { color: #7fb7ae; }
.opt { color: #5f6b78; font-weight: 400; }
.ai-auto {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 2px 0 14px;
  padding: 9px 11px;
  border: 1px dashed var(--line-2);
  border-radius: 7px;
  color: #7f8a97;
  font-size: 11px;
}
.ai-auto b { color: #9ff0e4; font: 500 11px var(--mono); }
.ai-auto .linkbtn { font-size: 10.5px; }
.ai-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.ai-actions .linkbtn { font-size: 11.5px; }
.ai-status { min-height: 18px; margin: 10px 0 0; color: #7c8794; font-size: 11.5px; line-height: 1.6; }
.ai-status.ok { color: #6fe3c8; }
.ai-status.err { color: #f0818f; }
.ai-priv { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); color: #6f7b89; font-size: 11px; line-height: 1.75; }
.ai-priv b { color: #9aa5b2; font-weight: 600; }
.ai-priv ul { margin: 6px 0 0; padding-left: 16px; }
.ai-priv li { margin-bottom: 4px; }

.ai-chat { padding: 0; display: flex; flex-direction: column; height: 640px; overflow: hidden; }
.chat-head { flex: none; height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; border-bottom: 1px solid var(--line); }
.chat-model { display: flex; align-items: center; gap: 8px; color: #c9d4df; font-size: 12.5px; }
.chat-model b { font-weight: 600; color: #e4edf5; }
.chat-model .dot { width: 6px; height: 6px; border-radius: 50%; background: #4a5563; }
.chat-model .dot.on { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.ctx-chip { padding: 3px 7px; border-radius: 4px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2); color: #8894a1; font: 9.5px/1 var(--mono); }
.chat-msgs { flex: 1; overflow-y: auto; padding: 20px 18px; display: flex; flex-direction: column; gap: 14px; background: rgba(0, 0, 0, .12); }
.chat-welcome { margin: auto; text-align: center; max-width: 360px; color: #7c8794; }
.welcome-ico { width: 42px; height: 42px; margin: 0 auto 12px; border-radius: 12px; display: grid; place-items: center; background: rgba(47, 224, 200, .08); border: 1px solid rgba(47, 224, 200, .18); color: #6fe8d7; font-size: 18px; }
.chat-welcome h3 { margin: 0 0 8px; color: #dbe5ee; font-size: 15px; }
.chat-welcome p { margin: 0 0 6px; font-size: 12px; line-height: 1.8; }
.chat-welcome .tiny { color: #5f6b78; font-size: 11px; }
.msg { display: flex; flex-direction: column; gap: 5px; max-width: 86%; }
.msg.user { align-self: flex-end; align-items: flex-end; }
.msg.assistant { align-self: flex-start; }
.msg .role { font: 9.5px/1 var(--mono); color: #5f6b78; letter-spacing: .5px; }
.msg .bubble { padding: 10px 13px; border-radius: 10px; font-size: 13px; line-height: 1.8; color: #c7d2de; background: #151920; border: 1px solid #232a34; }
.msg.user .bubble { background: rgba(47, 224, 200, .1); border-color: rgba(47, 224, 200, .25); color: #d9f5ef; }
.msg .bubble h4 { margin: 6px 0 4px; font-size: 13px; color: #eef5fb; }
.msg .bubble code { padding: 1px 5px; border-radius: 3px; background: rgba(255, 255, 255, .07); font: 11px var(--mono); color: #9ff0e4; }
.msg .bubble .li { margin: 2px 0; }
.msg .bubble .err { color: #f0818f; }
.caret-blink { color: var(--accent); animation: blink 1s steps(2) infinite; }
.chat-prompts { flex: none; display: flex; gap: 6px; padding: 10px 14px 0; flex-wrap: wrap; }
.chat-prompts button { padding: 5px 9px; border-radius: 5px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .02); color: #8a96a4; font-size: 10.5px; }
.chat-prompts button:hover { border-color: rgba(47, 224, 200, .4); color: #9ff0e4; }
.chat-compose { flex: none; display: flex; gap: 8px; padding: 10px 14px 6px; align-items: flex-end; }
.chat-compose textarea { flex: 1; resize: none; min-height: 40px; max-height: 120px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line-2); background: #0c0e12; color: #dfe7ef; font: 12.5px/1.5 var(--sans); outline: none; }
.chat-compose textarea:focus { border-color: rgba(47, 224, 200, .5); box-shadow: 0 0 0 3px rgba(47, 224, 200, .07); }
.chat-compose .btn { height: 40px; padding: 0 18px; }
.chat-foot { flex: none; padding: 2px 14px 12px; color: #5a6572; font-size: 10px; }
.ai-how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 40px 0 60px; }.how-item { padding: 20px; border: 1px solid var(--line); border-radius: 10px; background: #0f1115; }
.how-item b { color: #4d5a68; font: 600 11px/1 var(--mono); letter-spacing: 1px; }
.how-item h4 { margin: 8px 0 6px; color: #dde6ef; font-size: 14px; }
.how-item p { margin: 0; color: #7c8794; font-size: 12px; line-height: 1.7; }

.ai-band {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 40px;
  align-items: center;
  padding: 42px;
  border: 1px solid rgba(47, 224, 200, .16);
  border-radius: 18px;
  background:
    radial-gradient(70% 120% at 0% 0%, rgba(47, 224, 200, .1), transparent 55%),
    radial-gradient(60% 100% at 100% 100%, rgba(90, 140, 255, .08), transparent 60%),
    #0d1014;
  overflow: hidden;
}
.ai-band h2 { margin: 12px 0 14px; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.22; letter-spacing: -.8px; color: #f0f6fa; }
.ai-band p { margin: 0; color: #8d99a7; font-size: 14px; line-height: 1.85; max-width: 480px; }
.ai-band .ai-chips { margin-top: 18px; }
.ai-band .hero-actions { gap: 10px; }
.ai-band-demo {
  padding: 16px;
  border: 1px solid #2a333f;
  border-radius: 14px;
  background: #0a0d11;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.abd-head { display: flex; align-items: center; gap: 7px; padding-bottom: 10px; border-bottom: 1px solid #1c222a; color: #9fb0bf; font: 10px/1 var(--mono); }
.abd-head .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.abd-tag { margin-left: auto; padding: 3px 6px; border-radius: 3px; background: rgba(47, 224, 200, .1); color: #7df0df; font-size: 8.5px; }
.abd-msg { margin-top: 10px; padding: 9px 11px; border-radius: 8px; font-size: 11.5px; line-height: 1.75; }
.abd-msg.user { margin-left: 34px; background: rgba(47, 224, 200, .1); border: 1px solid rgba(47, 224, 200, .2); color: #d6f3ed; }
.abd-msg.ai { background: #141920; border: 1px solid #232b36; color: #b9c5d2; }
.abd-msg.ai b { color: #e7eff7; font-weight: 600; }
.abd-input { margin-top: 12px; padding: 10px 11px; border-radius: 7px; border: 1px solid #232b36; background: #0b0e12; color: #56616e; font-size: 11px; }
.abd-foot { margin-top: 8px; color: #4f5a67; font-size: 9.5px; text-align: center; }

/* 嵌入工作台的 AI 桌面 */
body.embed .site-nav,
body.embed .ai-hero,
body.embed .ai-how,
body.embed .site-footer { display: none !important; }
body.embed { overflow: hidden; }
body.embed .ai-page { padding: 16px 16px 8px; }
body.embed .ai-layout { grid-template-columns: 340px 1fr; gap: 12px; }
body.embed .ai-config { padding: 18px; max-height: calc(100vh - 32px); overflow-y: auto; }
body.embed .ai-chat { height: calc(100vh - 32px); }
body.embed .ai-config h2 { font-size: 15px; }
body.embed .ai-config .sub { margin-bottom: 14px; }
body.embed .prov-grid { gap: 6px; }

@media (max-width: 960px) {
  .ai-band { grid-template-columns: 1fr; gap: 26px; padding: 28px; }
  .ai-layout { grid-template-columns: 1fr; }
  body.embed { overflow-y: auto; }
  body.embed .ai-page { height: auto; }
  body.embed .ai-chat { height: 70vh; }
  body.embed .ai-config { max-height: none; }
  .ai-chat { height: 560px; }
  .ai-how { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .ai-page { padding-top: 96px; }
  .ai-hero h1 { letter-spacing: -.8px; }
  .ai-config { padding: 20px; }
  .ai-chat { height: 520px; }
  .chat-prompts { display: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .features { grid-template-columns: 1fr 1fr; }
  .strip { grid-template-columns: 1fr 1fr; }
  .strip div:nth-child(2) { border-right: 0; }
  .strip div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .buy-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .tag-1, .tag-2 { display: none; }
}
@media (max-width: 620px) {
  body { font-size: 14px; }
  .container { width: calc(100% - 32px); }
  .site-nav { padding: 0 16px; }
  .hero { padding-top: 118px; }
  .hero h1 { letter-spacing: -.8px; }
  .hero-sub { font-size: 14.5px; }
  .features { grid-template-columns: 1fr; }
  .strip { grid-template-columns: 1fr; }
  .strip div { border-right: 0; border-bottom: 1px solid var(--line); }
  .strip div:last-child { border-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { flex-direction: column; }
  .price-card { padding: 26px 22px; }
  .modal { padding: 20px; }
  .auth-main { padding: 30px 18px; }
  .buy-page { padding-top: 96px; }
}
