/* 糖豆视频：自主设计的杂志式网格，统一响应式断点 */

:root {
  --ink: #29231e;
  --muted: #71675f;
  --paper: #fffcf6;
  --cream: #f7f0e6;
  --orange: #e46d42;
  --green: #4f695a;
  --line: #e8ddd0;
  --radius: 18px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;
  line-height: 1.7;
}

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

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

button,input {
  font: inherit;
}

.container {
  width: min(var(--max),calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fffcf6ed;
  backdrop-filter: blur(15px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: 82px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 20px;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
}

.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 2px;
  margin-top: 8px;
  color: var(--muted);
}

.brand-mark {
  background: var(--orange);
  color: white;
  width: 43px;
  height: 43px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 24px;
}

.nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 25px;
  margin-left: auto;
  font-weight: 650;
  font-size: 13px;
}

.nav a:hover,.read-link:hover {
  color: var(--orange);
}

.nav-cta {
  background: var(--ink);
  color: white;
  border-radius: 100px;
  padding: 10px 18px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--orange);
}

.menu-toggle,.mobile-nav {
  display: none;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 2px;
  color: var(--orange);
  font-weight: 800;
}

.dot {
  color: #b6aba0;
  padding: 0 5px;
}

.hero {
  padding: 76px 0 64px;
  background: radial-gradient(circle at 80% 16%,#f6d7b8 0,transparent 31%),linear-gradient(135deg,#fffaf1,#f9f0e6);
}

.hero-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0,.92fr) minmax(0,1.08fr);
  align-items: center;
  gap: 28px;
}

.hero h1 {
  font-size: clamp(40px,5.2vw,72px);
  line-height: 1.18;
  letter-spacing: -2px;
  margin: 17px 0 25px;
}

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

.hero p {
  font-size: 16px;
  color: var(--muted);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
  margin-top: 27px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 100px;
  padding: 13px 25px;
  font-size: 13px;
  font-weight: 750;
  background: var(--orange);
  color: white;
}

.btn.secondary {
  background: transparent;
  border: 1px solid #d6cbbd;
  color: var(--ink);
}

.hero-visual {
  min-width: 0;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  grid-template-rows: 205px 205px;
  gap: 14px;
  transform: rotate(1.3deg);
  padding: 12px;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-width: 0;
  border-radius: 18px;
  box-shadow: 0 18px 40px #49321d18;
}

.hero-visual img:first-child {
  grid-row: 1/3;
}

.hero-stamp {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 27px;
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.hero-stamp i {
  flex: none;
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
}

.ticker {
  background: var(--green);
  color: #fff;
  padding: 16px 0;
  font-size: 13px;
  letter-spacing: 1px;
}

.ticker-inner {
  display: flex;
  gap: 34px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.section {
  padding: 78px 0;
}

.section.soft {
  background: #f8f2e9;
}

.section-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 33px;
}

.section-top h2,.section-title {
  font-size: clamp(29px,3.2vw,43px);
  letter-spacing: -1.1px;
  line-height: 1.22;
  margin: 10px 0;
}

.section-top p {
  color: var(--muted);
  max-width: 570px;
  margin: 10px 0 0;
}

.text-link {
  color: var(--orange);
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(7,minmax(0,1fr));
  gap: 12px;
}

.category-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: 110px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 16px;
  font-weight: 750;
  font-size: 13px;
  gap: 12px;
  transition: .2s;
}

.category-pill span {
  font-size: 28px;
}

.category-pill:hover {
  border-color: var(--orange);
  transform: translateY(-4px);
}

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

.story-card {
  min-width: 0;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s,box-shadow .2s;
}

.story-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 28px #422f1b12;
}

.story-image {
  display: block;
  overflow: hidden;
  aspect-ratio: 1.35;
}

.story-image img {
  height: 100%;
  width: 100%;
  transition: transform .35s;
}

.story-card:hover img {
  transform: scale(1.045);
}

.story-copy {
  padding: 23px;
}

.story-copy .eyebrow {
  letter-spacing: 1px;
  font-size: 11px;
}

.story-copy h3 {
  font-size: 21px;
  line-height: 1.35;
  margin: 12px 0;
}

.story-copy p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.85;
  margin: 0 0 17px;
}

.read-link {
  font-size: 12px;
  font-weight: 850;
}

.feature-band {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 0;
  border-radius: 24px;
  overflow: hidden;
  background: #e5ecdf;
}

.feature-band img {
  width: 100%;
  height: 430px;
}

.feature-text {
  padding: 60px;
  display: flex;
  flex-direction: column;
  align-items: start;
  justify-content: center;
}

.feature-text h2 {
  font-size: clamp(30px,3vw,45px);
  line-height: 1.25;
  margin: 15px 0;
}

.feature-text p {
  color: #526657;
}

.feature-text .btn {
  background: var(--green);
  margin-top: 17px;
}

.list-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 14px;
}

.mini-story {
  display: grid;
  grid-template-columns: 116px 1fr;
  align-items: center;
  gap: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 12px;
}

.mini-story img {
  width: 116px;
  height: 99px;
  border-radius: 10px;
}

.mini-story h3 {
  font-size: 16px;
  margin: 5px 0;
}

.mini-story p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

.editor-note {
  background: var(--ink);
  color: #fff;
  border-radius: 22px;
  padding: 44px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.editor-note p {
  color: #d5cfc7;
  max-width: 740px;
}

.editor-note h2 {
  font-size: 30px;
  margin: 10px 0;
}

.page-head {
  padding: 65px 0 45px;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.page-head h1 {
  font-size: clamp(36px,5vw,56px);
  line-height: 1.2;
  margin: 10px 0 16px;
}

.page-head p {
  color: var(--muted);
  max-width: 710px;
}

.breadcrumbs {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 20px;
}

.breadcrumbs a:hover {
  color: var(--orange);
}

.filter-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 30px;
}

.filter-links a {
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: white;
  font-size: 12px;
}

.filter-links a.current,.filter-links a:hover {
  background: var(--ink);
  color: white;
}

.article-wrap {
  display: grid;
  grid-template-columns: minmax(0,1fr) 285px;
  gap: 65px;
  align-items: start;
  padding: 55px 0 80px;
}

.article-lead {
  font-size: 20px;
  line-height: 1.9;
  color: #50463d;
}

.article-cover {
  border-radius: 18px;
  width: 100%;
  aspect-ratio: 16/9;
  margin: 24px 0 38px;
}

.article-body h2 {
  font-size: 27px;
  margin: 37px 0 15px;
}

.article-body h3 {
  font-size: 20px;
  margin: 28px 0 10px;
}

.article-body p {
  font-size: 16px;
  color: #5a514a;
  line-height: 2.05;
}

.article-body blockquote {
  border-left: 4px solid var(--orange);
  padding: 12px 24px;
  margin: 32px 0;
  background: var(--cream);
  font-weight: 650;
}

.article-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}

.sidebar {
  position: sticky;
  top: 110px;
  background: var(--cream);
  padding: 25px;
  border-radius: 18px;
}

.sidebar h2 {
  font-size: 19px;
}

.sidebar a {
  display: block;
  font-size: 13px;
  padding: 11px 0;
  border-bottom: 1px solid #e3d7c8;
}

.sidebar a:hover {
  color: var(--orange);
}

.related {
  border-top: 1px solid var(--line);
  padding: 55px 0 80px;
}

.about-copy {
  max-width: 780px;
}

.about-copy p {
  line-height: 2;
  color: var(--muted);
  font-size: 17px;
}

.site-footer {
  background: #282720;
  color: #fef5eb;
  padding: 60px 0 20px;
}

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

.footer-grid>div {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 11px;
}

.footer-grid p {
  max-width: 350px;
  color: #b9b9ad;
  font-size: 13px;
}

.footer-grid a:not(.footer-logo) {
  color: #b9b9ad;
  font-size: 13px;
}

.footer-logo {
  font-size: 24px;
  font-weight: 900;
}

.footer-logo span {
  color: #eeb383;
}

.footer-grid strong {
  font-size: 14px;
  margin-bottom: 10px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #4a4840;
  margin-top: 35px;
  padding-top: 19px;
  font-size: 12px;
  color: #aaa99d;
  gap: 15px;
}

@media(max-width:1080px) {
  .nav {
    gap: 12px;
  }
  .nav a {
    font-size: 12px;
  }
  .category-grid {
    grid-template-columns: repeat(4,minmax(0,1fr));
  }
}

@media(max-width:800px) {
  .header-inner {
    height: 72px;
  }
  .nav,.nav-cta {
    display: none;
  }
  .menu-toggle {
    display: block;
    margin-left: auto;
    border: 1px solid var(--line);
    background: white;
    border-radius: 9px;
    font-size: 21px;
    width: 42px;
    height: 40px;
  }
  .mobile-nav:not([hidden]) {
    display: flex;
    flex-direction: column;
    padding: 10px 24px 20px;
    gap: 2px;
    border-top: 1px solid var(--line);
  }
  .mobile-nav a {
    padding: 10px;
  }
  .hero {
    padding: 42px 0;
  }
  .hero-grid,.feature-band {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    grid-template-rows: 180px 180px;
    transform: none;
    padding: 0;
  }
  .cards {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .article-wrap {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
  }
  .feature-band img {
    height: 310px;
  }
  .feature-text {
    padding: 35px;
  }
  .category-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
  .section {
    padding: 55px 0;
  }
}

@media(max-width:540px) {
  .container {
    width: calc(100% - 32px);
  }
  .hero h1 {
    font-size: 42px;
  }
  .hero-visual {
    grid-template-rows: 137px 137px;
    gap: 9px;
  }
  .ticker-inner {
    gap: 9px;
    font-size: 11px;
  }
  .category-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
  }
  .cards,.list-grid,.footer-grid {
    grid-template-columns: 1fr;
  }
  .section-top {
    align-items: start;
    flex-direction: column;
  }
  .mini-story {
    grid-template-columns: 100px 1fr;
  }
  .mini-story img {
    width: 100px;
    height: 90px;
  }
  .editor-note {
    display: block;
    padding: 28px;
  }
  .footer-bottom {
    flex-direction: column;
  }
  .article-wrap {
    gap: 20px;
    padding: 30px 0 50px;
  }
  .page-head {
    padding: 36px 0 30px;
  }
  .article-lead {
    font-size: 17px;
  }
}

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

