/* Assemio 官网 —— 零依赖静态样式（深浅色自适应，品牌色与客户端面板一致） */
:root {
  --bg: #ffffff; --bg-soft: #f6f7fb; --panel: #ffffff; --line: #e5e7ef;
  --text: #151926; --sub: #5f6678; --brand: #4f5bd5; --brand-2: #7b86e8;
  --brand-weak: #eef0fd; --ok: #0a8f4d; --ok-weak: #e6f6ee;
  --radius: 14px; --shadow: 0 1px 2px rgba(20,25,40,.05), 0 8px 24px rgba(20,25,40,.05);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12141b; --bg-soft: #171a22; --panel: #1b1e26; --line: #2c303c;
    --text: #e8eaf2; --sub: #9aa1b4; --brand: #7b86e8; --brand-2: #9aa3f0;
    --brand-weak: #232741; --ok: #3ecf8e; --ok-weak: #16301f;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.28);
  }
}
html[data-theme="light"] {
  --bg: #ffffff; --bg-soft: #f6f7fb; --panel: #ffffff; --line: #e5e7ef;
  --text: #151926; --sub: #5f6678; --brand: #4f5bd5; --brand-2: #7b86e8;
  --brand-weak: #eef0fd; --ok: #0a8f4d; --ok-weak: #e6f6ee;
  --shadow: 0 1px 2px rgba(20,25,40,.05), 0 8px 24px rgba(20,25,40,.05);
}
html[data-theme="dark"] {
  --bg: #12141b; --bg-soft: #171a22; --panel: #1b1e26; --line: #2c303c;
  --text: #e8eaf2; --sub: #9aa1b4; --brand: #7b86e8; --brand-2: #9aa3f0;
  --brand-weak: #232741; --ok: #3ecf8e; --ok-weak: #16301f;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 10px 30px rgba(0,0,0,.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: Assistant, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei UI", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px; line-height: 1.65; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { line-height: 1.28; margin: 0 0 10px; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: clamp(28px, 5vw, 46px); }
h2 { font-size: clamp(21px, 3vw, 30px); }
h3 { font-size: 16px; }
h4 { font-size: 13px; color: var(--sub); text-transform: none; margin-bottom: 8px; }
p { margin: 0 0 10px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }
.wrap { width: min(1120px, 100% - 40px); margin: 0 auto; }
.muted { color: var(--sub); }
.tiny { font-size: 12.5px; }
.mt { margin-top: 14px; }
.hidden { display: none !important; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--panel); padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; gap: 7px; justify-content: center;
  border: 1px solid var(--line); background: var(--panel); color: var(--text);
  border-radius: 10px; padding: 9px 15px; font-size: 14px; font-family: inherit; cursor: pointer;
  transition: border-color .15s, background .15s, transform .1s;
}
.btn:hover { border-color: var(--brand); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 500; }
.btn.primary:hover { background: var(--brand-2); border-color: var(--brand-2); }
.btn.ghost { background: transparent; }
.btn.lg { padding: 12px 22px; font-size: 15px; border-radius: 12px; }
.btn.sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn.icon { padding: 8px 10px; }
.btn.icon svg { display: block; }

/* 顶栏 */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 18px; height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.nav-links { display: flex; gap: 20px; margin-left: 10px; font-size: 14px; color: var(--sub); }
.nav-links a:hover { color: var(--text); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
@media (max-width: 900px) { .nav-links { display: none; } }

/* 区块 */
.sec { padding: 76px 0; }
.sec-lead { color: var(--sub); max-width: 720px; margin-bottom: 30px; }
.eyebrow { color: var(--brand); font-size: 13px; font-weight: 600; letter-spacing: .06em; margin-bottom: 10px; }
.band { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 76px 0; }
.band h2 { margin-bottom: 12px; }

/* 首屏 */
.hero { padding: 78px 0 58px; background: linear-gradient(180deg, var(--brand-weak), transparent 62%); }
.hero-inner { max-width: 860px; }
.hero h1 { margin-bottom: 16px; }
.hl { color: var(--brand); }
.lead { font-size: 17px; color: var(--sub); max-width: 700px; margin-bottom: 26px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }

/* 本机连接状态条（与 PC 打通的可视化入口） */
.bridge {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  border: 1px solid var(--line); background: var(--panel); border-radius: 12px;
  padding: 11px 14px; box-shadow: var(--shadow); font-size: 14px;
}
.bridge .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--sub); }
.bridge[data-state="probing"] .dot { animation: pulse 1.1s infinite ease-in-out; }
.bridge[data-state="online"] { border-color: var(--ok); background: var(--ok-weak); }
.bridge[data-state="online"] .dot { background: var(--ok); }
.bridge[data-state="offline"] .dot { background: #d97706; }
.bridge-text { flex: 1 1 320px; }
.bridge-btn { margin-left: auto; }
@keyframes pulse { 0%,100% { opacity: .35; } 50% { opacity: 1; } }

/* 三步 */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li { border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.step-no { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brand-weak); color: var(--brand); font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.steps p { color: var(--sub); font-size: 14px; margin: 0; }

/* 卡片网格 */
.grid { display: grid; gap: 16px; }
.grid.cards { grid-template-columns: repeat(4, 1fr); }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.card, .feat, .dl-card { border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card h3 { margin-bottom: 6px; }
.card p, .feat p { color: var(--sub); font-size: 14px; margin: 0; }
.card .ico { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 9px; background: var(--brand-weak); color: var(--brand); margin-bottom: 12px; }
.card .ico svg { width: 19px; height: 19px; }
.feat p + p { margin-top: 8px; }
.dl-card { padding: 22px; }
.dl-card h3 { margin-bottom: 8px; }
.dl-card .btn { margin: 6px 0 4px; }

.bridge-demo { margin-top: 20px; border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.bd-row { display: flex; gap: 14px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--line); flex-wrap: wrap; }
.bd-row:last-of-type { border-bottom: 0; }
.bd-label { width: 84px; flex: none; color: var(--sub); font-size: 13px; }
.bd-val { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.bd-val .ok { color: var(--ok); font-weight: 500; }

/* 只读工作台（网页查看本机任务进度）—— 只用 CSS 变量，深浅色主题自动适配 */
.wc-pair { padding: 10px 0 4px; }
.wc-pair-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 8px 0; }
.wc-pair-row input {
  width: 168px; padding: 8px 12px; font: inherit; font-size: 15px;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--text); background: var(--bg-soft);
  border: 1px solid var(--line); border-radius: 10px;
}
.wc-pair-row input:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.wc-list { display: flex; flex-direction: column; gap: 2px; margin: 6px 0 4px; }
.wc-item { display: flex; gap: 10px; align-items: baseline; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.wc-item:last-child { border-bottom: 0; }
.wc-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--sub); align-self: center; }
.wc-dot[data-s="ok"] { background: var(--ok); }
.wc-dot[data-s="run"] { background: var(--brand); }
.wc-dot[data-s="warn"] { background: #d98a00; }
.wc-dot[data-s="err"] { background: #d0453b; }
.wc-name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wc-meta { flex: none; }
#wcPanel[data-state="err"] #wcState { color: #d0453b; }
#wcPanel[data-state="ready"] #wcState { color: var(--ok); }

/* FAQ */
.faq { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; padding: 15px 18px; font-weight: 500; font-size: 15px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--sub); }
.faq details[open] summary::after { content: "−"; }
.faq p { padding: 0 18px 16px; color: var(--sub); font-size: 14px; margin: 0; }

/* 页脚 */
.foot { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 42px 0 26px; }
.foot-inner { display: flex; gap: 40px; justify-content: space-between; flex-wrap: wrap; }
.foot-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.foot-cols a { display: block; color: var(--sub); font-size: 14px; margin-bottom: 7px; }
.foot-cols a:hover { color: var(--text); }
.foot-bottom { display: flex; justify-content: space-between; gap: 12px; margin-top: 30px; padding-top: 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }

@media (max-width: 980px) {
  .grid.cards { grid-template-columns: repeat(2, 1fr); }
  .grid.three { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .grid.cards, .grid.two { grid-template-columns: 1fr; }
  .sec, .band { padding: 56px 0; }
}

/* ---------- 订阅套餐（档位读自云端目录：运营后台改完即生效，本页不写死价格） ----------
   ★ 用 auto-fit 而不是固定 4 列：档位数是后台可增删的，写死列数会在加档位时塌成一坨。 */
.plan-grid { grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--line); background: var(--panel);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
}
.plan.hot { border-color: var(--brand); }
.plan .badge {
  position: absolute; top: -11px; left: 18px;
  background: var(--brand); color: #fff; font-size: 12px; font-weight: 500;
  border-radius: 999px; padding: 2px 10px; white-space: nowrap;
}
.plan h3 { font-size: 17px; margin: 4px 0 0; }
.plan .price { display: flex; align-items: baseline; gap: 5px; margin: 8px 0 2px; }
.plan .price b { font-size: 27px; letter-spacing: -.02em; }
.plan .price span { color: var(--sub); font-size: 13px; }
.plan .descr { color: var(--sub); font-size: 13.5px; margin: 6px 0 12px; }
.plan .feats { list-style: none; padding: 0; margin: 0 0 16px; flex: 1 1 auto; }
.plan .feats li { font-size: 13.5px; color: var(--sub); padding-left: 18px; position: relative; margin-bottom: 6px; }
.plan .feats li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 600; }
.plan .feats li.na { opacity: .5; }
.plan .feats li.na::before { content: "—"; color: var(--sub); font-weight: 400; }
.plan .btn { width: 100%; margin-top: auto; }

/* ---------- 下单弹窗 ---------- */
.modal {
  position: fixed; inset: 0; z-index: 40; display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(9, 11, 18, .55); backdrop-filter: blur(3px);
}
.mbox {
  position: relative; width: min(460px, 100%); max-height: 88vh; overflow: auto;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
}
.mbox h3 { font-size: 18px; margin-bottom: 4px; }
.mx {
  position: absolute; top: 8px; right: 10px; border: 0; background: transparent;
  color: var(--sub); font-size: 22px; line-height: 1; cursor: pointer;
  padding: 4px 8px; border-radius: 8px; font-family: inherit;
}
.mx:hover { background: var(--bg-soft); color: var(--text); }
.fld { display: block; margin: 12px 0; }
.fld > span { display: block; font-size: 13px; color: var(--sub); margin-bottom: 5px; }
.fld input {
  width: 100%; padding: 10px 12px; font: inherit; font-size: 14px;
  color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: 10px;
}
.fld input:focus { outline: none; border-color: var(--brand); }
.row2 { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.row2 .btn { flex: 1 1 150px; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }
.err { color: #e5534b; font-size: 13px; margin: 10px 0 0; }
.ok-line {
  background: var(--ok-weak); border: 1px solid var(--ok); color: var(--ok);
  border-radius: 10px; padding: 10px 12px; font-size: 14px; margin: 0 0 10px;
}
