/* 使用指南共用样式 —— 头部/页脚与官网首页保持同一套视觉规范 */
:root {
  --brand: #4f46e5;
  --brand-grad: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  --logo-grad: linear-gradient(90deg, #3b82f6, #9333ea);
  --text: #1f2937;
  --text-soft: #4b5563;
  --text-mute: #6b7280;
  --line: #e5e7eb;
  --bg-soft: #f9fafb;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  line-height: 1.8;
  font-size: 16px;
  background: #fff;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: 820px; margin: 0 auto; padding: 0 20px; }
.wrap-wide { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ===== 顶部导航（对齐首页 h-16 / 36px logo / brand-gradient 按钮） ===== */
.site-header {
  border-bottom: 1px solid rgba(229, 231, 235, .6);
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 700; color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand-logo {
  width: 36px; height: 36px;
  border-radius: 12px;
  background: var(--logo-grad);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 16px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  flex-shrink: 0;
}
.brand-logo i { line-height: 1; }

.header-links { display: flex; align-items: center; gap: 4px; }
.header-links > a {
  padding: 8px 14px;
  font-size: 14px;
  color: var(--text-soft);
  border-radius: 8px;
  transition: color .15s, background-color .15s;
}
.header-links > a:hover {
  color: var(--brand);
  background: #eef2ff;
  text-decoration: none;
}
.header-links .btn-login { color: #374151; }
.header-links .btn-register {
  margin-left: 10px;
  padding: 8px 20px;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: var(--brand-grad);
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1);
  transition: box-shadow .2s, transform .2s;
  white-space: nowrap;
}
.header-links .btn-register:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1);
  transform: translateY(-2px);
  text-decoration: none;
}

/* 面包屑 */
.breadcrumb { font-size: 13px; color: var(--text-mute); padding: 22px 0 0; }
.breadcrumb a { color: var(--text-mute); }
.breadcrumb span { margin: 0 6px; }

/* 正文 */
.article { padding: 10px 0 56px; }
.article h1 { font-size: 28px; line-height: 1.45; margin: 18px 0 20px; letter-spacing: -.3px; }
.article h2 {
  font-size: 20px; margin: 38px 0 14px; padding-left: 11px;
  border-left: 3px solid var(--brand); line-height: 1.5;
}
.article p { margin: 14px 0; color: var(--text-soft); }
.article ul, .article ol { margin: 14px 0; padding-left: 24px; color: var(--text-soft); }
.article li { margin: 7px 0; }
.article strong { color: var(--text); font-weight: 600; }

.lead {
  background: var(--bg-soft);
  border-radius: 14px;
  padding: 18px 20px;
  color: var(--text) !important;
  font-size: 16px;
  margin: 0 0 8px !important;
}

/* 表格 */
.table-scroll { overflow-x: auto; margin: 18px 0; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 420px; }
th, td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
th { background: var(--bg-soft); font-weight: 600; color: var(--text); white-space: nowrap; }
td { color: var(--text-soft); }

/* 步骤 */
.steps { counter-reset: step; list-style: none; padding-left: 0; margin: 18px 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 38px;
  margin: 12px 0;
  color: var(--text-soft);
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 3px;
  width: 24px; height: 24px; border-radius: 50%;
  background: #eef2ff; color: var(--brand);
  font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

.note {
  border-left: 3px solid #f59e0b;
  background: #fffbeb;
  padding: 12px 16px;
  border-radius: 0 10px 10px 0;
  font-size: 14.5px;
  color: #92400e;
  margin: 20px 0;
}

/* FAQ */
.faq-item { border-bottom: 1px solid var(--line); padding: 16px 0; }
.faq-item:last-child { border-bottom: none; }
.faq-q { font-weight: 600; margin: 0 0 6px; color: var(--text); }
.faq-a { margin: 0; color: var(--text-soft); font-size: 15px; }

.related { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); }
.related h2 { font-size: 16px; border: none; padding: 0; margin: 0 0 12px; color: var(--text-mute); font-weight: 600; }
.related ul { list-style: none; padding: 0; margin: 0; }
.related li { margin: 8px 0; }

.disclosure { margin-top: 36px; font-size: 13px; color: var(--text-mute); }

/* 指南首页 */
.hero-guide { padding: 46px 0 10px; }
.hero-guide h1 { font-size: 30px; margin: 0 0 12px; letter-spacing: -.4px; }
.hero-guide p { color: var(--text-mute); margin: 0; font-size: 15.5px; }

.card-list { list-style: none; padding: 0; margin: 32px 0 60px; display: grid; gap: 14px; }
.card-list li { border: 1px solid var(--line); border-radius: 14px; transition: border-color .18s, transform .18s; }
.card-list li:hover { border-color: #c7d2fe; transform: translateY(-1px); }
.card-list a { display: block; padding: 18px 20px; color: inherit; }
.card-list a:hover { text-decoration: none; }
.card-title { font-weight: 600; font-size: 16.5px; color: var(--text); margin-bottom: 5px; }
.card-desc { font-size: 14px; color: var(--text-mute); line-height: 1.7; }

/* ===== 页脚（对齐首页：深色底 + 品牌语 + 两列导航 + 备案） ===== */
.site-footer { background: #111827; color: #9ca3af; font-size: 14px; padding: 56px 0; }
.site-footer a { color: #d1d5db; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.footer-inner { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand-row { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.footer-brand-name { font-size: 18px; font-weight: 700; color: #fff; }
.footer-tagline {
  max-width: 380px; margin: 0;
  font-size: 14px; color: #6b7280; line-height: 1.75;
}
.footer-qr { display: flex; align-items: center; gap: 12px; margin-top: 24px; }
.footer-qr img { width: 80px; height: 80px; border-radius: 8px; border: 1px solid #374151; background: #fff; padding: 4px; object-fit: contain; }
.footer-qr-text { font-size: 12px; color: #6b7280; line-height: 1.7; }
.footer-col h4 { margin: 0 0 16px; font-size: 14px; font-weight: 600; color: #fff; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 0 0 10px; font-size: 14px; }
.footer-col li:last-child { margin-bottom: 0; }
.footer-bottom {
  border-top: 1px solid #1f2937;
  padding-top: 32px;
  text-align: center;
  font-size: 14px;
  color: #6b7280;
}
.footer-bottom .beian { margin-top: 16px; font-size: 12px; color: #4b5563; }
.footer-bottom .beian a { color: #4b5563; }
.footer-bottom .beian span { margin: 0 10px; }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .article h1 { font-size: 23px; }
  .article h2 { font-size: 18px; }
  .hero-guide h1 { font-size: 24px; }
  .header-links .hide-sm { display: none; }
  .breadcrumb { padding-top: 16px; }
  .site-footer { padding: 40px 0; }
  .footer-bottom { padding-top: 24px; }
}
