/* 投标标官网 · 参考深圳教育云资源平台（zy.szedu.cn）门户气质 */

:root {
  --brand: #2b7de9;
  --brand-deep: #1a5fc4;
  --brand-soft: #e8f2ff;
  --brand-mid: #4b94f0;
  --ink: #1f2d3d;
  --muted: #6b7c8f;
  --line: #e4ebf3;
  --paper: #f5f7fb;
  --card: #ffffff;
  --danger: #e34d59;
  --ok: #1b7f4a;
  --shadow: 0 4px 16px rgba(31, 64, 120, 0.08);
  --shadow-lg: 0 12px 40px rgba(31, 64, 120, 0.12);
  --font-display: "PingFang SC", "Microsoft YaHei UI", "Hiragino Sans GB", sans-serif;
  --font-body: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  --edge: clamp(16px, 3.5vw, 32px);
  --header-h: 72px;
  --radius: 10px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  min-height: 100vh;
}
body:has(.admin-layout) {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}
html:has(.admin-layout) {
  height: 100%;
  overflow: hidden;
}

.page-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--paper);
  pointer-events: none;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-deep); text-decoration: underline; }

.wrap { width: min(1180px, calc(100% - var(--edge) * 2)); margin: 0 auto; }

/* —— 顶栏：白底门户导航 —— */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(255,255,255,.8), 0 2px 10px rgba(40, 80, 140, 0.04);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: var(--header-h);
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}
.logo:hover { text-decoration: none; color: var(--ink); }
.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  background: linear-gradient(145deg, var(--brand-mid), var(--brand-deep));
  box-shadow: 0 4px 12px rgba(43, 125, 233, 0.35);
  flex-shrink: 0;
  overflow: hidden;
}
.logo-mark img,
.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: contain;
  display: block;
  background: #fff;
  box-shadow: 0 4px 12px rgba(43, 125, 233, 0.2);
  flex-shrink: 0;
}
.logo-text-wrap { display: flex; flex-direction: column; gap: 1px; line-height: 1.15; }
.logo-text { font-size: 18px; font-weight: 700; letter-spacing: 0.02em; color: var(--ink); }
.logo-sub { font-size: 11px; color: var(--muted); font-weight: 400; letter-spacing: 0.04em; }

.nav-links {
  display: flex;
  flex-wrap: nowrap;
  gap: 2px 4px;
  align-items: stretch;
  height: 100%;
}
.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: #3a4a5c;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 0 16px;
  height: 100%;
  border-radius: 0;
  transition: color .15s;
}
.nav-links a:hover {
  color: var(--brand);
  background: transparent;
  text-decoration: none;
}
.nav-links a.active {
  color: var(--brand);
  background: transparent;
  font-weight: 600;
}
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--brand);
}
.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 22px;
  color: var(--ink);
  cursor: pointer;
  padding: 8px;
}

/* —— 首页横幅 Hero（教育云风格浅蓝带） —— */
.portal-banner {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 90% at 85% 20%, rgba(255,255,255,.45), transparent 55%),
    radial-gradient(ellipse 50% 70% at 10% 90%, rgba(26, 95, 196, .18), transparent 50%),
    linear-gradient(118deg, #1f6fe0 0%, #3d8ff0 42%, #5aa8f8 78%, #7ec0ff 100%);
  padding: clamp(40px, 6vw, 72px) 0 clamp(48px, 7vw, 80px);
}
.portal-banner::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  right: -80px;
  top: -120px;
  background: rgba(255,255,255,.12);
  pointer-events: none;
}
.portal-banner::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 48px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath fill='%23f5f7fb' d='M0,32 C360,48 720,0 1080,20 C1260,30 1380,36 1440,28 L1440,48 L0,48 Z'/%3E%3C/svg%3E")
    center bottom / 100% 48px no-repeat;
  pointer-events: none;
}

.hero-split { padding: 0; }
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.hero-copy { max-width: 36rem; color: #fff; }
.hero-brand-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px 14px;
  margin: 0 0 16px;
}
.brand-mark {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 52px);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.1;
  color: #fff;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  text-shadow: 0 2px 12px rgba(10, 50, 120, 0.2);
}
.version-pill {
  display: inline-flex;
  align-items: center;
  margin: 0 0 4px;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  background: #e53935;
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 4px 12px rgba(198, 40, 40, 0.35);
  flex-shrink: 0;
}
.hero-slogan {
  display: block;
  margin: 0 0 28px;
  font-family: var(--font-display);
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 400;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.95);
  max-width: 22em;
  white-space: pre-line;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: background .15s, box-shadow .15s, color .15s, border-color .15s;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: #fff;
  color: var(--brand-deep);
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(10, 50, 120, 0.18);
}
.btn-primary:hover {
  background: #f3f8ff;
  color: var(--brand-deep);
}
.portal-banner .btn-primary {
  background: #fff;
  color: var(--brand-deep);
}
.btn-ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,.65);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.14);
  color: #fff;
  border-color: #fff;
}
.btn-lg { padding: 12px 26px; font-size: 15px; font-weight: 600; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.danger { background: var(--danger); color: #fff; }
.btn.sm { padding: 6px 12px; font-size: 13px; border-radius: 6px; }
.btn.ghost {
  background: #fff;
  color: var(--brand);
  border: 1px solid var(--brand);
}
.btn.ghost:hover { background: var(--brand-soft); }

/* 非横幅区主按钮 */
main .panel .btn-primary,
.auth-card .btn-primary,
.admin-layout .btn-primary,
.intro-block .btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 12px rgba(43, 125, 233, 0.28);
}
main .panel .btn-primary:hover,
.auth-card .btn-primary:hover,
.admin-layout .btn-primary:hover {
  background: var(--brand-deep);
}

.hero-visual { position: relative; }
.showcase-frame {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255,255,255,.5);
  box-shadow: var(--shadow-lg);
  transform: none;
  animation: fadeUp .55s ease both;
}
.showcase-frame:hover { transform: translateY(-3px); transition: transform .25s ease; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.showcase-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: #f7f9fc;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.showcase-chrome span {
  width: 9px; height: 9px; border-radius: 50%;
  background: #d5dde5;
}
.showcase-chrome span:nth-child(1) { background: #ff6b6b; }
.showcase-chrome span:nth-child(2) { background: #ffc857; }
.showcase-chrome span:nth-child(3) { background: #4cd964; }
.showcase-chrome em { margin-left: 8px; font-style: normal; }
.showcase-body {
  display: flex;
  min-height: 280px;
  background: #f7fafc;
}
.showcase-body-ribbon {
  flex-direction: column;
  gap: 0;
  padding: 0;
  background: #eef3f8;
}
.mock-ribbon {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 10px 12px 12px;
}
.mock-ribbon-tab {
  display: inline-flex;
  align-items: center;
  margin: 0 0 10px;
  padding: 4px 12px;
  border-radius: 6px 6px 0 0;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 12px;
  font-weight: 700;
}
.mock-ribbon-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.mock-ribbon-group {
  padding: 10px 8px;
  border-radius: 8px;
  background: #f5f8fc;
  border: 1px solid #e4ebf3;
  text-align: center;
}
.mock-ribbon-group.on {
  background: linear-gradient(160deg, #e8f2ff, #fff);
  border-color: rgba(43, 125, 233, 0.45);
  box-shadow: 0 6px 14px rgba(43, 125, 233, 0.12);
}
.mock-ribbon-group b {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}
.mock-ribbon-group small {
  color: var(--muted);
  font-size: 11px;
}
.mock-doc-preview {
  padding: 14px 16px 16px;
  display: grid;
  place-items: center;
}
.mock-doc-page {
  width: min(100%, 280px);
  background: #fff;
  border: 1px solid #dce6f0;
  border-radius: 8px;
  padding: 16px 14px;
  box-shadow: 0 10px 24px rgba(31, 64, 120, 0.1);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mock-doc-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.mock-doc-line {
  height: 7px;
  border-radius: 4px;
  background: #e7eef5;
}
.mock-doc-line.mid { width: 78%; }
.mock-doc-line.short { width: 52%; }
.mock-doc-img {
  margin: 4px 0;
  height: 54px;
  border-radius: 6px;
  border: 1px dashed #9fbfeb;
  background: linear-gradient(180deg, #eef5ff, #f8fbff);
  color: var(--brand-deep);
  font-size: 11px;
  font-weight: 600;
  display: grid;
  place-items: center;
}
.showcase-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  object-position: top center;
  background: #0f1c2a;
}
/* 后台配置了右侧展示图时：只显示图片，无边框，阴影浮起 */
.showcase-frame.has-hero-image {
  background: transparent;
  border: none;
  border-radius: 14px;
  overflow: visible;
  box-shadow: none;
}
.showcase-frame.has-hero-image:hover {
  transform: translateY(-4px);
}
.showcase-frame.has-hero-image .showcase-chrome,
.showcase-frame.has-hero-image .showcase-body {
  display: none !important;
}
.showcase-frame.has-hero-image .showcase-img {
  display: block;
  max-height: none;
  object-fit: contain;
  background: transparent;
  border: none;
  border-radius: 14px;
  box-shadow:
    0 4px 8px rgba(10, 40, 90, 0.1),
    0 16px 40px rgba(10, 40, 90, 0.22);
}

/* —— 内容区块 —— */
.portal-section {
  padding: 8px 0 48px;
}
.section-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 18px;
}
.section-head::before {
  content: "";
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: var(--brand);
  flex-shrink: 0;
}
.section-head h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.intro-block {
  margin: 0;
  padding: clamp(22px, 3vw, 32px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.intro-block > h2 {
  display: none; /* 改用 section-head */
}
.intro-body { max-width: 760px; }

/* —— 首页软件简介（图文） —— */
.intro-rich-section { padding: 12px 0 56px; }
.intro-rich { display: flex; flex-direction: column; gap: 22px; }
.intro-lead-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
  gap: clamp(18px, 3vw, 32px);
  align-items: center;
  padding: clamp(22px, 3vw, 32px);
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(43, 125, 233, 0.08), transparent 55%),
    #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.intro-lead-text { max-width: none; }
.intro-lead-text p { margin: 0.7em 0; }
.intro-lead-text p:first-child { margin-top: 0; }
.intro-lead-visual { display: grid; place-items: center; }
.ilv-window {
  width: min(100%, 320px);
  background: #fff;
  border: 1px solid #dce6f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(31, 64, 120, 0.12);
  animation: fadeUp .55s ease both;
}
.ilv-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  background: #f7f9fc;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  color: var(--muted);
}
.ilv-bar span {
  width: 8px; height: 8px; border-radius: 50%; background: #d5dde5;
}
.ilv-bar span:nth-child(1) { background: #ff6b6b; }
.ilv-bar span:nth-child(2) { background: #ffc857; }
.ilv-bar span:nth-child(3) { background: #4cd964; }
.ilv-bar em { margin-left: 6px; font-style: normal; }
.ilv-ribbon {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 12px;
  border-bottom: 1px solid #eef2f6;
  background: #fafcfe;
}
.ilv-ribbon i {
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 5px;
  background: #eef3f7;
  color: #5a6b7d;
}
.ilv-ribbon i.on {
  background: var(--brand);
  color: #fff;
}
.ilv-page {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: #f5f8fc;
}
.ilv-page b {
  display: block;
  height: 7px;
  border-radius: 4px;
  background: #e0e8f1;
}
.ilv-page b.w2 { width: 72%; }
.ilv-page b.w3 { width: 86%; }
.ilv-pic {
  height: 48px;
  border-radius: 6px;
  border: 1px dashed #9fbfeb;
  background: linear-gradient(120deg, #dcebff, #f4f8ff);
}

.intro-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.intro-step {
  position: relative;
  padding: 18px 16px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.intro-step-num {
  position: absolute;
  top: 12px;
  right: 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: rgba(43, 125, 233, 0.35);
}
.intro-step-visual {
  min-height: 88px;
  margin: 0 0 12px;
  display: grid;
  place-items: center;
}
.intro-step h3 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 750;
  color: var(--ink);
}
.intro-step p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: #4a5b6e;
}
.isv-install {
  display: flex;
  align-items: center;
  gap: 10px;
}
.isv-exe, .isv-office {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 12px;
  font-weight: 700;
}
.isv-office {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 1px solid #d5e2f0;
}
.isv-office span {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
}
.isv-office small { color: var(--muted); font-weight: 600; }
.isv-arrow {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand);
  position: relative;
}
.isv-arrow::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 7px;
  height: 7px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(-1px, -1px);
}
.isv-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}
.isv-flow em {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 9px;
  border-radius: 999px;
  background: #eef5ff;
  color: var(--brand-deep);
  border: 1px solid #c5daf5;
}
.isv-check {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.isv-check-row {
  font-size: 12px;
  font-weight: 600;
  padding: 7px 10px;
  border-radius: 8px;
  background: #f3faf6;
  color: var(--ok);
}
.isv-check-row.warn {
  background: #fff7eb;
  color: #8a5a12;
}

.intro-scenes {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.intro-scene {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(16px, 3vw, 28px);
  align-items: center;
  padding: clamp(18px, 2.5vw, 26px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.intro-scene.reverse { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
.intro-scene.reverse .intro-scene-copy { order: 2; }
.intro-scene.reverse .intro-scene-art { order: 1; }
.intro-scene-tag {
  display: inline-flex;
  margin: 0 0 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-size: 12px;
  font-weight: 700;
}
.intro-scene-copy h3 {
  margin: 0 0 8px;
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 750;
  color: var(--ink);
}
.intro-scene-copy p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.75;
  color: #405067;
}
.intro-scene-art { display: grid; place-items: center; }
.isa-queue {
  width: min(100%, 300px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.isa-item {
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f7fafc;
  border: 1px solid #e4ebf3;
  font-size: 13px;
}
.isa-item b {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: #e4eef8;
  color: var(--muted);
  font-size: 11px;
}
.isa-item i {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-deep);
}
.isa-item.on {
  background: linear-gradient(160deg, #eef5ff, #fff);
  border-color: rgba(43, 125, 233, 0.45);
  box-shadow: 0 8px 18px rgba(43, 125, 233, 0.1);
}
.isa-item.on b { background: var(--brand); color: #fff; }
.isa-layout {
  width: min(100%, 280px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.isa-card {
  padding: 14px;
  border-radius: 12px;
  background: #f7fafc;
  border: 1px solid #e4ebf3;
}
.isa-card strong { display: block; font-size: 14px; margin-bottom: 4px; }
.isa-card span { font-size: 12px; color: var(--muted); }
.isa-card.hot {
  background: linear-gradient(160deg, #e8f2ff, #fff);
  border-color: rgba(43, 125, 233, 0.45);
  animation: fvPulse 2.4s ease-in-out infinite;
}
.isa-deliver {
  width: min(100%, 280px);
  display: flex;
  align-items: center;
  gap: 16px;
}
.isa-stack {
  position: relative;
  width: 56px;
  height: 72px;
  flex-shrink: 0;
}
.isa-stack b {
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #d5e2f0;
  box-shadow: 0 4px 10px rgba(31, 64, 120, 0.1);
}
.isa-stack b:nth-child(1) { transform: translate(8px, -6px); opacity: .55; }
.isa-stack b:nth-child(2) { transform: translate(4px, -3px); opacity: .8; }
.isa-outs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.isa-outs span {
  font-size: 12px;
  font-weight: 700;
  padding: 7px 10px;
  border-radius: 8px;
  background: #eef5ff;
  color: var(--brand-deep);
  border: 1px solid #c5daf5;
}
.intro-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding-top: 4px;
}
.intro-cta-row .btn.ghost {
  background: #fff;
  color: var(--brand);
  border: 1px solid var(--brand);
}
.intro-cta-row .btn.ghost:hover { background: var(--brand-soft); }
.intro-cta-row .btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 4px 12px rgba(43, 125, 233, 0.28);
}
.intro-cta-row .btn-primary:hover { background: var(--brand-deep); color: #fff; }

/* —— 首页主要功能舞台 —— */
.feat-stage {
  padding: 28px 0 8px;
}
.feat-lead {
  margin: -6px 0 22px;
  color: var(--muted);
  font-size: 15px;
  max-width: 40em;
  line-height: 1.65;
}
.feat-stage-shell {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}
.feat-nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feat-nav-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
  transition: border-color .18s, background .18s, box-shadow .18s, transform .18s;
}
.feat-nav-btn:hover {
  border-color: #c5daf5;
  background: #f7fbff;
}
.feat-nav-btn.is-active {
  border-color: rgba(43, 125, 233, 0.45);
  background: linear-gradient(135deg, #f3f8ff 0%, #fff 70%);
  box-shadow: 0 8px 22px rgba(43, 125, 233, 0.12);
  transform: translateX(2px);
}
.feat-nav-ico {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--brand);
  background: var(--brand-soft);
}
.feat-nav-ico svg { width: 26px; height: 26px; display: block; }
.feat-nav-btn.is-active .feat-nav-ico {
  color: #fff;
  background: linear-gradient(145deg, var(--brand-mid), var(--brand-deep));
  box-shadow: 0 4px 12px rgba(43, 125, 233, 0.3);
}
.feat-nav-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.feat-nav-text strong {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.feat-nav-text em {
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
}
.feat-stage-main {
  position: relative;
  min-height: 360px;
  background:
    radial-gradient(ellipse 70% 80% at 90% 10%, rgba(43, 125, 233, 0.08), transparent 55%),
    linear-gradient(160deg, #ffffff 0%, #f4f8fd 100%);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.feat-panel {
  display: none;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: clamp(18px, 3vw, 32px);
  align-items: center;
  padding: clamp(20px, 3vw, 32px);
  min-height: 360px;
  animation: featPanelIn .38s ease both;
}
.feat-panel.is-active { display: grid; }
@keyframes featPanelIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.feat-visual {
  position: relative;
  min-height: 260px;
  display: grid;
  place-items: center;
}
.feat-copy h3 {
  margin: 0 0 10px;
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 750;
  letter-spacing: 0.01em;
  color: var(--ink);
  line-height: 1.3;
}
.feat-copy p {
  margin: 0 0 14px;
  color: #3a4a5c;
  font-size: 15px;
  line-height: 1.75;
}
.feat-bullets {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.feat-bullets li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  color: #405067;
}
.feat-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(43, 125, 233, 0.15);
}
.feat-more {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-deep);
  text-decoration: none;
}
.feat-more:hover { text-decoration: underline; }

/* 资料窗格示意 */
.fv-pane {
  width: min(100%, 420px);
  display: grid;
  grid-template-columns: 1.15fr 0.95fr;
  gap: 14px;
  align-items: stretch;
}
.fv-doc {
  background: #fff;
  border: 1px solid #dce6f0;
  border-radius: 10px;
  padding: 18px 16px;
  box-shadow: 0 10px 28px rgba(31, 64, 120, 0.1);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.fv-doc-line {
  height: 8px;
  border-radius: 4px;
  background: #e7eef5;
}
.fv-doc-line.short { width: 58%; }
.fv-doc-line.mid { width: 78%; }
.fv-doc-block {
  margin: 4px 0;
  padding: 14px 12px;
  border-radius: 8px;
  border: 1px dashed #9fbfeb;
  background: linear-gradient(180deg, #eef5ff, #f8fbff);
  color: var(--brand-deep);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}
.fv-doc-insert {
  animation: fvPulse 2.4s ease-in-out infinite;
}
@keyframes fvPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(43, 125, 233, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(43, 125, 233, 0); }
}
.fv-pane-rail {
  background: #fff;
  border: 1px solid #dce6f0;
  border-radius: 10px;
  padding: 12px;
  box-shadow: 0 10px 28px rgba(31, 64, 120, 0.1);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fv-pane-head {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.fv-pane-tabs { display: flex; gap: 6px; }
.fv-pane-tabs span {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 5px;
  background: #eef3f7;
  color: var(--muted);
}
.fv-pane-tabs span.on {
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-weight: 600;
}
.fv-pane-item {
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 7px;
  background: #f7fafc;
  border: 1px solid #e6eef4;
  color: #314255;
}
.fv-pane-item.flying {
  border-color: rgba(43, 125, 233, 0.45);
  background: #eef5ff;
  animation: fvFly 2.4s ease-in-out infinite;
}
@keyframes fvFly {
  0%, 100% { transform: translateX(0); }
  45% { transform: translateX(-6px); }
}
.fv-pane-btn {
  margin-top: auto;
  border: 0;
  border-radius: 7px;
  padding: 8px;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
}

/* 混合插入示意 */
.fv-mix {
  width: min(100%, 420px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
}
.fv-mix-drop {
  position: relative;
  min-height: 180px;
  border: 2px dashed #9fbfeb;
  border-radius: 14px;
  background: rgba(232, 242, 255, 0.55);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.fv-file {
  position: absolute;
  width: 54px;
  height: 68px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #d5e2f0;
  box-shadow: 0 8px 18px rgba(31, 64, 120, 0.12);
  display: grid;
  place-items: end center;
  padding-bottom: 8px;
  font-size: 10px;
  font-weight: 700;
  color: var(--brand-deep);
}
.fv-file::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  border-style: solid;
  border-width: 0 14px 14px 0;
  border-color: transparent #c5daf5 transparent transparent;
}
.fv-file.f1 { left: 18px; top: 28px; transform: rotate(-8deg); animation: fvFloat 3s ease-in-out infinite; }
.fv-file.f2 { left: 48px; top: 42px; transform: rotate(4deg); animation: fvFloat 3s ease-in-out infinite .4s; }
.fv-file.f3 { left: 78px; top: 34px; transform: rotate(-2deg); animation: fvFloat 3s ease-in-out infinite .8s; }
@keyframes fvFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -6px; }
}
.fv-mix-hint {
  position: absolute;
  bottom: 14px;
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}
.fv-mix-arrow {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 6px 14px rgba(43, 125, 233, 0.3);
  position: relative;
}
.fv-mix-arrow::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 10px;
  height: 10px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(-1px, -1px);
}
.fv-mix-doc {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fv-mix-page {
  background: #fff;
  border: 1px solid #dce6f0;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 6px 16px rgba(31, 64, 120, 0.08);
}
.fv-mix-page i {
  display: block;
  height: 6px;
  border-radius: 3px;
  background: #e7eef5;
}
.fv-mix-page.mid { margin-left: 10px; opacity: .9; }
.fv-mix-page.last { margin-left: 20px; opacity: .8; }

/* 排版示意 */
.fv-layout {
  width: min(100%, 420px);
  display: grid;
  gap: 12px;
}
.fv-layout-pane {
  background: #fff;
  border: 1px solid #dce6f0;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 10px 28px rgba(31, 64, 120, 0.1);
}
.fv-layout-seg {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}
.fv-layout-seg span {
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 6px;
  background: #eef3f7;
  color: var(--muted);
}
.fv-layout-seg span.on {
  background: var(--brand);
  color: #fff;
  font-weight: 600;
}
.fv-layout-sliders {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.fv-layout-sliders label {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
}
.fv-layout-sliders i {
  height: 8px;
  border-radius: 4px;
  background: #dbe6f2;
}
.fv-layout-sliders b {
  display: block;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--brand-mid), var(--brand));
  position: relative;
}
.fv-layout-sliders b::after {
  content: "";
  position: absolute;
  right: -5px;
  top: -4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--brand);
  box-shadow: 0 2px 6px rgba(43, 125, 233, 0.25);
}
.fv-layout-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.fv-layout-actions em {
  font-style: normal;
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 6px;
  background: #eef3f7;
  color: #405067;
  font-weight: 600;
}
.fv-layout-actions em.pri {
  background: var(--brand);
  color: #fff;
}
.fv-layout-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.fv-pack {
  background: #fff;
  border: 1px solid #dce6f0;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fv-pack strong { font-size: 13px; }
.fv-pack small { color: var(--muted); font-size: 11px; }
.fv-pack.on {
  border-color: rgba(43, 125, 233, 0.5);
  background: linear-gradient(160deg, #eef5ff, #fff);
  box-shadow: 0 8px 18px rgba(43, 125, 233, 0.12);
  animation: fvPulse 2.4s ease-in-out infinite;
}

/* 表格图片示意 */
.fv-tools {
  width: min(100%, 420px);
  background: #fff;
  border: 1px solid #dce6f0;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 10px 28px rgba(31, 64, 120, 0.1);
}
.fv-ribbon {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eef2f6;
}
.fv-ribbon span {
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 6px;
  background: #eef3f7;
  color: var(--muted);
}
.fv-ribbon span.on {
  background: var(--brand-soft);
  color: var(--brand-deep);
  font-weight: 700;
}
.fv-tools-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}
.fv-table-mock {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}
.fv-table-mock div {
  height: 28px;
  border-radius: 4px;
  background: #e8f0f8;
  border: 1px solid #d5e2f0;
}
.fv-table-mock .gone {
  background: repeating-linear-gradient(-45deg, #fde8ea, #fde8ea 4px, #fff 4px, #fff 8px);
  border-color: #f0b8be;
  animation: fvFadeCell 2.2s ease-in-out infinite;
}
@keyframes fvFadeCell {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}
.fv-img-mock {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.fv-img {
  height: 28px;
  border-radius: 5px;
  background: linear-gradient(120deg, #9ec5f5, #5aa8f8);
}
.fv-img.gray {
  background: linear-gradient(120deg, #c5ced8, #8b97a5);
}
.fv-img.wide { width: 70%; }
.fv-tools-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.fv-tools-chips i {
  font-style: normal;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f0f5fb;
  color: #405067;
  font-weight: 600;
}

/* 文本文档示意 */
.fv-docops {
  width: min(100%, 420px);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
}
.fv-docops-src, .fv-docops-out {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.fv-docops-src span, .fv-out-item {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}
.fv-page-stack {
  position: relative;
  width: 64px;
  height: 80px;
}
.fv-page-stack b {
  position: absolute;
  inset: 0;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #d5e2f0;
  box-shadow: 0 4px 10px rgba(31, 64, 120, 0.1);
}
.fv-page-stack b:nth-child(1) { transform: translate(8px, -6px); opacity: .55; }
.fv-page-stack b:nth-child(2) { transform: translate(4px, -3px); opacity: .8; }
.fv-page-stack b:nth-child(3) { transform: none; }
.fv-docops-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.fv-chip {
  font-size: 12px;
  font-weight: 650;
  padding: 7px 10px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #d5e2f0;
  color: var(--brand-deep);
  box-shadow: 0 4px 12px rgba(31, 64, 120, 0.08);
  animation: fvFloat 2.8s ease-in-out infinite;
}
.fv-chip:nth-child(2) { animation-delay: .15s; }
.fv-chip:nth-child(3) { animation-delay: .3s; }
.fv-chip:nth-child(4) { animation-delay: .45s; }
.fv-chip:nth-child(5) { animation-delay: .6s; }
.fv-docops-out {
  gap: 6px;
}
.fv-out-item {
  min-width: 72px;
  text-align: center;
  padding: 8px 10px;
  border-radius: 8px;
  background: linear-gradient(160deg, #eef5ff, #fff);
  border: 1px solid #c5daf5;
  color: var(--brand-deep);
}

/* 检查示意 */
.fv-check {
  width: min(100%, 380px);
  position: relative;
}
.fv-check-list {
  background: #fff;
  border: 1px solid #dce6f0;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 10px 28px rgba(31, 64, 120, 0.1);
}
.fv-check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: #314255;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f7fafc;
}
.fv-check-row i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  background: var(--ok);
}
.fv-check-row i::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 3px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.fv-check-row.warn {
  background: #fff7eb;
  color: #8a5a12;
}
.fv-check-row.warn i {
  background: #e6a23c;
}
.fv-check-row.warn i::after {
  left: 8px;
  top: 4px;
  width: 2px;
  height: 7px;
  border: 0;
  background: #fff;
  border-radius: 1px;
  transform: none;
  box-shadow: 0 3px 0 #fff;
}
.fv-check-badge {
  position: absolute;
  right: -6px;
  top: -10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--brand-mid), var(--brand-deep));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(43, 125, 233, 0.3);
  animation: fvFloat 2.6s ease-in-out infinite;
}
/* 文章正文：编辑器稿纸与前台阅读共用 */
.prose,
.docs-prose,
.article-prose,
.rte-editor {
  color: #243140;
  font-size: 16.5px;
  line-height: 1.85;
  letter-spacing: 0.01em;
}
.prose > :first-child,
.docs-prose > :first-child,
.article-prose > :first-child,
.rte-editor > :first-child { margin-top: 0; }
.prose p,
.docs-prose p,
.article-prose p,
.rte-editor p { margin: 0.8em 0; }
.prose h2, .docs-prose h2, .article-prose h2, .rte-editor h2,
.panel .prose h2, .panel .article-prose h2 {
  font-size: 1.45rem;
  line-height: 1.35;
  font-weight: 750;
  color: #1b2838;
  margin: 1.55em 0 0.5em;
  letter-spacing: 0;
}
.prose h3, .docs-prose h3, .article-prose h3, .rte-editor h3,
.panel .prose h3, .panel .article-prose h3 {
  font-size: 1.18rem;
  line-height: 1.4;
  font-weight: 700;
  color: #1b2838;
  margin: 1.35em 0 0.4em;
}
.prose h4, .docs-prose h4, .article-prose h4, .rte-editor h4,
.panel .prose h4 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.15em 0 0.35em;
  color: #1b2838;
}
.prose ul, .prose ol,
.docs-prose ul, .docs-prose ol,
.article-prose ul, .article-prose ol,
.rte-editor ul, .rte-editor ol {
  margin: 0.7em 0;
  padding-left: 1.45em;
}
.prose li, .docs-prose li, .article-prose li, .rte-editor li { margin: 0.28em 0; }
.prose li::marker, .docs-prose li::marker, .article-prose li::marker, .rte-editor li::marker { color: #2b7de9; }
.prose a, .docs-prose a, .article-prose a, .rte-editor a { text-underline-offset: 2px; }
.prose strong, .docs-prose strong, .article-prose strong, .rte-editor strong { color: #1b2838; }
.prose code, .docs-prose code, .article-prose code, .rte-editor code {
  font-family: ui-monospace, Consolas, "Courier New", monospace;
  font-size: 0.9em;
  background: #f0f5f9;
  padding: 0.12em 0.38em;
  border-radius: 4px;
}
.prose pre, .docs-prose pre, .article-prose pre, .rte-editor pre {
  margin: 1.1em 0;
  padding: 14px 16px;
  background: #1b2b45;
  color: #e8eef6;
  border-radius: 10px;
  overflow: auto;
  font-size: 13.5px;
  line-height: 1.65;
}
.prose pre code, .docs-prose pre code, .article-prose pre code, .rte-editor pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: inherit;
}
.prose blockquote, .docs-prose blockquote, .article-prose blockquote, .rte-editor blockquote {
  margin: 1.15em 0;
  padding: 0.55em 1em;
  border-left: 3px solid #2b7de9;
  background: #f4f8fc;
  border-radius: 0 10px 10px 0;
  color: #3d5166;
}
.prose hr, .docs-prose hr, .article-prose hr, .rte-editor hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #d5e0ea, transparent);
  margin: 1.8em 0;
}
.prose img, .docs-prose img, .article-prose img, .rte-editor img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 1.1em auto;
  display: block;
  border: 1px solid rgba(31, 45, 61, 0.08);
  box-shadow: 0 8px 22px rgba(31, 64, 120, 0.06);
}
.prose video, .docs-prose video, .article-prose video, .rte-editor video {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  margin: 1.1em auto;
  display: block;
  background: #0f172a;
}

/* —— 页脚：深色门户底 —— */
.site-footer {
  margin-top: auto;
  padding: 36px 0 28px;
  background: #1b2b45;
  color: rgba(255,255,255,.72);
  font-size: 13px;
  text-align: center;
  border-top: 3px solid var(--brand);
}
.site-footer a { color: rgba(255,255,255,.85); }
.site-footer .footer-brand {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}
.site-footer .footer-meta { line-height: 1.8; }
.site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin: 14px 0 18px;
}
.site-footer .footer-links a {
  text-decoration: none;
  font-size: 13px;
}
.site-footer .footer-links a:hover { color: #fff; text-decoration: underline; }

/* —— 内页 —— */
.page-hero {
  padding: 28px 0 4px;
}
.page-hero h1,
.page-hero a.page-hero-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(24px, 3.2vw, 30px);
  font-weight: 700;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: default;
}
.page-hero h1::before,
.page-hero a.page-hero-title::before {
  content: "";
  width: 4px;
  height: 1.05em;
  border-radius: 2px;
  background: var(--brand);
}
.page-hero p,
.page-hero a.page-hero-sub {
  display: block;
  margin: 0;
  color: var(--muted);
  max-width: 42em;
  padding-left: 14px;
  text-decoration: none;
  cursor: default;
}
.page-hero a.page-hero-title:hover,
.page-hero a.page-hero-sub:hover {
  color: inherit;
  text-decoration: none;
}

.panel {
  margin: 16px auto 40px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
}
.panel > h2 { margin: 0 0 6px; font-size: 18px; font-weight: 700; }
.about-body {
  max-width: 760px;
}
.panel .sub { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: #fff;
  transition: box-shadow .2s, border-color .2s, transform .2s;
}
.card:hover {
  border-color: rgba(43, 125, 233, 0.35);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}
.card h3 { margin: 0 0 6px; font-size: 17px; }
.meta { color: var(--muted); font-size: 13px; margin: 0 0 12px; }
.badge {
  display: inline-block;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  margin-bottom: 8px;
}
.badge.off { background: #f0f0f0; color: #888; }
.online-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  margin-right: 4px;
  line-height: 1.4;
}
.online-pill.software {
  background: #e8f5e9;
  color: #1b7f4a;
}
.online-pill.web {
  background: var(--brand-soft);
  color: var(--brand-deep);
}
.online-pill.off {
  background: #f0f0f0;
  color: #888;
  font-weight: 500;
}
.client-flag {
  display: inline-block;
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 4px;
  margin-right: 2px;
  border: 1px solid #ddd;
  color: #999;
  background: #f5f5f5;
}
.client-flag.on {
  color: #1b7f4a;
  border-color: #a5d6a7;
  background: #e8f5e9;
  font-weight: 600;
}

/* —— 下载页：左列表 / 右历史 —— */
.download-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.9fr);
  gap: 18px;
  margin: 8px 0 48px;
  align-items: start;
}
.download-panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
}
.download-panel h2 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
}
.download-panel .sub {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 14px;
}
.download-item {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
  background: #fff;
  margin-bottom: 12px;
}
.download-item:last-child { margin-bottom: 0; }
.download-item.is-primary {
  border-color: rgba(43, 125, 233, 0.45);
  box-shadow: 0 6px 20px rgba(43, 125, 233, 0.08);
  background: linear-gradient(180deg, #f7fbff 0%, #fff 70%);
}
.download-item-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px 18px;
}
.download-item-main { min-width: 0; flex: 1; }
.download-item h3 {
  margin: 6px 0 6px;
  font-size: 17px;
  line-height: 1.35;
}
.download-item .badge { display: inline-flex; }
.download-notes {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px dashed #e4ebf3;
  color: #445566;
  font-size: 14px;
  line-height: 1.7;
  white-space: normal;
}
.download-notes p { margin: 0.55em 0; }
.download-notes p:first-child { margin-top: 0; }
.download-notes p:last-child { margin-bottom: 0; }
.download-notes ul, .download-notes ol {
  margin: 0.45em 0 0.45em 1.2em;
  padding: 0;
}
.download-notes li { margin: 0.2em 0; }
.download-notes strong, .download-notes b { font-weight: 700; color: #314255; }
.download-actions {
  flex-shrink: 0;
  margin-top: 2px;
}
/* 历史版本：简约列表 */
.hist-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafbfc;
  overflow: hidden;
}
.hist-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 88px auto;
  gap: 8px 10px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid #eef2f6;
  font-size: 13px;
}
.hist-row:last-child { border-bottom: 0; }
.hist-row:hover { background: #f3f8ff; }
.hist-ver {
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.hist-name {
  color: #405067;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hist-date {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  text-align: right;
}
.hist-dl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  background: var(--brand);
  text-decoration: none;
  white-space: nowrap;
}
.hist-dl:hover {
  background: var(--brand-deep);
  color: #fff;
  text-decoration: none;
}
.hist-dl.off {
  background: #e8eef4;
  color: #8a97a8;
  cursor: default;
}

@media (max-width: 860px) {
  .download-layout { grid-template-columns: 1fr; }
  .download-item-head {
    flex-direction: column;
    align-items: stretch;
  }
  .download-actions .btn,
  .download-actions .btn-primary {
    width: 100%;
  }
  .hist-row {
    grid-template-columns: 56px minmax(0, 1fr) auto;
  }
  .hist-date {
    grid-column: 2;
    text-align: left;
  }
}

.error { color: var(--danger); }
.empty-hint {
  padding: 28px 8px;
  color: var(--muted);
  text-align: center;
}

/* —— 实用软件 —— */
.sw-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 18px;
}
.sw-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sw-search {
  position: relative;
  flex: 1 1 220px;
  max-width: 360px;
  min-width: 180px;
}
.sw-search input[type="search"] {
  width: 100%;
  box-sizing: border-box;
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  padding: 8px 36px 8px 14px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.sw-search input[type="search"]::-webkit-search-decoration,
.sw-search input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}
.sw-search input[type="search"]:focus {
  border-color: rgba(43, 125, 233, 0.55);
  box-shadow: 0 0 0 3px rgba(43, 125, 233, 0.12);
}
.sw-search input[type="search"]::placeholder {
  color: #94a3b8;
}
.sw-search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 999px;
  background: #e8eef5;
  color: #64748b;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.sw-search-clear:hover {
  background: #dbe5f0;
  color: var(--ink);
}
.sw-filter {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.sw-filter:hover {
  border-color: rgba(43, 125, 233, 0.45);
  color: var(--brand-deep);
}
.sw-filter.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.sw-filter .n {
  display: inline-block;
  min-width: 1.2em;
  margin-left: 4px;
  opacity: 0.85;
  font-variant-numeric: tabular-nums;
}
.sw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}
.sw-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  background: #fff;
  box-shadow: var(--shadow);
  transition: border-color .2s, box-shadow .2s, transform .2s;
  min-height: 210px;
}
.sw-card:hover {
  border-color: rgba(43, 125, 233, 0.4);
  box-shadow: 0 10px 28px rgba(26, 95, 196, 0.1);
  transform: translateY(-2px);
}
.sw-card.featured {
  border-color: rgba(43, 125, 233, 0.35);
  background: linear-gradient(180deg, #f7fbff 0%, #fff 42%);
}
.sw-card-top {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.sw-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--brand-soft);
  display: grid;
  place-items: center;
  overflow: hidden;
  flex-shrink: 0;
  color: var(--brand-deep);
  font-weight: 800;
  font-size: 18px;
}
.sw-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.sw-card-meta { min-width: 0; flex: 1; }
.sw-card-meta h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 740;
  color: var(--ink);
  line-height: 1.25;
}
.sw-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sw-badge {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  font-weight: 650;
  padding: 2px 8px;
  border-radius: 999px;
  line-height: 1.4;
}
.sw-badge.self {
  background: #e8f8ee;
  color: #1b7f4a;
}
.sw-badge.third {
  background: #fff4e5;
  color: #b45309;
}
.sw-badge.feat {
  background: var(--brand-soft);
  color: var(--brand-deep);
}
.sw-badge.pricing {
  background: #fef3c7;
  color: #92400e;
}
.sw-summary {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  flex: 1;
}
.sw-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sw-platform {
  font-size: 12px;
  color: #475569;
  background: #f1f5f9;
  border-radius: 6px;
  padding: 2px 8px;
}
.sw-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
}
.sw-actions .btn {
  text-decoration: none;
}
.sw-actions .btn.sm {
  padding: 7px 12px;
  font-size: 13px;
}

/* 实用软件 · 列表 */
.sw-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.sw-row {
  display: flex;
  align-items: stretch;
  gap: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.sw-row:hover {
  border-color: rgba(43, 125, 233, 0.4);
  box-shadow: 0 8px 22px rgba(26, 95, 196, 0.1);
}
.sw-row.featured {
  background: linear-gradient(90deg, #f7fbff 0%, #fff 42%);
  border-color: rgba(43, 125, 233, 0.28);
}
.sw-row-link {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  flex: 1;
  min-width: 0;
  padding: 14px 8px 14px 16px;
  text-decoration: none;
  color: inherit;
}
.sw-row-link:hover { text-decoration: none; color: inherit; }
.sw-cover {
  width: 88px;
  height: 66px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--brand-soft);
  overflow: hidden;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--brand-deep);
  font-weight: 800;
  font-size: 22px;
}
.sw-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sw-row-main { min-width: 0; }
.sw-row-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0 0 6px;
}
.sw-row-title h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 740;
  color: var(--ink);
  line-height: 1.3;
}
.sw-row-title .sw-badges {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.sw-ver {
  font-size: 12px;
  font-weight: 650;
  color: var(--brand-deep);
  background: var(--brand-soft);
  padding: 1px 8px;
  border-radius: 999px;
}
.sw-row-summary {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.sw-row-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
.sw-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.sw-tag {
  background: #f1f5f9;
  color: #475569;
  border-radius: 6px;
  padding: 1px 7px;
}
.sw-row-side {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 14px 18px;
  border-left: 1px solid #eef3f7;
  background: #fafbfc;
}
.sw-row-side .sw-dl-btn {
  min-width: 88px;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}
.sw-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: start;
}
.sw-detail-cover {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #f8fafc;
  margin: 0 0 14px;
}
.sw-detail-side .panel { position: sticky; top: 88px; }
.sw-detail-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid #eef3f7;
}
.sw-detail-meta-row:last-of-type { border-bottom: 0; }
.sw-detail-meta-row span:first-child { color: var(--muted); }
.sw-detail-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}
.sw-detail-actions .btn {
  text-align: center;
  text-decoration: none;
  width: 100%;
  box-sizing: border-box;
}
.prose.sw-detail-body img,
.prose.sw-detail-body video {
  max-width: 100%;
  border-radius: 8px;
}
@media (max-width: 860px) {
  .sw-row { flex-direction: column; }
  .sw-row-link {
    grid-template-columns: 72px minmax(0, 1fr);
    padding: 14px;
  }
  .sw-cover { width: 72px; height: 56px; }
  .sw-row-side {
    border-left: 0;
    border-top: 1px solid #eef3f7;
    justify-content: flex-end;
    padding: 10px 14px;
  }
  .sw-detail-layout { grid-template-columns: 1fr; }
  .sw-detail-side .panel { position: static; }
}

/* —— Auth / admin —— */
.auth-card {
  width: min(420px, calc(100% - 32px));
  margin: 48px auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.auth-card h1 { margin: 0 0 16px; font-size: 22px; }
.form-row { margin-bottom: 12px; }
.form-row label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(43, 125, 233, 0.15);
}
.form-row textarea { min-height: 120px; resize: vertical; }
.admin-layout {
  display: block;
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}
.admin-layout > .side {
  position: fixed;
  left: 0;
  top: 0;
  width: 220px;
  height: 100vh;
  height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  background: #1b2b45;
  color: #fff;
  padding: 20px 14px;
  z-index: 40;
  box-sizing: border-box;
}
.side .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  margin-bottom: 18px;
  padding: 4px 10px 10px;
  letter-spacing: 0.02em;
}
.side-divider {
  height: 1px;
  margin: 12px 6px;
  background: rgba(255, 255, 255, 0.2);
  border: 0;
}
.side-ico {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: inline-grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.78);
}
.side-ico svg {
  width: 18px;
  height: 18px;
  display: block;
}
.side-ico-brand {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: linear-gradient(145deg, #4b94f0, #1a5fc4);
  color: #fff;
  box-shadow: 0 4px 10px rgba(26, 95, 196, 0.35);
}
.side-ico-brand svg { width: 14px; height: 14px; }
.side a:hover .side-ico,
.side a.active .side-ico { color: #fff; }
.online-board {
  margin: 0 0 22px;
  border: 1px solid #d8e3ee;
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.online-trend-board {
  overflow: visible;
}
.online-trend-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  min-width: 0;
  color: #64748b;
  font-size: 13px;
}
.online-trend-summary strong {
  color: #0f172a;
  font-weight: 700;
}
.online-trend-chart {
  width: 100%;
  height: 320px;
  min-height: 260px;
  box-sizing: border-box;
}
.online-trend-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.online-trend-day-label {
  color: #64748b;
  font-size: 13px;
}
.online-trend-day {
  height: 32px;
  padding: 0 10px;
  border: 1px solid #c9d6e4;
  border-radius: 8px;
  background: #fff;
  color: #0f172a;
  font-size: 13px;
}
.online-trend-hint {
  margin: 0;
  padding: 8px 16px 12px;
  border-top: 1px solid #eef2f7;
}
.online-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #e8eef4;
  background: #f7fbff;
}
.online-board-head-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  min-width: 0;
  flex: 1;
}
.online-board-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.online-board-head h2 span {
  display: inline-block;
  min-width: 1.4em;
  padding: 0 8px;
  height: 22px;
  line-height: 22px;
  text-align: center;
  border-radius: 11px;
  background: #e8f8ee;
  color: #1b7f4a;
  font-size: 13px;
}
.online-os-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.online-os-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eef6ff;
  border: 1px solid #d6e8f8;
  font-size: 12px;
  line-height: 1.2;
}
.online-os-name { color: #334155; font-weight: 600; }
.online-os-n {
  min-width: 1.2em;
  padding: 0 6px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  border-radius: 9px;
  background: #008dd4;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
}
.admin-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 14px;
  padding: 10px 14px;
  border-top: 1px solid #e8eef4;
  background: #fafcfe;
}
.dash-card .admin-pager {
  margin-top: 8px;
  border: 1px solid #e8eef4;
  border-radius: 8px;
}
.admin-pager-info {
  color: #64748b;
  font-size: 12px;
}
.admin-pager-btn {
  appearance: none;
  border: 1px solid #d0dde9;
  background: #fff;
  color: #1b2b45;
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 12px;
  cursor: pointer;
  line-height: 1.4;
}
.admin-pager-btn:hover:not(:disabled) {
  border-color: #008dd4;
  color: #008dd4;
}
.admin-pager-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.online-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  box-shadow: none;
  border-radius: 0;
}
.online-table th,
.online-table td {
  padding: 10px 14px;
  font-size: 13px;
  border-bottom: 1px solid #eef3f7;
}
.online-table tr:last-child td { border-bottom: 0; }
.online-table tbody tr:hover { background: #f7fbff; }
.online-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
  vertical-align: middle;
}
.online-table th .th-count-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
  color: #fff;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.16);
}
.online-table th .th-count-icon.is-zero {
  color: #64748b;
  background: #e2e8f0;
  box-shadow: none;
}
.online-listbox {
  display: block;
  width: 100%;
  min-height: 240px;
  height: min(42vh, 360px);
  margin: 0;
  padding: 6px 0;
  border: 0;
  outline: none;
  background: #fff;
  color: #1b2b45;
  font-size: 14px;
  font-family: "Microsoft YaHei", "Segoe UI", sans-serif;
  line-height: 1.8;
  box-sizing: border-box;
}
.online-listbox option {
  padding: 6px 16px;
}
.online-listbox option:checked,
.online-listbox option:hover {
  background: #e8f4ff;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.side a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.85);
  padding: 9px 10px;
  border-radius: 8px;
  text-decoration: none;
  margin-bottom: 4px;
  font-size: 14px;
  line-height: 1.3;
  transition: background .15s, color .15s;
}
.side a:hover, .side a.active {
  background: rgba(43, 125, 233, .35);
  color: #fff;
  text-decoration: none;
}
.admin-layout > .main {
  margin-left: 220px;
  padding: 24px;
  background: var(--paper);
  overflow-x: hidden;
  overflow-y: auto;
  min-height: 0;
  height: 100vh;
  height: 100dvh;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}
.stats { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.stat {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 16px;
  min-width: 110px;
  box-shadow: var(--shadow);
}
.stat .n { font-size: 22px; font-weight: 700; color: var(--brand); }
.stat .l { font-size: 12px; color: var(--muted); }

.dash-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
  gap: 16px;
  align-items: start;
}
.dash-card-map {
  grid-column: 1 / -1;
}
.dash-map {
  width: 100%;
  height: min(520px, 62vh);
  min-height: 360px;
  border: 1px solid #e8eef4;
  border-radius: 10px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef6fc 100%);
  overflow: hidden;
}
.dash-card {
  background: #fff;
  border: 1px solid #d8e3ee;
  border-radius: 12px;
  padding: 16px 18px 18px;
  box-shadow: var(--shadow);
}
.dash-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.dash-card-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}
.dash-link {
  font-size: 13px;
  color: var(--brand);
  text-decoration: none;
  white-space: nowrap;
}
.dash-link:hover { text-decoration: underline; }
.dash-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.dash-metrics.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dash-metric {
  border: 1px solid #e8eef4;
  border-radius: 10px;
  padding: 12px 10px;
  text-align: center;
  background: #f8fbff;
}
.dash-metric.accent {
  background: #eef8f2;
  border-color: #cfe9d8;
}
.dash-metric.warn {
  background: #fff7ed;
  border-color: #fed7aa;
}
.dash-metric-n {
  font-size: 26px;
  font-weight: 760;
  color: #1b2b45;
  line-height: 1.1;
}
.dash-metric.warn .dash-metric-n { color: #c2410c; }
.dash-metric.accent .dash-metric-n { color: #15803d; }
.dash-metric-l {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}
.dash-sub {
  margin: 18px 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}
.dash-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dash-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  font-size: 13px;
}
.dash-chip-name { color: #334155; font-weight: 600; }
.dash-chip-n {
  min-width: 1.4em;
  padding: 1px 7px;
  border-radius: 999px;
  background: #22c55e;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}
.dash-rank {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid #e8eef4;
  border-radius: 10px;
  overflow: hidden;
}
.dash-rank li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid #eef3f7;
  font-size: 13px;
}
.dash-rank li:last-child { border-bottom: 0; }
.dash-rank-i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e2e8f0;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.dash-rank li:nth-child(1) .dash-rank-i { background: #fbbf24; color: #78350f; }
.dash-rank li:nth-child(2) .dash-rank-i { background: #cbd5e1; color: #334155; }
.dash-rank li:nth-child(3) .dash-rank-i { background: #fdba74; color: #7c2d12; }
.dash-rank-name { flex: 1; min-width: 0; color: #1b2b45; }
.dash-rank-n {
  font-weight: 700;
  color: var(--brand);
}
@media (max-width: 960px) {
  .dash-grid { grid-template-columns: 1fr; }
  .dash-card-map { grid-column: auto; }
  .dash-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-map { height: 380px; min-height: 300px; }
  .online-trend-chart { height: 260px; min-height: 220px; }
}
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; align-items: center; }
.toolbar input, .toolbar select {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 14px;
}
table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; }
th, td {
  border-bottom: 1px solid var(--line);
  padding: 10px 8px;
  text-align: left;
  font-size: 13px;
}
th { color: var(--muted); font-weight: 600; background: #f8fafc; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .showcase-frame { max-width: 520px; margin: 0 auto; }
  .feat-stage-shell { grid-template-columns: 1fr; }
  .feat-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .feat-nav-btn {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
    min-height: 100%;
  }
  .feat-nav-btn.is-active { transform: none; }
  .feat-nav-text em { display: none; }
  .feat-panel {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .feat-visual { min-height: 220px; }
  .intro-lead-card,
  .intro-scene,
  .intro-scene.reverse { grid-template-columns: 1fr; }
  .intro-scene.reverse .intro-scene-copy,
  .intro-scene.reverse .intro-scene-art { order: unset; }
  .intro-steps { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .feat-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fv-mix { grid-template-columns: 1fr; }
  .fv-mix-arrow {
    margin: 0 auto;
    transform: rotate(90deg);
  }
  .fv-docops { grid-template-columns: 1fr; }
  .mock-ribbon-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none;
    position: absolute;
    right: var(--edge);
    top: var(--header-h);
    flex-direction: column;
    align-items: stretch;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px;
    box-shadow: var(--shadow-lg);
    min-width: 180px;
    height: auto;
  }
  .nav-links a {
    height: auto;
    padding: 10px 14px;
    border-radius: 6px;
  }
  .nav-links a.active::after { display: none; }
  .nav-links a.active { background: var(--brand-soft); }
  .nav-links.open { display: flex; }
  .admin-layout {
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }
  .admin-layout > .side {
    position: relative;
    width: auto;
    height: auto;
    max-height: none;
    overflow: visible;
  }
  .admin-layout > .main {
    margin-left: 0;
    height: auto;
    overflow: visible;
  }
  .logo-sub { display: none; }
}

.fb-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 16px;
  align-items: start;
}
.fb-composer { margin: 0; }
.fb-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.fb-head h2 { margin: 0; font-size: 18px; }
.fb-head select {
  height: 34px;
  min-width: 140px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
}
.fb-composer textarea {
  width: 100%;
  min-height: 140px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  font-size: 14px;
  font-family: inherit;
  resize: vertical;
}
.fb-composer textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(43, 125, 233, 0.15);
}
.fb-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.fb-tool {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
}
.fb-tool svg { width: 18px; height: 18px; display: block; }
.fb-ico { position: relative; display: inline-flex; }
.fb-count {
  position: absolute;
  top: -9px;
  right: -12px;
  min-width: 18px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #e11d48;
  color: #fff;
  font-style: normal;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
  font-weight: 700;
  pointer-events: none;
}
.fb-tool:hover { background: var(--brand-soft); border-color: #c5daf8; }
.fb-publish {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.fb-visibility {
  margin-left: auto;
  height: 36px;
  min-width: 88px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: #fff;
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
}
.fb-publish:hover { background: var(--brand-deep); }
.fb-list { margin-top: 14px; }
.fb-table {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  overflow: hidden;
}
.fb-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 120px 64px;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-top: 1px solid var(--line);
}
.fb-row-head {
  border-top: 0;
  background: #f7fbff;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}
.fb-sum {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
}
.fb-state {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 22px;
  padding: 0 7px 0 5px;
  border-radius: 11px;
  font-size: 12px;
  line-height: 22px;
}
.fb-state svg { width: 14px; height: 14px; display: block; }
.fb-state em { font-style: normal; white-space: nowrap; }
.fb-state.is-open { background: #fff4e5; color: #c2410c; }
.fb-state.is-done { background: #e8f8ef; color: #15803d; }
.fb-state.is-logged { background: #e8f1ff; color: #1d4ed8; }
.fb-title {
  display: block;
  flex: 1;
  min-width: 0;
  width: auto;
  max-width: 100%;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
  font: inherit;
  color: var(--ink);
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fb-title:hover { color: var(--brand); }
.fb-who, .fb-when { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fb-like {
  width: 52px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  border-radius: 8px;
  font-family: inherit;
  font-size: 12px;
}
.fb-like svg { width: 18px; height: 18px; }
.fb-like:hover { background: var(--brand-soft); }
.fb-like.is-on, .fb-like:disabled { color: #94a3b8; cursor: default; }
.fb-empty { margin: 8px 0 0; }
.fb-rank h2 { margin: 0 0 10px; font-size: 16px; }
.fb-rank ol { margin: 0; padding: 0; list-style: none; }
.fb-rank li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.fb-rank-no {
  width: 22px;
  height: 22px;
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--brand-deep);
  text-align: center;
  line-height: 22px;
  font-weight: 700;
  flex-shrink: 0;
}
.fb-admin .fb-row { grid-template-columns: minmax(0, 1fr) 140px 120px 132px minmax(220px, 280px); align-items: start; }
.fb-progress {
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 6px;
  background: #fff;
  font-family: inherit;
  font-size: 12px;
}
.fb-admin .fb-sum { display: block; white-space: normal; }
.fb-admin .fb-ip, .fb-admin .fb-geo { font-size: 13px; word-break: break-all; }
.fb-ops { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fb-admin .fb-media { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.fb-admin .fb-img { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.fb-admin .fb-video { width: 160px; max-height: 90px; }
.fb-admin .fb-file { font-size: 12px; }
.fb-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.45);
}
.fb-modal[hidden] { display: none; }
.fb-dialog {
  position: relative;
  width: min(640px, 100%);
  max-height: min(80vh, 720px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border-radius: 12px;
}
.fb-dialog-bar {
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 2;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 16px 46px 12px 22px;
}
.fb-dialog-body {
  overflow: auto;
  padding: 12px 22px 18px;
}
.fb-dialog h3 { margin: 0; font-size: 18px; }
.fb-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.fb-done .fb-dialog-body p { margin: 0 0 16px; line-height: 1.6; }
.fb-detail-media img { display: block; max-width: 100%; margin-top: 8px; border-radius: 8px; }
.fb-detail-media video { width: 100%; margin-top: 8px; border-radius: 8px; }
.fb-detail-media a.fb-file { display: inline-block; margin: 8px 8px 0 0; }
@media (max-width: 860px) {
  .fb-layout { grid-template-columns: 1fr; }
  .fb-row { grid-template-columns: minmax(0, 1fr) 120px 88px 52px; gap: 8px; padding: 10px; }
}

/* 实用网站 */
.web-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
.web-tabs button {
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 999px; padding: 6px 16px; cursor: pointer; font: inherit;
}
.web-tabs button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.web-search { margin: 0 0 16px; }
.web-search input[type="search"] {
  width: 100%;
  box-sizing: border-box;
  appearance: none;
  border: 1px solid var(--line);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='7' cy='7' r='4.5'/%3E%3Cpath d='M10.5 10.5L14 14'/%3E%3C/svg%3E") 14px 50% no-repeat;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  padding: 10px 16px 10px 40px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  outline: none;
}
.web-search input[type="search"]::-webkit-search-decoration,
.web-search input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}
.web-search input[type="search"]:focus {
  border-color: rgba(43, 125, 233, 0.55);
  box-shadow: 0 0 0 3px rgba(43, 125, 233, 0.12);
}
.web-search input[type="search"]::placeholder { color: #94a3b8; }
.web-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; align-items: start; }
.web-provinces { display: flex; flex-direction: column; gap: 4px; max-height: 70vh; overflow: auto; }
.web-provinces button, .web-link-list a, .web-city a {
  display: block; text-align: left; width: 100%; border: 0; background: transparent;
  color: var(--ink); text-decoration: none; border-radius: 8px; padding: 8px 10px; cursor: pointer; font: inherit;
}
.web-provinces button:hover, .web-link-list a:hover, .web-city a:hover { background: var(--brand-soft); text-decoration: none; }
.web-provinces button.on { background: var(--brand-soft); color: var(--brand-deep); font-weight: 700; }
.web-prov-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.web-prov-head h2 { margin: 0; font-size: 18px; }
.web-prov-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.web-cities { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.web-city { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 4px; }
.web-city .pending { display: block; padding: 8px 10px; color: var(--muted); font-size: 13px; }
.web-city small { display: block; color: var(--muted); font-size: 12px; padding: 0 10px 8px; }
.web-direct { margin-bottom: 16px; }
.web-direct h3 { margin: 0 0 8px; font-size: 15px; }
.web-link-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.web-entry {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  min-height: 76px;
  box-shadow: var(--shadow);
}
.web-link-list a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: auto;
  margin: 0;
  padding: 14px 16px;
  background: transparent;
  border: 0;
}
.web-entry small {
  display: block;
  margin-top: 4px;
  padding: 0 16px 12px;
  color: var(--muted);
  font-size: 12px;
}
@media (max-width: 800px) {
  .web-layout { grid-template-columns: 1fr; }
  .web-provinces { max-height: none; flex-direction: row; flex-wrap: wrap; }
  .web-provinces button { width: auto; }
  .web-link-list { grid-template-columns: 1fr; }
}
