﻿:root {
  --ink: #1a1f2e;
  --muted: #5c6578;
  --line: #e2e5ec;
  --accent: #0f6e56;
  --accent-soft: #e8f3ef;
  --paper: #f6f4ef;
  --card: #ffffff;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", Georgia, serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --measure: 960px;
  --nav-h: 64px;
  --subnav-h: 44px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  line-height: 1.7;
  display: flex;
  flex-direction: column;
}

.wrap {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 28px;
}

main.wrap {
  flex: 1;
  padding-top: 8px;
  padding-bottom: 80px;
}

a { color: var(--ink); }

code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.86em;
  color: var(--accent);
}

/* —— 顶栏 —— */
.site-nav {
  border-bottom: 1px solid var(--line);
  background: rgba(246, 244, 239, 0.94);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-nav .wrap {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 20px 28px;
}

.brand {
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-decoration: none;
}

.brand-cluster {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-shrink: 0;
  margin: 0;
}

.site-nav .brand-about {
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.site-nav .brand-about:hover,
.site-nav .brand-about.is-active {
  color: var(--ink);
  font-weight: 400;
  border-bottom-color: var(--accent);
}

.site-nav ul {
  display: flex;
  gap: 4px 20px;
  list-style: none;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover { color: var(--accent); }

.site-nav a.is-active {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--accent);
}

/* —— 页内二级导航（如简历章节） —— */
.page-subnav {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  position: sticky;
  top: var(--nav-h);
  z-index: 19;
  backdrop-filter: blur(8px);
}

.page-subnav .wrap {
  padding-top: 0;
  padding-bottom: 0;
}

.page-subnav ul {
  display: flex;
  gap: 4px 4px;
  list-style: none;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
}

.page-subnav a {
  display: inline-block;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.84rem;
  letter-spacing: 0.04em;
  padding: 12px 14px;
  border-bottom: 2px solid transparent;
}

.page-subnav a:hover { color: var(--accent); }

.page-subnav a.is-active {
  color: var(--ink);
  font-weight: 600;
  border-bottom-color: var(--accent);
}

@media (max-width: 560px) {
  .page-subnav a {
    padding: 10px 10px;
    font-size: 0.8rem;
  }
}

/* —— 首页 —— */
.home-body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 80% 55% at 12% -10%, rgba(15, 110, 86, 0.12), transparent 55%),
    radial-gradient(ellipse 70% 50% at 92% 8%, rgba(26, 31, 46, 0.06), transparent 50%),
    linear-gradient(180deg, #f3f0e8 0%, var(--paper) 42%, #efebe3 100%);
}

.home-main {
  flex: 1;
  display: flex;
  align-items: stretch;
}

.home-hero {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding-top: clamp(36px, 6vh, 72px);
  padding-bottom: clamp(48px, 8vh, 88px);
}

.home-copy {
  animation: home-rise 0.7s ease both;
}

.home-kicker {
  margin-bottom: 18px;
}

.home-brand {
  font-family: var(--serif);
  font-size: clamp(3.2rem, 8vw, 5.2rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.05;
  margin-left: -0.04em;
}

.home-quote {
  margin-top: 22px;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3.2vw, 1.75rem);
  font-weight: 500;
  letter-spacing: 0.22em;
  line-height: 1.5;
  color: var(--ink);
}

.home-tagline {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.92rem;
  letter-spacing: 0.08em;
}

.home-lead {
  margin-top: 16px;
  max-width: 34em;
  font-size: 1.02rem;
  color: var(--ink);
  opacity: 0.82;
}

.home-cta {
  margin-top: clamp(28px, 4vh, 40px);
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line);
}

.home-cta-link {
  display: grid;
  grid-template-columns: minmax(7.5rem, auto) 1fr;
  gap: 12px 28px;
  align-items: baseline;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: padding-left 0.25s ease, background 0.2s ease;
}

.home-cta-link:hover {
  padding-left: 10px;
  background: linear-gradient(90deg, rgba(15, 110, 86, 0.06), transparent 70%);
}

.home-cta-link strong {
  font-family: var(--serif);
  font-size: 1.12rem;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.home-cta-link span {
  color: var(--muted);
  font-size: 0.9rem;
}

.home-cta-link:hover strong {
  color: var(--accent);
}

.home-portrait {
  margin: 0;
  justify-self: end;
  width: min(100%, 420px);
  position: relative;
  animation: home-rise 0.85s ease 0.12s both;
}

.home-portrait::before {
  content: "";
  position: absolute;
  inset: 18px -16px -16px 18px;
  background: rgba(15, 110, 86, 0.12);
  z-index: 0;
}

.home-portrait img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  aspect-ratio: 3 / 4;
  box-shadow: 0 24px 48px rgba(26, 31, 46, 0.12);
}

@keyframes home-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .home-hero {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .home-portrait {
    justify-self: start;
    width: min(100%, 360px);
    order: -1;
  }

  .home-cta-link {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-copy,
  .home-portrait {
    animation: none;
  }

  .home-cta-link {
    transition: none;
  }
}

/* 旧门户类名保留，避免残留引用崩样式 */
.portal-body { min-height: 100vh; }
.portal { width: 100%; max-width: 880px; margin: 0 auto; padding: 32px 28px 40px; }
.portal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.portal-card {
  display: flex; flex-direction: column; gap: 6px; padding: 18px;
  background: var(--card); border: 1px solid var(--line); text-decoration: none; color: inherit;
}
.portal-foot { margin-top: 28px; color: var(--muted); font-size: 0.82rem; }

/* —— 单页分栏 —— */
.panel {
  scroll-margin-top: calc(var(--nav-h) + var(--subnav-h) + 12px);
  padding-bottom: 24px;
}

.panel + .panel {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

/* —— 页脚 —— */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
  color: var(--muted);
  font-size: 0.84rem;
  text-align: center;
}

.site-footer p + p { margin-top: 6px; }

.site-footer a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.site-footer a:hover {
  color: var(--accent);
  border-color: var(--accent);
}

/* —— 页头 —— */
.page-head {
  padding: 48px 0 8px;
}

.page-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}

.page-kicker a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.page-kicker a:hover {
  border-bottom-color: var(--accent);
}

.album-back {
  margin-top: 16px;
}

h1 {
  font-family: var(--serif);
  font-size: clamp(2.1rem, 5vw, 2.85rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.2;
}

.hero-home h1 {
  font-size: clamp(2.6rem, 7vw, 3.4rem);
  letter-spacing: 0.08em;
}

.sub {
  margin-top: 14px;
  color: var(--ink);
  font-size: 1.02rem;
  font-weight: 500;
}

.lead {
  margin-top: 14px;
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 36em;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.pill {
  display: inline-block;
  padding: 5px 12px;
  font-size: 0.8rem;
  color: var(--accent);
  background: var(--accent-soft);
  letter-spacing: 0.04em;
}

/* —— 章节标题 —— */
.section {
  margin-top: 56px;
}

.section-tight {
  margin-top: 40px;
}

.section-title {
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--ink);
}

/* —— 优势：编号列表 —— */
.adv-list {
  display: grid;
  gap: 0;
}

.adv {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.adv:first-child { padding-top: 0; }

.adv-num {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--accent);
  letter-spacing: 0.04em;
  line-height: 1.4;
}

.adv b {
  display: block;
  font-size: 1.02rem;
  margin-bottom: 6px;
}

.adv p {
  font-size: 0.94rem;
  color: #2a3140;
}

.path-box {
  margin-bottom: 28px;
  padding: 18px 18px 18px 16px;
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
}

.path-box p {
  font-size: 0.94rem;
  color: #24312c;
}

.path-box p + p { margin-top: 10px; }

/* —— 证书 —— */
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tags span {
  border: 1px solid var(--ink);
  padding: 8px 14px;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
}

/* —— 代表作 —— */
.feat-list { display: grid; gap: 0; }

.feat {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  gap: 14px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
}

.feat:hover .feat-name { color: var(--accent); }
.feat:hover .go { border-color: var(--accent); }

.feat-idx {
  font-family: var(--serif);
  color: var(--accent);
  font-size: 0.95rem;
}

.feat-name {
  display: block;
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 4px;
  transition: color 0.15s ease;
}

.feat small {
  color: var(--muted);
  font-size: 0.86rem;
}

.feat .go {
  font-size: 0.8rem;
  color: var(--muted);
  border-bottom: 1px solid transparent;
  white-space: nowrap;
  transition: border-color 0.15s ease;
}

/* —— 技能明细 —— */
.skill-block {
  margin-top: 40px;
}

.skill-block:first-of-type { margin-top: 8px; }

.skill-block .section-title {
  margin-bottom: 18px;
}

.point-list {
  list-style: none;
  padding: 0;
  counter-reset: point;
}

.point-list li {
  position: relative;
  padding: 14px 0 14px 44px;
  border-bottom: 1px solid var(--line);
  font-size: 0.94rem;
  color: #2a3140;
  margin: 0;
}

.point-list li::before {
  counter-increment: point;
  content: counter(point, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 14px;
  font-family: var(--serif);
  color: var(--accent);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
}

.point-list li:last-child { border-bottom: none; }

/* —— 工作时间线 —— */
.timeline {
  position: relative;
  padding-left: 0;
}

.job {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 20px;
  padding: 0 0 36px;
  position: relative;
}

.job:last-child { padding-bottom: 0; }

.job-when {
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.02em;
  padding-top: 4px;
  white-space: nowrap;
}

.job-body {
  border-left: 1px solid var(--line);
  padding-left: 22px;
  padding-bottom: 8px;
}

.job-body strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.org {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 12px;
}

.label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.12em;
  margin: 14px 0 6px;
}

ul {
  padding-left: 1.1em;
  color: #2a3140;
  font-size: 0.94rem;
}

li { margin: 6px 0; }

.more-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.86rem;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.more-link:hover { border-bottom-color: var(--accent); }

/* —— 可演示项目 —— */
.note {
  margin: -12px 0 24px;
  font-size: 0.86rem;
  color: var(--muted);
}

.demo-list { display: grid; gap: 0; }

.demo-card {
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--nav-h) + 12px);
}

.demo-card:first-child { padding-top: 0; }

.demo-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 6px;
}

.demo-top strong {
  font-family: var(--serif);
  font-size: 1.2rem;
  letter-spacing: 0.03em;
}

.when {
  color: var(--muted);
  font-size: 0.86rem;
  white-space: nowrap;
}

.demo-card .org { margin-bottom: 10px; }

.demo-card > p {
  font-size: 0.94rem;
  color: #2a3140;
  margin-bottom: 16px;
}

.btn {
  display: inline-block;
  padding: 7px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  border: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
}

.btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn.is-off {
  border-color: var(--line);
  color: var(--muted);
  pointer-events: none;
}

/* —— 归档 —— */
.archive-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.archive-item:last-child { border-bottom: none; }

.archive-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 4px;
}

.archive-head strong { font-size: 1rem; }

@media (max-width: 640px) {
  .wrap, .site-nav .wrap { padding-left: 18px; padding-right: 18px; }
  .page-head { padding-top: 32px; }
  .job {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .job-body {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid var(--line);
    padding-top: 12px;
  }
  .feat {
    grid-template-columns: 32px 1fr;
  }
  .feat .go {
    grid-column: 2;
  }
  .point-list li {
    padding-left: 40px;
  }
}

/* —— 生活相册 —— */
.album-card {
  display: block;
  margin-top: 28px;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
  max-width: 36em;
}

.album-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.album-card-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px 16px;
}

.album-card-meta strong {
  font-family: var(--serif);
  font-size: 1.08rem;
  letter-spacing: 0.06em;
}

.album-card-meta span {
  color: var(--muted);
  font-size: 0.84rem;
}

.album-card:hover {
  border-color: var(--accent);
}

/* —— 系统 Demo：Web + 小程序 —— */
.demo-block {
  display: grid;
  gap: 20px;
  margin-top: 28px;
  align-items: stretch;
  max-width: 56em;
}

@media (min-width: 880px) {
  .demo-block {
    grid-template-columns: minmax(0, 1fr) 11.5em;
  }
}

.demo-feature {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
  min-width: 0;
}

.demo-mp {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 16px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  text-align: center;
}

.demo-mp-code {
  display: block;
  width: 9.5em;
  height: auto;
  aspect-ratio: 1;
  background: #fff;
}

.demo-mp-title {
  margin: 8px 0 0;
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
}

.demo-mp-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.demo-mp-id {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.35;
  word-break: break-all;
}

.demo-feature-media {
  display: block;
  position: relative;
  background: #0b1026;
}

.demo-feature-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  object-position: center center;
  background: #0b1026;
}

.demo-feature-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px 16px;
}

.demo-feature-meta strong {
  font-family: var(--serif);
  font-size: 1.08rem;
  letter-spacing: 0.06em;
}

.demo-feature-meta span {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.demo-feature-cta {
  margin-top: 4px;
  color: var(--accent) !important;
  font-weight: 600;
}

.demo-feature:hover {
  border-color: var(--accent);
}

@media (max-width: 720px) {
  .demo-feature {
    max-width: none;
  }

  .demo-feature-meta {
    padding: 12px 14px 14px;
  }

  .demo-feature-meta strong {
    font-size: 1.02rem;
  }
}

.album-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 200px));
  gap: 14px;
  margin-top: 18px;
}

.album-tile {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
  min-width: 0;
}

.album-tile img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.album-tile-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px 12px;
}

.album-tile-meta strong {
  font-family: var(--serif);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.album-tile-meta span {
  color: var(--muted);
  font-size: 0.78rem;
}

.album-tile:hover {
  border-color: var(--accent);
}

.life-more {
  margin-top: 14px;
}

.album-grid-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.album-grid-list .album-card {
  margin-top: 0;
  max-width: none;
}

@media (max-width: 720px) {
  .album-row {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
  .album-grid-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 420px) {
  .album-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.album-page {
  max-width: 1080px;
}

.album-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 28px 0 36px;
}

.album-grid figure {
  margin: 0;
  background: var(--card);
}

.album-grid figure.is-land {
  grid-column: 1 / -1;
}

.album-shot {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.album-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(26, 31, 46, 0.92);
  cursor: zoom-out;
}

.lightbox.is-open { display: flex; }

.lightbox img {
  max-width: min(92vw, 1400px);
  max-height: 90vh;
  width: auto;
  height: auto;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.35);
  background: transparent;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

.lightbox-nav.prev { left: 16px; }
.lightbox-nav.next { right: 16px; }

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 18px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}

.lightbox-count {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  text-align: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.82rem;
}

@media (max-width: 720px) {
  .album-grid { grid-template-columns: 1fr; }
  .album-grid figure.is-land { grid-column: auto; }
}

/* —— 生活：分区与文章 —— */
.life-section {
  margin-top: 48px;
  padding-top: 8px;
  scroll-margin-top: calc(var(--nav-h) + var(--subnav-h) + 16px);
}

.life-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
  margin-bottom: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.life-section-head h2 {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.life-section-head .muted {
  color: var(--muted);
  font-size: 0.88rem;
}

.life-section-head .more-link {
  margin-left: 8px;
}

.article-series {
  margin-top: 28px;
}

.article-series-label {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
}

.article-card-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 40em;
}

.article-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 0 16px;
  align-items: stretch;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
  min-height: 88px;
}

.article-card-cover {
  display: block;
  width: 112px;
  height: 100%;
  min-height: 88px;
  max-height: 112px;
  object-fit: cover;
  background: var(--line);
}

.article-card-cover-empty {
  display: block;
  width: 112px;
  min-height: 88px;
  max-height: 112px;
  background: linear-gradient(145deg, #e8e4dc, #f3efe6);
}

.article-card-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px 12px 0;
  justify-content: center;
  min-width: 0;
}

.article-card-meta strong {
  font-family: var(--serif);
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  line-height: 1.35;
}

.article-card-sub {
  color: var(--muted);
  font-size: 0.8rem;
}

.article-card-digest {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-card:hover {
  border-color: var(--accent);
}

@media (max-width: 560px) {
  .article-card {
    grid-template-columns: 88px 1fr;
    gap: 0 12px;
    min-height: 76px;
  }

  .article-card-cover,
  .article-card-cover-empty {
    width: 88px;
    min-height: 76px;
    max-height: 96px;
  }

  .article-card-meta {
    padding: 10px 12px 10px 0;
  }

  .article-card-meta strong {
    font-size: 0.95rem;
  }

  .article-card-digest {
    -webkit-line-clamp: 2;
    font-size: 0.8rem;
  }
}

.article-page {
  max-width: 40em;
}

.article-head h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.35rem);
}

.article-subtitle {
  margin-top: 10px;
  color: var(--accent);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.article-meta {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.86rem;
}

.article-tts {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px 0 6px;
  padding: 0;
  background: transparent;
  border: 0;
}

.article-tts-bar {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.article-tts-btn {
  appearance: none;
  border: 1px solid rgba(15, 110, 86, 0.28);
  background: var(--card);
  color: var(--accent);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 4px 10px;
  line-height: 1.3;
  cursor: pointer;
  border-radius: 999px;
}

.article-tts-btn.is-ghost {
  background: transparent;
  border-color: rgba(15, 110, 86, 0.18);
  font-weight: 500;
  color: var(--muted);
}

.article-tts-btn:hover,
.article-tts-btn.is-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.article-tts-btn.is-playing {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.article-tts-btn.is-active {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

.article-tts-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.4;
}

.article-tts-hint[hidden] {
  display: none !important;
}

.article-tts.is-no-male .article-tts-hint {
  color: #8a5a00;
}

.article-tts-panel {
  display: grid;
  gap: 8px;
  margin-top: 2px;
  padding: 10px 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(15, 110, 86, 0.16);
}

.article-tts-panel[hidden] {
  display: none !important;
}

.article-tts-panel-title {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.article-tts-panel label {
  display: grid;
  gap: 3px;
  font-size: 0.74rem;
  color: var(--muted);
}

.article-tts-panel select {
  width: 100%;
  max-width: 28em;
  font: inherit;
  font-size: 0.8rem;
  padding: 5px 8px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
}

.article-tts-note {
  margin: 0;
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.45;
}

.article-body.is-tts-pick p,
.article-body.is-tts-pick h2,
.article-body.is-tts-pick .article-h {
  cursor: pointer;
  transition: background 0.15s ease;
}

.article-body.is-tts-pick p:hover,
.article-body.is-tts-pick h2:hover,
.article-body.is-tts-pick .article-h:hover {
  background: rgba(15, 110, 86, 0.06);
}

.article-body .is-tts-start {
  box-shadow: inset 3px 0 0 var(--accent);
  background: rgba(15, 110, 86, 0.05);
  border-radius: 0 4px 4px 0;
}

.article-body .is-tts-current {
  background: rgba(15, 110, 86, 0.08);
  outline: 1px solid rgba(15, 110, 86, 0.22);
  border-radius: 4px;
}

.article-cover {
  margin: 24px 0 8px;
  background: var(--card);
  border: 1px solid var(--line);
  overflow: hidden;
}

.article-cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2.35 / 1;
  object-fit: cover;
}

.article-body {
  margin-top: 28px;
  font-size: 1.02rem;
  line-height: 1.85;
}

.article-body p {
  margin: 0 0 1.05em;
}

.article-body strong {
  font-weight: 650;
}

.article-lead {
  margin: 0 0 1.4em !important;
  padding: 0 0 0 14px;
  border-left: 3px solid var(--accent);
  color: var(--muted);
  font-size: 0.95rem !important;
  line-height: 1.7 !important;
}

.article-h {
  margin: 1.6em 0 0.7em !important;
  font-family: var(--serif);
  font-size: 1.18rem !important;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.4 !important;
  color: var(--ink);
}

.article-pull {
  margin: 1.4em 0;
  padding: 12px 16px;
  background: var(--accent-soft);
  border-left: 3px solid var(--accent);
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.article-figure {
  margin: 1.4em 0;
}

.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  background: var(--card);
}

.article-series-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 40px 0 20px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.article-nav-link {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border: 1px solid var(--line);
  min-height: 72px;
}

.article-nav-link.is-next {
  text-align: right;
}

.article-nav-link.is-empty {
  visibility: hidden;
  pointer-events: none;
}

.article-nav-label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 600;
}

.article-nav-link strong {
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}

.article-nav-link:hover {
  border-color: var(--accent);
}

.article-back-sep {
  margin: 0 8px;
  color: var(--muted);
}

.chapter-toc {
  list-style: none;
  margin: 1.2em 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.chapter-toc li {
  border-bottom: 1px solid var(--line);
}

.chapter-toc a {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 12px 0;
  text-decoration: none;
  color: inherit;
}

.chapter-toc a:hover {
  color: var(--accent);
}

.chapter-toc .n {
  flex: 0 0 5em;
  width: 5em;
  color: var(--muted);
  font-size: 0.86rem;
  white-space: nowrap;
}

.chapter-toc .t {
  font-family: var(--serif);
  letter-spacing: 0.03em;
}

@media (max-width: 560px) {
  .article-series-nav {
    grid-template-columns: 1fr;
  }
  .article-nav-link.is-next {
    text-align: left;
  }
  .article-nav-link.is-empty {
    display: none;
  }
}

/* —— 手机端阅读：正文字号 / 触控 / 底栏翻页 —— */
.article-mobile-bar {
  display: none;
}

@media (max-width: 720px) {
  .is-article .site-nav .wrap {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .is-article .page-subnav a {
    padding: 9px 12px;
  }

  .wrap.article-page {
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 48px;
  }

  body.has-chapter-bar .wrap.article-page {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }

  body.has-chapter-bar .site-footer {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }

  .article-head h1 {
    font-size: 1.42rem;
    line-height: 1.35;
  }

  .article-subtitle {
    font-size: 0.88rem;
  }

  .article-meta {
    font-size: 0.8rem;
  }

  .article-page .page-kicker {
    font-size: 0.72rem;
    letter-spacing: 0.02em;
    line-height: 1.5;
  }

  .article-body {
    margin-top: 22px;
    font-size: 1.08rem;
    line-height: 1.92;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  .article-body p {
    margin-bottom: 1.15em;
  }

  .article-lead {
    padding-left: 12px;
    font-size: 0.92rem !important;
  }

  .article-series-nav {
    margin-top: 28px;
    margin-bottom: 12px;
    gap: 10px;
  }

  .article-nav-link {
    min-height: 56px;
    padding: 14px 14px;
    -webkit-tap-highlight-color: transparent;
  }

  .article-nav-link strong {
    font-size: 1rem;
  }

  .chapter-toc a {
    padding: 15px 2px;
    min-height: 48px;
    -webkit-tap-highlight-color: transparent;
  }

  .chapter-toc .n {
    flex: 0 0 5.2em;
    width: 5.2em;
  }

  .article-mobile-bar {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
    box-shadow: 0 -6px 20px rgba(26, 31, 46, 0.05);
  }

  .article-mobile-bar a,
  .article-mobile-bar span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 10px 8px;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--ink);
    -webkit-tap-highlight-color: transparent;
  }

  .article-mobile-bar a.is-toc {
    color: var(--accent);
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
  }

  .article-mobile-bar a:active {
    background: var(--accent-soft);
  }

  .article-mobile-bar .is-disabled {
    color: #b0b6c2;
    font-weight: 500;
  }
}

/* 生活区密码门禁 */
html.life-locked,
html.life-locked body {
  overflow: hidden;
  height: 100%;
}
html.life-locked body > *:not(#life-gate) {
  visibility: hidden !important;
  pointer-events: none !important;
}
html.other-locked,
html.other-locked body {
  overflow: hidden;
  height: 100%;
}
html.other-locked body > *:not(#other-gate) {
  visibility: hidden !important;
  pointer-events: none !important;
}
html.invest-locked,
html.invest-locked body {
  overflow: hidden;
  height: 100%;
}
html.invest-locked body > *:not(#invest-gate) {
  visibility: hidden !important;
  pointer-events: none !important;
}
#life-gate,
#other-gate,
#invest-gate {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, #e8f3ef 0%, transparent 55%),
    var(--paper);
  visibility: visible !important;
  pointer-events: auto !important;
}
#other-gate.is-modal {
  background: rgba(26, 31, 46, 0.32);
}
.life-gate-card {
  width: 100%;
  max-width: 360px;
  padding: 28px 26px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(26, 31, 46, 0.08);
}
.life-gate-kicker {
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.life-gate-card h1 {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 10px;
}
.life-gate-lead {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
}
.life-gate-label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 6px;
}
.life-gate-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
}
.life-gate-input:focus {
  outline: 2px solid var(--accent-soft);
  border-color: var(--accent);
}
.life-gate-error {
  color: #b42318;
  font-size: 0.88rem;
  margin-top: 8px;
}
.life-gate-btn {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 12px 16px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 1rem;
  font-family: inherit;
  cursor: pointer;
}
.life-gate-btn:hover {
  filter: brightness(0.95);
}
.life-gate-back {
  margin-top: 16px;
  text-align: center;
  font-size: 0.9rem;
}
.life-gate-back a {
  color: var(--muted);
  text-decoration: none;
}
.life-gate-back a:hover {
  color: var(--accent);
}
.other-gate-cancel {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--muted);
  cursor: pointer;
}
.other-gate-cancel:hover {
  color: var(--accent);
}

.other-camouflage {
  min-height: 48vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 0 96px;
}
.other-camouflage[hidden],
.other-real[hidden] {
  display: none !important;
}
html.is-other-open .other-camouflage {
  display: none !important;
}
.other-stub {
  font-family: var(--serif);
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  line-height: 1.6;
  margin: 12px 0 0;
}
.other-unlock {
  cursor: pointer;
  color: inherit;
  border-bottom: 1px solid transparent;
}
.other-unlock:hover,
.other-unlock:focus-visible {
  border-bottom-color: var(--line);
  outline: none;
}

/* —— 小说书壳 —— */
.novel-book-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 8px;
  max-width: 52em;
}

.novel-book {
  display: grid;
  grid-template-columns: 14px 1fr;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border: 1px solid var(--line);
  min-height: 168px;
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.novel-book:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.novel-book-spine {
  background: linear-gradient(180deg, #0f6e56 0%, #0a4f3d 55%, #16352c 100%);
}

.novel-book-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 18px 16px;
  min-width: 0;
  background:
    linear-gradient(135deg, rgba(15, 110, 86, 0.06), transparent 42%),
    linear-gradient(180deg, #fbfaf7, #f3f1eb);
}

.novel-book-tone {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  font-weight: 600;
}

.novel-book-body strong {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  letter-spacing: 0.06em;
  line-height: 1.25;
}

.novel-book-sub {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.novel-book-digest {
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  opacity: 0.86;
}

.novel-book-meta {
  margin-top: auto;
  padding-top: 6px;
  color: var(--muted);
  font-size: 0.8rem;
}

.novel-page {
  max-width: 44em;
}

.novel-hero {
  margin-bottom: 2.2rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid var(--line);
}

.novel-hero-kicker {
  margin: 10px 0 0;
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  font-weight: 600;
}

.novel-hero h1 {
  margin-top: 8px;
  font-size: clamp(2rem, 5vw, 2.75rem);
}

.novel-hero-sub {
  margin-top: 10px;
  color: var(--muted);
  font-size: 1rem;
}

.novel-hero-digest {
  margin-top: 14px;
  font-size: 1.02rem;
  line-height: 1.7;
  max-width: 36em;
}

.novel-hero-meta {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.86rem;
}

.novel-hero-cta {
  margin-top: 18px;
}

.novel-start-btn {
  display: inline-block;
  text-decoration: none;
  color: #fff;
  background: var(--accent);
  border: 1px solid var(--accent);
  padding: 10px 16px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.novel-start-btn:hover {
  filter: brightness(0.95);
}

.novel-volume {
  margin: 2rem 0 2.4rem;
}

.novel-volume-head {
  margin-bottom: 12px;
}

.novel-volume-head h2 {
  font-family: var(--serif);
  font-size: 1.25rem;
  letter-spacing: 0.04em;
}

.novel-volume-head .muted {
  margin-top: 6px;
  font-size: 0.9rem;
  line-height: 1.55;
}

.novel-chapter-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.novel-chapter-list li {
  border-bottom: 1px solid var(--line);
}

.novel-chapter-list a {
  display: grid;
  grid-template-columns: 5.2em 1fr;
  gap: 4px 12px;
  padding: 12px 0;
  text-decoration: none;
  color: inherit;
}

.novel-chapter-list a:hover {
  color: var(--accent);
}

.novel-chapter-list .novel-ch-n {
  grid-row: 1 / span 2;
  color: var(--muted);
  font-size: 0.84rem;
  padding-top: 2px;
}

.novel-chapter-list .novel-ch-t {
  font-family: var(--serif);
  letter-spacing: 0.03em;
  line-height: 1.4;
}

.novel-chapter-list .novel-ch-d {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.novel-chapter-list li.is-toc .novel-ch-t {
  color: var(--accent);
  font-weight: 600;
}

.novel-reader-rail {
  margin: 0 0 18px;
  padding: 12px 14px;
  background: var(--accent-soft);
  border: 1px solid rgba(15, 110, 86, 0.16);
}

.novel-reader-book {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.05em;
}

.novel-reader-book a {
  color: inherit;
  text-decoration: none;
}

.novel-reader-book a:hover {
  color: var(--accent);
}

.novel-reader-vol {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.novel-reader-links {
  margin: 8px 0 0;
  font-size: 0.84rem;
}

.novel-reader-links a {
  color: var(--accent);
  text-decoration: none;
}

.novel-reader-links a:hover {
  text-decoration: underline;
}

.novel-detail-panel {
  margin: 0 0 22px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #fbfaf7, #f6f4ef);
}

.novel-detail-digest {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.7;
}

.novel-detail-meta {
  margin: 12px 0 0;
  display: grid;
  gap: 8px;
}

.novel-detail-meta > div {
  display: grid;
  grid-template-columns: 4em 1fr;
  gap: 8px;
  align-items: baseline;
}

.novel-detail-meta dt {
  margin: 0;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.novel-detail-meta dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .novel-book-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .novel-chapter-list a {
    grid-template-columns: 4.2em 1fr;
  }
}

.invest-main { padding-bottom: 96px; }
.invest-status {
  color: var(--muted);
  font-size: 0.9rem;
  margin: -12px 0 22px;
}
.invest-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}
.invest-stats article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
}
.invest-stats span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.invest-stats strong {
  font-family: var(--serif);
  font-size: 1.25rem;
  font-weight: 600;
}
.invest-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px 16px;
  margin-bottom: 16px;
}
.invest-card h2 {
  font-size: 1.05rem;
  margin-bottom: 10px;
}
.invest-hint, .invest-regime {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 10px;
}
.invest-list {
  list-style: none;
  color: var(--ink);
  font-size: 0.95rem;
}
.invest-list li + li { margin-top: 4px; }
.invest-table-wrap { overflow-x: auto; }
.invest-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.invest-table th {
  text-align: left;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  padding: 6px 8px 8px 0;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.invest-table td {
  padding: 8px 10px 8px 0;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
  vertical-align: top;
}
.invest-table .is-up { color: #c62828; }
.invest-table .is-down { color: #2e7d32; }
#inv-pnl.is-up { color: #c62828; }
#inv-pnl.is-down { color: #2e7d32; }
@media (max-width: 720px) {
  .invest-stats { grid-template-columns: 1fr 1fr; }
}

@media print {
  body { background: #fff; }
  .site-nav, .site-footer, .btn, .article-mobile-bar, #life-gate, #other-gate, #invest-gate { display: none !important; }
  .job, .adv, .demo-card { break-inside: avoid; }
  html { scroll-behavior: auto; }
  html.life-locked body > *:not(#life-gate) { visibility: visible !important; }
  html.other-locked body > *:not(#other-gate) { visibility: visible !important; }
  html.invest-locked body > *:not(#invest-gate) { visibility: visible !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
