:root {
  --bg: #f7f8fb;
  --bg-elev: #ffffff;
  --text: #2a2d34;
  --text-muted: #6b7280;
  --text-soft: #9aa0a8;
  --brand: #b07a6a;
  --brand-deep: #8d5d50;
  --line: rgba(30, 32, 38, 0.08);
  --shadow: 0 18px 50px rgba(80, 70, 90, 0.08);
  --radius: 18px;
  --nav-h: 72px;
  --gold: #e8c37a;
  --mint: #8fe3d2;
  --lilac: #c9a6f0;
}

[data-theme="dark"] {
  --bg: #12141a;
  --bg-elev: #1b1e27;
  --text: #eceef3;
  --text-muted: #b0b6c2;
  --text-soft: #7d8493;
  --brand: #d4a496;
  --brand-deep: #e8c3b8;
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.75;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

/* ===== Top bar ===== */
.topbar {
  position: sticky; top: 0; z-index: 40;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg-elev) 82%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: min(1120px, calc(100% - 40px)); margin: 0 auto; gap: 16px; flex-wrap: nowrap;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 20px; color: var(--brand);
  letter-spacing: 0.04em; white-space: nowrap; flex-shrink: 0;
}
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  display: grid; place-items: center; overflow: hidden;
}
.brand-mark img { width: 36px; height: 36px; object-fit: contain; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  padding: 8px 12px; border-radius: 10px;
  color: var(--text-muted); font-size: 14px;
}
.nav a:hover, .nav a.active {
  color: var(--text);
  background: color-mix(in srgb, var(--text) 6%, transparent);
}
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--bg-elev);
  display: grid; place-items: center; color: var(--text);
}
.flag-btn { font-size: 16px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 42px; padding: 0 18px; border-radius: 12px; border: 0;
  font-size: 14px; font-weight: 600;
  transition: .2s transform, .2s box-shadow, .2s background;
}
.btn-primary {
  background: linear-gradient(180deg, #c89282, #a86b5c);
  color: #fff;
  box-shadow: 0 8px 20px rgba(168, 107, 92, 0.28);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost {
  background: transparent; border: 1px solid var(--line);
  color: var(--text); white-space: nowrap; flex-shrink: 0;
}
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; }
.btn-sm {
  height: 40px;
  padding: 0 24px;
  font-size: 14px;
  width: auto !important;
  min-width: 120px;
}

/* ===== Fullscreen cover ===== */
body.cover-locked { overflow: hidden; height: 100%; }
.cover {
  position: fixed; inset: 0; z-index: 80;
  display: flex; flex-direction: column; overflow: hidden;
  will-change: transform; touch-action: none; background: #fffdf8;
}
.cover.is-snapping { transition: transform 0.72s cubic-bezier(0.22, 0.9, 0.28, 1); }
.cover.is-gone {
  transform: translate3d(0, -110%, 0);
  pointer-events: none;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(48% 58% at 8% 8%, rgba(232, 198, 120, 0.72) 0%, rgba(232, 198, 120, 0) 70%),
    radial-gradient(42% 50% at 12% 92%, rgba(143, 227, 210, 0.62) 0%, rgba(143, 227, 210, 0) 68%),
    radial-gradient(46% 62% at 92% 62%, rgba(201, 166, 240, 0.7) 0%, rgba(201, 166, 240, 0) 68%),
    linear-gradient(180deg, #fffdf8 0%, #fbfbff 100%);
}
[data-theme="dark"] .cover { background: #14161c; }
[data-theme="dark"] .hero-bg {
  background:
    radial-gradient(48% 58% at 8% 8%, rgba(180, 140, 60, 0.38) 0%, rgba(180, 140, 60, 0) 70%),
    radial-gradient(42% 50% at 12% 92%, rgba(50, 140, 130, 0.32) 0%, rgba(50, 140, 130, 0) 68%),
    radial-gradient(46% 62% at 92% 62%, rgba(120, 80, 170, 0.38) 0%, rgba(120, 80, 170, 0) 68%),
    linear-gradient(180deg, #14161c 0%, #101218 100%);
}
.hero {
  position: relative; min-height: 100vh; overflow: hidden;
  display: flex; flex-direction: column;
}
.hero-top {
  position: relative; z-index: 2;
  display: flex; justify-content: flex-end; gap: 10px;
  padding: 22px 28px;
}
.hero-center {
  position: relative; z-index: 2;
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 0 24px 80px;
}
.hero-logo-row { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.hero-logo {
  width: 52px; height: 52px;
  display: grid; place-items: center;
}
.hero-logo img { width: 52px; height: 52px; object-fit: contain; }
.hero-title {
  font-size: 48px; font-weight: 650; color: #b08978; letter-spacing: 0.12em;
  font-family: "Songti SC", "STSong", "Noto Serif SC", serif;
}
[data-theme="dark"] .hero-title { color: #e0b8ab; }
.hero-desc {
  font-size: 18px; color: #3a3d44; max-width: 720px; font-weight: 500;
}
[data-theme="dark"] .hero-desc { color: #d5d8e0; }
.hero-bottom {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding-bottom: 36px; color: var(--text-soft); font-size: 13px;
}
.chevron {
  width: 22px; height: 22px; color: #c4a15a;
  animation: bob 1.6s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); opacity: .7; }
  50% { transform: translateY(7px); opacity: 1; }
}

/* ===== Sections ===== */
.section { padding: 72px 0; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 28px;
}
.kicker {
  color: var(--brand); font-size: 13px; font-weight: 700; letter-spacing: .08em;
}
.h2 { font-size: 30px; line-height: 1.25; margin-top: 6px; }
.muted { color: var(--text-muted); }
.link-more { color: var(--brand-deep); font-size: 14px; font-weight: 600; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }

.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.card h3 { font-size: 18px; margin: 8px 0 8px; }
.emoji { font-size: 26px; }

/* ===== 官网可用性检测（保留，供其他页面使用） ===== */
.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
}
.dot.warn {
  background: #f59e0b;
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.15);
}
.probe-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.probe-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--text) 4%, transparent);
  font-size: 14px;
}
[data-probe-rerun] {
  white-space: nowrap;
  flex-shrink: 0;
}

/* ===== 套餐卡片（精致版） ===== */
.plan {
  display: flex;
  flex-direction: column;
  padding: 24px 22px;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.plan:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 48px rgba(80, 70, 90, 0.12);
}
[data-theme="dark"] .plan:hover {
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.35);
}

.plan-header { margin-bottom: 4px; }
.plan .tag {
  display: inline-block;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(176, 122, 106, 0.12);
  color: var(--brand-deep);
  font-weight: 700;
  margin-bottom: 10px;
}
.plan-header h3 {
  margin: 0 0 6px;
  font-size: 1.3rem;
  font-weight: 700;
}
.plan .price {
  font-size: 30px;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--brand);
  line-height: 1.2;
}
.plan .price span {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

.plan-features {
  list-style: none;
  color: var(--text-muted);
  font-size: 14px;
  display: grid;
  gap: 8px;
  margin: 18px 0 22px;
  flex: 1;
}
.plan-features li::before {
  content: "✓ ";
  color: var(--brand);
  font-weight: 700;
}

.plan-action {
  margin-top: auto;
  text-align: center;
}
.plan-action .btn {
  width: auto;
  min-width: 128px;
}

/* ===== 表格 ===== */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-elev);
}
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td {
  padding: 12px 14px; text-align: left;
  border-bottom: 1px solid var(--line);
}
th {
  color: var(--text-muted); font-weight: 600;
  background: color-mix(in srgb, var(--text) 3%, transparent);
}
table th:first-child,
table td:first-child { white-space: nowrap; }

/* ===== 客户端 & 博客 ===== */
.client {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.client .meta { color: var(--text-muted); font-size: 13px; }
.blog-card .meta {
  color: var(--text-soft); font-size: 13px; margin-bottom: 8px;
}
.blog-card p { color: var(--text-muted); font-size: 14px; }

/* ===== CTA ===== */
.cta {
  text-align: center;
  padding: 56px 24px;
  border-radius: 24px;
  background:
    radial-gradient(60% 80% at 20% 0%, rgba(232,198,120,.28), transparent 60%),
    radial-gradient(60% 80% at 90% 100%, rgba(201,166,240,.24), transparent 60%),
    var(--bg-elev);
  border: 1px solid var(--line);
}
.cta h2 { font-size: 28px; margin: 8px 0 10px; }
.notice {
  margin-top: 28px; font-size: 13px; color: var(--text-soft); line-height: 1.7;
}

/* ===== Footer ===== */
footer {
  border-top: 1px solid var(--line);
  padding: 36px 0 48px;
  color: var(--text-muted);
  font-size: 13px;
}
.foot-cols {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
}
.foot-cols h3 {
  font-size: 13px; margin: 0 0 8px; color: var(--text);
}
.foot-cols a {
  display: block; margin: 4px 0; color: var(--text-muted);
}
.foot-cols a:hover { color: var(--brand-deep); }

/* ===== 文章页 ===== */
.article {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 40px 0 80px;
}
.article h1 { font-size: 34px; line-height: 1.3; margin: 10px 0 16px; }
.article .meta { color: var(--text-soft); font-size: 14px; margin-bottom: 28px; }
.article p { margin: 0 0 16px; }
.article h2 { font-size: 22px; margin: 28px 0 12px; }
.article ul, .article ol { margin: 0 0 16px 22px; }
.article li { margin: 6px 0; }

.pager { display: flex; justify-content: center; gap: 8px; margin-top: 28px; }
.pager a, .pager span {
  min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px;
  display: grid; place-items: center;
  border: 1px solid var(--line); background: var(--bg-elev);
}
.pager .current {
  background: var(--brand); color: #fff; border-color: transparent;
}

/* ===== go 跳转页 ===== */
.go-page {
  min-height: 100vh;
  display: grid; place-items: center;
  padding: 32px 16px;
  position: relative; overflow: hidden;
}
.go-card {
  width: min(520px, 100%);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 36px 28px;
  box-shadow: var(--shadow);
  position: relative; z-index: 1;
  text-align: center;
}
.go-card h1 { font-size: 24px; margin: 8px 0 8px; }
.progress {
  height: 8px;
  background: color-mix(in srgb, var(--text) 8%, transparent);
  border-radius: 99px;
  overflow: hidden;
  margin: 22px 0 10px;
}
.progress > i {
  display: block; height: 100%; width: 8%;
  background: linear-gradient(90deg, #c89282, #8fe3d2);
  animation: load 2.4s ease forwards;
}
@keyframes load { to { width: 100%; } }
.node-list { display: grid; gap: 8px; margin: 18px 0 8px; text-align: left; }
.node-list a {
  display: flex; justify-content: space-between;
  padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line); font-size: 14px;
}
.node-list a:hover {
  background: color-mix(in srgb, var(--brand) 8%, transparent);
}

.menu-toggle { display: none; }
.btn-login { white-space: nowrap; flex-shrink: 0; }

/* ===== 响应式 ===== */
@media (max-width: 860px) {
  :root { --nav-h: 58px; }
  .topbar { height: auto; min-height: var(--nav-h); }
  .topbar-inner {
    width: calc(100% - 24px);
    gap: 8px;
    padding: 8px 0 10px;
    flex-wrap: wrap;
  }
  .brand { font-size: 16px; letter-spacing: 0.02em; gap: 8px; }
  .brand-mark { width: 28px; height: 28px; border-radius: 8px; }
  .nav-actions { gap: 6px; margin-left: auto; }
  .icon-btn { width: 34px; height: 34px; }
  .btn { height: 34px; padding: 0 12px; font-size: 13px; }
  .btn-login { padding: 0 10px; }
  .flag-btn { display: none; }

  .nav {
    display: flex;
    order: 3;
    width: 100%;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 2px 0 4px;
  }
  .nav::-webkit-scrollbar { display: none; }
  .nav a {
    flex: 0 0 auto;
    padding: 6px 12px;
    font-size: 13px;
    white-space: nowrap;
    background: color-mix(in srgb, var(--text) 5%, transparent);
  }
  .menu-toggle { display: none; }

  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero-title { font-size: 36px; }
  .hero-desc { font-size: 16px; }
  .h2 { font-size: 24px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .wrap { width: min(1120px, calc(100% - 28px)); }

  .plan { padding: 20px 18px; }
  .plan .price { font-size: 28px; }
  .btn-sm {
    height: 38px;
    padding: 0 22px;
    min-width: 110px;
  }
}

@media (max-width: 380px) {
  .brand { font-size: 15px; }
  .btn-login { font-size: 12px; padding: 0 8px; }
}

@media (max-width: 800px) {
  .foot-cols { grid-template-columns: 1fr 1fr; }
}

/* ===== SEO 辅助 ===== */
.crumbs {
  width: min(1120px, calc(100% - 40px));
  margin: 18px auto 0;
  font-size: 13px;
  color: var(--text-soft);
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
.crumbs a { color: var(--text-muted); }
.crumbs a:hover { color: var(--brand-deep); }
.crumbs .sep { color: var(--text-soft); }
.article .crumbs { width: auto; margin: 0 0 18px; }

.related, .faq-box, .seo-cluster {
  margin-top: 28px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--bg-elev);
}
.related h2, .faq-box h2, .seo-cluster h2 {
  font-size: 18px; margin: 0 0 12px;
}
.related ul { margin: 0; padding-left: 18px; }
.related li { margin: 6px 0; }
.faq-box details { border-top: 1px solid var(--line); padding: 10px 0; }
.faq-box details:first-of-type { border-top: 0; }
.faq-box summary { cursor: pointer; font-weight: 600; color: var(--text); }
.faq-box details p { margin: 8px 0 0; color: var(--text-muted); }

.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;
}