:root {
  --ink: #1a1a1a;
  --ink-2: #3d3d3d;
  --muted: #6b6f76;
  --faint: #9aa0a6;
  --line: #e6e6e3;
  --line-2: #d5d5d1;
  --bg: #ffffff;
  --soft: #f8f8f6;
  --accent: #0f6e56;
  --accent-soft: #e6f4ef;
  --accent-line: #b6dcd0;
  --warn: #9a6412;
  --warn-soft: #fdf4e5;
  --radius: 10px;
  --max: 1060px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(180%) blur(8px);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 62px; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 15px; }
.brand:hover { text-decoration: none; }
.brand .mark {
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--accent); color: #fff;
  display: grid; place-items: center;
  font-size: 14px; font-weight: 500; letter-spacing: 0;
  line-height: 1; padding-bottom: 1px;
}
.brand small { display: block; font-size: 11px; color: var(--faint); font-weight: 400; line-height: 1.2; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--ink-2); font-size: 14px; padding: 6px 11px;
  border-radius: 7px; white-space: nowrap;
}
.nav a:hover { background: var(--soft); text-decoration: none; }
.nav a.active { color: var(--accent); background: var(--accent-soft); font-weight: 500; }
.nav a.cta { background: var(--accent); color: #fff; margin-left: 8px; }
.nav a.cta:hover { background: #0b5a46; }

/* hero */
.hero { padding: 68px 0 44px; border-bottom: 1px solid var(--line); }
.eyebrow {
  font-size: 12px; letter-spacing: 0.08em; color: var(--accent);
  text-transform: none; margin: 0 0 18px; font-weight: 500;
}
.hero h1 {
  font-size: 40px; line-height: 1.32; font-weight: 600;
  margin: 0 0 20px; letter-spacing: -0.5px;
}
.hero .lead { font-size: 16px; color: var(--muted); max-width: 640px; margin: 0 0 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 20px; border-radius: 8px; font-size: 14px;
  border: 1px solid var(--line-2); color: var(--ink); background: #fff;
  cursor: pointer; font-family: inherit; transition: 0.15s;
}
.btn:hover { border-color: var(--ink-2); text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: #0b5a46; border-color: #0b5a46; }

/* sections */
section { padding: 52px 0; }
section.tight { padding: 36px 0; }
.sec-head { margin-bottom: 28px; }
.sec-head h2 { font-size: 22px; font-weight: 600; margin: 0 0 8px; letter-spacing: -0.2px; }
.sec-head p { margin: 0; color: var(--muted); font-size: 14px; max-width: 680px; }

/* grid + card */
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  display: block; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px 22px; color: var(--ink);
  transition: 0.15s;
}
a.card:hover { border-color: var(--accent-line); text-decoration: none; }
.card h3 { font-size: 15px; font-weight: 600; margin: 0 0 6px; }
.card p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.65; }
.card .meta { font-size: 12px; color: var(--faint); margin-top: 12px; }
.card .idx {
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 11px; color: var(--faint); letter-spacing: 0.06em; margin-bottom: 10px;
}

/* price */
.price {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column;
}
.price.featured { border: 1.5px solid var(--accent); }
.price .name { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.price .amt { font-size: 26px; font-weight: 600; letter-spacing: -0.5px; margin: 8px 0 2px; }
.price .amt span { font-size: 13px; font-weight: 400; color: var(--muted); }
.price .amt .old {
  font-size: 14px; font-weight: 400; color: var(--faint); text-decoration: line-through;
  margin-right: 8px; vertical-align: 3px;
}
.price ul { list-style: none; padding: 0; margin: 16px 0 0; font-size: 13.5px; color: var(--ink-2); }
.price li { padding-left: 18px; position: relative; margin-bottom: 8px; line-height: 1.6; }
.price li::before {
  content: ""; position: absolute; left: 2px; top: 9px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent-line);
}
.badge {
  display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent); font-weight: 500;
  margin-left: 8px; vertical-align: 2px;
}

/* lists */
.checks { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.checks li { position: relative; padding-left: 24px; margin-bottom: 10px; color: var(--ink-2); }
.checks li::before {
  content: ""; position: absolute; left: 4px; top: 10px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}
.checks.no li::before { background: var(--faint); }

.tag {
  display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 5px;
  background: var(--soft); color: var(--muted); border: 1px solid var(--line);
  margin: 0 6px 6px 0;
}

/* qa */
.toolbar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
  margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid var(--line);
}
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button {
  font-family: inherit; font-size: 13px; padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--line-2); background: #fff; color: var(--ink-2); cursor: pointer;
}
.filters button:hover { border-color: var(--ink-2); }
.filters button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.search {
  flex: 1; min-width: 180px; padding: 7px 12px; font-size: 13px;
  border: 1px solid var(--line-2); border-radius: 7px; font-family: inherit; color: var(--ink);
}
.search:focus { outline: none; border-color: var(--accent); }

.qa { border-bottom: 1px solid var(--line); }
.qa summary {
  cursor: pointer; padding: 16px 0; list-style: none;
  display: flex; gap: 14px; align-items: flex-start;
  font-size: 15px; font-weight: 500;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+"; margin-left: auto; color: var(--faint);
  font-size: 18px; line-height: 1; flex-shrink: 0; padding-left: 12px;
}
.qa[open] summary::after { content: "\2212"; }
.qa summary .num {
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 12px; color: var(--faint); padding-top: 4px; flex-shrink: 0;
}
.qa-body { padding: 0 0 22px 34px; font-size: 14px; color: var(--ink-2); }
.qa-body p { margin: 0 0 12px; }
.qa-body ul { margin: 0 0 12px; padding-left: 20px; }
.qa-body li { margin-bottom: 6px; line-height: 1.7; }
.qa-body .kicker {
  font-size: 12px; color: var(--accent); font-weight: 500;
  margin: 16px 0 6px; letter-spacing: 0.02em;
}
.qa-body .kicker:first-child { margin-top: 4px; }

/* guide */
.phase {
  display: grid; grid-template-columns: 92px 1fr; gap: 24px;
  padding: 26px 0; border-bottom: 1px solid var(--line);
}
.phase:last-of-type { border-bottom: none; }
.phase .ph {
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 12px; color: var(--accent); padding-top: 3px; letter-spacing: 0.04em;
}
.phase h3 { font-size: 16px; font-weight: 600; margin: 0 0 8px; }
.phase p { margin: 0 0 12px; font-size: 14px; color: var(--ink-2); }
.phase .row { font-size: 13.5px; margin: 0 0 8px; color: var(--ink-2); }
.phase .row b { color: var(--ink); font-weight: 500; }

.pit {
  background: var(--warn-soft); border: 1px solid #f0dcb8; border-radius: var(--radius);
  padding: 18px 22px; margin: 24px 0 0;
}
.pit h4 { margin: 0 0 10px; font-size: 13px; font-weight: 600; color: var(--warn); letter-spacing: 0.02em; }
.pit ol { margin: 0; padding-left: 20px; font-size: 13.5px; color: var(--ink-2); }
.pit li { margin-bottom: 7px; line-height: 1.65; }

/* note */
.note {
  background: var(--soft); border-left: 3px solid var(--accent-line);
  padding: 16px 20px; font-size: 13.5px; color: var(--ink-2);
  border-radius: 0 8px 8px 0; margin: 24px 0;
}

/* faq */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 15px 0; font-size: 14.5px; font-weight: 500;
  list-style: none; display: flex;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; color: var(--faint); }
.faq details[open] summary::after { content: "\2212"; }
.faq p { margin: 0 0 18px; font-size: 14px; color: var(--muted); max-width: 760px; }

/* form */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 13px; color: var(--ink-2); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 14px; padding: 9px 12px;
  border: 1px solid var(--line-2); border-radius: 7px; color: var(--ink);
  background: #fff; width: 100%;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
}
.out { margin-top: 10px; display: none; }
.out.show { display: block; }
.out-title {
  font-size: 13px; font-weight: 500; color: var(--accent); margin-bottom: 8px;
}
.out-text {
  padding: 14px 16px; background: var(--soft); border: 1px solid var(--line);
  border-radius: 8px; font-size: 13px; color: var(--ink-2);
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  white-space: pre-wrap; line-height: 1.7;
}
.out-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; }

/* footer */
.site-footer {
  border-top: 1px solid var(--line); padding: 32px 0 48px;
  font-size: 13px; color: var(--faint);
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; }
.site-footer a { color: var(--muted); }

/* table */
.tbl {
  width: 100%; border-collapse: collapse; font-size: 14px;
  margin: 4px 0 8px; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
}
.tbl thead th {
  text-align: left; padding: 11px 14px; font-size: 12px; font-weight: 500;
  color: var(--muted); background: var(--soft);
  border-bottom: 1px solid var(--line); white-space: nowrap;
}
.tbl td {
  text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line);
  color: var(--ink-2); line-height: 1.6; vertical-align: top;
}
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl td:first-child { font-weight: 500; color: var(--ink); white-space: nowrap; }
.tbl-scroll { overflow-x: auto; }

/* update bar */
.update-bar {
  background: var(--accent-soft);
  border-bottom: 1px solid var(--accent-line);
  font-size: 12.5px;
  color: #2c5b4e;
}
.update-bar .wrap {
  display: flex; align-items: center; gap: 8px;
  min-height: 34px; flex-wrap: wrap; padding-top: 4px; padding-bottom: 4px;
}
.update-bar b { font-weight: 600; }
.update-bar a { margin-left: auto; color: var(--accent); font-size: 12.5px; white-space: nowrap; }
.update-bar .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  flex-shrink: 0; animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}

/* code block */
.code {
  margin: 10px 0 16px; padding: 14px 16px;
  background: #fbfbf9; border: 1px solid var(--line);
  border-radius: 8px; overflow-x: auto;
  font-family: ui-monospace, "SF Mono", Consolas, monospace;
  font-size: 12.5px; line-height: 1.8; color: var(--ink-2);
  white-space: pre;
}

/* comments */
.comments { border-top: 1px solid var(--line); background: var(--soft); }
.comments .sec-head h2 { font-size: 20px; }
.cform { margin: 0 0 20px; }
.cform .row2 { display: grid; grid-template-columns: 180px 1fr; gap: 12px; align-items: end; }
.cform input[type="text"], .cform textarea {
  font-family: inherit; font-size: 14px; padding: 9px 12px;
  border: 1px solid var(--line-2); border-radius: 7px;
  background: #fff; color: var(--ink); width: 100%;
}
.cform textarea { min-height: 96px; resize: vertical; margin-top: 12px; }
.cform input:focus, .cform textarea:focus { outline: none; border-color: var(--accent); }
.cform .acts { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; }
.c-tip { font-size: 12.5px; color: var(--muted); }
.c-list { border-top: 1px solid var(--line); }
.c-item { padding: 16px 0; border-bottom: 1px solid var(--line); }
.c-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.c-head b { font-size: 13.5px; font-weight: 600; }
.c-time { font-size: 12px; color: var(--faint); font-family: ui-monospace, Consolas, monospace; }
.c-body { margin: 0; font-size: 14px; color: var(--ink-2); white-space: pre-wrap; word-break: break-word; }
.c-empty { font-size: 13.5px; color: var(--faint); margin: 18px 0; }

/* misc */
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: ui-monospace, "SF Mono", Consolas, monospace; }
.center { text-align: center; }
.mt0 { margin-top: 0; }
.page-head { padding: 48px 0 32px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: 30px; font-weight: 600; margin: 0 0 12px; letter-spacing: -0.3px; }
.page-head p { margin: 0; color: var(--muted); font-size: 15px; max-width: 700px; }

@media (max-width: 860px) {
  .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero h1 { font-size: 30px; }
  .nav a:not(.cta) { display: none; }
  .nav a.cta { margin-left: 0; }
  .phase { grid-template-columns: 1fr; gap: 8px; }
  .phase .ph { padding-top: 0; }
  .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .hero { padding: 44px 0 32px; }
  .hero h1 { font-size: 26px; }
  .qa-body { padding-left: 0; }
  .cform .row2 { grid-template-columns: 1fr; }
  .update-bar a { margin-left: 14px; }
}
