/* ============================================================
   PEPITA — site styles
   Dark, quiet, gold-restrained. Built to be read on a phone
   at a trade show, in one hand.
   ============================================================ */

:root {
  /* ============================================================
     ① 版面调参区 —— 改这里就够，下面的规则不用动
     每行后面的注释是"改大 / 改小"会发生什么
     ============================================================ */

  /* 页面左右留白：20px（手机）→ 64px（大屏） */
  --pad: clamp(20px, 5vw, 64px);

  /* 内容最大宽度：1280px。想让正文更宽就加到 1440，想更紧凑就减到 1100 */
  --max: 1280px;

  /* 每个大段落上下的留白：72px（手机）→ 148px（大屏）。
     觉得页面太长，把 148 改成 96；觉得挤，改成 180 */
  --section-y: clamp(72px, 11vw, 148px);

  /* 卡片之间的间距 */
  --gap: var(--gap);

  /* ============================================================
     ② 颜色 —— 必须来自 VI，改之前先看 VI-规范摘要
     ============================================================ */
  --bg:        #141514;   /* PEPITA BLACK */
  --bg-2:      #1a1b19;
  --bg-3:      #202120;
  --ink:       #ffffff;   /* PURE WHITE */
  --paper:     #eae5e3;   /* 米白 */
  --muted:     #b2aeb2;   /* PEPITA GRAY LIGHT */
  --muted-2:   #8a878a;
  --gold:      #93796d;   /* 页面里的强调色，实际是 VI 的灰褐 */
  --accent:    #93796d;
  --green:     #1c7157;
  --line:      rgba(234, 229, 227, .14);
  --line-soft: rgba(234, 229, 227, .07);

  /* ============================================================
     ③ 字体 —— 买到 ITC Blair 之后，把它放到第一位即可生效
     ============================================================ */
  --font-sans: "ITC Blair", "Futura", "Avenir Next", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "HarmonyOS Sans", "Helvetica Neue", Helvetica, Arial, "PingFang SC", sans-serif;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.12;
  margin: 0;
}

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

em { font-style: italic; color: var(--ink); }

.label {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 28px;
}

.lead { font-size: clamp(18px, 1.9vw, 21px); color: var(--ink); }

.small { font-size: 14px; color: var(--muted); }

.ph { color: var(--muted-2); }

/* ── nav ─────────────────────────────────────────────────── */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 18px var(--pad);
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease), border-color .4s var(--ease), padding .4s var(--ease);
}

.nav.is-stuck {
  background: rgba(11, 10, 9, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
  padding-top: 12px;
  padding-bottom: 12px;
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
}

.nav__logo { height: 58px; width: auto; }

.nav__links { display: flex; gap: 30px; }

.nav__links a {
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .3s var(--ease);
}

.nav__links a:hover { color: var(--ink); }

.nav__cta {
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  transition: background .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease);
}

.nav__cta:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ── hero ────────────────────────────────────────────────── */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 120px var(--pad) 40px;
  overflow: hidden;
}

.hero__media {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(11,10,9,.72) 0%, rgba(11,10,9,.18) 34%, rgba(11,10,9,.55) 72%, var(--bg) 100%),
    linear-gradient(90deg, rgba(11,10,9,.65) 0%, rgba(11,10,9,0) 55%),
    url("assets/hero.jpg");
  background-size: cover, cover, cover;
  background-position: center, center, 62% 48%;
  transform: scale(1.02);
}

.hero__inner { position: relative; max-width: var(--max); width: 100%; margin: 0 auto; }

.hero__eyebrow {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.hero__word { margin: 0 0 26px; line-height: 0; }
.hero__word img { width: clamp(240px, 46vw, 760px); height: auto; }

.hero__line {
  font-family: var(--font-sans);
  font-size: clamp(15px, 2vw, 21px);
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 10px;
}

.hero__note {
  font-family: var(--font-sans);
  font-size: clamp(10px, 1.1vw, 12px);
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
}

.hero__sub {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--muted);
  max-width: 42ch;
  margin-bottom: 0;
}

.hero__foot {
  position: relative;
  max-width: var(--max);
  width: 100%;
  margin: 56px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--line-soft);
  padding-top: 18px;
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.hero__scroll { color: var(--muted); transition: color .3s var(--ease); }
.hero__scroll:hover { color: var(--gold); }

/* ── shared section ──────────────────────────────────────── */

section { padding: var(--section-y) var(--pad); }

.section-head {
  max-width: var(--max);
  margin: 0 auto clamp(40px, 6vw, 76px);
}

.section-head h2 {
  font-size: clamp(30px, 4.4vw, 56px);
  letter-spacing: .01em;
  max-width: 18ch;
}

/* ── story ───────────────────────────────────────────────── */

.story {
  background: var(--bg-2);
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
  border-top: 1px solid var(--line-soft);
}

.story__media {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--line-soft);
}

.story__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story__pattern {
  aspect-ratio: 3 / 4;
  background-image:
    linear-gradient(180deg, rgba(18,16,14,.55) 0%, rgba(18,16,14,0) 30%, rgba(18,16,14,.55) 100%),
    url("assets/pattern-dark.png");
  background-size: cover, 186px 188px;
  border: 1px solid var(--line-soft);
  position: relative;
  overflow: hidden;
}

.story__pattern::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 50% 40%, rgba(198,161,91,.10), transparent 62%);
}

.story__text h2 {
  font-size: clamp(30px, 4.2vw, 52px);
  margin-bottom: 26px;
}

.story__text .lead { margin-bottom: 22px; }

.story__text p { color: var(--muted); }

.story__text .lead { color: var(--ink); }

/* ── collection ──────────────────────────────────────────── */

.collection { max-width: var(--max); margin: 0 auto; }

.card {
  background: var(--bg-2);
  border: 1px solid var(--line-soft);
  overflow: hidden;
}

.card__img { overflow: hidden; background: #0f0e0c; }

.card__img img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform 1.2s var(--ease), opacity .6s var(--ease);
}

.card:hover .card__img img { transform: scale(1.035); }

.card__body { padding: clamp(24px, 3vw, 40px); }

.card__num {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: .24em;
  color: var(--gold);
  margin-bottom: 14px;
}

.card h3 {
  font-size: clamp(22px, 2.6vw, 32px);
  margin-bottom: 14px;
}

.card p { color: var(--muted); font-size: 16px; }

.card--wide {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: stretch;
  margin-bottom: clamp(20px, 3vw, 32px);
}

.card--wide .card__img img { height: 100%; aspect-ratio: auto; min-height: 320px; }

.card--wide .card__body { display: flex; flex-direction: column; justify-content: center; }

.cards-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}

.tags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 22px 0 0;
}

.tags li {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
}

/* ── material ────────────────────────────────────────────── */

.material { background: var(--bg-2); border-top: 1px solid var(--line-soft); }

.rules {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(24px, 4vw, 56px);
}

.rule { border-top: 1px solid var(--line); padding-top: 26px; }

.rule h3 {
  font-size: clamp(18px, 1.8vw, 21px);
  margin-bottom: 12px;
  color: var(--ink);
}

.rule p { color: var(--muted); font-size: 16px; }

.material__figure {
  max-width: var(--max);
  margin: clamp(48px, 7vw, 88px) auto 0;
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
}

.material__figure img {
  width: 100%;
  aspect-ratio: 5 / 6;
  object-fit: cover;
  object-position: 62% 55%;
  filter: saturate(.92) contrast(1.03) brightness(.94);
}

.material__cap p {
  font-size: clamp(17px, 1.8vw, 20px);
  color: var(--ink);
  max-width: 34ch;
}

.material__cap .small { margin-top: 20px; color: var(--muted-2); font-size: 14px; }

/* ── custom ──────────────────────────────────────────────── */

.custom {
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(198,161,91,.09), transparent 60%),
    var(--bg);
  border-top: 1px solid var(--line-soft);
  text-align: center;
}

.custom__inner { max-width: 760px; margin: 0 auto; }

.custom h2 {
  font-size: clamp(34px, 5.4vw, 68px);
  line-height: 1.05;
  margin-bottom: 30px;
}

.custom .lead { color: var(--muted); margin-bottom: 44px; }

.custom__list {
  list-style: none;
  padding: 0;
  margin: 0 auto 52px;
  max-width: 520px;
  text-align: left;
}

.custom__list li {
  display: flex;
  gap: 20px;
  padding: 16px 0;
  border-top: 1px solid var(--line-soft);
  font-size: 15px;
  letter-spacing: .04em;
}

.custom__list li:last-child { border-bottom: 1px solid var(--line-soft); }

.custom__list span {
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--gold);
  padding-top: 3px;
}

.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: 18px 34px;
  border: 1px solid var(--gold);
  color: var(--gold);
  transition: background .35s var(--ease), color .35s var(--ease);
}

.btn:hover { background: var(--gold); color: #12100e; }

/* ── visit ───────────────────────────────────────────────── */

.visit { border-top: 1px solid var(--line-soft); }

.visit__grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.visit h2 { font-size: clamp(34px, 4.6vw, 58px); margin-bottom: 22px; }

.visit__meta { color: var(--muted); font-size: 16px; line-height: 2; }

.visit__note { padding-top: 44px; }

.visit__note p { color: var(--ink); max-width: 44ch; }

.visit__note a { color: var(--gold); border-bottom: 1px solid rgba(198,161,91,.4); }

/* ── footer ──────────────────────────────────────────────── */

.footer {
  border-top: 1px solid var(--line-soft);
  padding: clamp(40px, 6vw, 72px) var(--pad) 28px;
  background: #080706;
}

.footer__top {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}

.footer__brand { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }

.footer__logo { height: 84px; width: auto; }

.footer__brand p {
  font-family: var(--font-sans);
  letter-spacing: .3em;
  font-size: 14px;
  line-height: 1.9;
  margin: 0;
}

.footer__brand span {
  font-family: var(--font-body);
  letter-spacing: .06em;
  font-size: 12px;
  color: var(--muted-2);
  text-transform: uppercase;
}

.footer__cols { display: flex; gap: clamp(40px, 8vw, 120px); }

.footer h4 {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.footer__cols a, .footer__cols span {
  display: block;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: 8px;
  transition: color .3s var(--ease);
}

.footer__cols a:hover { color: var(--ink); }

.footer__legal {
  max-width: var(--max);
  margin: 56px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted-2);
}

/* ── reveal ──────────────────────────────────────────────── */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ── responsive ──────────────────────────────────────────── */

@media (max-width: 960px) {
  .story { grid-template-columns: 1fr; }
  .story__media {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border: 1px solid var(--line-soft);
}

.story__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story__pattern { aspect-ratio: 16 / 7; order: 2; }
  .story__text { order: 1; }
  .card--wide { grid-template-columns: 1fr; }
  .card--wide .card__img img { min-height: 0; aspect-ratio: 3 / 2; }
  .rules { grid-template-columns: 1fr; gap: 0; }
  .rule { padding: 24px 0; }
  .visit__grid { grid-template-columns: 1fr; }
  .material__figure { grid-template-columns: 1fr; }
  .visit__note { padding-top: 0; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav__links { display: none; }
  .nav { gap: 16px; }
  .cards-2 { grid-template-columns: 1fr; }
  .hero { padding-top: 96px; }
  .hero__foot { flex-direction: column; gap: 10px; align-items: flex-start; }
  .footer__cols { width: 100%; justify-content: space-between; }
}


.collection__more { margin-top: clamp(32px, 4vw, 48px); text-align: center; }

/* ── contact ─────────────────────────────────────────────── */

.contact { border-top: 1px solid var(--line-soft); }

.contact__inner { max-width: var(--max); margin: 0 auto; }

.contact h2 { font-size: clamp(32px, 4.6vw, 56px); margin-bottom: clamp(36px, 5vw, 60px); }

.contact__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.contact__col h4 {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
}

.contact__col a,
.contact__col span {
  display: block;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 8px;
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), color .3s var(--ease);
}

.contact__col a { width: fit-content; }
.contact__col a:hover { color: var(--gold); border-bottom-color: rgba(147,121,109,.5); }

.contact__col .small { margin-top: 14px; color: var(--muted-2); font-size: 13px; }

.contact__qr { text-align: center; }

.contact__qr img {
  width: 156px;
  height: 156px;
  display: block;
  margin: 0 auto 10px;
  background: #fff;
  padding: 8px;
}

.contact__qr span {
  font-family: var(--font-sans);
  font-size: 9.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted-2);
}

@media (max-width: 960px) {
  .contact__grid { grid-template-columns: 1fr 1fr; }
  .contact__qr { grid-column: 1 / -1; text-align: left; }
  .contact__qr img { margin: 0 0 10px; }
}

@media (max-width: 560px) {
  .contact__grid { grid-template-columns: 1fr; }
}

/* ── 首页分类入口 ────────────────────────────────────────── */

.catnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: clamp(28px, 4vw, 44px);
}

.catnav a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 18px;
  transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}

.catnav a span {
  font-size: 10px;
  color: var(--muted-2);
}

.catnav a:hover { color: var(--ink); border-color: var(--gold); }
.catnav a:hover span { color: var(--gold); }


.story__headline {
  font-size: clamp(26px, 3.4vw, 40px);
  letter-spacing: .06em;
  line-height: 1.2;
}

/* ── 材料四大类 ──────────────────────────────────────────── */

.mats {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(24px, 4vw, 56px);
}

.mat { }

.mat__img {
  aspect-ratio: 3 / 2;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.022) 0 10px, transparent 10px 20px),
    var(--bg-3);
  border: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.mat__img span {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.mat__img small { font-size: 9.5px; letter-spacing: .1em; color: #4c4741; }

.mat__body { padding-top: 22px; }

.mat__num {
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: .22em;
  color: var(--gold);
  margin-bottom: 10px;
}

.mat h3 {
  font-size: clamp(19px, 2vw, 24px);
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}

.mat__cn {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: .18em;
  color: var(--muted-2);
}

.mat__body p:last-child { color: var(--muted); font-size: 15px; max-width: 42ch; }

@media (max-width: 760px) {
  .mats { grid-template-columns: 1fr; }
}

/* ── 导航里的联系方式 ────────────────────────────────────── */

.nav__contact { position: relative; }

.nav__contact .nav__cta {
  background: none;
  font-family: var(--font-sans);
  cursor: pointer;
}

.nav__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 268px;
  background: rgba(20,21,20,.97);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  padding: 6px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}

.nav__contact.is-open .nav__panel,
.nav__contact:hover .nav__panel {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.nav__panel a,
.nav__panelrow {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 11px 18px;
  font-size: 13px;
  color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
}

.nav__panel a:last-child,
.nav__panelrow:last-child { border-bottom: 0; }

.nav__panel a:hover { background: rgba(255,255,255,.04); }

.nav__panel span {
  font-family: var(--font-sans);
  font-size: 9px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
}
