:root {
  --ink: #171513;
  --ink-soft: #3a3732;
  --muted: #7a756c;
  --paper: #f3f1eb;
  --paper-deep: #e7e3da;
  --line: rgba(23, 21, 19, 0.12);
  --wash: #c5cfc4;
  --wash-deep: #8a9688;
  --btn-fg: #f6f4ee;
  --pop-bg: #fff;
  --serif: "Noto Serif SC", "Songti SC", serif;
  --latin: "Cormorant Garamond", "Times New Roman", serif;
  --bg-image:
    radial-gradient(1200px 700px at 12% -10%, rgba(197, 207, 196, 0.55), transparent 60%),
    radial-gradient(900px 600px at 100% 20%, rgba(138, 150, 136, 0.18), transparent 55%),
    linear-gradient(180deg, #f6f4ee 0%, var(--paper) 45%, #efebe3 100%);
  --hero-visual-bg: linear-gradient(155deg, #d8ddd4 0%, #b7c0b4 42%, #9aa494 100%);
  --mark-color: rgba(23, 21, 19, 0.1);
  --about-bg: rgba(255, 255, 255, 0.28);
  --grain-opacity: 0.07;
  --grain-blend: multiply;
  --top-blend: multiply;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
  overflow: hidden;
}

body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  color: var(--ink);
  background: var(--bg-image);
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  opacity: var(--grain-opacity);
  mix-blend-mode: var(--grain-blend);
  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");
  animation: grain-shift 12s steps(6) infinite;
}

@keyframes grain-shift {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-1%, 1%); }
  40% { transform: translate(1%, -1%); }
  60% { transform: translate(-1%, -1%); }
  80% { transform: translate(1%, 1%); }
  100% { transform: translate(0, 0); }
}

.top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 56px);
  padding-top: calc(22px + env(safe-area-inset-top, 0px));
  mix-blend-mode: var(--top-blend);
}

.top-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.top-brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  opacity: 0.92;
}

.top-nav {
  display: flex;
  gap: 28px;
  font-family: var(--latin);
  font-size: 18px;
  font-style: italic;
  letter-spacing: 0.04em;
  align-items: center;
}

.top-nav a,
.top-nav .nav-link {
  opacity: 0.72;
  transition: opacity 0.25s ease;
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
}

.top-nav a:hover,
.top-nav .nav-link:hover {
  opacity: 1;
}

.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  max-height: 100%;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: stretch;
  overflow: hidden;
}

.hero-visual {
  position: relative;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: var(--hero-visual-bg);
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-visual.has-media .ink-wash {
  opacity: 0.35;
  z-index: 1;
}

.hero-visual.has-media .paper-edge,
.hero-visual.has-media .hero-mark {
  z-index: 2;
}

.hero-media[hidden] {
  display: none !important;
}

@keyframes wash-breathe {
  0%, 100% { transform: scale(1) translate(0, 0); opacity: 1; }
  50% { transform: scale(1.06) translate(1.5%, -1%); opacity: 0.92; }
}

.ink-wash {
  position: absolute;
  inset: -10%;
  z-index: 0;
  background:
    radial-gradient(circle at 35% 40%, rgba(23, 21, 19, 0.22), transparent 42%),
    radial-gradient(circle at 70% 65%, rgba(23, 21, 19, 0.16), transparent 38%),
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.28), transparent 45%);
  animation: wash-breathe 14s ease-in-out infinite;
}

.paper-edge {
  position: absolute;
  inset: 8% 10%;
  z-index: 1;
  border: 1px solid rgba(23, 21, 19, 0.18);
  box-shadow: inset 0 0 80px rgba(243, 241, 235, 0.18);
}

.hero-mark {
  position: absolute;
  right: 8%;
  bottom: 6%;
  z-index: 1;
  margin: 0;
  font-size: clamp(120px, 22vw, 280px);
  font-weight: 600;
  line-height: 0.8;
  letter-spacing: -0.06em;
  color: var(--mark-color);
  user-select: none;
  pointer-events: none;
  animation: mark-rise 1.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes mark-rise {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(72px, 12vh, 120px) clamp(28px, 6vw, 80px) clamp(48px, 8vh, 80px);
  position: relative;
  z-index: 1;
  min-height: 0;
}

.hero-en {
  margin: 0 0 10px;
  font-family: var(--latin);
  font-size: clamp(22px, 2.4vw, 30px);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(42px, 6.2vw, 76px);
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1.15;
}

.hero-line {
  margin: 18px 0 0;
  font-size: clamp(16px, 1.5vw, 20px);
  letter-spacing: 0.22em;
  color: var(--ink-soft);
}

.hero-sub {
  margin: 22px 0 0;
  max-width: 28em;
  font-size: 16px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 14px;
  margin-top: 36px;
  align-items: flex-start;
}

.dl-btn-wrap {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
}

.btn-ink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 20px;
  background: var(--ink);
  color: var(--btn-fg);
  font-family: var(--serif);
  font-size: 14px;
  letter-spacing: 0.1em;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, opacity 0.25s ease, border-color 0.25s ease;
}

.btn-ico {
  width: 16px;
  height: 16px;
  flex: none;
  color: inherit;
}

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

.btn-ink:hover {
  background: transparent;
  color: var(--ink);
}

.btn-ink-ghost:hover,
body .btn-ink-ghost:hover {
  background: var(--ink);
  color: var(--btn-fg);
  border-color: var(--ink);
}

.dl-btn-wrap.is-empty .btn-ink {
  opacity: 0.72;
}

.dl-pop {
  position: absolute;
  left: 50%;
  top: calc(100% + 12px);
  bottom: auto;
  transform: translateX(-50%) translateY(-4px);
  padding: 0;
  background: transparent;
  border: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  z-index: 6;
}

.dl-pop::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  top: auto;
  margin-left: -6px;
  border: 6px solid transparent;
  border-bottom-color: var(--pop-bg);
  filter: drop-shadow(0 -1px 0 var(--line));
}

.dl-pop-inner {
  width: 168px;
  height: 168px;
  min-width: 168px;
  min-height: 168px;
  max-width: 168px;
  max-height: 168px;
  padding: 0;
  background: var(--pop-bg);
  border: 1px solid var(--line);
  color: var(--ink);
  display: grid;
  place-items: center;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.dl-qr-img {
  display: block;
  width: 148px;
  height: 148px;
  object-fit: contain;
}

.dl-qr-img[hidden],
.dl-empty-tip[hidden] {
  display: none !important;
}

.dl-empty-tip {
  margin: 0;
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  color: var(--muted);
  line-height: 1.4;
  box-sizing: border-box;
}

.dl-btn-wrap:hover .dl-pop,
.dl-btn-wrap:focus-within .dl-pop,
.dl-btn-wrap.is-open .dl-pop {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: reveal-up 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: calc(var(--d, 0) * 1ms);
}

@keyframes reveal-up {
  to { opacity: 1; transform: translateY(0); }
}

.about {
  display: none;
}

.about-inner {
  max-width: 720px;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 18px;
  font-family: var(--latin);
  font-size: 18px;
  font-style: italic;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.about h2,
.about-dialog h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: 0.12em;
}

.about-body {
  margin: 28px 0 0;
  font-size: 17px;
  color: var(--ink-soft);
  white-space: pre-wrap;
}

body.modal-open {
  overflow: hidden;
}

.about-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(23, 21, 19, 0.34);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.about-overlay.is-open {
  opacity: 1;
}

.about-overlay[hidden] {
  display: none;
}

.about-dialog {
  position: relative;
  width: min(520px, 100%);
  padding: 40px 36px 36px;
  background: var(--pop-bg);
  color: var(--ink);
  border: 1px solid var(--line);
  outline: none;
  transform: translateY(12px);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.about-overlay.is-open .about-dialog {
  transform: translateY(0);
}

.about-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.about-close:hover {
  color: var(--ink);
}

.about-dialog .eyebrow {
  margin-bottom: 10px;
}

.about-dialog .about-body {
  margin-top: 0;
}

.foot {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  z-index: 25;
  padding: 0;
  border: none;
  text-align: center;
  font-family: var(--latin);
  font-size: 13px;
  font-style: italic;
  color: var(--muted);
  letter-spacing: 0.04em;
  pointer-events: none;
  background: transparent;
}

@media (max-width: 900px) {
  /* —— 移动端独立构图：全屏画面 + 底部题跋层 —— */
  html,
  body {
    overflow: hidden;
    height: 100%;
    height: 100dvh;
    overscroll-behavior: none;
    -webkit-text-size-adjust: 100%;
    touch-action: manipulation;
  }

  .grain {
    animation: none;
    opacity: calc(var(--grain-opacity) * 0.45);
  }

  .top {
    mix-blend-mode: normal;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 14px 18px;
    padding-top: calc(10px + env(safe-area-inset-top, 0px));
  }

  .top-brand {
    font-size: 14px;
    letter-spacing: 0.1em;
  }

  .top-brand img {
    width: 24px;
    height: 24px;
  }

  .top-nav {
    gap: 0;
    font-size: 15px;
    font-style: normal;
    letter-spacing: 0.08em;
  }

  .top-nav .nav-link {
    min-height: 40px;
    padding: 0 2px;
    opacity: 0.85;
  }

  .hero,
  body[class*="layout-"] .hero {
    display: block !important;
    position: relative;
    height: 100dvh !important;
    max-height: 100dvh !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
    grid-template-columns: none !important;
    grid-template-rows: none !important;
    place-items: stretch !important;
    overflow: hidden;
  }

  .hero-visual,
  body[class*="layout-"] .hero-visual {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    opacity: 1 !important;
    order: 0 !important;
    z-index: 0;
    clip-path: none !important;
    border-radius: 0 !important;
    filter: none !important;
  }

  .paper-edge {
    inset: 5% 6%;
    opacity: 0.55;
  }

  .hero-mark,
  body[class*="layout-"] .hero-mark {
    display: block !important;
    right: 6% !important;
    left: auto !important;
    top: auto !important;
    bottom: 42% !important;
    font-size: clamp(96px, 34vw, 168px) !important;
    opacity: 0.55;
    writing-mode: horizontal-tb !important;
    border: none !important;
    padding: 0 !important;
    box-shadow: none !important;
    letter-spacing: -0.06em !important;
  }

  .hero-copy,
  body[class*="layout-"] .hero-copy {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: stretch !important;
    justify-content: flex-end !important;
    gap: 0;
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding:
      72px
      22px
      calc(46px + env(safe-area-inset-bottom, 0px)) !important;
    text-align: left !important;
    order: 0 !important;
    overflow: visible !important;
    background: linear-gradient(
      180deg,
      transparent 0%,
      color-mix(in srgb, var(--paper) 55%, transparent) 28%,
      color-mix(in srgb, var(--paper) 92%, transparent) 58%,
      var(--paper) 100%
    ) !important;
    backdrop-filter: none !important;
    border: none !important;
    color: var(--ink);
  }

  .hero-copy::before {
    content: none !important;
  }

  .hero-en {
    margin: 0 0 6px;
    font-size: 15px;
    letter-spacing: 0.16em;
  }

  .hero-copy h1,
  body[class*="layout-"] .hero-copy h1,
  body.style-monolith .hero-copy h1,
  body.style-seal .hero-copy h1,
  body.style-continuum .hero-copy h1 {
    margin: 0;
    font-size: clamp(36px, 11vw, 52px) !important;
    line-height: 1.18 !important;
    letter-spacing: 0.12em !important;
    font-weight: 700 !important;
    border: none !important;
    display: block !important;
    padding: 0 !important;
    background: none !important;
    -webkit-text-fill-color: currentColor !important;
    color: var(--ink) !important;
  }

  .hero-line {
    margin: 10px 0 0;
    font-size: 14px;
    letter-spacing: 0.16em;
    border: none !important;
    padding: 0 !important;
  }

  .hero-sub {
    margin: 12px 0 0;
    max-width: none;
    font-size: 13px;
    line-height: 1.65;
    letter-spacing: 0.02em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .hero-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 22px;
    width: 100%;
  }

  .dl-btn-wrap {
    width: 100%;
  }

  .btn-ink {
    width: 100%;
    min-height: 48px;
    padding: 0 8px;
    font-size: 12px;
    letter-spacing: 0.02em !important;
    border-radius: 0 !important;
    white-space: nowrap;
    flex-wrap: nowrap;
    gap: 6px;
  }

  .btn-ink span {
    white-space: nowrap;
  }

  .btn-ico {
    width: 14px;
    height: 14px;
  }

  body.style-seal .btn-ink,
  body.style-studio .btn-ink,
  body.style-continuum .btn-ink,
  body.style-monolith .btn-ink {
    letter-spacing: 0.02em !important;
  }

  body.style-continuum .btn-ink {
    border-radius: 999px !important;
  }

  body.style-studio .btn-ink-ghost {
    border-left-width: 1px !important;
  }

  /* 手机端直接下载，不弹二维码浮层 */
  .dl-pop {
    display: none !important;
  }

  .foot {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 4;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-align: center;
    padding: 0 16px;
    pointer-events: none;
  }

  .about-overlay {
    padding: 0;
    align-items: end;
  }

  .about-dialog {
    width: 100%;
    max-width: none;
    max-height: min(70dvh, 560px);
    overflow: auto;
    padding:
      28px 22px
      calc(24px + env(safe-area-inset-bottom, 0px));
    border-left: none !important;
    border-radius: 16px 16px 0 0;
    transform: translateY(20px);
    -webkit-overflow-scrolling: touch;
  }

  .about-overlay.is-open .about-dialog {
    transform: translateY(0);
  }

  .about-body {
    font-size: 15px;
    line-height: 1.75;
  }

  .reveal {
    animation-duration: 0.6s;
  }

  body.style-studio .foot,
  body.style-seal .foot,
  body.style-monolith .foot {
    text-align: center;
    padding-left: 16px;
    text-transform: none;
  }

  body.style-monolith .hero-en {
    order: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 6px !important;
  }

  body.style-monolith .hero-line {
    display: block !important;
  }
}

@media (max-width: 900px) and (max-height: 720px) {
  .hero-mark {
    bottom: 46% !important;
    font-size: clamp(72px, 28vw, 120px) !important;
  }

  .hero-sub {
    -webkit-line-clamp: 1;
  }

  .hero-cta {
    margin-top: 16px;
  }

  .btn-ink {
    min-height: 44px;
  }
}

@media (max-width: 900px) and (max-height: 620px) {
  .hero-line,
  .hero-mark {
    display: none !important;
  }

  .hero-copy {
    padding-top: 48px !important;
  }

  .hero-cta {
    margin-top: 14px;
  }
}

@media (max-width: 380px) {
  .hero-cta {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .grain,
  .ink-wash,
  .hero-mark {
    animation: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* —— 官网模版主题 —— */
body.theme-plain-sheet {
  --ink: #121212;
  --ink-soft: #3a3a3a;
  --muted: #6e6e6a;
  --paper: #fafaf8;
  --line: rgba(18, 18, 18, 0.1);
  --btn-fg: #fafaf8;
  --pop-bg: #fff;
  --mark-color: rgba(18, 18, 18, 0.06);
  --about-bg: rgba(255, 255, 255, 0.5);
  --grain-opacity: 0.04;
  --bg-image: linear-gradient(180deg, #fcfcfa 0%, #fafaf8 50%, #f3f3ef 100%);
  --hero-visual-bg: linear-gradient(160deg, #ecece8 0%, #d9d9d3 55%, #c8c8c2 100%);
}

body.theme-pine-smoke {
  --ink: #e8e4dc;
  --ink-soft: #c9c3b8;
  --muted: #9aa194;
  --paper: #141311;
  --line: rgba(232, 228, 220, 0.14);
  --btn-fg: #141311;
  --pop-bg: #1c1b18;
  --mark-color: rgba(232, 228, 220, 0.08);
  --about-bg: rgba(255, 255, 255, 0.03);
  --grain-opacity: 0.1;
  --grain-blend: soft-light;
  --top-blend: normal;
  --bg-image:
    radial-gradient(900px 600px at 20% 0%, rgba(154, 161, 148, 0.12), transparent 55%),
    linear-gradient(180deg, #1a1916 0%, #141311 55%, #10100e 100%);
  --hero-visual-bg: linear-gradient(155deg, #2a2925 0%, #1c1b18 50%, #12110f 100%);
}

body.theme-pine-smoke .btn-ink {
  background: var(--ink);
  color: var(--btn-fg);
  border-color: var(--ink);
}

body.theme-pine-smoke .btn-ink:hover {
  background: transparent;
  color: var(--ink);
}

body.theme-pine-smoke .btn-ink-ghost {
  background: transparent;
  color: var(--ink);
}

body.theme-pine-smoke .btn-ink-ghost:hover,
body.theme-lacquer .btn-ink-ghost:hover {
  background: var(--ink);
  color: var(--btn-fg);
  border-color: var(--ink);
}

body.theme-pine-smoke .top {
  background: rgba(20, 19, 17, 0.72);
  backdrop-filter: blur(8px);
}

body.theme-celadon {
  --ink: #1c2420;
  --ink-soft: #3d4a44;
  --muted: #5f7368;
  --paper: #e8efe9;
  --line: rgba(28, 36, 32, 0.12);
  --btn-fg: #eef4ef;
  --pop-bg: #f4f8f5;
  --mark-color: rgba(28, 36, 32, 0.08);
  --about-bg: rgba(255, 255, 255, 0.32);
  --grain-opacity: 0.06;
  --bg-image:
    radial-gradient(1000px 700px at 80% 10%, rgba(168, 189, 176, 0.45), transparent 55%),
    linear-gradient(180deg, #eef4ef 0%, #e8efe9 50%, #dce6df 100%);
  --hero-visual-bg: linear-gradient(155deg, #c5d4ca 0%, #a8bdb0 48%, #7f9588 100%);
}

body.theme-mist-ink {
  --ink: #1a1c1e;
  --ink-soft: #3d4248;
  --muted: #7a828a;
  --paper: #eceef0;
  --line: rgba(26, 28, 30, 0.12);
  --btn-fg: #f2f4f6;
  --pop-bg: #fff;
  --mark-color: rgba(26, 28, 30, 0.07);
  --about-bg: rgba(255, 255, 255, 0.4);
  --grain-opacity: 0.05;
  --bg-image:
    radial-gradient(1100px 600px at 10% 100%, rgba(183, 190, 198, 0.4), transparent 50%),
    linear-gradient(180deg, #f3f5f7 0%, #eceef0 48%, #e3e6ea 100%);
  --hero-visual-bg: linear-gradient(155deg, #d5dae0 0%, #b7bec6 46%, #8e97a1 100%);
}

body.theme-cinnabar {
  --ink: #2a1612;
  --ink-soft: #5a342c;
  --muted: #8a655c;
  --paper: #f6eee6;
  --wash: #d9b4a4;
  --wash-deep: #b87a68;
  --line: rgba(42, 22, 18, 0.12);
  --btn-fg: #f8f1ea;
  --pop-bg: #fffaf6;
  --mark-color: rgba(139, 42, 28, 0.12);
  --about-bg: rgba(255, 255, 255, 0.4);
  --grain-opacity: 0.06;
  --bg-image:
    radial-gradient(900px 600px at 90% 0%, rgba(184, 122, 104, 0.28), transparent 55%),
    linear-gradient(180deg, #faf4ee 0%, #f6eee6 50%, #efe4da 100%);
  --hero-visual-bg: linear-gradient(155deg, #e2c4b6 0%, #c9927f 48%, #a86452 100%);
}

body.theme-dusk-tea {
  --ink: #2a2318;
  --ink-soft: #4f4334;
  --muted: #8a7a66;
  --paper: #f1eadc;
  --wash: #d4c4a4;
  --wash-deep: #a89068;
  --line: rgba(42, 35, 24, 0.12);
  --btn-fg: #f7f2e8;
  --pop-bg: #faf6ee;
  --mark-color: rgba(42, 35, 24, 0.08);
  --about-bg: rgba(255, 255, 255, 0.35);
  --grain-opacity: 0.07;
  --bg-image:
    radial-gradient(1000px 650px at 15% 10%, rgba(168, 144, 104, 0.28), transparent 55%),
    linear-gradient(180deg, #f6f0e4 0%, #f1eadc 48%, #e8dfce 100%);
  --hero-visual-bg: linear-gradient(155deg, #d9cbb0 0%, #b9a57e 50%, #8f7a52 100%);
}

body.theme-snow-blue {
  --ink: #15202b;
  --ink-soft: #3a4a5a;
  --muted: #6e8194;
  --paper: #eef3f7;
  --wash: #b8c9d8;
  --wash-deep: #7e96ac;
  --line: rgba(21, 32, 43, 0.12);
  --btn-fg: #f4f8fb;
  --pop-bg: #fff;
  --mark-color: rgba(21, 32, 43, 0.07);
  --about-bg: rgba(255, 255, 255, 0.42);
  --grain-opacity: 0.045;
  --bg-image:
    radial-gradient(1100px 700px at 80% 100%, rgba(126, 150, 172, 0.3), transparent 55%),
    linear-gradient(180deg, #f5f8fb 0%, #eef3f7 50%, #e4ebf2 100%);
  --hero-visual-bg: linear-gradient(155deg, #c5d3e0 0%, #9eb2c6 48%, #6f879e 100%);
}

body.theme-lacquer {
  --ink: #f0e6d4;
  --ink-soft: #d2c4ae;
  --muted: #9a8e7c;
  --paper: #1a120e;
  --wash: #4a3024;
  --wash-deep: #6a4232;
  --line: rgba(240, 230, 212, 0.14);
  --btn-fg: #1a120e;
  --pop-bg: #241812;
  --mark-color: rgba(240, 230, 212, 0.08);
  --about-bg: rgba(255, 255, 255, 0.04);
  --grain-opacity: 0.09;
  --grain-blend: soft-light;
  --top-blend: normal;
  --bg-image:
    radial-gradient(800px 500px at 70% 0%, rgba(106, 66, 50, 0.35), transparent 55%),
    linear-gradient(180deg, #221610 0%, #1a120e 55%, #120c09 100%);
  --hero-visual-bg: linear-gradient(155deg, #3a241a 0%, #241610 50%, #140e0a 100%);
}

body.theme-lacquer .btn-ink {
  background: var(--ink);
  color: var(--btn-fg);
  border-color: var(--ink);
}

body.theme-lacquer .btn-ink:hover {
  background: transparent;
  color: var(--ink);
}

body.theme-lacquer .btn-ink-ghost {
  background: transparent;
  color: var(--ink);
}

body.theme-lacquer .btn-ink-ghost:hover {
  background: var(--ink);
  color: var(--btn-fg);
}

body.theme-lacquer .top {
  background: rgba(26, 18, 14, 0.75);
  backdrop-filter: blur(8px);
}

/* —— 版式模版（真正不同构图） —— */
body.layout-split .hero {
  grid-template-columns: 1.05fr 0.95fr;
}

body.layout-center .hero {
  grid-template-columns: 1fr;
  height: 100dvh;
  max-height: 100dvh;
  place-items: center;
  text-align: center;
}

body.layout-center .hero-visual {
  position: absolute;
  inset: 0;
  min-height: 100%;
  z-index: 0;
}

body.layout-center .hero-copy {
  position: relative;
  z-index: 1;
  align-items: center;
  max-width: 720px;
  margin: 0 auto;
  padding-top: clamp(72px, 12vh, 120px);
  padding-bottom: 64px;
  background: transparent;
}

body.layout-center .hero-sub {
  margin-left: auto;
  margin-right: auto;
}

body.layout-center .hero-cta {
  justify-content: center;
}

body.layout-center .paper-edge {
  inset: 10% 12%;
}

body.layout-center .hero-mark {
  opacity: 0.55;
}

body.layout-editorial .hero {
  grid-template-columns: 1fr;
  max-width: 760px;
  margin: 0 auto;
  height: 100dvh;
  max-height: 100dvh;
  align-content: center;
}

body.layout-editorial .hero-visual {
  position: absolute;
  inset: 0;
  min-height: 100%;
  opacity: 0.35;
  z-index: 0;
}

body.layout-editorial .hero-visual .paper-edge {
  display: none;
}

body.layout-editorial .hero-copy {
  position: relative;
  z-index: 1;
  padding-top: clamp(88px, 14vh, 140px);
  padding-bottom: 72px;
}

body.layout-editorial .hero-mark {
  right: auto;
  left: 8%;
  bottom: auto;
  top: 18%;
  font-size: clamp(160px, 28vw, 320px);
  color: var(--mark-color);
}

body.layout-folio .hero {
  grid-template-columns: minmax(280px, 0.9fr) minmax(240px, 0.7fr);
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
  height: 100dvh;
  max-height: 100dvh;
  padding: 0 clamp(20px, 5vw, 56px);
}

body.layout-folio .hero-visual {
  min-height: 0;
  height: min(72vh, 640px);
  order: 2;
}

body.layout-folio .hero-copy {
  order: 1;
  padding-left: 0;
  padding-right: clamp(20px, 4vw, 48px);
}

body.layout-folio .ink-wash {
  opacity: 0.85;
}

body.layout-horizon .hero {
  grid-template-columns: 1fr;
  height: 100dvh;
  max-height: 100dvh;
  position: relative;
}

body.layout-horizon .hero-visual {
  position: absolute;
  inset: 0;
  min-height: 100%;
}

body.layout-horizon .hero-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 48px clamp(20px, 5vw, 56px) 48px;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.18) 100%);
  color: var(--ink);
}

body.layout-horizon.theme-pine-smoke .hero-copy,
body.layout-horizon .hero-copy {
  background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--paper) 88%, transparent) 55%, var(--paper) 100%);
}

body.layout-horizon .hero-mark {
  top: 12%;
  bottom: auto;
  right: 8%;
}

body.layout-horizon .foot {
  border-top: none;
}

/* 对开：文左图右，等分两栏 */
body.layout-mirror .hero {
  grid-template-columns: 1fr 1fr;
  height: 100dvh;
  max-height: 100dvh;
}

body.layout-mirror .hero-visual {
  order: 2;
  min-height: 0;
}

body.layout-mirror .hero-copy {
  order: 1;
  padding-right: clamp(24px, 4vw, 48px);
}

/* 叠帧：上图下文，竖向分层 */
body.layout-stack .hero {
  grid-template-columns: 1fr;
  grid-template-rows: minmax(0, 0.4fr) minmax(0, 0.6fr);
  height: 100dvh;
  max-height: 100dvh;
}

body.layout-stack .hero-visual {
  min-height: 0;
  height: 100%;
}

body.layout-stack .hero-copy {
  padding-top: clamp(28px, 5vh, 48px);
  padding-bottom: 56px;
  justify-content: flex-start;
}

body.layout-stack .hero-mark {
  font-size: clamp(80px, 14vw, 160px);
  right: 6%;
  bottom: 4%;
}

/* 画框：四周留边，文案居中落在内框 */
body.layout-frame .hero {
  grid-template-columns: 1fr;
  height: 100dvh;
  max-height: 100dvh;
  place-items: center;
  padding: clamp(48px, 8vh, 72px) clamp(24px, 6vw, 64px);
}

body.layout-frame .hero-visual {
  position: absolute;
  inset: clamp(28px, 5vh, 48px) clamp(20px, 4vw, 48px);
  min-height: 0;
  z-index: 0;
}

body.layout-frame .hero-copy {
  position: relative;
  z-index: 1;
  max-width: 560px;
  align-items: flex-start;
  padding: clamp(36px, 6vh, 56px) clamp(28px, 4vw, 48px);
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  border: 1px solid var(--line);
  backdrop-filter: blur(4px);
}

body.layout-frame .paper-edge {
  inset: 0;
  border-width: 2px;
}

body.layout-frame .hero-mark {
  opacity: 0.4;
  right: 4%;
  bottom: 4%;
}

/* 偏角：全幅画面，文案沉左下 */
body.layout-corner .hero {
  grid-template-columns: 1fr;
  height: 100dvh;
  max-height: 100dvh;
  position: relative;
}

body.layout-corner .hero-visual {
  position: absolute;
  inset: 0;
  min-height: 0;
}

body.layout-corner .hero-copy {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  max-width: min(520px, 88vw);
  padding: 40px clamp(24px, 5vw, 56px) 56px;
  background: linear-gradient(
    115deg,
    color-mix(in srgb, var(--paper) 92%, transparent) 0%,
    color-mix(in srgb, var(--paper) 70%, transparent) 55%,
    transparent 100%
  );
}

body.layout-corner .hero-mark {
  top: 14%;
  right: 8%;
  bottom: auto;
  font-size: clamp(120px, 20vw, 240px);
}

/* 移动端版式全部收束为同一套海报构图（见上方 max-width:900px） */

/* —— 设计风格模版（视觉语言完全不同，非布局变体） —— */

/* 典藏：默认纸感，细线刊首 */
body.style-classic .hero-copy h1 {
  letter-spacing: 0.14em;
}

/* 印玺：匾额、方印、双线框、朱砂点缀 */
body.style-seal {
  --serif: "Noto Serif SC", "Songti SC", serif;
  --latin: "Cormorant Garamond", Georgia, serif;
}
body.style-seal .top {
  mix-blend-mode: normal;
}
body.style-seal .top-brand span {
  letter-spacing: 0.28em;
  font-weight: 700;
}
body.style-seal .top-nav {
  font-style: normal;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 12px;
}
body.style-seal .hero-copy h1 {
  letter-spacing: 0.32em;
  border: 3px double var(--ink);
  display: inline-block;
  padding: 0.22em 0.42em;
  background: color-mix(in srgb, var(--paper) 70%, transparent);
}
body.style-seal .hero-en {
  letter-spacing: 0.36em;
  text-transform: uppercase;
  font-style: normal;
  font-size: 13px;
}
body.style-seal .hero-line {
  letter-spacing: 0.4em;
}
body.style-seal .hero-mark {
  writing-mode: vertical-rl;
  font-size: clamp(72px, 12vw, 140px);
  border: 4px double color-mix(in srgb, #8b3a2a 55%, var(--ink));
  color: color-mix(in srgb, #8b3a2a 70%, var(--mark-color));
  padding: 0.4em 0.18em;
  right: 10%;
  bottom: 12%;
  line-height: 1;
  letter-spacing: 0.2em;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--paper) 80%, transparent);
}
body.style-seal .paper-edge {
  border-width: 2px;
  inset: 5% 7%;
  outline: 1px solid color-mix(in srgb, var(--ink) 20%, transparent);
  outline-offset: 8px;
}
body.style-seal .btn-ink {
  border-radius: 0;
  letter-spacing: 0.22em;
  border-width: 2px;
  min-height: 48px;
}
body.style-seal .btn-ink-ghost {
  border-style: double;
  border-width: 3px;
}
body.style-seal .dl-pop-inner,
body.style-seal .about-dialog {
  border-width: 2px;
  border-radius: 0;
}
body.style-seal .foot {
  font-style: normal;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 11px;
}

/* 画室：展签序号、斜切画面、硬边展廊 */
body.style-studio {
  --latin: "Cormorant Garamond", "Times New Roman", serif;
}
body.style-studio .grain {
  opacity: 0.03;
}
body.style-studio .top-brand {
  letter-spacing: 0.02em;
  font-weight: 500;
}
body.style-studio .top-nav {
  font-style: normal;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
body.style-studio .hero-copy::before {
  content: "01 / Entrance";
  display: block;
  font-family: var(--latin);
  font-size: 13px;
  font-style: normal;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
body.style-studio .hero-en {
  font-style: normal;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  font-size: 11px;
  margin-bottom: 6px;
}
body.style-studio .hero-copy h1 {
  letter-spacing: 0.04em;
  font-weight: 600;
  font-size: clamp(40px, 5.6vw, 68px);
}
body.style-studio .hero-line {
  letter-spacing: 0.08em;
  border-left: 3px solid var(--ink);
  padding-left: 14px;
}
body.style-studio .hero-visual {
  clip-path: polygon(6% 0, 100% 0, 100% 100%, 0 100%);
}
body.style-studio .paper-edge {
  display: none;
}
body.style-studio .ink-wash {
  background:
    linear-gradient(135deg, transparent 40%, color-mix(in srgb, var(--ink) 8%, transparent) 40.5%, transparent 41%),
    radial-gradient(circle at 60% 40%, rgba(23, 21, 19, 0.2), transparent 45%);
}
body.style-studio .btn-ink {
  min-height: 44px;
  border-radius: 0;
  letter-spacing: 0.06em;
  font-family: var(--latin);
  font-style: italic;
}
body.style-studio .btn-ink-ghost {
  border-style: solid;
  border-left-width: 5px;
  background: color-mix(in srgb, var(--paper) 40%, transparent);
}
body.style-studio .btn-ink-ghost:hover {
  background: var(--ink);
  color: var(--btn-fg);
  border-color: var(--ink);
}
body.style-studio .hero-mark {
  display: none;
}
body.style-studio .about-dialog {
  border-left: 6px solid var(--ink);
}
body.style-studio .foot {
  text-align: left;
  padding-left: clamp(20px, 5vw, 56px);
  font-style: normal;
  letter-spacing: 0.12em;
  font-size: 11px;
  text-transform: uppercase;
}

/* 长卷：柔雾、有机曲线、流动光晕 */
body.style-continuum .grain {
  opacity: calc(var(--grain-opacity) * 0.5);
}
body.style-continuum .hero-visual {
  filter: saturate(0.9) contrast(0.96);
  border-radius: 0 0 0 28% / 0 0 0 18%;
  overflow: hidden;
}
body.style-continuum .ink-wash {
  background:
    radial-gradient(circle at 28% 32%, color-mix(in srgb, var(--wash) 75%, transparent), transparent 40%),
    radial-gradient(circle at 72% 68%, color-mix(in srgb, var(--wash-deep) 40%, transparent), transparent 48%),
    radial-gradient(ellipse at 50% 0%, rgba(255,255,255,0.45), transparent 42%),
    radial-gradient(circle at 80% 20%, color-mix(in srgb, var(--wash) 35%, transparent), transparent 35%);
  animation: wash-breathe 18s ease-in-out infinite;
}
body.style-continuum .paper-edge {
  border: none;
  inset: 10% 12%;
  border-radius: 42% 58% 55% 45% / 48% 42% 58% 52%;
  box-shadow:
    inset 0 0 100px color-mix(in srgb, var(--paper) 40%, transparent),
    0 0 60px color-mix(in srgb, var(--wash) 25%, transparent);
}
body.style-continuum .hero-copy h1 {
  font-weight: 500;
  letter-spacing: 0.24em;
  background: linear-gradient(90deg, var(--ink), color-mix(in srgb, var(--ink) 55%, var(--wash-deep)));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
body.style-continuum .hero-en {
  letter-spacing: 0.2em;
}
body.style-continuum .hero-line {
  letter-spacing: 0.42em;
  opacity: 0.85;
}
body.style-continuum .btn-ink {
  border-radius: 999px;
  padding: 0 30px;
  border-width: 1px;
  min-height: 48px;
}
body.style-continuum .btn-ink-ghost {
  backdrop-filter: blur(6px);
  background: color-mix(in srgb, var(--paper) 55%, transparent);
}
body.style-continuum .btn-ink-ghost:hover {
  background: var(--ink);
  color: var(--btn-fg);
  border-color: var(--ink);
  backdrop-filter: none;
}
body.style-continuum .hero-mark {
  opacity: 0.28;
  filter: blur(0.4px);
  font-weight: 400;
}
body.style-continuum .dl-pop-inner,
body.style-continuum .about-dialog {
  border-radius: 20px;
  border: none;
  box-shadow: 0 12px 40px color-mix(in srgb, var(--ink) 12%, transparent);
}
body.style-continuum .dl-pop::before {
  display: none;
}
body.style-continuum .foot {
  letter-spacing: 0.12em;
}

/* 碑体：纪念碑超大字、极窄边、少装饰 */
body.style-monolith .top {
  mix-blend-mode: normal;
  padding-top: 16px;
  padding-bottom: 16px;
}
body.style-monolith .top-brand img {
  display: none;
}
body.style-monolith .top-brand span {
  letter-spacing: 0.06em;
  font-weight: 700;
  font-size: 13px;
  text-transform: none;
}
body.style-monolith .top-nav {
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.08em;
}
body.style-monolith .hero-copy {
  justify-content: flex-end;
  padding-bottom: 72px;
  gap: 0;
}
body.style-monolith .hero-en {
  order: 2;
  margin-top: 20px;
  margin-bottom: 0;
  font-style: normal;
  letter-spacing: 0.08em;
  font-size: 14px;
}
body.style-monolith .hero-copy h1 {
  font-size: clamp(52px, 9.5vw, 112px);
  letter-spacing: 0.02em;
  font-weight: 700;
  line-height: 0.98;
}
body.style-monolith .hero-line {
  display: none;
}
body.style-monolith .hero-sub {
  max-width: 20em;
  font-size: 14px;
  letter-spacing: 0.02em;
  margin-top: 16px;
}
body.style-monolith .hero-cta {
  margin-top: 28px;
}
body.style-monolith .hero-visual .paper-edge {
  inset: 0;
  border: none;
  box-shadow: none;
}
body.style-monolith .ink-wash {
  background:
    linear-gradient(180deg, transparent 50%, color-mix(in srgb, var(--ink) 18%, transparent) 100%),
    radial-gradient(circle at 50% 30%, rgba(23, 21, 19, 0.25), transparent 50%);
}
body.style-monolith .hero-mark {
  left: 4%;
  right: auto;
  bottom: 6%;
  font-size: clamp(110px, 20vw, 240px);
  font-weight: 700;
  letter-spacing: -0.1em;
  opacity: 0.9;
}
body.style-monolith .btn-ink {
  min-height: 50px;
  letter-spacing: 0.06em;
  border-width: 1.5px;
  border-radius: 0;
  font-weight: 600;
}
body.style-monolith .btn-ink-ghost {
  background: transparent;
}
body.style-monolith .about-dialog {
  border: none;
  border-top: 4px solid var(--ink);
  padding-top: 32px;
}
body.style-monolith .foot {
  font-style: normal;
  letter-spacing: 0.06em;
  font-size: 12px;
  bottom: 12px;
}
