/* =========================================================
 * style.css · 西河 ComfyUI 官网前台样式
 * 品牌色：深底 #0c0e0c / 主绿 #34d27b / 辅绿 #13261a
 * 文字：主 #e8efe9 / 次 #9bb0a3
 * 零构建：纯手写 CSS，移动端 flex + grid + media query 单列降级
 * ========================================================= */

/* ---------- 1. 设计令牌 ---------- */
:root {
  --bg: #0c0e0c;
  --bg-soft: #10130f;
  --surface: #131712;
  --surface-2: #171c16;
  --green: #34d27b;
  --green-dim: #29b06a;
  --green-soft: #13261a;
  --green-line: rgba(52, 210, 123, 0.28);
  --text: #e8efe9;
  --text-muted: #9bb0a3;
  --danger: #ff6b6b;
  --danger-soft: rgba(255, 107, 107, 0.12);
  --warning: #ffc860;
  --border: rgba(232, 239, 233, 0.1);
  --border-strong: rgba(232, 239, 233, 0.18);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 18px 48px rgba(0, 0, 0, 0.45);
  --shadow-green: 0 14px 34px rgba(52, 210, 123, 0.22);
  --max-width: 1160px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", Roboto, Helvetica,
    Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

/* ---------- 2. 基础重置 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(
      900px 480px at 12% -6%,
      rgba(52, 210, 123, 0.13),
      transparent 62%
    ),
    radial-gradient(720px 420px at 92% 4%, rgba(52, 210, 123, 0.07), transparent 60%);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--green);
  text-decoration: none;
  transition: color 0.18s ease, opacity 0.18s ease;
}

a:hover {
  color: #6ce39d;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 12px;
  line-height: 1.28;
  font-weight: 700;
  letter-spacing: -0.01em;
}

h1 {
  font-size: 44px;
}
h2 {
  font-size: 30px;
}
h3 {
  font-size: 19px;
}
h4 {
  font-size: 15px;
}

p {
  margin: 0 0 14px;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
  font-size: inherit;
  cursor: pointer;
}

hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 28px 0;
}

.muted {
  color: var(--text-muted);
}

.small {
  font-size: 13px;
}

.center {
  text-align: center;
}

.mono {
  font-family: var(--mono);
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: rgba(52, 210, 123, 0.1);
  border: 1px solid var(--green-line);
  border-radius: 5px;
  padding: 1px 6px;
  color: var(--green);
}

select.input {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 34px;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
    linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position: calc(100% - 17px) center, calc(100% - 12px) center;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.nowrap {
  white-space: nowrap;
}

[hidden] {
  display: none !important;
}

/* ---------- 3. 布局 ---------- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 76px 0;
}

.section-sm {
  padding: 46px 0;
}

.section-head {
  max-width: 680px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-head p {
  color: var(--text-muted);
  margin: 0;
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-soft);
  border: 1px solid var(--green-line);
  border-radius: 999px;
  padding: 5px 14px;
  margin-bottom: 16px;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ---------- 4. 公告浮条 ---------- */
.notice-bar {
  background: var(--green-soft);
  border-bottom: 1px solid var(--green-line);
  font-size: 14px;
}

.notice-bar.tag-warning {
  background: rgba(255, 200, 96, 0.1);
  border-bottom-color: rgba(255, 200, 96, 0.3);
}

.notice-bar.tag-maintenance {
  background: rgba(255, 107, 107, 0.1);
  border-bottom-color: rgba(255, 107, 107, 0.28);
}

.notice-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 6px 24px;
}

.notice-tag {
  flex: none;
  font-size: 12px;
  font-weight: 700;
  color: var(--green);
  border: 1px solid var(--green-line);
  border-radius: 999px;
  padding: 1px 9px;
}

.notice-text {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--text);
}

.notice-more {
  flex: none;
  font-size: 13px;
}

.notice-close {
  flex: none;
  background: transparent;
  border: 0;
  color: var(--text-muted);
  font-size: 20px;
  line-height: 1;
  padding: 0 2px;
}

.notice-close:hover {
  color: var(--text);
}

/* ---------- 5. 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(12, 14, 12, 0.86);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  flex: none;
}

.brand-text {
  color: var(--text);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.logo-mark {
  width: 30px;
  height: 30px;
  flex: none;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 1 1 auto;
  gap: 18px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  color: var(--text-muted);
  font-size: 15px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
}

.nav-link:hover {
  color: var(--text);
  background: rgba(232, 239, 233, 0.05);
}

.nav-link.is-active {
  color: var(--green);
  background: var(--green-soft);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-user {
  max-width: 130px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  color: var(--text-muted);
}

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 40px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 8px 9px;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ---------- 6. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease,
    border-color 0.16s ease, color 0.16s ease;
  white-space: nowrap;
}

.btn:disabled,
.btn.is-loading {
  opacity: 0.6;
  pointer-events: none;
}

.btn-primary {
  background: var(--green);
  color: #06210f;
  box-shadow: var(--shadow-green);
}

.btn-primary:hover {
  background: #45e089;
  color: #06210f;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--green-line);
  color: var(--green);
  background: var(--green-soft);
}

.btn-outline {
  background: var(--green-soft);
  border-color: var(--green-line);
  color: var(--green);
}

.btn-outline:hover {
  background: rgba(52, 210, 123, 0.18);
  color: #7cebab;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 14px;
}

.btn-lg {
  padding: 15px 34px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

/* ---------- 7. 卡片与通用块 ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.card-hover {
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card-hover:hover {
  transform: translateY(-3px);
  border-color: var(--green-line);
  box-shadow: var(--shadow);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  padding: 2px 10px;
  border: 1px solid var(--green-line);
  color: var(--green);
  background: var(--green-soft);
}

.tag.tag-warning {
  color: var(--warning);
  border-color: rgba(255, 200, 96, 0.34);
  background: rgba(255, 200, 96, 0.1);
}

.tag.tag-maintenance {
  color: var(--danger);
  border-color: rgba(255, 107, 107, 0.34);
  background: var(--danger-soft);
}

.divider-label {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 13px;
  margin: 22px 0 18px;
}

.divider-label::before,
.divider-label::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--border);
}

/* ---------- 8. 首屏 Hero ---------- */
.hero {
  padding: 78px 0 64px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 46px;
  align-items: center;
}

.hero h1 {
  margin-bottom: 18px;
}

.hero h1 .accent {
  color: var(--green);
}

.hero-lead {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 540px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 18px;
}

.hero-note {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.hero-stat strong {
  display: block;
  font-size: 24px;
  color: var(--green);
}

.hero-stat span {
  font-size: 13px;
  color: var(--text-muted);
}

/* 品牌图占位（西河老师提供素材后换成 <img>） */
.brand-visual {
  position: relative;
  border: 1px solid var(--green-line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, #16241b 0%, #0f130f 78%);
  box-shadow: var(--shadow);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(52, 210, 123, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(52, 210, 123, 0.07) 1px, transparent 1px);
  background-size: 34px 34px;
  pointer-events: none;
}

.brand-visual-body {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 26px;
}

.brand-visual-body .logo-mark {
  width: 62px;
  height: 62px;
  margin: 0 auto 14px;
  color: var(--green);
}

.brand-visual-body strong {
  display: block;
  font-size: 20px;
}

.brand-visual-body span {
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- 9. 功能特性卡片 ---------- */
.feature-card .feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--green-soft);
  border: 1px solid var(--green-line);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.feature-card .feature-icon svg {
  width: 21px;
  height: 21px;
}

.feature-card h3 {
  font-size: 17px;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14.5px;
}

.step-list {
  counter-reset: step;
}

.step-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px dashed var(--border);
}

.step-item:last-child {
  border-bottom: 0;
}

.step-index {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green-soft);
  border: 1px solid var(--green-line);
  color: var(--green);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.step-body h3 {
  margin-bottom: 4px;
  font-size: 16px;
}

.step-body p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14.5px;
}

/* ---------- 10. CTA 横幅 ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--green-soft), rgba(19, 38, 26, 0.35));
  border: 1px solid var(--green-line);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
}

.cta-band h2 {
  margin-bottom: 6px;
}

.cta-band p {
  margin: 0;
  color: var(--text-muted);
}

.cta-band .cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---------- 11. 价格表 ---------- */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.price-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
}

.price-card.is-recommended {
  border-color: var(--green);
  background: linear-gradient(180deg, rgba(52, 210, 123, 0.09), var(--surface) 46%);
  box-shadow: var(--shadow-green);
}

.price-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--green);
  color: #06210f;
  font-size: 12px;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 14px;
  white-space: nowrap;
}

.price-name {
  font-size: 17px;
  margin-bottom: 10px;
}

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 6px;
}

.price-amount .currency {
  font-size: 18px;
  color: var(--green);
}

.price-amount .value {
  font-size: 40px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.price-amount .unit {
  font-size: 13px;
  color: var(--text-muted);
}

.price-original {
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-bottom: 10px;
  min-height: 20px;
}

.price-summary {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 18px;
}

.price-features {
  margin-bottom: 22px;
  flex: 1 1 auto;
}

.price-features li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 9px;
  font-size: 14.5px;
}

.price-features li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 6px;
  height: 10px;
  border-right: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: rotate(45deg);
}

.price-card-code {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
  text-align: center;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

table.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
  font-size: 14.5px;
}

table.compare th,
table.compare td {
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

table.compare thead th {
  background: var(--surface-2);
  color: var(--text);
  font-size: 14px;
  white-space: nowrap;
}

table.compare tbody tr:last-child td {
  border-bottom: 0;
}

table.compare td.yes {
  color: var(--green);
  font-weight: 600;
}

/* ---------- 12. 下载页 ---------- */
.download-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  align-items: stretch;
}

.version-card {
  background: linear-gradient(170deg, rgba(52, 210, 123, 0.1), var(--surface) 52%);
  border: 1px solid var(--green-line);
  border-radius: var(--radius-lg);
  padding: 30px;
}

.version-line {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.version-number {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.1;
}

.version-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 18px 0 20px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.version-meta div span {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
}

.version-meta div strong {
  font-size: 14.5px;
  font-weight: 600;
}

.release-notes {
  font-size: 14.5px;
  color: var(--text-muted);
}

.release-notes p {
  margin: 0 0 8px;
}

.requirement-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px dashed var(--border);
  font-size: 14.5px;
}

.requirement-list li:last-child {
  border-bottom: 0;
}

.requirement-list span {
  color: var(--text-muted);
  flex: none;
}

.history-item {
  display: flex;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}

.history-item:last-child {
  border-bottom: 0;
}

.history-ver {
  flex: none;
  width: 96px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--green);
}

.history-body {
  flex: 1 1 auto;
  min-width: 0;
}

.history-body .history-time {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.history-body p {
  margin: 0 0 4px;
  font-size: 14.5px;
  color: var(--text-muted);
}

/* ---------- 13. 公告 / 更新日志 ---------- */
.timeline {
  position: relative;
  padding-left: 26px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--green-line), rgba(232, 239, 233, 0.05));
}

.timeline-item {
  position: relative;
  margin-bottom: 20px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 24px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--green);
}

.timeline-item.is-pinned::before {
  background: var(--green);
}

.announce-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.announce-head h3 {
  margin: 0;
  font-size: 17px;
}

.announce-time {
  font-size: 12.5px;
  color: var(--text-muted);
}

.announce-body {
  font-size: 14.5px;
  color: var(--text-muted);
}

.announce-body p {
  margin: 0 0 8px;
}

.announce-body p:last-child {
  margin-bottom: 0;
}

/* ---------- 14. 表单 / 登录页 ---------- */
.auth-wrap {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 40px;
  align-items: center;
  padding: 56px 0 72px;
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow);
}

.tabs {
  display: flex;
  gap: 6px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 5px;
  margin-bottom: 24px;
}

.tab {
  flex: 1 1 0;
  background: transparent;
  border: 0;
  border-radius: 999px;
  padding: 9px 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-muted);
  transition: background 0.16s ease, color 0.16s ease;
}

.tab:hover {
  color: var(--text);
}

.tab.is-active {
  background: var(--green);
  color: #06210f;
}

.field {
  margin-bottom: 16px;
}

.field label {
  display: block;
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 7px;
}

.field label .req {
  color: var(--green);
  margin-left: 3px;
}

.input {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  padding: 12px 14px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.input::placeholder {
  color: rgba(155, 176, 163, 0.6);
}

.input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(52, 210, 123, 0.16);
}

.input.is-invalid {
  border-color: var(--danger);
}

.field-hint {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 6px;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.checkbox-row input {
  margin-top: 4px;
  accent-color: var(--green);
  width: 15px;
  height: 15px;
  flex: none;
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13.5px;
  margin-bottom: 16px;
}

.form-msg {
  border-radius: var(--radius-sm);
  padding: 10px 13px;
  font-size: 13.5px;
  margin-bottom: 16px;
  line-height: 1.6;
}

.form-msg.is-error {
  color: var(--danger);
  background: var(--danger-soft);
  border: 1px solid rgba(255, 107, 107, 0.32);
}

.form-msg.is-success {
  color: var(--green);
  background: var(--green-soft);
  border: 1px solid var(--green-line);
}

.form-msg.is-info {
  color: var(--text-muted);
  background: rgba(232, 239, 233, 0.05);
  border: 1px solid var(--border);
}

.auth-aside h2 {
  font-size: 27px;
}

.auth-aside .step-item {
  border-bottom-color: rgba(232, 239, 233, 0.07);
}

.session-box {
  border: 1px solid var(--green-line);
  background: var(--green-soft);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

.session-box h3 {
  font-size: 16px;
  margin-bottom: 10px;
  color: var(--green);
}

.session-rows {
  font-size: 14px;
}

.session-rows div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 5px 0;
}

.session-rows span {
  color: var(--text-muted);
}

/* ---------- 15. 状态占位 ---------- */
.skeleton {
  border-radius: var(--radius-sm);
  background: linear-gradient(
    90deg,
    rgba(232, 239, 233, 0.05) 25%,
    rgba(232, 239, 233, 0.11) 37%,
    rgba(232, 239, 233, 0.05) 63%
  );
  background-size: 400% 100%;
  animation: skeleton-shine 1.4s ease infinite;
  height: 16px;
  margin-bottom: 10px;
}

.skeleton.w-40 {
  width: 40%;
}
.skeleton.w-60 {
  width: 60%;
}
.skeleton.w-80 {
  width: 80%;
}

@keyframes skeleton-shine {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}

.state-empty,
.state-error {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14.5px;
}

.state-error {
  border-color: rgba(255, 107, 107, 0.3);
  color: var(--danger);
}

/* ---------- 16. 出现动画 ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

/* ---------- 17. 页脚 ---------- */
.site-footer {
  margin-top: 48px;
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 44px 0 24px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 28px;
}

.footer-col h4 {
  color: var(--text);
  margin-bottom: 12px;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 14px;
  padding: 4px 0;
}

.footer-col a:hover {
  color: var(--green);
}

.footer-col p {
  font-size: 13.5px;
}

.brand-static {
  margin-bottom: 12px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

/* ---------- 18. 响应式 ---------- */
@media (max-width: 1024px) {
  h1 {
    font-size: 38px;
  }

  .hero-inner,
  .download-hero,
  .auth-wrap {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .auth-aside {
    order: 2;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
    padding: 8px 0 18px;
  }

  .site-header.nav-open .nav-menu {
    display: flex;
  }

  .site-header.nav-open .nav-inner {
    flex-wrap: wrap;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  .nav-link {
    padding: 11px 12px;
  }

  .nav-actions {
    flex-wrap: wrap;
  }

  .nav-actions .btn {
    flex: 1 1 130px;
  }

  .nav-user {
    max-width: none;
    width: 100%;
  }

  .grid-2,
  .grid-3,
  .grid-4,
  .price-grid {
    grid-template-columns: 1fr;
  }

  .price-card.is-recommended {
    order: -1;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 15.5px;
  }

  .container {
    padding: 0 18px;
  }

  .section {
    padding: 52px 0;
  }

  h1 {
    font-size: 31px;
  }

  h2 {
    font-size: 24px;
  }

  .hero {
    padding: 46px 0 40px;
  }

  .hero-cta .btn {
    width: 100%;
  }

  .hero-stats {
    gap: 20px;
  }

  .panel,
  .card,
  .auth-card,
  .version-card,
  .cta-band {
    padding: 20px;
  }

  .cta-band .cta-actions .btn {
    width: 100%;
  }

  .notice-inner {
    padding: 8px 18px;
  }

  .notice-more {
    display: none;
  }

  .version-number {
    font-size: 28px;
  }

  .history-item {
    flex-direction: column;
    gap: 6px;
  }

  .history-ver {
    width: auto;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .timeline {
    padding-left: 20px;
  }

  .timeline-item::before {
    left: -20px;
  }

  .tabs {
    flex-wrap: wrap;
  }

  .tab {
    flex: 1 1 30%;
    font-size: 14px;
  }
}

/* ---------- 19. 打印 / 无动效偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}
