:root {
  --bg: #f5f6fa;
  --surface: #ffffff;
  --surface-2: #fbfbfd;
  --text: #151821;
  --muted: rgba(21, 24, 33, 0.66);
  --line: rgba(21, 24, 33, 0.09);
  --brand: #ff7a1a;
  --brand-2: #ff9a22;
  --brand-soft: rgba(255, 122, 26, 0.12);
  --shadow: 0 18px 42px rgba(17, 24, 39, 0.08);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(circle at top, rgba(255, 154, 34, 0.16), transparent 28%),
    linear-gradient(180deg, #fff7ef 0, var(--bg) 200px);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

body {
  min-height: 100vh;
}

a {
  color: inherit;
}

a.inline-link {
  color: var(--brand);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 122, 26, 0.3);
}

a.inline-link:hover {
  border-bottom-color: rgba(255, 122, 26, 0.72);
}

.page {
  width: min(960px, calc(100vw - 24px));
  margin: 0 auto;
  padding: 20px 0 48px;
}

.hero {
  background: linear-gradient(135deg, #fff 0%, #fff8f1 54%, #ffe8d2 100%);
  border: 1px solid rgba(255, 122, 26, 0.14);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 24px 22px 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.logo {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.5px;
  box-shadow: 0 10px 24px rgba(255, 122, 26, 0.28);
}

.logo-image {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: cover;
  display: block;
  box-shadow: 0 10px 24px rgba(255, 122, 26, 0.2);
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-title {
  font-size: 15px;
  font-weight: 700;
}

.brand-subtitle {
  font-size: 12px;
  color: var(--muted);
}

.hero h1 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.12;
}

.hero p {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.75;
  color: var(--muted);
}

.meta {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: -10px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(21, 24, 33, 0.06);
  font-size: 13px;
  color: rgba(21, 24, 33, 0.78);
  margin: 0 10px 10px 0;
  white-space: nowrap;
}

.doc-nav {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: -10px;
}

.doc-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  background: rgba(21, 24, 33, 0.04);
  color: rgba(21, 24, 33, 0.72);
  border: 1px solid transparent;
  line-height: 1.35;
  margin: 0 10px 10px 0;
  max-width: 100%;
  text-align: center;
}

.doc-link.active {
  color: var(--brand);
  background: var(--brand-soft);
  border-color: rgba(255, 122, 26, 0.2);
}

.content {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 10px 28px rgba(17, 24, 39, 0.04);
  padding: 20px 18px;
}

.section h2 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.35;
}

.section p {
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
  color: rgba(21, 24, 33, 0.8);
}

.section p + p,
.section ul + p,
.section ol + p,
.section .subsection + .subsection {
  margin-top: 10px;
}

.subsection {
  margin-top: 12px;
  padding: 14px 14px 0;
  border-radius: 16px;
  background: var(--surface-2);
  border: 1px solid rgba(21, 24, 33, 0.05);
}

.subsection h3 {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.45;
}

.subsection p {
  padding-bottom: 14px;
}

.section ul,
.section ol {
  margin: 0;
  padding-left: 20px;
  color: rgba(21, 24, 33, 0.8);
}

.section li {
  font-size: 14px;
  line-height: 1.9;
}

.section li + li {
  margin-top: 6px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}

table.doc-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.doc-table th,
.doc-table td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.8;
  color: rgba(21, 24, 33, 0.8);
}

.doc-table th {
  background: #fff8f1;
  color: var(--text);
  font-weight: 700;
  white-space: nowrap;
}

.doc-table tr:last-child td {
  border-bottom: none;
}

.doc-table td strong {
  color: var(--text);
}

.note {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 122, 26, 0.08);
  color: rgba(21, 24, 33, 0.8);
  border: 1px solid rgba(255, 122, 26, 0.12);
  font-size: 13px;
  line-height: 1.8;
}

.footer {
  margin-top: 18px;
  padding: 16px 6px 0;
  text-align: center;
  font-size: 12px;
  color: rgba(21, 24, 33, 0.46);
}

@media (max-width: 640px) {
  .page {
    width: calc(100vw - 16px);
    padding-top: 8px;
  }

  .hero {
    border-radius: 22px;
    padding: 18px 16px 18px;
  }

  .section {
    border-radius: 18px;
    padding: 16px 14px;
  }

  .subsection {
    padding: 12px 12px 0;
  }
}
