/* ===== 使用教程页 · 左右对照式 ===== */
.page-faq {
  --tut-rail: 272px;
  display: block;
  padding-bottom: clamp(56px, 9vw, 110px);
  overflow-wrap: break-word;
}

/* ---------- 首屏 ---------- */
.page-faq .tut-mast {
  position: relative;
  overflow: hidden;
  padding: clamp(26px, 4.5vw, 52px) 0 clamp(28px, 4vw, 46px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(90% 130% at 92% 0%, rgba(76, 224, 122, 0.13), transparent 58%),
    linear-gradient(180deg, rgba(28, 43, 39, 0.82) 0%, rgba(11, 31, 26, 0) 86%);
}
.page-faq .tut-mast::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background: repeating-linear-gradient(
    180deg,
    rgba(126, 154, 142, 0.07) 0 1px,
    transparent 1px 4px
  );
}
.page-faq .tut-mast .shell {
  position: relative;
  z-index: 1;
}

.page-faq .crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
}
.page-faq .crumbs li + li::before {
  content: "/";
  margin: 0 8px 0 4px;
  color: rgba(126, 154, 142, 0.45);
}
.page-faq .crumbs a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.page-faq .crumbs a:hover,
.page-faq .crumbs a:focus-visible {
  color: var(--signal);
  border-bottom-color: var(--signal);
}

.page-faq .tut-mast__eyebrow {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--signal);
}

.page-faq .tut-mast h1 {
  margin: 0;
  max-width: 16em;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(30px, 7vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text);
}

.page-faq .tut-mast__lede {
  margin: 18px 0 0;
  max-width: 34em;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.8;
  color: var(--paper);
}

.page-faq .tut-mast__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--muted);
}
.page-faq .tut-mast__meta li {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
}
.page-faq .tut-mast__meta .mono {
  color: var(--signal);
  font-size: 15px;
  font-weight: 700;
}

/* ---------- 左右分栏 ---------- */
.page-faq .tut-layout {
  display: grid;
  gap: clamp(24px, 4vw, 42px);
  margin-top: clamp(28px, 4.5vw, 56px);
}
.page-faq .tut-body {
  min-width: 0;
}

/* ---------- 左侧目录 ---------- */
.page-faq .tut-rail {
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 16px 14px;
  background: linear-gradient(180deg, rgba(28, 43, 39, 0.92), rgba(18, 18, 18, 0.75));
}
.page-faq .tut-rail__title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 12px;
  padding: 0 4px 12px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text);
}
.page-faq .tut-rail__title span {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}
.page-faq .tut-rail__list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.page-faq .tut-rail__list a {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  padding: 9px 10px;
  border-left: 2px solid transparent;
  border-radius: var(--radius-s);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
  transition: color 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease);
}
.page-faq .tut-rail__list a .mono {
  font-size: 12px;
  color: rgba(126, 154, 142, 0.75);
  transition: color 0.18s var(--ease);
}
.page-faq .tut-rail__list a:hover,
.page-faq .tut-rail__list a:focus-visible {
  color: var(--text);
  background: rgba(76, 224, 122, 0.08);
  border-left-color: var(--signal);
}
.page-faq .tut-rail__list a:hover .mono,
.page-faq .tut-rail__list a:focus-visible .mono {
  color: var(--signal);
}
.page-faq .tut-rail__list a:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

/* ---------- 章节骨架 ---------- */
.page-faq .tut-section {
  scroll-margin-top: calc(var(--head-h) + 28px);
}
.page-faq .tut-section + .tut-section {
  margin-top: clamp(34px, 5vw, 62px);
  padding-top: clamp(34px, 5vw, 62px);
  border-top: 1px solid var(--line-soft);
}
.page-faq .tut-section__head {
  margin-bottom: 18px;
}
.page-faq .tut-section__num {
  display: inline-block;
  margin-bottom: 9px;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--signal);
}
.page-faq .tut-section h2 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(21px, 3.4vw, 30px);
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--text);
}
.page-faq .tut-section__lede {
  margin: 10px 0 0;
  max-width: 34em;
  font-size: 15px;
  line-height: 1.8;
  color: var(--paper);
}

/* ---------- 分步说明 ---------- */
.page-faq .steps {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.page-faq .steps__item {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 20px;
}
.page-faq .steps__item:last-child {
  padding-bottom: 0;
}
.page-faq .steps__item:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 26px;
  bottom: 4px;
  width: 1px;
  background: linear-gradient(180deg, rgba(76, 224, 122, 0.55), rgba(76, 224, 122, 0.05));
}
.page-faq .steps__num {
  width: 38px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--signal);
}
.page-faq .steps__title {
  margin: 0 0 5px;
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--text);
}
.page-faq .steps__text {
  margin: 0;
  max-width: 34em;
  font-size: 15px;
  line-height: 1.75;
  color: var(--paper);
}
.page-faq .steps__note {
  margin: 9px 0 0;
  padding: 8px 12px;
  border-left: 2px solid rgba(242, 178, 60, 0.55);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  background: rgba(242, 178, 60, 0.07);
  font-size: 13px;
  line-height: 1.7;
  color: rgba(242, 178, 60, 0.9);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.page-faq .steps__item:hover .steps__note,
.page-faq .steps__item:focus-within .steps__note {
  background: rgba(242, 178, 60, 0.15);
  border-left-color: var(--amber);
  color: var(--amber);
}

/* ---------- 读法清单 ---------- */
.page-faq .read-list {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}
.page-faq .read-list li {
  position: relative;
  padding-left: 18px;
  max-width: 36em;
  font-size: 15px;
  line-height: 1.78;
  color: var(--paper);
}
.page-faq .read-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.74em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--signal);
  opacity: 0.85;
}
.page-faq .read-list strong {
  color: var(--text);
  font-weight: 700;
}

/* ---------- 提示条 ---------- */
.page-faq .tut-note {
  margin: 18px 0 0;
  padding: 12px 16px;
  border-left: 2px solid var(--line-strong);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  background: rgba(28, 43, 39, 0.5);
  font-size: 14px;
  line-height: 1.75;
  color: var(--paper);
}
.page-faq .tut-note a {
  color: var(--signal);
  text-decoration: none;
  border-bottom: 1px solid rgba(76, 224, 122, 0.4);
  transition: border-color 0.18s var(--ease);
}
.page-faq .tut-note a:hover,
.page-faq .tut-note a:focus-visible {
  border-bottom-color: var(--signal);
}

/* ---------- 对照表 ---------- */
.page-faq .tut-tables {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}
.page-faq .tut-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: rgba(18, 18, 18, 0.6);
  overflow: hidden;
}
.page-faq .tut-card__head {
  margin: 0;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(28, 43, 39, 0.6);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
}
.page-faq .tut-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.page-faq .tut-table th,
.page-faq .tut-table td {
  padding: 11px 16px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--line-soft);
}
.page-faq .tut-table th {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--muted);
  background: rgba(28, 43, 39, 0.4);
}
.page-faq .tut-table tr:last-child td {
  border-bottom: 0;
}
.page-faq .tut-table td:first-child {
  width: 1%;
  white-space: nowrap;
}
.page-faq .tut-table td:last-child {
  line-height: 1.65;
  color: var(--paper);
}

/* ---------- 标签与状态灯 ---------- */
.page-faq .mark {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--pill);
  border: 1px solid rgba(242, 178, 60, 0.45);
  background: rgba(242, 178, 60, 0.16);
  font-size: 12.5px;
  line-height: 1.6;
  white-space: nowrap;
  color: #f7d79a;
}
.page-faq .lite {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  white-space: nowrap;
  color: var(--paper);
}
.page-faq .lite::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.page-faq .lite--idle::before {
  background: rgba(126, 154, 142, 0.9);
  box-shadow: 0 0 0 3px rgba(126, 154, 142, 0.14);
}
.page-faq .lite--live::before {
  background: var(--signal);
  box-shadow: 0 0 0 3px rgba(76, 224, 122, 0.18);
  animation: faq-pulse 3s ease-in-out infinite;
}
.page-faq .lite--done::before {
  background: rgba(76, 224, 122, 0.3);
  box-shadow: 0 0 0 3px rgba(76, 224, 122, 0.06);
}
@keyframes faq-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

/* ---------- 批次说明 ---------- */
.page-faq .batch {
  display: grid;
  margin: 22px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background:
    linear-gradient(118deg, rgba(76, 224, 122, 0.08), transparent 54%),
    rgba(18, 18, 18, 0.6);
  overflow: hidden;
}
.page-faq .batch__row {
  display: grid;
  gap: 4px 22px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
}
.page-faq .batch__row:last-child {
  border-bottom: 0;
}
.page-faq .batch__row dt {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--signal);
}
.page-faq .batch__row dd {
  margin: 0;
  max-width: 36em;
  font-size: 14.5px;
  line-height: 1.72;
  color: var(--paper);
}

/* ---------- 分类索引 ---------- */
.page-faq .cat-list {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-soft);
}
.page-faq .cat-list__item {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: baseline;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.18s var(--ease);
}
.page-faq .cat-list__item:hover {
  background: rgba(76, 224, 122, 0.05);
}
.page-faq .cat-list__num {
  font-size: 12px;
  color: var(--signal);
}
.page-faq .cat-list__name {
  display: block;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}
.page-faq .cat-list__desc {
  display: block;
  margin-top: 5px;
  max-width: 38em;
  font-size: 13.5px;
  line-height: 1.72;
  color: var(--muted);
}
.page-faq .cat-list__count {
  font-size: 13px;
  white-space: nowrap;
  color: var(--paper);
}

/* ---------- 反馈块 ---------- */
.page-faq .help {
  margin-top: 26px;
  padding: 20px 22px;
  border: 1px solid rgba(242, 178, 60, 0.32);
  border-left-width: 3px;
  border-radius: var(--radius-m);
  background: rgba(242, 178, 60, 0.06);
}
.page-faq .help__title {
  margin: 0 0 10px;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--amber);
}
.page-faq .help__text {
  margin: 0;
  max-width: 36em;
  font-size: 14.5px;
  line-height: 1.78;
  color: var(--paper);
}
.page-faq .help__text + .help__text {
  margin-top: 8px;
}
.page-faq .help__text a {
  color: var(--signal);
  text-decoration: none;
  border-bottom: 1px solid rgba(76, 224, 122, 0.4);
}
.page-faq .help__text a:hover,
.page-faq .help__text a:focus-visible {
  border-bottom-color: var(--signal);
}

/* ---------- 图 ---------- */
.page-faq .tut-figure {
  margin: 26px 0 0;
}
.page-faq .tut-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--panel);
}
.page-faq .tut-figure figcaption {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

/* ---------- 断点 ---------- */
@media (min-width: 640px) {
  .page-faq .batch__row {
    grid-template-columns: 132px minmax(0, 1fr);
    align-items: baseline;
  }
}

@media (min-width: 720px) {
  .page-faq .tut-tables {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
  }
}

@media (min-width: 1000px) {
  .page-faq .tut-layout {
    grid-template-columns: var(--tut-rail) minmax(0, 1fr);
    gap: clamp(36px, 4.5vw, 72px);
    align-items: start;
  }
  .page-faq .tut-rail {
    position: sticky;
    top: calc(var(--head-h) + 26px);
    max-height: calc(100vh - var(--head-h) - 52px);
    overflow-y: auto;
  }
  .page-faq .tut-rail__list {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }
  .page-faq .tut-section__head {
    margin-bottom: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-faq .lite--live::before {
    animation: none;
    opacity: 1;
  }
  .page-faq .steps__note,
  .page-faq .tut-rail__list a,
  .page-faq .cat-list__item,
  .page-faq .crumbs a {
    transition: none;
  }
}
