:root {
  --navy: #1a365d;
  --gold: #c9a227;
  --offwhite: #f7f4ea;
  --text: #1c2333;
  --line: #d5cdae;
  --paper: #fffdf6;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: auto;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--text);
  background: var(--offwhite);
  line-height: 1.75;
  font-size: 16px;
}

a {
  color: var(--navy);
  text-decoration: none;
}

a:hover {
  color: var(--gold);
}

.sidebar {
  position: fixed;
  left: 0;
  top: 0;
  width: 240px;
  height: 100vh;
  background: var(--navy);
  color: #f3efe2;
  padding: 28px 0 20px;
  z-index: 20;
  overflow-y: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 22px 24px;
  border-bottom: 1px solid rgba(201, 162, 39, 0.35);
  font-size: 18px;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #f7f4ea;
}

.brand svg {
  flex-shrink: 0;
}

.nav-rail {
  display: flex;
  flex-direction: column;
  margin-top: 18px;
}

.nav-rail a {
  color: #e8e2cf;
  padding: 12px 22px;
  border-left: 3px solid transparent;
  font-size: 15px;
}

.nav-rail a:hover {
  color: var(--gold);
  background: rgba(201, 162, 39, 0.08);
}

.nav-rail a.current {
  color: var(--gold);
  border-left-color: var(--gold);
  background: rgba(201, 162, 39, 0.12);
  font-weight: 700;
}

.rail-note {
  margin: 28px 22px 0;
  font-size: 12px;
  line-height: 1.6;
  color: #c9c2ae;
}

.main {
  margin-left: 240px;
  min-height: 100vh;
}

.hero {
  background: var(--paper);
  border-top: 3px solid var(--gold);
  padding: 48px 56px 40px;
}

.hero h1 {
  font-size: 28px;
  line-height: 1.4;
  color: var(--navy);
  margin-bottom: 18px;
  font-weight: 700;
}

.hero p {
  max-width: 760px;
  margin-bottom: 16px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-top: 22px;
  align-items: center;
}

.cta-fill {
  display: inline-block;
  background: var(--gold);
  color: var(--navy);
  padding: 10px 22px;
  font-weight: 700;
  border: none;
}

.cta-fill:hover {
  color: #0f2138;
  background: #d4b03a;
}

.cta-line {
  display: inline-block;
  border: 1px solid var(--navy);
  color: var(--navy);
  padding: 9px 18px;
}

.wrap {
  padding: 8px 56px 48px;
  max-width: 1080px;
}

.block {
  padding: 36px 0 8px;
}

.block h2 {
  font-size: 22px;
  color: var(--navy);
  margin: 8px 0 16px;
  line-height: 1.45;
}

.ord {
  display: block;
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.16em;
  font-weight: 700;
}

.block p {
  margin-bottom: 14px;
}

.twin {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 28px;
  margin: 18px 0 8px;
}

.slab {
  border-left: 4px solid var(--navy);
  padding: 4px 0 4px 16px;
  background: transparent;
}

.slab h3 {
  font-size: 16px;
  color: var(--navy);
  margin-bottom: 8px;
}

.sheet {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 12px;
  font-size: 15px;
}

.sheet th {
  background: var(--navy);
  color: #ffffff;
  text-align: left;
  padding: 10px 12px;
  font-weight: 600;
}

.sheet td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  vertical-align: top;
}

.dl-box {
  margin: 18px 0;
  padding: 16px 0 4px;
}

.dl-box a {
  display: inline-block;
  margin: 0 14px 10px 0;
  font-weight: 700;
}

.faq-list {
  margin-top: 8px;
}

.faq-row {
  border: 1px solid var(--line);
  border-bottom: none;
  background: var(--paper);
  padding: 14px 18px 14px 48px;
  position: relative;
}

.faq-list .faq-row:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-row dt {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.faq-row dt::before {
  content: "Q";
  position: absolute;
  left: 16px;
  top: 14px;
  color: var(--gold);
  font-weight: 700;
  font-size: 15px;
}

.faq-row dd {
  color: var(--text);
}

.site-foot {
  margin: 28px 56px 40px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: #4a5160;
  max-width: 960px;
}

.site-foot p {
  margin-bottom: 8px;
}

.site-foot nav a {
  margin-right: 16px;
}

@media (max-width: 900px) {
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    padding: 16px 0 10px;
  }

  .brand {
    padding: 0 16px 12px;
  }

  .nav-rail {
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 8px;
  }

  .nav-rail a {
    padding: 8px 14px;
    border-left: none;
    border-bottom: 3px solid transparent;
  }

  .nav-rail a.current {
    border-left-color: transparent;
    border-bottom-color: var(--gold);
  }

  .rail-note {
    display: none;
  }

  .main {
    margin-left: 0;
  }

  .hero,
  .wrap {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero {
    padding-top: 28px;
    padding-bottom: 24px;
  }

  .hero h1 {
    font-size: 22px;
  }

  .twin {
    grid-template-columns: 1fr;
  }

  .site-foot {
    margin: 12px 20px 28px;
  }
}
