/* ================================================================
   独立站春哥 · 站点样式
   第一阶段：公开知识库 + 会员入口界面
   ================================================================ */

/* ---------- 1. 设计令牌 ---------- */
:root {
  --ink: #0e1318;
  --ink-2: #161d24;
  --ink-3: #222c35;
  --paper: #f7f4ed;
  --paper-2: #efe9dd;
  --white: #ffffff;
  --line: #e3dccd;
  --line-strong: #d3c9b7;
  --text: #171b20;
  --text-soft: #3b4046;
  --muted: #6e6a60;
  --muted-2: #948e81;
  --orange: #e2542d;
  --orange-deep: #bd401f;
  --orange-soft: #fbe8e0;
  --green: #1d4a40;
  --green-soft: #e3eee9;
  --on-dark: #f5f2ea;
  --on-dark-soft: rgba(245, 242, 234, 0.78);
  --on-dark-muted: rgba(245, 242, 234, 0.58);
  --line-dark: rgba(245, 242, 234, 0.14);
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(16, 21, 26, 0.05), 0 10px 30px rgba(16, 21, 26, 0.05);
  --shadow-md: 0 24px 60px -24px rgba(14, 19, 24, 0.28);
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Songti SC", "STSong", "SimSun", Georgia, "Times New Roman", serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --max: 1180px;
  --header-h: 76px;
}

/* ---------- 2. 基础重置 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

dl {
  margin: 0;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

::selection {
  background: rgba(226, 84, 45, 0.22);
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- 3. 通用工具类 ---------- */
.container {
  width: min(100% - 48px, var(--max));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mono {
  font-family: var(--font-mono);
}

.band {
  padding: 96px 0;
}

.band-tight {
  padding: 64px 0;
}

.band-white {
  background: var(--white);
}

.band-paper2 {
  background: var(--paper-2);
}

.band-dark {
  background: var(--ink);
  color: var(--on-dark);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange-deep);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
}

.eyebrow.on-dark {
  color: #ff9a74;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 48px;
}

.section-title {
  margin-top: 16px;
  font-size: clamp(1.65rem, 2.7vw, 2.35rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.03em;
}

.section-desc {
  max-width: 480px;
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
}

.section-desc.on-dark {
  color: var(--on-dark-soft);
}

.more-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 6px;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), gap 0.25s var(--ease);
}

.more-link:hover {
  color: var(--orange-deep);
  border-color: var(--orange);
  gap: 12px;
}

.more-link.on-dark {
  color: var(--on-dark);
  border-color: var(--line-dark);
}

.more-link.on-dark:hover {
  color: #ff9a74;
  border-color: #ff9a74;
}

/* ---------- 4. 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
    border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 12px 26px -14px rgba(226, 84, 45, 0.9);
}

.btn-primary:hover {
  background: var(--orange-deep);
  transform: translateY(-1px);
  box-shadow: 0 16px 30px -14px rgba(226, 84, 45, 0.95);
}

.btn-dark {
  background: var(--ink);
  color: #fff;
}

.btn-dark:hover {
  background: var(--ink-3);
  transform: translateY(-1px);
}

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

.btn-ghost:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.btn-ghost-light {
  border-color: rgba(245, 242, 234, 0.28);
  background: transparent;
  color: var(--on-dark);
}

.btn-ghost-light:hover {
  background: var(--on-dark);
  color: var(--ink);
  border-color: var(--on-dark);
}

.btn-lg {
  height: 52px;
  padding: 0 28px;
  font-size: 15px;
}

.btn-sm {
  height: 38px;
  padding: 0 16px;
  font-size: 13px;
  border-radius: 9px;
}

.btn-block {
  width: 100%;
}

.btn svg {
  width: 17px;
  height: 17px;
  flex: none;
}

/* ---------- 5. 站点头部 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(247, 244, 237, 0.88);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px) saturate(1.15);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 10px 30px -22px rgba(14, 19, 24, 0.4);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}

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

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(155deg, #26303a 0%, #0e1318 78%);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 6px 14px -8px rgba(14, 19, 24, 0.6);
}

.brand-mark::after {
  content: "";
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.2;
}

.brand-name {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.24em;
  color: var(--muted);
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}

.nav a {
  position: relative;
  padding: 8px 11px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-soft);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}

.nav a:hover {
  color: var(--ink);
  background: rgba(226, 84, 45, 0.07);
}

.nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
}

.header-cta {
  margin-left: 10px;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  color: var(--ink);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.6px;
  margin: 4px auto;
  background: currentColor;
  transition: transform 0.25s var(--ease), opacity 0.2s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(5.6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-5.6px) rotate(-45deg);
}

/* 移动端菜单 */
.mobile-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  padding: 20px 24px 40px;
  overflow-y: auto;
  background: var(--paper);
  border-top: 1px solid var(--line);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.28s var(--ease), transform 0.28s var(--ease), visibility 0.28s;
}

.mobile-nav.is-open {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  font-weight: 500;
}

.mobile-nav a small {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--muted-2);
}

.mobile-nav .btn {
  margin-top: 28px;
}

.mobile-nav-foot {
  margin-top: 24px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
}

/* ---------- 6. 首页 Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 84px 0 0;
  background: var(--ink);
  color: var(--on-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("https://trae-api-cn.mchost.guru/api/ide/v1/text_to_image?prompt=dark%20cinematic%20photograph%20of%20a%20modern%20ecommerce%20workspace%20at%20night%2C%20laptop%20showing%20an%20online%20store%20sales%20dashboard%2C%20cardboard%20shipping%20boxes%20beside%20the%20desk%2C%20warm%20orange%20rim%20lighting%2C%20shallow%20depth%20of%20field%2C%20premium%20editorial%20photography%2C%20moody%20atmosphere%2C%20high%20detail&image_size=landscape_16_9");
  background-size: cover;
  background-position: center;
  opacity: 0.9;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 420px at 82% 18%, rgba(226, 84, 45, 0.28), transparent 68%),
    linear-gradient(100deg, #0e1318 0%, rgba(14, 19, 24, 0.94) 42%, rgba(14, 19, 24, 0.55) 100%);
}

.hero-grain {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(245, 242, 234, 0.035) 0 1px, transparent 1px 96px),
    repeating-linear-gradient(0deg, rgba(245, 242, 234, 0.03) 0 1px, transparent 1px 96px);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 78%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), transparent 78%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 64px;
  align-items: center;
  padding-bottom: 84px;
}

.hero-copy {
  max-width: 640px;
  min-width: 0;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border: 1px solid rgba(245, 242, 234, 0.22);
  border-radius: 999px;
  background: rgba(245, 242, 234, 0.05);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--on-dark-soft);
}

.hero-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 4px rgba(226, 84, 45, 0.18);
}

.hero h1 {
  margin-top: 26px;
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -0.035em;
}

.hero h1 em {
  font-style: normal;
  color: #ff8f66;
  position: relative;
  white-space: nowrap;
}

.hero h1 em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.06em;
  height: 0.09em;
  background: rgba(226, 84, 45, 0.5);
  border-radius: 2px;
}

.hero-lead {
  max-width: 530px;
  margin-top: 24px;
  font-size: 16px;
  line-height: 1.9;
  color: var(--on-dark-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid var(--line-dark);
  max-width: 560px;
}

.hero-stats div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-stats b {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-stats span {
  font-size: 12px;
  color: var(--on-dark-muted);
  letter-spacing: 0.04em;
}

/* Hero 右侧会员面板预览 */
.hero-panel {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 390px;
  min-width: 0;
}

.panel-frame {
  position: absolute;
  inset: 18px -18px -18px 64px;
  border: 1px solid rgba(245, 242, 234, 0.18);
  border-radius: var(--radius-lg);
  pointer-events: none;
}

.panel-card {
  position: relative;
  overflow: hidden;
  background: #fff;
  color: var(--text);
  border-radius: 18px;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.7);
}

.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: #fdfbf7;
}

.panel-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
}

.panel-brand i {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 11px;
  font-style: normal;
}

.panel-chip {
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.panel-body {
  padding: 20px 18px 22px;
}

.panel-user {
  display: flex;
  align-items: center;
  gap: 11px;
}

.panel-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(150deg, #fbe8e0, #f6d3c5);
  color: var(--orange-deep);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.panel-name {
  font-size: 14px;
  font-weight: 600;
}

.panel-meta {
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  margin-left: auto;
  border-radius: 50%;
  background: #2e9e6a;
  box-shadow: 0 0 0 4px rgba(46, 158, 106, 0.14);
}

.panel-progress {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px dashed var(--line);
}

.panel-progress-head {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
}

.panel-progress-head span:last-child {
  font-family: var(--font-mono);
  color: var(--text);
}

.bar {
  height: 6px;
  margin-top: 9px;
  border-radius: 99px;
  background: var(--paper-2);
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--orange), #f08a5d);
}

.panel-list {
  margin-top: 18px;
  display: grid;
  gap: 2px;
}

.panel-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 0;
  font-size: 12.5px;
  border-bottom: 1px solid rgba(227, 220, 205, 0.6);
}

.panel-list li:last-child {
  border-bottom: 0;
}

.dot-ico {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--orange);
}

.panel-list em {
  margin-left: auto;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted-2);
}

.panel-float {
  position: absolute;
  right: -22px;
  bottom: -26px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow-md);
}

.panel-float span {
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--orange-deep);
}

.panel-float b {
  font-size: 12.5px;
  font-weight: 600;
}

/* ---------- 7. 免费知识库 ---------- */
.kb-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.kb-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 22px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
}

.kb-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--orange), #f2a179);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.kb-card:hover {
  transform: translateY(-4px);
  border-color: #d9cfbd;
  box-shadow: var(--shadow-sm);
}

.kb-card:hover::before {
  transform: scaleX(1);
}

.kb-num {
  position: absolute;
  top: 22px;
  right: 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-2);
}

.kb-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--orange-soft);
  color: var(--orange-deep);
}

.kb-icon svg {
  width: 21px;
  height: 21px;
}

.kb-card h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.kb-card p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.75;
  min-height: 47px;
}

.kb-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.kb-topics span {
  padding: 3px 8px;
  border-radius: 5px;
  background: #f7f4ec;
  color: var(--muted);
  font-size: 11px;
}

.kb-card .more-link {
  margin-top: auto;
  font-size: 13px;
  border-bottom: 0;
  padding-bottom: 0;
  color: var(--orange-deep);
}

/* 最新免费文章 */
.latest {
  margin-top: 56px;
  border-top: 1px solid var(--line);
}

.latest-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0 6px;
}

.latest-head h3 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.latest-row {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr) 120px 24px;
  align-items: center;
  gap: 20px;
  padding: 17px 8px;
  border-bottom: 1px solid var(--line);
  border-radius: 8px;
  transition: background 0.25s var(--ease), padding 0.25s var(--ease);
}

.latest-row:hover {
  background: rgba(255, 255, 255, 0.7);
  padding-left: 16px;
}

.latest-row time {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
}

.latest-title {
  font-size: 14.5px;
  font-weight: 500;
}

.latest-cat {
  font-size: 11.5px;
  color: var(--muted);
  text-align: right;
}

.latest-arrow {
  color: var(--orange);
  font-size: 15px;
  text-align: right;
  transition: transform 0.25s var(--ease);
}

.latest-row:hover .latest-arrow {
  transform: translateX(3px);
}

/* ---------- 8. 会员权益 ---------- */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.benefit {
  background: var(--white);
  padding: 32px 28px 34px;
  transition: background 0.3s var(--ease);
}

.benefit:hover {
  background: #fbf8f2;
}

.benefit-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--orange-deep);
}

.benefit h3 {
  margin-top: 18px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.benefit p {
  margin-top: 9px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
}

.benefit-icons {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
  color: var(--orange);
}

.join {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: 48px;
  margin-top: 28px;
  padding: 40px 44px;
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: var(--on-dark);
  overflow: hidden;
  position: relative;
}

.join::after {
  content: "MEMBER";
  position: absolute;
  right: 26px;
  bottom: -22px;
  font-family: var(--font-mono);
  font-size: 92px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(245, 242, 234, 0.045);
  pointer-events: none;
}

.join h3 {
  margin-top: 14px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.join-steps {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.join-steps li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-size: 14px;
  color: var(--on-dark-soft);
}

.join-steps li b {
  font-family: var(--font-mono);
  font-size: 11px;
  color: #ff9a74;
  flex: none;
}

.join-action {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding-left: 44px;
  border-left: 1px solid var(--line-dark);
}

.join-action p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--on-dark-muted);
}

/* ---------- 9. 学员案例 ---------- */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.case-card {
  display: flex;
  flex-direction: column;
  padding: 26px 24px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.case-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.case-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 5px;
  background: #f5efdf;
  color: #7a6a45;
  font-size: 11px;
}

.tag-demo {
  background: var(--orange-soft);
  color: var(--orange-deep);
}

.tag-free {
  background: var(--green-soft);
  color: var(--green);
}

.case-niche {
  font-size: 11.5px;
  color: var(--muted);
}

.case-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 22px;
  padding-bottom: 20px;
  border-bottom: 1px dashed var(--line);
}

.case-metrics b {
  display: block;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.case-metrics span {
  display: block;
  margin-top: 3px;
  font-size: 11.5px;
  color: var(--muted);
}

.case-card h3 {
  margin-top: 20px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.case-quote {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--text-soft);
}

.case-card footer {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--muted-2);
}

.demo-note {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 22px;
  font-size: 12px;
  color: var(--muted-2);
  line-height: 1.7;
}

.demo-note::before {
  content: "※";
  color: var(--orange);
}

/* ---------- 10. 更新动态 ---------- */
.updates {
  border-top: 1px solid var(--line);
}

.update-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 100px;
  align-items: center;
  gap: 24px;
  padding: 22px 8px;
  border-bottom: 1px solid var(--line);
  transition: background 0.25s var(--ease), padding-left 0.25s var(--ease);
}

.update-row:hover {
  background: rgba(255, 255, 255, 0.6);
  padding-left: 16px;
}

.update-row time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.update-row h4 {
  font-size: 15px;
  font-weight: 600;
}

.update-row p {
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
}

.chip {
  justify-self: end;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  white-space: nowrap;
}

.chip-lock {
  background: var(--orange-soft);
  color: var(--orange-deep);
}

.chip-free {
  background: var(--green-soft);
  color: var(--green);
}

/* ---------- 11. 会员入口 CTA ---------- */
.cta-band {
  position: relative;
  padding: 88px 0;
  background: var(--ink);
  color: var(--on-dark);
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -80px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(226, 84, 45, 0.22), transparent 65%);
  pointer-events: none;
}

.cta-inner {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
}

.cta-inner h2 {
  margin-top: 16px;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.03em;
}

.cta-inner p {
  margin-top: 16px;
  max-width: 520px;
  font-size: 14px;
  line-height: 1.9;
  color: var(--on-dark-muted);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex: none;
}

/* ---------- 12. 页脚 ---------- */
.site-footer {
  background: #0b0f13;
  color: var(--on-dark);
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-dark);
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-brand .brand-mark {
  background: linear-gradient(155deg, #2c3742, #141a20);
}

.footer-brand p {
  max-width: 300px;
  font-size: 13px;
  line-height: 1.9;
  color: var(--on-dark-muted);
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--on-dark-muted);
  text-transform: uppercase;
}

.footer-col ul {
  display: grid;
  gap: 11px;
  margin-top: 18px;
}

.footer-col a {
  font-size: 13.5px;
  color: var(--on-dark-soft);
  transition: color 0.2s var(--ease);
}

.footer-col a:hover {
  color: #ff9a74;
}

.footer-contact {
  font-size: 13px;
  line-height: 1.9;
  color: var(--on-dark-soft);
}

.footer-contact + .footer-contact {
  margin-top: 10px;
}

.footer-contact b {
  color: var(--on-dark);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 26px;
  font-size: 12px;
  color: rgba(245, 242, 234, 0.42);
}

.footer-bottom .mono {
  letter-spacing: 0.06em;
}

/* ---------- 13. 内页页头 / 面包屑 ---------- */
.breadcrumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  font-size: 12px;
  color: rgba(245, 242, 234, 0.5);
}

.breadcrumbs a:hover {
  color: var(--on-dark);
}

.breadcrumbs span.sep {
  color: rgba(245, 242, 234, 0.26);
}

.page-hero {
  position: relative;
  padding: 34px 0 64px;
  background: var(--ink);
  color: var(--on-dark);
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: -260px;
  right: -60px;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(226, 84, 45, 0.18), transparent 62%);
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: end;
  margin-top: 32px;
}

.page-index {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.18em;
  color: #ff9a74;
}

.page-hero h1 {
  margin-top: 18px;
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.page-hero-desc {
  max-width: 560px;
  margin-top: 18px;
  font-size: 14.5px;
  line-height: 1.9;
  color: var(--on-dark-soft);
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line-dark);
  font-size: 12px;
  color: var(--on-dark-muted);
}

.page-meta b {
  color: var(--on-dark);
  font-weight: 600;
}

.page-hero-art {
  font-family: var(--font-serif);
  font-size: 128px;
  line-height: 0.8;
  color: rgba(245, 242, 234, 0.09);
  letter-spacing: -0.04em;
  user-select: none;
}

/* ---------- 14. 栏目页布局 ---------- */
.kb-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 296px;
  gap: 60px;
  padding: 56px 0 96px;
  align-items: start;
}

.list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-strong);
}

.list-head h2 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.list-head span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-2);
}

.article-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  padding: 28px 0 30px;
  border-bottom: 1px solid var(--line);
}

.article-item-main {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.article-item-tags {
  display: flex;
  align-items: center;
  gap: 8px;
}

.article-item h3 {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -0.015em;
  transition: color 0.22s var(--ease);
}

.article-item:hover h3 {
  color: var(--orange-deep);
}

.article-item p {
  max-width: 620px;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--muted);
}

.article-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-2);
}

.article-item-side {
  display: flex;
  align-items: center;
  padding-top: 4px;
}

.article-go {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease);
}

.article-item:hover .article-go {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.lock-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border: 1px solid #e7c9bb;
  border-radius: 999px;
  background: #fdf1eb;
  color: var(--orange-deep);
  font-size: 11.5px;
}

.lock-chip svg {
  width: 12px;
  height: 12px;
}

.article-item.is-locked h3 {
  color: #4a4440;
}

.article-item.is-locked:hover h3 {
  color: var(--orange-deep);
}

/* 侧栏 */
.sidebar {
  position: sticky;
  top: calc(var(--header-h) + 28px);
  display: grid;
  gap: 18px;
}

.side-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.side-card h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--muted);
  text-transform: uppercase;
}

.side-card ul {
  display: grid;
  gap: 2px;
  margin-top: 14px;
}

.side-card ul li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid #f2ede3;
  font-size: 13px;
  color: var(--text-soft);
  transition: color 0.2s var(--ease);
}

.side-card ul li:last-child a {
  border-bottom: 0;
}

.side-card ul li a:hover {
  color: var(--orange-deep);
}

.side-card ul li a[aria-current="true"] {
  color: var(--orange-deep);
  font-weight: 600;
}

.side-card ul li a .soon {
  font-size: 10px;
  color: var(--muted-2);
  flex: none;
}

.side-member {
  padding: 24px 22px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--on-dark);
}

.side-member .eyebrow {
  color: #ff9a74;
  font-size: 10px;
}

.side-member h4 {
  margin-top: 12px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--on-dark);
  letter-spacing: 0;
  text-transform: none;
}

.side-member p {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--on-dark-muted);
}

.side-member .btn {
  margin-top: 18px;
  width: 100%;
}

/* ---------- 15. 文章页 ---------- */
.article-hero {
  padding: 30px 0 44px;
  background: var(--ink);
  color: var(--on-dark);
}

.article-hero .breadcrumbs {
  margin-bottom: 30px;
}

.article-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.article-kicker .tag {
  background: rgba(245, 242, 234, 0.09);
  color: var(--on-dark-soft);
}

.article-kicker .tag-free {
  background: rgba(46, 158, 106, 0.16);
  color: #7fd6ac;
}

.article-hero h1 {
  margin-top: 18px;
  max-width: 860px;
  font-size: clamp(1.85rem, 3.4vw, 2.7rem);
  font-weight: 700;
  line-height: 1.26;
  letter-spacing: -0.035em;
}

.article-hero-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 26px;
  font-size: 12px;
  color: var(--on-dark-muted);
}

.article-cover {
  position: relative;
  margin-top: -1px;
  background: var(--ink);
}

.article-cover img {
  width: 100%;
  height: clamp(220px, 38vw, 400px);
  object-fit: cover;
  opacity: 0.9;
}

.article-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 19, 24, 0.35), transparent 40%, rgba(14, 19, 24, 0.25));
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 748px) 264px;
  gap: 64px;
  justify-content: center;
  padding: 64px 0 96px;
  align-items: start;
}

.prose {
  font-size: 16px;
  line-height: 1.95;
  color: #262b31;
}

.prose > * + * {
  margin-top: 22px;
}

.prose h2 {
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--ink);
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.prose h2 .h2-num {
  display: inline-block;
  margin-right: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--orange);
  vertical-align: 4px;
}

.prose h3 {
  margin-top: 32px;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.prose p {
  color: #2f353c;
}

.prose a {
  color: var(--orange-deep);
  border-bottom: 1px solid rgba(226, 84, 45, 0.4);
}

.prose ul,
.prose ol {
  padding-left: 4px;
  display: grid;
  gap: 9px;
}

.prose ul li,
.prose ol li {
  position: relative;
  padding-left: 22px;
  color: #2f353c;
}

.prose ul li::before {
  content: "";
  position: absolute;
  top: 0.75em;
  left: 4px;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--orange);
}

.prose ol {
  counter-reset: item;
}

.prose ol li::before {
  counter-increment: item;
  content: counter(item, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--orange-deep);
  top: 0.5em;
}

.prose strong {
  font-weight: 600;
  color: var(--ink);
}

.prose blockquote {
  margin: 0;
  padding: 22px 26px;
  border-left: 2px solid var(--orange);
  border-radius: 0 10px 10px 0;
  background: #fbf7ef;
  font-size: 15.5px;
  line-height: 1.85;
  color: #3a3f45;
}

.prose blockquote p {
  color: inherit;
}

.callout {
  display: grid;
  gap: 8px;
  padding: 22px 24px;
  border: 1px solid #e8dcc9;
  border-radius: 12px;
  background: #fdf9f1;
}

.callout-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--orange-deep);
  text-transform: uppercase;
}

.callout p {
  font-size: 14.5px;
  line-height: 1.85;
  margin: 0;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 520px;
}

thead th {
  padding: 13px 16px;
  background: #f6f2e9;
  text-align: left;
  font-weight: 600;
  font-size: 12.5px;
  color: #554f47;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid #f1ece2;
  color: #3a3f45;
  line-height: 1.7;
  vertical-align: top;
}

tbody tr:last-child td {
  border-bottom: 0;
}

figure {
  margin: 0;
}

figure img {
  width: 100%;
  border-radius: 12px;
}

figcaption {
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}

.prose .figure-note::before {
  content: "图 ";
  font-family: var(--font-mono);
  color: var(--orange);
}

.article-end {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.article-end p {
  font-size: 12.5px;
  color: var(--muted-2);
}

/* 文章页 TOC */
.toc {
  position: sticky;
  top: calc(var(--header-h) + 28px);
}

.toc-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.toc-card h4 {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
}

.toc-list {
  display: grid;
  gap: 1px;
  margin-top: 16px;
  border-left: 1px solid var(--line);
}

.toc-list a {
  display: block;
  padding: 7px 0 7px 14px;
  margin-left: -1px;
  border-left: 2px solid transparent;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--muted);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.toc-list a:hover {
  color: var(--ink);
}

.toc-list a.is-active {
  border-left-color: var(--orange);
  color: var(--orange-deep);
  font-weight: 600;
}

.toc-member {
  margin-top: 18px;
  padding: 18px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--on-dark);
}

.toc-member p {
  font-size: 12px;
  line-height: 1.75;
  color: var(--on-dark-muted);
}

.toc-member .btn {
  margin-top: 14px;
  width: 100%;
}

/* ---------- 16. 案例页 ---------- */
.case-page-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.case-detail {
  display: flex;
  flex-direction: column;
  padding: 30px 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.case-detail:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.case-detail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.case-person {
  display: flex;
  align-items: center;
  gap: 12px;
}

.case-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #f2ece0;
  color: #6c6355;
  font-family: var(--font-serif);
  font-size: 16px;
}

.case-person h3 {
  font-size: 16px;
  font-weight: 700;
}

.case-person p {
  font-size: 11.5px;
  color: var(--muted);
}

.case-body {
  margin-top: 22px;
  display: grid;
  gap: 16px;
}

.case-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 16px;
  font-size: 13.5px;
  line-height: 1.8;
}

.case-row dt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: var(--muted-2);
  padding-top: 4px;
}

.case-row dd {
  margin: 0;
  color: #34393f;
}

.case-result {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 6px;
  padding: 18px;
  border-radius: 10px;
  background: #faf6ec;
}

.case-result b {
  display: block;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.case-result span {
  display: block;
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
}

.case-detail footer {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11.5px;
  color: var(--muted-2);
}

.case-quote-block {
  margin-top: 18px;
  padding: 16px 18px;
  border-left: 2px solid var(--orange);
  border-radius: 0 8px 8px 0;
  background: #fcf8f0;
  font-size: 13.5px;
  line-height: 1.85;
  color: #45403a;
}

/* ---------- 17. 会员登录页 ---------- */
body.login-page {
  background: var(--paper);
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  min-height: 100vh;
}

.login-aside {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 40px 56px 44px;
  background: var(--ink);
  color: var(--on-dark);
  overflow: hidden;
}

.login-aside-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(560px 460px at 88% 84%, rgba(226, 84, 45, 0.32), transparent 70%),
    linear-gradient(145deg, rgba(14, 19, 24, 0.94) 18%, rgba(14, 19, 24, 0.62) 100%),
    url("https://trae-api-cn.mchost.guru/api/ide/v1/text_to_image?prompt=dark%20cinematic%20photograph%20of%20a%20modern%20ecommerce%20workspace%20at%20night%2C%20laptop%20showing%20an%20online%20store%20sales%20dashboard%2C%20cardboard%20shipping%20boxes%20beside%20the%20desk%2C%20warm%20orange%20rim%20lighting%2C%20shallow%20depth%20of%20field%2C%20premium%20editorial%20photography%2C%20moody%20atmosphere%2C%20high%20detail&image_size=landscape_16_9");
  background-size: cover;
  background-position: center;
  opacity: 0.72;
  z-index: 0;
}

.login-aside > * {
  position: relative;
  z-index: 1;
}

.login-aside .brand-mark {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(245, 242, 234, 0.2);
}

.login-aside .brand-name {
  color: var(--on-dark);
}

.login-aside .brand-sub {
  color: var(--on-dark-muted);
}

.login-aside-main {
  margin-top: auto;
  margin-bottom: auto;
  padding: 64px 0;
  max-width: 540px;
}

.login-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid rgba(245, 242, 234, 0.2);
  background: rgba(245, 242, 234, 0.06);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--on-dark-soft);
  text-transform: uppercase;
}

.login-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

.login-aside h1 {
  margin-top: 24px;
  font-size: clamp(2rem, 3vw, 2.7rem);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.03em;
}

.login-aside h1 em {
  font-style: normal;
  color: #ff8f66;
}

.login-aside-list {
  display: grid;
  gap: 14px;
  margin-top: 30px;
}

.login-aside-list li {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 13.5px;
  color: var(--on-dark-soft);
}

.login-aside-list li svg {
  width: 16px;
  height: 16px;
  color: #ff9a74;
  flex: none;
}

.login-aside-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-top: 22px;
  border-top: 1px solid var(--line-dark);
  font-size: 11.5px;
  color: var(--on-dark-muted);
}

.login-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 32px;
  background:
    radial-gradient(520px 320px at 88% 8%, rgba(226, 84, 45, 0.08), transparent 70%),
    var(--paper);
}

.login-card {
  width: min(100%, 430px);
}

.login-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 30px;
  font-size: 12px;
  color: var(--muted);
}

.login-card-top a:hover {
  color: var(--orange-deep);
}

.lock-badge {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--orange-soft);
  color: var(--orange-deep);
}

.lock-badge svg {
  width: 21px;
  height: 21px;
}

.login-card h2 {
  margin-top: 20px;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.login-card .lead {
  margin-top: 12px;
  font-size: 13.5px;
  line-height: 1.85;
  color: var(--muted);
}

.login-form {
  margin-top: 32px;
}

.field label {
  display: block;
  margin-bottom: 9px;
  font-size: 12.5px;
  font-weight: 600;
  color: #4a4f56;
}

.field input {
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--white);
  font-family: var(--font-mono);
  font-size: 16px;
  letter-spacing: 0.14em;
  color: var(--ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field input::placeholder {
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: 0;
  color: #a39c8f;
}

.field input:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(226, 84, 45, 0.12);
}

.field-hint {
  margin-top: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.04em;
}

.login-form .btn {
  margin-top: 22px;
  height: 52px;
}

.form-alert {
  display: none;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  padding: 13px 15px;
  border: 1px solid #e8c9bb;
  border-radius: 9px;
  background: #fdf1eb;
  font-size: 12.5px;
  line-height: 1.7;
  color: #a03c1c;
}

.form-alert.is-visible {
  display: flex;
}

.form-alert svg {
  width: 15px;
  height: 15px;
  flex: none;
  margin-top: 2px;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 30px 0 22px;
  font-size: 11px;
  color: var(--muted-2);
  letter-spacing: 0.1em;
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.login-helper {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.7);
}

.login-helper p {
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--muted);
}

.login-helper b {
  color: var(--ink);
  font-family: var(--font-mono);
}

.login-helper .copy-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
}

.login-copy {
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.login-copy:hover {
  border-color: var(--orange);
  color: var(--orange-deep);
}

.login-foot {
  margin-top: 44px;
  font-size: 11.5px;
  line-height: 1.9;
  color: var(--muted-2);
  text-align: center;
}

/* ---------- 17.1 会员登录成功状态 ---------- */
.member-state {
  margin-top: 28px;
  padding: 24px 24px 22px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.member-state[hidden] {
  display: none;
}

.member-state-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--green);
}

.member-state-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2f9e6b;
  box-shadow: 0 0 0 4px rgba(47, 158, 107, 0.12);
}

.member-state-code {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.member-state-meta {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

.member-state-note {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--muted);
}

.member-logout {
  margin-top: 18px;
  width: 100%;
  height: 44px;
}

/* ---------- 18. Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-dark);
  font-size: 12.5px;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.6);
  transform: translate(-50%, 16px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease), visibility 0.25s;
}

.toast.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.toast::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #63d29c;
}

/* ---------- 19. 动效 ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  }

  .js .reveal.is-in {
    opacity: 1;
    transform: none;
  }

  .js .reveal[data-delay="1"] {
    transition-delay: 0.08s;
  }

  .js .reveal[data-delay="2"] {
    transition-delay: 0.16s;
  }

  .js .reveal[data-delay="3"] {
    transition-delay: 0.24s;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- 20. 响应式 ---------- */
@media (max-width: 1080px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 40px;
  }

  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px 8px;
  }

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

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

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

  .kb-layout,
  .article-layout {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 40px;
  }
}

@media (max-width: 900px) {
  :root {
    --header-h: 64px;
  }

  .nav,
  .header-cta {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }

  .hero {
    padding-top: 56px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-bottom: 64px;
  }

  .hero-panel {
    justify-self: start;
    max-width: 100%;
    min-width: 0;
  }

  .panel-frame {
    inset: 16px 0 -16px 40px;
  }

  .hero-lead {
    max-width: 100%;
  }

  .band {
    padding: 72px 0;
  }

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

  .join {
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 32px 28px;
  }

  .join-action {
    padding-left: 0;
    padding-top: 26px;
    border-left: 0;
    border-top: 1px solid var(--line-dark);
  }

  .cta-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .kb-layout,
  .article-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 0 72px;
  }

  .sidebar,
  .toc {
    position: static;
  }

  .sidebar {
    grid-template-columns: repeat(2, 1fr);
    display: grid;
  }

  .side-member {
    grid-column: 1 / -1;
  }

  .article-cover img {
    height: 240px;
  }

  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-aside {
    padding: 28px 28px 32px;
  }

  .login-aside-main {
    padding: 40px 0 8px;
  }

  .login-aside-list {
    display: none;
  }

  .login-aside-foot {
    margin-top: 24px;
  }

  .login-main {
    padding: 40px 24px 56px;
  }

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

  .page-hero-art {
    display: none;
  }

  .latest-row {
    grid-template-columns: 88px minmax(0, 1fr) 20px;
    gap: 14px;
  }

  .latest-cat {
    display: none;
  }

  .update-row {
    grid-template-columns: 92px minmax(0, 1fr) auto;
    gap: 14px;
  }

  .case-page-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: calc(100% - 32px);
  }

  .band {
    padding: 56px 0;
  }

  .hero {
    padding-top: 40px;
  }

  .hero h1 {
    font-size: clamp(2rem, 8.6vw, 2.7rem);
  }

  .hero-actions .btn {
    flex: 1;
    min-width: 140px;
  }

  .hero-stats {
    margin-top: 40px;
    padding-top: 22px;
  }

  .hero-stats b {
    font-size: 18px;
  }

  .panel-float {
    display: none;
  }

  .kb-grid,
  .benefit-grid,
  .case-grid {
    grid-template-columns: 1fr;
  }

  .join {
    padding: 28px 22px;
  }

  .join::after {
    display: none;
  }

  .cta-actions {
    width: 100%;
  }

  .cta-actions .btn {
    flex: 1;
    min-width: 150px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .latest-row time {
    font-size: 10.5px;
  }

  .latest-title {
    font-size: 13.5px;
    line-height: 1.55;
  }

  .update-row {
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
  }

  .update-row time {
    grid-column: 1 / -1;
    font-size: 10.5px;
  }

  .update-row h4 {
    font-size: 14px;
  }

  .article-item {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .article-item-side {
    order: -1;
    padding-top: 0;
  }

  .article-item-side .article-go {
    width: 34px;
    height: 34px;
  }

  .sidebar {
    grid-template-columns: 1fr;
  }

  .prose {
    font-size: 15.5px;
  }

  .prose h2 {
    font-size: 21px;
    margin-top: 42px;
  }

  .prose blockquote,
  .callout {
    padding: 18px;
  }

  .page-hero {
    padding: 26px 0 44px;
  }

  .article-layout {
    padding-bottom: 56px;
  }

  .login-aside {
    padding: 22px 22px 26px;
  }

  .login-aside h1 {
    font-size: 1.7rem;
  }

  .login-main {
    padding: 32px 20px 48px;
  }

  .login-card-top {
    margin-bottom: 22px;
  }

  .login-card h2 {
    font-size: 21px;
  }

  .case-page-grid {
    gap: 14px;
  }

  .case-detail {
    padding: 24px 20px 22px;
  }

  .case-row {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 12px;
  }

  .case-result b {
    font-size: 19px;
  }
}

/* 打印：隐藏交互元素 */
@media print {
  .site-header,
  .mobile-nav,
  .site-footer,
  .cta-band,
  .sidebar,
  .toc,
  .toast {
    display: none !important;
  }
}
