@import url("https://fonts.googleapis.com/css2?family=ZCOOL+XiaoWei&family=Noto+Serif+SC:wght@400;500;600;700&display=swap");

:root {
  --bg: #1f1811;
  --bg-soft: #2b2217;
  --scene-bg-image: url("assets/background.svg");
  --scene-bg-focus: 50% 34%;
  --surface: rgba(248, 239, 221, 0.86);
  --surface-strong: rgba(244, 230, 203, 0.92);
  --surface-soft: rgba(249, 243, 232, 0.58);
  --line: rgba(117, 95, 69, 0.34);
  --line-strong: rgba(117, 95, 69, 0.52);
  --text: #2c2319;
  --muted: rgba(67, 52, 33, 0.78);
  --muted-soft: rgba(67, 52, 33, 0.62);
  --accent: #9f432e;
  --accent-strong: #7f2f21;
  --accent-soft: rgba(159, 67, 46, 0.12);
  --success: #2f5a4b;
  --danger: #a14f48;
  --shadow: 0 24px 58px rgba(31, 21, 12, 0.14);
  --shadow-soft: 0 14px 28px rgba(31, 21, 12, 0.1);
  --radius-xxl: 34px;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body.public-page {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  font-family: "Noto Serif SC", "ZCOOL XiaoWei", serif;
  color: var(--text);
  background: var(--scene-bg-image) var(--scene-bg-focus) / cover no-repeat fixed;
  background-color: #e7ddd1;
  position: relative;
  overflow-x: hidden;
}

body.is-auth-modal-open {
  overflow: hidden;
}

body.is-payment-modal-open {
  overflow: hidden;
}

a {
  color: inherit;
}

.site-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100vw - 32px));
  margin: 18px auto 40px;
}

.site-header,
.site-footer,
.page-shell,
.hero-section,
.entry-note,
.auth-card,
.preview-card,
.pack-card {
  position: relative;
  overflow: hidden;
}

.site-header,
.site-footer,
.page-shell,
.hero-section {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(249, 242, 228, 0.82), rgba(240, 227, 200, 0.78));
  backdrop-filter: blur(18px) saturate(0.88);
  box-shadow: var(--shadow);
}

.site-header::before,
.site-footer::before,
.page-shell::before,
.hero-section::before,
.entry-note::before,
.auth-card::before,
.preview-card::before,
.pack-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 249, 236, 0.3), transparent 26%),
    radial-gradient(circle at top left, rgba(255, 237, 198, 0.16), transparent 42%);
}

.site-header {
  border-radius: var(--radius-xl);
  padding: 18px 24px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  position: sticky;
  top: 14px;
  z-index: 20;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  color: var(--text);
  text-decoration: none;
  font-family: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  letter-spacing: 0.04em;
}

.site-brand img {
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
}

.site-nav,
.site-footer-links,
.page-nav,
.hero-actions,
.page-head-actions,
.form-actions,
.member-banner-actions,
.preview-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.site-nav,
.page-nav {
  justify-self: center;
  justify-content: center;
}

.site-nav a,
.site-footer-links a,
.page-nav a,
.text-link {
  position: relative;
  color: var(--muted-soft);
  text-decoration: none;
  transition: color 180ms ease;
}

.site-nav a::after,
.site-footer-links a::after,
.page-nav a::after,
.text-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.site-nav a:hover,
.site-footer-links a:hover,
.page-nav a:hover,
.text-link:hover {
  color: var(--text);
}

.site-nav a:hover::after,
.site-footer-links a:hover::after,
.page-nav a:hover::after,
.text-link:hover::after {
  transform: scaleX(1);
}

.site-nav a[aria-current="page"],
.page-nav a[aria-current="page"] {
  color: var(--accent);
}

.site-brand:focus-visible,
.site-nav a:focus-visible,
.site-footer-links a:focus-visible,
.page-nav a:focus-visible,
.text-link:focus-visible,
.public-inline-link:focus-visible,
.site-entry-link:focus-visible,
.primary-btn:focus-visible,
.secondary-btn:focus-visible,
.text-btn:focus-visible,
.auth-tab-btn:focus-visible,
.auth-modal-close:focus-visible,
.payment-modal-close:focus-visible {
  outline: 2px solid rgba(159, 67, 46, 0.42);
  outline-offset: 3px;
}

.site-entry-link,
.primary-btn,
.secondary-btn,
.text-btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  text-decoration: none;
}

.site-entry-link,
.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(111, 47, 33, 0.28);
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #fff4ea;
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 227, 0.2),
    0 12px 22px rgba(111, 47, 33, 0.18);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.site-entry-link:hover,
.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 227, 0.24),
    0 14px 26px rgba(111, 47, 33, 0.22);
  filter: saturate(1.05);
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(250, 245, 236, 0.62);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 250, 242, 0.6);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.secondary-btn:hover {
  transform: translateY(-1px);
  border-color: var(--line-strong);
  background: rgba(251, 246, 238, 0.84);
}

.secondary-btn-inline,
.primary-btn-inline {
  min-width: 132px;
}

.text-btn {
  padding: 0;
  background: transparent;
  color: var(--muted);
}

.text-btn:hover {
  color: var(--text);
}

.site-main {
  margin-top: 28px;
  display: grid;
  gap: 28px;
}

.hero-section {
  border-radius: var(--radius-xxl);
  padding: 44px 42px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 360px);
  gap: 28px;
  align-items: center;
}

.hero-copy h1,
.page-head h1,
.article-head h1,
.section-heading h2,
.feature-strip-item h2,
.story-step h3,
.preview-card h3,
.pack-card h2,
.article-section h2,
.entry-note h2,
.auth-card-head h2 {
  font-family: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  color: rgba(58, 39, 20, 0.96);
}

.hero-copy h1 {
  margin: 18px 0 0;
  font-size: clamp(38px, 6vw, 68px);
  line-height: 1.04;
  max-width: 10.2em;
}

.eyebrow,
.section-kicker,
.feature-label,
.auth-kicker,
.member-banner-kicker,
.preview-tag,
.pack-tag,
.story-step span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6d5437;
}

.hero-lead,
.page-head p,
.section-heading p,
.feature-strip-item p,
.story-step p,
.preview-card p,
.pack-card p,
.article-section p,
.article-section li,
.entry-note p,
.member-banner p {
  color: var(--muted);
  line-height: 1.86;
}

.hero-lead {
  margin: 20px 0 0;
  max-width: 38rem;
  font-size: 16px;
}

.hero-actions {
  margin-top: 26px;
}

.hero-facts {
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-facts > div {
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid rgba(117, 95, 69, 0.22);
  background: rgba(248, 242, 231, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 251, 243, 0.52);
}

.hero-facts dt {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6d5437;
}

.hero-facts dd {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.hero-side {
  display: grid;
  gap: 16px;
  align-content: start;
}

.hero-note {
  display: grid;
  gap: 14px;
  align-content: center;
  min-height: 100%;
}

.entry-note,
.auth-card,
.preview-card,
.pack-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(251, 245, 233, 0.76), rgba(242, 229, 205, 0.82));
  box-shadow: var(--shadow-soft);
}

.entry-note {
  padding: 22px 24px;
}

.entry-note h2 {
  margin: 10px 0 0;
  font-size: 28px;
  line-height: 1.18;
}

.entry-note p {
  margin: 0;
}

.entry-list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.entry-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.78;
}

.entry-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.88em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: var(--accent);
}

.hero-note-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-note-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(117, 95, 69, 0.22);
  background: rgba(255, 249, 238, 0.64);
  color: #6d5437;
  box-shadow: inset 0 1px 0 rgba(255, 251, 243, 0.58);
}

.auth-card {
  padding: 24px;
}

.auth-card-head h2 {
  margin: 10px 0 0;
  font-size: 30px;
  line-height: 1.18;
}

.auth-tab-strip {
  margin-top: 22px;
  padding: 6px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  border-radius: 999px;
  border: 1px solid rgba(117, 95, 69, 0.22);
  background: rgba(255, 251, 244, 0.62);
}

.auth-tab-btn {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted-soft);
  padding: 10px 12px;
  cursor: pointer;
  font: inherit;
  transition:
    color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.auth-tab-btn.is-active {
  color: var(--text);
  font-weight: 700;
  background: rgba(255, 250, 242, 0.92);
  box-shadow:
    inset 0 0 0 1px rgba(117, 95, 69, 0.2),
    0 6px 12px rgba(31, 21, 12, 0.08);
}

.status-banner {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(117, 95, 69, 0.22);
  background: rgba(255, 250, 241, 0.7);
  color: var(--text);
  line-height: 1.7;
}

.status-banner.is-error {
  color: #6d1f17;
  border-color: rgba(161, 79, 72, 0.3);
  background: rgba(223, 187, 182, 0.48);
}

.status-banner.is-success {
  color: #194133;
  border-color: rgba(47, 90, 75, 0.28);
  background: rgba(196, 221, 212, 0.5);
}

.auth-form {
  margin-top: 18px;
}

.hidden {
  display: none !important;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 14px;
  color: var(--muted);
}

.field input {
  width: 100%;
  min-height: 50px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(117, 95, 69, 0.26);
  background: rgba(255, 251, 244, 0.8);
  color: var(--text);
  font: inherit;
  outline: none;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.field input:focus {
  border-color: rgba(159, 67, 46, 0.46);
  box-shadow: 0 0 0 4px rgba(159, 67, 46, 0.1);
  background: rgba(255, 252, 246, 0.96);
}

.field input:focus-visible {
  border-color: rgba(159, 67, 46, 0.52);
  box-shadow: 0 0 0 4px rgba(159, 67, 46, 0.12);
}

.field input::placeholder {
  color: rgba(67, 52, 33, 0.36);
}

.code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.auth-inline-actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

.auth-inline-actions-start {
  justify-content: flex-start;
}

.form-actions {
  margin-top: 16px;
  justify-content: flex-end;
}

.form-actions-split {
  justify-content: space-between;
}

.member-banner {
  margin-bottom: 16px;
  padding: 18px 72px 18px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(117, 95, 69, 0.22);
  border-radius: 18px;
  background: rgba(255, 250, 242, 0.7);
}

.member-banner strong {
  display: block;
  margin-top: 8px;
  font-size: 18px;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 18px;
  padding:
    max(18px, env(safe-area-inset-top))
    18px
    max(18px, env(safe-area-inset-bottom));
  touch-action: pan-y;
}

.auth-modal-backdrop {
  position: fixed;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(24, 18, 12, 0.52);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.auth-modal-panel {
  z-index: 1;
  flex: 0 0 auto;
  margin: auto 0;
  width: min(640px, calc(100vw - 24px));
  max-height: none;
  overflow: hidden;
  padding: 22px 24px 24px;
  border-color: rgba(117, 95, 69, 0.44);
  box-shadow: 0 36px 80px rgba(21, 15, 9, 0.26);
}

.auth-modal-panel .auth-card-head {
  min-height: 42px;
  padding-right: 56px;
}

.auth-modal-close {
  appearance: none;
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(126, 103, 77, 0.22);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 252, 246, 0.98), rgba(243, 235, 224, 0.96));
  color: rgba(86, 68, 48, 0.92);
  cursor: pointer;
  font: inherit;
  font-size: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.88),
    0 8px 18px rgba(39, 28, 18, 0.08);
  transition:
    border-color 180ms ease,
    color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.auth-modal-close span {
  display: block;
  margin-top: -1px;
  font-size: 27px;
  line-height: 1;
  font-weight: 300;
}

.auth-modal-close:hover {
  color: rgba(48, 37, 25, 0.96);
  border-color: rgba(117, 95, 69, 0.34);
  background: linear-gradient(180deg, rgba(255, 254, 250, 1), rgba(245, 238, 228, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 10px 20px rgba(39, 28, 18, 0.12);
}

.auth-modal-close:active {
  transform: translateY(1px);
}

.payment-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 18px;
}

.payment-modal-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(6px);
  cursor: pointer;
}

.payment-modal-panel {
  z-index: 1;
  width: min(576px, calc(100vw - 32px));
  max-height: calc(100svh - 36px);
  overflow: auto;
  padding: 0;
  border: 0;
  border-radius: 22px;
  background: #fff;
  color: #111827;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.payment-modal .payment-modal-panel {
  padding: 0;
  border: 0;
  background: #fff;
}

.payment-modal-panel::before {
  display: none;
}

.payment-modal-head {
  min-height: 102px;
  padding: 32px 34px 24px;
  border-bottom: 1px solid #edf0f4;
}

.payment-modal-panel h2 {
  margin: 0;
  padding-right: 52px;
  color: #111827;
  font-size: 28px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.payment-modal .payment-modal-panel h2 {
  margin: 0;
  color: #111827;
  font-size: 28px;
  line-height: 1.25;
}

.payment-modal-body {
  padding: 34px 34px 32px;
  display: grid;
  justify-items: center;
}

.payment-modal-panel #payment-modal-subtitle {
  margin: 0 0 18px;
  color: #6b7280;
  font-size: 15px;
  line-height: 1.6;
  text-align: center;
}

.payment-modal-panel.is-qrcode #payment-modal-subtitle {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.payment-alipay-badge {
  margin: 0 auto 24px;
  min-height: 48px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  color: #1677ff;
  background: #eff6ff;
}

.payment-alipay-mark {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: #1677ff;
  font-size: 18px;
  line-height: 1;
  font-weight: 800;
}

.payment-alipay-badge strong {
  display: block;
  margin: 0;
  padding: 0;
  color: #1677ff;
  font-size: 18px;
  line-height: 1;
  font-weight: 800;
}

.payment-modal .payment-alipay-badge strong {
  margin: 0;
  padding: 0;
  color: #1677ff;
  font-size: 18px;
  line-height: 1;
}

.payment-modal-close {
  appearance: none;
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  font: inherit;
  font-size: 0;
  box-shadow: none;
  transition:
    color 160ms ease,
    background 160ms ease;
}

.payment-modal-close:hover {
  color: #6b7280;
  background: #f3f4f6;
}

.payment-modal-close span {
  display: block;
  margin-top: -2px;
  font-size: 38px;
  line-height: 1;
  font-weight: 200;
}

.payment-qr-frame {
  margin: 0 auto;
  width: min(352px, 100%);
  padding: 28px;
  border-radius: 20px;
  border: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: none;
}

.payment-qr-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
  background: #fff;
}

.payment-status-text {
  margin: 26px 0 0;
  color: #9ca3af;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: 0;
  text-align: center;
}

.payment-status-text.is-success {
  color: var(--success);
}

.payment-status-text.is-error {
  color: var(--danger);
}

.payment-modal-actions {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.payment-modal-panel.is-qrcode .payment-modal-actions {
  margin-top: 18px;
}

.payment-modal-panel.is-qrcode .payment-modal-actions .primary-btn,
.payment-modal-panel.is-qrcode .payment-modal-actions .secondary-btn {
  min-height: 38px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
}

.payment-modal-panel.is-qrcode .payment-modal-actions .primary-btn {
  border-color: transparent;
  background: transparent;
  color: #1677ff;
  box-shadow: none;
}

.payment-modal-panel.is-qrcode .payment-modal-actions .secondary-btn {
  border-color: transparent;
  background: transparent;
  color: #9ca3af;
  box-shadow: none;
}

.feature-strip,
.story-section,
.preview-section {
  display: grid;
  gap: 18px;
}

.preview-section {
  padding-top: 6px;
}

.section-heading {
  display: grid;
  gap: 10px;
  max-width: 52rem;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.12;
}

.section-heading p {
  margin: 0;
}

.feature-strip-grid,
.story-grid,
.preview-grid,
.pack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.feature-strip-item,
.story-step {
  padding-top: 18px;
  border-top: 1px solid rgba(117, 95, 69, 0.26);
}

.feature-strip-item h2 {
  margin: 12px 0 0;
  font-size: 28px;
  line-height: 1.22;
}

.feature-strip-item p {
  margin: 12px 0 0;
}

.story-step h3 {
  margin: 14px 0 0;
  font-size: 28px;
  line-height: 1.18;
}

.story-step p {
  margin: 12px 0 0;
}

.preview-card,
.pack-card {
  padding: 22px;
}

.preview-card h3,
.pack-card h2 {
  margin: 14px 0 0;
  font-size: 28px;
  line-height: 1.16;
}

.preview-card p,
.pack-card p {
  margin: 12px 0 0;
}

.preview-card strong,
.pack-card strong {
  display: block;
  margin-top: 20px;
  font-size: 32px;
  line-height: 1;
  color: #6d3f1c;
}

.preview-actions {
  margin-top: 4px;
}

.page-shell {
  margin-top: 28px;
  padding: 36px 40px 32px;
  border-radius: var(--radius-xxl);
}

.page-head {
  display: grid;
  gap: 14px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(117, 95, 69, 0.24);
}

.page-head h1,
.article-head h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 60px);
  line-height: 1.06;
}

.page-head p {
  margin: 0;
  max-width: 42rem;
}

.page-content {
  margin-top: 26px;
  display: grid;
  gap: 16px;
}

.article-section {
  padding-top: 20px;
  border-top: 1px solid rgba(117, 95, 69, 0.22);
}

.article-section h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.16;
}

.article-section p,
.article-section ul {
  margin: 12px 0 0;
}

.article-section ul {
  padding-left: 18px;
}

.public-inline-link {
  color: var(--accent);
  text-decoration: none;
}

.public-inline-link:hover {
  text-decoration: underline;
}

.site-footer {
  margin-top: 36px;
  padding: 22px 24px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-footer p {
  margin: 8px 0 0;
  color: var(--muted);
}

.site-header,
.hero-copy,
.hero-side,
.feature-strip-item,
.story-step,
.preview-card,
.pack-card,
.page-head,
.article-section,
.site-footer {
  animation: rise-in 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-side {
  animation-delay: 90ms;
}

.feature-strip-item:nth-child(1),
.story-step:nth-child(1),
.preview-card:nth-child(1),
.pack-card:nth-child(1),
.article-section:nth-child(1) {
  animation-delay: 120ms;
}

.feature-strip-item:nth-child(2),
.story-step:nth-child(2),
.preview-card:nth-child(2),
.pack-card:nth-child(2),
.article-section:nth-child(2) {
  animation-delay: 180ms;
}

.feature-strip-item:nth-child(3),
.story-step:nth-child(3),
.preview-card:nth-child(3),
.pack-card:nth-child(3),
.article-section:nth-child(3) {
  animation-delay: 240ms;
}

.pack-card:nth-child(4),
.article-section:nth-child(4) {
  animation-delay: 300ms;
}

.pack-card:nth-child(5),
.article-section:nth-child(5) {
  animation-delay: 360ms;
}

.pack-card:nth-child(6) {
  animation-delay: 420ms;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1120px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    grid-column: 1 / -1;
    justify-self: start;
    justify-content: flex-start;
  }

  .hero-section {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .hero-facts,
  .feature-strip-grid,
  .story-grid,
  .preview-grid,
  .pack-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(100vw - 18px, 100%);
    margin: 10px auto 22px;
  }

  .site-header,
  .hero-section,
  .page-shell,
  .site-footer {
    padding: 18px;
    border-radius: 24px;
  }

  .site-header {
    top: 10px;
    gap: 14px;
  }

  .site-brand {
    font-size: 18px;
  }

  .site-nav,
  .site-footer-links,
  .page-nav {
    gap: 10px;
  }

  .site-entry-link,
  .primary-btn,
  .secondary-btn,
  .primary-btn-inline,
  .secondary-btn-inline {
    width: 100%;
  }

  .hero-copy h1,
  .page-head h1,
  .article-head h1 {
    font-size: 34px;
    max-width: none;
  }

  .hero-actions,
  .page-head-actions,
  .form-actions,
  .form-actions-split,
  .member-banner-actions,
  .preview-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .entry-note,
  .auth-card,
  .preview-card,
  .pack-card {
    padding: 18px;
  }

  .auth-modal {
    align-items: flex-start;
    padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
  }

  .auth-modal-panel {
    width: 100%;
    max-height: none;
    padding: 18px;
    border-radius: 24px;
  }

  .payment-modal {
    padding: 12px;
  }

  .payment-modal-panel {
    width: 100%;
    max-height: calc(100svh - 24px);
    padding: 0;
    border-radius: 24px;
  }

  .payment-modal-head {
    min-height: 86px;
    padding: 26px 24px 20px;
  }

  .payment-modal-panel h2 {
    font-size: 24px;
  }

  .payment-modal-body {
    padding: 30px 24px 28px;
  }

  .payment-alipay-badge {
    margin-bottom: 22px;
  }

  .payment-qr-frame {
    width: min(352px, 100%);
    padding: 22px;
  }

  .payment-modal-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .auth-modal-close {
    top: 14px;
    right: 14px;
    width: 38px;
    height: 38px;
    min-height: 38px;
  }

  .auth-modal-close span {
    font-size: 25px;
  }

  .member-banner {
    padding: 16px 58px 16px 16px;
  }

  .entry-note h2,
  .auth-card-head h2,
  .feature-strip-item h2,
  .story-step h3,
  .preview-card h3,
  .pack-card h2,
  .article-section h2 {
    font-size: 24px;
  }

  .auth-tab-strip {
    grid-template-columns: 1fr;
    border-radius: 18px;
  }

  .auth-tab-btn {
    border-radius: 14px;
  }

  .form-grid,
  .code-row {
    grid-template-columns: 1fr;
  }

  .member-banner,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-note-tags span {
    min-height: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Compact home page */
body.public-page {
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(138, 102, 61, 0.9) transparent;
}

body.public-page::-webkit-scrollbar {
  width: 6px;
}

body.public-page::-webkit-scrollbar-track {
  background: transparent;
  margin: 14px 0 16px;
}

body.public-page::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(164, 122, 76, 0.92), rgba(125, 89, 54, 0.96));
  box-shadow: 0 0 0 1px rgba(255, 247, 235, 0.08);
}

body.public-page::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(175, 131, 82, 0.96), rgba(136, 97, 59, 0.98));
}

.site-shell {
  width: min(1180px, calc(100vw - 28px));
  min-height: calc(100svh - 28px);
  margin: 14px auto;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
}

.site-header {
  position: relative;
  top: auto;
  padding: 16px 20px;
  border-radius: 26px;
}

.site-main {
  margin-top: 0;
  min-height: 0;
  display: block;
}

.hero-section.hero-section--compact {
  min-height: 100%;
  padding: 34px 36px;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.82fr);
  gap: 22px;
  align-items: stretch;
  border-radius: 30px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
}

.hero-copy h1 {
  margin: 14px 0 0;
  font-size: clamp(34px, 4.6vw, 58px);
  line-height: 1.04;
  max-width: 8.8em;
}

.hero-lead {
  margin: 16px 0 0;
  max-width: 34rem;
  font-size: 15px;
  line-height: 1.7;
}

.hero-actions {
  margin-top: 22px;
}

.hero-link {
  font-size: 14px;
}

.site-header,
.hero-copy,
.compact-note {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

.hero-points {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-points li {
  min-height: 0;
  padding: 15px 16px;
  border-radius: 18px;
  border: 1px solid rgba(117, 95, 69, 0.22);
  background: rgba(248, 242, 231, 0.48);
  box-shadow: inset 0 1px 0 rgba(255, 251, 243, 0.52);
  color: var(--muted);
  line-height: 1.65;
}

.compact-note {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  padding: 26px;
}

.compact-note h2 {
  margin: 10px 0 0;
  font-size: clamp(26px, 2.6vw, 34px);
  line-height: 1.12;
}

.hero-note-intro {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.prompt-list {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.prompt-pill {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(117, 95, 69, 0.24);
  background: rgba(251, 246, 238, 0.72);
  color: rgba(58, 39, 20, 0.9);
  box-shadow: inset 0 1px 0 rgba(255, 251, 244, 0.74);
}

.note-foot {
  margin: 16px 0 0;
  color: var(--muted-soft);
  font-size: 14px;
}

@media (max-width: 1120px) {
  .site-shell {
    min-height: calc(100svh - 24px);
    margin: 12px auto;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    grid-column: 1 / -1;
    justify-self: start;
    justify-content: flex-start;
  }

  .hero-section.hero-section--compact {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hero-points {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body.public-page {
    scrollbar-color: rgba(156, 114, 72, 0.82) transparent;
  }

  body.public-page::-webkit-scrollbar {
    width: 4px;
  }

  body.public-page::-webkit-scrollbar-track {
    margin: 10px 1px 12px 0;
  }

  body.public-page::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(156, 114, 72, 0.82), rgba(121, 86, 54, 0.9));
    box-shadow: none;
  }

  body.public-page::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(166, 122, 77, 0.86), rgba(129, 92, 58, 0.92));
  }

  .site-shell {
    width: min(100vw - 16px, 100%);
    min-height: calc(100svh - 16px);
    margin: 8px auto;
    gap: 10px;
  }

  .site-header,
  .hero-section.hero-section--compact {
    padding: 16px;
    border-radius: 24px;
  }

  .site-header {
    top: auto;
    gap: 10px;
  }

  .site-brand {
    font-size: 17px;
  }

  .site-nav {
    gap: 6px 10px;
    font-size: 12px;
  }

  .site-entry-link {
    min-height: 42px;
    padding: 0 16px;
  }

  .hero-section.hero-section--compact {
    gap: 10px;
    align-items: start;
  }

  .hero-copy h1 {
    font-size: 28px;
    max-width: none;
  }

  .hero-copy {
    justify-content: flex-start;
  }

  .hero-lead {
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.56;
  }

  .hero-actions {
    margin-top: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .hero-points {
    margin-top: 12px;
    gap: 10px;
  }

  .hero-points li {
    padding: 10px 12px;
    line-height: 1.5;
    font-size: 13px;
  }

  .hero-points li:last-child {
    display: none;
  }

  .compact-note {
    display: none;
  }

  .compact-note {
    padding: 18px;
  }

  .compact-note h2 {
    font-size: 24px;
  }

  .hero-note-intro,
  .note-foot {
    font-size: 13px;
    line-height: 1.55;
  }

  .prompt-list {
    margin-top: 14px;
    gap: 8px;
  }

  .prompt-pill {
    min-height: 40px;
    padding: 0 14px;
    font-size: 13px;
  }
}

/* Public page refresh */
:root {
  --surface: rgba(252, 248, 241, 0.92);
  --surface-strong: rgba(248, 242, 233, 0.96);
  --surface-soft: rgba(255, 252, 247, 0.74);
  --line: rgba(109, 90, 66, 0.14);
  --line-strong: rgba(109, 90, 66, 0.24);
  --text: #2f281f;
  --muted: rgba(69, 56, 41, 0.72);
  --muted-soft: rgba(69, 56, 41, 0.56);
  --accent: #8f4f39;
  --accent-strong: #76402f;
  --accent-soft: rgba(143, 79, 57, 0.1);
  --shadow: 0 18px 38px rgba(39, 30, 21, 0.08);
  --shadow-soft: 0 10px 22px rgba(39, 30, 21, 0.06);
  --radius-xxl: 30px;
  --radius-xl: 22px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

body.public-page {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  background: var(--scene-bg-image) 50% 22% / cover no-repeat fixed;
  background-color: #e6dfd4;
}

.site-shell {
  width: min(1080px, calc(100vw - 40px));
  margin: 20px auto 28px;
}

.site-header,
.site-footer,
.page-shell,
.hero-section,
.entry-note,
.auth-card,
.preview-card,
.pack-card {
  border-color: var(--line);
  background: linear-gradient(180deg, rgba(254, 252, 248, 0.95), rgba(247, 241, 232, 0.92));
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px) saturate(0.92);
}

.site-header::before,
.site-footer::before,
.page-shell::before,
.hero-section::before,
.entry-note::before,
.auth-card::before,
.preview-card::before,
.pack-card::before {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.3), transparent 24%),
    radial-gradient(circle at top left, rgba(255, 245, 224, 0.1), transparent 40%);
}

.site-header {
  padding: 14px 18px;
  border-radius: var(--radius-xl);
  gap: 18px;
}

.site-brand {
  gap: 10px;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
}

.site-brand img {
  width: 34px;
  height: 34px;
}

.site-nav,
.site-footer-links,
.page-nav {
  gap: 10px 14px;
}

.site-nav a,
.site-footer-links a,
.page-nav a,
.text-link {
  font-size: 13px;
  color: var(--muted-soft);
}

.site-entry-link,
.primary-btn {
  min-height: 42px;
  padding: 0 18px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  border-color: rgba(118, 64, 47, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 240, 227, 0.16),
    0 8px 16px rgba(111, 47, 33, 0.14);
}

.secondary-btn {
  min-height: 42px;
  padding: 0 16px;
  font-size: 14px;
  border-color: rgba(109, 90, 66, 0.18);
  background: rgba(255, 252, 247, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.text-btn {
  font-size: 14px;
}

.hero-copy h1,
.page-head h1,
.article-head h1,
.section-heading h2,
.feature-strip-item h2,
.story-step h3,
.preview-card h3,
.pack-card h2,
.article-section h2,
.entry-note h2,
.auth-card-head h2 {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-weight: 600;
  color: rgba(48, 38, 27, 0.96);
}

.hero-copy h1 {
  font-size: clamp(32px, 4.8vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.hero-lead,
.page-head p,
.section-heading p,
.feature-strip-item p,
.story-step p,
.preview-card p,
.pack-card p,
.article-section p,
.article-section li,
.entry-note p,
.member-banner p {
  line-height: 1.72;
}

.hero-lead,
.page-head p,
.preview-card p,
.pack-card p,
.article-section p,
.article-section li,
.entry-note p {
  font-size: 15px;
}

.page-shell {
  margin-top: 22px;
  padding: 28px 30px 26px;
  border-radius: var(--radius-xxl);
}

.page-head {
  gap: 10px;
  padding-bottom: 18px;
}

.page-head h1,
.article-head h1 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.14;
  letter-spacing: -0.01em;
}

.page-head p {
  max-width: 46rem;
}

.page-content {
  margin-top: 20px;
  gap: 14px;
}

.pack-grid {
  gap: 16px;
}

.preview-card,
.pack-card {
  padding: 18px;
  border-radius: var(--radius-lg);
}

.preview-card h3,
.pack-card h2 {
  margin-top: 10px;
  font-size: 24px;
  line-height: 1.22;
}

.preview-card p,
.pack-card p {
  margin-top: 10px;
}

.preview-card strong,
.pack-card strong {
  margin-top: 16px;
  font-size: 22px;
  font-weight: 700;
  color: #855238;
}

.article-section {
  padding-top: 16px;
}

.article-section h2 {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.article-section p,
.article-section ul {
  margin-top: 10px;
}

.public-inline-link {
  color: var(--accent);
  font-weight: 600;
}

.site-footer {
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 0;
}

.site-footer strong {
  font-size: 15px;
  font-weight: 600;
}

.site-footer p {
  margin-top: 6px;
  font-size: 13px;
}

.site-header,
.hero-copy,
.hero-side,
.feature-strip-item,
.story-step,
.preview-card,
.pack-card,
.page-head,
.article-section,
.site-footer,
.compact-note {
  animation: none !important;
  opacity: 1 !important;
  transform: none !important;
}

@media (max-width: 1120px) {
  .site-shell {
    width: min(100vw - 26px, 100%);
  }

  .page-shell {
    padding: 24px 22px;
  }

  .page-head h1,
  .article-head h1 {
    font-size: clamp(28px, 5vw, 40px);
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(100vw - 14px, 100%);
    margin: 8px auto 18px;
  }

  .site-header,
  .page-shell,
  .hero-section.hero-section--compact,
  .site-footer {
    border-radius: 20px;
  }

  .site-header {
    padding: 12px 14px;
  }

  .site-brand {
    font-size: 16px;
  }

  .site-nav a,
  .site-footer-links a,
  .page-nav a,
  .text-link {
    font-size: 12px;
  }

  .site-entry-link,
  .primary-btn,
  .secondary-btn {
    min-height: 40px;
    font-size: 14px;
  }

  .hero-copy h1 {
    font-size: 26px;
    line-height: 1.18;
  }

  .hero-lead,
  .page-head p,
  .preview-card p,
  .pack-card p,
  .article-section p,
  .article-section li,
  .entry-note p {
    font-size: 14px;
    line-height: 1.62;
  }

  .page-shell {
    padding: 18px 16px;
  }

  .page-head h1,
  .article-head h1 {
    font-size: 28px;
  }

  .preview-card h3,
  .pack-card h2,
  .article-section h2,
  .entry-note h2,
  .auth-card-head h2 {
    font-size: 20px;
  }

  .preview-card strong,
  .pack-card strong {
    font-size: 20px;
  }
}

/* Homepage refresh */

.home-main {
  margin-top: 12px;
  display: grid;
  gap: 12px;
}

.home-hero,
.home-highlights,
.home-seo-notes,
.home-feedback,
.home-learn-more {
  position: relative;
  overflow: hidden;
  padding: clamp(16px, 2vw, 24px);
  border-radius: 28px;
  border: 1px solid rgba(128, 93, 55, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0.96), rgba(250, 242, 231, 0.9)),
    rgba(255, 250, 243, 0.94);
  box-shadow: 0 16px 42px rgba(117, 88, 61, 0.1);
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  align-items: center;
  gap: clamp(24px, 3vw, 34px);
}

.home-hero-copy {
  display: grid;
  gap: 14px;
  align-content: start;
  max-width: 560px;
}

.home-hero-copy h1 {
  margin: 0;
  font-size: clamp(34px, 4.9vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.home-hero-lead {
  margin: 0;
  max-width: 28rem;
  font-size: 17px;
  line-height: 1.84;
  color: rgba(63, 42, 24, 0.84);
}

.home-hero-actions {
  display: flex;
  align-items: center;
  gap: 10px 12px;
  flex-wrap: wrap;
  padding-top: 0;
}

.home-hero-actions .primary-btn {
  width: auto;
  min-width: 0;
  max-width: 100%;
}

.home-hero-actions .hero-link {
  white-space: nowrap;
}

.home-method-list,
.home-signal-strip {
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-method-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px 16px;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  color: rgba(77, 52, 29, 0.9);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.5;
  text-align: center;
}

.home-method-list li {
  position: relative;
}

.home-method-list li:not(:first-child)::before {
  content: "·";
  position: absolute;
  left: -12px;
  color: rgba(139, 94, 55, 0.5);
}

.home-method-list-more {
  font-weight: 600;
  background: linear-gradient(90deg, #1d140c 0%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.home-signal-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  justify-content: start;
  padding-top: 0;
  width: 100%;
  max-width: 100%;
  overflow: visible;
}

.home-signal-strip span {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 9px 12px 10px;
  border-radius: 999px;
  border: 1px solid rgba(136, 94, 56, 0.14);
  background: rgba(255, 248, 238, 0.84);
  color: rgba(78, 52, 29, 0.82);
  font-size: 13px;
  line-height: 1.35;
}

.home-hero-visual {
  margin: 0;
  display: grid;
  gap: 8px;
  align-content: start;
  justify-items: center;
}

.home-hero-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: center;
  border-radius: 24px;
  border: 1px solid rgba(120, 87, 55, 0.14);
  box-shadow: 0 18px 44px rgba(112, 84, 53, 0.18);
}

.section-heading {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.section-heading--compact {
  margin-bottom: 8px;
}

.section-heading--row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.home-highlights-close {
  color: rgba(91, 65, 39, 0.72);
  white-space: nowrap;
}

.home-highlights-close:hover {
  color: rgba(59, 36, 18, 0.92);
}

.home-highlight-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
}

.home-highlight-list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 14px 15px;
  border: 1px solid rgba(132, 96, 61, 0.12);
  border-radius: 18px;
  background: rgba(255, 249, 241, 0.66);
}

.home-highlight-index {
  display: inline-flex;
  align-items: baseline;
  color: rgba(153, 107, 67, 0.86);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.home-highlight-list strong {
  display: block;
  color: #3b2412;
  font-size: 16px;
  line-height: 1.32;
}

.home-highlight-list p {
  margin: 6px 0 0;
  color: rgba(68, 46, 26, 0.78);
  font-size: 14px;
  line-height: 1.58;
}

.home-seo-notes {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  align-items: start;
  gap: 18px;
}

.home-section-copy {
  display: grid;
  gap: 10px;
  max-width: 25rem;
}

.home-section-copy h2,
.home-feedback h2 {
  margin: 0;
  color: #3b2412;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.home-section-copy p,
.home-feedback .section-heading p {
  margin: 0;
  color: rgba(68, 46, 26, 0.78);
  font-size: 14px;
  line-height: 1.7;
}

.home-note-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.home-note {
  border: 1px solid rgba(132, 96, 61, 0.12);
  border-radius: 18px;
  background: rgba(255, 249, 241, 0.64);
}

.home-note summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 46px;
  padding: 0 14px;
  color: #3b2412;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
  list-style: none;
}

.home-note summary::-webkit-details-marker {
  display: none;
}

.home-note summary::after {
  content: "+";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(125, 87, 49, 0.09);
  color: rgba(92, 61, 34, 0.72);
  font-size: 17px;
  font-weight: 600;
  line-height: 1;
}

.home-note[open] summary::after {
  content: "-";
}

.home-note p {
  margin: 0;
  padding: 0 14px 14px;
  color: rgba(68, 46, 26, 0.78);
  font-size: 14px;
  line-height: 1.7;
}

.home-feedback {
  display: grid;
  gap: 14px;
}

.home-feedback-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 14px;
}

.home-feedback-column {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(132, 96, 61, 0.12);
  border-radius: 20px;
  background: rgba(255, 249, 241, 0.58);
}

.home-feedback-column h3 {
  margin: 0 0 10px;
  color: rgba(59, 36, 18, 0.9);
  font-size: 15px;
  letter-spacing: 0.04em;
}

.home-feedback blockquote {
  margin: 0;
  padding: 12px 0;
  border-top: 1px solid rgba(132, 96, 61, 0.1);
}

.home-feedback blockquote:first-of-type {
  border-top: 0;
  padding-top: 2px;
}

.home-feedback blockquote p {
  margin: 0;
  color: rgba(61, 40, 21, 0.86);
  font-size: 14px;
  line-height: 1.68;
}

.home-feedback cite {
  display: block;
  margin-top: 7px;
  color: rgba(111, 80, 47, 0.58);
  font-size: 12px;
  font-style: normal;
}

.home-update-card {
  display: grid;
  gap: 6px;
  padding: 12px 0;
  border-top: 1px solid rgba(132, 96, 61, 0.1);
}

.home-update-card:first-of-type {
  border-top: 0;
  padding-top: 2px;
}

.home-update-card h4 {
  margin: 0;
  color: rgba(59, 36, 18, 0.92);
  font-size: 15px;
  line-height: 1.36;
}

.home-update-card p {
  margin: 0;
  color: rgba(68, 46, 26, 0.74);
  font-size: 13px;
  line-height: 1.62;
}

.home-update-status {
  justify-self: start;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.home-update-status.is-done {
  color: #29543f;
  background: rgba(195, 219, 204, 0.68);
}

.home-update-status.is-progress {
  color: #755332;
  background: rgba(238, 217, 184, 0.78);
}

.home-learn-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-block: 14px;
}

.home-learn-more > span {
  color: rgba(59, 36, 18, 0.86);
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.home-link-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.home-link-grid a {
  padding: 8px 11px;
  border: 1px solid rgba(132, 96, 61, 0.14);
  border-radius: 999px;
  background: rgba(255, 249, 241, 0.62);
  color: rgba(78, 52, 29, 0.82);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}

.home-link-grid a:hover {
  color: rgba(45, 27, 13, 0.95);
  background: rgba(255, 250, 243, 0.9);
}

@media (max-width: 980px) {
  .home-hero,
  .home-highlight-list,
  .home-seo-notes,
  .home-feedback-grid {
    grid-template-columns: 1fr;
  }

  .home-section-copy {
    max-width: 42rem;
  }
}

@media (max-width: 760px) {
  .home-main {
    gap: 10px;
    margin-top: 10px;
  }

  .home-hero,
  .home-highlights,
  .home-seo-notes,
  .home-feedback,
  .home-learn-more {
    padding: 14px 14px;
    border-radius: 22px;
  }

  .home-hero-copy h1 {
    font-size: 29px;
  }

  .home-hero-lead,
  .home-highlight-list p,
  .home-section-copy p,
  .home-note p,
  .home-feedback .section-heading p,
  .home-feedback blockquote p {
    font-size: 14px;
    line-height: 1.62;
  }

  .section-heading {
    margin-bottom: 8px;
  }

  .section-heading--row {
    align-items: baseline;
  }

  .home-highlight-list li {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 10px;
    padding: 12px;
  }

  .home-section-copy h2,
  .home-feedback h2 {
    font-size: 23px;
  }

  .home-note summary {
    min-height: 44px;
    padding-inline: 12px;
    font-size: 14px;
  }

  .home-note p {
    padding: 0 12px 12px;
  }

  .home-feedback-column {
    padding: 12px;
    border-radius: 18px;
  }

  .home-learn-more {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .home-learn-more > span {
    white-space: normal;
  }

  .home-link-grid {
    justify-content: flex-start;
  }

  .home-signal-strip span {
    font-size: 12px;
  }

  .home-method-list {
    gap: 6px 14px;
    font-size: 12px;
  }

  .home-hero-actions {
    align-items: center;
    gap: 12px 14px;
  }

  .home-hero-actions .primary-btn {
    width: auto !important;
    min-height: 46px;
    padding: 0 20px !important;
    border-radius: 24px;
    font-size: 15px;
    line-height: 1;
    box-shadow:
      inset 0 1px 0 rgba(255, 240, 227, 0.2),
      0 10px 18px rgba(111, 47, 33, 0.14);
  }
}

@media (max-width: 760px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 10px 12px;
  }

  .site-brand {
    grid-column: 1;
    grid-row: 1;
  }

  .site-nav {
    grid-column: 1 / 3;
    grid-row: 2;
    justify-self: start;
    justify-content: flex-start;
    gap: 6px 10px;
    margin-top: 2px;
  }

  .site-entry-link {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    width: auto;
    min-width: 122px;
    padding: 0 18px;
    white-space: nowrap;
  }
}

@media (max-width: 1120px) and (min-width: 761px) {
  .site-shell,
  .site-header {
    width: min(100vw - 26px, 100%);
  }
}

/* Fixed top header */

.site-shell {
  width: min(1080px, calc(100vw - 40px));
  margin: 0 auto 28px;
  padding-top: 94px;
}

.site-header {
  position: fixed;
  top: 0;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  z-index: 48;
  width: min(1080px, calc(100vw - 40px));
  border: none;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  backdrop-filter: blur(12px) saturate(0.92);
  background: linear-gradient(180deg, rgba(252, 248, 241, 0.74), rgba(248, 242, 233, 0.18) 76%, rgba(248, 242, 233, 0) 100%);
  padding: 14px 18px 22px;
}

.site-header::before {
  content: "";
  position: absolute;
  top: 0;
  left: calc((var(--public-stage-width) - var(--public-frame-width)) / -2);
  bottom: -18px;
  width: var(--public-stage-width);
  transform: none;
  background:
    linear-gradient(180deg, rgba(252, 248, 241, 0.96) 0%, rgba(248, 242, 233, 0.9) 46%, rgba(248, 242, 233, 0.42) 76%, rgba(248, 242, 233, 0) 100%);
  pointer-events: none;
}

.site-header::after {
  content: "";
  position: absolute;
  left: calc((var(--public-stage-width) - var(--public-frame-width)) / -2);
  bottom: -1px;
  width: var(--public-stage-width);
  height: 1px;
  transform: none;
  background: linear-gradient(90deg, rgba(171, 146, 111, 0), rgba(171, 146, 111, 0.22) 18%, rgba(171, 146, 111, 0.26) 82%, rgba(171, 146, 111, 0));
  pointer-events: none;
}

.site-header > * {
  position: relative;
  z-index: 1;
}

@media (max-width: 760px) {
  .site-shell {
    width: min(100vw - 14px, 100%);
    padding-top: 108px;
  }

  .site-header {
    width: min(100vw - 14px, 100%);
    padding: 12px 14px 18px;
  }
}

/* Public scrollbar final override */

body.public-page {
  --app-scrollbar-dock: 14px;
  --public-scrollbar-dock: var(--app-scrollbar-dock);
  --public-stage-width: calc(100vw - var(--public-scrollbar-dock));
  --public-shell-edge-gap: 40px;
  --public-frame-width: min(1080px, calc(var(--public-stage-width) - var(--public-shell-edge-gap)));
  --scroll-rail-size: 10px;
  --scroll-rail-color: rgba(137, 99, 57, 0.68);
  --scroll-rail-track-color: rgba(246, 239, 226, 0.34);
  --scroll-rail-track: rgba(246, 239, 226, 0.3);
  --scroll-rail-track-border: 1px solid rgba(138, 102, 62, 0.14);
  --scroll-rail-track-margin: 10px 0 14px;
  --scroll-rail-thumb: linear-gradient(180deg, rgba(172, 127, 79, 0.92), rgba(132, 94, 53, 0.96));
  --scroll-rail-thumb-border: 2px solid rgba(246, 239, 226, 0.52);
  --scroll-rail-thumb-shadow: inset 0 1px 0 rgba(255, 248, 236, 0.24);
  --scroll-rail-thumb-hover: linear-gradient(180deg, rgba(183, 136, 86, 0.96), rgba(143, 101, 57, 0.98));
  overflow: hidden;
  overscroll-behavior: none;
  scrollbar-width: none;
}

body.public-page::-webkit-scrollbar {
  display: none;
}

.public-scroll-stage {
  position: relative;
  width: var(--public-stage-width);
  max-width: var(--public-stage-width);
  min-height: 100vh;
  min-height: 100svh;
  overflow: visible;
}

.public-scroll-host {
  position: relative;
  width: calc(100% + var(--public-scrollbar-dock));
  max-width: none;
  min-height: 100vh;
  min-height: 100svh;
  height: 100vh;
  height: 100svh;
  margin-right: calc(var(--public-scrollbar-dock) * -1);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable !important;
  scrollbar-width: thin;
  scrollbar-color: var(--scroll-rail-color) var(--scroll-rail-track-color);
}

.public-scroll-host::-webkit-scrollbar {
  width: var(--scroll-rail-size);
  height: var(--scroll-rail-size);
}

.public-scroll-host::-webkit-scrollbar-track {
  background: var(--scroll-rail-track);
  border-radius: 999px;
  border: var(--scroll-rail-track-border);
  margin: var(--scroll-rail-track-margin);
}

.public-scroll-host::-webkit-scrollbar-thumb {
  border-radius: 999px;
  border: var(--scroll-rail-thumb-border);
  background: var(--scroll-rail-thumb);
  box-shadow: var(--scroll-rail-thumb-shadow);
}

.public-scroll-host::-webkit-scrollbar-thumb:hover {
  background: var(--scroll-rail-thumb-hover);
}

@media (max-width: 820px) {
  body.public-page {
    --scroll-rail-size: 6px;
    --scroll-rail-color: rgba(138, 102, 61, 0.9);
    --scroll-rail-track-color: transparent;
    --scroll-rail-track: rgba(235, 225, 209, 0.18);
    --scroll-rail-track-border: 0;
    --scroll-rail-track-margin: 14px 3px 16px 0;
    --scroll-rail-thumb: linear-gradient(180deg, rgba(164, 122, 76, 0.92), rgba(125, 89, 54, 0.96));
    --scroll-rail-thumb-border: 0;
    --scroll-rail-thumb-shadow: 0 0 0 1px rgba(255, 247, 235, 0.08);
    --scroll-rail-thumb-hover: linear-gradient(180deg, rgba(175, 131, 82, 0.96), rgba(136, 97, 59, 0.98));
  }
}

@media (max-width: 700px) {
  body.public-page {
    --app-scrollbar-dock: 10px;
    --scroll-rail-size: 4px;
    --scroll-rail-color: rgba(132, 96, 58, 0.72);
    --scroll-rail-track-color: transparent;
    --scroll-rail-track: transparent;
    --scroll-rail-track-border: 0;
    --scroll-rail-track-margin: 10px 1px 12px 0;
    --scroll-rail-thumb: linear-gradient(180deg, rgba(156, 114, 72, 0.82), rgba(121, 86, 54, 0.9));
    --scroll-rail-thumb-border: 0;
    --scroll-rail-thumb-shadow: none;
    --scroll-rail-thumb-hover: linear-gradient(180deg, rgba(166, 122, 77, 0.86), rgba(129, 92, 58, 0.92));
  }
}

/* Public layout final override */

.site-shell {
  width: var(--public-frame-width) !important;
  max-width: none !important;
  margin: 0 0 28px calc((var(--public-stage-width) - var(--public-frame-width)) / 2) !important;
  padding-top: 96px !important;
}

.site-header {
  width: var(--public-frame-width) !important;
  max-width: none !important;
  left: calc((var(--public-stage-width) - var(--public-frame-width)) / 2) !important;
  right: auto !important;
  transform: none !important;
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 18px !important;
  padding: 14px 18px 20px !important;
}

.site-brand {
  justify-self: start;
}

.site-nav {
  grid-column: 2 !important;
  justify-self: center !important;
  justify-content: center !important;
  gap: 10px 14px !important;
}

.site-entry-link {
  grid-column: 3 !important;
  justify-self: end !important;
  width: auto !important;
  min-width: 136px;
  max-width: none !important;
  padding: 0 18px !important;
  white-space: nowrap;
  flex: 0 0 auto !important;
}

.home-main,
.page-shell {
  width: 100% !important;
  max-width: none !important;
  margin-top: 0 !important;
}

.page-shell {
  padding: 28px 30px 26px !important;
}

.page-head-actions {
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
}

.page-head-actions .primary-btn,
.page-head-actions .secondary-btn {
  width: auto !important;
}

@media (max-width: 1120px) and (min-width: 761px) {
  body.public-page {
    --public-shell-edge-gap: 26px;
  }
}

@media (max-width: 760px) {
  body.public-page {
    --public-shell-edge-gap: 14px;
  }

  .site-shell {
    padding-top: 110px !important;
    margin: 0 0 18px calc((var(--public-stage-width) - var(--public-frame-width)) / 2) !important;
  }

  .site-header {
    grid-template-columns: auto 1fr auto !important;
    gap: 10px 12px !important;
    padding: 12px 14px 18px !important;
  }

  .site-brand {
    grid-column: 1;
    grid-row: 1;
  }

  .site-nav {
    grid-column: 1 / 3 !important;
    grid-row: 2;
    justify-self: start !important;
    justify-content: flex-start !important;
    gap: 6px 10px !important;
    margin-top: 2px;
  }

  .site-entry-link {
    grid-column: 3 !important;
    grid-row: 1;
    min-width: 122px;
  }

  .page-shell {
    padding: 18px 16px !important;
  }

  .page-head-actions {
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .page-head-actions .primary-btn,
  .page-head-actions .secondary-btn {
    width: 100% !important;
  }
}

/* Public pages final polish */
:root {
  --public-shell-top: 98px;
}

.site-shell {
  padding-top: var(--public-shell-top) !important;
}

.site-header {
  min-height: 78px;
}

.site-nav {
  align-content: center;
  line-height: 1.45;
}

.home-main,
.page-shell {
  margin-top: 0 !important;
}

.page-shell--pricing .page-head {
  width: min(100%, 760px);
}

.page-shell--pricing .page-head h1 {
  max-width: 14ch;
}

.page-shell--pricing .page-head p {
  max-width: 34rem;
}

.page-shell--pricing .pack-grid {
  align-items: stretch;
  gap: 16px;
}

.page-shell--pricing .pack-card {
  display: grid;
  align-content: start;
  min-height: 100%;
}

.page-shell--pricing .pack-card p {
  margin-top: 8px;
}

.page-shell--pricing .pack-card strong {
  margin-top: auto;
  padding-top: 18px;
}

.pack-price {
  margin-top: auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding-top: 18px;
}

.pack-price-highlight {
  display: grid;
  justify-items: end;
  gap: 5px;
}

.page-shell--pricing .pack-card .pack-price-current {
  margin-top: 0;
  padding-top: 0;
  text-align: right;
  white-space: nowrap;
}

.pack-price-original {
  font-size: 13px;
  line-height: 1.2;
  color: rgba(34, 32, 30, 0.52);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(34, 32, 30, 0.32);
}

.pack-price-discount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #7f4b30;
  background: linear-gradient(135deg, rgba(169, 104, 65, 0.18), rgba(255, 245, 235, 0.92));
  border: 1px solid rgba(169, 104, 65, 0.18);
}

.page-shell--pricing .pack-price {
  margin-top: 12px;
  padding-top: 0;
  align-items: center;
}

.page-shell--pricing .pack-price-highlight {
  gap: 3px;
}

.page-shell--pricing .pack-actions {
  margin-top: 14px;
}

.page-shell--pricing .pack-buy-btn {
  min-width: 116px;
}

.support-meta {
  color: rgba(34, 32, 30, 0.58);
  font-size: 14px;
  line-height: 1.45;
}

.pack-buy-btn:disabled,
.pack-buy-btn.is-busy {
  cursor: wait;
  opacity: 0.74;
  transform: none;
}

.page-shell--article .page-head,
.page-shell--article .page-content {
  width: min(100%, 860px);
}

.page-shell--support .page-head,
.page-shell--support .page-content {
  width: min(100%, 760px);
}

.page-shell--support .article-section:first-child .public-inline-link {
  font-size: clamp(24px, 4vw, 30px);
  line-height: 1.2;
  word-break: break-word;
}

@media (max-width: 760px) {
  :root {
    --public-shell-top: 124px;
  }

  .site-shell {
    padding-top: var(--public-shell-top) !important;
  }

  .site-header {
    grid-template-columns: minmax(0, 1fr) auto !important;
    min-height: 104px;
    gap: 10px 10px !important;
    padding: 12px 14px 14px !important;
  }

  .site-brand {
    min-width: 0;
  }

  .site-brand span {
    white-space: nowrap;
  }

  .site-nav {
    grid-column: 1 / -1 !important;
    grid-row: 2 !important;
    width: 100% !important;
    max-width: none !important;
    justify-self: stretch !important;
    justify-content: flex-start !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    gap: 0 12px !important;
    margin-top: 0 !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 2px 2px 2px 0;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .site-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
    line-height: 1.3;
  }

  .site-entry-link {
    grid-column: 2 !important;
    grid-row: 1 !important;
    min-width: 110px;
    min-height: 40px;
    padding: 0 16px !important;
  }

  .page-shell--pricing .page-head,
  .page-shell--article .page-head,
  .page-shell--article .page-content,
  .page-shell--support .page-head,
  .page-shell--support .page-content {
    width: 100%;
  }

  .page-shell--pricing .page-head h1 {
    max-width: none;
  }

  .page-shell--pricing .pack-grid {
    gap: 14px;
  }
}
