/* ============================================================
   商家网站演示 · 共用排版基础
   每个行业页只覆盖 :root 变量，不改结构
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3,
h4,
p,
ul,
ol,
figure,
blockquote {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

/* ---------- 布局 ---------- */

.wrap {
  width: min(100% - 48px, 1160px);
  margin-inline: auto;
}

.wrap-narrow {
  width: min(100% - 48px, 780px);
  margin-inline: auto;
}

.section {
  padding-block: clamp(64px, 8vw, 118px);
}

.section-tight {
  padding-block: clamp(44px, 5vw, 72px);
}

/* ---------- 页头 ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(14px);
}

.site-head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.brand small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 30px);
}

.nav a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--muted);
  font-size: 13.5px;
  transition: color 160ms ease-out;
}

.nav a:hover {
  color: var(--ink);
}

.head-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.head-cta,
.nav .head-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  transition: opacity 160ms ease-out;
}

.head-cta:hover {
  opacity: 0.84;
}

/* ---------- 首屏 ---------- */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: center;
  padding-block: clamp(52px, 7vw, 100px);
}

.eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 22px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 26px;
  height: 1px;
  background: var(--accent);
  content: "";
}

.hero h1 {
  max-width: 15em;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4.4vw, 3.9rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.18;
}

.hero h1 em {
  color: var(--accent);
  font-style: normal;
}

.lede {
  max-width: 34em;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(14.5px, 1.4vw, 16.5px);
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border: 1px solid transparent;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 180ms ease-out, opacity 180ms ease-out;
}

.btn:hover {
  transform: translateY(-1px);
  opacity: 0.9;
}

.btn-line {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn-line:hover {
  border-color: var(--ink);
  opacity: 1;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
}

.hero-facts b {
  color: var(--ink);
  font-weight: 500;
}

/* 首屏视觉：纯 CSS，不用假图 */

.hero-art {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 560px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--art-a);
}

.hero-art::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 22%, var(--art-glow) 0%, transparent 52%),
    radial-gradient(circle at 76% 78%, var(--art-glow-2) 0%, transparent 58%),
    linear-gradient(155deg, transparent 42%, rgba(0, 0, 0, 0.28) 100%);
  content: "";
}

.hero-art::after {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 46px 46px;
  content: "";
  mask-image: radial-gradient(circle at 50% 46%, #000 22%, transparent 76%);
}

.art-mark {
  position: absolute;
  right: -0.02em;
  bottom: -0.14em;
  z-index: 1;
  color: rgba(255, 255, 255, 0.1);
  font-family: var(--serif);
  font-size: clamp(7rem, 15vw, 13rem);
  font-weight: 700;
  line-height: 0.8;
  letter-spacing: -0.06em;
  pointer-events: none;
}

.art-tag {
  position: absolute;
  z-index: 2;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.26);
  color: #fff;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  backdrop-filter: blur(3px);
}

.art-tag.tl {
  top: 18px;
  left: 18px;
}

.art-tag.br {
  right: 18px;
  bottom: 18px;
}

.art-quote {
  position: absolute;
  z-index: 2;
  right: 22px;
  bottom: 62px;
  left: 22px;
  color: #fff;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.9vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.5;
  text-wrap: balance;
}

/* ---------- 区块标题 ---------- */

.sec-head {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(18px, 4vw, 56px);
  align-items: end;
  margin-bottom: clamp(32px, 4.4vw, 56px);
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.sec-num {
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
}

.sec-head h2 {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.1vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.22;
}

.sec-head p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.85;
}

/* ---------- 菜品 / 服务卡 ---------- */

.menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.menu-item {
  display: grid;
  gap: 10px;
  padding: clamp(20px, 2.6vw, 30px);
  background: var(--bg);
  transition: background 200ms ease-out;
}

/* 条目为奇数时，最后一条占满整行，避免右下角露出空底色 */
.menu-grid > :last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.menu-item:hover {
  background: var(--surface);
}

.menu-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.menu-top h3 {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.7vw, 1.32rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.menu-price {
  flex-shrink: 0;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
}

.menu-item p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
}

.menu-note {
  justify-self: start;
  display: inline-block;
  margin-top: 4px;
  padding: 3px 8px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}

/* ---------- 三栏特色 ---------- */

.trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
}

.trio-item {
  display: grid;
  gap: 10px;
  padding-top: 18px;
  border-top: 2px solid var(--accent);
}

.trio-item strong {
  font-family: var(--serif);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  font-weight: 700;
}

.trio-item span {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
}

.trio-item i {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.14em;
}

/* ---------- 深色带 ---------- */

.band {
  background: var(--band-bg);
  color: var(--band-ink);
}

.band .sec-head {
  border-bottom-color: var(--band-line);
}

.band .sec-head p,
.band .sec-num {
  color: var(--band-muted);
}

.band .trio-item {
  border-top-color: var(--band-accent, var(--accent));
}

.band .trio-item strong {
  color: var(--band-ink);
}

.band .trio-item span {
  color: var(--band-muted);
}

.band .trio-item i {
  color: var(--band-accent, var(--accent));
}

.band .step {
  border-bottom-color: var(--band-line);
}

.band .step:first-child {
  border-top-color: var(--band-line);
}

.band .step b {
  color: var(--band-accent, var(--accent));
}

.band .step h3 {
  color: var(--band-ink);
}

.band .step p,
.band .step span {
  color: var(--band-muted);
}

.band blockquote {
  max-width: 22em;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.4vw, 2.9rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.3;
  text-wrap: balance;
}

.band blockquote em {
  color: var(--band-accent, var(--accent));
  font-style: normal;
}

/* ---------- 流程 ---------- */

.steps {
  display: grid;
  gap: 0;
}

.step {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: clamp(14px, 2.4vw, 30px);
  align-items: baseline;
  padding-block: 22px;
  border-bottom: 1px solid var(--line);
}

.step:first-child {
  border-top: 1px solid var(--line);
}

.step b {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
}

.step h3 {
  font-size: 15.5px;
  font-weight: 600;
}

.step p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.75;
}

.step span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  white-space: nowrap;
}

/* ---------- 表单 ---------- */

.book {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(24px, 4vw, 60px);
  align-items: start;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field {
  display: grid;
  gap: 7px;
}

.field-full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--surface);
  font-size: 14px;
  appearance: none;
  transition: border-color 160ms ease-out;
}

.field textarea {
  min-height: 92px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--accent);
  outline: none;
}

.form-note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.form-ok {
  display: none;
  margin-top: 14px;
  padding: 13px 15px;
  border: 1px solid var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  font-size: 13.5px;
}

.form-ok.is-on {
  display: block;
}

/* ---------- 信息表 ---------- */

.info-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.info-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 16px;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
  font-size: 13.5px;
}

.info-row dt,
.info-row .k {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  padding-top: 4px;
  text-transform: uppercase;
}

.info-row .v {
  line-height: 1.7;
}

/* ---------- 页脚 ---------- */

.site-foot {
  padding-block: 40px 34px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.foot-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.foot-brand {
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
}

.foot-meta {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  line-height: 2;
  text-align: right;
}

.demo-note {
  margin-top: 26px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.8;
}

.demo-note b {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- 进场动画 ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 620ms ease-out, transform 620ms ease-out;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ---------- 响应式 ---------- */

@media (max-width: 940px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-block: 40px 54px;
  }

  .hero-art {
    order: -1;
    aspect-ratio: 16 / 11;
    max-height: 340px;
  }

  .hero-art.has-photo {
    aspect-ratio: 1 / 1;
    max-height: 430px;
  }

  .art-mark {
    font-size: 8rem;
  }

  .sec-head,
  .book {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .sec-head h2 {
    font-size: clamp(1.5rem, 5vw, 2.1rem);
  }

  .trio {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .menu-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .wrap,
  .wrap-narrow {
    width: calc(100% - 36px);
  }

  .nav {
    display: none;
  }

  .head-cta {
    padding: 9px 13px;
    font-size: 12.5px;
    min-height: 40px;
  }

  .site-head-inner {
    min-height: 60px;
  }

  .hero h1 {
    font-size: clamp(1.85rem, 8.4vw, 2.5rem);
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .hero-facts {
    gap: 8px 18px;
    font-size: 10px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .step {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .step span {
    display: none;
  }

  .info-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .info-row .k {
    padding-top: 0;
  }

  .foot-meta {
    text-align: left;
  }

  .art-quote {
    right: 16px;
    bottom: 52px;
    left: 16px;
    font-size: 1rem;
  }

  .hero-art.has-photo .art-quote {
    font-size: 1.05rem;
  }
}

/* ---------- FAQ 折叠区 ---------- */

.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-block: 18px;
  cursor: pointer;
  font-size: 15.5px;
  font-weight: 600;
  list-style: none;
  transition: color 160ms ease-out;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  flex-shrink: 0;
  color: var(--accent);
  content: "+";
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 400;
  line-height: 1;
}

.faq details[open] summary::after {
  content: "−";
}

.faq summary:hover {
  color: var(--accent);
}

.faq details p {
  max-width: 62em;
  padding-bottom: 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

/* ---------- 首屏第三按钮（导航类） ---------- */

.btn-ghost {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
  padding-inline: 4px;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 6px;
}

.btn-ghost:hover {
  color: var(--ink);
  text-decoration-color: var(--accent);
  transform: none;
  opacity: 1;
}

@media (max-width: 720px) {
  .faq summary {
    font-size: 14.5px;
    padding-block: 16px;
  }
}

/* ---------- 首屏真实照片 ---------- */

.hero-art.has-photo::before,
.hero-art.has-photo::after {
  display: none;
}

.hero-art.has-photo > img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 900ms var(--ease, ease-out);
}

.hero-art.has-photo:hover > img {
  transform: scale(1.03);
}

.art-mask {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.28) 0%, rgba(0, 0, 0, 0.04) 36%, rgba(0, 0, 0, 0.72) 100%);
}

.hero-art.has-photo .art-tag,
.hero-art.has-photo .art-quote {
  z-index: 2;
}

/* ---------- 现场图片区 ---------- */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(12px, 1.6vw, 18px);
}

.gallery figure {
  display: block;
}

.gallery img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: filter 400ms ease-out;
}

.gallery figure:hover img {
  filter: brightness(1.04);
}

.gallery figcaption {
  margin-top: 11px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  line-height: 1.7;
}

.gallery figcaption b {
  color: var(--ink);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
}

@media (max-width: 560px) {
  .gallery {
    grid-template-columns: 1fr 1fr;
  }

  .gallery img {
    aspect-ratio: 1 / 1;
    align-self: start;
  }

  /* 单数时最后一张占满整行，横构图更好看 */
  .gallery > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .gallery > :last-child:nth-child(odd) img {
    aspect-ratio: 16 / 10;
  }
}
