/* 本文件 = static/brand.css 的副本（2026-09-21 用户令：中转站改用素问站同款皮肤）。
   只此一处差异来源：不要单独改这里；改样式先改 static/brand.css 再整份覆盖过来。 */
/* Hallmark · macrostructure: Split Studio · theme: custom-inkgrid · nav: N3 · footer: Ft2 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V4 */
:root {
  --color-ink: #06293b;
  --color-ink-deep: #041e2c;
  --color-ink-mid: #0a3550;
  --color-paper: #f3f1eb;
  --color-paper-dim: #e7e3da;
  --color-snow: #f7fafc;
  --color-muted: #8fa096;
  --color-muted-soft: #b7c7d1;
  --color-danger: #b3452e;
  --color-line: rgba(255, 255, 255, 0.18);
  --color-line-dark: rgba(6, 41, 59, 0.14);
  --color-accent: #d8e6ef;
  --color-focus: #7eb8d4;
  --font-display: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
  --font-body: "IBM Plex Sans", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --space-xs: 0.4rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3.25rem;
  --space-2xl: 5rem;
  --measure: 38rem;
  --radius-sm: 2px;
  --shadow-soft: 0 18px 50px rgba(2, 16, 24, 0.28);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  overflow-x: clip;
}

body.brand-body {
  font-family: var(--font-body);
  color: var(--color-snow);
  background: var(--color-ink-deep);
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* —— 顶栏 —— */
.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) clamp(1rem, 4vw, 2.5rem);
  position: relative;
  z-index: 5;
}

.site-nav a {
  text-decoration: none;
  color: var(--color-accent);
  font-size: 0.92rem;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--color-snow);
}

.site-nav a:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  font-weight: 600;
}

.nav-brand img {
  width: 2rem;
  height: 2rem;
  border-radius: var(--radius-sm);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
  justify-content: flex-end;
}

/* —— 首页 Split Studio —— */
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  min-height: calc(100svh - 4.5rem);
  align-items: stretch;
}

.hero-visual {
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 30% 40%, rgba(126, 184, 212, 0.12), transparent 55%),
    linear-gradient(160deg, var(--color-ink-mid), var(--color-ink-deep));
  display: grid;
  place-items: center;
  padding: clamp(1.5rem, 5vw, 3.5rem);
  overflow: hidden;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% 10%;
  background-image:
    linear-gradient(var(--color-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-line) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.35;
  pointer-events: none;
}

.hero-visual img {
  position: relative;
  width: min(78%, 420px);
  border-radius: 4px;
  box-shadow: var(--shadow-soft);
  animation: rise-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* 在右侧板块内居中，避免贴左或贴右 */
  align-items: center;
  gap: var(--space-md);
  padding: clamp(1.75rem, 5vw, 3.75rem);
  background:
    linear-gradient(180deg, rgba(4, 30, 44, 0.35), transparent 40%),
    var(--color-ink);
  border-left: 1px solid var(--color-line);
  animation: rise-in 0.9s 0.12s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-copy > * {
  text-align: left;
  width: min(100%, 28rem);
}

.hero-copy h1 {
  margin: 0;
  font-family: var(--font-display);
  font-style: normal;
  font-weight: 700;
  font-size: clamp(2.35rem, 5.5vw, 3.6rem);
  line-height: 1.15;
  letter-spacing: 0.08em;
  overflow-wrap: anywhere;
  min-width: 0;
}

.hero-copy .lead {
  margin: 0;
  max-width: 22em;
  color: var(--color-accent);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  line-height: 1.7;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-top: var(--space-sm);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.85rem;
  padding: 0.7rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--color-snow);
  color: var(--color-ink);
}

.btn-primary:hover {
  background: #ffffff;
}

.btn-secondary {
  background: transparent;
  color: var(--color-snow);
  border-color: var(--color-line);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.04);
}

.btn-ghost {
  background: transparent;
  color: var(--color-accent);
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  padding-inline: 0.2rem;
  min-height: auto;
}

.section {
  padding: var(--space-2xl) clamp(1rem, 4vw, 2.5rem);
}

.section-tight {
  padding-top: 0;
}

.section-head {
  max-width: var(--measure);
  margin-bottom: var(--space-lg);
}

.section-head h2 {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-display);
  font-style: normal;
  font-size: clamp(1.55rem, 3vw, 2rem);
  letter-spacing: 0.04em;
  font-weight: 700;
  line-height: 1.25;
}

.section-head p {
  margin: 0;
  color: #3d5563;
  font-size: 1.02rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: auto auto;
  gap: var(--space-xl);
  align-items: center;
  justify-content: start;
  width: auto;
  max-width: none;
}

.qr-frame {
  border: 1px solid var(--color-line-dark);
  background: #fff;
  padding: 0.65rem;
  width: min(100%, 200px);
  justify-self: start;
}

.contact-grid .wechat-id {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.contact-grid .hint {
  margin-top: var(--space-xs);
  color: #5b7382;
  font-size: 0.92rem;
}

.qr-frame img {
  width: 100%;
}

.site-footer {
  padding: var(--space-lg) clamp(1rem, 4vw, 2.5rem) var(--space-xl);
  border-top: 1px solid var(--color-line);
  color: var(--color-muted);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
}

.site-footer a {
  color: var(--color-accent);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .hero-split {
    grid-template-columns: minmax(0, 1fr);
    min-height: auto;
  }

  .hero-visual {
    min-height: 46vw;
    min-height: 42svh;
  }

  .hero-copy {
    border-left: 0;
    border-top: 1px solid var(--color-line);
    align-items: stretch;
  }

  .hero-copy > * {
    width: auto;
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .qr-frame {
    justify-self: start;
  }
}

@media (max-width: 480px) {
  .cta-row .btn {
    width: 100%;
  }

  .nav-links {
    gap: 0.6rem 0.9rem;
  }
}

/* —— /shop 浅色页共用 —— */
body.shop-body {
  font-family: var(--font-body);
  color: var(--color-ink);
  background:
    radial-gradient(1100px 420px at 50% -80px, var(--color-accent) 0%, transparent 65%),
    linear-gradient(180deg, #eef3f6 0%, var(--color-paper) 45%, #ebe7df 100%);
  line-height: 1.65;
  min-height: 100vh;
}

.shop-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.25rem 1rem 3.5rem;
}

.shop-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.shop-nav a {
  color: var(--color-ink-mid);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.shop-nav a:hover {
  text-decoration: underline;
}

.shop-brand {
  text-align: center;
  padding: 1.5rem 0 1rem;
}

.shop-brand img {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 0.85rem;
  border-radius: 4px;
  box-shadow: 0 10px 28px rgba(6, 41, 59, 0.18);
}

.shop-brand h1 {
  margin: 0;
  font-family: var(--font-display);
  font-style: normal;
  font-size: clamp(1.85rem, 5vw, 2.35rem);
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--color-ink);
  line-height: 1.2;
}

.shop-brand .lead {
  margin: 0.75rem auto 0;
  max-width: 22em;
  color: #3d5563;
  font-size: 1rem;
}

.section-label {
  margin: 1.25rem 0 0.75rem;
  color: #5b7382;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.series {
  display: grid;
  gap: 0.75rem;
}

a.series-item,
.series-item {
  display: block;
  text-decoration: none;
  color: inherit;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--color-line-dark);
  border-radius: 4px;
  padding: 1.05rem 1.1rem 0.95rem;
  transition: border-color 0.15s ease, transform 0.15s ease, background 0.15s ease;
}

a.series-item:hover {
  border-color: var(--color-ink-mid);
  background: #fff;
  transform: translateY(-1px);
}

a.series-item:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 2px;
}

.series-item.soon {
  opacity: 0.72;
  pointer-events: none;
}

.series-top {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: flex-start;
}

.series-item h2 {
  margin: 0;
  font-family: var(--font-display);
  font-style: normal;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--color-ink);
}

.badge {
  flex-shrink: 0;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  background: var(--color-accent);
  color: var(--color-ink-mid);
}

.badge.soon {
  background: #e8e6e1;
  color: var(--color-muted);
}

.series-item p {
  margin: 0.55rem 0 0;
  color: #3d5563;
  font-size: 0.92rem;
}

.series-item .go {
  margin-top: 0.7rem;
  color: var(--color-ink-mid);
  font-weight: 700;
  font-size: 0.88rem;
}

.series-item.soon .go {
  color: var(--color-muted);
  font-weight: 600;
}

.unlock {
  margin-top: 1.25rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--color-line-dark);
  border-radius: 4px;
  padding: 1rem;
}

.unlock h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-style: normal;
  font-size: 1rem;
  border-left: 3px solid var(--color-ink-mid);
  padding-left: 0.55rem;
}

.unlock-row {
  display: flex;
  gap: 0.5rem;
}

.unlock-row input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--color-muted-soft);
  border-radius: 4px;
  padding: 0.75rem;
  font-size: 1rem;
  letter-spacing: 0.05em;
  font-family: var(--font-body);
}

.unlock-row input:focus {
  outline: 2px solid rgba(126, 184, 212, 0.55);
  border-color: var(--color-ink-mid);
}

.unlock .btn {
  background: var(--color-ink);
  color: #fff;
  border: none;
}

.unlock .btn:hover {
  background: var(--color-ink-mid);
}

.unlock .hint {
  color: #5b7382;
  font-size: 0.85rem;
  margin: 0.55rem 0 0;
}

.unlock .err {
  color: var(--color-danger);
  font-size: 0.9rem;
  margin-top: 0.55rem;
  display: none;
}

.shop-foot {
  text-align: center;
  color: var(--color-muted);
  font-size: 0.8rem;
  margin-top: 1.75rem;
  line-height: 1.6;
}

.btn-on-paper {
  background: var(--color-ink);
  color: #fff;
}

.btn-on-paper:hover {
  background: var(--color-ink-mid);
}

/* 仅「打开订阅枢纽」：深底上浅字浅边，保证看得见 */
.btn-hub {
  background: transparent;
  color: var(--color-snow);
  border: 1px solid rgba(247, 250, 252, 0.65);
}

.btn-hub:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(247, 250, 252, 0.9);
  color: #fff;
}

/* ── 2026-10-04 客户视角目审 P0-1：手机端页头 logo 曾竖排成四行（实测 nav-brand 高 97px） ── */
.nav-brand { flex: 0 0 auto; white-space: nowrap; }
.nav-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.35rem 0.9rem; }
@media (max-width: 560px) {
  .site-nav { gap: 0.5rem; padding: 0.7rem 1rem; }
  .nav-brand span { font-size: 0.98rem; letter-spacing: 0.02em; }
  .nav-links { font-size: 0.86rem; }
}
