/* 公开网站的样式：不加载外部字体和脚本，浅色深色都能看，手机宽度可用 */
:root {
  --fg: #17212b;
  --muted: #566574;
  --bg: #ffffff;
  --soft: #f4f6f9;
  --line: #dfe5ec;
  --accent: #0b5cad;
  --accent-soft: #e7f0fb;
  --mark: #fff3bf;
  --radius: 12px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --fg: #e5ebf1;
    --muted: #a2afbc;
    --bg: #0f1419;
    --soft: #161d24;
    --line: #2a333c;
    --accent: #6aa8ff;
    --accent-soft: #15263b;
    --mark: #4a3f10;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
a { color: var(--accent); }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 16px; }
header.site { border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: var(--fg); text-decoration: none; }
.brand img { width: 32px; height: 32px; }
nav.main { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-left: auto; font-size: 15px; }
nav.main a { color: var(--muted); text-decoration: none; }
nav.main a[aria-current="page"], nav.main a:hover { color: var(--fg); }
.lang { font-size: 14px; }
.hero { background: var(--soft); border-bottom: 1px solid var(--line); }
.hero .wrap { padding-top: 56px; padding-bottom: 56px; }
.hero h1 { font-size: clamp(26px, 4vw, 38px); line-height: 1.3; margin: 0 0 12px; }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 720px; margin: 0 0 24px; }
.btn { display: inline-block; background: var(--accent); color: #fff; text-decoration: none; padding: 10px 18px; border-radius: 8px; font-weight: 600; }
.btn.secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent); margin-left: 8px; }
section { padding: 40px 0; }
section + section { border-top: 1px solid var(--line); }
h2 { font-size: 24px; margin: 0 0 16px; }
h3 { font-size: 18px; margin: 0 0 6px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--bg); }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; padding-left: 40px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 2px; width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 700; display: grid; place-items: center; font-size: 14px; }
.note { background: var(--accent-soft); border-radius: var(--radius); padding: 14px 16px; }
.placeholder { background: var(--mark); padding: 0 3px; border-radius: 3px; }
/* 还没定稿的页面（服务条款待律师审阅）：醒目的提示条，定稿后连同 data-draft 一起删掉 */
.note.draft { background: var(--mark); border-left: 4px solid var(--fg); margin: 0 0 16px; }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
th { background: var(--soft); }
.table-wrap { overflow-x: auto; }
article.doc { max-width: 780px; }
article.doc h2 { font-size: 20px; margin-top: 32px; }
article.doc h3 { font-size: 17px; margin-top: 20px; }
footer.site { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer.site .wrap { padding-top: 24px; padding-bottom: 32px; display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer.site a { color: var(--muted); }
/* 联系表单：网页上没有脚本，浏览器原生提交到 /api/contact（apps/site-contact） */
.lead-sm { color: var(--muted); font-size: 17px; margin: 0 0 20px; }
form.contact { display: grid; gap: 6px; max-width: 640px; }
form.contact label { font-weight: 600; margin-top: 10px; }
form.contact .req { font-weight: 400; color: var(--muted); font-size: 14px; }
form.contact .hint { color: var(--muted); font-size: 14px; margin-top: -4px; }
form.contact input:not([type="checkbox"]), form.contact textarea { width: 100%; font: inherit; color: var(--fg); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px; }
form.contact textarea { resize: vertical; min-height: 120px; }
form.contact input:focus, form.contact textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
form.contact label.check { font-weight: 400; display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; }
form.contact label.check input { margin-top: 7px; flex: none; }
form.contact button.btn { border: 0; cursor: pointer; font: inherit; font-weight: 600; justify-self: start; margin-top: 10px; }
/* 诱饵字段：人看不到（不用 display:none，有的机器人专门跳过隐藏字段） */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 600px) {
  nav.main { margin-left: 0; width: 100%; }
  .btn.secondary { margin-left: 0; margin-top: 8px; }
  /* 手机上三列表格不用横向滑动：英文长词按音节断开；第一列是项目名，不断 */
  table { font-size: 14px; }
  th, td { padding: 6px 8px; hyphens: auto; }
  th:first-child, td:first-child { hyphens: none; }
}
