/* ==========================================================================
   御金师 YUJINSHI — Official Homepage
   Design: Award-style luxury jewelry site
   Palette: ink black / champagne gold / ivory
   Fonts: local system serif stack only (no remote fonts)
   ========================================================================== */

:root {
  --ink: #0b0908;
  --ink-soft: #141110;
  --ink-card: #17130f;
  --gold: #c9a15e;
  --gold-bright: #e3c27e;
  --gold-dim: rgba(201, 161, 94, 0.35);
  --ivory: #f2ecdf;
  --ivory-dim: rgba(242, 236, 223, 0.62);
  --line: rgba(201, 161, 94, 0.22);
  --serif-zh: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --serif-en: "Didot", "Bodoni MT", "Playfair Display", "Georgia", "Times New Roman", serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--ink);
  color: var(--ivory);
  font-family: var(--serif-zh);
  font-weight: 400;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--gold); color: var(--ink); }

/* ---------- utility ---------- */
.container { width: min(1240px, 90vw); margin: 0 auto; }

.en { font-family: var(--serif-en); }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: var(--serif-en);
}
.kicker::before {
  content: "";
  width: 44px;
  height: 1px;
  background: var(--gold-dim);
}

.section-head { margin-bottom: 56px; }
.section-head h2 {
  margin-top: 18px;
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.3;
}
.section-head .sub {
  margin-top: 14px;
  color: var(--ivory-dim);
  font-size: 15px;
  letter-spacing: 0.08em;
  max-width: 560px;
}

/* reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.12s; }
.reveal.d2 { transition-delay: 0.24s; }
.reveal.d3 { transition-delay: 0.36s; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.5s var(--ease), border-color 0.5s var(--ease),
    padding 0.5s var(--ease);
  border-bottom: 1px solid transparent;
  padding: 26px 0;
}
.site-header.scrolled {
  background: rgba(11, 9, 8, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  padding: 14px 0;
}

.nav-inner {
  width: min(1360px, 94vw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand { display: flex; align-items: center; gap: 12px; }
.brand .logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(201, 161, 94, 0.35));
}
.brand .name {
  font-size: 20px;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  font-weight: 600;
}
.brand .name small {
  display: block;
  font-family: var(--serif-en);
  font-size: 9px;
  letter-spacing: 0.52em;
  color: var(--gold);
  font-weight: 400;
  text-align: center;
  margin-top: -3px;
}

.nav-links { display: flex; gap: 44px; }
.nav-links li { flex: none; }
.nav-links .en { display: none; }
.nav-links a {
  position: relative;
  font-size: 14px;
  letter-spacing: 0.28em;
  text-indent: 0.28em;
  color: var(--ivory-dim);
  padding: 6px 0;
  transition: color 0.3s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.nav-links a:hover { color: var(--ivory); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.nav-cta {
  font-size: 13px;
  letter-spacing: 0.24em;
  text-indent: 0.24em;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  padding: 10px 26px;
  background: transparent;
  transition: background 0.4s, color 0.4s;
}
.nav-cta:hover { background: var(--gold); color: var(--ink); }

/* hamburger */
.menu-btn {
  display: none;
  width: 42px; height: 42px;
  background: transparent;
  border: 1px solid var(--line);
  position: relative;
  z-index: 120;
}
.menu-btn span {
  position: absolute;
  left: 11px; right: 11px;
  height: 1.5px;
  background: var(--gold);
  transition: transform 0.4s var(--ease), opacity 0.3s, top 0.4s var(--ease);
}
.menu-btn span:nth-child(1) { top: 14px; }
.menu-btn span:nth-child(2) { top: 20px; }
.menu-btn span:nth-child(3) { top: 26px; }
body.menu-open .menu-btn span:nth-child(1) { top: 20px; transform: rotate(45deg); }
body.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
body.menu-open .menu-btn span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

/* mobile drawer */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(11, 9, 8, 0.97);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 10vw;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s var(--ease);
}
body.menu-open .mobile-menu { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  font-size: clamp(26px, 7vw, 40px);
  letter-spacing: 0.24em;
  padding: 18px 0;
  border-bottom: 1px solid rgba(201, 161, 94, 0.14);
  color: var(--ivory);
  display: flex;
  align-items: baseline;
  gap: 18px;
  transform: translateY(24px);
  opacity: 0;
  transition: transform 0.6s var(--ease), opacity 0.6s var(--ease);
}
body.menu-open .mobile-menu a { transform: none; opacity: 1; }
body.menu-open .mobile-menu li:nth-child(1) a { transition-delay: 0.08s; }
body.menu-open .mobile-menu li:nth-child(2) a { transition-delay: 0.14s; }
body.menu-open .mobile-menu li:nth-child(3) a { transition-delay: 0.2s; }
body.menu-open .mobile-menu li:nth-child(4) a { transition-delay: 0.26s; }
body.menu-open .mobile-menu li:nth-child(5) a { transition-delay: 0.32s; }
body.menu-open .mobile-menu li:nth-child(6) a { transition-delay: 0.38s; }
body.menu-open .mobile-menu li:nth-child(7) a { transition-delay: 0.44s; }
.mobile-menu a .en {
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--gold);
  text-transform: uppercase;
}
.mobile-menu .menu-foot {
  margin-top: 40px;
  color: var(--ivory-dim);
  font-size: 13px;
  letter-spacing: 0.14em;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url("../images/hero.jpg") center / cover no-repeat;
  transform: scale(1.06);
  animation: heroZoom 2.4s var(--ease) forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero-logo {
  position: absolute;
  left: 74.8%;
  top: 49.5%;
  transform: translate(-50%, -50%);
  width: clamp(220px, 23vw, 400px);
  opacity: 0.9;
  pointer-events: none;
  filter: drop-shadow(0 0 46px rgba(201, 162, 39, 0.35));
  z-index: 1;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(11, 9, 8, 0.92) 0%,
    rgba(11, 9, 8, 0.55) 45%,
    rgba(11, 9, 8, 0.15) 100%
  );
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(1240px, 90vw);
  margin: 0 auto;
  padding: 140px 0 100px;
}
.hero .kicker { animation: fadeUp 1.2s var(--ease) 0.2s both; }
.hero h1 {
  margin-top: 28px;
  font-size: clamp(42px, 7.2vw, 96px);
  font-weight: 500;
  line-height: 1.24;
  letter-spacing: 0.1em;
  animation: fadeUp 1.2s var(--ease) 0.4s both;
}
.hero h1 .gold {
  color: var(--gold-bright);
  display: block;
  font-size: 0.52em;
  letter-spacing: 0.34em;
  margin-top: 18px;
  font-weight: 400;
}
.hero p.lead {
  margin-top: 30px;
  max-width: 480px;
  color: var(--ivory-dim);
  font-size: clamp(14px, 1.4vw, 16px);
  letter-spacing: 0.12em;
  animation: fadeUp 1.2s var(--ease) 0.6s both;
}
.hero-actions {
  margin-top: 46px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  animation: fadeUp 1.2s var(--ease) 0.8s both;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 15px 38px;
  font-size: 14px;
  letter-spacing: 0.26em;
  text-indent: 0.26em;
  border: 1px solid var(--gold);
  transition: background 0.45s, color 0.45s, border-color 0.45s;
}
.btn-solid { background: var(--gold); color: var(--ink); }
.btn-solid:hover { background: transparent; color: var(--gold); }
.btn-ghost { background: transparent; color: var(--ivory); border-color: rgba(242,236,223,0.35); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); }

/* vertical text accent */
.hero-vertical {
  position: absolute;
  right: 4.5vw;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  writing-mode: vertical-rl;
  letter-spacing: 0.6em;
  font-size: 13px;
  color: var(--gold);
  border-left: 1px solid var(--line);
  padding-left: 22px;
  height: 220px;
  animation: fadeUp 1.4s var(--ease) 1s both;
}

.scroll-hint {
  position: absolute;
  left: 5vw;
  bottom: 34px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--serif-en);
  font-size: 10px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  animation: fadeUp 1.4s var(--ease) 1.1s both;
}
.scroll-hint::after {
  content: "";
  width: 70px;
  height: 1px;
  background: var(--gold);
  animation: scrollLine 2.2s ease-in-out infinite;
  transform-origin: left;
}
@keyframes scrollLine {
  0%, 100% { transform: scaleX(0.3); opacity: 0.4; }
  50% { transform: scaleX(1); opacity: 1; }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: none; }
}

/* ==========================================================================
   Marquee strip
   ========================================================================== */
.marquee {
  border-block: 1px solid var(--line);
  background: var(--ink-soft);
  overflow: hidden;
  padding: 20px 0;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}
.marquee-track span {
  font-family: var(--serif-en);
  font-size: 13px;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
  padding: 0 34px;
  display: flex;
  align-items: center;
  gap: 68px;
}
.marquee-track span::after { content: "◆"; font-size: 8px; opacity: 0.6; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ==========================================================================
   Philosophy
   ========================================================================== */
.philosophy { padding: clamp(90px, 12vw, 160px) 0; }
.philo-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.philo-text h2 {
  margin-top: 20px;
  font-size: clamp(30px, 3.6vw, 48px);
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.4;
}
.philo-text .quote {
  margin-top: 30px;
  padding-left: 22px;
  border-left: 1px solid var(--gold);
  color: var(--gold-bright);
  font-size: clamp(16px, 1.6vw, 19px);
  letter-spacing: 0.18em;
  line-height: 2.1;
}
.philo-text p.body {
  margin-top: 26px;
  color: var(--ivory-dim);
  font-size: 15px;
  letter-spacing: 0.06em;
}
.philo-stats {
  margin-top: 46px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.stat .num {
  font-family: var(--serif-en);
  font-size: clamp(30px, 3vw, 44px);
  color: var(--gold-bright);
  line-height: 1;
}
.stat .num sup { font-size: 0.5em; color: var(--gold); }
.stat .label {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--ivory-dim);
}

.philo-visual { position: relative; }
.philo-visual .frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 3.6;
}
.philo-visual .frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.philo-visual:hover .frame img { transform: scale(1.05); }
.philo-visual .frame::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(201, 161, 94, 0.4);
  pointer-events: none;
}
.philo-visual .tag {
  position: absolute;
  left: -30px;
  bottom: 48px;
  background: var(--gold);
  color: var(--ink);
  padding: 16px 26px;
  font-size: 14px;
  letter-spacing: 0.3em;
  writing-mode: vertical-rl;
}

/* ==========================================================================
   Collections
   ========================================================================== */
.collections {
  padding: clamp(90px, 12vw, 160px) 0;
  background: linear-gradient(to bottom, var(--ink) 0%, var(--ink-soft) 50%, var(--ink) 100%);
}
.col-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.col-head .link-more {
  font-size: 13px;
  letter-spacing: 0.3em;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--gold-dim);
  transition: gap 0.4s var(--ease), color 0.3s;
}
.col-head .link-more:hover { gap: 20px; color: var(--gold-bright); }

.product-grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.product-card { position: relative; }
.product-card .ph {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--ink-card);
}
.product-card .ph img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease), filter 0.8s;
  filter: brightness(0.94);
}
.product-card:hover .ph img { transform: scale(1.07); filter: brightness(1.02); }
.product-card .ph .veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11,9,8,0.72), transparent 45%);
  opacity: 0;
  transition: opacity 0.6s;
}
.product-card:hover .ph .veil { opacity: 1; }
.product-card .ph .quick {
  position: absolute;
  left: 16px; right: 16px; bottom: 16px;
  text-align: center;
  padding: 12px 0;
  border: 1px solid rgba(242, 236, 223, 0.5);
  color: var(--ivory);
  font-size: 12px;
  letter-spacing: 0.34em;
  text-indent: 0.34em;
  backdrop-filter: blur(6px);
  transform: translateY(14px);
  opacity: 0;
  transition: transform 0.55s var(--ease), opacity 0.55s;
}
.product-card:hover .ph .quick { transform: none; opacity: 1; }
.product-card .meta { margin-top: 18px; }
.product-card .meta h3 {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.16em;
}
.product-card .meta .en {
  margin-top: 4px;
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
}
.product-card .meta .price {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ivory-dim);
  letter-spacing: 0.1em;
}
.product-card .idx {
  position: absolute;
  top: -34px;
  right: 0;
  font-family: var(--serif-en);
  font-size: 13px;
  color: var(--gold-dim);
  letter-spacing: 0.2em;
}

/* ==========================================================================
   Craft
   ========================================================================== */
.craft { padding: clamp(90px, 12vw, 170px) 0; }
.craft-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.craft-visual { position: relative; }
.craft-visual .main {
  overflow: hidden;
  aspect-ratio: 3 / 2;
}
.craft-visual .main img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.craft-visual:hover .main img { transform: scale(1.04); }
.craft-visual .badge {
  position: absolute;
  right: -28px;
  top: -34px;
  width: 118px;
  height: 118px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--ink);
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.2em;
  line-height: 1.9;
  animation: spinSlow 26s linear infinite;
}
@keyframes spinSlow { to { transform: rotate(360deg); } }
.craft-visual .badge b {
  display: block;
  font-family: var(--serif-en);
  font-size: 26px;
  color: var(--gold-bright);
  font-weight: 500;
}

.craft-text h2 {
  margin-top: 20px;
  font-size: clamp(30px, 3.6vw, 46px);
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1.4;
}
.craft-text p {
  margin-top: 24px;
  color: var(--ivory-dim);
  font-size: 15px;
  letter-spacing: 0.06em;
}
.craft-list { margin-top: 36px; display: grid; gap: 0; }
.craft-list li {
  display: flex;
  align-items: baseline;
  gap: 22px;
  padding: 18px 0;
  border-top: 1px solid rgba(201, 161, 94, 0.16);
}
.craft-list li:last-child { border-bottom: 1px solid rgba(201, 161, 94, 0.16); }
.craft-list .step {
  font-family: var(--serif-en);
  color: var(--gold);
  font-size: 13px;
  letter-spacing: 0.14em;
  min-width: 36px;
}
.craft-list h3 {
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.2em;
}
.craft-list small {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--ivory-dim);
  letter-spacing: 0.06em;
  font-weight: 400;
}

/* ==========================================================================
   Heritage timeline
   ========================================================================== */
.heritage {
  padding: clamp(90px, 12vw, 160px) 0;
  background: var(--ink-soft);
  border-block: 1px solid var(--line);
}
.timeline {
  margin-top: 70px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0; right: 0;
  height: 1px;
  background: var(--gold-dim);
}
.t-item { position: relative; padding-top: 44px; }
.t-item::before {
  content: "";
  position: absolute;
  top: 4px; left: 0;
  width: 11px; height: 11px;
  border: 1px solid var(--gold);
  background: var(--ink-soft);
  transform: rotate(45deg);
}
.t-item .year {
  font-family: var(--serif-en);
  font-size: clamp(26px, 2.6vw, 38px);
  color: var(--gold-bright);
  line-height: 1;
}
.t-item h3 {
  margin-top: 14px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.18em;
}
.t-item p {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--ivory-dim);
  letter-spacing: 0.04em;
}

/* ==========================================================================
   Visit / CTA banner
   ========================================================================== */
.visit {
  position: relative;
  padding: clamp(100px, 14vw, 180px) 0;
  text-align: center;
  overflow: hidden;
}
.visit::before {
  content: "御金師";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: clamp(160px, 30vw, 420px);
  color: rgba(201, 161, 94, 0.05);
  letter-spacing: 0.1em;
  pointer-events: none;
  white-space: nowrap;
}
.visit .kicker { justify-content: center; }
.visit .kicker::after {
  content: "";
  width: 44px; height: 1px;
  background: var(--gold-dim);
}
.visit h2 {
  margin-top: 20px;
  font-size: clamp(30px, 4.4vw, 56px);
  font-weight: 500;
  letter-spacing: 0.14em;
  line-height: 1.5;
}
.visit p {
  margin: 24px auto 0;
  max-width: 520px;
  color: var(--ivory-dim);
  font-size: 15px;
  letter-spacing: 0.1em;
}
.visit .btn { margin-top: 44px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--line);
  background: #080606;
  padding: 74px 0 34px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 44px;
}
.f-brand .logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: 16px;
  opacity: 0.95;
}
.f-brand .name {
  font-size: 24px;
  letter-spacing: 0.34em;
  font-weight: 600;
}
.f-brand .en {
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: 0.5em;
  color: var(--gold);
  text-transform: uppercase;
}
.f-brand p {
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--ivory-dim);
  letter-spacing: 0.06em;
  max-width: 300px;
}
.f-col h5 {
  font-size: 13px;
  letter-spacing: 0.34em;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 22px;
}
.f-col li { margin-bottom: 13px; }
.f-col a {
  font-size: 13.5px;
  color: var(--ivory-dim);
  letter-spacing: 0.1em;
  transition: color 0.3s, padding-left 0.35s var(--ease);
}
.f-col a:hover { color: var(--gold-bright); padding-left: 6px; }
.f-contact li {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 13.5px;
  color: var(--ivory-dim);
  letter-spacing: 0.06em;
}
.f-contact .k {
  color: var(--gold);
  min-width: 52px;
  letter-spacing: 0.2em;
}

.footer-bottom {
  margin-top: 60px;
  padding-top: 26px;
  border-top: 1px solid rgba(201, 161, 94, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: rgba(242, 236, 223, 0.4);
  letter-spacing: 0.12em;
}

/* back to top */
.to-top {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 90;
  width: 48px; height: 48px;
  border: 1px solid var(--gold-dim);
  background: rgba(11, 9, 8, 0.75);
  color: var(--gold);
  font-size: 18px;
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.4s, transform 0.4s, background 0.3s, color 0.3s;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { background: var(--gold); color: var(--ink); }

/* ==========================================================================
   Responsive — tablet
   ========================================================================== */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .timeline::before { display: none; }
  .philo-grid, .craft-grid { grid-template-columns: 1fr; }
  .philo-visual .tag { left: auto; right: -14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-vertical { display: none; }
}

/* ==========================================================================
   Responsive — mobile
   ========================================================================== */
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .menu-btn { display: block; }

  .brand .logo { width: 34px; height: 34px; }
  .brand .name { font-size: 17px; letter-spacing: 0.26em; }

  .hero-content { padding: 120px 0 90px; }
  .hero-actions .btn { flex: 1 1 auto; justify-content: center; padding: 14px 20px; }
  .scroll-hint { display: none; }

  .section-head { margin-bottom: 40px; }

  .philo-stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .philo-visual .frame { aspect-ratio: 4 / 4.6; }
  .philo-visual .tag { padding: 12px 16px; bottom: 24px; }

  .product-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .product-card .meta h3 { font-size: 15px; letter-spacing: 0.1em; }
  .product-card .idx { display: none; }

  .craft-visual .badge {
    width: 92px; height: 92px;
    right: 8px; top: -26px;
    font-size: 10px;
  }
  .craft-visual .badge b { font-size: 20px; }

  .timeline { grid-template-columns: 1fr; gap: 36px; margin-top: 50px; }
  .t-item { padding-top: 0; padding-left: 28px; }
  .t-item::before { top: 8px; left: 0; }
  .timeline::before {
    display: block;
    top: 0; bottom: 0;
    left: 5px; right: auto;
    width: 1px; height: auto;
  }

  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; }
  .to-top { right: 16px; bottom: 16px; width: 42px; height: 42px; }
}

@media (max-width: 420px) {
  .product-grid { grid-template-columns: 1fr; }
  .philo-stats { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   WP 主题扩展：跳转链接 / 头部动作 / 搜索栏
   ========================================================================== */
.skip-link {
  position: absolute;
  left: -9999px;
  z-index: 200;
  background: var(--gold);
  color: var(--ink);
  padding: 10px 22px;
  letter-spacing: 0.2em;
}
.skip-link:focus { left: 12px; top: 12px; }

.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-links .en { display: none; }
.nav-links .current-menu-item a,
.nav-links .current_page_item a { color: var(--ivory); }
.nav-links .current-menu-item a::after { transform: scaleX(1); }
/* 锚点板块高亮（JS 依据 URL hash 添加 .active） */
.nav-links a.active { color: var(--ivory); }
.nav-links a.active::after { transform: scaleX(1); transform-origin: left; }
/* 锚点激活时，「首页」等当前态项让位熄灭 */
.nav-links .current-menu-item a.muted { color: var(--ivory-dim); }
.nav-links .current-menu-item a.muted::after { transform: scaleX(0); }

.search-btn {
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--gold);
  display: grid;
  place-items: center;
  transition: border-color 0.3s, background 0.3s, color 0.3s;
}
.search-btn:hover { border-color: var(--gold); }

.search-bar {
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: rgba(11, 9, 8, 0.97);
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.site-header.search-open .search-bar { opacity: 1; pointer-events: auto; transform: none; }
.search-bar form { width: min(720px, 90vw); margin: 0 auto; display: flex; gap: 12px; }
.search-bar input {
  flex: 1;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ivory);
  padding: 12px 18px;
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 0.08em;
  outline: none;
  transition: border-color 0.3s;
}
.search-bar input:focus { border-color: var(--gold); }
.search-bar button {
  background: var(--gold);
  color: var(--ink);
  border: none;
  padding: 0 30px;
  font-size: 13px;
  letter-spacing: 0.3em;
  text-indent: 0.3em;
  transition: background 0.3s;
}
.search-bar button:hover { background: var(--gold-bright); }

/* ==========================================================================
   内页横幅 / 面包屑
   ========================================================================== */
.page-banner {
  padding: 170px 0 60px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(to bottom, var(--ink-soft), var(--ink));
}
.page-banner h1 {
  margin-top: 16px;
  font-size: clamp(30px, 4.4vw, 54px);
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.5;
}
.page-banner .banner-sub {
  margin-top: 14px;
  max-width: 640px;
  color: var(--ivory-dim);
  font-size: 14.5px;
  letter-spacing: 0.06em;
}
.page-banner--article h1 {
  max-width: 900px;
  font-size: clamp(21px, 2.6vw, 32px);
  letter-spacing: 0.08em;
  line-height: 1.6;
}
.article-meta {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  color: var(--ivory-dim);
  font-size: 13px;
  letter-spacing: 0.12em;
}
.article-meta a { color: var(--gold); }
.article-meta a:hover { color: var(--gold-bright); }
.article-meta .dot { color: var(--gold-dim); }

.breadcrumbs { margin-bottom: 24px; }
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--ivory-dim);
}
.breadcrumbs li { display: flex; gap: 10px; align-items: center; }
.breadcrumbs li + li::before { content: "/"; color: var(--gold-dim); }
.breadcrumbs a { color: var(--gold); transition: color 0.3s; }
.breadcrumbs a:hover { color: var(--gold-bright); }

/* ==========================================================================
   分类页签 / 新闻网格 / 卡片 / 分页
   ========================================================================== */
.tabs { display: flex; flex-wrap: wrap; gap: 12px; margin: 44px 0 46px; }
.tab {
  padding: 10px 26px;
  border: 1px solid var(--line);
  font-size: 13px;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  color: var(--ivory-dim);
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.tab:hover { color: var(--ivory); border-color: var(--gold-dim); }
.tab.active { background: var(--gold); border-color: var(--gold); color: var(--ink); }

.news-section {
  padding: clamp(90px, 12vw, 160px) 0;
  background: var(--ink-soft);
  border-top: 1px solid var(--line);
}
.news-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.news-list-wrap { padding: 10px 0 120px; }
.news-grid--list { margin-top: 0; }

.post-card {
  background: var(--ink-card);
  border: 1px solid rgba(201, 161, 94, 0.14);
  transition: transform 0.6s var(--ease), border-color 0.4s;
}
.post-card:hover { transform: translateY(-6px); border-color: var(--gold-dim); }
.pc-ph { display: block; overflow: hidden; aspect-ratio: 16 / 10; }
.pc-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.post-card:hover .pc-ph img { transform: scale(1.06); }
.pc-meta { padding: 22px 22px 26px; }
.pc-info {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--ivory-dim);
}
.pc-cat { color: var(--gold); border: 1px solid var(--gold-dim); padding: 2px 10px; font-size: 11px; }
.pc-title { margin-top: 14px; font-size: 17px; font-weight: 500; letter-spacing: 0.06em; line-height: 1.6; }
.pc-title a { transition: color 0.3s; }
.pc-title a:hover { color: var(--gold-bright); }
.pc-excerpt {
  margin-top: 10px;
  font-size: 13.5px;
  color: var(--ivory-dim);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pc-more { margin-top: 16px; display: inline-flex; gap: 10px; font-size: 12px; letter-spacing: 0.26em; color: var(--gold); }
.pc-more:hover { color: var(--gold-bright); }

.posts-pagination { margin-top: 64px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.posts-pagination .page-numbers {
  min-width: 44px; height: 44px;
  display: grid;
  place-items: center;
  padding: 0 10px;
  border: 1px solid var(--line);
  color: var(--ivory-dim);
  font-family: var(--serif-en);
  font-size: 14px;
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}
.posts-pagination .page-numbers:hover { border-color: var(--gold); color: var(--gold); }
.posts-pagination .page-numbers.current { background: var(--gold); border-color: var(--gold); color: var(--ink); }

/* ==========================================================================
   文章正文排版 / 上下篇 / 相关阅读 / CTA
   ========================================================================== */
.article-wrap { padding: 70px 0 110px; }
.article-body {
  font-size: 16px;
  letter-spacing: 0.04em;
  line-height: 2.1;
  color: rgba(242, 236, 223, 0.86);
}
.article-cover { margin-bottom: 46px; }
.article-cover img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article-body h2 { margin: 48px 0 18px; font-size: 26px; letter-spacing: 0.1em; color: var(--ivory); font-weight: 500; }
.article-body h3 { margin: 36px 0 14px; font-size: 20px; letter-spacing: 0.08em; color: var(--gold-bright); font-weight: 500; }
.article-body p { margin-bottom: 20px; }
.article-body img { max-width: 100%; height: auto; }
.article-body a { color: var(--gold); text-decoration: underline; text-underline-offset: 4px; }

.post-nav {
  margin: 64px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}
.post-nav .next { text-align: right; }
.pn-label { display: block; font-size: 11px; letter-spacing: 0.3em; color: var(--gold); margin-bottom: 8px; }
.post-nav a { font-size: 14px; color: var(--ivory-dim); letter-spacing: 0.06em; transition: color 0.3s; }
.post-nav a:hover { color: var(--gold-bright); }

/* 产品详情页翻页：无线、按钮样式、与页脚拉开距离；宽度对齐 .container */
.post-nav--pn { border-top: 0; padding-top: 0; margin: 72px auto 110px; width: min(1240px, 90vw); }
.post-nav--pn .next { text-align: right; }
.pn-btn { padding: 12px 30px; font-size: 13px; letter-spacing: 0.2em; }
.pn-btn--off { opacity: 0.35; pointer-events: none; }

.related { margin-top: 90px; }
.related-title { font-size: 24px; letter-spacing: 0.14em; font-weight: 500; }
.related .news-grid { margin-top: 34px; }

.article-cta {
  margin-top: 80px;
  text-align: center;
  border: 1px solid var(--line);
  padding: 48px 20px;
  background: linear-gradient(135deg, rgba(201, 161, 94, 0.08), transparent);
}
.article-cta p { letter-spacing: 0.14em; color: var(--ivory-dim); margin-bottom: 24px; }

/* ==========================================================================
   404 / 空状态
   ========================================================================== */
.error-404 { padding: 210px 0 170px; text-align: center; }
.error-404 h1 { margin-top: 18px; font-size: clamp(28px, 4vw, 48px); font-weight: 500; letter-spacing: 0.12em; }
.error-404 p { margin-top: 18px; color: var(--ivory-dim); letter-spacing: 0.08em; }
.error-404 .hero-actions { justify-content: center; margin-top: 42px; }
.empty-tip { padding: 80px 0; text-align: center; color: var(--ivory-dim); letter-spacing: 0.1em; }
.empty-tip a { color: var(--gold); }

/* ==========================================================================
   CMS 扩展：臻品系列（列表页 / 详情页）
   ========================================================================== */
.products-list-wrap { padding: 10px 0 120px; }
.product-grid--list { margin-top: 0; }
.product-card .meta h3 a { color: inherit; transition: color 0.3s; }
.product-card .meta h3 a:hover { color: var(--gold-bright); }

.product-detail { padding: 30px 0 100px; }
.product-detail-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: start;
}
.pd-visual { position: relative; margin: 0; }
.pd-visual img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: var(--ink-card);
  border: 1px solid var(--line);
}
.pd-badge {
  position: absolute;
  left: -14px;
  bottom: 28px;
  background: var(--ink);
  border: 1px solid var(--gold-dim);
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.28em;
  padding: 10px 22px;
}
.pd-info .kicker { display: block; }
.pd-info h2 {
  margin-top: 14px;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 500;
  letter-spacing: 0.1em;
}
.pd-en {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ivory-dim);
}
.pd-specs {
  list-style: none;
  margin: 30px 0 0;
  border-top: 1px solid var(--line);
}
.pd-specs li {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
.pd-specs .k { color: var(--ivory-dim); letter-spacing: 0.18em; }
.pd-specs .v { color: var(--ivory); letter-spacing: 0.06em; }
.pd-specs .v.gold { color: var(--gold-bright); }
.pd-intro {
  margin-top: 28px;
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.04em;
  color: rgba(242, 236, 223, 0.82);
}
.pd-intro p { margin-bottom: 14px; }
.pd-intro h2 { font-size: 20px; margin: 28px 0 12px; }
.pd-intro h3 { font-size: 17px; margin: 22px 0 10px; color: var(--gold-bright); }
.pd-actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ==========================================================================
   内页响应式补充
   ========================================================================== */
@media (max-width: 1024px) {
  .news-grid { grid-template-columns: repeat(2, 1fr); }
  .product-detail-grid { grid-template-columns: 1fr; gap: 40px; }
  .pd-visual img { aspect-ratio: 16 / 10; }
}
@media (max-width: 768px) {
  .page-banner { padding: 130px 0 44px; }
  .hero-logo { display: none; }
  .news-grid { grid-template-columns: 1fr; margin-top: 40px; }
  .tabs { margin: 32px 0 36px; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .next { text-align: left; }
  .article-wrap { padding: 50px 0 80px; }
  .search-bar input { padding: 10px 14px; }
  .search-bar button { padding: 0 18px; }
  .product-detail { padding: 10px 0 70px; }
}

/* reduce motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   到店预约弹层
   ========================================================================== */
.book-mask {
  position: fixed; inset: 0; z-index: 96;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(8, 6, 4, 0.78);
  backdrop-filter: blur(6px);
}
.book-mask[hidden] { display: none; }
.book-modal {
  position: relative;
  width: min(560px, 100%);
  max-height: 88vh; overflow-y: auto;
  padding: 42px 38px 34px;
  background: var(--ink-soft);
  border: 1px solid var(--gold-dim);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}
.book-close {
  position: absolute; top: 8px; right: 12px;
  background: none; border: none;
  color: var(--ivory-dim); font-size: 26px; line-height: 1; cursor: pointer;
}
.book-close:hover { color: var(--gold-bright); }
.book-modal h3 { font-size: 22px; font-weight: 500; letter-spacing: 0.14em; color: var(--ivory); }
.book-sub { margin-top: 8px; font-size: 13px; letter-spacing: 0.08em; color: var(--ivory-dim); }
.book-tabs { display: flex; margin: 24px 0 20px; border-bottom: 1px solid var(--line); }
.book-tabs button {
  padding: 10px 26px;
  background: none; border: none; border-bottom: 2px solid transparent;
  color: var(--ivory-dim); font: inherit; font-size: 14px; letter-spacing: 0.1em; cursor: pointer;
}
.book-tabs button.on { color: var(--gold-bright); border-bottom-color: var(--gold); }
.book-modal .field { margin-bottom: 14px; }
.book-modal label { display: block; margin-bottom: 6px; font-size: 12.5px; letter-spacing: 0.1em; color: var(--ivory-dim); }
.book-modal input, .book-modal textarea, .book-modal select {
  width: 100%; padding: 10px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--ivory); font: inherit; font-size: 14px;
}
.book-modal input:focus, .book-modal textarea:focus, .book-modal select:focus {
  outline: none; border-color: var(--gold);
}
.book-modal select option { color: #1a150e; }
.book-row { display: flex; gap: 12px; }
.book-row .field:first-child { flex: 1; }
.book-row .book-title { flex: 0 0 96px; }
.book-msg { margin-top: 16px; font-size: 14px; letter-spacing: 0.04em; }
.book-msg.ok { color: var(--gold-bright); }
.book-msg.err { color: #d99090; }
.book-contact { margin-top: 4px; }
.book-contact li { display: flex; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.book-contact li:last-child { border-bottom: none; }
.book-contact .k { flex: 0 0 84px; letter-spacing: 0.12em; color: var(--gold-dim); }
.book-contact a { color: var(--ivory); border-bottom: 1px solid var(--gold-dim); }
@media (max-width: 560px) {
  .book-modal { padding: 34px 22px 26px; }
  .book-row { flex-direction: column; gap: 0; }
  .book-row .book-title { flex: auto; }
}
