/* 栖页 SitePub · Liquid Glass v4（预览层）
   在 jelly.css 之后加载；只改视觉与导航位置，不改业务 DOM 结构。
   目的：把“简约”升级为“有材质、有深度、有弹性”的苹果式界面。
*/

:root {
  --bg: #f5f5f7;
  --panel: rgba(255, 255, 255, 0.62);
  --panel-2: rgba(245, 245, 247, 0.86);
  --ink: #1d1d1f;
  --ink2: #424245;
  --ink3: #6e6e73;
  --ink4: #86868b;
  --line: rgba(0, 0, 0, 0.08);
  --line2: rgba(0, 0, 0, 0.05);
  --green: #0a7a58;
  --green-dk: #065f44;
  --green-soft: rgba(10, 122, 88, 0.1);
  --coral: #ff6b4a;
  --coral-dk: #e85535;
  --coral-soft: rgba(255, 107, 74, 0.12);
  --ok: #1a7f5a;
  --ok-bg: rgba(26, 127, 90, 0.12);
  --warn: #946200;
  --warn-bg: rgba(148, 98, 0, 0.1);
  --danger: #c0362c;
  --danger-bg: rgba(192, 54, 44, 0.1);
  --r-card: 28px;
  --r-input: 18px;
  --r-pill: 999px;

  --glass-bg: rgba(255, 255, 255, 0.58);
  --glass-bg-strong: rgba(255, 255, 255, 0.76);
  --glass-border: rgba(255, 255, 255, 0.72);
  --glass-edge: rgba(0, 0, 0, 0.08);
  --spec: inset 0 1px 0 rgba(255, 255, 255, 0.95), inset 0 -1px 0 rgba(255, 255, 255, 0.4);
  --sh-soft: 0 1px 2px rgba(0, 0, 0, 0.04), 0 16px 40px -20px rgba(0, 0, 0, 0.28), 0 4px 10px -6px rgba(0, 0, 0, 0.12);
  --sh-float: 0 2px 6px rgba(0, 0, 0, 0.05), 0 32px 64px -28px rgba(0, 0, 0, 0.38);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --smooth: cubic-bezier(0.22, 0.9, 0.24, 1);
}

html[data-theme="dark"] {
  --bg: #000000;
  --panel: rgba(28, 28, 30, 0.66);
  --panel-2: rgba(18, 18, 20, 0.86);
  --ink: #f5f5f7;
  --ink2: #d1d1d6;
  --ink3: #98989d;
  --ink4: #8e8e93;
  --line: rgba(255, 255, 255, 0.1);
  --line2: rgba(255, 255, 255, 0.06);
  --green: #30d59b;
  --green-dk: #23b982;
  --green-soft: rgba(48, 213, 155, 0.14);
  --coral: #ff9a80;
  --coral-dk: #f0836a;
  --coral-soft: rgba(255, 154, 128, 0.14);
  --ok: #7fd0aa;
  --ok-bg: rgba(127, 208, 170, 0.14);
  --warn: #e5c17a;
  --warn-bg: rgba(229, 193, 122, 0.12);
  --danger: #f0a08d;
  --danger-bg: rgba(240, 160, 141, 0.12);
  --glass-bg: rgba(28, 28, 30, 0.6);
  --glass-bg-strong: rgba(28, 28, 30, 0.8);
  --glass-border: rgba(255, 255, 255, 0.14);
  --glass-edge: rgba(255, 255, 255, 0.12);
  --spec: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 -1px 0 rgba(0, 0, 0, 0.4);
  --sh-soft: 0 1px 2px rgba(0, 0, 0, 0.6), 0 18px 44px -22px rgba(0, 0, 0, 0.9);
  --sh-float: 0 2px 8px rgba(0, 0, 0, 0.7), 0 40px 80px -32px rgba(0, 0, 0, 1);
}

/* ---------- 环境：氛围光 + 颗粒 ---------- */
body {
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  letter-spacing: -0.01em;
}
body::before {
  content: "";
  position: fixed;
  inset: -20vh -10vw auto -10vw;
  height: 90vh;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(38% 42% at 18% 22%, rgba(10, 122, 88, 0.22), transparent 70%),
    radial-gradient(34% 38% at 78% 12%, rgba(255, 107, 74, 0.16), transparent 70%),
    radial-gradient(40% 44% at 52% 48%, rgba(90, 130, 255, 0.12), transparent 72%);
  filter: blur(40px) saturate(1.2);
}
html[data-theme="dark"] body::before {
  background:
    radial-gradient(38% 42% at 18% 22%, rgba(48, 213, 155, 0.16), transparent 70%),
    radial-gradient(34% 38% at 78% 12%, rgba(255, 154, 128, 0.12), transparent 70%),
    radial-gradient(40% 44% at 52% 48%, rgba(90, 130, 255, 0.1), transparent 72%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='160' height='160' filter='url(%23n)' opacity='0.55'/></svg>");
  mix-blend-mode: multiply;
}
html[data-theme="dark"] body::after { mix-blend-mode: screen; opacity: 0.04; }

/* ---------- 通用玻璃质 ---------- */
.card,
.kpi,
.site-card,
.status-hero,
.table-wrap,
.mk-nav,
.mk-card,
.mk-step,
.mk-plan,
.mk-note,
.auth-card .card {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(26px) saturate(1.8);
  backdrop-filter: blur(26px) saturate(1.8);
  border: 1px solid var(--glass-border);
  box-shadow: var(--spec), var(--sh-soft);
  border-radius: var(--r-card);
}
.card::before,
.kpi::before,
.site-card::before,
.status-hero::before,
.mk-card::before,
.mk-plan::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.1) 34%, rgba(255, 255, 255, 0.04) 62%, rgba(255, 255, 255, 0.55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
html[data-theme="dark"] .card::before,
html[data-theme="dark"] .kpi::before,
html[data-theme="dark"] .site-card::before,
html[data-theme="dark"] .status-hero::before,
html[data-theme="dark"] .mk-card::before,
html[data-theme="dark"] .mk-plan::before {
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.03) 40%, rgba(255, 255, 255, 0.02) 65%, rgba(255, 255, 255, 0.2));
}
.card, .kpi, .site-card, .status-hero, .mk-card, .mk-plan { position: relative; }

/* 卡片内的“湿感”高光 */
.card::after,
.site-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(120% 60% at 12% 0%, rgba(255, 255, 255, 0.5), transparent 55%);
  opacity: 0.7;
}
html[data-theme="dark"] .card::after,
html[data-theme="dark"] .site-card::after { background: radial-gradient(120% 60% at 12% 0%, rgba(255, 255, 255, 0.08), transparent 55%); }

/* ---------- 排版：按 Apple 实测比例 ---------- */
h1 { font-size: 34px; font-weight: 650; line-height: 1.08; letter-spacing: -0.022em; }
h2 { font-size: 22px; font-weight: 650; letter-spacing: -0.018em; }
.page-head .sub { font-size: 15px; color: var(--ink3); }
.eyebrow { font-size: 12px; letter-spacing: 0.18em; color: var(--ink4); }
.kpi .value { font-size: 28px; font-weight: 650; letter-spacing: -0.03em; }
.site-card .name { font-size: 17px; font-weight: 650; letter-spacing: -0.015em; }

/* ---------- 按钮：可压扁的果冻 ---------- */
.btn {
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--r-pill);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform 260ms var(--spring), background 180ms var(--smooth), box-shadow 260ms var(--smooth);
}
.btn:hover { transform: translateY(-2px) scale(1.01); }
.btn:active { transform: scale(0.95); box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.18); }
.btn.ghost { background: var(--glass-bg); border-color: var(--glass-border); box-shadow: var(--spec), 0 8px 20px -14px rgba(0, 0, 0, 0.4); }
.btn.coral { box-shadow: var(--spec), 0 12px 28px -14px rgba(255, 107, 74, 0.7); }

/* ---------- 输入 ---------- */
input, select, textarea {
  min-height: 50px;
  border-radius: var(--r-input);
  background: var(--glass-bg-strong);
  border-color: var(--glass-border);
  box-shadow: var(--spec);
  font-size: 15px;
}
input:focus, select:focus, textarea:focus {
  border-color: color-mix(in srgb, var(--green) 55%, var(--glass-border));
  box-shadow: 0 0 0 4px var(--green-soft), var(--spec);
}

/* ---------- 导航 v4：全局悬浮 Dock ---------- */
.app-shell {
  display: block;
  min-height: 100vh;
  padding: 0;
  background: transparent;
}
.rail {
  position: fixed;
  top: auto;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateZ(0);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(600px, calc(100vw - 40px));
  height: 74px;
  padding: 8px 10px;
  border: 1px solid var(--glass-border);
  border-radius: 37px;
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(30px) saturate(2);
  backdrop-filter: blur(30px) saturate(2);
  box-shadow: var(--spec), var(--sh-float);
  overflow: visible;
}
.rail-head, .rail-nav-desktop, .rail-note { display: none !important; }
.rail nav.rail-nav-mobile {
  display: flex;
  width: 100%;
  height: 100%;
  gap: 2px;
}
.rail-nav-mobile a {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 28px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink3);
  transition: background 220ms var(--smooth), color 220ms var(--smooth), transform 320ms var(--spring);
}
.rail-nav-mobile a svg { width: 23px; height: 23px; }
.rail-nav-mobile a:hover { background: rgba(127, 127, 127, 0.1); color: var(--ink); }
.rail-nav-mobile a.on { color: var(--green); background: var(--green-soft); }
.rail-nav-mobile a:active { transform: scale(0.9); }

/* 顶部玻璃栏（所有宽度） */
.mobile-top {
  display: flex !important;
  align-items: center;
  gap: 10px;
  position: sticky;
  top: 10px;
  z-index: 50;
  height: 58px;
  margin: 10px auto 0;
  padding: 0 14px;
  width: min(1240px, calc(100% - 28px));
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(26px) saturate(1.8);
  backdrop-filter: blur(26px) saturate(1.8);
  box-shadow: var(--spec), var(--sh-soft);
}
.mobile-top .rail-brand { font-size: 17px; font-weight: 650; }
.mobile-top .rail-theme-btn { margin-left: 0; }
.mobile-top .spacer { flex: 1; }
.mobile-top .me { display: flex; align-items: center; gap: 10px; }
.mobile-top .me a.avatar {
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; color: var(--green); background: var(--green-soft);
  border: 1px solid var(--glass-border);
}
.app-view { max-width: 1240px; padding: 22px 32px 160px; margin: 0 auto; }
.app-view > .page { max-width: 1120px; }

/* 专业版二级导航：贴在顶栏下方 */
.subnav {
  display: flex;
  gap: 4px;
  margin: 14px auto 0;
  padding: 5px;
  width: fit-content;
  max-width: 100%;
  border-radius: var(--r-pill);
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--spec);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
  overflow-x: auto;
  scrollbar-width: none;
}
.subnav::-webkit-scrollbar { display: none; }
.subnav a {
  padding: 9px 18px;
  border-radius: var(--r-pill);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink3);
  white-space: nowrap;
}
.subnav a:hover { color: var(--ink); }
.subnav a.on { background: var(--panel); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 8px 18px -12px rgba(0, 0, 0, 0.3); }

/* ---------- OPS：顶部玻璃栏保持 ---------- */
.ops-topbar {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(26px) saturate(1.8);
  backdrop-filter: blur(26px) saturate(1.8);
  border-bottom-color: var(--glass-border);
  box-shadow: var(--spec), 0 10px 30px -24px rgba(0, 0, 0, 0.4);
}

/* ---------- 营销页：更苹果的字阶 ---------- */
.mk-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 48px;
  align-items: center;
  padding: 56px 0 48px;
}
.mk-hero-copy { max-width: 640px; }
.mk-hero h1 em { display: block; font-style: normal; color: var(--green); white-space: nowrap; }
.mk-hero h1 {
  font-size: clamp(46px, 6.4vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 22px 0 18px;
}
.mk-hero .mk-lede { font-size: 18px; line-height: 1.65; letter-spacing: -0.012em; }
.mk-nav { border-radius: 999px; }
.mk-price-head h1 { font-size: 44px; line-height: 1.05; letter-spacing: -0.03em; }
.mk-plan .price { font-size: 42px; }

/* 玻璃页堆：产品的“页”变成材质 */
.mk-stage {
  position: relative;
  height: 430px;
  perspective: 1400px;
  perspective-origin: 60% 40%;
}
.mk-sheet {
  position: absolute;
  right: 0;
  top: 30px;
  width: 88%;
  height: 340px;
  border-radius: 30px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg-strong);
  -webkit-backdrop-filter: blur(28px) saturate(1.9);
  backdrop-filter: blur(28px) saturate(1.9);
  box-shadow: var(--spec), var(--sh-float);
  overflow: hidden;
  transform-origin: 70% 60%;
}
.mk-sheet::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0) 38%),
    radial-gradient(90% 70% at 20% 0%, rgba(255, 255, 255, 0.55), transparent 60%);
}
.mk-sheet-3 { transform: translate(-64px, 56px) rotate(-8deg) scale(0.9); opacity: 0.55; background: linear-gradient(160deg, rgba(255, 255, 255, 0.5), rgba(223, 241, 233, 0.55)); }
.mk-sheet-2 { transform: translate(-32px, 26px) rotate(-4deg) scale(0.95); opacity: 0.8; background: linear-gradient(160deg, rgba(255, 255, 255, 0.6), rgba(246, 231, 226, 0.6)); }
.mk-sheet-1 { transform: rotate(1.5deg); }
@media (prefers-reduced-motion: no-preference) {
  .mk-sheet-1 { animation: sheet-float 8s var(--smooth) infinite; }
  @keyframes sheet-float {
    0%, 100% { transform: rotate(1.5deg) translateY(0); }
    50% { transform: rotate(0.4deg) translateY(-10px); }
  }
}
.mk-sheet-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line2);
  background: rgba(255, 255, 255, 0.35);
}
.mk-sheet-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(0, 0, 0, 0.14); }
.mk-sheet-bar i:nth-child(1) { background: #ff6b5e; }
.mk-sheet-bar i:nth-child(2) { background: #ffc14d; }
.mk-sheet-bar i:nth-child(3) { background: #35c759; }
.mk-sheet-bar span {
  margin-left: 10px;
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--ink3);
  letter-spacing: 0.01em;
}
.mk-sheet-body { padding: 24px 26px; display: grid; gap: 10px; }
.mk-skeleton { height: 10px; border-radius: 999px; background: linear-gradient(90deg, rgba(29, 29, 31, 0.14), rgba(29, 29, 31, 0.06)); }
.mk-skeleton.w-55 { width: 55%; height: 16px; }
.mk-skeleton.w-35 { width: 35%; }
.mk-skeleton.w-80 { width: 80%; }
.mk-skeleton.w-45 { width: 45%; }
.mk-sheet-visual {
  height: 96px;
  margin: 8px 0;
  border-radius: 18px;
  background:
    radial-gradient(70% 120% at 18% 0%, rgba(10, 122, 88, 0.55), transparent 62%),
    radial-gradient(60% 100% at 88% 40%, rgba(255, 107, 74, 0.45), transparent 60%),
    linear-gradient(135deg, #dff1e9, #f6e7e2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.mk-badge {
  position: absolute;
  left: 22px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--glass-border);
  box-shadow: var(--spec), 0 10px 24px -14px rgba(0, 0, 0, 0.4);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink2);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.mk-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(26, 127, 90, 0.16); }
.mk-badge-2 { left: auto; right: 22px; color: var(--ink3); font-weight: 500; }
html[data-theme="dark"] .mk-sheet-bar { background: rgba(255, 255, 255, 0.06); }
html[data-theme="dark"] .mk-sheet-bar span { background: rgba(255, 255, 255, 0.08); }
html[data-theme="dark"] .mk-badge { background: rgba(28, 28, 30, 0.8); }

/* 步骤：去数字，改状态点 */
.mk-step::before {
  counter-increment: none;
  content: "";
  position: absolute;
  top: 24px;
  right: 22px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px var(--green-soft);
}

@media (max-width: 980px) {
  .mk-hero { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; }
  .mk-stage { height: 330px; }
  .mk-sheet { height: 270px; width: 78%; right: 6%; }
  .mk-sheet-3 { display: none; }
}
@media (max-width: 640px) {
  .mk-stage { height: 280px; }
  .mk-sheet { width: 88%; height: 230px; right: 4%; top: 16px; border-radius: 24px; }
  .mk-sheet-body { padding: 16px 18px; gap: 8px; }
  .mk-sheet-visual { height: 64px; }
}

/* ---------- 动效 ---------- */
@media (prefers-reduced-motion: no-preference) {
  .app-view > .page { animation: v4-in 480ms var(--smooth) both; }
  @keyframes v4-in {
    from { opacity: 0; transform: translateY(14px) scale(0.994); }
    to { opacity: 1; transform: none; }
  }
  .site-card:hover { transform: translateY(-4px) scale(1.005); box-shadow: var(--spec), var(--sh-float); }
  .mk-card:hover, .mk-plan:hover { transform: translateY(-4px); box-shadow: var(--spec), var(--sh-float); }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: 0.01ms !important; }
}

/* ---------- 断点 ---------- */
@media (max-width: 900px) and (min-width: 641px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi:nth-child(3) { grid-column: 1 / -1; }
}
@media (max-width: 880px) {
  .mobile-top { width: calc(100% - 20px); margin-top: 8px; height: 54px; border-radius: 18px; }
  .rail {
    left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom));
    width: auto; transform: none;
    height: calc(64px + env(safe-area-inset-bottom));
    border-radius: 30px;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  }
  .rail-nav-mobile a { font-size: 10.5px; }
  .rail-nav-mobile a svg { width: 22px; height: 22px; }
  .app-view { padding: 16px 16px calc(120px + env(safe-area-inset-bottom)); }
  h1 { font-size: 29px; }
  .kpi .value { font-size: 24px; }
}
@media (max-width: 520px) {
  .mk-hero h1 { font-size: 42px; }
  .mk-hero .mk-lede { font-size: 16px; }
  .mk-price-head h1 { font-size: 34px; }
  .mk-plan .price { font-size: 36px; }
}

/* ---------- 登录：玻璃 + 竖排母题 ---------- */
.auth {
  position: relative;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
  overflow: clip;
  background: var(--bg);
}
.auth-orbs i { position: absolute; border-radius: 50%; filter: blur(60px); opacity: 0.5; pointer-events: none; }
.auth-orbs i:nth-child(1) { width: 560px; height: 560px; left: -160px; top: -160px; background: radial-gradient(circle, rgba(10, 122, 88, 0.55), transparent 68%); }
.auth-orbs i:nth-child(2) { width: 480px; height: 480px; right: -120px; top: 10%; background: radial-gradient(circle, rgba(255, 107, 74, 0.42), transparent 68%); }
.auth-orbs i:nth-child(3) { width: 420px; height: 420px; left: 38%; bottom: -180px; background: radial-gradient(circle, rgba(90, 130, 255, 0.34), transparent 68%); }
.auth-wrap {
  position: relative;
  width: min(1120px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 64px;
  align-items: center;
}
.auth-aside { display: flex; flex-direction: column; align-items: flex-start; gap: 28px; text-align: left; justify-self: end; }
.auth-brand { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; letter-spacing: -0.02em; }
.auth-brand img { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 0 0 1px var(--line), 0 8px 18px -10px rgba(0, 0, 0, 0.4); }
.auth-vert { display: flex; align-items: flex-start; gap: 24px; }
.auth-slogan {
  writing-mode: vertical-rl;
  text-orientation: upright;
  white-space: nowrap;
  margin: 0;
  font-size: 42px;
  line-height: 1.12;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--ink);
}
.auth-sub {
  writing-mode: vertical-rl;
  text-orientation: upright;
  margin: 0;
  font-size: 12.5px;
  line-height: 2.1;
  letter-spacing: 0.12em;
  color: var(--ink3);
}
.auth-lede { margin: 0; max-width: 360px; font-size: 15px; line-height: 1.7; color: var(--ink3); letter-spacing: -0.005em; }
.auth-points { display: flex; gap: 8px; flex-wrap: wrap; }
.auth-points span {
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--spec);
  font-size: 12.5px;
  color: var(--ink3);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.auth-card { position: relative; }
.auth-panel { position: relative; z-index: 1; padding: 30px; border-radius: 32px; }
.auth-head { display: flex; align-items: center; justify-content: space-between; }
.auth-sheet {
  position: absolute;
  inset: 22px -20px -20px 22px;
  z-index: 0;
  border-radius: 32px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  box-shadow: var(--sh-soft);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
.auth .notice.info { background: var(--green-soft); border: 1px solid transparent; border-radius: 16px; }

/* ---------- OPS：分段导航 ---------- */
.ops-tabs {
  display: flex;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  margin-bottom: 18px;
  padding: 6px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: var(--glass-bg);
  box-shadow: var(--spec);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
  overflow-x: auto;
  scrollbar-width: none;
}
.ops-tabs::-webkit-scrollbar { display: none; }
.ops-tabs a { border: 0; border-radius: 999px; padding: 8px 17px; font-weight: 600; white-space: nowrap; }
.ops-tabs a.on { background: var(--panel); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 8px 18px -12px rgba(0, 0, 0, 0.3); }

/* ---------- 移动端细节 ---------- */
@media (max-width: 980px) {
  .auth-wrap { grid-template-columns: 1fr; gap: 30px; justify-items: start; }
  .auth-aside { justify-self: start; }
  .auth-vert { gap: 16px; }
  .auth-slogan { font-size: 34px; }
  .auth-sheet { display: none; }
  .auth-panel { padding: 24px; border-radius: 26px; }
}
@media (max-width: 640px) {
  .auth { padding: 24px 14px 40px; align-items: start; }
  .auth-vert { flex-direction: column; }
  .auth-slogan, .auth-sub { writing-mode: horizontal-tb; text-orientation: initial; letter-spacing: -0.02em; line-height: 1.25; }
  .auth-slogan { font-size: 32px; }
  .auth-sub { font-size: 13px; line-height: 1.7; letter-spacing: 0; color: var(--ink3); }
  .auth-points { display: none; }
  .auth-panel { padding: 20px; border-radius: 24px; }
}
@media (max-width: 420px) {
  .mobile-top .me .btn.sm { display: none; }
  .mobile-top { height: 50px; }
  .rail { height: calc(62px + env(safe-area-inset-bottom)); }
  .rail-nav-mobile a { font-size: 10px; gap: 2px; }
  .rail-nav-mobile a svg { width: 21px; height: 21px; }
  .subnav { width: 100%; }
  .subnav a { padding: 8px 13px; font-size: 12.5px; }
}

/* ============================================================================
   v5 验收修正：导航合并、顶部三段居中、卡片压缩、字阶统一
   ============================================================================ */

/* ---- 顶部栏：品牌 | 分区 | 操作，严格三段居中 ---- */
.mobile-top {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  width: min(1240px, calc(100% - 28px));
  height: 56px;
  margin: 10px auto 0;
  padding: 0 10px 0 14px;
  border-radius: 18px;
}
.mobile-top .rail-brand { justify-self: start; }
.topnav {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(127, 127, 127, 0.1);
}
.topnav a {
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink3);
  white-space: nowrap;
  transition: background 160ms, color 160ms;
}
.topnav a:hover { color: var(--ink); }
.topnav a.on { background: var(--panel); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); }
.top-actions { display: flex; align-items: center; gap: 6px; justify-self: end; }
.icon-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink3);
  cursor: pointer;
  transition: background 160ms, color 160ms;
}
.icon-btn:hover { background: rgba(127, 127, 127, 0.14); color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  background: var(--green-soft);
  border: 1px solid var(--glass-border);
}

/* ---- 页面头：更小的标题、更短的行高 ---- */
.page-head { margin: 0 0 18px; align-items: flex-start; }
.page-head h1 { font-size: 30px; line-height: 1.12; letter-spacing: -0.025em; }
.page-head .sub { margin-top: 6px; font-size: 14px; line-height: 1.55; color: var(--ink3); max-width: 560px; }
.eyebrow { display: none; }

/* ---- KPI：合并成一条统计带，而不是三张大卡 ---- */
.kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  margin-bottom: 16px;
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  background: var(--glass-bg);
  box-shadow: var(--spec), var(--sh-soft);
  overflow: hidden;
  -webkit-backdrop-filter: blur(24px) saturate(1.7);
  backdrop-filter: blur(24px) saturate(1.7);
}
.kpi {
  padding: 14px 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  min-height: 0;
}
.kpi + .kpi { border-left: 1px solid var(--line); }
.kpi::before, .kpi::after { display: none; }
.kpi .label { font-size: 12px; letter-spacing: 0.02em; color: var(--ink3); }
.kpi .value { margin-top: 2px; font-size: 22px; line-height: 1.2; letter-spacing: -0.02em; }
.kpi .hint { margin-top: 3px; font-size: 12px; color: var(--ink3); }

/* ---- 站点卡：压缩留白，按钮变轻 ---- */
.site-card { padding: 16px 18px; border-radius: 20px; }
.site-card .top { gap: 8px; align-items: flex-start; }
.site-card .name { font-size: 16px; }
.site-card .addr { margin-top: 2px; font-size: 12.5px; color: var(--ink3); }
.site-card .meta { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: var(--ink3); }
.site-card .bar { margin-top: 8px; height: 4px; }
.site-card .actions { margin-top: 12px; gap: 6px; }
.site-card .actions .btn {
  min-height: 32px;
  padding: 0 13px;
  font-size: 12.5px;
  box-shadow: none;
  background: transparent;
  border-color: var(--line);
}
.site-card .actions .btn:hover { background: var(--panel-2); transform: none; }

/* ---- 表格：更紧凑 ---- */
table.data th { padding: 10px 12px; font-size: 11.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink3); }
table.data td { padding: 10px 12px; font-size: 13px; }
.table-wrap caption { padding: 10px 12px 6px !important; }

/* ---- OPS：与 App 同一套悬浮顶栏 ---- */
.ops-topbar {
  position: sticky;
  top: 10px;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  width: min(1240px, calc(100% - 28px));
  height: 56px;
  margin: 10px auto 0;
  padding: 0 10px 0 14px;
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(26px) saturate(1.8);
  backdrop-filter: blur(26px) saturate(1.8);
  box-shadow: var(--spec), var(--sh-soft);
}
.ops-topbar .brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 16px; }
.ops-topbar .brand img { width: 28px; height: 28px; border-radius: 9px; }
.ops-topbar .topnav { justify-self: center; }
.ops-topbar .top-actions { justify-self: end; }
.ops-topbar .who { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink3); white-space: nowrap; margin-right: 4px; }
.ops-topbar .who .chip { font-size: 11px; padding: 1px 8px; }
.ops-content { max-width: 1240px; margin: 0 auto; padding: 20px 4px 64px; }

/* ---- 移动端：只保留一条导航（Dock） ---- */
@media (max-width: 880px) {
  .mobile-top { grid-template-columns: 1fr auto; height: 54px; padding: 0 8px 0 12px; }
  .mobile-top .topnav { display: none; }
  .ops-topbar {
    grid-template-columns: 1fr auto;
    grid-template-rows: 46px auto;
    height: auto;
    padding: 6px 8px 8px 12px;
    row-gap: 4px;
  }
  .ops-topbar .topnav {
    display: flex;
    grid-column: 1 / -1;
    justify-self: stretch;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 3px;
  }
  .ops-topbar .topnav::-webkit-scrollbar { display: none; }
  .ops-topbar .topnav a { flex: 1 0 auto; text-align: center; padding: 7px 12px; font-size: 12.5px; }
  .ops-content { padding: 16px 14px 96px; }
  .ops-content .page-head h1 { font-size: 25px; }
  .ops-content .page-head .sub { font-size: 13px; }
  .page-head h1 { font-size: 26px; }
  .page-head .sub { font-size: 13.5px; }
  .kpi { padding: 12px 12px; }
  .kpi .value { font-size: 20px; }
  .kpi .label { font-size: 11.5px; }
  .kpi .hint { display: none; }
  .app-view { padding: 14px 14px calc(110px + env(safe-area-inset-bottom)); }
  .site-card { padding: 14px 15px; }
}
@media (max-width: 420px) {
  .mobile-top { height: 50px; }
  .kpi .value { font-size: 18px; }
}

/* 平板：站点卡单列变两列，避免大卡堆叠 */
@media (min-width: 641px) and (max-width: 1023px) {
  .sites { grid-template-columns: 1fr; }
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .rail, .mobile-top, .card, .kpi, .site-card, .mk-nav, .subnav { background: var(--panel-2); }
}

/* 不支持毛玻璃时回退为实底 */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .rail, .mobile-top, .card, .kpi, .site-card, .mk-nav, .kpis, .ops-topbar { background: var(--panel-2); }
}

/* 主题切换图标：只显示一个 */
.icon-btn .ic-moon { display: none; }
html[data-theme="dark"] .icon-btn .ic-sun { display: none; }
html[data-theme="dark"] .icon-btn .ic-moon { display: block; }

/* ---- 验收修正 2：表格密度、操作链接、移动端统计带 ---- */
table.data caption { display: none; }
table.data th { padding: 9px 12px; }
table.data td { padding: 9px 12px; }
.table-wrap .btn,
.ops-content .table-wrap .btn {
  min-height: 28px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 12.5px;
  box-shadow: none;
}
.table-wrap .btn:hover { background: var(--green-soft); transform: none; }
.domain-strip { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
@media (max-width: 900px) {
  .kpi:nth-child(3) { grid-column: auto; }
}
@media (max-width: 880px) {
  .domain-strip { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
  .domain-strip::-webkit-scrollbar { display: none; }
  .domain-strip .chip { flex: 0 0 auto; }
  .site-card .actions { display: flex; flex-wrap: wrap; }
  .site-card .actions .btn { width: auto; flex: 0 0 auto; }
}

/* ---- 站点详情 tabs：与顶部同款分段 ---- */
.tabs {
  display: flex;
  gap: 4px;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 18px;
  padding: 5px;
  border: 0;
  border-radius: 999px;
  background: var(--glass-bg);
  box-shadow: var(--spec);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a { border: 0; border-radius: 999px; padding: 8px 15px; font-size: 13px; font-weight: 600; color: var(--ink3); white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { background: var(--panel); color: var(--ink); border: 0; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.crumb { font-size: 12.5px; color: var(--ink3); margin-bottom: 10px; }
.crumb a { color: var(--ink3); }
.crumb a:hover { color: var(--ink); }

/* ---- 移动端：单列节奏 ---- */
@media (max-width: 880px) {
  .app-view > .page { max-width: none; }
  .page-head { gap: 10px; }
  .page-head h1 { font-size: 25px; letter-spacing: -0.02em; }
  .page-head .sub { font-size: 13px; line-height: 1.6; }
  .page-head .btn { min-height: 38px; padding: 0 16px; font-size: 13.5px; }
  .kpis { border-radius: 18px; margin-bottom: 14px; }
  .kpi { padding: 12px 13px; }
  .kpi .label { font-size: 11px; }
  .kpi .value { font-size: 19px; }
  .domain-strip { margin-bottom: 14px; }
  .domain-strip .chip { font-size: 11.5px; }
  .site-card { border-radius: 18px; }
  .site-card .name { font-size: 15.5px; }
  .site-card .actions { gap: 6px; }
  .site-card .actions .btn { min-height: 34px; padding: 0 12px; font-size: 12.5px; }
  .status-hero { padding: 14px; border-radius: 18px; }
  .status-hero .big { font-size: 16px; }
  .tabs { margin-bottom: 14px; }
  .tabs a { padding: 7px 13px; font-size: 12.5px; }
}

.icon-btn svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ops-topbar .icon-btn svg { width: 17px; height: 17px; }

/* 顶部栏栅格：操作区固定第 3 列（手机第 2 列），占位 span 不占格 */
.mobile-top .top-actions { grid-column: 3; grid-row: 1; }
.mobile-top > span:empty { display: none; }
@media (max-width: 880px) {
  .mobile-top .top-actions { grid-column: 2; }
  .steps { gap: 6px; }
  .step { padding: 8px 9px; font-size: 12px; border-radius: 12px; }
}

@media (max-width: 880px) {
  .ops-topbar .brand { grid-row: 1; grid-column: 1; }
  .ops-topbar .top-actions { grid-row: 1; grid-column: 2; }
  .ops-topbar .topnav { grid-row: 2; grid-column: 1 / -1; }
}

/* 营销导航三段居中 */
.mk-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; }
.mk-nav .brand { justify-self: start; }
.mk-nav nav { justify-self: center; margin-left: 0; }
.mk-nav-actions { justify-self: end; display: flex; align-items: center; gap: 8px; }
.mk-nav .spacer { display: none; }

/* 表格行高收紧 */
table.data tr { height: 46px; }
table.data td { padding: 8px 12px; }
@media (max-width: 760px) {
  table.data tr { height: auto; }
  table.data td { padding: 0; }
}

/* 手机定价卡压缩 */
@media (max-width: 640px) {
  .mk-plans { gap: 10px; }
  .mk-plan { padding: 16px; border-radius: 20px; gap: 8px; }
  .mk-plan .days { display: none; }
  .mk-plan .price { font-size: 30px; }
  .mk-plan .btn { min-height: 40px; font-size: 13.5px; }
}

/* 内容卡等高 */
.grid2 { align-items: stretch; }
.grid2 > .card { display: flex; flex-direction: column; }
.grid2 > .card > .card-body { flex: 1; display: flex; flex-direction: column; }
.grid2 > .card > .card-body > .kv { flex: 1; }

/* 营销胶囊导航：手机只留「定价」，登录固定右侧 */
@media (max-width: 640px) {
  .mk-nav { grid-template-columns: auto 1fr auto; gap: 6px; padding: 8px 8px 8px 12px; }
  .mk-nav .brand { font-size: 15px; }
  .mk-nav .brand img { width: 24px; height: 24px; }
  .mk-nav nav { display: flex; grid-column: 2; justify-self: center; margin: 0; }
  .mk-nav nav a { padding: 7px 10px; font-size: 13px; }
  .mk-nav nav a:not(.mk-link-pricing) { display: none; }
  .mk-nav-actions { grid-column: 3; justify-self: end; gap: 6px; }
  .mk-nav .mk-theme { width: 34px; height: 34px; }
  .mk-nav .mk-login { padding: 8px 14px; font-size: 13.5px; }
}
@media (max-width: 360px) {
  .mk-nav .mk-theme { display: none; }
}

@media (max-width: 640px) {
  .mk-nav { position: relative; }
  .mk-nav nav { position: absolute; left: 50%; transform: translateX(-50%); grid-column: auto; }
}
