:root {
  --ink: #1c1916;
  --muted: #6d655c;
  --paper: #f3eee7;
  --card: #fbf8f3;
  --line: #e4dacd;
  --green: #1b3f35;
  --green-2: #24564a;
  --brass: #8d6b3a;
  --danger: #8a3530;
  --shadow: 0 18px 50px rgba(48, 36, 22, 0.06);
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(900px 420px at 0% -10%, rgba(141, 107, 58, 0.08), transparent 55%),
    var(--paper);
}

a { color: inherit; }

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 7vw;
  color: #f7f3ec;
  background: #161411;
}

.brand {
  color: inherit;
  font-family: Palatino, "Palatino Linotype", "Songti SC", "STSong", "PMingLiU", serif;
  font-size: 22px;
  letter-spacing: 0.18em;
  text-decoration: none;
}

nav {
  display: flex;
  gap: 18px;
  align-items: center;
  font-size: 14px;
}

nav a, button.link {
  color: #f7f3ec;
  background: none;
  border: 0;
  padding: 0;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
}

main {
  width: min(1080px, calc(100% - 36px));
  margin: 28px auto 64px;
}

.hero {
  padding: 28px 8px 10px;
}

.kicker {
  margin: 0 0 8px;
  color: var(--brass);
  font-size: 13px;
  letter-spacing: 0.16em;
}

h1, h2, .price {
  font-family: Palatino, "Palatino Linotype", "Songti SC", "STSong", "PMingLiU", serif;
  font-weight: 500;
}

h1 { font-size: 64px; line-height: 1; margin: 0 0 14px; letter-spacing: 0.06em; }
h2 { font-size: 28px; margin: 0 0 12px; }
.lede { max-width: 38em; font-size: 18px; line-height: 1.7; color: var(--muted); }
.muted { color: var(--muted); line-height: 1.6; }
.fine { color: var(--muted); font-size: 13px; line-height: 1.6; }

.actions, .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.narrow { max-width: 440px; margin: 24px auto; }

label {
  display: block;
  margin: 14px 0;
  font-size: 14px;
}

input, textarea, button, select { font: inherit; }

input, textarea, select {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 14px;
  border: 1px solid #ddd3c6;
  border-radius: 12px;
  background: white;
  color: inherit;
}

textarea { min-height: 88px; resize: vertical; }

button, a.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 11px 18px;
  background: var(--green);
  color: #f7f3ec;
  text-decoration: none;
  cursor: pointer;
}

a.button.ghost, button.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid #cfc3b2;
}

button.danger { background: var(--danger); }

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--green-2);
  outline-offset: 2px;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.plan {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 22px 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 280px;
}

.plan.chosen { border-color: #c4a574; }

.price {
  font-size: 56px;
  line-height: 0.95;
  margin: 10px 0;
}

.price span {
  margin-left: 6px;
  font-family: "Segoe UI", "PingFang SC", sans-serif;
  font-size: 14px;
  letter-spacing: 0;
  color: var(--muted);
}

.quota { margin: 0 0 8px; font-size: 18px; }

.plan form, .plan .button { margin-top: auto; }

.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 18px 0 0;
}

.facts div, .lines li {
  background: #f6f1e8;
  border-radius: 12px;
  padding: 12px;
}

.lines { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 12px 0 0; list-style: none; }
.lines li { padding: 8px 12px; }

dt { color: var(--muted); font-size: 13px; }
dd { margin: 4px 0 0; }

.qr {
  width: 168px;
  height: 168px;
  background: white;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.notice {
  background: #f8f1e4;
  border-left: 3px solid var(--brass);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.notice p { margin: 6px 0; }
.contact { white-space: pre-wrap; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
code { font-family: Consolas, "Courier New", monospace; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px 12px;
  align-items: end;
}

details form, .inline { margin: 8px 0; }
details input, details select, .inline input, .inline select {
  max-width: 180px;
  display: inline-block;
  width: auto;
  margin: 0 6px 0 0;
}

.split { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 18px; align-items: start; }
.node { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }

@media (max-width: 800px) {
  h1 { font-size: 46px; }
  .plans, .facts, .split { grid-template-columns: 1fr; }
  .top { padding: 18px 18px; }
  .price { font-size: 46px; }
}
