/* ============================================================
   Help Center · Swiss Engineer Style (2026-04)
   作用域：body.page-help
   ============================================================ */

body.page-help {
  background: var(--sw-bg);
  background-image:
    linear-gradient(var(--sw-line-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--sw-line-grid) 1px, transparent 1px);
  background-size: var(--sw-grid-cell) var(--sw-grid-cell);
  color: var(--sw-ink);
  font-family: var(--sw-sans);
}

body.page-help .container {
  max-width: 960px;
  margin: 0 auto;
}

body.page-help .section-kicker {
  font-family: var(--sw-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sw-accent);
  margin: 0 0 12px;
}
body.page-help .section-kicker-dash {
  color: var(--sw-ink);
  font-weight: 700;
  margin-right: 6px;
}

/* ---------- Hero ---------- */
body.page-help .help-hero {
  padding: clamp(56px, 9vh, 104px) clamp(20px, 4vw, 48px) 32px;
}
body.page-help .help-hero-title {
  font-size: clamp(32px, 4.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 12px;
}
body.page-help .hero-accent {
  color: var(--sw-accent);
}
body.page-help .help-hero-sub {
  font-size: 15px;
  color: var(--sw-ink-soft);
  margin: 0 0 32px;
  line-height: 1.7;
}
body.page-help .help-hero-link {
  color: var(--sw-ink);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--sw-accent);
  text-underline-offset: 4px;
}
body.page-help .help-hero-link:hover {
  color: var(--sw-accent);
}

/* ---------- TOC ---------- */
body.page-help .help-toc {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  border: 1px solid var(--sw-ink);
  background: #fff;
}
body.page-help .help-toc-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 14px;
  text-decoration: none;
  color: var(--sw-ink);
  border-right: 1px solid var(--sw-line-soft);
  transition: background var(--transition-fast);
}
body.page-help .help-toc-item:last-child {
  border-right: none;
}
body.page-help .help-toc-item:hover {
  background: var(--sw-bg);
}
body.page-help .help-toc-num {
  font-family: var(--sw-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  color: var(--sw-accent);
  font-weight: 700;
}
body.page-help .help-toc-label {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

@media (max-width: 800px) {
  body.page-help .help-toc {
    grid-template-columns: repeat(2, 1fr);
  }
  body.page-help .help-toc-item {
    border-bottom: 1px solid var(--sw-line-soft);
  }
  body.page-help .help-toc-item:nth-child(2n) {
    border-right: none;
  }
  body.page-help .help-toc-item:nth-last-child(-n+1) {
    border-bottom: none;
  }
}

/* ---------- Section ---------- */
body.page-help .help-section {
  padding: clamp(48px, 6vw, 80px) clamp(20px, 4vw, 48px);
  scroll-margin-top: 24px;
}
body.page-help .help-section-head {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 18px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--sw-ink);
}
body.page-help .help-section-num {
  grid-row: 1 / span 2;
  font-family: var(--sw-mono);
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--sw-accent);
  line-height: 1;
  align-self: start;
  padding-top: 4px;
}
body.page-help .help-section-title {
  grid-column: 2;
  grid-row: 1;
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 4px;
}
body.page-help .help-section-sub {
  grid-column: 2;
  grid-row: 2;
  font-size: 14px;
  color: var(--sw-ink-soft);
  margin: 0;
  line-height: 1.6;
}

/* ---------- FAQ list ---------- */
body.page-help .help-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
body.page-help .help-faq {
  background: #fff;
  border: 1px solid var(--sw-ink);
}
body.page-help .help-faq-q {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  background: transparent;
  border: none;
  padding: 16px 20px;
  font-family: var(--sw-sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--sw-ink);
  text-align: left;
  cursor: pointer;
  line-height: 1.5;
}
body.page-help .help-faq-q:focus-visible {
  outline: 2px solid var(--sw-accent);
  outline-offset: -2px;
}
body.page-help .help-faq-q-mark {
  font-family: var(--sw-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--sw-accent);
  font-weight: 700;
  padding: 4px 8px;
  border: 1px solid var(--sw-line-soft);
  flex-shrink: 0;
}
body.page-help .help-faq-q-text {
  min-width: 0;
}
body.page-help .help-faq-icon {
  font-family: var(--sw-mono);
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  color: var(--sw-accent);
  transition: transform var(--transition-fast);
  flex-shrink: 0;
}
body.page-help .help-faq.active .help-faq-icon {
  transform: rotate(45deg);
}
body.page-help .help-faq-a {
  display: none;
  padding: 4px 20px 20px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--sw-ink-soft);
  border-top: 1px dashed var(--sw-line-soft);
  margin: 0 20px;
}
body.page-help .help-faq.active .help-faq-a {
  display: block;
}
body.page-help .help-faq-a p {
  margin: 12px 0;
}
body.page-help .help-faq-a p:first-child {
  margin-top: 14px;
}
body.page-help .help-faq-a p:last-child {
  margin-bottom: 0;
}
body.page-help .help-faq-a strong {
  color: var(--sw-ink);
  font-weight: 700;
}
body.page-help .help-faq-a a {
  color: var(--sw-ink);
  text-decoration: underline;
  text-decoration-color: var(--sw-accent);
  text-underline-offset: 3px;
}
body.page-help .help-faq-a a:hover {
  color: var(--sw-accent);
}
body.page-help .help-faq-a code {
  font-family: var(--sw-mono);
  font-size: 13px;
  background: var(--sw-bg);
  padding: 2px 6px;
  border: 1px solid var(--sw-line-soft);
  white-space: nowrap;
}
body.page-help .help-faq-a kbd {
  font-family: var(--sw-mono);
  font-size: 12px;
  background: var(--sw-bg);
  padding: 2px 6px;
  border: 1px solid var(--sw-ink);
  border-bottom-width: 2px;
  font-weight: 700;
}

/* ---------- Step / bullet list ---------- */
body.page-help .help-step-list,
body.page-help .help-bullet-list {
  margin: 12px 0;
  padding-left: 0;
  list-style: none;
  counter-reset: step;
}
body.page-help .help-step-list li,
body.page-help .help-bullet-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 8px;
  line-height: 1.7;
}
body.page-help .help-step-list li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 1px;
  font-family: var(--sw-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--sw-accent);
  letter-spacing: 0.05em;
}
body.page-help .help-bullet-list li::before {
  content: "›";
  position: absolute;
  left: 4px;
  top: 0;
  color: var(--sw-accent);
  font-family: var(--sw-mono);
  font-weight: 700;
}

/* ---------- Tables ---------- */
body.page-help .help-table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--sw-ink);
  background: #fff;
}
body.page-help .help-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--sw-sans);
  font-size: 13px;
}
body.page-help .help-table th,
body.page-help .help-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid #ededed;
}
body.page-help .help-table th {
  font-family: var(--sw-mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  background: #f5f5f3;
  color: var(--sw-ink-soft);
  font-weight: 700;
  border-bottom: 1px solid var(--sw-ink);
}
body.page-help .help-table tr:last-child td {
  border-bottom: none;
}
body.page-help .help-faq-a .help-table {
  margin: 12px 0;
  border: 1px solid var(--sw-line-soft);
}
body.page-help .help-link-table td a {
  font-family: var(--sw-mono);
  font-size: 12px;
  color: var(--sw-ink);
  text-decoration: underline;
  text-decoration-color: var(--sw-accent);
  text-underline-offset: 3px;
  word-break: break-all;
}
body.page-help .help-link-table td a:hover {
  color: var(--sw-accent);
}

/* ---------- Links section ---------- */
body.page-help .help-links {
  padding: clamp(48px, 6vw, 80px) clamp(20px, 4vw, 48px);
}

/* ---------- CTA ---------- */
body.page-help .help-cta {
  background: var(--sw-ink);
  color: #fff;
  padding: clamp(56px, 7vw, 88px) clamp(20px, 4vw, 48px);
  text-align: left;
}
body.page-help .help-cta .section-kicker {
  color: var(--sw-accent);
}
body.page-help .help-cta .section-kicker-dash {
  color: #fff;
}
body.page-help .help-cta h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  color: #fff;
}
body.page-help .help-cta-sub {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  margin: 0 0 28px;
  line-height: 1.6;
}
body.page-help .help-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
body.page-help .help-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--sw-sans);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition-fast), color var(--transition-fast);
  border: 1px solid #fff;
}
body.page-help .help-cta-primary {
  background: #fff;
  color: var(--sw-ink);
}
body.page-help .help-cta-primary:hover {
  background: var(--sw-bg);
}
body.page-help .help-cta-secondary {
  background: transparent;
  color: #fff;
}
body.page-help .help-cta-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}
