:root {
  --radius-sm: 8px;
  --radius-card: 14px;
  --radius-large: 20px;
  --space-1: 6px;
  --space-2: 12px;
  --space-3: 20px;
  --space-4: 32px;
  --ink: #18202d;
  --muted: #69707c;
  --line: #e9e8e5;
  --paper: #fffdfa;
  --card: #fff;
  --accent: #e78b5b;
  --soft: #f7f5f1;
  --button: #18202d;
  --shadow: 0 6px 22px rgba(28, 33, 39, 0.055);
  color-scheme: light;
}

/* Homepage V1: self-contained rules; shared navigation and mobile glass remain untouched. */
.home-v1 { overflow: hidden; }
.home-v1-shell { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.home-v1-hero { position: relative; min-height: 400px; display: flex; align-items: center; isolation: isolate; background-position: center; background-size: cover; color: #fff; }
.home-v1-hero-shade { position:absolute; inset:0; z-index:-1; background:linear-gradient(90deg,rgba(13,24,37,.78) 0%,rgba(13,24,37,.54) 42%,rgba(13,24,37,.16) 75%,rgba(13,24,37,.30) 100%); }
.home-v1-hero-grid { display:grid; grid-template-columns:minmax(0,1fr) 340px; align-items:end; gap:50px; padding:28px 0 26px; }
.home-v1-hero-copy { max-width:650px; }
.home-v1-kicker,.home-v1-section-heading > p { margin:0 0 7px; color:var(--accent); font-size:12px; font-weight:700; letter-spacing:.12em; }
.home-v1-hero h1 { margin:0; max-width:650px; font-size:clamp(36px,3.65vw,48px); line-height:1.16; letter-spacing:-.045em; text-wrap:balance; }
@media (min-width:1060px){.home-v1-hero h1{max-width:none;white-space:nowrap}}
.home-v1-slogan { margin:18px 0 0; font-size:16px; font-weight:600; }
.home-v1-intro { max-width:510px; margin:22px 0 0; font-size:15px; line-height:1.85; color:rgba(255,255,255,.92); }
.home-v1-hero-actions { display:flex; flex-wrap:wrap; gap:11px; margin-top:26px; }
.home-v1-button { display:inline-flex; align-items:center; justify-content:center; min-height:42px; padding:0 18px; border:1px solid transparent; border-radius:999px; font-size:14px; font-weight:700; text-decoration:none; transition:transform .2s,background .2s,border-color .2s,box-shadow .2s; }
.home-v1-button:hover { transform:translateY(-2px); }
.home-v1-button.primary { color:#1d2a3a; border-color:rgba(255,255,255,.68); background:rgba(255,253,250,.94); box-shadow:0 7px 18px rgba(8,19,32,.17); }
.home-v1-button.secondary { color:#fff; border-color:rgba(255,255,255,.26); background:rgba(0,0,0,.15); box-shadow:0 6px 16px rgba(8,19,32,.12); text-shadow:0 1px 2px rgba(7,18,30,.52); backdrop-filter:blur(5px) saturate(82%); -webkit-backdrop-filter:blur(5px) saturate(82%); }
.home-v1-button.primary:hover { background:#fff; }.home-v1-button.secondary:hover { border-color:rgba(255,255,255,.35); background:rgba(0,0,0,.21); box-shadow:0 8px 19px rgba(8,19,32,.16); }
html[data-theme="dark"] .home-v1-button.primary { color:#f5f8fc; border-color:rgba(182,204,229,.28); background:rgba(56,73,94,.94); box-shadow:0 8px 20px rgba(0,0,0,.25); }
html[data-theme="dark"] .home-v1-button.secondary { color:#eef3f8; border-color:rgba(198,211,230,.18); background:rgba(24,31,42,.16); box-shadow:0 7px 18px rgba(0,0,0,.20); text-shadow:0 1px 2px rgba(0,0,0,.5); backdrop-filter:blur(7px) saturate(110%); -webkit-backdrop-filter:blur(7px) saturate(110%); }
html[data-theme="dark"] .home-v1-button.primary:hover { background:rgba(69,88,112,.98); }html[data-theme="dark"] .home-v1-button.secondary:hover { border-color:rgba(208,221,238,.27); background:rgba(24,31,42,.23); box-shadow:0 9px 21px rgba(0,0,0,.26); }
.home-v1-stats { display:grid; grid-template-columns:repeat(2,1fr); overflow:hidden; border:1px solid rgba(255,255,255,.28); border-radius:18px; color:#fff; background:rgba(18,31,47,.58); box-shadow:0 16px 42px rgba(0,0,0,.18); backdrop-filter:blur(16px) saturate(95%); -webkit-backdrop-filter:blur(16px) saturate(95%); }
.home-v1-stats > div { min-height:116px; padding:17px 18px; border-right:1px solid rgba(255,255,255,.18); border-bottom:1px solid rgba(255,255,255,.18); }
.home-v1-stats > div:nth-child(2n) { border-right:0; }.home-v1-stats > div:nth-last-child(-n+2) { border-bottom:0; }
.home-v1-stats p { display:flex; align-items:center; gap:4px; margin:0 0 9px; font-size:12px; color:rgba(255,255,255,.78); }.home-v1-stat-mark { display:inline-grid; width:13px; height:13px; place-items:center; }.home-v1-stat-icon { width:13px; height:13px; flex:0 0 auto; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }.home-v1-stats strong { font-size:28px; line-height:1; }.home-v1-stats em { margin-left:3px; font-size:12px; font-style:normal; color:rgba(255,255,255,.8); }
.home-v1-content { padding:28px 0 88px; }.home-v1-section { margin-bottom:52px; }.home-v1-section-heading { display:flex; align-items:end; justify-content:space-between; gap:18px; margin-bottom:18px; }.home-v1-section-heading h2 { margin:0; font-size:25px; letter-spacing:-.025em; }.home-v1-section-heading.with-link > a { color:var(--muted); text-decoration:none; font-size:13px; font-weight:700; }.home-v1-section-heading.with-link > a:hover { color:var(--accent); }
.home-v1-activity-row { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; }.home-v1-activity-row article { min-height:166px; padding:20px 14px 15px; border:1px solid var(--line); border-radius:15px; background:var(--card); text-align:center; box-shadow:0 5px 18px rgba(28,33,39,.025); transition:transform .2s,border-color .2s; }.home-v1-activity-row article:hover { transform:translateY(-3px); border-color:color-mix(in srgb,var(--accent) 38%,var(--line)); }.home-v1-activity-row span { display:grid; width:36px; height:36px; place-items:center; margin:0 auto 12px; font-size:22px; font-weight:800; }.home-v1-activity-row span svg { width:34px; height:34px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }.home-v1-activity-row span svg text { fill:currentColor; stroke:none; font-family:inherit; font-size:8px; font-weight:800; }.blue{color:#2371d5}.green{color:#169660}.purple{color:#7856c7}.orange{color:#dc7e1e}.home-v1-activity-row h3 { margin:0 0 7px; font-size:14px; }.home-v1-activity-row p { margin:0; color:var(--muted); font-size:12px; line-height:1.55; }
.home-v1-ability-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }.home-v1-ability-grid article { min-height:120px; padding:18px 18px 15px; border:1px solid var(--line); border-radius:15px; background:var(--card); }.home-v1-ability-grid span { float:left; margin:0 12px 42px 0; font-size:29px; line-height:1; }.home-v1-ability-grid span svg { display:block; width:34px; height:34px; fill:none; stroke:currentColor; stroke-width:1.9; stroke-linecap:round; stroke-linejoin:round; }.home-v1-ability-grid .ability-plane { overflow:visible; stroke-width:1.5; transform:rotate(-15deg) scale(1.08); transform-origin:center; }.home-v1-ability-grid h3 { margin:2px 0 7px; font-size:16px; }.home-v1-ability-grid p { margin:0; color:var(--muted); font-size:12px; line-height:1.65; }.ability-travel span{color:#367de1}.ability-photo span{color:#cc861a}.ability-dive span{color:#22a7c9}.ability-tech span{color:#249e65}.ability-play span{color:#dc4d59}.ability-learn span{color:#3378d4}
.home-v1-moment-row { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; }.home-v1-moment-row article { position:relative; aspect-ratio:1/1; overflow:hidden; border-radius:14px; background:var(--soft); }.home-v1-moment-row img { width:100%; height:100%; object-fit:cover; transition:transform .35s; }.home-v1-moment-row article:hover img { transform:scale(1.05); }.home-v1-moment-row span { position:absolute; right:0; bottom:0; left:0; padding:22px 10px 10px; color:#fff; background:linear-gradient(transparent,rgba(6,14,24,.78)); font-size:13px; font-weight:700; text-align:center; }
.home-v1-recent-grid { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr); gap:18px; }.home-v1-post-list { display:grid; gap:10px; }.home-v1-post { display:grid; grid-template-columns:58px minmax(0,1fr); gap:14px; padding:15px; border:1px solid var(--line); border-radius:14px; color:inherit; background:var(--card); text-decoration:none; }.home-v1-post:hover { border-color:color-mix(in srgb,var(--accent) 42%,var(--line)); }.home-v1-post-date { color:var(--accent); font-size:13px; font-weight:800; }.home-v1-post h3 { margin:0 0 5px; font-size:15px; }.home-v1-post p { display:-webkit-box; overflow:hidden; margin:0; color:var(--muted); font-size:12px; line-height:1.55; -webkit-box-orient:vertical; -webkit-line-clamp:2; }.home-v1-empty{color:var(--muted);font-size:14px;}
.home-v1-timeline-cta { position:relative; overflow:hidden; min-height:205px; padding:24px; border:1px solid #f0dfd2; border-radius:16px; background:linear-gradient(135deg,#fffaf5,#fff5ed); }.home-v1-timeline-cta::after { content:""; position:absolute; top:24px; right:31px; bottom:24px; width:2px; background:linear-gradient(var(--accent),#4a9ec1,#9b78cd); }.home-v1-timeline-cta > p { margin:0; color:var(--accent); font-size:12px; font-weight:700; }.home-v1-timeline-cta h3 { max-width:260px; margin:8px 0 14px; font-size:20px; line-height:1.45; }.home-v1-timeline-cta ul { margin:0 0 19px; padding:0; list-style:none; color:var(--muted); font-size:12px; line-height:1.7; }.home-v1-timeline-cta li::before { content:"•"; margin-right:6px; color:var(--accent); }.home-v1-timeline-cta a { display:inline-flex; padding:10px 14px; border-radius:999px; color:#fff; background:var(--button); font-size:12px; font-weight:700; text-decoration:none; }
html[data-theme="dark"] .home-v1-activity-row article,html[data-theme="dark"] .home-v1-ability-grid article,html[data-theme="dark"] .home-v1-post { border-color:rgba(198,211,230,.16); background:#202a37; }html[data-theme="dark"] .home-v1-timeline-cta{border-color:rgba(225,179,149,.2);background:linear-gradient(135deg,#252c36,#222833)}
@media (min-width:721px){.home-v1-hero{min-height:315px;background-position:center 42%}.home-v1-hero-grid{padding:14px 0 10px;transform:translateY(-12px)}.home-v1-hero h1{font-size:clamp(34px,3.35vw,44px)}.home-v1-slogan{margin-top:12px}.home-v1-intro{margin-top:14px;line-height:1.65}.home-v1-hero-actions{margin-top:16px}.home-v1-stats>div{min-height:94px;padding:13px 16px}.home-v1-stats p{margin-bottom:6px}.home-v1-content{padding-top:10px}.home-v1-content>.home-v1-section{margin-bottom:38px}.home-v1-content>.home-v1-section:first-child{margin-bottom:0}.home-v1-section-heading{margin-bottom:12px}.home-v1-activity-row article{min-height:156px;padding-top:16px}}
@media (max-width:960px){.home-v1-hero-grid{grid-template-columns:minmax(0,1fr) 290px;gap:28px}.home-v1-activity-row{grid-template-columns:repeat(5,150px);overflow:auto;padding-bottom:5px}.home-v1-activity-row article{min-height:156px}.home-v1-ability-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.home-v1-moment-row{grid-template-columns:repeat(5,150px);overflow:auto;padding-bottom:6px}.home-v1-recent-grid{grid-template-columns:1fr}.home-v1-timeline-cta{min-height:180px}}
@media (max-width:720px){.home-v1-shell{width:min(100% - 28px,560px)}.home-v1-hero{min-height:380px;align-items:end;background-position:60% center}.home-v1-hero-shade{background:linear-gradient(180deg,rgba(13,24,37,.22),rgba(13,24,37,.46) 44%,rgba(13,24,37,.88) 100%)}.home-v1-hero-grid{display:grid;grid-template-columns:minmax(112px,132px) minmax(0,196px);grid-template-rows:auto auto auto auto;justify-content:space-between;align-items:end;column-gap:10px;padding:22px 0 12px}.home-v1-hero-copy{display:contents}.home-v1-hero h1{grid-column:1/-1;grid-row:1;max-width:350px;font-size:clamp(28px,7.5vw,32px);line-height:1.2}.home-v1-kicker{display:none}.home-v1-slogan{grid-column:1/-1;grid-row:2;margin-top:8px;font-size:13px}.home-v1-intro{grid-column:1/-1;grid-row:3;margin-top:12px;font-size:12.5px;line-height:1.62}.home-v1-hero-actions{grid-column:1;grid-row:4;display:flex;flex-direction:column;align-self:stretch;gap:8px;margin:15px 0 0}.home-v1-button{width:100%;min-height:38px;padding:0 8px;font-size:13px;white-space:nowrap}.home-v1-stats{grid-column:2;grid-row:4;align-self:stretch;width:100%;margin:15px 0 0;border-radius:15px}.home-v1-stats>div{min-height:58px;padding:8px 9px}.home-v1-stats p{gap:3px;margin-bottom:3px;font-size:9.5px;white-space:nowrap}.home-v1-stat-mark,.home-v1-stat-icon{width:11px;height:11px}.home-v1-stats strong{font-size:21px}.home-v1-content{padding:18px 0 30px}.home-v1-section{margin-bottom:36px}.home-v1-section-heading{display:block;margin-bottom:14px}.home-v1-section-heading h2{font-size:21px}.home-v1-section-heading>p{font-size:10px}.home-v1-section-heading.with-link{display:flex;align-items:end}.home-v1-section-heading.with-link>div{min-width:0}.home-v1-activity-row{grid-template-columns:repeat(5,122px);gap:9px;margin-right:-14px}.home-v1-activity-row article{min-height:142px;padding:15px 9px}.home-v1-activity-row span{margin-bottom:9px;font-size:20px}.home-v1-activity-row h3{font-size:13px}.home-v1-activity-row p{font-size:10px}.home-v1-ability-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.home-v1-ability-grid article{min-height:154px;padding:12px 10px}.home-v1-ability-grid span{float:none;display:block;margin:0 0 8px;font-size:24px}.home-v1-ability-grid h3{margin:0 0 5px;font-size:13px}.home-v1-ability-grid p{font-size:10px;line-height:1.5}.home-v1-moment-row{grid-template-columns:repeat(5,132px);gap:9px;margin-right:-14px}.home-v1-moment-row span{font-size:12px}.home-v1-recent-grid{gap:12px}.home-v1-post{grid-template-columns:47px minmax(0,1fr);gap:10px;padding:12px}.home-v1-post h3{font-size:14px}.home-v1-post p{font-size:11px}.home-v1-timeline-cta{min-height:165px;padding:18px}.home-v1-timeline-cta h3{font-size:17px}.home-v1-timeline-cta ul{font-size:11px}}
@media (max-width:360px){.home-v1-ability-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.home-v1-hero{min-height:410px}.home-v1-hero-grid{grid-template-columns:minmax(106px,118px) minmax(0,196px)}.home-v1-stats>div{padding:8px 7px}.home-v1-stats p{font-size:9px}.home-v1-stats strong{font-size:20px}.home-v1-stats em{font-size:10px}}
@media (max-width:720px){.home-v1-ability-grid span svg{width:28px;height:28px}}

/* Phase 2 cascade: kept last so legacy responsive rules cannot override the timeline system. */
.timeline-year { margin-bottom: 28px; }
.timeline-month { margin-bottom: 24px; }
.month { margin: 0 0 11px 126px; color: var(--muted); font-size: 13px; letter-spacing: .12em; }
.timeline-item { grid-template-columns: 112px minmax(0,1fr); padding-bottom: 18px; }
.timeline-item:before { left: 96px; width: 1px; opacity: .42; background: var(--muted); }
.timeline-date { padding-right: 34px; }
.timeline-date span { right: 8px; width: 11px; height: 11px; background: var(--accent); }
.timeline-gallery.images-3 { grid-template-columns: 1.28fr .72fr; grid-template-rows: repeat(2,1fr); }
.timeline-gallery.images-3 > a:first-child { grid-row: 1 / span 2; }
.timeline-gallery.images-4 { grid-template-columns: repeat(2,1fr); grid-template-rows: repeat(2,1fr); width: min(100%,370px); }
@media (max-width:760px) {
  .mobile-console { display:none !important; }
  .timeline-item { grid-template-columns:62px minmax(0,1fr); padding-bottom:14px; }
  .timeline-item:before { left:55px; top:29px; bottom:-2px; }
  .timeline-date { padding-right:20px; font-size:12px; }
  .timeline-date span { right:1px; top:12px; width:10px; height:10px; }
  .month { margin-left:72px; font-size:11px; }
  .timeline-gallery.images-3 { grid-template-columns:1.24fr .76fr; grid-template-rows:repeat(2,1fr); height:192px; background:transparent; }
  .timeline-gallery.images-4 { height:188px; }
  .timeline-more { margin-left:62px; }
}

/* Timeline v12: one continuous month axis, aligned dates, and same-day folding. */
.timeline-month {
  --timeline-axis: 94px;
  --timeline-card-start: 120px;
  position: relative;
}
.timeline-month::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: var(--timeline-axis);
  top: 10px;
  bottom: 20px;
  width: 1px;
  background: var(--ink);
  opacity: .72;
}
.month {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  padding-left: var(--timeline-card-start);
  min-height: 20px;
  line-height: 20px;
}
.month::before {
  content: "";
  position: absolute;
  left: calc(var(--timeline-axis) - 6px);
  top: 9px;
  width: 13px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
  box-shadow: 0 0 0 4px var(--paper);
}
.timeline-item {
  grid-template-columns: var(--timeline-card-start) minmax(0, 1fr);
  padding-bottom: 18px;
}
.timeline-item::before {
  display: none;
}
.timeline-item[hidden] {
  display: none !important;
}
.timeline-date {
  position: relative;
  padding: 17px 40px 0 0;
  line-height: 1.45;
}
.timeline-date span {
  left: calc(var(--timeline-axis) - 5px);
  right: auto;
  top: 25px;
  width: 11px;
  height: 11px;
  border-width: 3px;
}
.timeline-date::after {
  content: "";
  position: absolute;
  left: calc(var(--timeline-axis) + 7px);
  top: 30px;
  width: calc(var(--timeline-card-start) - var(--timeline-axis) - 15px);
  height: 1px;
  background: var(--ink);
  opacity: .72;
}
.timeline-date span {
  background: var(--ink);
  box-shadow: 0 0 0 3px var(--paper);
}
.timeline-item.day-extra .timeline-date span {
  background: var(--paper);
  box-shadow: inset 0 0 0 2px var(--ink), 0 0 0 3px var(--paper);
}
.entry-card h3 {
  line-height: 1.45;
}
.entry-meta {
  margin: -2px 0 8px;
}
.timeline-day-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 12px 0 0;
  padding: 10px 2px 1px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: .01em;
  cursor: pointer;
}
.timeline-day-toggle:hover {
  color: var(--ink);
}

@media (max-width: 760px) {
  .timeline-month {
    --timeline-axis: 58px;
    --timeline-card-start: 78px;
  }
  .month {
    margin: 0 0 10px;
    padding-left: var(--timeline-card-start);
    min-height: 18px;
    line-height: 18px;
  }
  .month::before {
    top: 8px;
    width: 11px;
    left: calc(var(--timeline-axis) - 5px);
  }
  .timeline-month::before {
    top: 9px;
    bottom: 16px;
  }
  .timeline-item {
    grid-template-columns: var(--timeline-card-start) minmax(0, 1fr);
    padding-bottom: 15px;
  }
  .timeline-date {
    padding: 14px 30px 0 0;
    font-size: 12px;
    line-height: 1.45;
  }
  .timeline-date span {
    left: calc(var(--timeline-axis) - 5px);
    top: 21px;
    width: 10px;
    height: 10px;
  }
  .timeline-date::after {
    left: calc(var(--timeline-axis) + 6px);
    top: 26px;
    width: calc(var(--timeline-card-start) - var(--timeline-axis) - 13px);
  }
  .entry-card {
    padding-top: 14px;
  }
  .entry-meta {
    margin: -1px 0 7px;
  }
  .timeline-more {
    margin-left: var(--timeline-card-start, 78px);
    text-align: left;
  }
  .timeline-day-toggle {
    font-size: 11px;
    padding-top: 9px;
  }
}

/* 第二阶段：时间档案组件。保持原有视觉语言，仅收紧结构与响应式规则。 */
.timeline-section { position: relative; }
.timeline-year { margin: 0 0 28px; }
.timeline-year + .timeline-year { margin-top: 38px; }
.year { font-size: clamp(25px, 2.2vw, 30px); letter-spacing: -.03em; margin: 0 0 18px; }
.timeline-month { margin: 0 0 24px; }
.month { margin: 0 0 11px 126px; color: var(--muted); font-size: 13px; letter-spacing: .12em; font-weight: 800; }
.timeline-item { grid-template-columns: 112px minmax(0, 1fr); padding-bottom: 18px; }
.timeline-item:before { left: 96px; top: 32px; bottom: -2px; width: 1px; opacity: .42; background: var(--muted); }
.timeline-month .timeline-item:last-child:before { bottom: 18px; }
.timeline-date { padding-top: 14px; padding-right: 34px; font-size: 14px; }
.timeline-date span { right: 8px; top: 16px; width: 11px; height: 11px; border: 3px solid var(--paper); background: var(--accent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 24%, transparent); }
.timeline-item.same-day .timeline-date b { visibility: hidden; }
.entry-card { border-radius: var(--radius-card); padding: 17px 18px 14px; box-shadow: 0 4px 18px rgba(28,33,39,.04); }
.entry-card h3 { font-size: 18px; letter-spacing: -.015em; }
.entry-card p { color: var(--muted); margin-bottom: 11px; }
.timeline-gallery { border-radius: var(--radius-sm); background: transparent; }
.timeline-gallery.images-3 { grid-template-columns: minmax(0, 1.28fr) minmax(0, .72fr); grid-template-rows: repeat(2, 1fr); }
.timeline-gallery.images-3 > a:first-child { grid-row: 1 / span 2; }
.timeline-gallery.images-3 > a { background: var(--soft); }
.timeline-gallery.images-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(2, 1fr); }
.timeline-gallery.images-4 { width: min(100%, 370px); }
.timeline-period-indicator { position: sticky; top: 92px; z-index: 2; width: max-content; margin: 8px 0 0 126px; padding: 5px 9px; border-radius: 999px; color: var(--muted); background: color-mix(in srgb, var(--paper) 86%, transparent); border: 1px solid var(--line); font-size: 11px; font-weight: 800; letter-spacing: .08em; backdrop-filter: blur(8px); }
.timeline-period-indicator:empty { display: none; }
.sidebar { align-self: start; }
@media (min-width: 1060px) { .sidebar { position: sticky; top: 101px; } }

@media (max-width: 760px) {
  .mobile-console { display: none !important; }
  .site-header { height: 62px; padding: 0 16px; }
  .hero { height: clamp(242px, 64vw, 300px); background-position: center; }
  .hero-copy { padding: 22px 20px; }
  .hero-copy h1 { font-size: clamp(27px, 7.5vw, 34px); line-height: 1.26; letter-spacing: .015em; }
  .hero-copy span { margin-top: 10px; font-size: 14px; }
  .home-grid { margin: 20px auto 46px; padding: 0 14px; }
  .year { margin-bottom: 13px; font-size: 24px; }
  .timeline-year { margin-bottom: 24px; }
  .month { margin: 0 0 9px 72px; font-size: 11px; }
  .timeline-item { grid-template-columns: 62px minmax(0, 1fr); padding-bottom: 14px; }
  .timeline-item:before { left: 55px; top: 29px; bottom: -2px; }
  .timeline-date { padding-top: 11px; padding-right: 20px; font-size: 12px; }
  .timeline-date span { right: 1px; top: 12px; width: 10px; height: 10px; }
  .entry-card { padding: 14px 14px 12px; border-radius: 12px; }
  .entry-card h3 { font-size: 17px; margin-bottom: 5px; }
  .entry-card p { font-size: 13px; line-height: 1.6; }
  .timeline-gallery { height: 176px; width: 100% !important; }
  .timeline-gallery.images-1 { height: 178px; }
  .timeline-gallery.images-2 { height: 158px; }
  .timeline-gallery.images-3 { height: 192px; grid-template-columns: 1.24fr .76fr; grid-template-rows: repeat(2, 1fr); background: transparent; }
  .timeline-gallery.images-4 { height: 188px; }
  .timeline-dates { font-size: 10px; gap: 7px; }
  .timeline-dates small { font-size: 10px; }
  .timeline-more { margin: 18px 0 0 62px; }
  .timeline-period-indicator { top: 72px; margin-left: 72px; font-size: 10px; padding: 4px 8px; }
  .mobile-drawer { width: min(82vw, 340px); padding: 18px 18px calc(22px + env(safe-area-inset-bottom)); }
  .mobile-drawer > p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  body { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
}
html[data-theme="dark"] {
  --ink: #ecedf0;
  --muted: #a7adb7;
  --line: #343b47;
  --paper: #161b23;
  --card: #1c222c;
  --soft: #222934;
  --button: #303946;
  --shadow: 0 8px 26px rgba(0, 0, 0, 0.18);
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
html,
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family:
    "Noto Sans SC",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
}
body {
  min-height: 100vh;
  transition:
    background 0.2s,
    color 0.2s;
}
a {
  color: inherit;
}
button,
input {
  font: inherit;
}
.site-header {
  height: 80px;
  max-width: 1320px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px;
  background: rgba(255, 253, 250, 0.94);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
html[data-theme="dark"] .site-header {
  background: rgba(22, 27, 35, 0.94);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  width: 48px;
  height: 38px;
  border-radius: 50% 50% 38% 38%;
  display: grid;
  place-items: center;
  font-size: 30px;
  color: #fff;
  background: linear-gradient(145deg, #e9b290, #516f89);
}
.brand-copy strong {
  font-size: 18px;
  display: block;
  letter-spacing: 0.05em;
}
.brand-copy small {
  font-size: 11px;
  color: var(--muted);
  display: block;
  margin-top: 1px;
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.desktop-nav > a {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
}
.desktop-nav > a:hover,
.desktop-nav > a.active {
  color: var(--accent);
}
.desktop-nav .manage {
  color: #fff;
  background: var(--button);
  padding: 9px 16px;
  border-radius: 11px;
  border: 1px solid transparent;
}
.desktop-nav .manage:hover {
  color: #fff;
}
.theme-toggle {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  border-radius: 20px;
  width: 35px;
  height: 35px;
  cursor: pointer;
  font-size: 15px;
}
/* Desktop/tablet navigation only: the complete mobile navigation remains at <=720px. */
@media (min-width: 721px) {
  .site-header {
    justify-content: space-between;
    gap: 0;
    padding: 10px clamp(8px, 2vw, 26px);
    background: transparent;
    border-bottom: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .brand,
  .desktop-nav {
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.45);
    background: linear-gradient(
      to bottom,
      rgba(255, 253, 250, 0.16) 0%,
      rgba(255, 253, 250, 0.38) 43%,
      rgba(255, 253, 250, 0.38) 57%,
      rgba(255, 253, 250, 0.16) 100%
    );
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.35),
      0 8px 24px rgba(26, 33, 43, 0.10);
    backdrop-filter: blur(20px) saturate(92%) brightness(1);
    -webkit-backdrop-filter: blur(20px) saturate(92%) brightness(1);
  }
  .brand {
    width: fit-content;
    padding: 8px 22px 8px 12px;
    border-radius: 16px;
  }
  .brand-copy small {
    white-space: nowrap;
    color: var(--ink);
  }
  .desktop-nav {
    padding: 8px 14px;
    border-radius: 16px;
  }
  html[data-theme="dark"] .site-header {
    background: transparent;
  }
  html[data-theme="dark"] .brand,
  html[data-theme="dark"] .desktop-nav {
    border-color: rgba(198, 211, 230, 0.24);
    background: linear-gradient(
      to bottom,
      rgba(24, 31, 42, 0.20) 0%,
      rgba(24, 31, 42, 0.50) 43%,
      rgba(24, 31, 42, 0.50) 57%,
      rgba(24, 31, 42, 0.20) 100%
    );
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 10px 28px rgba(0, 0, 0, 0.26);
    backdrop-filter: blur(22px) saturate(102%) brightness(0.96);
    -webkit-backdrop-filter: blur(22px) saturate(102%) brightness(0.96);
  }
  html[data-theme="dark"] .brand-copy small {
    color: var(--muted);
  }
}
@media (min-width: 721px) and (max-width: 960px) {
  .site-header {
    height: 62px;
    padding: 6px 8px;
  }
  .brand {
    gap: 8px;
    padding: 7px 16px 7px 10px;
  }
  .brand-mark {
    width: 40px;
    height: 34px;
    font-size: 25px;
  }
  .brand-copy strong { font-size: 16px; }
  .brand-copy small { font-size: 10px; }
  .desktop-nav {
    gap: clamp(7px, 1.4vw, 11px);
    padding: 7px 10px;
  }
  .desktop-nav > a {
    font-size: 13px;
    white-space: nowrap;
  }
  .desktop-nav .manage { padding: 8px 10px; }
  .theme-toggle {
    width: 32px;
    height: 32px;
  }
}
.mobile-menu,
.mobile-header-actions,
.mobile-drawer,
.drawer-overlay,
.bottom-nav {
  display: none;
}
.hero {
  height: 315px;
  max-width: 1440px;
  margin: auto;
  position: relative;
  background-position: center 56%;
  background-size: cover;
  overflow: hidden;
}
.hero-shade {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background:
    linear-gradient(
      90deg,
      rgba(16, 29, 50, 0.46),
      rgba(16, 29, 50, 0.1) 60%,
      rgba(70, 24, 12, 0.23)
    ),
    linear-gradient(0deg, rgba(8, 16, 27, 0.24), transparent 65%);
}
.hero-copy {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  padding: 30px;
}
.hero-copy p {
  font-size: 13px;
  letter-spacing: 0.2em;
  margin: 0 0 8px;
  opacity: 0.88;
}
.hero-copy h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 14px #27374a;
}
.hero-copy span {
  font-size: 16px;
  margin-top: 14px;
}
.home-grid {
  max-width: 1240px;
  margin: 28px auto 70px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 46px;
  padding: 0 20px;
}
.home-grid.without-sidebar {
  grid-template-columns: minmax(0, 1fr);
  max-width: 930px;
}
.timeline-section {
  min-width: 0;
}
.timeline-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 24px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--line);
}
.timeline-filter-copy { display: flex; align-items: baseline; gap: 9px; flex: 0 0 auto; }
.timeline-filter-copy > span { color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.timeline-filter-mobile-copy { display: none; }
.timeline-filter-copy small { color: var(--ink); font-size: 13px; font-weight: 800; }
.timeline-filter-options { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.timeline-filter-chip {
  min-height: 31px;
  padding: 5px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: color .2s, background .2s, border-color .2s, transform .2s;
}
.timeline-filter-chip:hover { color: var(--ink); background: var(--soft); }
.timeline-filter-chip.is-active { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 26%, transparent); background: color-mix(in srgb, var(--accent) 9%, var(--paper)); }
.timeline-filter-chip:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 65%, transparent); outline-offset: 2px; }
.timeline-filter-select,
.timeline-filter-mobile-control { display: none !important; }
@media (min-width: 721px) {
  .timeline-filter-copy > .timeline-filter-desktop-copy {
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
  }
  .timeline-filter-copy > small[data-timeline-filter-summary] {
    display: none;
  }
}
.year {
  font-size: 27px;
  margin: 0 0 7px;
}
.timeline-year + .timeline-year {
  margin-top: 10px;
}
.timeline-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  position: relative;
  padding-bottom: 20px;
}
.timeline-item:before {
  content: "";
  position: absolute;
  width: 1.5px;
  background: var(--ink);
  left: 101px;
  top: 31px;
  bottom: -1px;
  opacity: 0.8;
}
.timeline-year .timeline-item:last-child:before {
  bottom: 17px;
}
.timeline-date {
  position: relative;
  padding-top: 12px;
  font-size: 16px;
  text-align: right;
  padding-right: 42px;
}
.timeline-date span {
  position: absolute;
  right: 12px;
  top: 15px;
  width: 14px;
  height: 14px;
  border: 4px solid var(--paper);
  background: var(--ink);
  border-radius: 50%;
  z-index: 1;
}
.entry-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px 14px;
  background: var(--card);
  box-shadow: var(--shadow);
}
.timeline-entry-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 7px;
}
.entry-card .timeline-entry-heading h3 {
  margin: 0;
}
.timeline-category {
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 1px solid #e3c9b8;
  border-radius: 999px;
  background: #fcf5f0;
  color: #9a6545;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}
.timeline-category:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, var(--paper));
  color: var(--accent);
}
html[data-theme="dark"] .timeline-category {
  border-color: rgba(225, 179, 149, .36);
  background: rgba(225, 179, 149, .10);
  color: #e1b395;
}
.entry-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 3px;
}
.entry-meta a {
  color: var(--accent);
  text-decoration: none;
}
.entry-location {
  padding-left: 8px;
  border-left: 1px solid var(--line);
}
.entry-card h3 {
  font-size: 19px;
  margin: 0 0 7px;
}
.entry-card h3 a {
  color: inherit;
  text-decoration: none;
}
.entry-card h3 a:hover {
  color: var(--accent);
}
.entry-card p {
  line-height: 1.65;
  font-size: 14px;
  margin: 0 0 10px;
  color: var(--ink);
}
.timeline-gallery {
  display: grid;
  gap: 6px;
  height: 112px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 9px;
  background: var(--soft);
}
.timeline-gallery > a {
  display: block;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--soft);
}
.timeline-gallery.images-2 {
  width: min(100%, 350px);
  grid-template-columns: repeat(2, 172px);
}
.timeline-gallery.images-1 {
  width: min(100%, 230px);
  grid-template-columns: minmax(0, 1fr);
}
.timeline-gallery.images-3 {
  width: min(100%, 426px);
  grid-template-columns: repeat(3, 138px);
}
.timeline-gallery.images-4 {
  width: min(100%, 510px);
  grid-template-columns: repeat(4, 123px);
}
.timeline-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.timeline-gallery a:hover img {
  transform: scale(1.025);
}
.timeline-dates {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 11px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}
.timeline-dates .event-period {
  color: var(--ink);
  font-weight: 700;
}
.timeline-dates small {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
.tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.tags a {
  font-size: 12px;
  background: var(--soft);
  padding: 3px 7px;
  border-radius: 5px;
  text-decoration: none;
  color: var(--muted);
}
.tags a:hover {
  color: var(--accent);
}
.read-more {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  margin-top: 11px;
  color: var(--muted);
  font-size: 12px;
  text-decoration: none;
  font-weight: 700;
}
.read-more:hover {
  color: var(--accent);
}
.timeline-more {
  margin: 24px 0 0 102px;
}
.timeline-more a {
  display: inline-flex;
  padding: 9px 14px;
  color: var(--accent);
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.side-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  padding: 17px;
  box-shadow: var(--shadow);
}
.side-card h3 {
  font-size: 14px;
  margin: 0 0 12px;
}
.side-card p {
  font-size: 12px;
  line-height: 1.75;
  color: var(--muted);
  margin: 0;
}
.about-card {
  text-align: center;
  padding: 0 16px 15px;
  overflow: hidden;
}
.about-cover {
  height: 91px;
  margin: 0 -16px;
  background-position: center;
  background-size: cover;
}
.avatar {
  width: 85px;
  height: 85px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--card);
  margin-top: -45px;
  position: relative;
}
.about-card h3 {
  font-size: 16px;
  margin: 7px 0 6px;
}
.profile-link {
  display: inline-block;
  margin-top: 7px;
  color: var(--accent);
  font-size: 12px;
  text-decoration: none;
}
.stats {
  display: flex;
  justify-content: space-around;
  margin-top: 13px;
}
.stats span {
  display: grid;
  gap: 1px;
}
.stats b {
  font-size: 18px;
}
.stats small {
  font-size: 10px;
  color: var(--muted);
}
.skill-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.skill-tags span {
  font-size: 12px;
  padding: 6px 11px;
  border-radius: 16px;
  background: var(--soft);
}
.connect {
  text-align: center;
  background: linear-gradient(135deg, #fff8f1, var(--card));
}
html[data-theme="dark"] .connect {
  background: linear-gradient(135deg, #2d251f, var(--card));
}
.connect > span {
  font-size: 25px;
}
.connect h3 {
  margin: 1px 0 5px;
}
.connect a {
  display: inline-block;
  text-decoration: none;
  background: var(--button);
  color: #fff;
  border-radius: 20px;
  font-size: 12px;
  padding: 6px 21px;
  margin-top: 10px;
}
.hot {
  padding-bottom: 9px;
}
.hot > a {
  display: block;
  text-decoration: none;
  color: var(--ink);
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.hot b {
  display: block;
  font-size: 12px;
}
.hot small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}
.page-hero {
  max-width: 1440px;
  margin: auto;
  min-height: 245px;
  padding: 55px max(24px, calc((100% - 1160px) / 2));
  background:
    linear-gradient(100deg, rgba(20, 31, 44, 0.78), rgba(20, 31, 44, 0.14)),
    url("../images/home-hero.jpg") center/cover;
  color: white;
}
.page-hero h1 {
  font-size: 36px;
  margin: 10px 0;
}
.page-hero p {
  max-width: 560px;
  line-height: 1.8;
}
.page-content {
  max-width: 1160px;
  margin: 40px auto 80px;
  padding: 0 20px;
}
.section-title {
  font-size: 27px;
  margin: 0 0 20px;
}
.page-tools {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  margin: -7px 0 22px;
}
.filter-group {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.filter-group a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  padding: 6px 11px;
  border-radius: 17px;
  border: 1px solid var(--line);
  background: transparent;
}
.filter-group a.active,
.filter-group a:hover {
  background: var(--button);
  border-color: var(--button);
  color: #fff;
}
.search-trigger {
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: 18px;
  cursor: pointer;
}
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.content-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.content-card-cover {
  display: block;
}
.content-card img {
  width: 100%;
  height: 155px;
  object-fit: cover;
  display: block;
}
.content-card > div {
  padding: 15px;
}
.content-card small {
  color: var(--accent);
}
.content-card small a {
  text-decoration: none;
}
.content-card h3 {
  font-size: 17px;
  margin: 6px 0;
}
.content-card h3 a {
  color: inherit;
  text-decoration: none;
}
.content-card h3 a:hover {
  color: var(--accent);
}
.content-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}
.archives {
  display: grid;
  gap: 27px;
}
.archives h2 {
  font-size: 20px;
  margin: 0 0 8px;
}
.archives > a {
  display: flex;
  gap: 20px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.archives > a span {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.archives > a:hover strong {
  color: var(--accent);
}
.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 245px;
  gap: 46px;
  align-items: start;
}
.post-content {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: clamp(20px, 4vw, 48px);
  box-shadow: var(--shadow);
}
.post-kicker {
  font-size: 13px;
  color: var(--accent);
  font-weight: 700;
}
.post-kicker a {
  text-decoration: none;
}
.post-title {
  font-size: clamp(30px, 4.3vw, 46px);
  line-height: 1.2;
  margin: 10px 0 15px;
}
.post-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 24px;
}
.post-meta a {
  color: inherit;
}
.post-cover {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: contain;
  background: var(--soft);
  border-radius: 12px;
  margin: 0 0 27px;
}
.article-body {
  color: var(--ink);
  font-size: 16px;
  line-height: 2;
}
.article-body h2 {
  font-size: 25px;
  line-height: 1.4;
  margin: 39px 0 13px;
  color: var(--ink);
}
.article-body h3 {
  font-size: 20px;
  margin: 28px 0 10px;
}
.article-body p {
  margin: 0 0 18px;
}
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
}
.article-body figure {
  max-width: 100%;
  margin: 24px 0;
}
.article-body figcaption {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}
.article-body blockquote {
  margin: 24px 0;
  padding: 13px 17px;
  border-left: 3px solid var(--accent);
  background: var(--soft);
  color: var(--muted);
}
.article-body pre {
  overflow: auto;
  padding: 16px;
  border-radius: 10px;
  background: var(--soft);
}
.article-body a {
  color: var(--accent);
}
.media-format-note {
  border: 1px solid #e1ad8f;
  background: #fff4ec;
  color: #7b4a32;
  border-radius: 9px;
  padding: 11px 13px;
  font-size: 13px;
}
.article-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.article-actions button,
.article-actions a {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 18px;
  padding: 7px 12px;
  text-decoration: none;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}
.post-toc {
  position: sticky;
  top: 104px;
  border-left: 1px solid var(--line);
  padding: 5px 0 5px 18px;
}
.post-toc b {
  font-size: 13px;
}
.post-toc a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  margin-top: 12px;
}
.post-toc a:hover {
  color: var(--accent);
}
.post-toc.is-empty {
  display: none;
}
.comment-area,
.comment-section {
  margin-top: 28px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.comment-area h2 {
  font-size: 19px;
}
.single-page-body,
.special-page-content {
  max-width: 900px;
}
.empty-special-page,
.empty-state {
  padding: 24px;
  color: var(--muted);
  background: var(--soft);
  border: 1px dashed var(--line);
  border-radius: 13px;
  line-height: 1.8;
}
.resume-content h2,
.about-content h2 {
  font-size: 27px;
  margin: 35px 0 20px;
}
.resume-content h3,
.about-content h3 {
  border-left: 2px solid var(--accent);
  padding-left: 22px;
  margin: 29px 0 7px;
}
.resume-content h3 + p,
.about-content h3 + p {
  border-left: 2px solid var(--accent);
  padding: 0 0 12px 22px;
  color: var(--muted);
}
.projects-content {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: none;
}
.projects-content figure {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.projects-content figure img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  border-radius: 0;
}
.projects-content figure figcaption {
  padding: 14px;
  text-align: left;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}
.gallery-content {
  columns: 3;
  column-gap: 16px;
  max-width: none;
}
.gallery-content figure {
  break-inside: avoid;
  margin: 0 0 16px;
}
.gallery-content img {
  width: 100%;
  border-radius: 12px;
  display: block;
}
.help-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin-top: 28px;
}
.help-grid > div {
  padding: 20px;
  background: var(--soft);
  border-radius: 12px;
}
.help-grid h3 {
  margin: 0 0 8px;
}
.help-grid p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}
.link-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.link-list a {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 12px;
  padding: 18px;
  text-decoration: none;
}
.link-list a:hover {
  border-color: var(--accent);
}
.link-list small {
  color: var(--muted);
}
.tag-cloud {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.tag-cloud a {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 7px 12px;
  text-decoration: none;
  font-size: 13px;
}
.pagination {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  margin: 36px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.pagination a {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 11px;
  color: var(--muted);
  text-decoration: none;
  background: transparent;
}
.pagination a:hover {
  background: var(--button);
  border-color: var(--button);
  color: #fff;
}
.empty-state {
  text-align: center;
  border: 1px dashed var(--line);
  background: var(--soft);
  border-radius: 14px;
  padding: 44px 20px;
  color: var(--muted);
}
.site-footer {
  border-top: 1px solid var(--line);
  padding: 35px 20px;
  background: #fbfaf8;
  color: var(--muted);
}
html[data-theme="dark"] .site-footer {
  background: #131820;
}
.footer-inner {
  max-width: 1160px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
  line-height: 1.7;
}
.footer-inner strong {
  color: var(--ink);
  font-size: 14px;
}
.footer-inner p {
  margin: 2px 0;
}
.footer-inner nav {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.footer-inner nav a {
  color: inherit;
  text-decoration: none;
}
.footer-inner nav a:hover {
  color: var(--accent);
}
.not-found {
  min-height: 70vh;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 30px;
}
.not-found strong {
  font-size: 82px;
  color: var(--accent);
}
.not-found h1 {
  font-size: 28px;
  margin: 4px 0;
}
.not-found p {
  color: var(--muted);
}
.not-found a {
  display: inline-block;
  background: var(--button);
  color: #fff;
  border-radius: 10px;
  padding: 10px 16px;
  text-decoration: none;
  font-size: 13px;
  margin-top: 8px;
}
@media (max-width: 960px) {
  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-grid {
    gap: 26px;
    grid-template-columns: minmax(0, 1fr) 260px;
  }
  .projects-content {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 720px) {
  body {
    padding-bottom: 78px;
    overflow-x: hidden;
  }
  .timeline-filter-bar { display: flex; justify-content: flex-start; gap: 12px; margin-bottom: 18px; padding-bottom: 12px; }
  .timeline-filter-copy { min-width: 0; }
  .timeline-filter-desktop-copy { display: none; }
  .timeline-filter-mobile-copy { display: block; color: var(--ink); font-size: 16px; font-weight: 800; letter-spacing: 0; opacity: 1; text-shadow: none; white-space: nowrap; }
  .timeline-filter-copy small { display: none; }
  .timeline-filter-options { display: none; }
  .timeline-filter-mobile-control { display: block !important; position: relative; flex: 0 0 166px; width: 166px; }
  .timeline-filter-trigger {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 166px;
    min-height: 38px;
    padding: 6px 9px;
    border: 1px solid color-mix(in srgb, var(--ink) 14%, var(--line));
    border-radius: 10px;
    color: var(--ink);
    background: color-mix(in srgb, var(--paper) 86%, transparent);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: border-color .2s, box-shadow .2s, background .2s;
  }
  .timeline-filter-trigger > span { padding-right: 22px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .timeline-filter-trigger svg { position: absolute; right: 10px; width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
  .timeline-filter-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
  .timeline-filter-trigger:hover { border-color: color-mix(in srgb, var(--ink) 23%, var(--line)); background: color-mix(in srgb, var(--paper) 94%, transparent); }
  .timeline-filter-trigger:focus-visible { outline: none; border-color: color-mix(in srgb, var(--ink) 28%, var(--line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 10%, var(--paper)); }
  .timeline-filter-popover {
    position: absolute;
    top: calc(100% + 7px);
    left: 0;
    z-index: 18;
    width: 166px;
    padding: 6px;
    border: 1px solid color-mix(in srgb, var(--ink) 12%, var(--line));
    border-radius: 13px;
    background: rgba(255, 253, 250, .80);
    box-shadow: 0 12px 30px color-mix(in srgb, var(--ink) 13%, transparent);
  }
  @supports ((-webkit-backdrop-filter: blur(8px)) or (backdrop-filter: blur(8px))) {
    .timeline-filter-popover {
      background: rgba(255, 253, 250, .22);
      backdrop-filter: blur(8px) saturate(75%) brightness(1.05);
      -webkit-backdrop-filter: blur(8px) saturate(75%) brightness(1.05);
    }
  }
  .timeline-filter-popover[hidden] { display: none; }
  .timeline-filter-popover-option {
    display: block;
    width: 100%;
    min-height: 39px;
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    color: var(--ink);
    background: transparent;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-align: left;
    white-space: nowrap;
    cursor: pointer;
  }
  .timeline-filter-popover-option:hover,
  .timeline-filter-popover-option[aria-selected="true"] { background: color-mix(in srgb, var(--accent) 10%, transparent); }
  html[data-theme="dark"] .timeline-filter-popover { border-color: rgba(190, 205, 226, .38); background: rgba(24, 31, 42, .86); box-shadow: 0 14px 32px rgba(0, 0, 0, .34); }
  @supports ((-webkit-backdrop-filter: blur(7px)) or (backdrop-filter: blur(7px))) {
    html[data-theme="dark"] .timeline-filter-popover {
      background: rgba(24, 31, 42, .24);
      backdrop-filter: blur(7px) saturate(110%);
      -webkit-backdrop-filter: blur(7px) saturate(110%);
    }
  }
  .site-header {
    height: calc(54px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) 14px 0;
    max-width: none;
    background: linear-gradient(
      to bottom,
      rgba(255, 253, 250, 0.92) 0%,
      rgba(255, 253, 250, 0.50) 56%,
      rgba(255, 253, 250, 0.22) 100%
    );
    backdrop-filter: blur(6px) saturate(85%) brightness(1.03);
    -webkit-backdrop-filter: blur(6px) saturate(85%) brightness(1.03);
  }
  html[data-theme="dark"] .site-header {
    background: linear-gradient(
      to bottom,
      rgba(22, 27, 35, 0.92) 0%,
      rgba(22, 27, 35, 0.50) 56%,
      rgba(22, 27, 35, 0.22) 100%
    );
    backdrop-filter: blur(6px) saturate(105%);
    -webkit-backdrop-filter: blur(6px) saturate(105%);
  }
  .brand {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  .brand-mark,
  .brand-copy small {
    display: none;
  }
  .brand-copy strong {
    font-size: 14px;
    white-space: nowrap;
  }
  .desktop-nav {
    display: none;
  }
  .mobile-menu {
    display: block;
    border: 0;
    background: none;
    color: var(--ink);
    font-size: 23px;
    padding: 7px;
    z-index: 1;
  }
  .mobile-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
  }
  .mobile-search {
    display: block;
    border: 0;
    background: none;
    color: var(--ink);
    font-size: 23px;
    padding: 7px;
  }
  .mobile-console {
    display: block;
    text-decoration: none;
    color: #fff;
    background: var(--button);
    border: 1px solid var(--line);
    font-size: 11px;
    font-weight: 700;
    padding: 7px 9px;
    border-radius: 8px;
    white-space: nowrap;
  }
  .drawer-overlay {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 60;
    border: 0;
    background: rgba(20, 25, 30, 0.16);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.25s,
      visibility 0.25s;
  }
  .drawer-open .drawer-overlay {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .mobile-drawer {
    display: block;
    position: fixed;
    top: 0;
    right: auto;
    bottom: 0;
    left: 0;
    width: 80vw;
    box-sizing: border-box;
    height: 100dvh;
    min-height: 100vh;
    z-index: 70;
    padding: calc(12px + env(safe-area-inset-top)) 16px
      calc(24px + env(safe-area-inset-bottom));
    background: rgba(255, 253, 250, 0.22);
    color: var(--ink);
    border-right: 1px solid rgba(255, 255, 255, 0.76);
    transform: translate3d(-105%, 0, 0);
    transition: transform 0.25s ease;
    box-shadow:
      18px 0 42px rgba(23, 27, 32, 0.16),
      inset -1px 0 rgba(255, 255, 255, 0.46);
    overflow-y: auto;
    overscroll-behavior: contain;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
  }
  .drawer-open .mobile-drawer {
    transform: translate3d(0, 0, 0);
  }
  .mobile-drawer.is-dragging {
    transition: none;
  }
  .drawer-open {
    overflow: hidden;
  }
  .drawer-head {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px 34px 11px 0;
  }
  .drawer-head img {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
  }
  .drawer-head b,
  .drawer-head small {
    display: block;
  }
  .drawer-head b {
    font-size: 16px;
  }
  .drawer-head small {
    font-size: 11px;
    color: var(--ink);
    margin-top: 3px;
  }
  .drawer-close {
    position: absolute;
    right: 14px;
    top: calc(9px + env(safe-area-inset-top));
    border: 0;
    background: rgba(243, 241, 237, 0.82);
    color: var(--ink);
    border-radius: 50%;
    width: 31px;
    height: 31px;
    font-size: 24px;
    line-height: 25px;
  }
  .mobile-drawer > p {
    font-size: 13px;
    line-height: 1.7;
    color: var(--ink);
    margin: 2px 0 12px;
    -webkit-line-clamp: 3;
  }
  .mobile-drawer nav {
    margin: 12px 0;
    border-top: 1px solid rgba(24, 32, 45, 0.34);
  }
  .mobile-drawer nav a {
    display: flex;
    gap: 11px;
    align-items: center;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px solid rgba(24, 32, 45, 0.34);
    padding: 12px 2px;
  }
  .mobile-drawer nav i {
    font-style: normal;
    width: 20px;
    height: 20px;
    display: grid;
    place-items: center;
    flex: 0 0 20px;
  }
  .nav-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
  .mobile-drawer nav span {
    font-size: 13px;
    font-weight: 600;
  }
  .drawer-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin: 12px 0 8px;
  }
  .drawer-actions button {
    border: 1px solid rgba(91, 101, 115, 0.18);
    background: rgba(255, 255, 255, 0.46);
    color: var(--ink);
    border-radius: 9px;
    padding: 9px 5px;
    font-size: 11px;
    box-shadow: 0 3px 10px rgba(30, 36, 44, 0.04);
    backdrop-filter: blur(12px) saturate(135%);
    -webkit-backdrop-filter: blur(12px) saturate(135%);
  }
  .drawer-console,
  .drawer-contact {
    display: block;
    text-decoration: none;
    text-align: center;
    border-radius: 10px;
    padding: 10px;
    font-size: 12px;
  }
  .drawer-console {
    background: var(--button);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    margin-bottom: 8px;
    box-shadow: 0 6px 16px rgba(24, 32, 45, 0.14);
  }
  .drawer-contact {
    border: 1px solid rgba(91, 101, 115, 0.18);
    background: rgba(255, 255, 255, 0.46);
    color: #344052;
    box-shadow: 0 3px 10px rgba(30, 36, 44, 0.04);
    backdrop-filter: blur(12px) saturate(135%);
    -webkit-backdrop-filter: blur(12px) saturate(135%);
  }
  @supports (
    (-webkit-backdrop-filter: blur(8px)) or (backdrop-filter: blur(8px))
  ) {
    .mobile-drawer {
      background: rgba(255, 253, 250, 0.22);
      backdrop-filter: blur(8px) saturate(75%) brightness(1.05);
      -webkit-backdrop-filter: blur(8px) saturate(75%) brightness(1.05);
    }
  }
  html[data-theme="dark"] .mobile-drawer {
    background: rgba(24, 31, 42, 0.24);
    border-color: rgba(190, 205, 226, 0.38);
  }
  @supports (
    (-webkit-backdrop-filter: blur(7px)) or (backdrop-filter: blur(7px))
  ) {
  html[data-theme="dark"] .mobile-drawer {
    background: rgba(24, 31, 42, 0.24);
    backdrop-filter: blur(7px) saturate(110%);
    -webkit-backdrop-filter: blur(7px) saturate(110%);
  }
  html[data-theme="dark"] .drawer-head b,
  html[data-theme="dark"] .drawer-head small,
  html[data-theme="dark"] .mobile-drawer > p,
  html[data-theme="dark"] .mobile-drawer nav a {
    text-shadow:
      0 1px 1px rgba(0, 0, 0, 0.72),
      0 0 8px rgba(0, 0, 0, 0.32);
  }
  }
  html[data-theme="dark"] .drawer-head small {
    color: var(--muted);
  }
  html[data-theme="dark"] .drawer-close,
  html[data-theme="dark"] .drawer-actions button {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.14);
  }
  html[data-theme="dark"] .drawer-contact {
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.14);
    color: var(--ink);
  }
  html[data-theme="dark"] .mobile-drawer nav {
    border-top-color: rgba(237, 240, 245, 0.34);
  }
  html[data-theme="dark"] .mobile-drawer nav a {
    border-bottom-color: rgba(237, 240, 245, 0.34);
  }
  .hero {
    height: 216px;
    background-position: center;
  }
  .hero-copy {
    padding: 25px 20px;
  }
  .hero-copy p {
    display: none;
  }
  .hero-copy h1 {
    font-size: 28px;
    line-height: 1.2;
  }
  .hero-copy span {
    font-size: 12px;
    margin-top: 11px;
  }
  .home-grid {
    display: flex;
    flex-direction: column;
    margin: 25px auto 15px;
    padding: 0 14px;
    gap: 26px;
  }
  .year {
    font-size: 25px;
    margin-bottom: 7px;
  }
  .timeline-item {
    grid-template-columns: 90px minmax(0, 1fr);
    padding-bottom: 15px;
  }
  .timeline-item:before {
    left: 72px;
    top: 30px;
  }
  .timeline-date {
    font-size: 13px;
    padding-top: 12px;
    padding-right: 33px;
  }
  .timeline-date span {
    right: 11px;
    top: 15px;
  }
  .entry-card {
    padding: 13px;
    border-radius: 11px;
  }
  .entry-card h3 {
    font-size: 16px;
    line-height: 1.4;
  }
  .timeline-entry-heading {
    gap: 6px;
    margin-bottom: 7px;
  }
  .timeline-category {
    padding: 3px 7px;
    font-size: 10px;
  }
  .entry-card p {
    font-size: 12px;
    line-height: 1.65;
  }
  .entry-meta {
    font-size: 11px;
  }
  .entry-location {
    width: 100%;
    padding-left: 0;
    border-left: 0;
  }
  .timeline-gallery {
    margin-top: 10px;
    height: 180px;
  }
  .timeline-gallery.images-2 {
    width: 100%;
    height: 160px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .timeline-gallery.images-1 {
    width: min(100%, 260px);
    height: 150px;
  }
  .timeline-gallery.images-3,
  .timeline-gallery.images-4 {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }
  /* 三张图在手机上按 2 + 1 排列；最后一个格保留页面底色，不伪装成第四张图片。 */
  .timeline-gallery.images-3 {
    background: transparent;
  }
  .timeline-dates {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }
  .timeline-more {
    margin-left: 0;
    text-align: center;
  }
  .tags {
    margin-top: 8px;
    gap: 5px;
  }
  .tags a {
    font-size: 10px;
    padding: 3px 5px;
  }
  .sidebar {
    gap: 12px;
  }
  .sidebar .hot {
    display: none;
  }
  .side-card {
    padding: 15px;
  }
  .about-card {
    padding: 0 15px 14px;
  }
  .about-cover {
    margin: 0 -15px;
  }
  .page-hero {
    min-height: 195px;
    padding: 38px 20px;
  }
  .page-hero h1 {
    font-size: 28px;
  }
  .page-hero p {
    font-size: 13px;
  }
  .page-content {
    margin: 27px auto 25px;
    padding: 0 15px;
  }
  .section-title {
    font-size: 23px;
  }
  .article-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }
  .content-card {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
  }
  .content-card.no-cover {
    grid-template-columns: 1fr;
  }
  .content-card-cover {
    height: 100%;
  }
  .content-card img {
    height: 100%;
    min-height: 132px;
  }
  .content-card > div {
    padding: 13px;
  }
  .page-tools {
    display: block;
  }
  .page-tools .search-trigger {
    float: right;
    margin-top: -31px;
  }
  .filter-group {
    padding-right: 40px;
  }
  .post-layout {
    display: block;
  }
  .post-toc {
    display: none;
  }
  .post-content {
    border-width: 0;
    border-radius: 0;
    box-shadow: none;
    margin: 0 -15px;
    padding: 24px 15px;
  }
  .post-title {
    font-size: 31px;
  }
  .article-body {
    font-size: 15px;
    line-height: 1.9;
  }
  .projects-content {
    grid-template-columns: 1fr;
  }
  .gallery-content {
    columns: 2;
    column-gap: 9px;
  }
  .gallery-content figure {
    margin-bottom: 9px;
  }
  .help-grid,
  .link-list {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    display: grid;
    gap: 12px;
  }
  .site-footer {
    padding-bottom: calc(35px + env(safe-area-inset-bottom));
  }
  .bottom-nav {
    position: fixed;
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    padding: 8px 4px calc(7px + env(safe-area-inset-bottom));
    height: 70px;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(
      to bottom,
      rgba(255, 253, 250, 0.22) 0%,
      rgba(255, 253, 250, 0.50) 44%,
      rgba(255, 253, 250, 0.92) 100%
    );
    border-top: 1px solid var(--line);
    z-index: 40;
    backdrop-filter: blur(6px) saturate(85%) brightness(1.03);
    -webkit-backdrop-filter: blur(6px) saturate(85%) brightness(1.03);
  }
  .bottom-nav a {
    font-size: 10px;
    color: var(--ink);
    text-decoration: none;
    display: grid;
    text-align: center;
    gap: 2px;
    min-width: 0;
  }
  .bottom-nav i {
    font-style: normal;
    height: 20px;
    display: grid;
    place-items: center;
  }
  .bottom-nav .nav-icon svg {
    width: 19px;
    height: 19px;
  }
  .bottom-nav .active .nav-icon svg {
    stroke-width: 2;
  }
  .bottom-nav .active {
    color: var(--accent);
  }
  html[data-theme="dark"] .bottom-nav {
    background: linear-gradient(
      to bottom,
      rgba(22, 27, 35, 0.22) 0%,
      rgba(22, 27, 35, 0.50) 44%,
      rgba(22, 27, 35, 0.92) 100%
    );
    backdrop-filter: blur(6px) saturate(105%);
    -webkit-backdrop-filter: blur(6px) saturate(105%);
  }
  html[data-theme="dark"] .bottom-nav a {
    color: var(--muted);
  }
  html[data-theme="dark"] .bottom-nav .active {
    color: #f3a06f;
  }
}

/* Final cascade for Timeline v12. */
.timeline-month {
  --timeline-axis: 94px;
  --timeline-card-start: 120px;
  position: relative;
}
.timeline-month::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: var(--timeline-axis);
  top: 10px;
  bottom: 20px;
  width: 1px;
  background: var(--ink);
  opacity: .72;
}
.month {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  padding-left: var(--timeline-card-start);
  min-height: 20px;
  line-height: 20px;
}
.month::before {
  content: "";
  position: absolute;
  left: calc(var(--timeline-axis) - 6px);
  top: 9px;
  width: 13px;
  height: 2px;
  border-radius: 999px;
  background: var(--ink);
  box-shadow: 0 0 0 4px var(--paper);
}
.timeline-item {
  grid-template-columns: var(--timeline-card-start) minmax(0, 1fr);
  padding-bottom: 18px;
}
.timeline-item::before { display: none; }
.timeline-item[hidden] { display: none !important; }
.timeline-date {
  padding: 17px 40px 0 0;
  line-height: 1.45;
}
.timeline-date span {
  left: calc(var(--timeline-axis) - 5px);
  right: auto;
  top: 25px;
  width: 11px;
  height: 11px;
  border-width: 3px;
}
.timeline-date::after {
  content: "";
  position: absolute;
  left: calc(var(--timeline-axis) + 7px);
  top: 30px;
  width: calc(var(--timeline-card-start) - var(--timeline-axis) - 15px);
  height: 1px;
  background: var(--ink);
  opacity: .72;
}
.timeline-date span {
  background: var(--ink);
  box-shadow: 0 0 0 3px var(--paper);
}
.timeline-item.day-extra .timeline-date span {
  background: var(--paper);
  box-shadow: inset 0 0 0 2px var(--ink), 0 0 0 3px var(--paper);
}
.entry-card h3 { line-height: 1.45; }
.entry-meta { margin: -2px 0 8px; }
.timeline-day-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 12px 0 0;
  padding: 10px 2px 1px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
}
.timeline-day-toggle:hover { color: var(--accent); }
.timeline-year,
.timeline-month,
.timeline-item,
.entry-card { min-width:0; }
.entry-card {
  /* 以卡片的实际可用宽度驱动桌面图库换行，不依赖视口或改动现有断点。 */
  container: timeline-card / inline-size;
}
.timeline-gallery.images-3 { grid-template-columns:minmax(0,1.28fr) minmax(0,.72fr); grid-template-rows:repeat(2,minmax(0,1fr)); }
.timeline-gallery.images-3 > a:first-child { grid-row:1 / span 2; }
.timeline-gallery.images-4 { grid-template-columns:repeat(2,minmax(0,1fr)); grid-template-rows:repeat(2,minmax(0,1fr)); width:min(100%,370px); }

@media (max-width:760px) {
  .mobile-console { display:none !important; }
  .timeline-month {
    --timeline-axis: 58px;
    --timeline-card-start: 78px;
  }
  .timeline-month::before { top:9px; bottom:16px; }
  .month {
    margin:0 0 10px;
    padding-left:var(--timeline-card-start);
    min-height:18px;
    line-height:18px;
    font-size:11px;
  }
  .month::before {
    top:8px;
    width:11px;
    left:calc(var(--timeline-axis) - 5px);
  }
  .timeline-item {
    grid-template-columns:var(--timeline-card-start) minmax(0,1fr);
    padding-bottom:15px;
  }
  .timeline-date {
    padding:14px 30px 0 0;
    font-size:12px;
    line-height:1.45;
  }
  .timeline-date span {
    left:calc(var(--timeline-axis) - 5px);
    right:auto;
    top:21px;
    width:10px;
    height:10px;
  }
  .timeline-date::after {
    left:calc(var(--timeline-axis) + 6px);
    top:26px;
    width:calc(var(--timeline-card-start) - var(--timeline-axis) - 13px);
  }
  .entry-card { padding-top:14px; }
  .entry-meta { margin:-1px 0 7px; }
  .hero-copy h1 { max-width:100%; overflow-wrap:anywhere; }
  .timeline-gallery.images-3 { grid-template-columns:minmax(0,1.24fr) minmax(0,.76fr); grid-template-rows:repeat(2,minmax(0,1fr)); height:192px; background:transparent; }
  .timeline-gallery.images-4 { height:188px; }
  /* 手机端保留竖图完整画面；电脑端继续使用原有紧凑时间线卡片比例。 */
  .timeline-gallery.images-1 {
    height: auto;
    background: transparent;
  }
  .timeline-gallery.images-1 > a { display: block; }
  .timeline-gallery.images-1 img {
    height: auto;
    object-fit: contain;
  }
  .timeline-more { margin-left:78px; text-align:left; }
  .timeline-day-toggle { font-size:11px; padding-top:9px; }
}

/* 时间线图片预览：桌面端等高自然比例图库，移动端按图片数量单独编排。 */
@media (min-width:721px) {
  .timeline-gallery,
  .timeline-gallery.images-1,
  .timeline-gallery.images-2,
  .timeline-gallery.images-3,
  .timeline-gallery.images-4 {
    --timeline-gallery-height: 156px;
    display: flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    max-width: 100%;
    height: var(--timeline-gallery-height);
    margin-top: 12px;
    overflow: visible;
    border-radius: 0;
    background: transparent;
  }
  .timeline-gallery > a {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 100%;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border-radius: 11px;
    background: transparent;
  }
  .timeline-gallery img {
    display: block;
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    border-radius: inherit;
  }
  /* 四图横排时为卡片内边距和三个 gap 预留空间，仍按原图比例等高显示。 */
  .timeline-gallery.images-4 img {
    max-width: calc((100cqw - 54px) / 4);
  }
  /* 双图保持略高于四图的视觉权重，但不因正文列宽而无限放大。 */
  .timeline-gallery.images-2 {
    --timeline-gallery-height: 128px;
  }
  .timeline-gallery.images-2 img {
    max-width: 196px;
  }

  /*
   * 宽桌面保留等高自然比例横向图库；当 sidebar 仍在、但卡片自身变窄时，
   * 改由卡片容器查询切换为稳定网格，避免固有图片宽度把正文列撑开。
   */
  @container timeline-card (max-width: 560px) {
    .timeline-gallery.images-2,
    .timeline-gallery.images-3,
    .timeline-gallery.images-4 {
      /* 桌面窗口化时按图片自身比例紧凑换行，不再用固定比例的大 Grid 槽位。 */
      display: flex;
      flex-wrap: wrap;
      align-items: flex-start;
      width: fit-content;
      max-width: 100%;
      height: auto;
      overflow: visible;
    }
    .timeline-gallery.images-2 {
      width: fit-content;
    }
    .timeline-gallery.images-3 > a:first-child {
      grid-row: auto;
    }
    .timeline-gallery.images-3 > a:nth-child(3) {
      grid-column: auto;
      width: auto;
      justify-self: auto;
    }
    .timeline-gallery > a {
      flex: 0 0 auto;
      width: auto;
      min-width: 0;
      max-width: 196px;
      height: auto;
      overflow: visible;
      background: transparent;
    }
    /* 双图优先保持同一行；只有卡片真的无法容纳时才继续缩小。 */
    .timeline-gallery.images-2 > a,
    .timeline-gallery.images-2 img {
      max-width: min(196px, calc((100cqw - 54px) / 2));
    }
    .timeline-gallery img {
      width: auto;
      max-width: 196px;
      height: auto;
      max-height: 128px;
      /* 保留原图比例；容器不再形成有色占位框。 */
      object-fit: contain;
      background: transparent;
    }
  }
}

@media (max-width:720px) {
  .timeline-gallery,
  .timeline-gallery.images-1,
  .timeline-gallery.images-2,
  .timeline-gallery.images-3,
  .timeline-gallery.images-4 {
    display: grid;
    gap: 5px;
    width: 100%;
    max-width: 100%;
    margin-top: 10px;
    overflow: hidden;
    border-radius: 0;
    background: transparent;
  }
  .timeline-gallery > a {
    display: block;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border-radius: 11px;
    background: transparent;
  }
  .timeline-gallery img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
  }

  /* 单图完整展示，不再放进带底色的固定横向占位框。 */
  .timeline-gallery.images-1 {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    text-align: center;
    line-height: 0;
    overflow: visible;
  }
  .timeline-gallery.images-1 > a {
    display: inline-block;
    width: auto;
    height: auto;
    max-width: 100%;
    overflow: visible;
  }
  .timeline-gallery.images-1 img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 240px;
    object-fit: contain;
    background: transparent;
  }

  /* 双图左右并排；拼图允许有限 cover 裁切，但不会改变图片比例。 */
  .timeline-gallery.images-2 {
    height: 152px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: minmax(0, 1fr);
  }

  /* 三图：左侧主图，右侧两张上下排列。 */
  .timeline-gallery.images-3 {
    height: 184px;
    grid-template-columns: minmax(0, 1.28fr) minmax(0, .72fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }
  .timeline-gallery.images-3 > a:first-child {
    grid-row: 1 / span 2;
  }

  /* 四图：稳定的 2 × 2 图片组。 */
  .timeline-gallery.images-4 {
    height: 176px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }
}

/* Fixed smoke-glass material for the Hero statistic panel, independent of site theme. */
.home-v1-stats {
  --hero-stats-bg: rgba(27, 34, 43, .34);
  --hero-stats-border: rgba(237, 241, 246, .20);
  --hero-stats-divider: rgba(237, 241, 246, .10);
  --hero-stats-text: rgba(255, 255, 255, .78);
  border-color: var(--hero-stats-border);
  background: var(--hero-stats-bg);
  box-shadow: 0 12px 28px rgba(4, 9, 15, .14), inset 0 1px 0 rgba(255, 255, 255, .10);
  backdrop-filter: blur(10px) saturate(92%) brightness(.98);
  -webkit-backdrop-filter: blur(10px) saturate(92%) brightness(.98);
}
.home-v1-stats strong { font-size:26px; }
.home-v1-stats > div { border-color: var(--hero-stats-divider); }
.home-v1-stats p,
.home-v1-stats em { color: var(--hero-stats-text); }
@media (max-width:720px) {
  /* Keep the shared smoke glass readable while letting the mountain silhouette reach the panel. */
  .home-v1-hero-shade {
    -webkit-mask-image: radial-gradient(ellipse 48% 28% at 76% 80%, rgba(0, 0, 0, .42) 0%, rgba(0, 0, 0, .58) 52%, #000 100%);
    mask-image: radial-gradient(ellipse 48% 28% at 76% 80%, rgba(0, 0, 0, .42) 0%, rgba(0, 0, 0, .58) 52%, #000 100%);
  }
  .home-v1-stats { transform: translateY(-16px); }
  .home-v1-stats strong { font-size:20px; }
}
@media (max-width:720px) {
  /* Compact the actual mobile Hero grid, rather than only its minimum height. */
  .home-v1-hero { min-height:356px; }
  .home-v1-hero-grid { padding:10px 0 6px; }
  .home-v1-slogan { margin-top:0; }
  .home-v1-intro { margin-top:4px; }
  .home-v1-hero-actions,
  .home-v1-stats { margin-top:6px; }
  .home-v1-content > .home-v1-section:first-child { margin-bottom:6px; }
}

/* Mobile-only, non-interactive scroll direction hint for the existing activity strip. */
.home-v1-activity-scroll-hint { display:none; }
.home-v1-section-heading.with-link > a { font-size:0; }
.home-v1-section-heading.with-link > a::after {
  content:"查看更多 ↗";
  font-size:13px;
  font-weight:700;
}
@media (max-width:720px) {
  .home-v1-activity-heading { position:relative; }
  .home-v1-activity-heading > p { display:none; }
  .home-v1-activity-heading { margin-bottom:10px; }
  .home-v1-content { padding-top:10px; }
  .home-v1-content > .home-v1-section:first-child { margin-bottom:0; }
  .home-v1-content > .home-v1-section:nth-child(2) { margin-top:-6px; }
  .home-v1-content > .home-v1-section:nth-child(2) .home-v1-section-heading { margin-bottom:10px; }
  .home-v1-content > .home-v1-section:nth-child(2) .home-v1-section-heading > div > p { margin-bottom:10px; }
  .home-v1-activity-scroll-hint {
    position:absolute;
    right:0;
    bottom:0;
    display:grid;
    width:18px;
    height:18px;
    place-items:center;
    color:var(--muted);
    opacity:.78;
    pointer-events:none;
  }
  .home-v1-activity-scroll-hint svg {
    display:none;
    width:18px;
    height:18px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.6;
    stroke-linecap:round;
    stroke-linejoin:round;
    transition:opacity .18s ease;
  }
  .home-v1-activity-scroll-hint[data-scroll-direction="right"] .is-right,
  .home-v1-activity-scroll-hint[data-scroll-direction="both"] .is-both,
  .home-v1-activity-scroll-hint[data-scroll-direction="left"] .is-left { display:block; }
}
@media (prefers-reduced-motion:reduce) {
  .home-v1-activity-scroll-hint svg { transition:none; }
}
@media (max-width:360px) {
  .home-v1-hero { min-height:356px; }
}

/* Homepage card colour system: last in the cascade so legacy homepage rules stay contained. */
.home-v1-activity-row article,
.home-v1-ability-grid article {
  --home-card-tint: #367de1;
  border-color: color-mix(in srgb, var(--home-card-tint) 18%, var(--line));
  background-color: color-mix(in srgb, var(--home-card-tint) 5%, var(--card));
  background-image: linear-gradient(112deg, color-mix(in srgb, var(--home-card-tint) 9%, var(--card)) 0%, color-mix(in srgb, var(--home-card-tint) 5%, var(--card)) 100%);
  box-shadow: 0 5px 18px rgba(28, 33, 39, .032);
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.home-v1-activity-row article:has(> .blue) { --home-card-tint: #2371d5; }
.home-v1-activity-row article:has(> .green) { --home-card-tint: #169660; }
.home-v1-activity-row article:has(> .orange) { --home-card-tint: #dc7e1e; }
.home-v1-activity-row article:has(> .purple) { --home-card-tint: #7856c7; }
.home-v1-ability-grid .ability-travel { --home-card-tint: #367de1; }
.home-v1-ability-grid .ability-photo { --home-card-tint: #cc861a; }
.home-v1-ability-grid .ability-dive { --home-card-tint: #22a7c9; }
.home-v1-ability-grid .ability-tech { --home-card-tint: #249e65; }
.home-v1-ability-grid .ability-play { --home-card-tint: #dc4d59; }
.home-v1-ability-grid .ability-learn { --home-card-tint: #3378d4; }
.home-v1-activity-row article:hover,
.home-v1-ability-grid article:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--home-card-tint) 38%, var(--line));
  box-shadow: 0 9px 22px color-mix(in srgb, var(--home-card-tint) 10%, transparent);
}
.home-v1-activity-row article:focus-within,
.home-v1-ability-grid article:focus-within {
  border-color: color-mix(in srgb, var(--home-card-tint) 44%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--home-card-tint) 11%, transparent);
}
.home-v1-activity-row article > span,
.home-v1-ability-grid article > span {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--home-card-tint) 17%, transparent);
  border-radius: 13px;
  background: color-mix(in srgb, var(--home-card-tint) 12%, transparent);
}
.home-v1-activity-row article > span { margin: 0 auto 12px; }
.home-v1-activity-row article > span svg { width: 28px; height: 28px; }
.home-v1-ability-grid article > span { margin: 0 12px 34px 0; }
.home-v1-ability-grid article > span svg { width: 28px; height: 28px; }
html[data-theme="dark"] .home-v1-activity-row article,
html[data-theme="dark"] .home-v1-ability-grid article {
  border-color: color-mix(in srgb, var(--home-card-tint) 25%, rgba(198, 211, 230, .16));
  background-color: color-mix(in srgb, var(--home-card-tint) 4%, #202a37);
  background-image: linear-gradient(112deg, color-mix(in srgb, var(--home-card-tint) 8%, #202a37) 0%, color-mix(in srgb, var(--home-card-tint) 4%, #202a37) 100%);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .16);
}
html[data-theme="dark"] .home-v1-activity-row article:hover,
html[data-theme="dark"] .home-v1-ability-grid article:hover {
  border-color: color-mix(in srgb, var(--home-card-tint) 48%, rgba(198, 211, 230, .2));
  box-shadow: 0 9px 22px rgba(0, 0, 0, .22);
}
html[data-theme="dark"] .home-v1-activity-row article > span,
html[data-theme="dark"] .home-v1-ability-grid article > span {
  border-color: color-mix(in srgb, var(--home-card-tint) 28%, transparent);
  background: color-mix(in srgb, var(--home-card-tint) 18%, transparent);
}
@media (max-width:720px) {
  .home-v1-activity-row article > span,
  .home-v1-ability-grid article > span { width: 40px; height: 40px; border-radius: 12px; }
  .home-v1-activity-row article > span svg,
  .home-v1-ability-grid article > span svg { width: 25px; height: 25px; }
  .home-v1-ability-grid article > span { margin-bottom: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .home-v1-activity-row article,
  .home-v1-ability-grid article { transition: none; }
  .home-v1-activity-row article:hover,
  .home-v1-ability-grid article:hover { transform: none; }
}

@media (max-width:720px) {
  .home-v1-ability-grid article > span { float:none; margin:0 auto 8px; }
  .home-v1-ability-grid article > h3 { text-align:center; }

  /* Keep the terminal activity card clear of the viewport edge: half its 9px gap. */
  .home-v1-activity-row { margin-right:-9.5px; }
}
