/* tobor.app 网站样式。颜色取自 Tobor 的图标（深蓝底板、青→蓝→紫的面罩光）。不加载任何外部字体和脚本。 */
:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-2: #f1f3f8;
  --border: #e3e6ee;
  --text: #121521;
  --text-2: #4d5466;
  --text-3: #7b8294;
  --accent: #3563e9;
  --accent-2: #6d5ce8;
  --glow-a: #3ee7ff;
  --glow-b: #4f8dff;
  --glow-c: #a78bfa;
  --hero-a: #16224a;
  --hero-b: #05070f;
  --ok: #138a4b;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 12px 32px rgba(16, 24, 40, .07);
  --font: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei UI", "Noto Sans SC", system-ui, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0e17;
    --surface: #121625;
    --surface-2: #171c2e;
    --border: #252b40;
    --text: #eef1f8;
    --text-2: #b4bbcc;
    --text-3: #8a91a5;
    --accent: #6b8cff;
    --accent-2: #9b8cff;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 var(--font); }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* 中英文：同一页里两种语言都有，按 <html data-lang> 只显示一种 */
html[data-lang="zh"] [lang="en"]:not(html), html[data-lang="en"] [lang="zh"]:not(html) { display: none !important; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------- 顶栏 ---------- */
.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--border); }
.nav .wrap { display: flex; align-items: center; gap: 22px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 18px; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.nav-links { display: flex; gap: 20px; margin-left: auto; font-size: 15px; }
.nav-links a { color: var(--text-2); }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.lang-btn { border: 1px solid var(--border); background: var(--surface); color: var(--text-2); border-radius: 999px;
  padding: 4px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.lang-btn:hover { color: var(--text); }
@media (max-width: 720px) { .nav-links .hide-sm { display: none; } .nav-links { gap: 14px; } }

/* ---------- 首屏 ---------- */
.hero { background: radial-gradient(1200px 500px at 70% -10%, rgba(79, 141, 255, .35), transparent 60%),
  linear-gradient(160deg, var(--hero-a), var(--hero-b)); color: #eef2ff; padding: 84px 0 92px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.25fr .75fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.12; margin: 0 0 18px; letter-spacing: -.01em; }
.hero h1 .glow { background: linear-gradient(90deg, var(--glow-a), var(--glow-b) 55%, var(--glow-c));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 19px; color: #c6cde4; margin: 0 0 30px; max-width: 34em; }
.hero-art { justify-self: center; position: relative; }
.hero-art img { width: min(300px, 70vw); height: auto; aspect-ratio: 1; border-radius: 22%; box-shadow: 0 30px 80px rgba(62, 231, 255, .18), 0 10px 30px rgba(0, 0, 0, .5); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 12px; font-weight: 600;
  font-size: 15px; border: 1px solid transparent; }
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn.primary { background: linear-gradient(90deg, var(--glow-b), var(--accent-2)); color: #fff; }
.btn.ghost { border-color: rgba(255, 255, 255, .28); color: #eef2ff; }
.btn.soft { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px;
  background: rgba(62, 231, 255, .14); color: #9fefff; border: 1px solid rgba(62, 231, 255, .3); margin-bottom: 18px; }
@media (max-width: 820px) {
  .hero { padding: 56px 0 64px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 32px; }
  .hero-art { order: -1; }
  .hero-art img { width: 132px; }
}

/* ---------- 段落 ---------- */
section { padding: 84px 0; }
section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.2; margin: 0 0 14px; letter-spacing: -.01em; }
h3 { font-size: 19px; margin: 0 0 8px; }
.sub { color: var(--text-2); font-size: 18px; max-width: 40em; margin: 0 0 40px; }

.product-head { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.product-head img { width: 56px; height: 56px; border-radius: 22%; }
.product-head .tag { font-size: 13px; color: var(--text-3); }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid, .grid.two { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 22px 20px; }
section.alt .card { background: var(--bg); }
.card .ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 19px;
  background: linear-gradient(135deg, rgba(62, 231, 255, .16), rgba(167, 139, 250, .16)); margin-bottom: 12px; }
.card p { margin: 0; color: var(--text-2); font-size: 15px; }

/* 两个产品并排的总览卡片 */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .duo { grid-template-columns: 1fr; } }
.duo .card { padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.duo .card img { width: 52px; height: 52px; border-radius: 22%; }
.duo .card .more { margin-top: auto; font-weight: 600; }

/* 示例对话 */
.demo { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.demo .row { display: flex; margin: 10px 0; }
.demo .me { justify-content: flex-end; }
.bubble { max-width: 82%; padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.5; }
.me .bubble { background: linear-gradient(90deg, var(--glow-b), var(--accent-2)); color: #fff; border-bottom-right-radius: 6px; }
.bot .bubble { background: var(--surface-2); color: var(--text); border-bottom-left-radius: 6px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-top: 44px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding-left: 28px; position: relative; margin: 10px 0; color: var(--text-2); }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--ok); font-weight: 700; }

/* 价格 */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 980px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .plans { grid-template-columns: 1fr; } }
.plan { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.plan .name { font-weight: 700; font-size: 18px; }
.plan .price { font-size: 34px; font-weight: 750; margin: 8px 0 2px; }
.plan .price small { font-size: 15px; font-weight: 500; color: var(--text-3); }
.plan .year { font-size: 13px; color: var(--text-3); min-height: 20px; }
.plan ul { list-style: none; padding: 0; margin: 16px 0 0; font-size: 14px; color: var(--text-2); }
.plan li { padding: 5px 0 5px 24px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.note { color: var(--text-3); font-size: 14px; margin-top: 22px; }

/* 下载 / 状态 */
.status { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 2px 10px;
  background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); }
.status.live { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }

/* 文档页（隐私、条款、支持） */
.doc { max-width: 780px; margin: 0 auto; padding: 56px 20px 80px; }
.doc h1 { font-size: 36px; margin: 0 0 6px; }
.doc .updated { color: var(--text-3); margin: 0 0 32px; }
.doc h2 { font-size: 22px; margin: 36px 0 10px; }
.doc p, .doc li { color: var(--text-2); }
.doc table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 12px 0; }
.doc th, .doc td { text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); padding: 10px 8px; }
.doc th { color: var(--text); font-weight: 600; }

/* 页脚 */
footer { border-top: 1px solid var(--border); padding: 36px 0 48px; color: var(--text-3); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 18px 28px; align-items: center; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; margin-left: auto; }
footer a { color: var(--text-2); }

/* 跳到 #tobor、#office 时不被顶栏挡住 */
section[id] { scroll-margin-top: 60px; }
/* Tobor Office 用橙色（两边约定：Tobor 蓝紫，Tobor Office 橙） */
#office .card .ico { background: linear-gradient(135deg, rgba(255, 122, 50, .18), rgba(255, 196, 110, .18)); }
#office .ticks li::before { color: #f0521c; }

/* 小的排版类：网站的内容安全策略不许写在标签里的 style="…"，一律放这里 */
.flush { margin: 0; }
.ticks.spaced { margin-top: 28px; }
.center { text-align: center; }
.sub.center { margin-left: auto; margin-right: auto; }
.lost { margin: 40px auto 20px; }
