:root {
  --ink: #140e0b;
  --muted: #5c4c42;
  --line: rgba(20, 14, 11, 0.12);
  --paper: #f3ebe3;
  --card: #fffdf9;
  --brand: #9a3412;
  --brand-deep: #6b2109;
  --accent: #c2410c;
  --gold: #f59e0b;
  --font-display: "Noto Serif SC", "Songti SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  font-size: 0.92em;
  background: rgba(154, 52, 18, 0.08);
  padding: 0.12em 0.45em;
  border-radius: 4px;
}

.top {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 5vw;
  background: rgba(243, 235, 227, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.brand-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  letter-spacing: 0.04em;
}
.top nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 14px;
  font-size: 0.86rem;
}
.top nav a { color: var(--muted); text-decoration: none; }
.top nav a:hover { color: var(--brand); }

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  padding: 14vh 5vw 9vh;
  overflow: hidden;
  color: #fff8f1;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(20, 14, 11, 0.88) 8%, rgba(107, 33, 9, 0.72) 48%, rgba(20, 14, 11, 0.55) 100%),
    url("./hero-bg.jpg") center / cover no-repeat;
}
.hero-inner {
  position: relative;
  max-width: 760px;
  animation: rise 0.9s ease both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}
.hero-brand {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 5rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
}
.hero h1 {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.4vw, 1.95rem);
  font-weight: 600;
  line-height: 1.35;
  max-width: 16em;
}
.hero-lead {
  margin: 0 0 28px;
  font-size: 1.05rem;
  color: rgba(255, 248, 241, 0.9);
  max-width: 38em;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}
.hero-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 640px;
}
.hero-stats li {
  padding: 12px 14px;
  border: 1px solid rgba(255, 248, 241, 0.22);
  border-radius: 12px;
  background: rgba(20, 14, 11, 0.28);
  backdrop-filter: blur(6px);
}
.hero-stats strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.hero-stats span {
  font-size: 0.8rem;
  color: rgba(255, 248, 241, 0.72);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn.primary {
  background: #fff8f1;
  color: var(--brand-deep);
}
.btn.ghost {
  border-color: rgba(255, 248, 241, 0.45);
  color: #fff8f1;
}

.section {
  padding: 80px 5vw;
  max-width: 1120px;
  margin: 0 auto;
}
.section.alt {
  max-width: none;
  background: #e8ddd2;
}
.section-wrap {
  max-width: 1120px;
  margin: 0 auto;
}
.section h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  color: var(--brand-deep);
}
.section-lead {
  margin: 0 0 40px;
  color: var(--muted);
  max-width: 46em;
  font-size: 1.02rem;
}

.grid {
  display: grid;
  gap: 18px;
}
.grid.two { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid.five { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.note {
  margin: 28px 0 0;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(154, 52, 18, 0.08);
  color: var(--brand-deep);
  font-size: 0.92rem;
}
.grid article,
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px 22px;
}
.grid h3,
.card h3 {
  margin: 0 0 10px;
  font-size: 1.12rem;
  color: var(--brand);
}
.grid p,
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

.feature-rows { display: grid; gap: 28px; }
.feature-row {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: stretch;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
}
.feature-row.reverse { grid-template-columns: 0.85fr 1.15fr; }
.feature-row.reverse > div:first-child { order: 2; }
.feature-row h3 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--brand-deep);
}
.feature-row p { margin: 0 0 12px; color: var(--muted); }
.feature-row ul {
  margin: 0;
  padding-left: 1.15em;
  color: var(--muted);
}
.feature-row li { margin-bottom: 6px; }
.feature-panel {
  border-radius: 16px;
  background:
    radial-gradient(circle at 30% 20%, rgba(245, 158, 11, 0.35), transparent 50%),
    linear-gradient(145deg, #3b1a0d, #9a3412 70%);
  color: #fff8f1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 28px;
  min-height: 180px;
  position: relative;
  overflow: hidden;
}
.feature-panel::before {
  content: attr(data-label);
  position: absolute;
  top: 18px;
  right: 18px;
  font-family: var(--font-display);
  font-size: 2.4rem;
  opacity: 0.18;
  letter-spacing: 0.08em;
}
.panel-title {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 700;
}
.feature-panel p:last-child {
  margin: 0;
  opacity: 0.85;
  font-size: 0.92rem;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  counter-reset: none;
}
.steps li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 18px;
}
.steps .n {
  display: inline-block;
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.steps h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  color: var(--brand-deep);
}
.steps p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}
.gallery figure {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(20, 14, 11, 0.08);
}
.gallery img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}
.gallery figcaption {
  padding: 14px 16px 16px;
  font-size: 0.92rem;
  color: var(--muted);
  text-align: center;
}

.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--brand-deep);
}
.faq p {
  margin: 12px 0 0;
  color: var(--muted);
}

.inline-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 28px 0 0;
  font-weight: 600;
}

.meta {
  display: grid;
  gap: 0;
  margin: 0;
  max-width: 800px;
}
.meta div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.meta dt { color: var(--brand); font-weight: 600; }
.meta dd { margin: 0; color: var(--muted); }

.foot {
  padding: 52px 5vw 60px;
  background: #140e0b;
  color: rgba(255, 248, 241, 0.72);
  text-align: center;
}
.foot-brand {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: #fff8f1;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}
.foot .links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 22px;
  margin: 20px 0 10px;
}
.foot .links a { color: var(--gold); }
.foot .copy { font-size: 0.85rem; opacity: 0.7; }

.doc {
  max-width: 780px;
  margin: 0 auto;
  padding: 48px 5vw 90px;
}
.doc h1 {
  font-family: var(--font-display);
  color: var(--brand-deep);
  font-size: 1.85rem;
  margin-bottom: 8px;
}
.doc h2 {
  font-family: var(--font-display);
  color: var(--brand);
  font-size: 1.2rem;
  margin: 28px 0 10px;
}
.doc p { color: var(--muted); margin: 0 0 14px; }
.doc ul { color: var(--muted); padding-left: 1.2em; }
.doc li { margin-bottom: 8px; }
.doc .back { display: inline-block; margin-bottom: 24px; font-weight: 600; }
.doc .meta-line { color: #8a7466; font-size: 0.9rem; margin-bottom: 28px; }

@media (max-width: 860px) {
  .top nav { display: none; }
  .hero { min-height: 86vh; align-items: center; padding-top: 18vh; }
  .hero-stats { grid-template-columns: 1fr; }
  .feature-row,
  .feature-row.reverse {
    grid-template-columns: 1fr;
  }
  .feature-row.reverse > div:first-child { order: 0; }
  .meta div { grid-template-columns: 1fr; gap: 4px; }
}
