@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&family=Noto+Serif+SC:wght@600;700&display=swap');

:root {
  --paper: #faf7f5;
  --ink: #1c1917;
  --muted: #78716c;
  --line: #e7e0da;
  --brand: #e11d48;
  --brand-soft: #ffe4e9;
  --accent: #0f766e;
  --header: rgba(250, 247, 245, .92);
  --header-ink: #1c1917;
  --radius: 12px;
  --card: #ffffff;
  --shadow: 0 1px 0 rgba(28, 25, 23, .04), 0 12px 32px rgba(28, 25, 23, .06);
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "Noto Serif SC", "Songti SC", "Noto Sans SC", serif;
  --max: 1180px;
  --header-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
.wrap { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }

#app { position: relative; isolation: isolate; }
.sparkle { display: none; }

/* —— Header —— */
.header {
  position: sticky; top: 0; z-index: 40;
  background: var(--header);
  backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid var(--line);
}
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; padding: 8px 0;
  color: var(--muted); font-size: 12px; letter-spacing: .02em;
  border-bottom: 1px solid rgba(231, 224, 218, .7);
}
.topbar a:hover { color: var(--brand); }
.nav-row {
  display: flex; align-items: center; gap: 20px;
  min-height: var(--header-h);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  flex: 0 0 auto;
  font-family: var(--display);
  font-weight: 700; font-size: 17px; letter-spacing: .02em;
}
.brand i {
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 9px; font-style: normal; font-size: 15px;
  color: #fff; background: var(--brand);
}
.nav {
  display: flex; align-items: center; gap: 2px;
  flex: 1 1 auto; flex-wrap: nowrap; min-width: 0;
  justify-content: center;
}
.nav a {
  padding: 8px 10px;
  color: var(--muted); font-size: 13px; font-weight: 500;
  white-space: nowrap; border-radius: 8px;
}
.nav a:hover, .nav a.on { color: var(--ink); background: rgba(28, 25, 23, .04); }
.header-cta {
  display: inline-flex; align-items: center; gap: 10px;
  flex: 0 0 auto;
}
.header-cta .search {
  display: flex; align-items: center;
  border: 1px solid var(--line); border-radius: 8px;
  background: #fff; overflow: hidden; height: 40px;
}
.header-cta .search input {
  width: 112px; border: 0; outline: 0; background: transparent;
  padding: 0 12px; min-height: 38px; font-size: 13px;
}
.header-cta .search button {
  border: 0; border-left: 1px solid var(--line);
  background: #fafaf9; color: var(--muted);
  padding: 0 12px; height: 100%; cursor: pointer; font-size: 12px;
  white-space: nowrap;
}
.header-cta .search button:hover { color: var(--brand); background: #fff; }
.menu-btn {
  display: none; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
}

/* —— Buttons —— */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 22px; border-radius: 10px;
  border: 1px solid transparent; cursor: pointer;
  background: var(--brand); color: #fff; font-weight: 700; font-size: 14px;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { background: #be123c; transform: translateY(-1px); }
.btn.ghost {
  background: #fff; color: var(--ink); border-color: var(--line); font-weight: 600;
}
.btn.ghost:hover { border-color: var(--ink); background: #fff; transform: none; }
.btn.sm { min-height: 40px; padding: 0 16px; }

/* —— Hero：左文右图分区，等高铺满，杜绝穿模 —— */
.banner {
  position: relative;
  background: #fffaf8;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.banner-slide {
  display: none;
  position: relative;
  min-height: min(72vh, 680px);
}
.banner-slide.on { display: block; animation: heroIn .5s ease both; }
@keyframes heroIn {
  from { opacity: .4; }
  to { opacity: 1; }
}
.banner-copy {
  position: relative; z-index: 2;
  width: min(520px, 46%);
  min-height: min(72vh, 680px);
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(48px, 7vw, 80px) clamp(28px, 4vw, 56px);
  background: #fffaf8;
  color: var(--ink);
}
.banner-copy .kicker { margin-bottom: 18px; }
.banner-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.18;
  max-width: 10.5em;
}
.banner-copy .lede {
  margin: 0;
  max-width: 28em;
  font-size: 16px;
  color: var(--muted);
}
.banner-copy .actions { margin-top: 28px; }
.banner-media {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  left: min(520px, 46%);
  background: #1c1917 center/cover no-repeat;
}
.banner-media::after {
  content: "";
  position: absolute; inset: 0 auto 0 0; width: 64px;
  background: linear-gradient(90deg, #fffaf8, transparent);
  pointer-events: none;
}
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--brand); font-size: 12px; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
}
.kicker::before {
  content: "";
  width: 18px; height: 1px; background: var(--brand);
}
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--ink);
}
h1 { font-size: clamp(30px, 4vw, 48px); line-height: 1.2; margin: 0 0 14px; }
h2 { font-size: clamp(24px, 2.6vw, 32px); margin: 0 0 12px; line-height: 1.25; }
.lede { color: var(--muted); font-size: 16px; max-width: 36em; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

.dots {
  display: flex; gap: 8px; margin-top: 32px;
}
.dots button {
  width: 28px; height: 3px; border: 0; padding: 0; border-radius: 2px;
  background: rgba(28, 25, 23, .15); cursor: pointer;
}
.dots button.on { background: var(--brand); }

/* —— Sections —— */
.section { padding: 72px 0 8px; }
.section-head {
  display: flex; justify-content: space-between; align-items: end;
  gap: 20px; flex-wrap: wrap; margin-bottom: 28px;
}
.section-head .sub { margin: 8px 0 0; color: var(--muted); font-size: 14px; }

.metrics {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 0; margin: 0;
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: #fff;
}
.metric {
  padding: 28px 22px; text-align: left;
  border-right: 1px solid var(--line);
  box-shadow: none; background: #fff;
}
.metric:last-child { border-right: 0; }
.metric b {
  display: block; font-size: 36px; line-height: 1;
  color: var(--ink); font-family: var(--display); font-weight: 700;
  margin-bottom: 8px;
}
.metric span { color: var(--muted); font-size: 13px; }

.home-stack { padding-bottom: 40px; }
.home-stack > .metrics { margin-top: 40px; }

.feature-band {
  margin: 56px 0 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  align-items: stretch;
  padding: 0; border: 0; background: transparent; border-radius: 0;
}
.feature-band .copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: 12px 8px 12px 0;
}
.feature-band .media {
  position: relative; min-height: 360px; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--line); background: #ddd;
}
.feature-band .media img {
  width: 100%; height: 100%; min-height: 360px;
  object-fit: cover; border: 0; border-radius: 0;
}

.grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: none;
  transition: border-color .18s ease, transform .18s ease;
}
.card:hover {
  border-color: #cfc6be;
  transform: translateY(-2px);
}
.card .thumb {
  height: 200px;
  background: #efe8e2 center/cover no-repeat;
  border-bottom: 1px solid var(--line);
}
.card .body {
  padding: 18px 18px 20px; display: grid; gap: 8px; flex: 1;
}
.card .tag {
  display: inline-flex; width: fit-content;
  padding: 2px 8px; border-radius: 4px;
  background: var(--brand-soft); color: var(--brand);
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
}
.card strong {
  font-size: 17px; font-family: var(--display); font-weight: 700; line-height: 1.35;
}
.card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.card .price { color: var(--ink); font-weight: 700; font-size: 14px; margin-top: auto; padding-top: 6px; }

.case-card {
  display: grid; grid-template-columns: 1.15fr .85fr; min-height: 260px;
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; background: #fff;
}
.case-card:hover { border-color: #cfc6be; }
.case-card .thumb {
  min-height: 260px; background: #efe8e2 center/cover no-repeat;
}
.case-card .body {
  padding: 28px 26px; display: flex; flex-direction: column; justify-content: center; gap: 10px;
}
.case-card strong { font-family: var(--display); font-size: 22px; }
.case-card p { margin: 0; color: var(--muted); font-size: 14px; }

.toolbar {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  align-items: end; margin-bottom: 22px;
}
.toolbar .sub { color: var(--muted); margin: 6px 0 0; font-size: 14px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters a, .filters button {
  min-height: 34px; padding: 0 12px; border-radius: 8px;
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  cursor: pointer; font-size: 13px;
}
.filters a.on, .filters button.on, .filters a:hover {
  color: #fff; border-color: var(--brand); background: var(--brand);
}

.panel {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: none;
}

.detail {
  display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(280px, .7fr);
  gap: 28px; padding: 32px 0 64px; align-items: start;
}
.detail .panel { overflow: hidden; }
.detail .cover {
  width: 100%; height: 320px; object-fit: cover;
  border-bottom: 1px solid var(--line); background: #efe8e2;
}
.prose { font-size: 16px; color: #44403c; }
.prose h2 { font-size: 22px; margin: 28px 0 10px; }
.prose p, .prose li { margin: 0 0 12px; }
.side-card {
  padding: 24px; display: grid; gap: 12px;
  position: sticky; top: calc(var(--header-h) + 28px);
}
.side-card .meta { color: var(--muted); font-size: 13px; }
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 600;
  background: #f5f5f4; color: #57534e;
}

.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 700; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { color: var(--muted); margin: 8px 0 0; }

.form { display: grid; gap: 14px; padding: 28px; }
.form label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; }
.form input, .form textarea, .form select,
.search input {
  min-height: 44px; padding: 10px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: #fff; outline: none;
}
.form input:focus, .form textarea:focus {
  border-color: #fda4af; box-shadow: 0 0 0 3px rgba(225, 29, 72, .1);
}
.flash {
  padding: 12px 14px; border-radius: 10px;
  border: 1px solid #bbf7d0; background: #f0fdf4; color: #166534;
}
.flash.bad { border-color: #fecdd3; background: #fff1f2; color: #9f1239; }

.empty {
  padding: 56px 20px; text-align: center; color: var(--muted);
  border: 1px dashed var(--line); border-radius: var(--radius); background: #fff;
}
.pager {
  display: flex; gap: 12px; align-items: center; justify-content: flex-end;
  padding: 28px 0 48px;
}
.pager button[disabled] { opacity: .35; cursor: not-allowed; }

.quote {
  margin: 0; padding: 24px 26px; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--line); color: var(--muted);
  font-size: 15px; line-height: 1.7;
}
.quote cite {
  display: block; margin-top: 14px; color: var(--ink);
  font-style: normal; font-size: 13px; font-weight: 700;
}

.cta-band {
  margin: 56px 0 24px;
  padding: 48px 40px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, #fff1f2 0%, #fff 45%, #f0fdfa 100%);
}
.cta-band h2 { margin-bottom: 10px; }
.cta-band .lede { margin: 0; }

.site-footer {
  margin-top: 64px;
  background: #1c1917;
  color: rgba(255, 255, 255, .62);
}
.footer-main {
  display: grid;
  grid-template-columns: minmax(280px, 1.15fr) minmax(0, 1.6fr);
  gap: 48px 64px;
  padding: 56px 0 40px;
  align-items: start;
}
.footer-brand .brand {
  color: #fff;
  margin-bottom: 16px;
}
.footer-brand .brand i {
  background: var(--brand);
}
.footer-tagline {
  margin: 0 0 10px;
  color: #fff;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}
.footer-desc {
  margin: 0;
  max-width: 32em;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255, 255, 255, .55);
}
.footer-cta {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 22px;
}
.footer-cta .btn.ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, .22);
}
.footer-cta .btn.ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, .06);
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 32px;
}
.footer-links {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 0 0 22px;
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: 18px;
}
.footer-links-label {
  flex: 0 0 auto;
  font-size: 12px;
  letter-spacing: .08em;
  color: rgba(255, 255, 255, .38);
}
.footer-links-list {
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  font-size: 13px;
}
.footer-links-list a { color: rgba(255, 255, 255, .55); }
.footer-links-list a:hover { color: #fff; }
.footer-col {
  display: grid;
  gap: 10px;
  align-content: start;
  font-size: 14px;
}
.footer-col strong {
  color: #fff;
  font-family: var(--display);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: .04em;
}
.footer-col a,
.footer-col span {
  color: rgba(255, 255, 255, .58);
  line-height: 1.5;
}
.footer-col a:hover { color: #fff; }
.footer-bar {
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.footer-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 18px 0 22px;
  font-size: 12px;
  color: rgba(255, 255, 255, .42);
}
.footer-bar-meta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bar a { color: rgba(255, 255, 255, .5); }
.footer-bar a:hover { color: #fff; }
.crumb { padding-top: 24px; color: var(--muted); font-size: 13px; }
.crumb a:hover { color: var(--brand); }
.loading {
  min-height: 50vh; display: grid; place-items: center;
  color: var(--muted); letter-spacing: .08em;
}
.error-box {
  margin: 48px auto; max-width: 560px; padding: 24px;
  border: 1px solid #fecdd3; border-radius: var(--radius); background: #fff1f2;
}

@media (max-width: 1100px) {
  .header-cta .search { display: none; }
  .nav a { padding: 8px 8px; font-size: 13px; }
}

@media (max-width: 980px) {
  .banner-slide.on {
    display: flex; flex-direction: column-reverse; min-height: auto;
  }
  .banner-slide { min-height: auto; }
  .banner-media {
    position: relative; left: auto; right: auto; top: auto; bottom: auto;
    width: 100%; height: 42vh; min-height: 260px;
  }
  .banner-media::after {
    inset: auto 0 0 0; width: auto; height: 72px;
    background: linear-gradient(180deg, transparent, #fffaf8);
  }
  .banner-copy {
    width: 100%; min-height: auto; padding: 32px 24px 44px;
  }
  .metrics, .grid, .grid.cols-2, .detail, .feature-band, .case-card,
  .footer-main, .footer-cols {
    grid-template-columns: 1fr;
  }
  .footer-cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-main { gap: 36px; padding: 44px 0 36px; }
  .case-card .thumb { min-height: 200px; }
  .metric { border-right: 0; border-bottom: 1px solid var(--line); }
  .metric:last-child { border-bottom: 0; }
  .menu-btn { display: inline-flex; }
  .nav-row { position: relative; gap: 12px; }
  .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    margin-top: 0; padding: 12px; background: #fffaf8;
    border: 1px solid var(--line); border-radius: 0 0 12px 12px;
    flex-direction: column; align-items: stretch; gap: 2px;
    justify-content: flex-start;
    box-shadow: var(--shadow); z-index: 50;
  }
  .nav.open { display: flex; }
  .header-cta { gap: 8px; margin-left: auto; }
  .side-card { position: static; }
  .cta-band { padding: 32px 24px; }
  .feature-band .media, .feature-band .media img { min-height: 260px; }
}

@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .brand span { max-width: 9em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .header-cta .btn { display: none; }
  .footer-cols { grid-template-columns: 1fr; }
  .footer-bar-inner { flex-direction: column; align-items: flex-start; }
}
