/* 糖豆vlog · 可维护的响应式样式表 */
:root {
  --bg: #faf7f2;
  --paper: #fffefa;
  --ink: #292722;
  --soft: #716b64;
  --line: #eae1d7;
  --accent: #b95f47;
  --accent2: #e8b28c;
  --green: #607b65;
  --radius: 20px;
  --shadow: 0 18px 60px rgba(61,43,31,.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.8 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;
}

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

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

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

button,input {
  font: inherit;
}

.wrap {
  width: min(1180px,calc(100% - 40px));
  margin-inline: auto;
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 16px;
  top: 12px;
  z-index: 100;
  background: white;
  padding: 10px;
}

.header {
  background: rgba(255,254,250,.95);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 15;
  backdrop-filter: blur(12px);
}

.bar {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 25px;
  font-weight: 850;
  letter-spacing: -1px;
}

.brand-mark {
  width: 38px;
  height: 38px;
  background: var(--accent);
  color: white;
  border-radius: 12px 12px 12px 4px;
  display: grid;
  place-items: center;
  font-size: 20px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 25px;
  font-size: 14px;
  font-weight: 600;
}

.nav a {
  white-space: nowrap;
}

.nav .active {
  color: var(--accent);
}

.eyebrow {
  font-size: 12px;
  letter-spacing: .18em;
  color: var(--accent);
  font-weight: 800;
  text-transform: uppercase;
}

.hero {
  padding: 72px 0 45px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.03fr;
  align-items: center;
  gap: 58px;
}

.hero h1 {
  font: 800 clamp(34px,4.6vw,62px)/1.24 Georgia,"Songti SC","SimSun",serif;
  letter-spacing: -.05em;
  margin: 18px 0 20px;
}

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

.lead {
  font-size: 16px;
  color: var(--soft);
  line-height: 2.05;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  padding: 11px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 99px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid var(--line);
}

.btn.primary {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.hero-media {
  position: relative;
}

.hero-media>img {
  aspect-ratio: 1.17;
  object-fit: cover;
  border-radius: 180px 180px 20px 20px;
  box-shadow: var(--shadow);
}

.float-note {
  position: absolute;
  bottom: 22px;
  left: -25px;
  padding: 17px 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
}

.float-note small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--soft);
}

.section {
  padding: 65px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 27px;
}

.section h2,.page-title {
  font: 800 clamp(27px,3vw,38px)/1.35 Georgia,"Songti SC","SimSun",serif;
  margin: 6px 0 0;
}

.muted {
  color: var(--soft);
}

.tiny {
  font-size: 13px;
}

.pill-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 16px;
}

.pill {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 25px;
  border-radius: 18px;
  transition: .2s;
}

.pill:hover,.story-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.pill b {
  font-size: 20px;
}

.pill .emoji {
  font-size: 27px;
  display: block;
  margin-bottom: 11px;
}

.pill p {
  font-size: 13px;
  color: var(--soft);
  margin: 9px 0 0;
}

.stories {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 25px;
}

.story-card {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  transition: .2s;
}

.story-card img {
  width: 100%;
  aspect-ratio: 1.43;
  object-fit: cover;
}

.story-copy {
  padding: 22px;
}

.story-copy h3 {
  font-size: 19px;
  line-height: 1.48;
  margin: 8px 0;
}

.story-copy p {
  color: var(--soft);
  font-size: 14px;
  margin: 0;
}

.tag {
  font-size: 12px;
  color: var(--accent);
  font-weight: 800;
}

.story-meta {
  font-size: 12px;
  color: #938b82;
  margin-top: 14px;
}

.feature {
  background: #efe7db;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 55px;
  align-items: center;
}

.feature img {
  width: 100%;
  aspect-ratio: 1.35;
  object-fit: cover;
  border-radius: 18px;
}

.feature p {
  color: #60584f;
}

.link {
  font-weight: 800;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 4px;
}

.quote {
  text-align: center;
  max-width: 790px;
  margin: auto;
}

.quote p {
  font: 600 clamp(23px,3vw,35px)/1.75 Georgia,"Songti SC","SimSun",serif;
}

.footer {
  background: #292a26;
  color: #f1ece4;
  padding: 50px 0 22px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 30px;
}

.footer p,.footer a {
  color: #c7c3bb;
  font-size: 13px;
}

.footer nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.copyright {
  border-top: 1px solid #4e5049;
  padding-top: 18px;
  margin-top: 35px;
  color: #aaa99f;
  font-size: 12px;
}

.breadcrumbs {
  font-size: 13px;
  color: #81796d;
  margin: 31px 0;
}

.page-intro {
  padding: 30px 0 38px;
  border-bottom: 1px solid var(--line);
}

.page-intro p {
  max-width: 740px;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0,760px) 1fr;
  gap: 53px;
  align-items: start;
}

.article-title {
  font: 800 clamp(30px,4vw,44px)/1.4 Georgia,"Songti SC","SimSun",serif;
  margin: 16px 0;
}

.article-cover {
  width: 100%;
  aspect-ratio: 1.65;
  object-fit: cover;
  border-radius: 18px;
  margin: 25px 0;
}

.prose {
  font-size: 16px;
  line-height: 2.25;
  color: #46413d;
}

.prose h2 {
  font-size: 25px;
  line-height: 1.55;
  color: var(--ink);
  margin: 36px 0 10px;
}

.prose h3 {
  font-size: 19px;
  color: var(--ink);
  margin-top: 22px;
}

.prose p {
  margin: 12px 0 18px;
}

.aside {
  position: sticky;
  top: 120px;
  background: #fffefa;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
}

.aside h2 {
  font-size: 19px;
  margin: 0 0 14px;
}

.aside a {
  display: block;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.aside a:last-child {
  border: 0;
}

.related {
  margin-top: 55px;
}

.count {
  display: inline-flex;
  margin: 12px 0;
  border-radius: 50px;
  padding: 3px 11px;
  background: #f0e1d7;
  color: #a34d3d;
  font-size: 12px;
}

.search-form {
  display: flex;
  gap: 8px;
}

.search-form input {
  width: 100%;
  min-width: 0;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
}

.search-form button {
  padding: 10px 16px;
  border: none;
  border-radius: 9px;
  background: var(--ink);
  color: white;
  cursor: pointer;
}

.empty {
  padding: 50px 0;
  color: var(--soft);
}

.faq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.faq article {
  padding: 20px 25px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: white;
}

.faq h3 {
  margin: 0 0 5px;
}

.faq p {
  margin: 0;
  color: var(--soft);
  font-size: 14px;
}

@media (max-width:900px) {
  .hero-grid,.feature-grid,.article-layout {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .hero-media {
    max-width: 680px;
  }

  .aside {
    position: static;
  }

  .nav {
    gap: 12px;
    flex-wrap: wrap;
  }

  .bar {
    padding: 12px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .float-note {
    left: 10px;
  }

  .pill-grid {
    grid-template-columns: 1fr 1fr;
  }

}

@media (max-width:640px) {
  .wrap {
    width: min(100% - 28px,1180px);
  }

  .nav {
    font-size: 12px;
    gap: 13px;
  }

  .hero {
    padding-top: 32px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .section {
    padding: 42px 0;
  }

  .stories {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }

  .story-copy {
    padding: 13px;
  }

  .story-copy h3 {
    font-size: 15px;
  }

  .story-copy p {
    font-size: 12px;
  }

  .pill-grid {
    gap: 10px;
  }

  .pill {
    padding: 15px;
  }

  .pill b {
    font-size: 16px;
  }

  .footer-grid,.faq {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
    gap: 5px;
  }

  .hero-media>img {
    border-radius: 100px 100px 16px 16px;
  }

  .article-cover {
    aspect-ratio: 1.25;
  }

}

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

  .story-copy h3 {
    font-size: 18px;
  }

}


/* ============================================================
   Layout refinement · 2026-11-20
   Clear reading rhythm, robust navigation and mobile grid rules.
   ============================================================ */

:root {
  --content-width: 1160px;
  --card-border: #e8dfd5;
}

html { scroll-padding-top: 105px; }
body { overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
.wrap { width: min(var(--content-width), calc(100% - 48px)); }
.header { position: relative; backdrop-filter: none; }
.bar { min-height: 84px; }
.nav { flex-wrap: wrap; justify-content: flex-end; row-gap: 8px; }
.nav a { border-radius: 8px; padding: 6px 3px; }
.nav a:focus-visible, a:focus-visible { outline: 3px solid #b95f47; outline-offset: 4px; }
.hero { padding: 64px 0 42px; }
.hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.06fr); gap: clamp(30px, 4vw, 58px); }
.hero h1 { font-size: clamp(34px, 4vw, 52px); letter-spacing: -.035em; }
.hero h1 em { display: block; }
.hero-media > img { width: 100%; height: auto; aspect-ratio: 7 / 5; border-radius: 24px; }
.float-note { left: 18px; bottom: 18px; }
.lead { line-height: 1.95; }
.section { padding: 56px 0; }
.section h2 { line-height: 1.42; }
.stories { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.story-card { min-width: 0; }
.story-card img { aspect-ratio: 4 / 3; }
.story-copy h3 { overflow-wrap: anywhere; }
.guide-section { padding-top: 12px; }
.guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.guide-grid article { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 25px 28px; }
.guide-grid h3 { font-size: 19px; margin: 0 0 10px; }
.guide-grid p { color: var(--soft); margin: 0; font-size: 14px; }
.guide-grid a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.article-layout { grid-template-columns: minmax(0, 760px) minmax(220px, 1fr); gap: 40px; }
.article-layout > * { min-width: 0; }
.prose { overflow-wrap: anywhere; }
.footer-grid > * { min-width: 0; }

@media (max-width: 950px) {
  .hero-grid, .feature-grid, .article-layout { grid-template-columns: minmax(0, 1fr); }
  .hero-media { max-width: 100%; }
  .bar { flex-direction: column; align-items: flex-start; padding: 14px 0; }
  .nav { justify-content: flex-start; }
  .aside { position: static; }
  .pill-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  .wrap { width: calc(100% - 32px); }
  .bar { gap: 10px; }
  .brand { font-size: 22px; }
  .nav { display: flex; width: 100%; gap: 4px 14px; font-size: 13px; }
  .nav a { padding: 5px 0; }
  .hero { padding: 32px 0 20px; }
  .hero h1 { font-size: clamp(29px, 7.3vw, 39px); }
  .hero-media > img { aspect-ratio: 5 / 4; border-radius: 16px; }
  .float-note { position: static; margin-top: 10px; box-shadow: none; }
  .hero-actions { gap: 8px; }
  .btn { padding: 10px 15px; }
  .section { padding: 37px 0; }
  .section-head { display: block; }
  .section-head > .muted { display: block; margin-top: 7px; }
  .stories { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .story-copy { padding: 14px; }
  .story-copy h3 { font-size: 16px; line-height: 1.55; }
  .story-copy p { font-size: 13px; }
  .pill-grid { gap: 10px; }
  .pill { padding: 15px; }
  .guide-grid, .faq, .footer-grid { grid-template-columns: 1fr; }
  .guide-grid article { padding: 22px; }
  .article-cover { aspect-ratio: 4 / 3; }
  .article-title { font-size: 29px; }
  .prose { font-size: 15px; line-height: 2; }
}

@media (max-width: 420px) {
  .stories { grid-template-columns: 1fr; }
  .story-card img { aspect-ratio: 16 / 10; }
  .story-copy h3 { font-size: 18px; }
  .pill-grid { grid-template-columns: 1fr 1fr; }
  .pill b { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
