:root {
  --bg: #f6f1e8;
  --bg-tint: #efe7da;
  --surface: #fffdf9;
  --ink: #221f1b;
  --muted: #6b6259;
  --line: #e2d8c8;
  --gold: #a8792a;
  --gold-soft: #d9b25a;
  --btn: #221f1b;
  --btn-ink: #fbf8f2;
  --shadow: 0 18px 40px -18px rgba(60, 40, 20, 0.45), 0 4px 10px -4px rgba(60, 40, 20, 0.2);
  --radius: 14px;
  --wrap: 1120px;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: -apple-system, "SF Pro Text", "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;

  /* 各种金属的流光渐变 */
  --metal-gold: linear-gradient(115deg, #7a5418 0%, #d9b25a 16%, #fff1bf 30%, #c9973a 42%, #8c6421 54%, #e8c877 68%, #fff3c9 80%, #a77a2c 100%);
  --metal-silver: linear-gradient(115deg, #6f767d 0%, #c9ced4 16%, #ffffff 30%, #a7aeb5 42%, #7d848b 54%, #dfe3e7 68%, #ffffff 80%, #8c939a 100%);
  --metal-rose: linear-gradient(115deg, #8a4f3e 0%, #e2a894 16%, #ffe3d8 30%, #c98a74 42%, #9a5b48 54%, #f0bfae 68%, #fff0e9 80%, #a8695a 100%);
  --metal-copper: linear-gradient(115deg, #6d3415 0%, #d48552 16%, #ffd2b0 30%, #b4612f 42%, #7d3f1d 54%, #e9a273 68%, #ffdcc2 80%, #94502a 100%);
  /* 标题里的金字：比卡片上的金属暗一些，浅色背景上也读得清 */
  --metal-text: linear-gradient(110deg, #7a5418 0%, #a8792a 25%, #d4a94f 45%, #8c6421 60%, #b8862e 80%, #7a5418 100%);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #171513;
    --bg-tint: #1f1c19;
    --surface: #24211d;
    --ink: #f1ebe1;
    --muted: #a59b8f;
    --line: #363029;
    --gold: #e0b862;
    --metal-text: linear-gradient(110deg, #c9973a 0%, #f2d98c 30%, #fff1bf 45%, #d9b25a 65%, #f2d98c 85%, #c9973a 100%);
    --btn: #f1ebe1;
    --btn-ink: #171513;
    --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.8), 0 4px 10px -4px rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; margin: 0; }
h2 { font-size: clamp(30px, 4vw, 44px); }
h3 { font-size: 21px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 10;
  background: var(--btn); color: var(--btn-ink); padding: 8px 14px; border-radius: 8px;
}
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* 按钮 */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; border: 1px solid var(--btn);
  background: var(--btn); color: var(--btn-ink); text-decoration: none;
  font-weight: 600; font-size: 16px; transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); box-shadow: none; }
.btn-small { padding: 9px 18px; font-size: 14px; }

/* 顶栏 */
.nav {
  position: sticky; top: 0; z-index: 5;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand {
  display: flex; align-items: center; gap: 8px; text-decoration: none;
  font-family: var(--serif); font-weight: 600; font-size: 21px;
}
.brand-mark { width: 20px; height: 20px; fill: var(--gold-soft); }
.nav-links { display: flex; gap: 24px; margin-left: auto; font-size: 15px; }
.nav-links a { text-decoration: none; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }

/* 首屏 */
.hero { padding: 64px 0 40px; overflow: hidden; }
.hero + .section { padding-top: 56px; }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow { margin: 0 0 18px; font-size: 14px; font-weight: 600; letter-spacing: 0.04em; color: var(--gold); }
.hero h1 { font-size: clamp(42px, 6vw, 68px); }
.gilt {
  font-style: italic; font-weight: 500;
  background: var(--metal-text); background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 7s ease-in-out infinite;
}
.lede { margin: 22px 0 0; font-size: 19px; color: var(--muted); max-width: 33em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.trust { margin: 22px 0 0; font-size: 14px; color: var(--muted); }

.hero-cards { position: relative; height: 480px; }
.foil-card.hero-card { position: absolute; width: 56%; top: 50%; left: 50%; }
.hero-left { --base: translate(-92%, -46%) rotate(-9deg); }
.hero-right { --base: translate(-8%, -44%) rotate(8deg); }
.foil-card.hero-front { --base: translate(-50%, -54%); width: 62%; z-index: 2; }
.foil-card.hero-card { transform: var(--base) perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
@media (prefers-reduced-motion: no-preference) {
  .hero-front { animation: float 7s ease-in-out infinite; }
}

/* 带烫金的卡片 */
.foil-card {
  position: relative; display: block; border-radius: 3px; overflow: hidden;
  box-shadow: var(--shadow); background: #fff;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1), box-shadow 0.35s;
  will-change: transform;
}
.foil-card img { width: 100%; height: auto; }
.foil-card .foil, .foil-card .glare { position: absolute; inset: 0; pointer-events: none; }
.foil-card .foil {
  background-image: var(--metal-gold);
  background-size: 260% 260%;
  background-position: var(--px, 30%) var(--py, 30%);
  -webkit-mask: var(--mask) center / 100% 100% no-repeat;
  mask: var(--mask) center / 100% 100% no-repeat;
  transition: background-position 0.35s ease-out;
}
.foil-card[data-foil="silver"] .foil { background-image: var(--metal-silver); }
.foil-card[data-foil="rose"] .foil { background-image: var(--metal-rose); }
.foil-card[data-foil="copper"] .foil { background-image: var(--metal-copper); }
.foil-card .glare {
  background: radial-gradient(circle at var(--gx, 30%) var(--gy, 20%), rgba(255, 255, 255, 0.28), transparent 45%);
  mix-blend-mode: soft-light; opacity: 0; transition: opacity 0.3s;
}
.foil-card:hover .glare, .foil-card.is-tilting .glare { opacity: 1; }
.foil-card.is-tilting { transition: transform 0.08s linear, box-shadow 0.35s; }
.foil-card.is-tilting .foil { transition: none; }
@media (prefers-reduced-motion: no-preference) {
  /* 没有人碰的时候，烫金也会缓缓流光 */
  .foil-card:not(.is-tilting) .foil { animation: sheen 6s ease-in-out infinite; }
}

@keyframes sheen {
  0%, 100% { background-position: 10% 20%; }
  50% { background-position: 90% 80%; }
}
@keyframes float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

/* 区块 */
.section { padding: 96px 0; }
.section-tint { background: var(--bg-tint); }
.section h2 { margin-bottom: 40px; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; margin-bottom: 44px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 0; color: var(--muted); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.step-n {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  font-family: var(--serif); font-weight: 600; color: #3b2a0f;
  background: var(--metal-gold); background-size: 200% 200%; margin-bottom: 18px;
}
.steps h3 { margin-bottom: 8px; }
.steps p { margin: 0; color: var(--muted); font-size: 16px; }

.gallery {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px 28px; align-items: end;
}
.gallery h3 { font-size: 18px; margin-top: 16px; }
.gallery p { margin: 2px 0 0; font-size: 14px; color: var(--muted); }
.gallery-own { align-self: stretch; }
.gallery-own a {
  height: 100%; min-height: 220px; display: grid; place-content: center; justify-items: center; gap: 12px;
  border: 1.5px dashed var(--line); border-radius: var(--radius); text-decoration: none; color: var(--muted);
  font-weight: 600; transition: border-color 0.2s, color 0.2s;
}
.gallery-own a:hover { border-color: var(--gold); color: var(--ink); }
.gallery-own svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.features h3 { font-size: 20px; margin-bottom: 8px; padding-top: 18px; border-top: 2px solid var(--gold-soft); }
.features p { margin: 0; color: var(--muted); font-size: 16px; }

.moments-lede { margin: -24px 0 36px; color: var(--muted); max-width: 46em; }
.occ-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.occ-columns h3 { margin-bottom: 16px; }
.pill-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pill-links a {
  display: inline-block; padding: 8px 15px; border-radius: 999px; background: var(--surface);
  border: 1px solid var(--line); text-decoration: none; font-size: 15px; transition: border-color 0.15s;
}
.pill-links a:hover { border-color: var(--gold); }
@media (max-width: 760px) { .occ-columns { grid-template-columns: 1fr; gap: 32px; } }
.moments { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.moments li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; color: var(--muted); font-size: 16px; }
.moments strong { display: block; color: var(--ink); font-family: var(--serif); font-size: 19px; font-weight: 600; margin-bottom: 4px; }

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 40px 22px 0; position: relative;
  font-family: var(--serif); font-size: 20px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg);
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details p { margin: 0 0 22px; color: var(--muted); }

.final { padding: 88px 0; background: var(--ink); color: var(--bg); }
.final-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.final h2 { font-size: clamp(28px, 3.6vw, 40px); }
.final .btn { background: var(--bg); color: var(--ink); border-color: var(--bg); }

.footer { padding: 28px 0; font-size: 14px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer nav { display: flex; gap: 20px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ink); }

/* 窄屏 */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-cards { height: 400px; max-width: 520px; width: 100%; margin: 0 auto; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .moments { grid-template-columns: repeat(2, 1fr); }
  .section-head { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; }
  .hero { padding: 40px 0 56px; }
  .lede { font-size: 17px; }
  .hero-cards { height: 320px; }
  .foil-card.hero-card { width: 48%; }
  .foil-card.hero-front { width: 54%; }
  .section { padding: 64px 0; }
  .steps, .features, .moments { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .final { padding: 64px 0; }
}

/* ---------- 场合页 /cards/... ---------- */
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs span[aria-current] { color: var(--ink); }

.occ-hero { padding: 40px 0 24px; }
.occ-hero-plain { padding-bottom: 8px; }
.occ-hero h1 { font-size: clamp(36px, 5vw, 56px); }
.occ-hero-inner { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.occ-card { margin: 0; justify-self: center; width: min(100%, 400px); }
.occ-card figcaption { margin-top: 16px; font-size: 14px; color: var(--muted); text-align: center; }
.occ-card figcaption strong { display: block; color: var(--ink); font-family: var(--serif); font-size: 18px; }
.occ-body { padding-top: 24px; padding-bottom: 72px; }
.occ-body p { margin: 0; font-size: 19px; color: var(--muted); }

.messages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.msg {
  display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
}
.msg p { margin: 0; font-family: var(--serif); font-size: 18px; line-height: 1.45; }
.msg a { font-size: 14px; font-weight: 600; color: var(--gold); text-decoration: none; }
.msg a:hover { text-decoration: underline; }

.occ-idea { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.occ-idea h2 { font-size: clamp(26px, 3vw, 34px); margin-bottom: 16px; }
.occ-idea p { margin: 0 0 14px; color: var(--muted); }
.note-muted { font-size: 15px; }
.chips-row { list-style: none; margin: 18px 0 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.chips-row li { padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; }

.occ-group + .occ-group { margin-top: 48px; }
.occ-group h2, .occ-group h3 { font-size: clamp(24px, 2.6vw, 30px); margin-bottom: 20px; }
.occ-links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.occ-links a {
  display: flex; align-items: center; gap: 12px; height: 100%; padding: 10px 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  text-decoration: none; font-size: 15px; font-weight: 500; line-height: 1.3;
  transition: border-color 0.15s, transform 0.15s;
}
.occ-links a:hover { border-color: var(--gold); transform: translateY(-1px); }
.occ-links img { width: 34px; height: auto; flex: none; border-radius: 2px; box-shadow: 0 2px 6px -2px rgba(60, 40, 20, 0.4); }
.occ-index { padding-top: 40px; }
.see-all { margin: 32px 0 0; }
.see-all a { color: var(--gold); font-weight: 600; text-decoration: none; }

@media (max-width: 960px) {
  .occ-hero-inner, .occ-idea { grid-template-columns: 1fr; gap: 32px; }
  .messages { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .messages { grid-template-columns: 1fr; }
  .occ-body p { font-size: 17px; }
  .occ-card { width: min(100%, 320px); }
}
