:root {
  color-scheme: dark;
  --bg: #0a1210;
  --panel: #10231d;
  --panel-soft: #152c25;
  --line: rgba(233, 224, 202, 0.16);
  --text: #ece6d6;
  --muted: #a8b5ac;
  --gold: #d8b15f;
  --gold-soft: #f0d58f;
  --red: #be4650;
  --green: #4e9a7b;
  font-family:
    "Trebuchet MS",
    "Gill Sans",
    "Segoe UI",
    "Microsoft YaHei",
    "PingFang SC",
    "Noto Sans CJK SC",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(ellipse at 50% -10%, rgba(55, 112, 86, 0.28), transparent 52%),
    var(--bg);
  line-height: 1.7;
}

a {
  color: var(--gold-soft);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(16px, 4vw, 52px);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 16, 13, 0.9);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 7px;
  color: var(--gold-soft);
  background: rgba(216, 177, 95, 0.1);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
}

.brand strong {
  display: block;
  color: var(--gold-soft);
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0.08em;
}

.brand small {
  color: var(--muted);
  font-size: 0.72rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: var(--muted);
  font-size: 0.82rem;
}

.site-header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-left: auto;
}

.site-lang-toggle {
  min-width: 52px;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid rgba(240, 213, 143, 0.48);
  border-radius: 6px;
  background: rgba(216, 177, 95, 0.08);
  color: var(--gold-soft);
  font: inherit;
  font-size: 0.76rem;
  cursor: pointer;
}

.site-lang-toggle:hover {
  border-color: var(--gold-soft);
  background: rgba(216, 177, 95, 0.14);
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--gold-soft);
}

.site-main {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 5vw, 70px) clamp(16px, 4vw, 34px);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

h1,
h2,
h3 {
  font-family:
    Georgia,
    "Times New Roman",
    "Songti SC",
    "STSong",
    serif;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.8rem);
  line-height: 1.08;
}

.lede {
  max-width: 760px;
  margin: 18px 0 0;
  color: #c7d0c9;
  font-size: clamp(0.95rem, 1.6vw, 1.12rem);
}

.article {
  margin-top: clamp(28px, 5vw, 56px);
}

.site-main > section:not(.cta) {
  margin-top: clamp(28px, 4vw, 42px);
}

.site-main > section:not(.cta) > h2 {
  margin: 0 0 12px;
  color: var(--gold-soft);
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
}

.article section {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.article section:first-child {
  border-top: 0;
  padding-top: 0;
}

.article h2 {
  margin: 0 0 10px;
  color: var(--gold-soft);
  font-size: clamp(1.35rem, 2.8vw, 1.9rem);
}

.article h3 {
  margin: 22px 0 8px;
  color: #d9e2dc;
  font-size: 1.05rem;
}

.article p {
  margin: 0 0 12px;
  color: #c7d0c9;
}

.article ul,
.article ol {
  margin: 0 0 14px;
  padding-left: 1.35rem;
  color: #c7d0c9;
}

.article li {
  margin: 5px 0;
}

.article strong {
  color: var(--text);
}

code {
  padding: 1px 5px;
  border: 1px solid rgba(240, 213, 143, 0.16);
  border-radius: 4px;
  background: rgba(240, 213, 143, 0.07);
  color: var(--gold-soft);
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 0.86em;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 0.84rem;
}

th,
td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--gold);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

td {
  color: #c7d0c9;
}

tr:last-child td {
  border-bottom: 0;
}

.note {
  padding: 12px 14px;
  border-left: 2px solid var(--gold);
  background: rgba(216, 177, 95, 0.07);
  color: #c7d0c9;
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding: 22px;
  border: 1px solid rgba(240, 213, 143, 0.28);
  border-radius: 10px;
  background:
    radial-gradient(ellipse at 0% 0%, rgba(78, 154, 123, 0.16), transparent 60%),
    var(--panel);
}

.cta h2 {
  margin: 0;
  font-size: 1.35rem;
}

.cta p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.84rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 18px;
  border: 1px solid var(--gold-soft);
  border-radius: 6px;
  color: #17130b;
  background: var(--gold-soft);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.guide-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.guide-link {
  display: block;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text);
  background: var(--panel);
  text-decoration: none;
}

.guide-link:hover {
  border-color: var(--gold);
}

.guide-link strong {
  display: block;
  color: var(--gold-soft);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
}

.guide-link span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.55;
}

.guide-footer {
  margin-top: 42px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
}

@media (max-width: 700px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header-actions {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    margin-left: 0;
  }

  .guide-list {
    grid-template-columns: 1fr;
  }

  .cta {
    align-items: flex-start;
    flex-direction: column;
  }
}
