:root {
  --bg: #f7f5f0;
  --card: #ffffff;
  --text: #1f1f1f;
  --muted: #6b6b6b;
  --accent: #c45c26;
  --accent-soft: #f3e4d8;
  --line: #e8e2d6;
  --ok: #2f6b4f;
  --ok-bg: #e8f3ec;
  --warn: #9a5b14;
  --warn-bg: #fff4e5;
  --max: 760px;
  --radius: 14px;
  --shadow: 0 10px 28px rgba(60, 40, 20, 0.06);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.topbar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.topbar .wrap,
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  gap: 12px;
}
.brand-block { min-width: 0; }
.brand-kicker {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  line-height: 1.2;
}
.brand {
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 1.05rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 46vw;
}
.meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
  flex-shrink: 0;
}
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(196, 92, 38, 0.22);
}
.btn:hover { filter: brightness(1.03); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--line);
  box-shadow: none;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  border: 1px solid var(--line);
  background: #faf6ee;
  color: #5a4636;
  text-decoration: none;
  white-space: nowrap;
}
.chip-expires {
  background: var(--accent-soft);
  border-color: #e7c7b0;
  color: #8a3f16;
}
.chip-ok {
  background: var(--ok-bg);
  border-color: #cfe3d7;
  color: var(--ok);
  font-size: 11px;
  padding: 2px 8px;
}
.chip-warn {
  background: var(--warn-bg);
  border-color: #f0d7b0;
  color: var(--warn);
  margin-bottom: 10px;
}
.chip-nav {
  background: #fff;
  color: var(--text);
  font-size: 13px;
  padding: 6px 12px;
}
.chip-nav-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.quick-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 1.25rem;
}
.article {
  background: var(--card);
  margin: 20px auto 40px;
  padding: 28px 24px 40px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.article h1 {
  font-size: 1.85rem;
  margin-top: 0;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.article h2 {
  font-size: 1.32rem;
  margin-top: 2.1rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid var(--line);
  scroll-margin-top: 76px;
}
.article h3 { font-size: 1.08rem; margin-top: 1.45rem; }
.article blockquote {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  background: #faf6ee;
  border-left: 4px solid var(--accent);
  color: #444;
  border-radius: 0 10px 10px 0;
}
.article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.article th, .article td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
}
.article code {
  background: #f0ebe3;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  font-size: 0.92em;
}
.foot { color: var(--muted); font-size: 13px; padding-bottom: 32px; }
.center { text-align: center; padding: 80px 20px; }
.muted { color: var(--muted); }
.article img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  display: block;
  margin: 1.1rem auto 0.35rem;
  border: 1px solid var(--line);
  background: #fff;
}
.article em {
  display: block;
  text-align: center;
  color: var(--muted);
  font-size: 0.86rem;
  margin: 0 auto 1.2rem;
  font-style: normal;
}
.img-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 1rem 0 1.4rem;
}
.img-row img {
  margin: 0;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
@media (max-width: 640px) {
  .img-row { grid-template-columns: 1fr; }
}
.highlight-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 1.1rem 0 1.7rem;
}
.highlight-card {
  background: #faf6ee;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 4px 12px rgba(60, 40, 20, 0.03);
}
.highlight-card .hc-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--accent);
  margin-bottom: 4px;
}
.highlight-card .hc-body {
  font-size: 0.86rem;
  color: #444;
  line-height: 1.45;
}
@media (max-width: 640px) {
  .highlight-cards { grid-template-columns: 1fr; }
}
.landing-top {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.landing { padding-bottom: 48px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 16px;
  margin: 24px 0 28px;
  align-items: stretch;
}
.hero-pitch {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  box-shadow: var(--shadow);
}
.eyebrow {
  margin: 0 0 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.hero-pitch h1 {
  margin: 0 0 12px;
  font-size: 1.85rem;
  line-height: 1.2;
}
.hero-pitch .lead {
  margin: 0 0 12px;
  font-size: 1.05rem;
  color: #333;
}
.hero-pitch .note { margin: 0; font-size: 0.92rem; }
.trust-card {
  background: linear-gradient(180deg, #fffdf9 0%, #faf6ee 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: var(--shadow);
}
.trust-title {
  margin: 0 0 12px;
  font-size: 1.1rem;
  color: var(--text);
}
.trust-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.trust-list li {
  font-size: 0.92rem;
  color: #3d3d3d;
  line-height: 1.5;
}
.trust-label {
  display: inline-block;
  min-width: 4.5em;
  margin-right: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #8a3f16;
  font-size: 0.78rem;
  font-weight: 700;
}
.section-title {
  font-size: 1.15rem;
  margin: 8px 0 14px;
  border: none;
  padding: 0;
}
.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}
.city-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 14px rgba(60, 40, 20, 0.03);
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.city-card:hover {
  border-color: #dfc7b4;
  transform: translateY(-1px);
}
.city-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.city-card .city-name {
  font-weight: 700;
  font-size: 1.02rem;
}
.city-card .city-slug {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 8px;
  opacity: 0.75;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.error-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 28px auto 40px;
  padding: 28px 24px 32px;
  max-width: 560px;
}
.error-card h1 {
  margin: 0 0 10px;
  font-size: 1.55rem;
}
.error-reason {
  margin: 0 0 18px;
  color: #444;
  font-size: 1.02rem;
}
.error-next {
  background: #faf6ee;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 16px 18px;
}
.error-next .section-title { margin-top: 0; }
.error-next .btn { margin-top: 8px; }
.admin { padding: 20px 0 48px; max-width: 1100px; }
.admin-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}
.admin-card h2 { margin-top: 0; font-size: 1.15rem; }
.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 8px 0;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin: 8px 0 12px;
}
.form-grid label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.88rem;
  color: var(--muted);
}
.admin input, .admin select {
  font: inherit;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  min-width: 0;
  flex: 1;
}
.btn-sm { padding: 4px 8px; font-size: 13px; cursor: pointer; }
button.btn { border: none; cursor: pointer; font: inherit; }
.table-wrap { overflow-x: auto; margin-top: 12px; }
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.admin-table th, .admin-table td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
  vertical-align: top;
}
.admin-table th { background: #faf6ee; }
.result-box {
  margin-top: 12px;
  padding: 12px;
  background: #faf6ee;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.result-box pre {
  white-space: pre-wrap;
  word-break: break-all;
  font-size: 0.8rem;
  margin: 8px 0 0;
}
.shop-select {
  font: inherit;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  max-width: 200px;
}
.admin h3 { font-size: 1rem; font-weight: 700; }
@media (max-width: 720px) {
  .hero-grid { grid-template-columns: 1fr; }
  .topbar-inner { flex-wrap: wrap; min-height: auto; padding: 10px 0; }
  .brand { max-width: 100%; }
  .meta { width: 100%; justify-content: space-between; }
  .article { padding: 20px 16px 32px; margin: 14px auto 28px; }
  .hero-pitch, .trust-card, .error-card { padding: 20px 16px; }
  .city-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 400px) {
  .city-grid { grid-template-columns: 1fr; }
  .chip-expires { font-size: 11px; }
  .btn { padding: 8px 12px; }
}
@media print {
  body { background: #fff; }
  .print-hide { display: none !important; }
  .topbar, .quick-nav, .foot { display: none !important; }
  .article {
    box-shadow: none;
    border: none;
    margin: 0;
    padding: 0;
  }
  .article img { break-inside: avoid; }
  .highlight-cards {
    break-inside: avoid;
    grid-template-columns: repeat(2, 1fr);
  }
  .highlight-card {
    background: #fff;
    border: 1px solid #ccc;
    box-shadow: none;
  }
  .btn { box-shadow: none; }
}
