/* 这个文件负责：定义 ReChew 博客索引与文章详情页的生产样式。 */
:root {
  --ink: #121615;
  --paper: #f7f8f6;
  --surface: #fff;
  --soft: #eef3f1;
  --muted: #69726f;
  --line: #dbe2df;
  --green: #08a867;
  --green-deep: #05734a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}
a { color: inherit; }
.site-header {
  width: min(1280px, calc(100% - 64px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.45rem; font-weight: 800; letter-spacing: -.06em; text-decoration: none; }
.brand-icon { width: 36px; height: 36px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav a, .back-link { color: #343b38; font-size: .82rem; font-weight: 700; text-decoration: none; }
.site-nav a:hover, .back-link:hover { color: var(--green-deep); }
.btn-appstore {
  display: inline-flex;
  align-items: center;
  padding: 0;
  background: transparent;
  line-height: 0;
  transition: transform .16s ease;
}
.btn-appstore:hover { transform: translateY(-1px); }
.appstore-badge { display: block; width: auto; height: 40px; max-width: 100%; }
.section { width: min(1168px, calc(100% - 64px)); margin: 0 auto; }
.featured { display: grid; grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr); gap: 78px; align-items: center; padding: 104px 0 102px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-label, .eyebrow { margin: 0 0 18px; color: var(--green-deep); font-size: .69rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.featured h1 { max-width: 560px; margin: 0; font-family: Georgia, serif; font-size: clamp(2.7rem, 4.25vw, 4.7rem); font-weight: 400; letter-spacing: -.056em; line-height: .98; }
.featured-meta, .article-meta, .byline { color: #737d79; font-size: .78rem; }
.featured-copy { max-width: 480px; margin: 22px 0 28px; color: var(--muted); font-size: 1rem; line-height: 1.7; }
.text-link { color: var(--green-deep); font-size: .83rem; font-weight: 800; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.featured-art { width: 100%; display: block; aspect-ratio: 1.38 / 1; object-fit: cover; }
.articles { padding: 70px 0 90px; }
.articles-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; margin-bottom: 15px; }
.articles-heading h2 { margin: 0; font-size: 1.55rem; letter-spacing: -.05em; }
.articles-heading p { margin: 0; color: var(--muted); font-size: .82rem; }
.article-list { border-top: 1px solid var(--line); }
.article-row { min-height: 126px; display: grid; grid-template-columns: 56px minmax(0, 1fr) 190px; gap: 20px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.article-row:hover { color: var(--green-deep); }
.article-number { color: var(--green); font-weight: 800; }
.article-row-copy { display: grid; gap: 7px; }
.article-row-copy strong { max-width: 700px; font-family: Georgia, serif; font-size: clamp(1.52rem, 2.25vw, 2.25rem); font-weight: 400; letter-spacing: -.038em; line-height: 1.05; }
.article-row-copy span { color: var(--muted); font-size: .8rem; line-height: 1.55; }
.article-meta { text-align: right; }
.article-page { width: min(1060px, calc(100% - 48px)); margin: 0 auto; padding: 52px 0 110px; }
.article-header { max-width: 820px; margin: 38px auto 48px; text-align: center; }
.article-header h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(3rem, 6.15vw, 5.6rem); font-weight: 400; letter-spacing: -.06em; line-height: .98; }
.article-dek { max-width: 650px; margin: 27px auto 18px; color: var(--muted); font-size: 1.05rem; line-height: 1.65; }
.article-hero { min-height: 430px; margin: 0 0 58px; overflow: hidden; display: grid; place-items: center; background: var(--soft); }
.article-hero img { height: 390px; max-width: 82%; object-fit: contain; filter: drop-shadow(0 22px 24px rgba(15, 29, 23, .18)); transform: translateY(32px); }
.article-body { width: min(100%, 690px); margin: 0 auto; font-family: Georgia, serif; font-size: 1.19rem; line-height: 1.72; }
.article-body p { margin: 0 0 1.35em; }
.article-body h2 { margin: 2.25em 0 .68em; font-size: 2rem; letter-spacing: -.035em; line-height: 1.1; }
.article-body h3 { margin: 1.85em 0 .48em; font-family: Inter, sans-serif; font-size: 1rem; line-height: 1.3; }
.article-body ul, .article-body ol { margin: 0 0 1.35em; padding-left: 1.25em; }
.article-body li { margin: .36em 0; }
.article-body blockquote { margin: 1.5em 0; padding-left: 1.1em; border-left: 2px solid var(--green); color: #466056; font-style: italic; }
.article-body strong { font-weight: 400; color: var(--green-deep); }
.site-footer { width: min(1168px, calc(100% - 64px)); padding: 32px 0 48px; margin: 0 auto; border-top: 1px solid var(--line); color: var(--muted); font-size: .76rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 15px; }
.site-footer a { font-weight: 700; text-decoration: none; }
.site-footer p { margin: 0; }

@media (max-width: 850px) {
  .site-header, .section, .site-footer { width: min(100% - 40px, 1280px); }
  .featured { gap: 42px; padding: 80px 0; }
  .article-row { grid-template-columns: 45px minmax(0, 1fr); }
  .article-meta { grid-column: 2; text-align: left; }
}
@media (max-width: 640px) {
  .site-header { min-height: 67px; }
  .appstore-badge { height: 36px; }
  .site-nav { display: none; }
  .featured { grid-template-columns: 1fr; gap: 32px; padding: 56px 0 68px; }
  .featured-art { order: -1; }
  .articles-heading { display: block; }
  .article-row { min-height: 0; padding: 25px 0; gap: 13px; }
  .article-header h1 { font-size: 3.15rem; }
  .article-hero { min-height: 310px; margin-bottom: 42px; }
  .article-hero img { height: 295px; }
  .article-body { font-size: 1.08rem; }
}
