/* ============================================================
   商翼云官网 · 扩展样式
   基底为 base.css（原站设计系统：深色 Hero + 浅色内容 + 靛蓝/金）
   本文件只补充 base 没有的组件：图标、正文、新闻、下载、FAQ、后台
   ============================================================ */

/* ---------- 图标 ---------- */
.ico { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ico-sm { width: 16px; height: 16px; }
.ico-lg { width: 24px; height: 24px; }
.card .icon .ico, .dark-card .icon .ico, .sol-item .ico { width: 24px; height: 24px; }
.info-list .iic .ico { width: 20px; height: 20px; }
.btn .ico { width: 17px; height: 17px; }

/* ---------- 通用 ---------- */
.grad-text {
  background: linear-gradient(120deg, #7dd3fc, #38bdf8 40%, #a5b4fc);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stack-y { display: grid; gap: 18px; }
.text-center { text-align: center; }
.small { font-size: 13.5px; }

/* 浅色底上的双栏 */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-wide { grid-template-columns: 1.5fr 1fr; align-items: start; }
.split h2 { margin: 0 0 16px; font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; letter-spacing: -.5px; line-height: 1.25; }
.split p { color: var(--muted); margin: 0 0 14px; font-size: 16px; line-height: 1.85; }
.split .eyebrow { margin-bottom: 14px; }

.checklist { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: #34415c; line-height: 1.7; }
.checklist li .ico { color: var(--brand-2); margin-top: 4px; }
.checklist li b { color: var(--ink); font-weight: 700; }

/* 架构分层条 */
.layer-list { display: grid; gap: 12px; }
.layer-row {
  display: grid; grid-template-columns: 128px 1fr; align-items: stretch;
  border: 1px solid var(--line); border-radius: 14px; background: #fff; overflow: hidden;
  transition: all .25s ease; box-shadow: var(--shadow-sm);
}
.layer-row:hover { border-color: rgba(79,70,229,.3); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.layer-k {
  padding: 16px 18px; font-size: 14px; font-weight: 700; color: var(--ink);
  border-right: 1px solid var(--line); display: flex; align-items: center;
  background: linear-gradient(135deg, #eef2ff, #e0f2fe);
}
.layer-v { display: flex; flex-wrap: wrap; gap: 8px; padding: 14px 16px; align-items: center; }
.layer-v span {
  font-size: 13.5px; padding: 5px 12px; border-radius: 999px; font-weight: 600;
  background: #eef2ff; color: var(--brand-2);
}

/* ---------- 产品列表行 ---------- */
.card .idx {
  display: block; font-size: 13.5px; font-weight: 700; letter-spacing: 3px; color: var(--gold);
  border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 22px;
}
.prod-row {
  display: grid; grid-template-columns: 1fr 306px; gap: 44px; align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 44px 46px; box-shadow: var(--shadow-sm); transition: all .28s ease;
}
.prod-row:hover { box-shadow: var(--shadow-md); border-color: rgba(79,70,229,.28); }
.prod-row .idx {
  font-size: 13.5px; font-weight: 700; letter-spacing: 3px; color: var(--gold);
  display: block; margin-bottom: 14px;
}
.prod-row h3 { font-size: 27px; margin: 0 0 10px; letter-spacing: -.3px; }
.prod-row .tagline { font-size: 16.5px; color: var(--brand-2); font-weight: 600; margin: 0 0 14px; }
.prod-row .desc { color: var(--muted); font-size: 15.5px; line-height: 1.85; margin: 0 0 22px; }
.prod-side {
  background: linear-gradient(165deg, var(--deep-2) 0%, #1b2450 100%);
  border-radius: 16px; padding: 28px 26px; color: #fff; position: relative; overflow: hidden;
}
.prod-side::after {
  content: ""; position: absolute; right: -50px; top: -50px; width: 170px; height: 170px;
  border-radius: 50%; background: radial-gradient(circle, rgba(34,211,238,.16), transparent 70%);
}
.prod-side .side-ico {
  width: 50px; height: 50px; border-radius: 13px; display: grid; place-items: center;
  background: rgba(34,211,238,.12); border: 1px solid rgba(34,211,238,.24); color: var(--cyan);
  margin-bottom: 18px;
}
.prod-side .side-cat { font-size: 12px; letter-spacing: 2px; color: rgba(255,255,255,.5); font-weight: 600; }
.prod-side .side-name { font-size: 17px; font-weight: 700; margin: 6px 0 18px; color: #fff; }
.prod-side dl { margin: 0; display: grid; gap: 12px; position: relative; z-index: 1; }
.prod-side dl div { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; border-top: 1px solid rgba(255,255,255,.1); padding-top: 11px; }
.prod-side dt { color: rgba(255,255,255,.55); }
.prod-side dd { margin: 0; color: #fff; font-weight: 600; text-align: right; }
.prod-side .btn { margin-top: 22px; width: 100%; position: relative; z-index: 1; }

/* 特性清单（卡片内） */
.feat-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
.feat-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: #34415c; line-height: 1.6; }
.feat-list li .ico { color: var(--brand-2); margin-top: 3px; }

/* ---------- 对比表 ---------- */
.cmp { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.cmp-row { display: grid; grid-template-columns: 1.1fr 1fr 1fr; border-bottom: 1px solid var(--line); }
.cmp-row:last-child { border-bottom: 0; }
.cmp-cell { padding: 17px 24px; font-size: 15px; border-right: 1px solid var(--line); color: var(--ink); }
.cmp-cell:last-child { border-right: 0; }
.cmp-row.cmp-head { background: var(--surface); }
.cmp-row.cmp-head .cmp-cell { font-weight: 700; color: var(--muted); font-size: 14px; letter-spacing: 1px; }
.cmp-row.cmp-head .cmp-cell.us { color: var(--brand); }
.cmp-cell.dim { color: var(--muted); }
.cmp-cell.us { background: rgba(79,70,229,.03); font-weight: 600; }

/* ---------- 规格表 ---------- */
.spec { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.spec-row { display: grid; grid-template-columns: 170px 1fr; border-bottom: 1px solid var(--line); }
.spec-row:last-child { border-bottom: 0; }
.spec-k { background: var(--surface); padding: 14px 20px; font-size: 14px; color: var(--ink); font-weight: 600; }
.spec-v { padding: 14px 20px; font-size: 14.5px; color: var(--muted); line-height: 1.7; }

/* ---------- 正文（Markdown 渲染） ---------- */
.prose { font-size: 16px; line-height: 1.9; color: #34415c; }
.prose h2 { font-size: 26px; font-weight: 800; letter-spacing: -.4px; color: var(--ink); margin: 44px 0 16px; line-height: 1.3; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 19px; font-weight: 700; color: var(--ink); margin: 30px 0 12px; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 20px; display: grid; gap: 10px; padding: 0; list-style: none; }
.prose ul li { position: relative; padding-left: 24px; }
.prose ul li::before {
  content: ""; position: absolute; left: 4px; top: 13px; width: 9px; height: 9px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-2), var(--cyan));
}
.prose ol { counter-reset: n; }
.prose ol li { counter-increment: n; position: relative; padding-left: 32px; }
.prose ol li::before {
  content: counter(n); position: absolute; left: 0; top: 4px; width: 22px; height: 22px;
  border-radius: 7px; background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff;
  font-size: 12px; font-weight: 700; display: grid; place-items: center;
}
.prose strong { color: var(--ink); font-weight: 700; }
.prose blockquote { margin: 20px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--brand-2); color: var(--muted); }
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px;
  background: #eef2ff; color: var(--brand); padding: 2px 7px; border-radius: 6px;
}
.prose img { border-radius: var(--radius); margin: 24px 0; box-shadow: var(--shadow-md); }
.prose a { color: var(--brand-2); font-weight: 600; }
.prose a:hover { text-decoration: underline; }

.meta-box {
  background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--brand-2);
  border-radius: 12px; padding: 18px 20px; margin-bottom: 36px; font-size: 14.5px; color: var(--muted);
  box-shadow: var(--shadow-sm);
}
.callout {
  background: #eef2ff; border: 1px solid #c7d2fe; border-radius: 12px;
  padding: 16px 18px; font-size: 15px; color: #34415c; margin: 22px 0; line-height: 1.8;
}
.callout b { color: var(--ink); }
.callout a { color: var(--brand-2); font-weight: 600; }

/* ---------- 新闻 ---------- */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 32px; }
.filter-bar a {
  font-size: 14px; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--muted); background: #fff; font-weight: 600; transition: all .2s;
}
.filter-bar a:hover { border-color: var(--brand); color: var(--brand); }
.filter-bar a.on { background: var(--brand); border-color: var(--brand); color: #fff; }

.news-list { border-top: 1px solid var(--line); }
.news-item {
  display: grid; grid-template-columns: 130px 1fr auto; gap: 30px; align-items: center;
  padding: 28px 8px; border-bottom: 1px solid var(--line); transition: background .2s;
}
.news-item:hover { background: var(--surface); }
.news-date { font-size: 14px; font-weight: 700; letter-spacing: 1px; color: var(--gold); }
.news-date span { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; margin-top: 4px; letter-spacing: 1px; }
.news-item h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: .2px; }
.news-item p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.75; }
.news-item .arrow {
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--muted); transition: all .25s; flex: none;
}
.news-item:hover .arrow { border-color: var(--brand); color: var(--brand); transform: translateX(4px); }

.news-card {
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff;
  display: flex; flex-direction: column; transition: all .28s ease; box-shadow: var(--shadow-sm);
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: rgba(79,70,229,.32); }
.news-cover { height: 180px; background: var(--surface); position: relative; overflow: hidden; }
.news-cover img { width: 100%; height: 100%; object-fit: cover; }
.news-cover .cover-fallback {
  position: absolute; inset: 0; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--deep) 0%, #131d44 60%, #1b2450 100%);
}
.news-cover .cover-fallback .ico { width: 34px; height: 34px; opacity: .5; }
.news-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.news-meta { display: flex; gap: 12px; align-items: center; font-size: 13px; color: var(--muted); margin-bottom: 12px; font-weight: 600; letter-spacing: 1px; }
.news-meta .cat { color: var(--brand-2); }
.page-hero .news-meta { color: rgba(255,255,255,.62); }
.page-hero .news-meta .cat { color: var(--cyan); }
.news-body h3 { margin: 0 0 10px; font-size: 18px; line-height: 1.5; }
.news-body p { margin: 0; font-size: 14.5px; color: var(--muted); line-height: 1.75; flex: 1; }

/* ---------- 下载面板 ---------- */
.dl-panel {
  background: linear-gradient(150deg, #ffffff 0%, #f7f9ff 100%);
  border: 1px solid var(--line); border-radius: 22px; padding: 44px;
  box-shadow: var(--shadow-md);
}
.dl-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.dl-name { font-size: 26px; font-weight: 800; letter-spacing: -.5px; margin: 0 0 14px; }
.dl-tags { display: flex; gap: 9px; flex-wrap: wrap; }
.tag {
  font-size: 13.5px; padding: 6px 14px; border-radius: 999px; font-weight: 600;
  background: #eef2ff; color: var(--brand-2);
}
.tag.hot { background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff; }
.dl-facts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-top: 28px;
}
.fact { background: #fff; padding: 16px 20px; }
.fact span { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 5px; letter-spacing: 1px; font-weight: 600; }
.fact b { font-size: 16px; font-weight: 700; color: var(--ink); }
.sha {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px;
  color: var(--muted); margin-top: 16px; word-break: break-all; line-height: 1.7;
  background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 13px 15px;
  display: flex; align-items: center; gap: 14px;
}
.sha code { flex: 1; }
.release-notes {
  margin-top: 22px; padding: 18px 20px; border-radius: 12px;
  background: #eef2ff; border: 1px solid #c7d2fe;
}
.release-notes b {
  display: block; font-size: 13px; letter-spacing: 2px; color: var(--brand);
  margin-bottom: 8px; font-weight: 700;
}
.release-notes p {
  margin: 0; font-size: 14.5px; color: #34415c; line-height: 1.85; white-space: pre-line;
}
.sha button {
  border: 1px solid var(--line); background: #fff; border-radius: 8px; font-size: 12.5px;
  padding: 5px 12px; color: var(--muted); cursor: pointer; flex: none; font-weight: 600; transition: all .2s;
}
.sha button:hover { border-color: var(--brand); color: var(--brand); }

/* 多端下载：一个端一张卡（桌面 / 移动各自独立发版） */
.dl-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 22px; align-items: start;
}
.dl-grid .dl-panel { padding: 32px; }
.dl-grid .dl-name { font-size: 21px; margin-bottom: 12px; }
.dl-grid .dl-facts { grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); margin-top: 22px; }
.dl-grid .btn-block { margin-top: 22px; }
@media (max-width: 640px) {
  .dl-grid { grid-template-columns: 1fr; }
  .dl-grid .dl-panel { padding: 24px; }
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 22px 4px; font-size: 16.5px; font-weight: 700; color: var(--ink); cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { color: var(--muted); transition: transform .25s; }
.faq details[open] summary .ico { transform: rotate(45deg); color: var(--brand); }
.faq .faq-a { padding: 0 4px 24px; font-size: 15.5px; color: var(--muted); line-height: 1.85; max-width: 820px; }
.faq .faq-a p + p { margin-top: 12px; }
.faq .faq-a a { color: var(--brand-2); font-weight: 600; }
.faq .faq-a code { font-family: ui-monospace, monospace; font-size: 13px; background: #eef2ff; color: var(--brand); padding: 2px 6px; border-radius: 5px; }

/* ---------- 404 / 500 ---------- */
.err-page { text-align: center; padding: 130px 0; position: relative; overflow: hidden; }
.err-code {
  font-size: clamp(80px, 14vw, 150px); font-weight: 800; letter-spacing: -6px; line-height: 1;
  background: linear-gradient(135deg, var(--brand-2), var(--cyan));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ============================================================
   后台（base 设计系统之上扩展）
   ============================================================ */
body.admin-body { background: #f4f6fb; color: var(--ink); }

.admin-shell { display: grid; grid-template-columns: 244px 1fr; min-height: 100vh; }
.admin-side {
  background: linear-gradient(170deg, var(--deep) 0%, #101a3a 100%); color: #fff;
  padding: 24px 18px; position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; gap: 6px;
}
.admin-side .brand { padding: 0 8px 20px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 14px; }
.admin-side .brand-name { color: #fff; font-size: 21px; }
.admin-side .brand-sub { color: rgba(255,255,255,.45); }
.admin-side .brand-mark { width: 38px; height: 38px; }
.admin-menu { display: grid; gap: 4px; }
.admin-menu a {
  display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 11px;
  font-size: 14.5px; color: rgba(255,255,255,.72); font-weight: 500; transition: all .18s;
}
.admin-menu a:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-menu a.on { background: rgba(255,255,255,.13); color: #fff; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(255,255,255,.16); }
.admin-menu a .ico { width: 18px; height: 18px; }
.admin-side-foot { margin-top: auto; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); display: grid; gap: 8px; }
.admin-side-foot .btn {
  background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff;
}
.admin-side-foot .btn:hover { background: rgba(255,255,255,.16); }

.admin-main { padding: 30px 38px 64px; min-width: 0; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.admin-topbar h1 { font-size: 26px; letter-spacing: -.5px; margin: 0; }
.admin-topbar .sub { font-size: 13.5px; color: var(--muted); margin-top: 5px; }
.admin-topbar-actions { display: flex; gap: 10px; align-items: center; }

.admin-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 26px; }
.admin-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 24px; box-shadow: var(--shadow-sm); transition: all .25s;
}
.admin-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.admin-card span { font-size: 13px; color: var(--muted); display: block; margin-bottom: 8px; letter-spacing: 1px; font-weight: 600; }
.admin-card b { font-size: 30px; font-weight: 800; letter-spacing: -1px; color: var(--ink); }
.admin-card b.hot { color: var(--brand); }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 22px; box-shadow: var(--shadow-sm); }
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 17px 22px; border-bottom: 1px solid var(--line); background: var(--surface);
}
.panel-head h2 { font-size: 15.5px; margin: 0; letter-spacing: 0; }
.panel-head > div { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.panel-body { padding: 22px; }

.table-wrap { width: 100%; overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; }
.table th {
  text-align: left; font-size: 12.5px; font-weight: 700; color: var(--muted);
  padding: 13px 18px; border-bottom: 1px solid var(--line); white-space: nowrap;
  background: var(--surface); letter-spacing: 1px;
}
.table td { padding: 14px 18px; font-size: 14px; border-bottom: 1px solid var(--line); color: var(--muted); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: var(--surface); }
.table .t-title { color: var(--ink); font-weight: 600; }
.table .t-actions { display: flex; gap: 8px; justify-content: flex-end; }
.table .empty { text-align: center; color: var(--muted); padding: 48px 0; }
.table .t-sub { font-size: 12px; color: var(--muted); font-weight: 500; }

.badge {
  display: inline-block; font-size: 12px; padding: 3px 10px; border-radius: 999px;
  background: var(--surface); color: var(--muted); border: 1px solid var(--line); font-weight: 600;
}
.badge.on { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.badge.warn { background: #fffbeb; color: #b45309; border-color: #fde68a; }

.admin-form { display: grid; gap: 20px; max-width: 900px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 13.5px; color: var(--ink); font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 11px; padding: 11px 14px;
  font: inherit; font-size: 14.5px; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}
.field textarea { resize: vertical; min-height: 96px; line-height: 1.75; }
.field .hint { font-size: 12.5px; color: var(--muted); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.checkbox { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--ink); font-weight: 500; }
.checkbox input { width: 17px; height: 17px; accent-color: var(--brand); }
.form-actions {
  display: flex; gap: 12px; padding-top: 22px; margin-top: 8px;
  border-top: 1px solid var(--line);
}
.cover-preview { width: 100%; max-width: 280px; border-radius: 12px; border: 1px solid var(--line); margin-top: 8px; display: block; }
.btn-danger { background: #fff; border-color: #fecaca; color: #b91c1c; }
.btn-danger:hover { background: #fef2f2; border-color: #f87171; color: #991b1b; box-shadow: none; }
.btn-sm { padding: 8px 15px; font-size: 13px; border-radius: 9px; }

/* 后台上传发布页（2026-10-30）：上传进度条 */
.progress { height: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.progress-bar { height: 100%; width: 0; background: var(--brand); transition: width .2s ease; }
#publishBtn[disabled] { opacity: .62; cursor: not-allowed; }
#resultBox { line-height: 1.85; }

input[type=file] { color: var(--muted); font-size: 13.5px; }
input[type=file]::file-selector-button {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  padding: 8px 14px; border-radius: 9px; margin-right: 12px; cursor: pointer;
  font: inherit; font-size: 13.5px; font-weight: 600; transition: all .18s;
}
input[type=file]::file-selector-button:hover { border-color: var(--brand); color: var(--brand); }

/* 登录页 */
.login-wrap {
  min-height: 100vh; display: grid; place-items: center; padding: 40px 20px;
  background: linear-gradient(150deg, var(--deep) 0%, #101a3a 60%, #182348 100%);
}
.login-card {
  width: 100%; max-width: 420px; background: #fff; border-radius: 22px;
  padding: 40px 36px; box-shadow: var(--shadow-lg);
}
.login-card .brand { justify-content: center; margin-bottom: 24px; }
.login-card .brand-name { color: var(--ink); }
.login-card .brand-sub { color: var(--muted); }
.login-card h1 { font-size: 22px; text-align: center; margin: 0 0 6px; letter-spacing: -.4px; }
.login-card .sub { text-align: center; font-size: 14px; color: var(--muted); margin-bottom: 28px; }
.login-card .field label { color: var(--ink); }
.login-card .field input { background: #fbfcfe; }
.login-foot { text-align: center; font-size: 13px; color: var(--muted); margin-top: 24px; }
.login-back { text-align: center; margin-top: 18px; }
.login-back a { font-size: 13.5px; color: rgba(255,255,255,.6); }
.login-back a:hover { color: #fff; }

/* ---------- 表单别名（后台与登录页沿用旧类名） ---------- */
.form-ok, .form-error {
  padding: 13px 17px; border-radius: 11px; font-size: 14px; margin-bottom: 18px;
  line-height: 1.6; font-weight: 500;
}
.form-ok { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.form-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.form-row { display: grid; gap: 7px; margin-bottom: 16px; }
.form-row label { font-size: 14px; font-weight: 600; color: var(--ink); }
.form-row input, .form-row select, .form-row textarea {
  width: 100%; padding: 12px 15px; border: 1px solid var(--line); border-radius: 11px;
  font: inherit; font-size: 15px; background: #fbfcfe; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--brand); background: #fff; box-shadow: 0 0 0 3px rgba(79,70,229,.12);
}
.form-row textarea { resize: vertical; min-height: 120px; }
.form-hint { font-size: 13px; color: var(--muted); margin: 10px 0 0; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .admin-shell { grid-template-columns: 1fr; }  .admin-side {
    position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px;
  }
  .admin-side .brand { border: 0; padding: 0 10px 0 2px; margin: 0; }
  .admin-menu { grid-auto-flow: column; gap: 4px; overflow-x: auto; }
  .admin-side-foot { margin: 0 0 0 auto; padding: 0; border: 0; grid-auto-flow: column; }
  .admin-cards { grid-template-columns: repeat(2, 1fr); }
  .admin-main { padding: 22px 20px 52px; }
  .layer-row { grid-template-columns: 1fr; }
  .layer-k { border-right: 0; border-bottom: 1px solid var(--line); }
  .dl-panel { padding: 28px 24px; }
  .prod-row { grid-template-columns: 1fr; gap: 28px; padding: 32px 26px; }
  .split-wide { grid-template-columns: 1fr; gap: 40px; }
  .prod-side { order: -1; }
  .feat-list { grid-template-columns: 1fr; }
  .spec-row { grid-template-columns: 1fr; }
  .spec-k { padding-bottom: 4px; }
  .spec-v { padding-top: 4px; }
}

@media (max-width: 720px) {
  .split { grid-template-columns: 1fr; gap: 34px; }
  .header-inner .btn-gold { margin-left: auto; height: 40px; padding: 0 16px; font-size: 14px; }
  .header-inner .menu-toggle { margin-left: 8px; }
  .site-header .nav { background: #080c18; }
  .news-item { grid-template-columns: 1fr; gap: 12px; }
  .news-item .arrow { display: none; }
  .cmp-row { grid-template-columns: 1fr; }
  .cmp-cell { border-right: 0; border-bottom: 1px solid var(--line); padding: 13px 18px; }
  .cmp-row .cmp-cell:last-child { border-bottom: 0; }
  .dl-facts { grid-template-columns: 1fr; }
  .field-row, .field-row-3 { grid-template-columns: 1fr; }
  .admin-cards { grid-template-columns: 1fr; }
  .admin-topbar h1 { font-size: 21px; }
  .prose h2 { font-size: 22px; }
  .container { padding: 0 18px; }
}

/* ============================================================
   应用市场
   ============================================================ */

/* ---------- 顶部汇总 ---------- */
.mk-summary {
  display: grid; grid-template-columns: auto auto auto 1fr; gap: 36px; align-items: center;
  padding: 24px 30px; margin-bottom: 32px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.mk-stat { display: flex; flex-direction: column; gap: 2px; }
.mk-num { font-size: 27px; font-weight: 800; color: var(--ink); letter-spacing: -.5px; line-height: 1.15; }
.mk-num small { font-size: 14px; font-weight: 600; margin-left: 2px; color: var(--muted); }
.mk-key { font-size: 13px; color: var(--muted); }
.mk-note {
  display: flex; align-items: center; gap: 9px; justify-self: end;
  font-size: 13.5px; color: var(--muted); text-align: right;
}
.mk-note .ico { color: var(--brand-2); }

/* ---------- 分类导航 ---------- */
.mk-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.mk-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 17px; border-radius: 999px; font-size: 14.5px; font-weight: 600;
  color: #3b4a63; background: #fff; border: 1px solid var(--line);
  transition: all .2s ease;
}
.mk-tab .n {
  font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 999px;
  background: var(--surface); color: var(--muted);
}
.mk-tab:hover { border-color: rgba(79,70,229,.34); color: var(--brand-2); transform: translateY(-1px); }
.mk-tab.on { background: linear-gradient(135deg, var(--brand), var(--brand-2)); border-color: transparent; color: #fff; }
.mk-tab.on .n { background: rgba(255,255,255,.22); color: #fff; }

/* ---------- 卡片网格 ---------- */
.mk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.mk-grid-sm { grid-template-columns: repeat(3, 1fr); }

.mk-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px 24px 20px; box-shadow: var(--shadow-sm);
  transition: all .26s ease;
}
.mk-card:hover { border-color: rgba(79,70,229,.3); box-shadow: var(--shadow-md); transform: translateY(-3px); }

.mk-card-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }
.mk-ico {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(140deg, #eef2ff, #e0f2fe); color: var(--brand-2);
}
.mk-ico .ico { width: 23px; height: 23px; }

.mk-badge {
  font-size: 11.5px; font-weight: 700; letter-spacing: .4px;
  padding: 4px 10px; border-radius: 999px; border: 1px solid transparent;
}
.mk-badge.on { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.mk-badge.soon { background: #f8fafc; color: #64748b; border-color: #e2e8f0; }
/* 「按需定制」：不是还没做，是不做标准下载。用金色系和「准备中」区分开，
   避免用户以为再等等就会上线。 */
.mk-badge.custom { background: #fffbeb; color: #a16207; border-color: #fde68a; }
/* 技能：不是"能不能下"，是"成品还是零件"。用紫色系和工具区分 */
.mk-badge.skill { background: #f5f3ff; color: #6d28d9; border-color: #ddd6fe; }

/* ---------- 应用中心的两级分类 ----------
   一级（工具 / 技能）是「零件 vs 成品」，二级才是具体用途。
   一级做大做重，二级做小做轻，视觉上必须分得开，
   否则用户会以为「文档」和「办公协作」是同一层的两个筛选。 */
.mk-tabs-primary { margin-bottom: 14px; }
.mk-tabs-primary .mk-tab {
  padding: 11px 22px; font-size: 15px;
  border-radius: 12px;
}
.mk-tabs-primary .mk-tab.on {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  border-color: transparent; color: #fff;
}
.mk-tabs-primary .mk-tab.on .n { background: rgba(255,255,255,.22); color: #fff; }

.mk-tabs-sub { margin-bottom: 30px; padding-left: 2px; }
.mk-tabs-sub .mk-tab { padding: 6px 13px; font-size: 13px; font-weight: 500; border-radius: 8px; }
.mk-tabs-sub .mk-tab.on { border-color: var(--brand-2); color: var(--brand-2); background: #fff; }
/* 二级选中是白底，数字必须跟着改成浅底深字 —— 否则继承了一级的白字，数字就看不见了 */
.mk-tabs-sub .mk-tab.on .n { background: #eef2ff; color: var(--brand-2); }

/* 技能卡片用紫色系图标底，和工具的蓝底一眼分开 */
.mk-ico-skill { background: #f5f3ff !important; color: #7c3aed !important; }
.mk-tag.skill { background: #f5f3ff; color: #6d28d9; }

/* 技能详情：执行流程用有序列表，不能是默认的 1. 2. 3. 那么素 */
.sk-steps { counter-reset: sk; list-style: none; padding: 0; margin: 0; }
.sk-steps li {
  counter-increment: sk; position: relative;
  padding: 12px 0 12px 44px; font-size: 14.5px; line-height: 1.75; color: #334155;
  border-bottom: 1px dashed var(--line);
}
.sk-steps li:last-child { border-bottom: 0; }
.sk-steps li::before {
  content: counter(sk);
  position: absolute; left: 0; top: 12px;
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 700;
  color: #6d28d9; background: #f5f3ff;
}
.sk-examples { list-style: none; padding: 0; margin: 0; }
.sk-examples li { margin-bottom: 10px; }
.sk-examples code {
  display: block; padding: 11px 15px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 13.5px; color: #334155;
}

.mk-card h3 { font-size: 17.5px; margin: 0 0 8px; letter-spacing: -.2px; line-height: 1.4; }
.mk-card h3 a { color: var(--ink); }
.mk-card h3 a:hover { color: var(--brand-2); }
.mk-desc { font-size: 14px; line-height: 1.75; color: var(--muted); margin: 0 0 16px; flex: 1; }

.mk-meta { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: #7c8aa3; margin-bottom: 16px; flex-wrap: wrap; }
.mk-tag { padding: 3px 9px; border-radius: 6px; background: var(--surface); color: #52627c; font-weight: 600; }
.mk-dot { width: 3px; height: 3px; border-radius: 50%; background: #cbd5e1; }

.mk-actions {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-top: 14px; border-top: 1px solid var(--line);
}
.mk-more { display: inline-flex; align-items: center; gap: 5px; font-size: 13.5px; font-weight: 600; color: var(--brand-2); }
.mk-more .ico { transition: transform .2s ease; }
.mk-more:hover .ico { transform: translateX(3px); }
.mk-get {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 15px; border-radius: 9px; font-size: 13.5px; font-weight: 600;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
}
/* 官网上不再提供下载动作，这里只是告知「去哪装」，所以做成中性标签而不是按钮 */
.mk-inapp {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 9px; font-size: 12.5px; font-weight: 600;
  color: #52627c; background: var(--surface); border: 1px solid var(--line);
}
.mk-wait { font-size: 12.5px; color: #94a3b8; }

/* 详情页：替代原来的下载按钮 */
.mk-inapp-box {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 6px; padding: 26px 22px; margin-top: 18px;
  background: #fff; border: 1px dashed #c7d2e5; border-radius: var(--radius);
}
.mk-inapp-box .ico { color: var(--brand-2); }
.mk-inapp-box b { font-size: 15px; color: var(--ink); }
.mk-inapp-box p { margin: 0; font-size: 13px; line-height: 1.7; color: var(--muted); }

.mk-empty {
  text-align: center; padding: 70px 0; color: var(--muted);
  background: #fff; border: 1px dashed var(--line); border-radius: var(--radius);
}
.mk-empty p { margin: 0 0 18px; font-size: 15px; }

/* ---------- 为什么分开装 ---------- */
.mk-why { background: var(--surface); }
.mk-why-inner { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; }
.mk-why-inner h2 { margin: 0 0 16px; font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -.4px; line-height: 1.3; }
.mk-why-inner > div > p { color: var(--muted); font-size: 15.5px; line-height: 1.9; margin: 0; }

.mk-flow { display: grid; gap: 14px; }
.mk-flow-step {
  display: flex; gap: 16px; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.mk-flow-step .k {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 13.5px; font-weight: 700;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
}
.mk-flow-step b { display: block; font-size: 15px; color: var(--ink); margin-bottom: 3px; }
.mk-flow-step p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.6; }

/* ---------- 详情页 ---------- */
.mk-detail { display: grid; grid-template-columns: 1fr 342px; gap: 48px; align-items: start; }
.mk-detail-block { margin-bottom: 40px; }
.mk-detail-block:last-child { margin-bottom: 0; }
.mk-detail-block h2 { font-size: 20px; margin: 0 0 14px; letter-spacing: -.2px; }
.mk-detail-block > p { color: var(--muted); font-size: 15.5px; line-height: 1.9; margin: 0; }
.mk-hint { font-size: 14px !important; color: #7c8aa3 !important; margin-bottom: 14px !important; }

.mk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mk-chip {
  font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 8px;
  background: var(--surface); color: #475569; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.mk-req { display: grid; gap: 10px; }
.mk-req-item {
  display: flex; align-items: center; gap: 13px;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff;
  transition: all .2s ease;
}
.mk-req-item:hover { border-color: rgba(79,70,229,.3); box-shadow: var(--shadow-sm); }
.mk-req-ico {
  width: 34px; height: 34px; border-radius: 9px; flex: none; display: grid; place-items: center;
  background: linear-gradient(140deg, #eef2ff, #e0f2fe); color: var(--brand-2);
}
.mk-req-item > span:nth-child(2) { flex: 1; min-width: 0; }
.mk-req-item b { display: block; font-size: 14.5px; color: var(--ink); margin-bottom: 2px; }
.mk-req-item em { font-style: normal; font-size: 13px; color: var(--muted); }
.mk-req-item > .ico { color: #cbd5e1; }

.mk-install {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 26px; box-shadow: var(--shadow-md); text-align: center;
  position: sticky; top: 92px;
}
.mk-install-ico {
  width: 56px; height: 56px; border-radius: 15px; margin: 0 auto 14px;
  display: grid; place-items: center;
  background: linear-gradient(140deg, #eef2ff, #e0f2fe); color: var(--brand-2);
}
.mk-install-ico .ico { width: 27px; height: 27px; }
.mk-install-name { font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.mk-install-cat { font-size: 13px; color: var(--muted); margin-bottom: 22px; }

.mk-install-meta { display: grid; gap: 11px; margin: 0 0 22px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mk-install-meta > div { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; }
.mk-install-meta dt { color: var(--muted); }
.mk-install-meta dd { margin: 0; color: var(--ink); font-weight: 600; }
.mk-install-meta .mk-free { color: #047857; }

.mk-install-btn { width: 100%; justify-content: center; }
.mk-install-btn[disabled] { opacity: .5; cursor: not-allowed; }
.mk-install-tip { font-size: 12.5px; color: #94a3b8; line-height: 1.7; margin: 12px 0 0; }
.mk-install-safe {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: 12.5px; color: #94a3b8;
}
.mk-install-safe .ico { color: #10b981; }

.mk-related { margin-top: 72px; }
.mk-related h2 { font-size: 20px; margin: 0 0 22px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .mk-grid, .mk-grid-sm { grid-template-columns: repeat(2, 1fr); }
  .mk-why-inner { grid-template-columns: 1fr; gap: 36px; }
  .mk-detail { grid-template-columns: 1fr; gap: 40px; }
  .mk-install { position: static; }
  .mk-summary { grid-template-columns: repeat(3, auto); gap: 26px; }
  .mk-note { grid-column: 1 / -1; justify-self: start; text-align: left; }
}

@media (max-width: 720px) {
  .mk-grid, .mk-grid-sm { grid-template-columns: 1fr; }
  .mk-summary { grid-template-columns: 1fr 1fr; padding: 20px 22px; }
  .mk-num { font-size: 23px; }
  .mk-tabs { gap: 8px; }
  .mk-tab { padding: 8px 14px; font-size: 13.5px; }
}

/* ============================================================
   账号与下载（2026-10-24 新增）
   注册 / 登录 / 我的账号 / 下载授权
   ============================================================ */

.auth-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 32px;
  align-items: start;
}
.auth-wrap-narrow { grid-template-columns: minmax(0, 520px); justify-content: center; }
.auth-title { font-size: 26px; margin: 0 0 6px; font-weight: 800; letter-spacing: -.4px; }
.auth-sub { margin: 0 0 24px; font-size: 15px; }

.auth-side {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
.auth-side h3 { font-size: 18px; margin: 0 0 8px; font-weight: 700; }
.auth-side .info-list li { border-top-color: var(--line); }
.auth-side .info-list li:first-child { border-top: none; }
.auth-side .ival { color: var(--muted); font-size: 14px; }

/* 输入框 + 按钮并排（短信验证码） */
.field-row { display: flex; gap: 10px; align-items: stretch; }
.field-row input { flex: 1; min-width: 0; }
.field-row .btn { white-space: nowrap; flex: none; }

.check-line {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 14px; color: var(--muted); line-height: 1.6; cursor: pointer;
}
.check-line input { margin-top: 3px; flex: none; }
.check-line a { color: var(--brand); }

.form-note.is-ok { color: #0f9d58; }
.form-note.is-err { color: #d93025; }

/* ---------- 我的账号 ---------- */
.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 44px;
}
.account-h { font-size: 18px; margin: 0 0 14px; font-weight: 700; }
.section-h { font-size: 22px; margin: 0 0 6px; font-weight: 800; letter-spacing: -.3px; }

.pack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.pack-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 22px; display: flex; flex-direction: column; gap: 10px;
  transition: box-shadow .2s, border-color .2s;
}
.pack-card:hover { box-shadow: var(--shadow-md); border-color: #d6dcec; }
.pack-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pack-head h3 { font-size: 16px; margin: 0; font-weight: 700; }
.pack-desc { font-size: 13px; margin: 0; flex: 1; line-height: 1.6; }
.pack-card .btn { margin-top: auto; }
/* 官网不再提供能力包下载，这里只是告知安装位置 —— 做成中性提示，不做成按钮 */
.pack-inapp {
  margin-top: auto;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 14px; border-radius: 10px; font-size: 13px; font-weight: 600;
  color: #52627c; background: var(--surface); border: 1px solid var(--line);
}

.tag {
  font-size: 12px; padding: 3px 9px; border-radius: 999px;
  background: var(--surface); color: var(--muted);
  border: 1px solid var(--line); white-space: nowrap; flex: none;
}

/* ---------- 滑块验证 ---------- */
[data-captcha] { user-select: none; -webkit-user-select: none; }

.slider-track {
  position: relative;
  width: 280px;
  max-width: 100%;
  height: 44px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  touch-action: none;
}
.slider-fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: linear-gradient(90deg, rgba(79,70,229,.16), rgba(59,130,246,.16));
  transition: width .05s linear;
}
/* 目标区：虚线框，用户把滑块拖进这个格子 */
.slider-target {
  position: absolute; top: 0; bottom: 0; display: none;
  border: 2px dashed var(--brand);
  border-radius: 999px;
  background: rgba(79,70,229,.06);
  box-sizing: border-box;
}
.slider-thumb {
  position: absolute; left: 0; top: 0;
  width: 44px; height: 44px; border-radius: 50%;
  background: #fff; border: 1px solid var(--line);
  box-shadow: 0 2px 8px rgba(11,18,38,.14);
  display: flex; align-items: center; justify-content: center;
  cursor: grab; z-index: 2;
  transition: transform .06s linear;
}
.slider-thumb.is-active { cursor: grabbing; transition: none; }
.slider-arrow {
  width: 0; height: 0;
  border-left: 9px solid var(--brand);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  margin-left: 4px;
}
.slider-hint {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--muted);
  pointer-events: none; z-index: 1;
}

/* 通过 */
[data-captcha].is-pass .slider-track { border-color: #0f9d58; background: #eaf7ee; }
[data-captcha].is-pass .slider-fill { background: rgba(15,157,88,.18); }
[data-captcha].is-pass .slider-hint { color: #0f9d58; font-weight: 600; }
[data-captcha].is-pass .slider-arrow { border-left-color: #0f9d58; }
[data-captcha].is-pass .slider-target { display: none !important; }

/* 失败抖动 */
[data-captcha].is-fail .slider-track { border-color: #d93025; animation: slider-shake .32s; }
[data-captcha].is-fail .slider-hint { color: #d93025; }
@keyframes slider-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

@media (max-width: 860px) {
  .auth-wrap { grid-template-columns: minmax(0, 1fr); }
  .auth-side { order: -1; }
}

/* ---------------- 找回密码：通道切换 ---------------- */
.auth-tabs {
  display: flex; gap: 8px; margin: 0 0 20px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 5px;
}
.auth-tab {
  flex: 1; border: 0; background: transparent; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 600; color: var(--muted);
  padding: 9px 10px; border-radius: 9px; transition: background .18s, color .18s;
}
.auth-tab:hover { color: var(--ink); }
.auth-tab.is-on { background: #fff; color: var(--brand-2); box-shadow: 0 1px 3px rgba(16, 24, 40, .08); }

/* ---------------- 登录设备 ---------------- */
.sess-list { display: grid; gap: 12px; margin-bottom: 28px; }
.sess-card {
  display: flex; align-items: center; gap: 18px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 18px 20px;
}
.sess-card.is-current { border-color: #c7d2fe; background: #f8f9ff; }
.sess-main { flex: 1; min-width: 0; }
.sess-title {
  font-size: 15px; font-weight: 600; color: var(--ink);
  display: flex; align-items: center; gap: 10px; margin-bottom: 6px;
}
.sess-meta { font-size: 13px; color: var(--muted); line-height: 1.7; }
.sess-meta.muted { color: var(--muted); opacity: .8; }
.sess-act { flex: none; }
/* 客户端授权区块的小标题与空状态 */
.sect-title { font-size: 18px; font-weight: 600; color: var(--ink); margin: 0 0 10px; }
.sess-empty {
  padding: 22px 20px; border: 1px dashed var(--line); border-radius: 14px;
  color: var(--muted); font-size: 14px; text-align: center; margin-bottom: 28px;
}
.sess-foot {
  border-top: 1px solid var(--line); padding-top: 22px;
  max-width: 620px;
}
.tag-ok { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }

@media (max-width: 640px) {
  .sess-card { flex-direction: column; align-items: flex-start; gap: 12px; }
  .sess-act { width: 100%; }
  .sess-act .btn { width: 100%; }
}

/* 审计日志：失败结果标签 */
.tag-fail { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
