:root {
  --canvas: #f3f4f6;
  --paper: #ffffff;
  --pale: #eef0f3;
  --ink: #1c1917;
  --muted: #57534e;
  --line: #d6d3d1;
  --accent: #c2410c;
  --accent-dark: #9a3412;
  --accent-soft: #ffedd5;
  --rail-w: 252px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.8;
  font-size: 16px;
}

img {
  max-width: 100%;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-dark);
  text-decoration: underline;
}

.workshop {
  display: flex;
  align-items: flex-start;
  max-width: 1240px;
  margin: 0 auto;
  min-height: 100vh;
}

.rail {
  position: sticky;
  top: 0;
  width: var(--rail-w);
  flex: 0 0 var(--rail-w);
  height: 100vh;
  overflow-y: auto;
  background: var(--paper);
  border-right: 1px solid var(--line);
  padding: 22px 18px 28px;
  z-index: 30;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
  color: inherit;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  display: block;
  flex-shrink: 0;
}

.brand-text {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--ink);
}

.rail-kicker {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.rail-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 22px;
}

.rail-nav a {
  display: block;
  padding: 8px 10px;
  color: var(--ink);
  border-left: 3px solid transparent;
  text-decoration: none;
  font-size: 15px;
}

.rail-nav a:hover {
  background: var(--accent-soft);
  color: var(--accent-dark);
  text-decoration: none;
}

.rail-nav a.is-current {
  border-left-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

.toc-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.toc {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.toc a {
  display: block;
  padding: 6px 8px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
  text-decoration: none;
  border-radius: 2px;
}

.toc a:hover {
  color: var(--accent);
  background: var(--pale);
  text-decoration: none;
}

.paper {
  flex: 1;
  min-width: 0;
  background: var(--paper);
  box-shadow: 0 0 0 1px #e7e5e4;
}

.hero {
  background:
    linear-gradient(180deg, #fff7ed 0%, #ffffff 58%),
    repeating-linear-gradient(
      90deg,
      transparent,
      transparent 47px,
      #f5e6d8 47px,
      #f5e6d8 48px
    );
  border-bottom: 1px solid var(--line);
  padding: 40px 44px 28px;
}

.hero-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
  border: 1px solid #fdba74;
  background: #fff7ed;
  padding: 3px 10px;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: 30px;
  line-height: 1.35;
  font-weight: 700;
  margin-bottom: 16px;
  color: #1c1917;
}

.hero-lead {
  font-size: 16px;
  color: var(--muted);
  max-width: 46em;
  margin-bottom: 14px;
}

.hero-meta {
  font-size: 13px;
  color: #78716c;
  margin-bottom: 22px;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid #e7e5e4;
  background: #fff;
}

.stat {
  padding: 14px 16px;
  border-right: 1px solid #e7e5e4;
}

.stat:last-child {
  border-right: none;
}

.stat-num {
  display: block;
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.2;
}

.stat-cap {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.sec {
  padding: 36px 44px 40px;
  border-bottom: 1px solid var(--line);
}

.sec--white {
  background: #ffffff;
}

.sec--pale {
  background: #f7f7f8;
}

.sec h2 {
  font-size: 22px;
  line-height: 1.4;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--accent);
  display: inline-block;
  max-width: 100%;
}

.sec h3 {
  font-size: 17px;
  margin: 22px 0 10px;
  color: #292524;
}

.sec p {
  margin-bottom: 14px;
  color: #292524;
}

.sec ul,
.sec ol {
  margin: 0 0 16px 1.4em;
}

.sec li {
  margin-bottom: 8px;
}

.dl-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  padding: 12px 22px;
  font-weight: 700;
  text-decoration: none !important;
  border: 1px solid var(--accent-dark);
}

.dl-btn:hover {
  background: var(--accent-dark);
}

.dl-btn.is-loading {
  opacity: 0.82;
}

.cta-btn {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  padding: 12px 22px;
  font-weight: 700;
  text-decoration: none !important;
  border: 1px solid var(--accent-dark);
}

.cta-btn:hover {
  background: var(--accent-dark);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 18px 0 8px;
}

.btn-note {
  font-size: 13px;
  color: var(--muted);
}

.cta-block {
  margin-top: 20px;
  padding: 18px 20px;
  border: 1px solid #fdba74;
  background: #fff7ed;
}

.cta-block p {
  margin-bottom: 12px;
}

.table-wrap {
  overflow-x: auto;
  margin: 16px 0 20px;
}

table.compare {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 14px;
}

table.compare th,
table.compare td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

table.compare th {
  background: #fff7ed;
  color: var(--accent-dark);
  font-weight: 700;
}

table.compare tr:nth-child(even) td {
  background: #fafaf9;
}

.quote {
  border-left: 4px solid var(--accent);
  background: #fff;
  padding: 14px 18px 12px;
  margin: 0 0 16px;
}

.quote p {
  margin-bottom: 8px;
}

.quote footer {
  font-size: 13px;
  color: var(--muted);
  border: 0;
  padding: 0;
  background: none;
}

.faq-list {
  margin-top: 8px;
}

.faq-list dt {
  font-weight: 700;
  margin: 18px 0 8px;
  color: #1c1917;
}

.faq-list dd {
  margin: 0 0 6px;
  color: #292524;
}

.site-footer {
  background: #1c1917;
  color: #e7e5e4;
  padding: 28px 44px 36px;
  font-size: 13px;
  line-height: 1.7;
}

.site-footer p {
  margin-bottom: 10px;
  color: #e7e5e4;
}

.site-footer a {
  color: #fdba74;
}

.foot-safe {
  padding: 10px 12px;
  background: #292524;
  border-left: 3px solid var(--accent);
  margin-bottom: 14px;
}

@media (max-width: 920px) {
  .workshop {
    flex-direction: column;
  }

  .rail {
    position: sticky;
    top: 0;
    width: 100%;
    flex-basis: auto;
    height: auto;
    overflow: visible;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 12px 16px 10px;
  }

  .rail-kicker {
    display: none;
  }

  .rail-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
  }

  .rail-nav a {
    border-left: none;
    border-bottom: 3px solid transparent;
    padding: 6px 10px;
  }

  .rail-nav a.is-current {
    border-left: none;
    border-bottom-color: var(--accent);
  }

  .toc-label,
  .toc {
    display: none;
  }

  .hero,
  .sec,
  .site-footer {
    padding-left: 18px;
    padding-right: 18px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .stat-strip {
    grid-template-columns: 1fr;
  }

  .stat {
    border-right: none;
    border-bottom: 1px solid #e7e5e4;
  }

  .stat:last-child {
    border-bottom: none;
  }
}
