* { box-sizing: border-box; }

:root {
  --bg: #f7f4ef;
  --card: #ffffff;
  --text: #3d2b1f;
  --muted: #7a6b5c;
  --border: #e0d6c8;
  --primary: #8b5a2b;
  --primary-hover: #6f4520;
  --primary-soft: #f3ebe0;
  --primary-deep: #5c3d1e;
  --accent-gradient: linear-gradient(125deg, #5c3d1e 0%, #8b5a2b 42%, #b8925a 100%);
  --shadow: 0 4px 24px rgba(61, 43, 31, 0.07);
  --radius-lg: 18px;
  --radius-md: 14px;
  --max-w: 820px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

.help-page {
  min-height: 100vh;
}

.help-header {
  background: var(--accent-gradient);
  color: #fff;
  padding: 28px 24px 32px;
  position: relative;
  overflow: hidden;
}

.help-header::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 96px;
  height: 96px;
  opacity: 0.15;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19.5A2.5 2.5 0 0 1 6.5 17H20'/%3E%3Cpath d='M6.5 2H20v20H6.5A2.5 2.5 0 0 1 4 19.5v-15A2.5 2.5 0 0 1 6.5 2z'/%3E%3Cpath d='M8 7h8M8 11h6'/%3E%3C/svg%3E") no-repeat center / contain;
  pointer-events: none;
}

.help-header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.help-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 0.88rem;
  margin-bottom: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  transition: background 0.15s;
}

.help-back:hover {
  background: rgba(255, 255, 255, 0.22);
  color: #fff;
}

.help-back svg {
  width: 16px;
  height: 16px;
}

.help-header h1 {
  margin: 0 0 8px;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.help-header p {
  margin: 0;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 36em;
}

.help-layout {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 28px 20px 48px;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 32px;
  align-items: start;
}

.help-nav {
  position: sticky;
  top: 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 14px;
  box-shadow: var(--shadow);
}

.help-nav h2 {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

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

.help-nav li + li {
  margin-top: 4px;
}

.help-nav a {
  display: block;
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
  transition: background 0.12s, color 0.12s;
}

.help-nav a:hover {
  background: var(--primary-soft);
  color: var(--primary-deep);
}

.help-main section {
  scroll-margin-top: 20px;
}

.help-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}

.help-card h2 {
  margin: 0 0 16px;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-deep);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-soft);
}

.help-card h3 {
  margin: 20px 0 10px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.help-card h3:first-of-type {
  margin-top: 0;
}

.help-card p {
  margin: 0 0 12px;
  color: var(--text);
}

.help-card ul,
.help-card ol {
  margin: 0 0 14px;
  padding-left: 1.25em;
}

.help-card li {
  margin: 6px 0;
}

.help-card li::marker {
  color: var(--primary);
}

.help-table-wrap {
  overflow-x: auto;
  margin: 12px 0 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

table.help-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.help-table th,
.help-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.help-table th {
  background: var(--primary-soft);
  color: var(--primary-deep);
  font-weight: 700;
  white-space: nowrap;
  width: 28%;
}

.help-table tr:last-child td,
.help-table tr:last-child th {
  border-bottom: none;
}

.help-table tbody tr:hover td {
  background: #faf8f5;
}

.help-steps {
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.help-steps li {
  position: relative;
  padding: 0 0 16px 44px;
  margin: 0;
  min-height: 36px;
}

.help-steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.help-tip {
  background: linear-gradient(155deg, #ebe3d6 0%, #f5efe6 100%);
  border: 1px solid #d8cbb8;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  margin: 16px 0 0;
  font-size: 0.92rem;
  color: var(--text);
}

.help-tip strong {
  color: var(--primary-deep);
}

.help-faq dt {
  font-weight: 700;
  color: var(--primary-deep);
  margin: 16px 0 6px;
}

.help-faq dt:first-child {
  margin-top: 0;
}

.help-faq dd {
  margin: 0 0 4px;
  padding-left: 0;
  color: var(--text);
}

.help-category {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 10px;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
}

.help-category:first-child {
  margin-top: 0;
}

.help-category-icon {
  font-size: 1.15rem;
  line-height: 1;
}

.help-footer {
  text-align: center;
  padding: 8px 20px 32px;
  color: var(--muted);
  font-size: 0.88rem;
}

.help-footer em {
  font-style: normal;
  color: var(--primary);
  font-weight: 600;
}

.help-contact {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.help-contact:hover {
  text-decoration: underline;
}

.help-advice-list {
  margin: 0;
  padding-left: 1.25em;
}

.help-advice-list li {
  margin: 10px 0;
}

.help-advice-list li::marker {
  color: var(--primary);
}

@media (max-width: 768px) {
  .help-layout {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px 16px 36px;
  }

  .help-nav {
    position: static;
  }

  .help-nav ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }

  .help-nav li + li {
    margin-top: 0;
  }

  .help-header h1 {
    font-size: 1.45rem;
  }

  .help-header::after {
    display: none;
  }

  .help-card {
    padding: 18px 16px;
  }

  .help-table th {
    white-space: normal;
    width: auto;
  }
}
