/* 云磁分发「莫兰迪」：燕麦白 + 雾蓝灰 + 陶土，低饱和、不压人，不用黑色。颜色只用这里的变量，页面不写死色值。只有这一套浅色，不跟系统变深（用户 2026-11-07 定：不要黑色、不要太重）。
   .ink 是品牌色区块（官网首屏、登录页左栏、控制台侧栏、页尾），比页面底色略深一点的雾色。 */
:root {
  color-scheme: light;
  --bg: #f4f2ed;
  --card: #fbfaf7;
  --fg: #3e4a50;
  --muted: #6a7478;
  --line: #e1ded6;
  --chip: #eae7df;
  --primary: #557488;
  --primary-ink: #48677a;
  --primary-soft: #e4eaec;
  --on-primary: #fbfaf7;
  --accent: #96735a;
  --danger: #a4564a;
  --danger-soft: #f3e4df;
  --warn: #86693d;
  --warn-soft: #f1eadb;
  --ok: #5a7a68;
  --ok-soft: #e4ece5;
  --radius: 8px;
  --radius-lg: 14px;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --display: "PingFang SC", -apple-system, BlinkMacSystemFont, "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
.ink {
  --line: rgb(62 74 80 / .14);
  --card: rgb(255 255 255 / .55);
  --chip: rgb(62 74 80 / .07);
  --primary-soft: rgb(85 116 136 / .15);
  background: linear-gradient(135deg, #ebe8e0 0%, #e3e6e3 55%, #dbe3e5 100%);
  color: var(--fg);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 16px/1.7 var(--sans);
  padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  overflow-x: hidden;
}
a { color: var(--primary-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
h1, h2, h3 { line-height: 1.35; margin: 0; font-weight: 500; }
h2 { font-size: 1.4rem; }
h3 { font-size: 1.02rem; }
p { margin: 0; }
code, .mono { font-family: var(--mono); font-size: .86em; overflow-wrap: anywhere; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.stack > * + * { margin-top: 14px; }
.hidden { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* 站点头 */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; padding: calc(22px + env(safe-area-inset-top)) 0 22px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--display); font-size: 1.1rem; font-weight: 500; letter-spacing: .05em; color: var(--fg); text-decoration: none; }
.brand img { width: 26px; height: 26px; }
.top nav { display: flex; gap: 8px 26px; align-items: center; flex-wrap: wrap; }
.top nav a:not(.btn) { color: var(--muted); text-decoration: none; font-size: .92rem; transition: color .2s; }
.top nav a:not(.btn):hover { color: var(--fg); }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 8px 22px;
  border: 1px solid var(--line); border-radius: var(--radius); background: transparent; color: var(--fg);
  font: inherit; font-size: .95rem; font-weight: 550; letter-spacing: .02em; text-decoration: none; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, opacity .2s;
}
.btn:hover { border-color: var(--accent); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.btn.primary:hover:not(:disabled) { opacity: .88; }
.btn.danger { color: var(--danger); }
.btn.danger:hover { border-color: var(--danger); }
.btn.sm { min-height: 34px; padding: 3px 14px; font-size: .86rem; }
.btn.block { width: 100%; }

/* 官网首屏 */
.hero-band { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-band::after { content: ""; position: absolute; right: -10%; top: -30%; width: 60%; height: 120%; pointer-events: none; background: radial-gradient(closest-side, rgb(150 172 184 / .28), transparent); }
.hero-band > .wrap { z-index: 1; }
.hero-band::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(70% 90% at 80% 25%, #000 0%, transparent 75%);
}
.hero-band > .wrap { position: relative; }
.hero { padding: 56px 0 84px; display: grid; gap: 52px; grid-template-columns: minmax(0, 1fr); }
.eyebrow { font-family: var(--mono); font-size: .78rem; letter-spacing: .14em; color: var(--accent); font-weight: 550; }
.hero h1 { font-family: var(--display); font-weight: 500; font-size: clamp(2.2rem, 5.6vw, 3.6rem); line-height: 1.25; letter-spacing: .01em; margin-top: 18px; }
.hero .lead { font-size: 1.05rem; line-height: 1.85; color: var(--muted); margin-top: 24px; max-width: 34em; }
.hero .cta { display: flex; gap: 12px; margin-top: 34px; flex-wrap: wrap; }
.hero .cta .btn { min-height: 50px; padding: 8px 30px; }
.facts { display: flex; flex-wrap: wrap; gap: 14px 40px; margin: 46px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); }
.facts div { min-width: 96px; }
.facts dt { font-size: .8rem; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-family: var(--display); font-size: 1.28rem; font-weight: 500; }
@media (min-width: 940px) { .hero { grid-template-columns: 1.2fr 1fr; align-items: center; padding: 72px 0 104px; } }

/* 发版单：首屏右边的流程卡 */
.sheet { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); backdrop-filter: blur(14px); box-shadow: 0 24px 60px -36px rgb(62 74 80 / .35); }
.sheet-head { display: flex; justify-content: space-between; gap: 10px; padding: 15px 24px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: .76rem; color: var(--muted); }
.flow { list-style: none; margin: 0; padding: 12px 24px; }
.flow li { position: relative; display: grid; grid-template-columns: 30px 1fr; gap: 14px; padding: 15px 0; }
.flow li:not(:last-child)::after { content: ""; position: absolute; left: 14.5px; top: 47px; bottom: -12px; width: 1px; background: var(--line); }
.flow i { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--accent); border-radius: 50%; font-style: normal; font-family: var(--mono); font-size: .78rem; color: var(--accent); }
.flow b { display: block; font-weight: 600; }
.flow span { display: block; font-size: .875rem; line-height: 1.6; color: var(--muted); margin-top: 2px; }
.sheet-foot { display: flex; flex-wrap: wrap; gap: 6px; padding: 15px 24px 18px; border-top: 1px solid var(--line); }
.sheet-foot span { padding: 1px 11px; border: 1px solid var(--line); border-radius: 99px; font-size: .8rem; color: var(--muted); }

/* 官网分区 */
section.band { padding: 88px 0; border-bottom: 1px solid var(--line); }
.band-head { max-width: 640px; margin-bottom: 44px; }
.band-head h2 { font-family: var(--display); font-size: clamp(1.65rem, 3.6vw, 2.35rem); margin-top: 12px; }
.band-head p { color: var(--muted); margin-top: 12px; }
.cols { display: grid; gap: 0 48px; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); }
.col { border-top: 1px solid var(--accent); padding: 20px 0 28px; }
.col h3 { font-family: var(--display); font-size: 1.18rem; margin-bottom: 10px; }
.price-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.plan { padding: 34px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);  }
.plan.lead-plan { border-top: 2px solid var(--accent); }
.plan h3 { font-size: .95rem; font-weight: 550; color: var(--muted); }
.price { font-family: var(--display); font-size: 3.1rem; line-height: 1.2; font-weight: 500; color: var(--primary-ink); margin-top: 8px; }
.price small { font-family: var(--sans); font-size: .95rem; font-weight: 400; color: var(--muted); }
ul.ticks { list-style: none; margin: 18px 0 0; padding: 0; }
ul.ticks li { padding: 4px 0 4px 24px; position: relative; }
ul.ticks li::before { content: ""; position: absolute; left: 2px; top: .85em; width: 11px; height: 6px; border-left: 1.5px solid var(--accent); border-bottom: 1.5px solid var(--accent); transform: rotate(-45deg); }
ul.cross li::before { width: 12px; height: 0; top: 1.05em; border-left: 0; border-bottom: 1.5px solid var(--danger); transform: none; }
.faq-list { margin: 0; border-bottom: 1px solid var(--line); }
.faq-list > div { display: grid; gap: 6px 40px; padding: 22px 0; border-top: 1px solid var(--line); grid-template-columns: minmax(0, 1fr); }
.faq-list dt { font-family: var(--display); font-size: 1.08rem; font-weight: 600; }
.faq-list dd { margin: 0; color: var(--muted); }
@media (min-width: 760px) { .faq-list > div { grid-template-columns: 2fr 3fr; } }
.closing { padding: 88px 0; text-align: center; }
.closing h2 { font-family: var(--display); font-size: clamp(1.7rem, 4vw, 2.5rem); }
.closing .btn { margin-top: 28px; min-height: 50px; padding: 8px 34px; }
footer { padding: 28px 0 calc(30px + env(safe-area-inset-bottom)); color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); }
footer a { color: var(--muted); }

/* 说明页 */
.page-head { border-bottom: 1px solid var(--line); }
.page-head .intro { padding: 40px 0 64px; }
.page-head h1 { font-family: var(--display); font-size: clamp(1.9rem, 5vw, 3rem); margin-top: 14px; }
.page-head .lead { color: var(--muted); margin-top: 18px; line-height: 1.85; max-width: 42em; }
.prose { padding-top: 12px; padding-bottom: 80px; }
.prose h2 { font-family: var(--display); font-size: 1.5rem; margin-top: 52px; }
.prose p, .prose ul, .prose ol { margin: 14px 0 0; }
.prose li { margin-top: 6px; }
.prose .table-wrap { margin-top: 16px; }
.prose .row { margin-top: 44px; }
.note { background: var(--primary-soft); border-left: 2px solid var(--accent); padding: 14px 18px; margin-top: 20px; }

/* 表格 */
table { width: 100%; border-collapse: collapse; font-size: .93rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { color: var(--muted); font-weight: 500; font-size: .84rem; }
td:first-child, th:first-child { white-space: nowrap; }
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); }

/* 登录：只有这一个入口，管理员和普通用户一样，登录后按账号识别 */
.login { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr); }
.login-side { padding: calc(28px + env(safe-area-inset-top)) 32px 32px; display: flex; flex-direction: column; gap: 28px; position: relative; overflow: hidden; }
.login-side > * { position: relative; }
.login-side h1 { font-family: var(--display); font-size: clamp(1.8rem, 3.6vw, 2.9rem); line-height: 1.3; }
.login-points { list-style: none; margin: 0; padding: 0; color: var(--muted); font-size: .92rem; }
.login-points li { padding: 12px 0; border-top: 1px solid var(--line); }
.login-main { display: grid; place-items: center; padding: 44px 24px; }
.login-box { width: min(380px, 100%); }
.login-box h2 { font-family: var(--display); font-size: 1.75rem; }
.login-box .btn.primary { margin-top: 26px; min-height: 52px; }
.login-terms { margin-top: 18px; font-size: .82rem; color: var(--muted); }
.dev-box { margin-top: 26px; padding: 16px; border: 1px dashed var(--line); border-radius: var(--radius-lg); }
.dev-box .btn { margin-top: 12px; }
@media (max-width: 859px) { .login-points { display: none; } }
@media (min-width: 860px) {
  .login { grid-template-columns: minmax(380px, 5fr) 6fr; }
  .login-side { padding: 40px 56px 48px; justify-content: space-between; }
}

/* 控制台 */
.console { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.side { display: flex; flex-direction: column; gap: 14px; padding: calc(16px + env(safe-area-inset-top)) 20px 12px; }
.side-nav { display: flex; gap: 2px; overflow-x: auto; margin: 0 -8px; scrollbar-width: none; }
.side-nav a {
  display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: var(--radius);
  color: var(--muted); font-size: .93rem; text-decoration: none; white-space: nowrap; transition: color .2s, background-color .2s;
}
.side-nav a:hover { color: var(--fg); }
.side-nav a[aria-current="page"] { background: var(--primary-soft); color: var(--primary-ink); font-weight: 550; }
.side-nav svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 14px; }
.who { padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-lg); font-size: .85rem; }
.who b { display: block; font-family: var(--display); font-size: 1.02rem; font-weight: 600; color: var(--primary-ink); }
.who .meter { margin: 10px 0 2px; }
.side-links { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .84rem; }
.side-links a { color: var(--muted); text-decoration: none; }
.side-links a:hover { color: var(--fg); }
.main { padding: 28px 20px 88px; min-width: 0; }
.main-inner { max-width: 880px; margin: 0 auto; }
@media (max-width: 899px) {
  .side-foot .who { display: none; }
  .side { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
  .side-nav { order: 3; flex-basis: 100%; }
  .side-foot { margin: 0; }
}
@media (min-width: 900px) {
  .console { grid-template-columns: 236px minmax(0, 1fr); }
  .side { position: sticky; top: 0; height: 100vh; height: 100dvh; padding: 24px 18px 20px; gap: 30px; overflow-y: auto; }
  .side-nav { flex-direction: column; margin: 0; }
  .main { padding: 44px 44px 96px; }
}
.page-title { font-family: var(--display); font-size: 1.8rem; }
.page-sub { color: var(--muted); font-size: .93rem; margin: 6px 0 26px; }
.back { display: inline-block; margin-bottom: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.card + .card, .stack > .card + .card { margin-top: 14px; }
.card h3 { margin-bottom: 6px; }
.card > .row { margin-top: 14px; }
.card > .row.spread:first-child { margin-top: 0; }
.step { display: flex; align-items: baseline; gap: 10px; }
.step i { font-style: normal; font-family: var(--mono); font-size: .78rem; color: var(--accent); }
.grid-2 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid-2 .card + .card { margin-top: 0; }
.billing-foot { margin-top: 18px; }
.meter { height: 4px; background: var(--chip); border-radius: 99px; overflow: hidden; margin: 12px 0 8px; }
.meter > span { display: block; height: 100%; background: var(--accent); }
.big { font-family: var(--display); font-size: 2.3rem; line-height: 1.3; font-weight: 500; }
label.field { display: block; margin-top: 16px; }
label.field > span { display: block; font-size: .86rem; font-weight: 550; margin-bottom: 6px; }
input[type=text], input[type=password], textarea, select {
  width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg); color: var(--fg); font: inherit; transition: border-color .2s;
}
input[type=text]:focus, input[type=password]:focus, textarea:focus, select:focus { border-color: var(--accent); outline: none; }
textarea { min-height: 92px; resize: vertical; }
input[type=file] { font: inherit; font-size: .9rem; max-width: 100%; }
.drop {
  display: block; margin-top: 16px; padding: 38px 20px; text-align: center; cursor: pointer;
  border: 1px dashed var(--muted); border-radius: var(--radius-lg); transition: border-color .2s, background-color .2s;
}
.drop:hover, .drop.over, .drop:focus-within { border-color: var(--accent); background: var(--primary-soft); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop b { display: block; font-weight: 550; overflow-wrap: anywhere; }
.drop span { display: block; margin-top: 4px; font-size: .85rem; color: var(--muted); }
.check { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; cursor: pointer; }
.check input { margin-top: 6px; flex: none; accent-color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chips label { display: inline-flex; gap: 8px; align-items: center; padding: 7px 14px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; transition: border-color .2s, background-color .2s; }
.chips label:has(input:checked) { border-color: var(--accent); background: var(--primary-soft); }
.chips input { accent-color: var(--accent); }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row.spread { justify-content: space-between; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 1px 10px; border-radius: 99px; font-size: .78rem; background: var(--chip); color: var(--muted); white-space: nowrap; }
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.bad { background: var(--danger-soft); color: var(--danger); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.banner { padding: 11px 16px; border-radius: var(--radius); border-left: 2px solid var(--warn); background: var(--warn-soft); margin-bottom: 14px; font-size: .9rem; }
.card .banner { margin: 14px 0 0; }
.banner.good { border-color: var(--ok); background: var(--ok-soft); }
.banner.bad { border-color: var(--danger); background: var(--danger-soft); }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 18px; margin: 14px 0 0; font-size: .92rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.log.ink { background: var(--chip); }
.log { margin-top: 12px; padding: 16px; max-height: 360px; overflow-y: auto; border-radius: var(--radius); font-family: var(--mono); font-size: .79rem; line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.progress { height: 3px; background: var(--chip); border-radius: 99px; overflow: hidden; margin-top: 14px; }
.progress > span { display: block; height: 100%; background: var(--accent); width: 0; transition: width .2s; }
.list-item { display: block; color: inherit; text-decoration: none; transition: border-color .2s; }
.list-item:hover { border-color: var(--accent); }
.empty { padding: 56px 24px; text-align: center; }
.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 20;
  max-width: min(560px, calc(100vw - 32px)); padding: 12px 18px; border-radius: var(--radius); background: var(--fg); color: var(--bg); cursor: pointer; font-size: .92rem;
}
.toast.bad { background: var(--danger); color: var(--card); }
.modal-bg { position: fixed; inset: 0; z-index: 15; background: rgb(62 74 80 / .35); display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; width: min(460px, 100%); }
.modal h3 { font-family: var(--display); font-size: 1.2rem; margin-bottom: 8px; }
.modal .row { margin-top: 20px; justify-content: flex-end; }
.center-card { max-width: 420px; margin: 16vh auto; text-align: center; }
.center-card .btn { margin-top: 14px; }
