:root {
  --paper: #FFFBF5;
  --leaf: #4A7C59;
  --sun: #E6B325;
  --ink: #2a2a24;
  --muted: #5e5a4e;
  --bar: #FFF8EA;
  --radius: 8px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: auto;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Songti SC", "Noto Serif SC", "SimSun", serif;
  font-size: 17px;
  line-height: 1.85;
}

svg {
  display: block;
}

a {
  color: var(--leaf);
  text-decoration: none;
}

a:hover {
  color: #2f553a;
}

.frame {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.masthead {
  background: var(--bar);
  border-bottom: 3px solid var(--sun);
}

.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--leaf);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand:hover {
  color: var(--leaf);
}

.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 16px;
}

.links a {
  color: var(--ink);
  font-size: 14px;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.hero {
  padding: 48px 0 20px;
  border-bottom: 1px solid #eadfc6;
}

.hero h1 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.3;
  max-width: 16em;
  margin-bottom: 16px;
}

.hero h1 span {
  box-shadow: inset 0 -8px 0 rgba(230, 179, 37, 0.45);
}

.hero p {
  max-width: 44em;
  font-size: 18px;
}

.day-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 28px 0 8px;
}

.day-strip article {
  padding: 18px 16px 20px;
  color: #1f241d;
  min-height: 120px;
}

.day-strip h3 {
  font-size: 16px;
  margin-bottom: 8px;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.day-strip p {
  font-size: 14px;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.tone-am { background: #E6B325; }
.tone-noon { background: #d5e4c8; }
.tone-pm { background: #4A7C59; color: #f7fff6; }
.tone-pm p,
.tone-pm h3 { color: #f7fff6; }
.tone-off { background: #8a6a14; color: #fff8e4; }
.tone-off p,
.tone-off h3 { color: #fff8e4; }

.chapter {
  padding: 42px 0 10px;
}

.chapter h2 {
  font-size: 26px;
  line-height: 1.4;
  border-left: 6px solid var(--sun);
  padding-left: 14px;
  margin-bottom: 16px;
}

.chapter p {
  margin-bottom: 14px;
  max-width: 46em;
}

.hour-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 20px 0 8px;
}

.hour-card {
  background: #fff;
  border: 1px solid #eadfc6;
  border-radius: var(--radius);
  padding: 16px;
}

.hour-card svg {
  margin-bottom: 10px;
}

.hour-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.hour-card p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.step-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 22px 0 10px;
}

.step-item {
  background: #fff;
  border: 1px solid #eadfc6;
  border-radius: var(--radius);
  padding: 18px 16px 16px;
  text-align: center;
}

.badge {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--leaf);
  color: #fff;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 700;
}

.step-item h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.step-item p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  text-align: left;
}

.pair-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 8px;
  background: #fff;
  border: 1px solid #eadfc6;
  border-radius: var(--radius);
  overflow: hidden;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.pair-table th,
.pair-table td {
  border-bottom: 1px solid #eadfc6;
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

.pair-table th {
  background: #eef5ea;
  color: var(--leaf);
}

.pair-table tr:last-child td {
  border-bottom: 0;
}

.faq-split {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 12px;
  border-top: 1px solid #eadfc6;
}

.faq-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid #eadfc6;
}

.faq-when {
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--leaf);
  font-weight: 700;
}

.faq-when small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  margin-top: 4px;
}

.faq-body h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.faq-body p {
  margin: 0;
  color: var(--muted);
}

.foot {
  background: var(--leaf);
  color: #eef6ea;
  padding: 36px 0 44px;
  margin-top: 36px;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

.foot p {
  margin-bottom: 10px;
  max-width: 48em;
}

@media (max-width: 900px) {
  .masthead-inner,
  .day-strip,
  .hour-grid,
  .step-row,
  .faq-row {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
  }

  .masthead-inner {
    align-items: flex-start;
  }

  .links {
    justify-content: flex-start;
  }
}
