:root {
  --ink: #1a1714;
  --muted: #5c534a;
  --line: #e2d6c8;
  --soft: #fff8f1;
  --paper: #f7efe6;
  --brand: #c43b2c;
  --brand-deep: #8f261c;
  --accent: #2a6f6b;
  --tile: #ffffff;
  --max: 1120px;
  --radius: 18px;
  --shadow: 0 10px 28px rgba(26, 23, 20, 0.08);
  font-family: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(196, 59, 44, 0.12), transparent 55%),
    radial-gradient(900px 420px at 90% 0%, rgba(42, 111, 107, 0.1), transparent 50%),
    linear-gradient(180deg, #fbf5ee 0%, var(--paper) 40%, #f3e8dc 100%);
  line-height: 1.75;
  min-height: 100vh;
}

a { color: var(--brand-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand); }

img { max-width: 100%; height: auto; display: block; }

.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }

/* header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(251, 245, 238, 0.92);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}

.nav-desktop { display: flex; gap: 1.1rem; flex-wrap: wrap; }
.nav-desktop a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
}
.nav-desktop a:hover { color: var(--brand); }

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--tile);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font: inherit;
  cursor: pointer;
}

#mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0 1rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 248, 241, 0.98);
}
#mobile-nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 0.55rem 0.2rem;
  border-bottom: 1px dashed var(--line);
}
#mobile-nav.open { display: flex; }

/* ads */
.ads-slot { margin: 0; }

/* bento hero */
.bento-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 0.9rem;
  margin: 1.1rem 0 1.6rem;
}

.bento-cell {
  background: var(--tile);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 140px;
}

.bento-brand {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  padding: 1.5rem 1.4rem 1.3rem;
  background:
    linear-gradient(160deg, rgba(196, 59, 44, 0.08), transparent 55%),
    var(--tile);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.2rem;
}

.bento-brand h1 {
  margin: 0;
  font-size: clamp(1.55rem, 3.2vw, 2.25rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.bento-brand .lead {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

.bento-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.05rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover { background: var(--brand-deep); color: #fff; }
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }

.bento-media figure { margin: 0; height: 100%; }
.bento-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 180px;
}
.bento-media figcaption,
.bento-tiles figcaption,
.figure-block figcaption {
  padding: 0.55rem 0.75rem 0.7rem;
  font-size: 0.86rem;
  color: var(--muted);
  background: var(--soft);
}

.bento-note {
  padding: 1rem 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.bento-note strong { font-size: 1.05rem; }
.bento-note p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.bento-chiprow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.35rem;
}
.chip {
  display: inline-block;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: rgba(42, 111, 107, 0.1);
  color: var(--accent);
  font-size: 0.82rem;
  text-decoration: none;
}
.chip:hover { background: rgba(196, 59, 44, 0.12); color: var(--brand-deep); }

/* prose + tiles */
.bento-prose {
  background: var(--tile);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.35rem 1.1rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.1rem;
}

.bento-prose h2,
.bento-prose h3 {
  margin: 1.4rem 0 0.65rem;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.bento-prose h2 { font-size: 1.45rem; }
.bento-prose h3 { font-size: 1.18rem; color: var(--brand-deep); }
.bento-prose p { margin: 0 0 0.95rem; }
.bento-prose ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.bento-prose li { margin-bottom: 0.4rem; }

.bento-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
  margin: 1.1rem 0;
}
.bento-tiles .tile {
  background: var(--tile);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.bento-tiles .tile img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.bento-tiles .tile.wide { grid-column: 1 / -1; }

.peer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
  padding: 1rem 1.15rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.65);
  margin: 1.2rem 0;
}
.peer-links a { font-weight: 600; }

.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--soft);
  padding: 0.75rem 1rem;
  margin-bottom: 0.65rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
}
.faq p { margin: 0.55rem 0 0; color: var(--muted); }

.site-footer {
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 248, 241, 0.85);
  padding: 1.4rem 0 2rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.site-footer .footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  margin-bottom: 0.6rem;
}
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--brand); }

/* secondary pages */
.page-hero {
  padding: 1.4rem 0 0.4rem;
}
.page-hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}
.page-hero .muted { color: var(--muted); margin: 0; }

.prose {
  background: var(--tile);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem;
  box-shadow: var(--shadow);
  margin: 1rem 0 2rem;
}
.prose h2 { margin-top: 1.4rem; font-size: 1.25rem; }
.prose p { margin: 0 0 0.9rem; }

.err-box {
  text-align: center;
  padding: 3rem 1rem 4rem;
}
.err-box h1 { margin-bottom: 0.6rem; }

@media (max-width: 920px) {
  .bento-grid {
    grid-template-columns: 1fr 1fr;
  }
  .bento-brand {
    grid-column: 1 / -1;
    grid-row: auto;
  }
}

@media (max-width: 720px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: inline-flex; }
  .bento-grid { grid-template-columns: 1fr; }
  .bento-tiles { grid-template-columns: 1fr; }
  .bento-prose,
  .prose { padding: 1.05rem; }
}

/* SEO keyword highlight */
strong.kw, .kw{color:var(--accent,var(--brand,#c43b2c));font-weight:700}
mark.kw{background:rgba(196,59,44,.12);color:inherit;padding:0 .15em;border-radius:3px}
