/* ===============================================================
   WizKitchor — 全站样式
   纯 CSS，无框架、无外部字体/CDN 依赖，离线也能正常显示。
   =============================================================== */

:root {
  --bg: #fbf9f6;
  --surface: #ffffff;
  --surface-soft: #f3efe9;
  --ink: #1f2823;
  --muted: #6b766f;
  --accent: #cf6a3a;
  --accent-deep: #a9522a;
  --sage: #4c7a63;
  --line: #e7e1d9;
  --shadow-sm: 0 4px 18px rgba(31, 40, 35, 0.06);
  --shadow-md: 0 18px 45px rgba(31, 40, 35, 0.10);
  --radius: 18px;
  --radius-sm: 10px;
  --max: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.7rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 0.6rem;
}

.lead { font-size: 1.15rem; color: var(--muted); }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 249, 246, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 1.5rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: "Iowan Old Style", Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: Georgia, serif;
  font-size: 1rem;
  font-weight: 700;
}
.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.18s ease;
}
.site-nav a:hover, .site-nav a.is-active { color: var(--accent-deep); }
.nav-cta {
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  background: var(--ink);
  color: #fff !important;
}
.nav-cta:hover { background: var(--accent-deep) !important; color: #fff !important; }
.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  font-size: 1.25rem;
  line-height: 1;
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); }
.btn-ghost { border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-deep); }
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent-deep);
  font-weight: 600;
  font-size: 0.92rem;
}
.text-link span { transition: transform 0.18s ease; }
.text-link:hover span { transform: translateX(4px); }

/* ---------------- Hero ---------------- */
.hero { padding: clamp(3.5rem, 8vw, 6.5rem) 0 4rem; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero h1 { margin-bottom: 1.1rem; }
.hero p.lead { max-width: 34rem; margin-bottom: 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 2rem; }
.hero-note {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.86rem;
  color: var(--muted);
}
.hero-note::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 4px rgba(76, 122, 99, 0.14);
}
.hero-visual {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--surface-soft);
}
.hero-visual img { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 2rem 0 0;
  border-top: 1px solid var(--line);
  margin-top: 3rem;
}
.stat strong {
  display: block;
  font-family: Georgia, serif;
  font-size: 1.8rem;
  color: var(--ink);
}
.stat span { font-size: 0.85rem; color: var(--muted); }

/* ---------------- Sections ---------------- */
.section { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section-tint { background: var(--surface); border-block: 1px solid var(--line); }
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.3rem;
}
.section-head p { color: var(--muted); max-width: 32rem; margin: 0; }
.section-head h2 { margin: 0; }

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.card-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-soft);
}
.card-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.card:hover .card-media img { transform: scale(1.04); }
.badge {
  position: absolute;
  top: 0.85rem; left: 0.85rem;
  background: rgba(255, 255, 255, 0.94);
  color: var(--accent-deep);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
}
.card-body { padding: 1.35rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.card-body h3 { margin-bottom: 0.55rem; }
.card-body p { color: var(--muted); font-size: 0.92rem; margin-bottom: 1.2rem; flex: 1; }
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---------------- Value strip ---------------- */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.value-item {
  padding-left: 1.2rem;
  border-left: 2px solid var(--accent);
}
.value-item h3 { font-size: 1.2rem; margin-bottom: 0.4rem; }
.value-item p { color: var(--muted); font-size: 0.93rem; margin: 0; }

/* ---------------- CTA band ---------------- */
.cta-band {
  background: var(--ink);
  color: #fff;
  border-radius: 26px;
  padding: clamp(2.2rem, 5vw, 3.5rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.cta-band h2 { margin-bottom: 0.5rem; }
.cta-band p { color: rgba(255, 255, 255, 0.7); margin: 0; }
.cta-band .btn-primary { flex-shrink: 0; }
.contact-line {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1.2rem;
  font-size: 0.92rem;
}
.contact-line a { color: #fff; border-bottom: 1px solid rgba(255,255,255,0.35); }

/* ---------------- Page hero ---------------- */
.page-hero { padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; }
.page-hero h1 { margin-bottom: 0.6rem; }
.page-hero p { color: var(--muted); max-width: 38rem; }

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1.5rem 0 2rem;
}
.filter-btn {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.86rem;
  font-weight: 600;
  transition: all 0.18s ease;
}
.filter-btn:hover { border-color: var(--accent); color: var(--accent-deep); }
.filter-btn.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.empty-state { color: var(--muted); padding: 2rem 0; }

/* ---------------- Detail pages ---------------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0 0 2rem;
}
.breadcrumb a:hover { color: var(--accent-deep); }
.detail-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.detail-media {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-soft);
  box-shadow: var(--shadow-sm);
}
.detail-main-image { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.gallery-thumbs {
  display: flex;
  gap: 0.6rem;
  padding: 0.8rem;
  overflow-x: auto;
  background: var(--surface);
}
.gallery-thumb {
  flex: 0 0 74px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  background: none;
  line-height: 0;
}
.gallery-thumb img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.gallery-thumb:hover { border-color: var(--line); }
.gallery-thumb.is-active { border-color: var(--accent); }
.detail-content h2 { font-size: 1.5rem; margin-top: 2rem; }
.detail-content .lead { color: var(--accent-deep); font-family: Georgia, serif; font-size: 1.3rem; }
.tick-list, .spec-list { list-style: none; padding: 0; margin: 0; }
.tick-list li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.65rem;
  color: var(--muted);
}
.tick-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--sage);
}
.spec-list { border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.spec-list div {
  display: grid;
  grid-template-columns: 40% 60%;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.spec-list div:last-child { border-bottom: 0; }
.spec-list dt, .spec-list dd { margin: 0; padding: 0.7rem 1rem; }
.spec-list dt { background: var(--surface-soft); color: var(--muted); font-weight: 600; }
.detail-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 2rem; }

/* ---------------- Article ---------------- */
.article { max-width: 760px; margin-inline: auto; }
.article-header { text-align: center; margin-bottom: 2rem; }
.article-header h1 { font-size: clamp(2rem, 4.5vw, 3rem); }
.article-meta { color: var(--muted); font-size: 0.86rem; }
.article-cover {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-sm);
}
.article-cover img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.article-body { font-size: 1.02rem; color: #36413a; }
.article-body h2 { font-size: 1.7rem; margin-top: 2.2rem; }
.article-body a { color: var(--accent-deep); text-decoration: underline; }
.article-body ul { padding-left: 1.3rem; }
.article-body li { margin-bottom: 0.5rem; }
.article-body blockquote {
  margin: 2rem 0;
  padding: 1rem 1.4rem;
  border-left: 3px solid var(--accent);
  background: var(--surface-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: Georgia, serif;
  font-style: italic;
}
.article-footer { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }

/* ---------------- About ---------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.about-grid img { border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.about-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  margin-top: 1.5rem;
}
.about-card h3 { font-size: 1.15rem; }
.about-card p { margin-bottom: 0.4rem; }
.about-card a { color: var(--accent-deep); font-weight: 600; }

/* ---------------- Footer ---------------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 3rem 0 1.6rem;
  margin-top: 3rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer-grid h4 {
  font-family: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1rem;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 0.55rem; font-size: 0.9rem; }
.footer-grid a:hover { color: var(--accent-deep); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-top: 1.3rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.footer-note { max-width: 24rem; }

/* ---------------- 404 ---------------- */
.not-found { text-align: center; padding: clamp(4rem, 10vw, 8rem) 0; }
.not-found .code {
  font-family: Georgia, serif;
  font-size: clamp(5rem, 14vw, 9rem);
  color: var(--accent);
  line-height: 1;
  margin-bottom: 1rem;
}

/* ---------------- Reveal animation ---------------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------------- Responsive ---------------- */
@media (max-width: 960px) {
  .hero-grid, .detail-grid, .about-grid { grid-template-columns: 1fr; }
  .hero-visual img { aspect-ratio: 16 / 10; }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .value-grid { gap: 1.2rem; }
}

@media (max-width: 720px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.6rem 1.25rem 1.2rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
  .site-nav .nav-cta { margin-top: 0.8rem; text-align: center; border-bottom: 0; }
  .menu-toggle { display: block; }
  .grid-3, .value-grid { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: start; }
  .cta-band { flex-direction: column; align-items: start; }
  .stat-row { grid-template-columns: 1fr; gap: 0.7rem; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
