:root {
  color-scheme: light;
  --bg: #f8f1df;
  --paper: #fffdf6;
  --ink: #26333a;
  --muted: #637173;
  --line: #e8d5ad;
  --line-strong: #d8a75c;
  --primary: #d98522;
  --primary-strong: #9a5819;
  --primary-soft: #fff1d3;
  --sea: #2f7680;
  --sea-strong: #1f5d67;
  --sea-soft: #e1f0ef;
  --mist: rgba(255, 253, 246, 0.78);
  --gold: #ffc75a;
  --sun: rgba(255, 199, 90, 0.34);
  --shadow: 0 24px 76px rgba(61, 87, 91, 0.16);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 48% 0%, rgba(255, 199, 90, 0.32), transparent 31rem),
    radial-gradient(circle at 88% 18%, rgba(47, 118, 128, 0.14), transparent 25rem),
    radial-gradient(circle at 12% 28%, rgba(255, 255, 255, 0.72), transparent 18rem),
    linear-gradient(180deg, #eef4f0 0%, #fff1cf 31%, #f8f1df 68%, #edf3ed 100%);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0 0.9rem;
  background: linear-gradient(180deg, rgba(248, 241, 223, 0.94), rgba(248, 241, 223, 0.68));
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  flex: 0 0 2.75rem;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffc75a, #d98522 55%, #2f7680);
  color: #fffdf6;
  font-size: 0.92rem;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(222, 116, 31, 0.26);
}

.brand-text {
  max-width: 13rem;
  color: #2b3a3f;
  font-size: 1.16rem;
  font-weight: 800;
  line-height: 1.28;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid rgba(232, 213, 173, 0.82);
  border-radius: 999px;
  background: rgba(255, 253, 246, 0.72);
  box-shadow: 0 10px 30px rgba(47, 118, 128, 0.08);
}

.nav-link {
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.68rem 0.95rem;
  text-decoration: none;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link.is-active {
  background: var(--primary-soft);
  color: var(--primary-strong);
  outline: none;
}

.nav-link.is-admin {
  border: 1px solid rgba(217, 133, 34, 0.42);
  background: rgba(255, 248, 229, 0.86);
  color: var(--primary-strong);
}

main,
.site-footer {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 34rem;
  display: grid;
  align-items: center;
  overflow: hidden;
  margin: 2rem 0 3.4rem;
  border: 1px solid rgba(232, 213, 173, 0.72);
  border-radius: 2rem;
  background: #f4d89a;
  box-shadow: var(--shadow);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(255, 253, 246, 0.97) 0%, rgba(255, 248, 229, 0.86) 32%, rgba(255, 248, 229, 0.18) 64%),
    radial-gradient(circle at 46% 44%, rgba(255, 199, 90, 0.13), transparent 18rem),
    linear-gradient(180deg, rgba(217, 133, 34, 0.02), rgba(31, 93, 103, 0.16));
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: min(45rem, 100%);
  padding: 4.5rem;
}

.eyebrow {
  margin: 0 0 0.95rem;
  color: var(--primary-strong);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 1.25rem;
  color: #26333a;
  font-size: 4.4rem;
  font-weight: 800;
  line-height: 1.08;
}

.hero-text {
  max-width: 39rem;
  margin-bottom: 2rem;
  color: #5b6a69;
  font-size: 1.22rem;
  font-weight: 600;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  border-radius: 999px;
  font-weight: 800;
  padding: 0 1.15rem;
  text-decoration: none;
}

.primary-action {
  background: var(--primary);
  color: #fffdf6;
  box-shadow: 0 12px 28px rgba(217, 133, 34, 0.22);
}

.secondary-action {
  border: 1px solid var(--line-strong);
  background: rgba(255, 253, 246, 0.72);
  color: var(--primary-strong);
}

.identity-band,
.workflow-band {
  margin-bottom: 3rem;
  padding: 2.4rem 0;
  border-top: 1px solid rgba(232, 213, 173, 0.85);
  border-bottom: 1px solid rgba(232, 213, 173, 0.85);
}

.identity-band {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.identity-band h2,
.section-heading h2 {
  margin-bottom: 0;
  font-size: 2.45rem;
  line-height: 1.18;
}

.identity-band > p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.9;
}

.theme-list {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.theme-list li {
  border-left: 4px solid var(--primary);
  border-radius: var(--radius);
  background: rgba(255, 253, 246, 0.72);
  color: var(--muted);
  font-weight: 600;
  line-height: 1.75;
  padding: 1rem 1.1rem;
  box-shadow: 0 16px 36px rgba(61, 87, 91, 0.08);
}

.theme-list span {
  display: block;
  color: var(--ink);
  font-weight: 800;
}

.control-panel {
  display: grid;
  grid-template-columns: minmax(16rem, 0.8fr) minmax(22rem, 1.2fr);
  align-items: end;
  gap: 1.5rem;
  margin-bottom: 1.7rem;
}

.section-heading .eyebrow {
  margin-bottom: 0.55rem;
}

.filters {
  display: grid;
  grid-template-columns: minmax(12rem, 1fr) minmax(9rem, 0.72fr) minmax(9rem, 0.72fr);
  gap: 0.75rem;
}

.search-field,
.select-field {
  display: grid;
  gap: 0.42rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

input,
select {
  min-height: 3.15rem;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 246, 0.86);
  color: var(--ink);
  font-weight: 650;
  padding: 0 1rem;
  outline: none;
  box-shadow: 0 10px 28px rgba(47, 118, 128, 0.06);
}

input:focus,
select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(217, 133, 34, 0.13);
}

.timeline-shell {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  padding-bottom: 4rem;
}

.date-card {
  justify-self: end;
  display: grid;
  grid-auto-flow: column;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.2rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 246, 0.8);
  color: var(--muted);
  box-shadow: 0 14px 30px rgba(61, 87, 91, 0.08);
}

.date-card strong {
  color: var(--primary-strong);
  font-size: 1.5rem;
  line-height: 1;
}

.timeline {
  position: relative;
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0 0 0 3.35rem;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 1rem;
  bottom: 1.5rem;
  left: 1.35rem;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold), var(--sea));
}

.entry {
  position: relative;
  display: grid;
  gap: 0.95rem;
  padding: 1.65rem;
  border: 1px solid rgba(232, 213, 173, 0.86);
  border-radius: var(--radius);
  background: rgba(255, 253, 246, 0.82);
  box-shadow: 0 22px 50px rgba(61, 87, 91, 0.1);
  backdrop-filter: blur(8px);
}

.entry::before {
  content: attr(data-index);
  position: absolute;
  left: -2.85rem;
  top: 1.45rem;
  display: grid;
  width: 1.75rem;
  height: 1.75rem;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--gold), var(--primary));
  color: #5f390a;
  font-weight: 800;
  box-shadow: 0 0 0 0.35rem var(--bg);
}

.entry-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  color: var(--sea-strong);
  font-size: 0.94rem;
  font-weight: 800;
}

.status {
  border-radius: 999px;
  background: var(--primary-soft);
  padding: 0.18rem 0.58rem;
}

.entry h3 {
  margin: 0;
  color: #26333a;
  font-size: 1.65rem;
  line-height: 1.4;
}

.entry p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.85;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.52rem;
  margin-top: 0.1rem;
}

.tag {
  border-radius: 999px;
  background: var(--sea-soft);
  color: var(--sea-strong);
  font-size: 0.9rem;
  font-weight: 750;
  padding: 0.42rem 0.72rem;
}

.read-more {
  justify-self: start;
  min-height: 2.55rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff8e9;
  color: var(--primary-strong);
  cursor: pointer;
  font-weight: 800;
  padding: 0 0.95rem;
}

.read-more:hover,
.read-more:focus-visible {
  border-color: var(--primary);
  outline: none;
}

.entry-detail {
  display: grid;
  gap: 1.15rem;
  border-top: 1px solid var(--line);
  padding-top: 0.95rem;
}

.entry-detail[hidden] {
  display: none;
}

.entry-event {
  display: grid;
  gap: 0.48rem;
}

.entry-event + .entry-event {
  padding-top: 1rem;
  border-top: 1px dashed rgba(217, 190, 135, 0.62);
}

.entry-event h4,
.event-section h5 {
  margin: 0;
  color: #2d3a38;
  font-size: 1.02rem;
  line-height: 1.55;
}

.event-section {
  display: grid;
  gap: 0.42rem;
}

.entry-event-body {
  display: grid;
  gap: 0.78rem;
}

.entry-event-body p {
  margin: 0;
}

.empty-state {
  margin-left: 3.35rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(255, 253, 246, 0.74);
  color: var(--muted);
  font-weight: 700;
  padding: 1.5rem;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
  margin-top: 1.4rem;
}

.workflow-step {
  border: 1px solid rgba(232, 213, 173, 0.86);
  border-radius: var(--radius);
  background: rgba(255, 253, 246, 0.76);
  padding: 1.15rem;
  box-shadow: 0 18px 42px rgba(61, 87, 91, 0.08);
}

.workflow-step span {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--gold);
  color: #5f390a;
  font-weight: 800;
}

.workflow-step h3 {
  margin-bottom: 0.65rem;
  color: #26333a;
  font-size: 1.08rem;
}

.workflow-step p {
  margin-bottom: 0;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.75;
}

.workflow-action {
  display: inline-flex;
  align-items: center;
  min-height: 2.6rem;
  margin-top: 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff8e9;
  color: var(--primary-strong);
  font-weight: 800;
  padding: 0 0.9rem;
  text-decoration: none;
}

.workflow-action:hover,
.workflow-action:focus-visible {
  border-color: var(--primary);
  outline: none;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-weight: 700;
  line-height: 1.8;
  padding: 2.2rem 0 3rem;
}

.site-footer p {
  margin-bottom: 0.1rem;
}

@media (max-width: 920px) {
  .site-header {
    display: grid;
    align-items: stretch;
  }

  .nav {
    justify-content: space-between;
    overflow-x: auto;
  }

  .hero {
    min-height: 31rem;
  }

  .hero-copy {
    padding: 2.4rem;
  }

  h1 {
    font-size: 3.25rem;
  }

  .identity-band,
  .control-panel,
  .filters,
  .theme-list,
  .workflow {
    grid-template-columns: 1fr;
  }

  .date-card {
    justify-self: start;
  }
}

@media (max-width: 560px) {
  .site-header,
  main,
  .site-footer {
    width: min(100% - 1.1rem, 1180px);
  }

  .brand-text {
    max-width: 12rem;
  }

  .nav-link {
    padding: 0.62rem 0.78rem;
  }

  .hero {
    min-height: 32rem;
    border-radius: 1.3rem;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(255, 253, 246, 0.95) 0%, rgba(255, 248, 229, 0.76) 54%, rgba(225, 240, 239, 0.34) 100%),
      rgba(31, 93, 103, 0.08);
  }

  .hero-copy {
    align-self: start;
    padding: 1.4rem;
  }

  h1 {
    font-size: 2.55rem;
  }

  .hero-text,
  .identity-band > p,
  .entry p {
    font-size: 1rem;
  }

  .identity-band h2,
  .section-heading h2 {
    font-size: 2rem;
  }

  .timeline {
    padding-left: 2.55rem;
  }

  .timeline::before {
    left: 0.95rem;
  }

  .entry::before {
    left: -2.48rem;
  }

  .empty-state {
    margin-left: 2.55rem;
  }
}

/* Photos belong to the original note, without inferred event attribution. */
.entry-photos { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0; }
.entry-photos a { display: block; max-width: 100%; }
.entry-photos img { display: block; width: auto; max-width: 100%; height: auto; max-height: 360px; border-radius: 12px; }
.entry-photos img[hidden] { display: none; }
.photo-error { color: #765c40; font-size: 14px; }

/* One topic per card; original recording time on the descending timeline. */
.timeline { padding-left: 7rem; }
.timeline::before { left: 5.3rem; width: 2px; }
.entry::before { content: ""; left: -2.05rem; top: 1.8rem; width: .6rem; height: .6rem; border: 2px solid var(--sea-strong); background: var(--bg); box-shadow: 0 0 0 4px var(--bg); }
.entry-time { position: absolute; top: 1.5rem; left: -7rem; width: 4.65rem; text-align: right; font-size: .95rem; font-variant-numeric: tabular-nums; color: var(--sea-strong); line-height: 1.4; }
.topic-content { display: grid; gap: .85rem; min-width: 0; overflow-wrap: anywhere; }
.topic-content p { margin: 0; font-weight: 400; }
@media (max-width: 640px) {
  .timeline { padding-left: 4.6rem; }
  .timeline::before { left: 3.65rem; }
  .entry { padding: 1.1rem; }
  .entry::before { left: -1.3rem; top: 1.45rem; }
  .entry-time { left: -4.6rem; top: 1.25rem; width: 3.1rem; font-size: .78rem; }
  .entry h3 { font-size: 1.25rem; }
}

/* Fold long text only; preserve photos and topic tags below it. */
.topic-content { font-size: 1.05rem; line-height: 1.85; }
.topic-content.is-collapsed { max-height: var(--preview-height); overflow: hidden; mask-image: linear-gradient(to bottom, black 70%, transparent 100%); }
.text-toggle { justify-self: start; padding: .25rem 0; border: 0; background: transparent; color: var(--sea-strong); font: inherit; font-weight: 700; cursor: pointer; }
.text-toggle:hover { color: #a56017; }
.text-toggle:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; border-radius: 3px; }
.text-toggle[hidden] { display: none; }
.entry .tags { gap: .7rem; }
.entry .tag { border: 0; background: transparent; padding: 0; color: #7b7463; font-weight: 400; font-size: .9rem; }

/* Larger card body text, preserving the previous line height. */
.entry .topic-content p { font-size: 1.125rem; line-height: 1.9425rem; }
@media (max-width: 560px) {
  .entry .topic-content p { font-size: 1.0625rem; line-height: 1.85rem; }
}
