/* ==========================================================================
   我的生活日常 · 徐苗
   清透杂志感 / cream paper, serif, generous white space
   ========================================================================== */

:root {
  --paper: #faf7f1;
  --paper-2: #f3eee5;
  --paper-3: #ece5d9;
  --ink: #1d1a17;
  --ink-soft: #4a433d;
  --muted: #8d8378;
  --line: #e2d9cc;
  --line-strong: #cfc3b2;
  --accent: #b4552f;
  --accent-ink: #8f3f20;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong",
    "SimSun", Georgia, "Times New Roman", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI",
    system-ui, sans-serif;

  --max: 1280px;
  --pad: clamp(20px, 5vw, 64px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.85;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 极淡纸纹 */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9998;
  pointer-events: none;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

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

::selection {
  background: var(--accent);
  color: #fff;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ---------- 顶部导航 ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 241, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.brand {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  white-space: nowrap;
}

.brand small {
  display: block;
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.3em;
  color: var(--muted);
  text-indent: 0.3em;
  margin-top: -2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.14em;
}

.nav a {
  position: relative;
  padding: 6px 0;
  color: var(--ink-soft);
  transition: color 0.3s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.35s cubic-bezier(0.2, 0.7, 0.3, 1);
}

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

.nav a:hover::after,
.nav a[aria-current="page"]::after {
  width: 100%;
}

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

.head-date {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  white-space: nowrap;
}

@media (max-width: 860px) {
  .head-date {
    display: none;
  }
  .site-head .wrap {
    height: 60px;
  }
  .brand {
    font-size: 16px;
  }
  .nav {
    gap: 16px;
    font-size: 12px;
    letter-spacing: 0.08em;
  }
}

@media (max-width: 520px) {
  .site-head .wrap {
    gap: 12px;
  }
  .nav {
    gap: 13px;
    font-size: 11.5px;
    letter-spacing: 0.04em;
  }
  .display {
    font-size: clamp(46px, 13vw, 60px);
  }
}

/* ---------- 首页 Hero ---------- */

.hero {
  padding-top: clamp(56px, 9vw, 118px);
  padding-bottom: clamp(30px, 4vw, 54px);
}

.kicker {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 clamp(22px, 3vw, 34px);
  display: flex;
  align-items: center;
  gap: 14px;
}

.kicker::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(52px, 11.5vw, 156px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  margin: 0;
}

.display em {
  font-style: normal;
  color: var(--accent);
}

.hero-foot {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(24px, 5vw, 72px);
  align-items: end;
  margin-top: clamp(26px, 4vw, 46px);
  padding-top: clamp(20px, 3vw, 30px);
  border-top: 1px solid var(--line);
}

.lede {
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.85;
  color: var(--ink-soft);
  margin: 0;
  max-width: 34em;
}

.lede b {
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 1px;
}

.hero-sign {
  font-family: var(--sans);
  font-size: 12px;
  line-height: 2;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-align: right;
}

.hero-sign strong {
  display: block;
  font-family: var(--serif);
  font-size: 26px;
  letter-spacing: 0.16em;
  color: var(--ink);
  font-weight: 500;
  margin-bottom: 4px;
}

@media (max-width: 760px) {
  .hero-foot {
    grid-template-columns: 1fr;
    gap: 22px;
  }
  .hero-sign {
    text-align: left;
    display: flex;
    align-items: baseline;
    gap: 16px;
  }
  .hero-sign strong {
    font-size: 20px;
    margin: 0;
  }
}

/* ---------- 大图 ---------- */

.plate {
  position: relative;
  overflow: hidden;
  background: var(--paper-3);
}

.plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.6s ease;
}

.hero-plate {
  height: clamp(320px, 62vh, 620px);
}

.plate figcaption {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 18px clamp(20px, 3vw, 34px);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: rgba(255, 255, 255, 0.92);
  background: linear-gradient(to top, rgba(20, 16, 12, 0.5), transparent);
}

/* ---------- 区块标题 ---------- */

.section {
  padding-top: clamp(56px, 8vw, 108px);
  padding-bottom: clamp(10px, 2vw, 24px);
}

.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--ink);
  margin-bottom: clamp(26px, 4vw, 44px);
}

.sec-title {
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin: 0;
}

.sec-title span {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--muted);
  margin-left: 12px;
  text-transform: uppercase;
}

.sec-link {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--muted);
  white-space: nowrap;
  transition: color 0.3s;
}

.sec-link:hover {
  color: var(--accent);
}

/* ---------- 精选三栏 ---------- */

.picks {
  display: grid;
  grid-template-columns: 1.42fr 1fr;
  gap: clamp(20px, 3vw, 40px);
}

.picks-side {
  display: grid;
  gap: clamp(20px, 3vw, 34px);
  align-content: start;
}

.card {
  display: block;
}

.card .plate {
  aspect-ratio: 4 / 3;
}

.picks .card:first-child .plate {
  aspect-ratio: 16 / 11;
}

.card:hover .plate img {
  transform: scale(1.045);
  filter: brightness(1.04);
}

.card-body {
  padding-top: 16px;
}

.meta {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.meta .dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--line-strong);
}

.card-title {
  font-size: clamp(19px, 1.9vw, 25px);
  line-height: 1.5;
  font-weight: 500;
  margin: 0 0 8px;
  letter-spacing: 0.01em;
  transition: color 0.3s;
  text-wrap: balance;
}

.picks .card:first-child .card-title {
  font-size: clamp(24px, 2.8vw, 38px);
  line-height: 1.4;
}

.card:hover .card-title {
  color: var(--accent-ink);
}

.card-excerpt {
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--muted);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 900px) {
  .picks {
    grid-template-columns: 1fr;
  }
  .picks-side {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .picks-side {
    grid-template-columns: 1fr;
  }
}

/* ---------- 文章列表 ---------- */

.list {
  border-top: 1px solid var(--line);
}

.row {
  display: grid;
  grid-template-columns: 104px 1fr 128px 44px;
  gap: 20px;
  align-items: center;
  padding: 22px 10px;
  border-bottom: 1px solid var(--line);
  transition: background 0.4s ease, padding 0.4s ease;
}

.row:hover {
  background: rgba(180, 85, 47, 0.045);
  padding-left: 20px;
  padding-right: 20px;
}

.row-date {
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.row-title {
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 500;
  line-height: 1.6;
}

.row:hover .row-title {
  color: var(--accent-ink);
}

.row-cat {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-align: right;
}

.row-arrow {
  font-family: var(--sans);
  color: var(--line-strong);
  text-align: right;
  transition: transform 0.4s ease, color 0.3s;
}

.row:hover .row-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

@media (max-width: 720px) {
  .row {
    grid-template-columns: 1fr 30px;
    grid-template-areas: "date arrow" "title title";
    gap: 6px 12px;
    padding: 18px 4px;
  }
  .row-date {
    grid-area: date;
  }
  .row-title {
    grid-area: title;
  }
  .row-cat {
    display: none;
  }
  .row-arrow {
    grid-area: arrow;
  }
}

/* ---------- 引言块 ---------- */

.quote {
  margin: clamp(56px, 8vw, 104px) 0 0;
  padding: clamp(44px, 6vw, 76px) clamp(28px, 5vw, 76px);
  background: var(--paper-2);
  border-left: 2px solid var(--accent);
}

.quote p {
  font-size: clamp(21px, 2.7vw, 36px);
  line-height: 1.75;
  letter-spacing: 0.01em;
  margin: 0;
  max-width: 26em;
  color: var(--ink);
}

.quote cite {
  display: block;
  margin-top: 22px;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.24em;
  font-style: normal;
  color: var(--muted);
}

/* ---------- 页脚 ---------- */

.site-foot {
  margin-top: clamp(64px, 9vw, 120px);
  border-top: 1px solid var(--ink);
  padding-top: 26px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 48px;
}

.foot-brand {
  font-size: 15px;
  letter-spacing: 0.24em;
  margin: 0 0 10px;
}

.foot-note {
  font-size: 13px;
  line-height: 1.9;
  color: var(--muted);
  margin: 0;
  max-width: 26em;
}

.foot-col h4 {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.26em;
  color: var(--muted);
  font-weight: 400;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.foot-col a {
  display: block;
  font-size: 13.5px;
  color: var(--ink-soft);
  padding: 4px 0;
  transition: color 0.3s;
}

.foot-col a:hover {
  color: var(--accent);
}

.colophon {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0 34px;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.colophon a {
  color: var(--muted);
  transition: color 0.3s ease;
}

.colophon a:hover {
  color: var(--accent);
}

@media (max-width: 720px) {
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
  .foot-grid > div:first-child {
    grid-column: 1 / -1;
  }
  .colophon {
    flex-direction: column;
    gap: 4px;
  }
}

/* ---------- 页面头部（内页） ---------- */

.page-head {
  padding-top: clamp(48px, 7vw, 96px);
  padding-bottom: clamp(24px, 3vw, 40px);
  border-bottom: 1px solid var(--ink);
}

.page-head h1 {
  font-size: clamp(38px, 7vw, 82px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0;
}

.page-head .sub {
  font-size: 15px;
  color: var(--muted);
  margin: 18px 0 0;
  max-width: 36em;
  line-height: 1.9;
}

/* ---------- 文章页 ---------- */

.article-head {
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(26px, 3vw, 40px);
  max-width: 760px;
}

.article-head h1 {
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.34;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin: 14px 0 20px;
}

.article-head .dek {
  font-size: clamp(15px, 1.5vw, 18px);
  line-height: 1.9;
  color: var(--ink-soft);
  margin: 0;
  padding-left: 18px;
  border-left: 2px solid var(--accent);
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--accent);
  z-index: 200;
  transition: width 0.1s linear;
}

.article-body {
  max-width: 720px;
  padding-top: clamp(28px, 4vw, 44px);
  font-size: clamp(16.5px, 1.35vw, 18.5px);
  line-height: 2.05;
  color: #2a2521;
}

.article-body p {
  margin: 0 0 1.5em;
}

.article-body > p:first-of-type::first-letter {
  float: left;
  font-size: 3.5em;
  line-height: 0.92;
  padding: 0.06em 0.1em 0 0;
  color: var(--accent);
  font-weight: 500;
}

/* 说明型长文不要首字下沉 */
.article-body.plain > p:first-of-type::first-letter {
  float: none;
  font-size: inherit;
  line-height: inherit;
  padding: 0;
  color: inherit;
  font-weight: inherit;
}

.article-body h2 {
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 500;
  letter-spacing: 0.01em;
  margin: 2.4em 0 0.9em;
  padding-top: 0.6em;
  border-top: 1px solid var(--line);
}

.article-body blockquote {
  margin: 2em 0;
  padding: 4px 0 4px 24px;
  border-left: 2px solid var(--accent);
  color: var(--ink-soft);
  font-size: 1.02em;
}

.article-body blockquote p:last-child {
  margin-bottom: 0;
}

.article-body figure {
  margin: 2.4em 0;
}

@media (min-width: 1080px) {
  .article-body figure {
    margin-right: -168px;
  }
}

.article-body figure .plate {
  aspect-ratio: 3 / 2;
}

.article-body figcaption {
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--muted);
  padding-top: 10px;
  text-align: center;
}

.article-end {
  max-width: 720px;
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.06em;
}

.article-end a {
  color: var(--ink-soft);
  transition: color 0.3s;
}

.article-end a:hover {
  color: var(--accent);
}

.article-end .lbl {
  display: block;
  font-size: 10px;
  letter-spacing: 0.24em;
  color: var(--muted);
  margin-bottom: 4px;
}

/* ---------- 关于页 ---------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 5vw, 76px);
  padding-top: clamp(32px, 5vw, 56px);
}

.about-text p {
  font-size: 16.5px;
  line-height: 2;
  margin: 0 0 1.4em;
  color: #2a2521;
}

.facts {
  border-top: 1px solid var(--ink);
}

.fact {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.8;
}

.fact dt {
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--muted);
  padding-top: 4px;
}

.fact dd {
  margin: 0;
  color: var(--ink-soft);
}

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

/* ---------- 入场动画 ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.3, 1),
    transform 0.9s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------- 球事页 ---------- */

.hoops-lead {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(30px, 5vw, 60px) 0;
}

.big-num {
  font-size: clamp(64px, 11vw, 140px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--accent);
  font-weight: 500;
  margin: 0;
}

.tally {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-top: clamp(30px, 4vw, 48px);
}

.tally div {
  background: var(--paper);
  padding: 20px 18px;
}

.tally .n {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.2;
  display: block;
}

.tally .l {
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: var(--muted);
  display: block;
  margin-top: 6px;
}

@media (max-width: 760px) {
  .hoops-lead {
    grid-template-columns: 1fr;
  }
}
