/* Generated by scripts/build_site_css.py — do not edit by hand. Edit static/css/ slices and rebuild. */

/* ===== 00-base.css ===== */
/* 灵脉官网 · 统一样式（download-service） */
/* Fonts load via <link> in HTML (display=swap) — do not @import here. */

:root {
  --bg: #f3f5fa;
  --surface: #ffffff;
  --surface-elevated: #fafbfd;
  --text: #0c1222;
  --text-body: #3d4757;
  --muted: #5a6678;
  --line: rgba(15, 23, 42, 0.09);
  --line-strong: rgba(15, 23, 42, 0.14);
  --accent: #2248eb;
  --accent-hover: #1a3acb;
  --accent-muted: #e8edfc;
  --accent-border: rgba(34, 72, 235, 0.22);
  --green: #0d9a4e;
  --green-soft: #e8f7ee;
  --green-border: rgba(13, 154, 78, 0.28);
  --orange: #c2410c;
  --orange-soft: #fff4e8;
  --blue-soft: #e8f0ff;
  --radius: 16px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.04),
    0 10px 28px rgba(15, 23, 42, 0.07);
  --shadow-strong: 0 4px 14px rgba(15, 23, 42, 0.08),
    0 22px 48px rgba(15, 23, 42, 0.06);
  --container: 1120px;
  --narrow: 980px;
  /* System Chinese stack by default — avoid blocking webfonts on first paint */
  --font: -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans SC", "Source Han Sans SC", ui-sans-serif, sans-serif;
  --focus: 0 0 0 2px var(--surface), 0 0 0 5px rgba(34, 72, 235, 0.38);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  background: var(--bg);
  background-image: radial-gradient(
    ellipse 120% 80% at 50% -20%,
    rgba(34, 72, 235, 0.06),
    transparent 55%
  );
  color: var(--text);
  line-height: 1.625;
  letter-spacing: 0;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
}

/* ===== 30-hub-topbar.css ===== */
/* —— 全站 Hub 顶栏（主页与子页唯一来源，勿分散覆盖） —— */
body.page-site--hub {
  scrollbar-gutter: stable;
  --hub-topbar-height: 112px;
  --hub-topbar-offset: var(--hub-topbar-height);
  padding-top: var(--hub-topbar-offset);
}

body.page-site--hub .topbar.topbar--hub {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 30;
  box-sizing: border-box;
  height: var(--hub-topbar-height);
  background: var(--hub-glass-strong);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--hub-gold-border);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

body.page-site--hub .topbar--hub::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hub-gold), transparent);
  opacity: 0.55;
  pointer-events: none;
}

body.page-site--hub .topbar--hub .topbar-inner {
  max-width: var(--hub-container);
  margin: 0 auto;
  padding: 8px 16px;
  display: grid;
  gap: 8px 16px;
  align-items: center;
  grid-template-columns: 1fr;
  grid-template-areas:
    "brand account"
    "nav nav";
  box-sizing: border-box;
  height: 100%;
}

body.page-site--hub .topbar--hub .brand {
  grid-area: brand;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  text-decoration: none;
}

body.page-site--hub .topbar--hub a.brand:hover,
body.page-site--hub .topbar--hub a.brand:focus,
body.page-site--hub .topbar--hub a.brand:focus-visible,
body.page-site--hub .topbar--hub a.brand:visited {
  text-decoration: none;
}

body.page-site--hub .topbar--hub .brand > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  min-width: 0;
}

body.page-site--hub .topbar--hub .logo {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  margin: 0;
}

body.page-site--hub .topbar--hub .nav {
  grid-area: nav;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  min-height: 36px;
  min-width: 0;
}

body.page-site--hub .topbar--hub .portal-account,
body.page-site--hub .topbar--hub [data-portal-account] {
  grid-area: account;
  justify-self: end;
  align-self: center;
  min-width: 0;
}

body.page-site--hub .topbar--hub .nav a {
  box-sizing: border-box;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  min-height: 36px;
  margin: 0;
  color: var(--hub-text-muted);
  /* Always reserve border box so hover/current never shift layout. */
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  outline: none;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

body.page-site--hub .topbar--hub .nav a:hover {
  border-color: var(--hub-gold-border);
  background: rgba(212, 175, 55, 0.08);
  color: var(--hub-gold-bright);
}

body.page-site--hub .topbar--hub .nav a:focus,
body.page-site--hub .topbar--hub .nav a:focus-visible,
body.page-site--hub .topbar--hub .nav a:active {
  /* Kill global expanding focus ring that can jitter overflow nav. */
  outline: none;
  box-shadow: none;
}

body.page-site--hub .topbar--hub .nav a:focus-visible {
  border-color: var(--hub-gold-border-strong);
  background: rgba(212, 175, 55, 0.1);
  color: var(--hub-gold-bright);
}

body.page-site--hub .topbar--hub .nav a[aria-current="page"] {
  border-color: var(--hub-gold-border-strong);
  background: rgba(212, 175, 55, 0.1);
  color: var(--hub-gold-bright);
  font-weight: 600;
}

body.page-site--hub .brand--landing strong {
  display: block;
  line-height: 1.15;
  font-size: 15px;
  background: linear-gradient(180deg, #f1d37d 0%, #d4af37 55%, #a88420 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-decoration: none;
}

body.page-site--hub .brand--landing small {
  display: block;
  line-height: 1.15;
  margin-top: 0;
  font-size: 12px;
  color: var(--hub-text-muted);
  text-decoration: none;
}

@media (min-width: 1100px) {
  body.page-site--hub {
    --hub-topbar-height: 65px;
  }

  body.page-site--hub .topbar--hub .topbar-inner {
    /* Equal side rails keep the nav truly centered when account width changes. */
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-areas: "brand nav account";
    align-items: center;
    padding: 0 16px;
    gap: 12px;
  }

  body.page-site--hub .topbar--hub .brand {
    width: auto;
    max-width: 100%;
    min-width: 0;
    justify-self: start;
    align-self: center;
  }

  body.page-site--hub .topbar--hub .brand small {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.page-site--hub .topbar--hub .nav {
    justify-content: center;
    flex-wrap: nowrap;
    align-self: center;
    width: auto;
    max-width: 100%;
    overflow: visible;
  }

  body.page-site--hub .topbar--hub .portal-account,
  body.page-site--hub .topbar--hub [data-portal-account] {
    width: 100%;
    max-width: 100%;
    justify-self: end;
  }
}

/* ===== 31-hub-home.css ===== */
/* Hub shared tokens + chrome used across marketing / auth / studio pages.
   Old home carousel / spotlight / tool grids removed (gallery home uses 35-hub-home-gallery). */

body.page-home--hub {
  --hub-bg-deep: #080808;
  --hub-bg-mid: #121212;
  --hub-bg-glow: rgba(212, 175, 55, 0.06);
  --hub-gold: #d4af37;
  --hub-gold-bright: #f0c05a;
  --hub-gold-muted: rgba(212, 175, 55, 0.55);
  --hub-gold-border: rgba(212, 175, 55, 0.22);
  --hub-gold-border-strong: rgba(212, 175, 55, 0.45);
  --hub-text: #f5f5f5;
  --hub-text-muted: rgba(255, 255, 255, 0.55);
  --hub-glass: rgba(18, 18, 18, 0.72);
  --hub-glass-strong: rgba(12, 12, 12, 0.88);
  --hub-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
  --hub-shadow-gold: 0 0 24px rgba(212, 175, 55, 0.12);
  --hub-container: 1280px;

  background: var(--hub-bg-mid);
  background-image:
    radial-gradient(ellipse 80% 55% at 50% -10%, var(--hub-bg-glow), transparent 55%),
    radial-gradient(ellipse 60% 40% at 85% 20%, rgba(212, 175, 55, 0.04), transparent 50%),
    linear-gradient(180deg, var(--hub-bg-mid) 0%, var(--hub-bg-deep) 100%);
  color: var(--hub-text);
}

body.page-home--hub::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.45) 100%);
  z-index: 0;
}

body.page-home--hub > *:not(.topbar),
body.page-site--hub > *:not(.topbar) {
  position: relative;
  z-index: 1;
}

body.page-home--hub .wrap--hub {
  max-width: var(--hub-container);
  padding: 1.5rem 1.75rem 2.5rem;
}

body.page-home--hub .hub-btn,
body.page-site--hub .hub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.62rem 1.25rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

body.page-home--hub .hub-btn--primary,
body.page-site--hub .hub-btn--primary {
  color: var(--hub-bg-deep, #080808);
  background: linear-gradient(135deg, var(--hub-gold-bright, #f0c05a), var(--hub-gold, #d4af37));
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.25);
}

body.page-home--hub .hub-btn--primary:hover,
body.page-site--hub .hub-btn--primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
  filter: brightness(1.05);
}

body.page-home--hub .hub-btn--ghost,
body.page-site--hub .hub-btn--ghost {
  color: var(--hub-gold-bright, #f0c05a);
  border: 1px solid var(--hub-gold-border, rgba(212, 175, 55, 0.22));
  background: transparent;
}

body.page-home--hub .hub-btn--ghost:hover,
body.page-site--hub .hub-btn--ghost:hover {
  border-color: var(--hub-gold-border-strong, rgba(212, 175, 55, 0.45));
  background: rgba(212, 175, 55, 0.08);
}

body.page-home--hub .hub-inline-link {
  color: var(--hub-gold-bright);
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.page-home--hub .hub-section {
  margin-bottom: 2rem;
}

body.page-home--hub .hub-section__head {
  display: flex;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

body.page-home--hub .hub-section__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--hub-text);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

body.page-home--hub .hub-section__title::before {
  content: "◆";
  font-size: 0.55rem;
  color: var(--hub-gold);
}

body.page-home--hub .hub-section--panel {
  padding: 1.25rem 1.35rem;
  border-radius: 10px;
  background: var(--hub-glass);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

body.page-home--hub .hub-product-card__order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.38rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #1a1408;
  text-decoration: none;
  border-radius: 6px;
  background: linear-gradient(180deg, #f0c05a 0%, #c9a227 100%);
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.25);
  transition: filter 0.2s ease, transform 0.2s ease;
}

body.page-home--hub .hub-product-card__order:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

body.page-home--hub .hub-summary-list {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--hub-text-muted);
  font-size: 0.9rem;
  line-height: 1.75;
}

body.page-home--hub .hub-summary-list a {
  color: var(--hub-gold-bright);
  text-decoration: underline;
  text-underline-offset: 2px;
}

body.page-home--hub .hub-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hub-gold-border);
  text-align: center;
  font-size: 0.82rem;
  color: var(--hub-text-muted);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

body.page-home--hub .hub-footer__links {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

body.page-home--hub .hub-footer__links a {
  color: var(--hub-text-muted);
  text-decoration: none;
}

body.page-home--hub .hub-footer__links a:hover {
  color: var(--hub-gold-bright);
}

body.page-home--hub .hub-footer__beian-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

body.page-home--hub .hub-footer__beian {
  color: var(--hub-text-muted);
  text-decoration: none;
}

body.page-home--hub .hub-footer__beian--mps {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

body.page-home--hub .hub-footer__beian--mps img {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

body.page-home--hub .hub-footer__beian:hover {
  color: var(--hub-gold-bright);
}

/* ===== 33-hub-contact.css ===== */
/* —— 微信服务号 · 全站联系区块与页脚 —— */

.hub-wechat-contact__inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: start;
}

.hub-wechat-contact__qr-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.hub-wechat-contact__qr {
  display: block;
  width: 168px;
  height: 168px;
  padding: 10px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid var(--hub-gold-border-strong, rgba(212, 175, 55, 0.45));
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.hub-wechat-contact__scan {
  margin: 0;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  color: var(--hub-gold-muted, rgba(212, 175, 55, 0.55));
}

.hub-wechat-contact__kicker {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hub-gold-muted, rgba(212, 175, 55, 0.55));
}

.hub-wechat-contact__heading {
  margin: 0 0 0.65rem;
  font-size: clamp(1.15rem, 2.2vw, 1.35rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--hub-gold-bright, #f0c05a);
}

.hub-wechat-contact__lead {
  margin: 0 0 0.85rem;
  max-width: 52ch;
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--hub-text-muted, rgba(255, 255, 255, 0.55));
}

.hub-wechat-contact__list {
  margin: 0 0 0.85rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.45rem;
}

.hub-wechat-contact__list li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(245, 245, 245, 0.88);
}

.hub-wechat-contact__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hub-gold, #d4af37);
}

.hub-wechat-contact__meta {
  margin: 0 0 0.45rem;
  font-size: 0.88rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.62);
}

.hub-wechat-contact__meta strong {
  color: var(--hub-gold-bright, #f0c05a);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hub-wechat-contact__mail {
  color: var(--hub-gold-bright, #f0c05a);
  text-decoration: none;
}

.hub-wechat-contact__mail:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.hub-wechat-contact__hint {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}

body.page-site--hub .hub-wechat-contact {
  margin-top: 1.5rem;
}

body.page-site--hub .hub-wechat-contact.hub-section--panel {
  padding: clamp(1rem, 2.5vw, 1.35rem);
  border-radius: 10px;
  border: 1px solid var(--hub-gold-border, rgba(212, 175, 55, 0.22));
  background: rgba(0, 0, 0, 0.28);
}

body.page-site--hub .hub-wechat-contact .hub-section__head {
  margin-bottom: 0.75rem;
}

body.page-site--hub .hub-wechat-contact .hub-section__title {
  margin: 0;
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  font-weight: 700;
  color: var(--hub-gold-bright, #f0c05a);
  letter-spacing: 0.04em;
}

body.page-site--hub.page-faq .hub-wechat-contact,
body.page-site--hub.page-terms .hub-wechat-contact {
  margin-top: 1.25rem;
}

body.page-site--hub.page-download .hub-wechat-contact {
  margin-top: 1.5rem;
}

body.page-site--hub.page-download .hub-wechat-contact .hub-section__head {
  margin-bottom: 0.75rem;
}

body.page-site--hub.page-download .hub-wechat-contact.hub-section--panel {
  padding: clamp(1rem, 2.5vw, 1.35rem);
  border-radius: 10px;
  border: 1px solid var(--hub-gold-border, rgba(212, 175, 55, 0.22));
  background: rgba(0, 0, 0, 0.28);
}

/* 下载页：服务号二维码固定右上角（顶栏下方） */
body.page-download .hub-qr-fixed {
  position: fixed;
  top: calc(var(--hub-topbar-height, 112px) + 12px);
  right: 16px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  width: 168px;
  padding: 14px 14px 12px;
  border-radius: 12px;
  border: 1px solid var(--hub-gold-border, rgba(212, 175, 55, 0.28));
  background: rgba(8, 8, 8, 0.92);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.page-download .hub-qr-fixed__img {
  display: block;
  width: 140px;
  height: 140px;
  padding: 6px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(212, 175, 55, 0.2);
  object-fit: contain;
}

body.page-download .hub-qr-fixed__label {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.3;
  letter-spacing: 0.04em;
  color: var(--hub-gold-bright, #f0c05a);
  text-align: center;
  white-space: nowrap;
}

body.page-download .hub-qr-fixed__sub {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.35;
  letter-spacing: 0.02em;
  color: rgba(240, 192, 90, 0.78);
  text-align: center;
}

body.page-download .hub-wechat-contact__inner--text {
  display: block;
  grid-template-columns: none;
}

body.page-download .hub-wechat-contact--text-only .hub-wechat-contact__lead {
  max-width: 42rem;
}

@media (max-width: 900px) {
  body.page-download .hub-qr-fixed {
    width: 140px;
    padding: 12px 12px 10px;
    right: 12px;
    top: calc(var(--hub-topbar-height, 112px) + 8px);
  }

  body.page-download .hub-qr-fixed__img {
    width: 116px;
    height: 116px;
    padding: 5px;
  }

  body.page-download .hub-qr-fixed__label {
    font-size: 0.72rem;
  }

  body.page-download .hub-qr-fixed__sub {
    font-size: 0.65rem;
  }
}

@media (max-width: 640px) {
  body.page-download .hub-qr-fixed {
    width: 118px;
    right: 8px;
    padding: 10px 10px 8px;
  }

  body.page-download .hub-qr-fixed__img {
    width: 96px;
    height: 96px;
  }

  body.page-download .hub-qr-fixed__label {
    font-size: 0.68rem;
  }

  body.page-download .hub-qr-fixed__sub {
    font-size: 0.6rem;
    max-width: 100px;
  }
}

/* 页脚服务号条 */
.hub-footer--with-follow {
  gap: 1rem;
}

.hub-footer-follow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  flex-wrap: wrap;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--hub-gold-border, rgba(212, 175, 55, 0.22));
  background: rgba(0, 0, 0, 0.22);
  max-width: 36rem;
  margin: 0 auto;
  text-align: left;
}

.hub-footer-follow__qr {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  padding: 4px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--hub-gold-border, rgba(212, 175, 55, 0.22));
}

.hub-footer-follow__text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.hub-footer-follow__text strong {
  font-size: 0.92rem;
  color: var(--hub-gold-bright, #f0c05a);
  font-weight: 600;
}

.hub-footer-follow__text span {
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.52);
}

.hub-footer__copy {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.82rem;
}

@media (max-width: 640px) {
  .hub-wechat-contact__inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .hub-wechat-contact__lead,
  .hub-wechat-contact__list {
    max-width: none;
  }

  .hub-wechat-contact__list li {
    text-align: left;
  }
}

/* ===== 35-hub-home-gallery.css ===== */
/* Homepage gallery redesign: full-bleed hero + static toolbox grids (no marquee) */
body.page-home--gallery {
  --home-ink: oklch(0.16 0.02 85);
  --home-paper: oklch(0.97 0.01 90);
  --home-gold: oklch(0.82 0.12 85);
  --home-gold-deep: oklch(0.68 0.12 80);
  --home-muted: oklch(0.72 0.02 90);
  --home-max: min(1440px, calc(100% - 2.5rem));
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  background: var(--hub-bg-deep, #080808);
  color: var(--hub-text, #f5f5f5);
  /* Hide scrollbar track/thumb; scrolling still works */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html:has(body.page-home--gallery) {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html:has(body.page-home--gallery)::-webkit-scrollbar,
body.page-home--gallery::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

body.page-home--gallery .topbar--home-gallery {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  background: rgba(8, 8, 8, 0.94);
  border-bottom: 1px solid rgba(212, 175, 55, 0.14);
  backdrop-filter: blur(10px);
}

body.page-home--gallery .topbar-home-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

body.page-home--gallery .home-gallery {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

/* —— Full viewport hero —— */
body.page-home--gallery .home-hero {
  position: relative;
  min-height: 100svh;
  min-height: 100dvh;
  display: grid;
  place-items: center start;
  overflow: clip;
  color: #f7f2e6;
}

body.page-home--gallery .home-hero__stage {
  position: absolute;
  inset: 0;
  z-index: 0;
}

body.page-home--gallery .home-hero__bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transform: scale(1.04);
  animation: home-hero-ken 18s ease-out both;
}

body.page-home--gallery .home-hero__stage picture {
  display: contents;
}

@keyframes home-hero-ken {
  from { transform: scale(1.1); }
  to { transform: scale(1.04); }
}

body.page-home--gallery .home-hero__veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(6, 5, 4, 0.9) 0%, rgba(6, 5, 4, 0.72) 34%, rgba(6, 5, 4, 0.28) 58%, rgba(6, 5, 4, 0.2) 100%),
    linear-gradient(180deg, rgba(6, 5, 4, 0.55) 0%, transparent 32%, transparent 68%, rgba(6, 5, 4, 0.72) 100%);
}

body.page-home--gallery .home-hero__grain {
  position: absolute;
  inset: 0;
  opacity: 0.18;
  pointer-events: none;
  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)' opacity='0.55'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

body.page-home--gallery .home-hero__content {
  position: relative;
  z-index: 1;
  width: var(--home-max);
  margin: 0 auto;
  padding: clamp(1.5rem, 12vh, 5.5rem) 1.25rem clamp(2.5rem, 6vh, 3.5rem);
  align-self: start;
  animation: home-rise 0.9s ease both;
}

@keyframes home-rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

body.page-home--gallery .home-hero__brand {
  margin: 0 0 0.85rem;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: clamp(3.2rem, 10vw, 6.4rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: 0.08em;
  background: linear-gradient(180deg, #fff6d4 0%, #f0c05a 42%, #c9a227 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 10px 28px rgba(0, 0, 0, 0.45));
}

body.page-home--gallery .home-hero__line {
  margin: 0 0 0.75rem;
  max-width: 34rem;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  color: rgba(248, 231, 168, 0.92);
}

body.page-home--gallery .home-hero__support {
  margin: 0 0 1.75rem;
  max-width: 32rem;
  font-size: clamp(0.9rem, 1.5vw, 1.02rem);
  font-weight: 400;
  letter-spacing: 0.04em;
  line-height: 1.65;
  color: rgba(255, 248, 230, 0.72);
}

body.page-home--gallery .home-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.25rem;
}

body.page-home--gallery .home-hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: rgba(248, 231, 168, 0.7);
  text-decoration: none;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

body.page-home--gallery .home-hero__scroll::after {
  content: "";
  width: 1px;
  height: 2.25rem;
  background: linear-gradient(180deg, rgba(240, 192, 90, 0.8), transparent);
  animation: home-scroll-line 1.6s ease-in-out infinite;
}

@keyframes home-scroll-line {
  0%, 100% { transform: scaleY(0.55); opacity: 0.45; }
  50% { transform: scaleY(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  body.page-home--gallery .home-hero__bg,
  body.page-home--gallery .home-hero__content,
  body.page-home--gallery .home-hero__scroll::after {
    animation: none;
  }
}

/* —— Content bands —— */
body.page-home--gallery .home-band {
  width: var(--home-max);
  margin: 0 auto;
  padding: clamp(2.75rem, 6vw, 4.25rem) 1.25rem;
  content-visibility: auto;
  contain-intrinsic-size: 720px;
}

body.page-home--gallery .home-band#capabilities {
  position: relative;
  z-index: 2;
  margin-top: -350px;
  padding-top: clamp(0.35rem, 1.2vw, 0.75rem);
}

/* Soften the hero photo behind the overlapped band head + sticky tabs. */
body.page-home--gallery .home-band#capabilities::before {
  content: "";
  position: absolute;
  inset: -1px 0 auto;
  height: 320px;
  background: linear-gradient(180deg, rgba(8, 8, 8, 0.66), rgba(8, 8, 8, 0.32) 62%, transparent);
  pointer-events: none;
  z-index: -1;
}

body.page-home--gallery .home-band#capabilities {
  content-visibility: visible;
}

/* Client workshops: separate chapter under the capability catalog. */
body.page-home--gallery .home-band#workshop {
  margin-top: 0.5rem;
  border-top: 1px solid rgba(212, 175, 55, 0.14);
}

body.page-home--gallery .home-band--tight {
  padding-top: 1.25rem;
}

body.page-home--gallery .home-band__head {
  margin-bottom: 1.5rem;
  max-width: 42rem;
}

body.page-home--gallery .home-band__title {
  margin: 0 0 0.45rem;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #f4e7bc;
}

body.page-home--gallery .home-band__sub {
  margin: 0;
  color: var(--hub-text-muted, rgba(255, 255, 255, 0.55));
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Client workshops: full-width equal columns */
body.page-home--gallery .home-client-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
}

body.page-home--gallery .home-client-item {
  display: grid;
  gap: 0.55rem;
  text-decoration: none;
  color: inherit;
}

body.page-home--gallery .home-client-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.2s ease, transform 0.35s ease;
}

body.page-home--gallery .home-client-item span {
  font-size: 0.88rem;
  color: rgba(255, 248, 230, 0.82);
}

body.page-home--gallery .home-client-item:hover img {
  border-color: rgba(212, 175, 55, 0.4);
  transform: translateY(-2px);
}

/* Toolbox tabs + static grid: stack panels so height does not collapse on switch */
body.page-home--gallery .home-toolbox {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow-anchor: none;
}

body.page-home--gallery .home-toolbox__tabs {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(212, 175, 55, 0.16);
  position: sticky;
  top: var(--hub-topbar-height, 112px);
  z-index: 6;
  background: linear-gradient(180deg, rgba(8, 8, 8, 0.96) 70%, rgba(8, 8, 8, 0.88));
}

body.page-home--gallery .home-toolbox__tab {
  appearance: none;
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

body.page-home--gallery .home-toolbox__tab:hover {
  color: #f4e7bc;
}

body.page-home--gallery .home-toolbox__tab.is-active {
  color: #1a1408;
  background: linear-gradient(180deg, #f0c05a, #d4af37);
}

body.page-home--gallery .home-toolbox__panel {
  grid-column: 1;
  grid-row: 2;
  overflow-anchor: none;
}

body.page-home--gallery .home-toolbox__panel[hidden] {
  display: block !important;
  visibility: hidden;
  pointer-events: none;
  z-index: 0;
}

body.page-home--gallery .home-toolbox__panel.is-active {
  visibility: visible;
  pointer-events: auto;
  z-index: 1;
}

body.page-home--gallery .home-tile-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
}

body.page-home--gallery .home-tile {
  display: grid;
  gap: 0.45rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

body.page-home--gallery .home-tile img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #121212;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

body.page-home--gallery .home-tile span {
  font-size: 0.82rem;
  line-height: 1.35;
  color: rgba(255, 248, 230, 0.78);
}

body.page-home--gallery a.home-tile:hover img,
body.page-home--gallery a.home-tile:focus-visible img {
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.2);
}

body.page-home--gallery .home-tile--static {
  opacity: 0.92;
}

body.page-home--gallery .home-tile--static span::after {
  content: " · 客户端";
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.72em;
}

/* Meta + wechat */
body.page-home--gallery .home-band--footer-stack {
  padding-bottom: 1.5rem;
}

body.page-home--gallery .home-meta-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.5rem 2rem;
  align-items: start;
}

body.page-home--gallery .home-wechat-inner {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}

body.page-home--gallery .home-gallery-footer {
  width: var(--home-max);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
}

@media (max-width: 1100px) {
  body.page-home--gallery .home-client-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  body.page-home--gallery .home-tile-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body.page-home--gallery .home-hero {
    place-items: center start;
  }

  body.page-home--gallery .home-hero__content {
    padding-top: 3.25rem;
  }

  body.page-home--gallery .home-client-list,
  body.page-home--gallery .home-meta-grid {
    grid-template-columns: 1fr;
  }

  body.page-home--gallery .home-tile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.page-home--gallery .topbar--home-gallery .nav {
    display: none;
  }
}
