/* 蜜桃视频：可维护的响应式设计系统 | UTF-8 */

:root {
  --ink: #30242d;
  --muted: #776a72;
  --peach: #fa796e;
  --rose: #e9507c;
  --cream: #fffaf6;
  --line: #f1dfdc;
  --card: #fff;
  --shadow: 0 18px 55px rgba(120,57,65,.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: system-ui,-apple-system,"PingFang SC","Microsoft YaHei",sans-serif;
  line-height: 1.75;
}

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

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

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

button {
  font: inherit;
}

p {
  margin: .5rem 0 1rem;
}

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

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

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

.topbar {
  background: linear-gradient(100deg,#fff0e8,#ffe6e8);
  border-bottom: 1px solid #f9dadd;
}

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

.brand {
  font-weight: 900;
  font-size: 25px;
  letter-spacing: 1px;
}

.brand b {
  color: var(--rose);
}

.brand small {
  display: block;
  color: #9c7180;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
}

.navlinks {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
  font-size: 14px;
  font-weight: 650;
}

.navlinks a[aria-current=page] {
  color: var(--rose);
}

.search-link {
  padding: 9px 15px;
  border: 1px solid #efbfc0;
  border-radius: 99px;
  font-size: 13px;
}

.hero {
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  gap: 42px;
  align-items: center;
  padding: 65px 0 75px;
}

.eyebrow {
  color: var(--rose);
  font-weight: 850;
  letter-spacing: 3px;
  font-size: 12px;
}

.hero h1 {
  font-size: clamp(37px,5vw,66px);
  line-height: 1.17;
  letter-spacing: -1.7px;
  margin: 17px 0 20px;
}

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

.lead {
  font-size: 16px;
  color: #685b62;
  max-width: 580px;
}

.hero-photo {
  position: relative;
  padding: 24px 26px 12px 12px;
}

.hero-photo img {
  aspect-ratio: 1.13/1;
  object-fit: cover;
  border-radius: 150px 150px 26px 26px;
  box-shadow: var(--shadow);
}

.hero-photo:before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 38px 45px;
  background: #ffcfcb;
  border-radius: 200px 200px 24px 24px;
}

.photo-note {
  position: absolute;
  bottom: -4px;
  right: -8px;
  background: #fff;
  box-shadow: var(--shadow);
  padding: 14px 24px;
  border-radius: 14px;
  font-size: 13px;
}

.btn {
  display: inline-flex;
  background: var(--rose);
  color: white !important;
  padding: 12px 23px;
  border-radius: 50px;
  font-weight: 700;
  margin-top: 14px;
}

.btn:hover {
  background: #c83b68;
}

.subbtn {
  display: inline-flex;
  padding: 12px 20px;
  margin-left: 8px;
  font-weight: 700;
}

.mini-stats {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  margin-top: 32px;
  color: #806e74;
  font-size: 12px;
}

.mini-stats b {
  display: block;
  color: #2c2329;
  font-size: 22px;
  line-height: 1.1;
}

.section {
  padding: 39px 0 56px;
}

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

.section-head h2 {
  font-size: clamp(25px,3vw,36px);
  line-height: 1.3;
  margin: 5px 0;
}

.section-head p {
  color: var(--muted);
  margin: 0;
}

.section-more {
  font-weight: 700;
  font-size: 13px;
  color: var(--rose);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.chip {
  border: 1px solid #f0d5d3;
  background: #fff;
  border-radius: 60px;
  padding: 9px 17px;
  font-size: 13px;
}

.chip:hover,.chip.active {
  color: white;
  background: var(--rose);
  border-color: var(--rose);
}

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

.tile {
  background: #fff;
  border: 1px solid #f5e9e5;
  border-radius: 17px;
  overflow: hidden;
  transition: transform .2s,box-shadow .2s;
}

.tile:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.tile img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.tile-body {
  padding: 16px 17px 20px;
}

.tag {
  font-size: 11px;
  font-weight: 800;
  color: var(--rose);
  letter-spacing: 1px;
}

.tile h3 {
  font-size: 17px;
  line-height: 1.4;
  margin: 8px 0;
}

.tile p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.75;
  margin: 0;
}

.feature {
  background: linear-gradient(115deg,#ffe4de,#fff2e5);
  padding: 35px 0;
}

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

.feature-grid img {
  width: 100%;
  aspect-ratio: 1.75;
  object-fit: cover;
  border-radius: 22px;
}

.feature h2 {
  font-size: 35px;
  line-height: 1.3;
  margin: 8px 0 15px;
}

.feature p {
  color: #775f67;
}

.feature .btn {
  margin-top: 4px;
}

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

.category {
  padding: 25px;
  border-radius: 18px;
  border: 1px solid #f5dbdb;
  background: white;
}

.category:nth-child(2) {
  background: #fff0ec;
}

.category:nth-child(3) {
  background: #fff2e5;
}

.category:nth-child(4) {
  background: #fceaf0;
}

.category .number {
  font-weight: 900;
  color: #e87c86;
}

.category h3 {
  font-size: 19px;
  margin: 12px 0;
}

.category p {
  font-size: 13px;
  color: #766870;
}

.section.alt {
  background: #fff4f0;
}

.editorial {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
}

.editorial article {
  padding: 23px 26px;
  background: white;
  border-radius: 17px;
  border: 1px solid #f4e3df;
}

.editorial h3 {
  margin: 0 0 12px;
  font-size: 18px;
}

.editorial p {
  color: #776970;
  font-size: 14px;
}

.page-head {
  padding: 49px 0 22px;
}

.page-head h1 {
  font-size: clamp(29px,4vw,47px);
  line-height: 1.25;
  margin: 10px 0;
}

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

.breadcrumb {
  font-size: 12px;
  color: #876f79;
  margin-bottom: 14px;
}

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

.article {
  background: white;
  border: 1px solid #f3e6df;
  border-radius: 22px;
  padding: 34px;
}

.article-cover {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 15px;
}

.article h2 {
  font-size: 24px;
  line-height: 1.4;
  margin: 32px 0 12px;
  border-left: 4px solid var(--rose);
  padding-left: 12px;
}

.article h3 {
  font-size: 19px;
  margin: 22px 0 8px;
}

.article p {
  font-size: 15px;
  color: #51454e;
  line-height: 2.05;
}

.article .intro {
  font-size: 17px;
  color: #4c3944;
}

.info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 15px 0 27px;
}

.info-row span {
  background: #fff1ee;
  padding: 4px 11px;
  border-radius: 40px;
  color: #b6536f;
  font-size: 12px;
}

.sidebar {
  position: sticky;
  top: 18px;
}

.sidebox {
  background: white;
  padding: 22px;
  border: 1px solid #f4e5e1;
  border-radius: 16px;
  margin-bottom: 18px;
}

.sidebox h2 {
  font-size: 18px;
  margin: 0 0 12px;
}

.sidebox a {
  display: block;
  font-size: 14px;
  border-bottom: 1px solid #f6ece9;
  padding: 8px 0;
}

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

.related {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 18px;
  margin: 24px 0 50px;
}

.related img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 12px;
}

.related h3 {
  font-size: 15px;
}

.footer {
  background: #332932;
  color: #f9edf1;
  padding: 48px 0 23px;
  margin-top: 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 35px;
}

.footer p {
  font-size: 13px;
  color: #dbcbd3;
}

.footer a {
  font-size: 13px;
  display: inline-block;
  margin: 0 12px 8px 0;
}

.footer a:hover {
  color: #ffa8b9;
}

.copyright {
  border-top: 1px solid #584650;
  margin-top: 24px;
  padding-top: 18px;
  font-size: 12px;
  color: #c8b4c0;
}

.empty-note {
  background: #fff0e9;
  border-radius: 12px;
  padding: 18px;
  color: #775e68;
}

.pagination {
  display: flex;
  justify-content: center;
  margin: 27px 0;
  gap: 10px;
}

.pagination a {
  border: 1px solid #edd7d5;
  padding: 8px 15px;
  border-radius: 30px;
}

.pagination .on {
  background: #e9507c;
  color: white;
}

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

@media (max-width:980px) {
  .grid {
    grid-template-columns: repeat(3,1fr);
  }

  .categories {
    grid-template-columns: repeat(2,1fr);
  }

  .article-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
  }

  .hero {
    gap: 20px;
  }

}

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

  .nav {
    padding: 16px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 13px;
  }

  .navlinks {
    gap: 12px;
    font-size: 12px;
  }

  .search-link {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 38px 0;
  }

  .hero-photo {
    max-width: 450px;
    margin: auto;
  }

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

  .tile-body {
    padding: 12px;
  }

  .tile h3 {
    font-size: 15px;
  }

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

  .feature {
    padding: 25px 0;
  }

  .feature h2 {
    font-size: 27px;
  }

  .categories {
    grid-template-columns: 1fr 1fr;
    gap: 11px;
  }

  .category {
    padding: 16px;
  }

  .section {
    padding: 28px 0 35px;
  }

  .article {
    padding: 18px;
  }

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

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

  .subbtn {
    margin-left: 0;
  }

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

  .section-head {
    align-items: start;
  }

  .footer {
    margin-top: 10px;
  }

}

@media (prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }

  .tile {
    transition: none;
  }

}

/* 首页排版校正：稳定的网格、文字宽度和可读性 */
:where(h1, h2, h3, p) { overflow-wrap: break-word; }
:where(a, button):focus-visible { outline: 3px solid #b13264; outline-offset: 3px; }
.navlinks a { padding-block: 6px; }
.hero > div, .section-head > div, .tile, .feature-grid > div { min-width: 0; }
.hero .lead { line-height: 1.95; }
.tile > a { display: block; height: 100%; }
.tile-body h3 { min-height: 2.8em; }
.tile-body p { min-height: 3.45em; }
.section-head h2 { text-wrap: balance; }
@media (max-width: 650px) {
  .hero { gap: 24px; }
  .hero h1 { font-size: clamp(31px, 8vw, 39px); letter-spacing: -.5px; }
  .hero-photo { width: min(100%, 450px); }
  .photo-note { right: 0; bottom: 0; font-size: 11px; }
  .navlinks { row-gap: 6px; }
  .grid { align-items: stretch; }
  .tile-body h3, .tile-body p { min-height: 0; }
  .section-head { flex-wrap: wrap; }
  .section-more { padding-block: 6px; }
}
@media (max-width: 380px) {
  .grid { grid-template-columns: 1fr; }
  .categories { grid-template-columns: 1fr; }
}
