:root {
  --paper: #f4efe4;
  --paper-deep: #e9e0d0;
  --ink: #1c2430;
  --muted: #5c6673;
  --seal: #9c332c;
  --seal-dark: #7a241f;
  --moss: #1e6554;
  --brass: #8a6a34;
  --card: #fffdf8;
  --line: #e2d6c4;
  --info: #e6f3ee;
  --warn: #fff4e5;
  --danger: #fdeceb;
  --shadow: 0 16px 40px rgba(28, 36, 48, 0.06);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 400px at 10% -10%, rgba(156, 51, 44, 0.06), transparent 50%),
    linear-gradient(180deg, #f7f3ea 0%, var(--paper) 220px);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}
img { max-width: 100%; }
a { color: var(--seal-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--seal); }
h1, h2, h3 {
  font-family: "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0.02em;
}
h1 { font-size: 2.35rem; margin: 0 0 0.6rem; }
h2 { font-size: 1.7rem; margin: 0 0 0.8rem; }
h3 { font-size: 1.15rem; margin: 0 0 0.4rem; }
p { margin: 0 0 0.8rem; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: white;
  padding: 0.4rem 0.7rem;
  z-index: 20;
}
.skip:focus { top: 0.5rem; color: white; }

.wrap { width: min(var(--max), calc(100% - 2rem)); margin: 0 auto; }

.topbar {
  background: var(--ink);
  color: #f3eadc;
  font-size: 0.86rem;
}
.topbar a { color: #f3eadc; text-decoration: none; }
.topbar-inner, .header-row, .nav-row, .footer-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.topbar-inner { min-height: 2.2rem; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 253, 248, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.header-row { padding: 0.85rem 0 0.35rem; }
.brand {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  color: inherit;
  text-decoration: none;
  min-width: 0;
}
.brand-logo {
  display: block;
  height: 40px;
  width: auto;
  max-width: min(168px, 42vw);
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.brand-text small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 14rem;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.header-tools { display: flex; align-items: center; gap: 0.8rem; }
.nav-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.nav-burger {
  display: none;
  border: 1px solid var(--line);
  background: var(--card);
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  font-size: 0.92rem;
  white-space: nowrap;
  border-radius: 999px;
}
.site-nav { padding-bottom: 0.7rem; }
.nav-row { align-items: stretch; flex-wrap: wrap; gap: 0.2rem 0.15rem; }
.nav-row a {
  color: var(--ink);
  text-decoration: none;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  font-size: 0.95rem;
}
.nav-row a:hover, .nav-row a[aria-current="page"] {
  background: rgba(156, 51, 44, 0.1);
  color: var(--seal-dark);
}

.hero { padding: 3.2rem 0 2.2rem; }
.hero-grid, .split, .footer-grid, .card-grid, .room-grid {
  display: grid;
  gap: 1.2rem;
}
.hero-grid { grid-template-columns: 1.4fr 0.8fr; align-items: center; }
.lede { font-size: 1.12rem; color: var(--muted); max-width: 40rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.2rem; }
.btn, button.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.55rem 1.05rem;
  text-decoration: none;
  border: 1px solid transparent;
  font: inherit;
  cursor: pointer;
  line-height: 1.2;
}
.btn-primary { background: var(--seal); color: white; }
.btn-primary:hover { background: var(--seal-dark); color: white; }
.btn-ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: white; }
.btn-small { padding: 0.35rem 0.75rem; font-size: 0.92rem; }
.btn-moss { background: var(--moss); color: white; }
.btn-moss:hover { color: white; filter: brightness(1.05); }

.index-card {
  background: var(--ink);
  color: #f6f0e6;
  border-radius: 18px;
  padding: 1.2rem 1.2rem 0.6rem;
  box-shadow: var(--shadow);
}
.index-card ol { margin: 0; padding: 0; list-style: none; }
.index-card a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: inherit;
  text-decoration: none;
  padding: 0.7rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.index-card a:hover { color: #f1c7c3; }
.index-card span { color: #c9b48a; font-variant-numeric: tabular-nums; }

.section { padding: 1rem 0 2.4rem; }
.section-head { display: flex; justify-content: space-between; gap: 1rem; align-items: end; margin-bottom: 1rem; }
.section-head p { margin: 0; color: var(--muted); }
.card-grid { grid-template-columns: repeat(3, 1fr); }
.card, .panel, .form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.1rem 1.15rem 1rem;
  box-shadow: var(--shadow);
}
.card p:last-child { margin-bottom: 0; }
.kicker {
  display: inline-block;
  color: var(--brass);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}
.tag {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.05rem 0.5rem;
  font-size: 0.78rem;
  color: var(--brass);
  background: var(--warn);
}
.room-grid { grid-template-columns: repeat(3, 1fr); }
.room { border-top: 3px solid var(--moss); }

.split { grid-template-columns: 1fr 1fr; align-items: start; }
.list-clean { margin: 0; padding-left: 1.1rem; }
.list-clean li { margin: 0.25rem 0; }
.note, .alert {
  border-radius: 12px;
  padding: 0.8rem 0.95rem;
  margin: 0 0 1rem;
}
.note { background: var(--info); color: #13493c; }
.alert { background: var(--danger); color: #6d201b; }
.alert.ok { background: var(--info); color: #13493c; }
.placeholder-banner {
  background: var(--warn);
  border: 1px dashed var(--brass);
  color: #6a501f;
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  margin-bottom: 1rem;
}

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--card); }
table { width: 100%; border-collapse: collapse; min-width: 640px; }
th, td { text-align: left; padding: 0.7rem 0.85rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 0.82rem; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; background: #faf6ef; }
tr:last-child td { border-bottom: 0; }

.crumbs { color: var(--muted); font-size: 0.88rem; margin-bottom: 0.8rem; }
.crumbs a { color: var(--muted); }

.form-card { max-width: 34rem; }
label { display: block; font-size: 0.92rem; margin: 0.75rem 0 0.25rem; }
input[type="text"], input[type="password"], input[type="email"], textarea, select {
  width: 100%;
  border: 1px solid #d9cdb8;
  background: white;
  border-radius: 10px;
  padding: 0.6rem 0.7rem;
  font: inherit;
  color: inherit;
}
textarea { min-height: 8rem; resize: vertical; }
input:focus, textarea:focus, select:focus {
  outline: 2px solid rgba(156, 51, 44, 0.35);
  border-color: var(--seal);
}
.help { color: var(--muted); font-size: 0.88rem; }
.page-narrow { padding: 2rem 0 3rem; }

.site-footer {
  margin-top: 2rem;
  background: #17202b;
  color: #e7dece;
  padding: 2rem 0 1.2rem;
}
.site-footer a { color: #f0d2cf; }
.footer-grid { grid-template-columns: 1.4fr 1.2fr 0.8fr; }
.footer-grid a { display: block; text-decoration: none; margin: 0.15rem 0; }
.footer-base {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 1.2rem;
  padding-top: 0.8rem;
  font-size: 0.86rem;
  color: #c9bfb0;
}

.stat-row { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.4rem; }
.stat { min-width: 8rem; }
.stat b { display: block; font-family: "Songti SC", "STSong", serif; font-size: 1.35rem; }

@media (max-width: 900px) {
  h1 { font-size: 1.85rem; }
  .hero-grid, .split, .card-grid, .room-grid, .footer-grid { grid-template-columns: 1fr; }
  .nav-burger { display: inline-flex; align-items: center; }
  .brand-text { display: none; }
  .brand-logo { height: 36px; max-width: min(148px, 48vw); }
  .header-tools { flex-shrink: 0; }
  .site-nav { display: none; padding-bottom: 0.8rem; }
  .nav-toggle:checked ~ .site-nav { display: block; }
  .nav-row { flex-direction: column; align-items: flex-start; }
  .header-row { align-items: flex-start; }
  .topbar-inner { align-items: flex-start; padding: 0.35rem 0; }
}
