/* 汉服租赁系统 · 古风官网 */
@import url('https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&family=Noto+Serif+SC:wght@400;500;600;700&family=ZCOOL+XiaoWei&display=swap');

:root {
  --ink: #1a1510;
  --ink-light: #3d3428;
  --paper: #f5efe3;
  --paper-dark: #e8dcc8;
  --cinnabar: #8b2e2e;
  --cinnabar-light: #a84545;
  --gold: #b8860b;
  --gold-light: #d4a84b;
  --jade: #4a6b5a;
  --mist: rgba(245, 239, 227, 0.92);
  --shadow: rgba(26, 21, 16, 0.12);
  --header-h: 72px;
  --max-w: 1200px;
  --font-serif: 'Noto Serif SC', 'Songti SC', serif;
  --font-display: 'ZCOOL XiaoWei', 'Noto Serif SC', serif;
  --font-brush: 'Ma Shan Zheng', cursive;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-serif);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
  min-height: 100vh;
  background-image:
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23b8860b' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

a { color: var(--cinnabar); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--cinnabar-light); }

img { max-width: 100%; height: auto; display: block; }

.container {
  width: min(100% - 48px, var(--max-w));
  margin-inline: auto;
}

/* ========== 顶栏 ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--header-h);
  background: var(--mist);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(184, 134, 11, 0.25);
  box-shadow: 0 2px 20px var(--shadow);
}

.site-header .header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 1 auto;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.brand:hover { color: inherit; }

.brand-logo {
  width: 130px;
  height: auto;
  flex-shrink: 0;
}

.brand-title {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.2vw, 1.75rem);
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink);
  line-height: 1;
  white-space: nowrap;
  border-left: 2px solid var(--gold);
  padding-left: 14px;
  text-decoration: none;
  display: flex;
  align-items: center;
  align-self: stretch;
}

.brand-title:hover { color: var(--cinnabar); }

.header-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.site-header:not(.site-header--home) .btn-demo {
  display: none;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.btn-demo {
  flex-shrink: 0;
  padding: 9px 22px;
  font-family: var(--font-display);
  font-size: 0.98rem;
  letter-spacing: 0.12em;
  color: var(--cinnabar);
  background: linear-gradient(180deg, #fffefb 0%, #f5efe3 100%);
  border: 1px solid var(--gold);
  border-radius: 2px;
  box-shadow: 0 2px 12px rgba(184, 134, 11, 0.2);
  text-decoration: none;
  transition: color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.2s;
}

.btn-demo:hover {
  color: var(--paper);
  background: linear-gradient(135deg, var(--gold), #9a7209);
  border-color: var(--gold-light);
  box-shadow: 0 4px 16px rgba(184, 134, 11, 0.35);
  transform: translateY(-1px);
}

button.btn-demo {
  cursor: pointer;
  font-family: inherit;
}

/* ========== 系统演示弹窗 ========== */
.demo-popup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1099;
  background: rgba(26, 21, 16, 0.42);
  backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.demo-popup-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.demo-popup {
  position: fixed;
  z-index: 1100;
  width: min(300px, calc(100vw - 32px));
  background: #fffefb;
  border-radius: 6px;
  border: 1px solid rgba(184, 134, 11, 0.35);
  box-shadow: 0 16px 48px rgba(26, 21, 16, 0.18), 0 0 0 1px rgba(184, 134, 11, 0.08);
  padding: 18px 18px 16px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease;
  pointer-events: none;
}

.demo-popup.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.demo-popup::before {
  content: '';
  position: absolute;
  top: -7px;
  right: 24px;
  width: 13px;
  height: 13px;
  background: #fffefb;
  border-left: 1px solid rgba(184, 134, 11, 0.35);
  border-top: 1px solid rgba(184, 134, 11, 0.35);
  transform: rotate(45deg);
}

.demo-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--paper-dark);
}

.demo-popup-title {
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.08em;
}

.demo-popup-close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border: 1px solid var(--paper-dark);
  background: #fff;
  color: var(--ink-light);
  border-radius: 4px;
  cursor: pointer;
  font-size: 1.15rem;
  line-height: 1;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.demo-popup-close:hover {
  color: var(--cinnabar);
  border-color: var(--cinnabar);
  background: rgba(139, 46, 46, 0.05);
}

.demo-popup-admin {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-bottom: 14px;
  padding: 9px 14px;
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  color: var(--cinnabar);
  background: rgba(139, 46, 46, 0.06);
  border: 1px solid rgba(139, 46, 46, 0.25);
  border-radius: 4px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.demo-popup-admin:hover {
  color: var(--paper);
  background: linear-gradient(135deg, var(--cinnabar), #6b2222);
  border-color: var(--cinnabar);
}

.demo-popup-admin svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.demo-popup-qr {
  display: block;
  width: 156px;
  height: 156px;
  margin: 0 auto 10px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--paper-dark);
  border-radius: 4px;
  object-fit: contain;
}

.demo-popup-scan {
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-light);
  margin: 0 0 12px;
  letter-spacing: 0.04em;
}

.demo-popup-url-wrap {
  display: flex;
  align-items: stretch;
  gap: 6px;
  margin-bottom: 10px;
}

.demo-popup-url {
  flex: 1;
  min-width: 0;
  padding: 8px 10px;
  font-size: 0.78rem;
  color: var(--cinnabar);
  background: var(--paper);
  border: 1px solid var(--paper-dark);
  border-radius: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.demo-popup-url:hover {
  border-color: var(--gold);
  background: #fff;
}

.demo-popup-copy {
  flex-shrink: 0;
  padding: 0 12px;
  font-family: var(--font-display);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--gold);
  background: #fffefb;
  border: 1px solid var(--gold);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.demo-popup-copy:hover,
.demo-popup-copy.is-copied {
  color: var(--paper);
  background: linear-gradient(135deg, var(--gold), #9a7209);
  border-color: var(--gold-light);
}

.demo-popup-open {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px 14px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--paper);
  background: linear-gradient(135deg, var(--cinnabar), #6b2222);
  border-radius: 4px;
  text-decoration: none;
  box-shadow: 0 3px 14px rgba(139, 46, 46, 0.28);
  transition: transform 0.2s, box-shadow 0.2s;
}

.demo-popup-open:hover {
  color: var(--paper);
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(139, 46, 46, 0.38);
}

.demo-popup-open svg {
  width: 14px;
  height: 14px;
}

.demo-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 1200;
  transform: translateX(-50%) translateY(10px);
  padding: 10px 18px;
  font-family: var(--font-display);
  font-size: 0.88rem;
  letter-spacing: 0.06em;
  color: var(--paper);
  background: rgba(26, 21, 16, 0.9);
  border: 1px solid rgba(184, 134, 11, 0.35);
  border-radius: 4px;
  box-shadow: 0 6px 20px rgba(26, 21, 16, 0.2);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  pointer-events: none;
}

.demo-toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
  .demo-popup {
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) scale(0.96);
  }

  .demo-popup.is-open {
    transform: translate(-50%, -50%) scale(1);
  }

  .demo-popup::before {
    display: none;
  }
}

.main-nav a {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink-light);
  padding: 8px 18px;
  border-radius: 2px;
  position: relative;
  text-decoration: none;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--cinnabar);
  transition: width 0.25s, left 0.25s;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--cinnabar);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 60%;
  left: 20%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--gold);
  border-radius: 4px;
  background: #fffefb;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-header--nav-open {
  box-shadow: 0 4px 24px var(--shadow);
}

/* ========== 主内容区 ========== */
main { padding-top: var(--header-h); }

/* ========== 首页 Hero ========== */
.hero {
  position: relative;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(165deg, #2a2218 0%, #1a1510 40%, #3d2e22 100%);
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(139, 46, 46, 0.15), transparent),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cpath fill='%23b8860b' fill-opacity='0.06' d='M100 20c-20 30-60 40-60 80s40 70 60 100c20-30 60-50 60-100S120 50 100 20z'/%3E%3C/svg%3E") repeat;
  opacity: 0.9;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 48px, var(--max-w));
  margin: 0 auto;
  padding: 80px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text { color: var(--paper); }

.hero-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 0.3em;
  color: var(--gold-light);
  border: 1px solid rgba(212, 168, 75, 0.4);
  padding: 6px 20px;
  margin-bottom: 24px;
}

.hero h1 {
  font-family: var(--font-brush);
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 20px;
  text-shadow: 0 4px 24px rgba(0,0,0,0.4);
}

.hero-desc {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 480px;
  margin-bottom: 36px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: var(--font-display);
  font-size: 1.05rem;
  border-radius: 2px;
  transition: all 0.25s;
  text-decoration: none;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--cinnabar), #6b2222);
  color: var(--paper);
  box-shadow: 0 4px 20px rgba(139, 46, 46, 0.4);
}

.btn-primary:hover {
  color: var(--paper);
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(139, 46, 46, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--gold-light);
  border: 1px solid var(--gold-light);
}

.btn-outline:hover {
  background: rgba(212, 168, 75, 0.15);
  color: var(--paper);
}

.hero-visual {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  height: 100%;
  position: relative;
}

.hero-figure {
  width: 100%;
  max-width: 420px;
  margin: 0;
}

.hero-figure--model {
  max-width: 480px;
  position: relative;
}

.hero-showcase-img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid rgba(212, 168, 75, 0.45);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(212, 168, 75, 0.15);
}

.hero-model-img {
  width: 100%;
  height: auto;
  max-height: 580px;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.4));
  transition: transform 0.4s ease;
}

.hero-model-img:hover {
  transform: scale(1.02);
}

/* ========== 区块通用 ========== */
.section {
  padding: 88px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header .subtitle {
  font-family: var(--font-display);
  font-size: 0.9rem;
  letter-spacing: 0.4em;
  color: var(--gold);
  margin-bottom: 12px;
}

.section-header h2 {
  font-family: var(--font-brush);
  font-size: 2.6rem;
  color: var(--ink);
  margin-bottom: 16px;
}

.section-header .divider {
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--cinnabar), transparent);
  margin: 0 auto 20px;
}

.section-header p {
  color: var(--ink-light);
  max-width: 640px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ========== 首页特色卡片 ========== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--paper-dark);
  padding: 36px 28px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cinnabar), var(--gold));
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px var(--shadow);
}

.feature-card .icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  color: var(--cinnabar);
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--ink);
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--ink-light);
  line-height: 1.7;
}

/* ========== 首页流程 ========== */
.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.flow-step {
  text-align: center;
  padding: 32px 20px;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--paper-dark);
  position: relative;
}

.flow-step::before {
  counter-increment: step;
  content: counter(step, cjk-ideographic);
  font-family: var(--font-brush);
  font-size: 2rem;
  color: var(--cinnabar);
  display: block;
  margin-bottom: 12px;
  opacity: 0.7;
}

.flow-step h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.flow-step p {
  font-size: 0.9rem;
  color: var(--ink-light);
}

/* ========== 首页 CTA ========== */
.cta-band {
  background: linear-gradient(135deg, var(--ink) 0%, #2d2419 100%);
  color: var(--paper);
  text-align: center;
  padding: 72px 24px;
}

.cta-band h2 {
  font-family: var(--font-brush);
  font-size: 2.4rem;
  margin-bottom: 16px;
}

.cta-band p {
  opacity: 0.85;
  margin-bottom: 28px;
  font-size: 1.05rem;
}

/* ========== 页面标题区 ========== */
.page-hero {
  background: linear-gradient(135deg, #2a2218, #1a1510);
  color: var(--paper);
  padding: 64px 0 56px;
  text-align: center;
  border-bottom: 3px solid var(--gold);
}

.page-hero h1 {
  font-family: var(--font-brush);
  font-size: 2.8rem;
  margin-bottom: 12px;
}

.page-hero p {
  opacity: 0.85;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
}

/* ========== 功能介绍页 ========== */
.features-showcase {
  background-color: #f5f1e6;
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill='%23b8860b' fill-opacity='0.07' d='M11 5h2v2h-2zm0 6h2v2h-2zm0 6h2v2h-2zM5 11h2v2H5zm12 0h2v2h-2z'/%3E%3C/svg%3E");
  padding: 0;
}

.features-showcase .container {
  width: min(100% - 40px, 1100px);
}

.feature-module {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.05fr);
  gap: clamp(40px, 6vw, 72px);
  align-items: center;
  padding: clamp(56px, 8vw, 88px) 0;
  border-bottom: 1px solid rgba(125, 45, 45, 0.08);
}

.feature-module:last-child { border-bottom: none; }

/* 可选：奇偶模块左右对调时启用 feature-module--flip */
.feature-module--flip .feature-module__media { order: 2; }
.feature-module--flip .feature-module__body { order: 1; }

/* 左侧示意卡片 */
.feature-module__media {
  display: flex;
  justify-content: center;
  align-items: center;
}

.feature-module__frame {
  width: 100%;
  max-width: 400px;
  aspect-ratio: 5 / 4;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 8px 32px rgba(26, 21, 16, 0.08), 0 2px 8px rgba(26, 21, 16, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 5vw, 48px);
  position: relative;
}

.feature-module__frame::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(184, 134, 11, 0.12);
  border-radius: 4px;
  pointer-events: none;
}

.feature-module__frame svg {
  width: 100%;
  max-width: 200px;
  height: auto;
}

/* 右侧文案 */
.feature-module__body {
  padding: 8px 0;
}

.feature-module__index {
  font-family: var(--font-serif);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  color: var(--gold);
  margin-bottom: 14px;
  text-transform: uppercase;
}

.feature-module__title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  letter-spacing: 0.06em;
  display: inline-block;
  padding-bottom: 14px;
  margin-bottom: 0;
  border-bottom: 2px solid #7d2d2d;
}

.feature-module__subtitle {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 600;
  color: #7c8a71;
  margin: 22px 0 16px;
  letter-spacing: 0.08em;
}

.feature-module__desc {
  font-size: 0.98rem;
  color: #5c5348;
  line-height: 1.9;
  margin-bottom: 24px;
  max-width: 52ch;
}

.feature-module__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.feature-module__list li {
  position: relative;
  padding: 10px 0 10px 22px;
  font-size: 0.96rem;
  color: #4a4338;
  line-height: 1.65;
  border-bottom: 1px solid rgba(125, 45, 45, 0.06);
}

.feature-module__list li:last-child { border-bottom: none; }

.feature-module__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 1.15em;
  width: 7px;
  height: 7px;
  background: #7d2d2d;
  transform: rotate(45deg);
}

/* ========== 价格页 ========== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 64px 0 88px;
}

.pricing-card {
  background: #fff;
  border: 1px solid var(--paper-dark);
  padding: 40px 32px;
  text-align: center;
  position: relative;
  transition: transform 0.3s, box-shadow 0.3s;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px var(--shadow);
}

.pricing-card.featured {
  border-color: var(--cinnabar);
  box-shadow: 0 0 0 2px var(--cinnabar);
}

.pricing-card.featured::before {
  content: '推荐';
  position: absolute;
  top: -1px;
  right: 24px;
  background: var(--cinnabar);
  color: var(--paper);
  font-family: var(--font-display);
  font-size: 0.8rem;
  padding: 4px 14px;
  letter-spacing: 0.1em;
}

.pricing-card .tier-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 8px;
}

.pricing-card .tier-desc {
  font-size: 0.9rem;
  color: var(--ink-light);
  margin-bottom: 24px;
  min-height: 44px;
}

.pricing-card .price {
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--cinnabar);
  margin-bottom: 8px;
}

.pricing-card .price span {
  font-size: 1rem;
  color: var(--ink-light);
}

.pricing-card .price-note {
  font-size: 0.88rem;
  color: var(--gold);
  margin-bottom: 28px;
  padding: 10px;
  background: rgba(184, 134, 11, 0.08);
  border-radius: 2px;
}

.pricing-card ul {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
}

.pricing-card ul li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--paper-dark);
  font-size: 0.95rem;
  color: var(--ink-light);
  padding-left: 22px;
  position: relative;
}

.pricing-card ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--jade);
  font-weight: bold;
}

.pricing-footer-note {
  text-align: center;
  padding: 0 0 64px;
  color: var(--ink-light);
  font-size: 0.95rem;
}

/* ========== 使用指南页 ========== */
.guide-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 0;
  min-height: calc(100vh - var(--header-h) - 180px);
  padding: 48px 0 80px;
}

.guide-sidebar {
  background: #fff;
  border: 1px solid var(--paper-dark);
  padding: 24px 0;
  height: fit-content;
  position: sticky;
  top: calc(var(--header-h) + 24px);
}

.guide-sidebar h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  padding: 0 24px 16px;
  color: var(--gold);
  letter-spacing: 0.2em;
  border-bottom: 1px solid var(--paper-dark);
  margin-bottom: 8px;
}

.guide-nav {
  list-style: none;
}

.guide-nav li button,
.guide-nav li a {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 24px;
  font-family: var(--font-serif);
  font-size: 0.98rem;
  color: var(--ink-light);
  background: none;
  border: none;
  border-left: 3px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}

.guide-nav li button:hover,
.guide-nav li button.active,
.guide-nav li a:hover,
.guide-nav li a.active {
  color: var(--cinnabar);
  background: rgba(139, 46, 46, 0.06);
  border-left-color: var(--cinnabar);
}

.guide-content {
  background: #fff;
  border: 1px solid var(--paper-dark);
  margin-left: 32px;
  padding: 40px 48px;
  min-height: 480px;
}

.guide-article { display: none; }
.guide-article.active { display: block; }

.guide-article h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--ink);
  margin-bottom: 8px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--paper-dark);
}

.guide-article .meta {
  font-size: 0.88rem;
  color: var(--gold);
  margin-bottom: 28px;
}

.guide-article h3 {
  font-size: 1.15rem;
  color: var(--jade);
  margin: 28px 0 12px;
}

.guide-article p,
.guide-article ul {
  color: var(--ink-light);
  margin-bottom: 16px;
  line-height: 1.85;
}

.guide-article ul { padding-left: 24px; }

.guide-nav-group {
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  color: var(--gold);
  padding: 18px 24px 8px;
  margin-top: 4px;
}

.guide-nav-group:first-of-type {
  margin-top: 0;
}

.guide-toc {
  background: rgba(184, 134, 11, 0.06);
  border: 1px solid var(--paper-dark);
  border-radius: 2px;
  padding: 20px 24px;
  margin: 24px 0 32px;
}

.guide-toc-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: 12px;
}

.guide-toc ol {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 32px;
}

.guide-toc ol li {
  break-inside: avoid;
  margin-bottom: 6px;
  font-size: 0.92rem;
  color: var(--ink-light);
}

.guide-toc a {
  color: var(--cinnabar);
  text-decoration: none;
}

.guide-toc a:hover {
  text-decoration: underline;
}

.guide-figure {
  margin: 20px auto 28px;
  text-align: center;
  max-width: 100%;
}

.guide-figure img {
  width: auto;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
  border: 1px solid var(--paper-dark);
  border-radius: 6px;
  box-shadow: 0 4px 18px rgba(26, 21, 16, 0.07);
}

.guide-figure--phone {
  display: inline-block;
  max-width: min(300px, 88vw);
}

.guide-figure--phone img {
  width: 100%;
}

.guide-figure--desktop img {
  max-width: min(960px, 100%);
}

.guide-figure-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 20px 0 28px;
}

.guide-figure-row .guide-figure {
  margin: 0;
}

.guide-figure figcaption {
  margin-top: 10px;
  font-size: 0.86rem;
  color: var(--ink-light);
  line-height: 1.55;
  padding: 0 4px;
}

.guide-callout {
  background: rgba(74, 107, 90, 0.07);
  border-left: 3px solid var(--jade);
  padding: 14px 18px;
  margin: 16px 0 24px;
  font-size: 0.94rem;
  color: var(--ink-light);
}

.guide-nav-mobile-select {
  display: none;
  width: 100%;
  margin-bottom: 16px;
  padding: 12px 14px;
  font-family: var(--font-serif);
  font-size: 0.95rem;
  border: 1px solid var(--paper-dark);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
}

.guide-steps {
  background: rgba(139, 46, 46, 0.05);
  border-left: 3px solid var(--cinnabar);
  padding: 18px 22px;
  margin: 20px 0 28px;
}

.guide-steps p {
  margin-bottom: 8px;
}

.guide-inline-link {
  display: inline;
  padding: 0;
  font: inherit;
  color: var(--cinnabar);
  background: none;
  border: none;
  border-bottom: 1px dashed var(--cinnabar);
  cursor: pointer;
  text-decoration: none;
}

.guide-inline-link:hover {
  color: var(--cinnabar-light);
}

.guide-menu-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 28px;
  font-size: 0.94rem;
}

.guide-menu-table th,
.guide-menu-table td {
  border: 1px solid var(--paper-dark);
  padding: 12px 16px;
  text-align: left;
  vertical-align: top;
}

.guide-menu-table th {
  background: rgba(184, 134, 11, 0.08);
  font-family: var(--font-display);
  color: var(--ink);
  white-space: nowrap;
}

.guide-menu-table td {
  color: var(--ink-light);
}

.guide-placeholder {
  text-align: center;
  padding: 60px 24px;
  color: var(--ink-light);
}

.guide-placeholder .icon-large {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  opacity: 0.4;
}

/* ========== 页脚 ========== */
.site-footer {
  background: var(--ink);
  color: rgba(245, 239, 227, 0.75);
  padding: 48px 0 28px;
  margin-top: auto;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(245, 239, 227, 0.15);
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.92rem;
  line-height: 1.8;
  max-width: 360px;
}

.footer-col h4 {
  font-family: var(--font-display);
  color: var(--gold-light);
  font-size: 1rem;
  margin-bottom: 16px;
  letter-spacing: 0.15em;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col a { color: rgba(245, 239, 227, 0.7); }
.footer-col a:hover { color: var(--gold-light); }

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  font-size: 0.88rem;
  opacity: 0.6;
}

.footer-bottom a { color: var(--gold-light); }

/* ========== 响应式 ========== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-desc { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { order: -1; justify-content: center; align-items: center; }
  .hero-figure { max-width: 320px; margin: 0 auto; }
  .hero-figure--model { max-width: 360px; }
  .hero-model-img { max-height: 420px; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-steps { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .feature-module {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 48px 0;
  }
  .feature-module--flip .feature-module__media,
  .feature-module--flip .feature-module__body { order: unset; }
  .feature-module__desc { max-width: none; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --header-h: 60px; }

  .site-header .header-inner {
    gap: 8px;
  }

  .brand {
    flex: 1;
    min-width: 0;
    gap: 8px;
  }

  .brand-logo {
    width: 92px;
  }

  .brand-title {
    font-size: 1rem;
    letter-spacing: 0.06em;
    padding-left: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .header-toolbar {
    gap: 8px;
  }

  .btn-demo {
    padding: 8px 14px;
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    line-height: 1.2;
    box-shadow: 0 1px 8px rgba(184, 134, 11, 0.18);
  }

  .nav-toggle {
    display: inline-flex;
  }

  .main-nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    width: 100%;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--mist);
    border-bottom: 1px solid rgba(184, 134, 11, 0.3);
    box-shadow: 0 12px 28px var(--shadow);
    padding: 6px 0 10px;
    z-index: 1001;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 14px 20px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(184, 134, 11, 0.1);
  }

  .main-nav a::after {
    display: none;
  }

  .main-nav a:last-child {
    border-bottom: none;
  }

  .features-grid { grid-template-columns: 1fr; }
  .flow-steps { grid-template-columns: 1fr; }
  .guide-layout { grid-template-columns: 1fr; }
  .guide-sidebar { position: static; max-height: none; }
  .guide-nav-mobile-select { display: block; }
  .guide-sidebar .guide-nav-group,
  .guide-sidebar .guide-nav { display: none; }
  .guide-content { margin-left: 0; margin-top: 16px; padding: 24px 16px; }
  .guide-toc ol { columns: 1; }
  .guide-figure--phone { max-width: min(280px, 90vw); }
  .guide-figure--desktop img { max-width: 100%; }
  .guide-figure-row { grid-template-columns: 1fr; gap: 16px; }
  .guide-menu-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .footer-inner { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
  .brand-logo {
    width: 80px;
  }

  .brand-title {
    font-size: 0.9rem;
    max-width: 7.5em;
  }

  .btn-demo {
    padding: 7px 10px;
    font-size: 0.8rem;
  }

  .nav-toggle {
    width: 36px;
    height: 36px;
  }

  .nav-toggle-bar {
    width: 16px;
  }
}
