/* app.wpshc.com.cn · 时间轴手册 · 暖陶土 / 橄榄 */
html {
  scroll-behavior: auto;
}

:root {
  --paper: #f0e6d2;
  --paper-2: #e6d7bc;
  --paper-3: #f7f0e2;
  --ink: #241c14;
  --ink-soft: #4a4032;
  --mute: #6a5d4c;
  --clay: #b85a32;
  --clay-deep: #8a3c1e;
  --clay-soft: #d07a52;
  --olive: #4a5a2c;
  --olive-deep: #2e3a1a;
  --olive-soft: #6b7a45;
  --olive-wash: #dfe4c8;
  --line: #c9b48e;
  --line-strong: #a89068;
  --focus: #8a3c1e;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #d8c8a8 0, var(--paper) 28px, var(--paper) 100%);
  font-family: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 17px;
  line-height: 1.82;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--clay-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--clay);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: 12px;
  top: 12px;
  z-index: 20;
  background: var(--paper-3);
  color: var(--ink);
  padding: 0.4rem 0.7rem;
}

.site-header {
  background: var(--olive-deep);
  color: #f3ecd8;
  border-bottom: 6px solid var(--clay);
}

.header-bar {
  width: min(1120px, calc(100% - 1.6rem));
  margin: 0 auto;
  padding: 0.45rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: #d7ddc0;
}

.header-main {
  width: min(1120px, calc(100% - 1.6rem));
  margin: 0 auto;
  padding: 0.85rem 0 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1.2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #f3ecd8;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 1.15rem;
}

.brand:hover {
  color: #fff6e6;
}

.brand svg {
  flex-shrink: 0;
}

.brand small {
  display: block;
  font-weight: 500;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: #c9d1a8;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.nav a {
  display: inline-block;
  padding: 0.38rem 0.85rem;
  color: #d7ddc0;
  text-decoration: none;
  border: 1px solid transparent;
  font-size: 0.92rem;
}

.nav a:hover {
  color: #fff6e6;
  border-color: #7a8654;
}

.nav a.is-current,
.nav a[aria-current="page"] {
  color: #2e3a1a;
  background: #e8d7b4;
  border-color: #e8d7b4;
  font-weight: 700;
}

.shell {
  width: min(1120px, calc(100% - 1.6rem));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 0 1.1rem;
  padding: 1.1rem 0 2.4rem;
}

.chap-rail {
  position: sticky;
  top: 0.8rem;
  align-self: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 0.4rem 0 1rem;
}

.chap-rail::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 50%;
  width: 3px;
  margin-left: -1px;
  background: linear-gradient(180deg, var(--olive) 0, var(--clay) 100%);
  opacity: 0.55;
  z-index: 0;
}

.chap-rail a {
  position: relative;
  z-index: 1;
  width: 42px;
  height: 42px;
  margin: 0.28rem 0;
  border-radius: 50%;
  border: 2px solid var(--olive);
  background: var(--paper);
  color: var(--olive-deep);
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 4px var(--paper);
}

.chap-rail a:hover,
.chap-rail a:focus {
  background: var(--olive);
  color: #f3ecd8;
  border-color: var(--olive-deep);
}

.manual {
  min-width: 0;
}

.hero {
  background: var(--paper-3);
  border: 1px solid var(--line);
  border-left: 8px solid var(--clay);
  padding: 1.25rem 1.25rem 1.15rem 1.35rem;
  margin: 0 0 1.15rem;
}

.hero-kicker {
  margin: 0 0 0.4rem;
  color: var(--clay-deep);
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  font-weight: 700;
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.45rem, 3vw, 1.95rem);
  line-height: 1.42;
  color: var(--olive-deep);
}

.hero p,
.chapter p {
  margin: 0 0 0.85rem;
}

.hero-meta {
  color: var(--mute);
  font-size: 0.9rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.8rem;
  margin: 0.95rem 0 0.15rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.58rem 1.05rem;
  background: var(--clay);
  color: #fff8ef;
  text-decoration: none;
  border: 1px solid var(--clay-deep);
  font-weight: 700;
  font-size: 0.95rem;
}

.btn:hover {
  background: var(--clay-deep);
  color: #fff8ef;
}

.btn-ghost {
  background: transparent;
  color: var(--olive-deep);
  border-color: var(--olive);
}

.btn-ghost:hover {
  background: var(--olive-wash);
  color: var(--olive-deep);
}

.btn svg {
  flex-shrink: 0;
}

.note {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.chapter {
  position: relative;
  padding: 0.15rem 0 0.35rem 0.15rem;
  margin: 0 0 1.35rem;
  border-top: 1px dashed var(--line);
}

.chapter:first-of-type {
  border-top: 0;
}

.ch-num {
  display: inline-block;
  margin: 1rem 0 0.35rem;
  padding: 0.12rem 0.55rem;
  background: var(--olive);
  color: #f3ecd8;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.chapter h2 {
  margin: 0 0 0.75rem;
  font-size: 1.22rem;
  line-height: 1.48;
  color: var(--olive-deep);
}

.chapter h3 {
  margin: 1.05rem 0 0.45rem;
  font-size: 1.02rem;
  color: var(--clay-deep);
}

.rule-box {
  margin: 0.85rem 0 1rem;
  padding: 0.75rem 0.9rem 0.25rem;
  background: var(--olive-wash);
  border: 1px solid #b7c18a;
}

.rule-box p:last-child {
  margin-bottom: 0.7rem;
}

.table-wrap {
  overflow-x: auto;
  margin: 0.85rem 0 1rem;
  border: 1px solid var(--line-strong);
  background: var(--paper-3);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}

th,
td {
  padding: 0.58rem 0.7rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #d7ddc0;
  color: var(--olive-deep);
  font-weight: 700;
}

tr:last-child td {
  border-bottom: 0;
}

.dl-list {
  margin: 0.7rem 0 1rem;
  padding: 0;
  list-style: none;
}

.dl-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: start;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
}

.dl-list li:last-child {
  border-bottom: 0;
}

.dl-list h3 {
  margin: 0 0 0.25rem;
}

.dl-list p {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
}

.dl-list svg {
  margin-top: 0.15rem;
  color: var(--olive);
}

.steps {
  margin: 0.55rem 0 1rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 0.45rem 0 0.65rem 2.4rem;
  border-bottom: 1px dashed var(--line);
}

.steps li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 1.85rem;
  color: var(--clay-deep);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.review {
  margin: 0 0 0.85rem;
  padding: 0.75rem 0.9rem 0.2rem;
  background: var(--paper-3);
  border-left: 5px solid var(--clay);
}

.review .byline {
  color: var(--olive);
  font-size: 0.88rem;
}

.faq-item {
  margin: 0 0 0.95rem;
  padding: 0 0 0.15rem;
}

.faq-item h3 {
  margin: 0 0 0.4rem;
}

.faq-item p {
  margin: 0;
}

.cta-band {
  margin: 1rem 0 0.2rem;
  padding: 0.95rem 1.05rem;
  background: var(--olive-deep);
  color: #f3ecd8;
}

.cta-band p {
  color: #d7ddc0;
}

.cta-band .btn {
  background: var(--clay);
  border-color: #6e2c14;
}

.cta-band .btn-ghost {
  background: transparent;
  color: #f3ecd8;
  border-color: #c9d1a8;
}

.cta-band .btn-ghost:hover {
  background: #3d4c24;
  color: #fff6e6;
}

.site-footer {
  background: var(--olive-deep);
  color: #d7ddc0;
  padding: 1.15rem 0 1.35rem;
  border-top: 6px solid var(--clay);
}

.site-footer .wrap {
  width: min(1120px, calc(100% - 1.6rem));
  margin: 0 auto;
}

.site-footer p {
  margin: 0 0 0.45rem;
  font-size: 0.9rem;
}

.site-footer .safe {
  color: #f3ecd8;
  font-weight: 700;
}

.site-footer .legal {
  margin-bottom: 0;
}

@media (max-width: 820px) {
  .shell {
    grid-template-columns: 1fr;
    padding-top: 0.4rem;
  }

  .chap-rail {
    position: sticky;
    top: 0;
    z-index: 5;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    gap: 0.35rem;
    padding: 0.45rem 0 0.65rem;
    background: var(--paper);
  }

  .chap-rail::before {
    display: none;
  }

  .chap-rail a {
    margin: 0;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    box-shadow: none;
  }

  .dl-list li {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .dl-list .btn,
  .dl-list .btn-ghost {
    grid-column: 2;
    justify-self: start;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 16px;
  }

  .hero,
  .chapter {
    padding-left: 0;
  }

  .cta-row .btn,
  .cta-row .btn-ghost {
    width: 100%;
    justify-content: center;
  }
}
