/* ==========================================================================
   一念柏香 · 东方禅意杂志画卷风样式表
   ========================================================================== */

:root {
  --bg-sand: #ECE6DA;
  --bg-paper: #F6F2EA;
  --bg-card: #FBF9F4;
  --ink: #211D19;
  --ink-muted: #685D51;
  --accent: #7C5838;
  --accent-deep: #5E4026;
  --line: rgba(33, 29, 25, 0.12);
  --line-strong: rgba(33, 29, 25, 0.22);

  --font-serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;

  --ease-zen: cubic-bezier(0.22, 1, 0.36, 1);
  --rail-w: 62px;
  --header-h: 66px;
  --filmstrip-h: 96px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-family: var(--font-serif);
  background: linear-gradient(180deg, var(--bg-paper) 0%, var(--bg-sand) 100%);
  color: var(--ink);
  line-height: 1.8;
  letter-spacing: 0.04em;
  overflow-x: hidden;
  min-height: 100vh;
}

body.modal-open {
  overflow: hidden;
}

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

button {
  font-family: inherit;
  color: inherit;
  cursor: pointer;
}

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

/* Subtle rice-paper texture overlay */
.paper-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.is-hidden {
  display: none !important;
}

/* ==========================================================================
   1. Left Ultra-thin Vertical Scale Rail (Desktop)
   ========================================================================== */
.side-rail {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--rail-w);
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0 28px;
  background: rgba(246, 242, 234, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-right: 1px solid var(--line);
}

.seal-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  transition: transform 0.5s var(--ease-zen), opacity 0.4s var(--ease-zen);
}

.seal-mark:hover {
  transform: scale(1.06);
  opacity: 0.9;
}

.rail-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(124, 88, 56, 0.45);
  box-shadow: 0 4px 12px rgba(33, 29, 25, 0.14);
}

.rail-track-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 0;
}

.rail-track {
  position: relative;
  width: 1px;
  height: 100%;
  max-height: 280px;
  background: var(--line);
  overflow: hidden;
}

.rail-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 14%;
  background: var(--accent);
  transition: height 0.75s var(--ease-zen);
}

.rail-counter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.12em;
  font-variant-numeric: tabular-nums;
  color: var(--ink-muted);
}

.rail-current {
  color: var(--ink);
  font-weight: 500;
  font-size: 12px;
}

.rail-slash {
  opacity: 0.35;
  font-size: 10px;
}

/* ==========================================================================
   2. Top Minimal Navigation Bar
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: var(--rail-w);
  right: 0;
  height: var(--header-h);
  z-index: 55;
  background: rgba(246, 242, 234, 0.84);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.4s var(--ease-zen);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.brand-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(124, 88, 56, 0.4);
  box-shadow: 0 2px 8px rgba(33, 29, 25, 0.12);
  flex-shrink: 0;
}

.brand-cn {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--ink);
}

.brand-en {
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  color: var(--ink-muted);
  opacity: 0.78;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  position: relative;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  background: none;
  border: none;
  padding: 6px 0;
  transition: color 0.35s var(--ease-zen);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.45s var(--ease-zen);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--ink);
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.header-tag {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent);
  padding: 5px 12px;
  border: 1px solid rgba(124, 88, 56, 0.26);
  background: rgba(251, 249, 244, 0.65);
  white-space: nowrap;
}

/* Segmented progress bar along bottom edge of header */
.header-segments {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  display: flex;
  gap: 4px;
  padding: 0 2px;
  height: 2px;
}

.header-seg {
  flex: 1;
  border: none;
  padding: 0;
  background: rgba(33, 29, 25, 0.08);
  position: relative;
  overflow: hidden;
  transition: background-color 0.3s ease;
}

.header-seg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.7s var(--ease-zen);
}

.header-seg.is-passed::after,
.header-seg.is-active::after {
  transform: scaleX(1);
}

.header-seg:hover {
  background: rgba(124, 88, 56, 0.22);
}

/* ==========================================================================
   Main Wrapper
   ========================================================================== */
.page-main {
  margin-left: var(--rail-w);
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 44px;
}

/* ==========================================================================
   3. Hero Section (Split & Fullscreen Modes)
   ========================================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding-top: var(--header-h);
  display: flex;
  flex-direction: column;
  background: var(--bg-paper);
  border-bottom: 1px solid var(--line);
}

.hero-stage {
  position: relative;
  flex: 1;
  display: flex;
  min-height: calc(100vh - var(--header-h) - var(--filmstrip-h));
  min-height: calc(100svh - var(--header-h) - var(--filmstrip-h));
}

/* --- Split Mode (Default: 48% Editorial / 52% Visual) --- */
.hero--split .hero-editorial {
  position: relative;
  width: 48%;
  display: flex;
  align-items: center;
  padding: 44px 58px 44px 52px;
  border-right: 1px solid var(--line);
  background: var(--bg-paper);
  z-index: 4;
}

.hero--split .hero-visual {
  position: relative;
  width: 52%;
  overflow: hidden;
  background: var(--bg-sand);
}

/* --- Fullscreen Mode (16:9 / Full-bleed Visual + Floating Left Editorial) --- */
.hero--fullscreen .hero-stage {
  display: block;
}

.hero--fullscreen .hero-visual {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--bg-sand);
}

.hero--fullscreen .hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(246, 242, 234, 0.92) 0%,
    rgba(246, 242, 234, 0.78) 38%,
    rgba(246, 242, 234, 0.18) 68%,
    rgba(246, 242, 234, 0) 100%
  );
}

.hero--fullscreen .hero-editorial {
  position: relative;
  z-index: 5;
  width: min(560px, 52%);
  min-height: calc(100vh - var(--header-h) - var(--filmstrip-h));
  min-height: calc(100svh - var(--header-h) - var(--filmstrip-h));
  display: flex;
  align-items: center;
  padding: 48px 56px 48px 52px;
}

/* Editorial Content & Stagger Animation */
.hero-editorial-inner {
  width: 100%;
  max-width: 480px;
}

.stagger-item {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.62s var(--ease-zen) calc(var(--stagger, 0) * 48ms),
    transform 0.72s var(--ease-zen) calc(var(--stagger, 0) * 48ms);
}

.hero-editorial-inner.is-leaving .stagger-item {
  opacity: 0;
  transform: translateY(-10px);
  transition:
    opacity 0.24s var(--ease-zen) calc(var(--stagger, 0) * 20ms),
    transform 0.24s var(--ease-zen) calc(var(--stagger, 0) * 20ms);
}

.hero-editorial-inner.is-entering .stagger-item {
  opacity: 0;
  transform: translateY(18px);
  transition: none;
}

.hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 12px;
  color: var(--ink-muted);
}

.hero-code {
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--accent);
}

.meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line-strong);
}

.hero-category {
  letter-spacing: 0.12em;
}

.hero-status {
  margin-left: auto;
  font-size: 11px;
  letter-spacing: 0.12em;
  padding: 2px 10px;
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--ink-muted);
}

.hero-status.is-sold {
  opacity: 0.65;
}

.hero-title {
  margin: 0 0 12px;
  font-size: clamp(28px, 2.8vw, 40px);
  font-weight: 400;
  line-height: 1.32;
  letter-spacing: 0.1em;
  color: var(--ink);
}

.hero-subtitle {
  margin: 0 0 22px;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.hero-desc {
  margin: 0 0 30px;
  font-size: 14px;
  line-height: 1.95;
  color: var(--ink-muted);
  text-align: justify;
}

/* 3-Column Specs Strip */
.hero-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 0 34px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  gap: 14px;
}

.spec-cell {
  min-width: 0;
}

.spec-cell + .spec-cell {
  border-left: 1px solid var(--line);
  padding-left: 14px;
}

.spec-cell dt {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-muted);
  opacity: 0.78;
  margin-bottom: 4px;
}

.spec-cell dd {
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Buttons */
.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 13px;
  letter-spacing: 0.16em;
  border: 1px solid transparent;
  transition:
    background-color 0.4s var(--ease-zen),
    color 0.4s var(--ease-zen),
    border-color 0.4s var(--ease-zen),
    transform 0.35s var(--ease-zen);
}

.btn--primary {
  background: var(--ink);
  color: var(--bg-card);
  border-color: var(--ink);
}

.btn--primary:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn--ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(251, 249, 244, 0.7);
  transform: translateY(-1px);
}

.btn--full {
  width: 100%;
}

/* Vertical Decorative Text */
.hero-vertical-text {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  font-size: 12px;
  letter-spacing: 0.55em;
  color: var(--ink-muted);
  opacity: 0.36;
  pointer-events: none;
  user-select: none;
}

/* Visual Canvas: Video + Dual Cross-fade Images */
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 4;
  opacity: 1;
  transition: opacity 0.75s var(--ease-zen);
}

.hero-video.is-faded {
  opacity: 0;
  pointer-events: none;
}

.hero-video-toggle {
  position: absolute;
  top: 20px;
  right: 22px;
  z-index: 8;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink);
  background: rgba(251, 249, 244, 0.84);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(33, 29, 25, 0.16);
  transition:
    background-color 0.35s var(--ease-zen),
    border-color 0.35s var(--ease-zen),
    color 0.35s var(--ease-zen),
    transform 0.35s var(--ease-zen);
}

.hero-video-toggle:hover {
  background: var(--bg-card);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.video-toggle-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero-canvas {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 1;
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition:
    opacity 0.95s var(--ease-zen),
    transform 1.25s var(--ease-zen);
  will-change: opacity, transform;
}

.hero-img.is-active {
  opacity: 1;
  transform: scale(1);
  z-index: 2;
}

.hero-img.is-exiting {
  opacity: 0;
  transform: scale(1.02);
  z-index: 1;
}

/* Afternoon Tree-Shadow Dapple Breathing Overlay */
.hero-dapple {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
  mix-blend-mode: soft-light;
}

.dapple-leaf {
  position: absolute;
  border-radius: 50%;
  filter: blur(42px);
  will-change: transform, opacity;
}

.dapple-leaf--1 {
  width: 58%;
  height: 46%;
  top: -12%;
  right: -10%;
  background: radial-gradient(ellipse at center, rgba(255, 249, 232, 0.55) 0%, rgba(255, 249, 232, 0) 70%);
  animation: dappleBreatheA 11s ease-in-out infinite alternate;
}

.dapple-leaf--2 {
  width: 48%;
  height: 52%;
  bottom: -14%;
  left: -8%;
  background: radial-gradient(ellipse at center, rgba(45, 32, 18, 0.28) 0%, rgba(45, 32, 18, 0) 72%);
  animation: dappleBreatheB 14s ease-in-out infinite alternate;
}

.dapple-leaf--3 {
  width: 36%;
  height: 36%;
  top: 28%;
  left: 24%;
  background: radial-gradient(circle at center, rgba(255, 246, 224, 0.42) 0%, rgba(255, 246, 224, 0) 68%);
  animation: dappleBreatheA 9.5s ease-in-out 1.5s infinite alternate;
}

.dapple-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 248, 232, 0.16) 0%, transparent 48%, rgba(33, 29, 25, 0.1) 100%);
  animation: glowPulse 8s ease-in-out infinite alternate;
}

@keyframes dappleBreatheA {
  0% {
    transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
    opacity: 0.45;
  }
  100% {
    transform: translate3d(-24px, 18px, 0) scale(1.12) rotate(6deg);
    opacity: 0.85;
  }
}

@keyframes dappleBreatheB {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.35;
  }
  100% {
    transform: translate3d(26px, -16px, 0) scale(1.1);
    opacity: 0.72;
  }
}

@keyframes glowPulse {
  0% {
    opacity: 0.55;
  }
  100% {
    opacity: 1;
  }
}

/* Desktop 2.3x Circular Macro Magnifier Loupe */
.hero-loupe {
  position: absolute;
  top: 0;
  left: 0;
  width: 196px;
  height: 196px;
  border-radius: 50%;
  border: 1.5px solid rgba(251, 249, 244, 0.88);
  box-shadow:
    0 18px 42px rgba(33, 29, 25, 0.24),
    0 0 0 1px rgba(124, 88, 56, 0.35),
    inset 0 0 18px rgba(33, 29, 25, 0.08);
  background-repeat: no-repeat;
  background-color: var(--bg-sand);
  pointer-events: none;
  z-index: 12;
  opacity: 0;
  transform: translate3d(-999px, -999px, 0) scale(0.88);
  transition: opacity 0.28s var(--ease-zen), transform 0.28s var(--ease-zen);
  overflow: hidden;
}

.hero-loupe.is-visible {
  opacity: 1;
}

.loupe-badge {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.14em;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(33, 29, 25, 0.62);
  color: var(--bg-card);
  white-space: nowrap;
}

.hero-loupe-hint {
  position: absolute;
  right: 22px;
  bottom: 20px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink);
  background: rgba(251, 249, 244, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--line);
  pointer-events: none;
  transition: opacity 0.35s var(--ease-zen);
}

.hero-loupe-hint.is-dimmed {
  opacity: 0;
}

.loupe-hint-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

/* ==========================================================================
   Bottom Frosted Rice-Paper Filmstrip Switcher
   ========================================================================== */
.filmstrip-bar {
  position: relative;
  z-index: 10;
  height: var(--filmstrip-h);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 28px;
  background: rgba(246, 242, 234, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}

.filmstrip-arrow {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(251, 249, 244, 0.85);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition:
    border-color 0.35s var(--ease-zen),
    background-color 0.35s var(--ease-zen),
    color 0.35s var(--ease-zen),
    transform 0.35s var(--ease-zen);
}

.filmstrip-arrow:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--bg-card);
  transform: scale(1.04);
}

.filmstrip-track {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  padding: 8px 2px;
}

.filmstrip-track::-webkit-scrollbar {
  display: none;
}

.film-item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 210px;
  padding: 7px 12px 7px 7px;
  background: rgba(251, 249, 244, 0.56);
  border: 1px solid var(--line);
  text-align: left;
  transition:
    border-color 0.4s var(--ease-zen),
    background-color 0.4s var(--ease-zen),
    transform 0.4s var(--ease-zen),
    box-shadow 0.4s var(--ease-zen);
}

.film-item:hover {
  background: var(--bg-card);
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.film-item.is-active {
  background: var(--bg-card);
  border-color: var(--accent);
  box-shadow: 0 6px 18px rgba(33, 29, 25, 0.06);
}

.film-thumb {
  width: 48px;
  height: 54px;
  flex-shrink: 0;
  overflow: hidden;
  background: var(--bg-sand);
}

.film-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-zen);
}

.film-item.is-active .film-thumb img,
.film-item:hover .film-thumb img {
  transform: scale(1.06);
}

.film-info {
  min-width: 0;
  flex: 1;
}

.film-num {
  display: block;
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 2px;
}

.film-name {
  display: block;
  font-size: 12px;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.film-sub {
  display: block;
  font-size: 10px;
  color: var(--ink-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0.85;
}

/* ==========================================================================
   4. Section 2: Catalog ("一物一图 · 全部藏品")
   ========================================================================== */
.section {
  padding: 104px 0;
}

.catalog-section {
  background: var(--bg-paper);
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 36px;
}

.section-eyebrow {
  margin: 0 0 8px;
  font-family: var(--font-sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--accent);
}

.section-title {
  margin: 0;
  font-size: clamp(24px, 2.4vw, 32px);
  font-weight: 400;
  letter-spacing: 0.14em;
  color: var(--ink);
}

.section-count,
.section-note {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
}

/* Filter Tabs */
.filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-bottom: 44px;
}

.filter-tab {
  position: relative;
  background: none;
  border: none;
  padding: 8px 2px;
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  transition: color 0.35s var(--ease-zen);
}

.filter-tab::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1.5px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease-zen);
}

.filter-tab:hover,
.filter-tab.is-active {
  color: var(--ink);
}

.filter-tab.is-active::after {
  transform: scaleX(1);
}

/* 3-Column 3:4 Museum Card Grid */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 36px 32px;
}

.item-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 18px 18px 22px;
  cursor: pointer;
  transition:
    transform 0.55s var(--ease-zen),
    border-color 0.45s var(--ease-zen),
    box-shadow 0.55s var(--ease-zen);
}

.item-card:hover {
  transform: translateY(-5px);
  border-color: rgba(124, 88, 56, 0.36);
  box-shadow: 0 18px 40px rgba(33, 29, 25, 0.06);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 11px;
}

.card-code {
  font-family: var(--font-sans);
  letter-spacing: 0.16em;
  color: var(--accent);
  font-weight: 500;
}

.card-status {
  letter-spacing: 0.1em;
  color: var(--ink-muted);
}

.card-status.is-sold {
  opacity: 0.55;
}

.card-media {
  position: relative;
  aspect-ratio: 3 / 4;
  width: 100%;
  overflow: hidden;
  background: var(--bg-sand);
  margin-bottom: 20px;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-zen);
}

.item-card:hover .card-media img {
  transform: scale(1.045);
}

.card-title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.card-subtitle {
  margin: 0 0 16px;
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-muted);
}

.card-more {
  color: var(--accent);
  letter-spacing: 0.12em;
  white-space: nowrap;
}

/* ==========================================================================
   5. Section 3: Craft & Patination Guide ("原籽品相与盘玩建议")
   ========================================================================== */
.craft-section {
  background: var(--bg-sand);
}

.craft-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.craft-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  padding: 36px 30px 34px;
  display: flex;
  flex-direction: column;
}

.craft-index {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-sans);
}

.craft-num {
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.craft-en {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
  opacity: 0.72;
}

.craft-title {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--ink);
}

.craft-body {
  margin: 0 0 24px;
  font-size: 13.5px;
  line-height: 1.95;
  color: var(--ink-muted);
  text-align: justify;
}

.craft-points {
  margin: auto 0 0;
  padding: 18px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.craft-points li {
  position: relative;
  padding-left: 16px;
  font-size: 12.5px;
  color: var(--ink);
  opacity: 0.88;
}

.craft-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 5px;
  height: 1px;
  background: var(--accent);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  margin-left: var(--rail-w);
  background: var(--bg-paper);
  border-top: 1px solid var(--line);
  padding: 34px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.16em;
  color: var(--ink-muted);
}

.footer-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(124, 88, 56, 0.35);
}

.footer-cn {
  color: var(--ink);
  font-weight: 500;
}

.footer-inquiry-link {
  background: none;
  border: none;
  padding: 4px 0;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--accent);
  border-bottom: 1px solid rgba(124, 88, 56, 0.35);
  transition: opacity 0.3s ease;
}

.footer-inquiry-link:hover {
  opacity: 0.75;
}

/* ==========================================================================
   Scroll Reveal (IntersectionObserver)
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.85s var(--ease-zen) var(--reveal-delay, 0ms),
    transform 0.9s var(--ease-zen) var(--reveal-delay, 0ms);
}

.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   6. Dual Modals (Detail Appreciation & WeChat Inquiry)
   ========================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.38s var(--ease-zen), visibility 0.38s var(--ease-zen);
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(33, 29, 25, 0.52);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal-dialog {
  position: relative;
  z-index: 2;
  background: var(--bg-card);
  border: 1px solid var(--line);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 28px 70px rgba(33, 29, 25, 0.22);
  transform: translateY(18px) scale(0.985);
  transition: transform 0.45s var(--ease-zen);
}

.modal.is-open .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-dialog--detail {
  width: min(980px, 100%);
}

.modal-dialog--wechat {
  width: min(440px, 100%);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 4;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(251, 249, 244, 0.9);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: border-color 0.3s ease, color 0.3s ease, transform 0.35s var(--ease-zen);
}

.modal-close:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: rotate(90deg);
}

/* Detail Modal Content */
.detail-layout {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}

.detail-media {
  background: var(--bg-sand);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--line);
}

.detail-frame {
  aspect-ratio: 3 / 4;
  width: 100%;
  overflow: hidden;
  background: var(--bg-paper);
  border: 1px solid var(--line);
}

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

.detail-caption {
  margin: 14px 0 0;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-muted);
}

.detail-body {
  padding: 40px 38px 36px;
  display: flex;
  flex-direction: column;
}

.detail-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 14px;
}

.detail-code {
  font-family: var(--font-sans);
  color: var(--accent);
  letter-spacing: 0.16em;
  font-weight: 500;
}

.detail-status {
  margin-left: auto;
  padding: 2px 10px;
  font-size: 11px;
  border: 1px solid var(--line);
  background: var(--bg-paper);
}

.detail-title {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.detail-subtitle {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.detail-desc {
  margin: 0 0 24px;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--ink-muted);
  text-align: justify;
}

.detail-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 18px;
  margin: 0 0 24px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.detail-spec-item dt {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  margin-bottom: 2px;
}

.detail-spec-item dd {
  margin: 0;
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
}

.detail-tip {
  background: var(--bg-paper);
  border-left: 2px solid var(--accent);
  padding: 14px 16px;
  margin-bottom: 26px;
}

.detail-tip-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 4px;
}

.detail-tip-text {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--ink-muted);
}

.detail-actions {
  margin-top: auto;
}

/* WeChat Modal Content */
.wechat-content {
  padding: 40px 32px 32px;
  text-align: center;
}

.wechat-avatar-wrap {
  display: inline-flex;
  padding: 4px;
  border-radius: 50%;
  border: 1px solid rgba(124, 88, 56, 0.35);
  background: var(--bg-paper);
  margin-bottom: 14px;
  box-shadow: 0 10px 24px rgba(33, 29, 25, 0.12);
}

.wechat-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  object-fit: cover;
}

.wechat-eyebrow {
  margin: 0 0 6px;
  font-family: var(--font-sans);
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--accent);
}

.wechat-title {
  margin: 0 0 10px;
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.1em;
}

.wechat-note {
  margin: 0 0 22px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--ink-muted);
}

.wechat-ref {
  background: var(--bg-paper);
  border: 1px solid var(--line);
  padding: 10px 14px;
  margin-bottom: 14px;
  text-align: left;
}

.wechat-ref-label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--ink-muted);
  margin-bottom: 2px;
}

.wechat-ref-value {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.wechat-id-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border: 1px dashed rgba(124, 88, 56, 0.45);
  background: rgba(236, 230, 218, 0.42);
  margin-bottom: 18px;
}

.wechat-id-label {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--ink-muted);
}

.wechat-id-code {
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink);
  user-select: all;
}

.wechat-qr-wrap {
  margin-bottom: 18px;
}

.wechat-qr-wrap img {
  width: 156px;
  height: 156px;
  margin: 0 auto 8px;
  border: 1px solid var(--line);
  padding: 6px;
  background: #fff;
}

.wechat-qr-wrap p {
  margin: 0;
  font-size: 11px;
  color: var(--ink-muted);
}

.wechat-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wechat-copy-feedback {
  min-height: 22px;
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.06em;
}

/* ==========================================================================
   Responsive Design (Tablet, Mobile & WeChat In-App Browser)
   ========================================================================== */
@media (max-width: 1120px) {
  .header-inner {
    padding: 0 24px;
  }

  .header-tag,
  .brand-en {
    display: none;
  }

  .hero--split .hero-editorial {
    padding: 36px 40px 36px 36px;
  }

  .container {
    padding: 0 32px;
  }

  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
  }

  .craft-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  :root {
    --rail-w: 0px;
    --header-h: 58px;
    --filmstrip-h: 84px;
  }

  .side-rail {
    display: none;
  }

  .site-header,
  .page-main,
  .site-footer {
    left: 0;
    margin-left: 0;
  }

  .header-inner {
    padding: 0 18px;
  }

  .brand-cn {
    font-size: 16px;
    letter-spacing: 0.16em;
  }

  .main-nav {
    gap: 16px;
  }

  .nav-link {
    font-size: 12px;
    letter-spacing: 0.08em;
  }

  /* Stack hero gracefully on mobile */
  .hero {
    min-height: auto;
  }

  .hero-stage {
    flex-direction: column-reverse;
    min-height: auto;
  }

  .hero--split .hero-visual,
  .hero--fullscreen .hero-visual {
    position: relative;
    width: 100%;
    height: 54vh;
    min-height: 320px;
    max-height: 480px;
  }

  .hero--fullscreen .hero-visual::after {
    display: none;
  }

  .hero--split .hero-editorial,
  .hero--fullscreen .hero-editorial {
    width: 100%;
    min-height: auto;
    padding: 28px 20px 30px;
    border-right: none;
    border-top: 1px solid var(--line);
    background: var(--bg-paper);
  }

  .hero-editorial-inner {
    max-width: 100%;
  }

  .hero-vertical-text,
  .hero-loupe,
  .hero-loupe-hint {
    display: none !important;
  }

  .hero-title {
    font-size: 25px;
  }

  .hero-desc {
    margin-bottom: 22px;
    font-size: 13.5px;
  }

  .hero-specs {
    margin-bottom: 24px;
    padding: 14px 0;
    gap: 10px;
  }

  .spec-cell + .spec-cell {
    padding-left: 10px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .btn {
    padding: 12px 14px;
    font-size: 12.5px;
  }

  /* Mobile Filmstrip */
  .filmstrip-bar {
    height: auto;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    gap: 8px;
  }

  .filmstrip-arrow {
    width: 32px;
    height: 32px;
  }

  .filmstrip-track {
    scroll-snap-type: x proximity;
    gap: 10px;
  }

  .film-item {
    width: 172px;
    scroll-snap-align: start;
    padding: 6px 10px 6px 6px;
  }

  .film-thumb {
    width: 42px;
    height: 48px;
  }

  .section {
    padding: 68px 0;
  }

  .container {
    padding: 0 18px;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 24px;
  }

  .filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    gap: 20px;
    margin-bottom: 28px;
    padding-bottom: 4px;
  }

  .filter-bar::-webkit-scrollbar {
    display: none;
  }

  .filter-tab {
    flex-shrink: 0;
  }

  .catalog-grid,
  .craft-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .craft-card {
    padding: 28px 22px;
  }

  /* Modals on mobile */
  .modal {
    padding: 12px;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }

  .detail-media {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 20px 20px 16px;
  }

  .detail-frame {
    aspect-ratio: 4 / 3;
  }

  .detail-body {
    padding: 24px 20px 26px;
  }

  .wechat-content {
    padding: 34px 22px 26px;
  }
}

@media (max-width: 420px) {
  .main-nav {
    gap: 12px;
  }

  .nav-link {
    font-size: 11.5px;
  }

  .filmstrip-arrow {
    display: none;
  }
}

/* Disable magnifier on touch-only devices even if viewport is wide (e.g., iPad) */
@media (hover: none), (pointer: coarse) {
  .hero-loupe,
  .hero-loupe-hint {
    display: none !important;
  }
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
