/* ==========================================================
   句号的作品集 — 成长档案馆
   设计取向：少年感 + 克制。不做机构站的严肃，也不做花哨动画。
   ========================================================== */

:root {
  --ink: #2c2622;
  --ink-2: #5f564e;
  --ink-3: #918679;
  --paper: #fdfaf6;
  --paper-2: #f6f0e7;
  --line: #e6dccd;
  --tea: #7a6242;
  --tea-l: #a68a63;
  --leaf: #4a6b52;
  --sun: #c98a3c;
  --card: #ffffff;
  --radius: 14px;
  --shadow: 0 2px 14px rgba(90, 70, 45, .07);
  --shadow-h: 0 8px 26px rgba(90, 70, 45, .13);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1000px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }

a { color: var(--tea); text-decoration: none; }
a:hover { color: var(--sun); }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .88em;
  background: var(--paper-2);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(253, 250, 246, .93);
  backdrop-filter: saturate(1.6) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; gap: 20px;
}
.brand { font-size: 15px; font-weight: 600; color: var(--ink); }
.brand:hover { color: var(--tea); }
.topbar nav { display: flex; gap: 22px; }
.topbar nav a {
  font-size: 14px; color: var(--ink-2);
  padding: 4px 0; border-bottom: 1.5px solid transparent;
  transition: color .15s, border-color .15s;
}
.topbar nav a:hover { color: var(--tea); border-bottom-color: var(--tea-l); }

@media (max-width: 720px) {
  .topbar nav { display: none; }
}

/* ---------- 首屏 ---------- */
.hero {
  padding: 64px 0 0;
  background:
    radial-gradient(1000px 380px at 12% -8%, #f3ead9 0%, transparent 62%),
    radial-gradient(760px 320px at 92% 4%, #eef2ec 0%, transparent 58%);
}
.hero-in { display: flex; gap: 40px; align-items: flex-start; }
.avatar {
  width: 132px; height: 132px; border-radius: 50%;
  object-fit: cover; flex-shrink: 0;
  border: 4px solid #fff;
  box-shadow: 0 6px 24px rgba(90, 70, 45, .18);
}
.hero-text { flex: 1; padding-top: 8px; }
.hero-text h1 { font-size: 40px; letter-spacing: -.02em; }
.hero-line { font-size: 17px; color: var(--tea); margin-top: 10px; font-weight: 500; }
.hero-intro { font-size: 15.5px; color: var(--ink-2); margin-top: 16px; max-width: 640px; }

.stats { display: flex; flex-wrap: wrap; gap: 34px; margin-top: 28px; }
.stat b {
  display: block; font-size: 27px; font-weight: 600;
  color: var(--tea); line-height: 1.2; letter-spacing: -.02em;
}
.stat span { font-size: 12.5px; color: var(--ink-3); }

.note {
  margin-top: 48px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--sun);
  border-radius: var(--radius);
  padding: 22px 26px;
  box-shadow: var(--shadow);
}
.note strong { display: block; font-size: 15px; margin-bottom: 8px; color: var(--ink); }
.note p { font-size: 14.5px; color: var(--ink-2); }

@media (max-width: 640px) {
  .hero { padding-top: 40px; }
  .hero-in { flex-direction: column; align-items: center; text-align: center; gap: 22px; }
  .hero-text h1 { font-size: 32px; }
  .hero-intro { font-size: 15px; }
  .stats { justify-content: center; gap: 26px; }
  .stat b { font-size: 23px; }
}

/* ---------- 区块 ---------- */
.sec { padding: 76px 0; }
.sec-alt { background: var(--paper-2); }
.sec h2 {
  font-size: 27px; position: relative; padding-left: 15px;
}
.sec h2::before {
  content: ""; position: absolute; left: 0; top: .28em;
  width: 5px; height: .84em; border-radius: 3px;
  background: linear-gradient(180deg, var(--tea-l), var(--tea));
}
.sec-sub { font-size: 14.5px; color: var(--ink-3); margin: 10px 0 32px 20px; }

/* ---------- 关于 ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 250px; gap: 40px; align-items: start; }
.about-main p { font-size: 15.5px; color: var(--ink-2); margin-bottom: 14px; }
.about-side {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 8px 20px; box-shadow: var(--shadow);
}
.kv {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 11px 0; border-bottom: 1px dashed var(--line); gap: 14px;
}
.kv:last-child { border-bottom: 0; }
.kv span { font-size: 13px; color: var(--ink-3); flex-shrink: 0; }
.kv b { font-size: 14px; font-weight: 500; color: var(--ink); text-align: right; }

@media (max-width: 780px) {
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- 时间线 ---------- */
.tl { list-style: none; position: relative; padding-left: 0; }
.tl::before {
  content: ""; position: absolute; left: 89px; top: 12px; bottom: 12px;
  width: 2px; background: linear-gradient(180deg, var(--tea-l), var(--line));
}
.tl li { position: relative; padding: 0 0 30px 122px; }
.tl li:last-child { padding-bottom: 0; }
.tl-date {
  position: absolute; left: 0; top: 3px;
  font-size: 13px; font-weight: 600; color: var(--tea);
  font-variant-numeric: tabular-nums; width: 74px; text-align: right;
}
.tl-dot {
  position: absolute; left: 83px; top: 7px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 3px solid var(--tea-l);
  box-shadow: 0 0 0 4px var(--paper-2);
}
.tl li.kind-突破 .tl-dot,
.tl li.kind-里程碑 .tl-dot { border-color: var(--sun); background: var(--sun); }
.tl-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 15px 20px; box-shadow: var(--shadow);
}
.tl-card h3 { font-size: 16px; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.tl-card p { font-size: 14px; color: var(--ink-2); margin-top: 6px; }
.badge {
  font-size: 11px; font-weight: 500; padding: 2px 9px;
  border-radius: 20px; background: var(--paper-2); color: var(--ink-3);
  border: 1px solid var(--line); letter-spacing: .02em;
}
.badge-起点 { background: #eef2ec; color: var(--leaf); border-color: #cfddd1; }
.badge-突破 { background: #fbf0e2; color: #96602a; border-color: #eddcbf; }
.badge-里程碑 { background: #f6e9e3; color: #9c5233; border-color: #ebd5c9; }
.badge-作品 { background: #eaf0f5; color: #40647f; border-color: #cfdeea; }

@media (max-width: 640px) {
  .tl::before { left: 5px; }
  .tl li { padding-left: 34px; }
  .tl-date {
    position: static; width: auto; text-align: left; display: block; margin-bottom: 4px;
  }
  .tl-dot { left: 0; top: 7px; }
  .tl li { padding-top: 26px; }
  .tl li:first-child { padding-top: 0; }
  .tl li:first-child .tl-dot { top: 8px; }
}

/* ---------- 作品墙 ---------- */
.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(288px, 1fr));
  gap: 22px;
}
.card {
  display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  color: inherit;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-h);
  border-color: var(--tea-l);
  color: inherit;
}
.card-cover {
  aspect-ratio: 16 / 10; background: linear-gradient(135deg, #f0e7d8, #e6ede6);
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; font-weight: 600; color: rgba(122, 98, 66, .28);
  border-bottom: 1px solid var(--line); overflow: hidden;
}
.card-cover img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card-date {
  font-size: 11.5px; color: var(--ink-3);
  font-variant-numeric: tabular-nums; letter-spacing: .03em;
}
.card-body h3 { font-size: 17.5px; margin: 5px 0 4px; }
.card-sub { font-size: 13.5px; color: var(--ink-3); }
.card-desc {
  font-size: 13.5px; color: var(--ink-2); margin: 11px 0 0;
  flex: 1; line-height: 1.68;
}
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 15px; }
.tag {
  font-size: 11.5px; color: var(--ink-2);
  background: var(--paper-2); border: 1px solid var(--line);
  padding: 2px 9px; border-radius: 5px;
}
.tag-be {
  background: #fbf0e2; color: #96602a; border-color: #eddcbf;
}
.card-cta {
  margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--line);
  font-size: 13.5px; color: var(--tea); font-weight: 500;
  display: flex; align-items: center; justify-content: space-between;
}
.card-cta .go { transition: transform .2s; }
.card:hover .card-cta .go { transform: translateX(3px); }

.empty {
  padding: 44px; text-align: center; color: var(--ink-3);
  background: #fff; border: 1px dashed var(--line); border-radius: var(--radius);
  font-size: 14px;
}

/* ---------- 收获 ---------- */
.learn { list-style: none; counter-reset: n; display: grid; gap: 15px; }
.learn li {
  counter-increment: n;
  position: relative; padding: 17px 22px 17px 62px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  font-size: 15px; color: var(--ink-2);
}
.learn li::before {
  content: counter(n, decimal-leading-zero);
  position: absolute; left: 21px; top: 17px;
  font-size: 13px; font-weight: 600; color: var(--tea-l);
  font-variant-numeric: tabular-nums;
}

/* ---------- 采访与作文 ---------- */
.essay {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 32px 38px; box-shadow: var(--shadow);
  border-top: 4px solid var(--leaf);
}
.essay h3 { font-size: 21px; margin-bottom: 20px; }
.essay #essayBody p { font-size: 15.5px; color: var(--ink-2); margin-bottom: 15px; }
.essay-note {
  margin-top: 22px; padding-top: 16px; border-top: 1px dashed var(--line);
  font-size: 13px; color: var(--ink-3);
}
.vhead { font-size: 20px; margin: 52px 0 0; }
.video-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.vlink {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line);
  border-radius: 22px; padding: 9px 20px;
  font-size: 14px; color: var(--ink-2); box-shadow: var(--shadow);
  transition: border-color .2s, color .2s;
}
a.vlink:hover { border-color: var(--tea-l); color: var(--tea); }
.vlink-off { color: var(--ink-3); cursor: default; }
.vlink-off:hover { border-color: var(--line); color: var(--ink-3); }
.vlink .ic { font-size: 12px; color: var(--tea); }
.vlink-off .ic { color: var(--ink-3); }
.vsize {
  font-size: 11px; color: var(--ink-3);
  background: var(--paper-2); border: 1px solid var(--line);
  padding: 1px 7px; border-radius: 10px;
  font-variant-numeric: tabular-nums;
}
.video-note {
  margin-top: 14px; font-size: 13px; color: var(--ink-3);
  padding: 12px 16px; background: var(--paper-2);
  border: 1px dashed var(--line); border-radius: 10px;
}

/* ---------- 页脚 ---------- */
footer {
  border-top: 1px solid var(--line);
  background: var(--paper-2);
  padding: 46px 0; margin-top: 20px;
  text-align: center;
}
.foot-line { font-size: 14px; color: var(--ink-2); font-weight: 500; }
.foot-links {
  display: flex; justify-content: center; gap: 24px;
  margin: 14px 0 18px; flex-wrap: wrap;
}
.foot-links a { font-size: 13.5px; }
.foot-note { font-size: 12.5px; color: var(--ink-3); line-height: 1.9; }
