/* 爱液视频｜原创健康编辑刊设计系统 */
:root {
  --ink:#223a34;
  --muted:#62776f;
  --leaf:#315c50;
  --sage:#dbe6dd;
  --cream:#f7f5ee;
  --paper:#fffefa;
  --coral:#d98477;
  --line:#e1e7df;
  --shadow:0 18px 45px rgba(38,68,55,.09);
}

* {
  box-sizing:border-box;
}

html {
  scroll-behavior:smooth;
}

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

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

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

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

button {
  font:inherit;
}

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

.skip {
  position:absolute;
  top:-100px;
  left:12px;
  background:#fff;
  padding:10px;
  z-index:100;
}

.skip:focus {
  top:10px;
}

.topline {
  background:var(--leaf);
  color:#eff7ef;
  font-size:12px;
  text-align:center;
  letter-spacing:2px;
  padding:8px;
}

.header {
  background:var(--paper);
  border-bottom:1px solid var(--line);
  position:relative;
  z-index:2;
}

.header-inner {
  min-height:94px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
}

.brand {
  display:flex;
  align-items:center;
  gap:14px;
  font-weight:800;
  font-size:25px;
  letter-spacing:1px;
  white-space:nowrap;
}

.brand-icon {
  display:grid;
  place-items:center;
  width:46px;
  height:46px;
  border-radius:17px 17px 17px 5px;
  background:var(--leaf);
  color:white;
  font-size:24px;
}

.brand small {
  display:block;
  font-size:10px;
  letter-spacing:3px;
  color:var(--muted);
  font-weight:500;
  line-height:1.1;
}

.nav {
  display:flex;
  gap:23px;
  align-items:center;
  flex-wrap:wrap;
}

.nav a {
  font-size:14px;
  font-weight:600;
  white-space:nowrap;
}

.nav a[aria-current="page"] {
  color:#b66659;
}

.page {
  padding-block:45px 76px;
}

.eyebrow {
  display:inline-flex;
  align-items:center;
  gap:8px;
  color:#ad6357;
  text-transform:uppercase;
  letter-spacing:2.5px;
  font-size:12px;
  font-weight:700;
}

.eyebrow::before {
  content:"";
  width:24px;
  height:1px;
  background:currentColor;
}

h1,h2,h3,p {
  margin-top:0;
}

h1 {
  font-size:clamp(34px,5vw,66px);
  line-height:1.22;
  letter-spacing:-1px;
}

h2 {
  font-size:clamp(24px,3vw,36px);
  line-height:1.3;
  letter-spacing:-.5px;
}

h3 {
  line-height:1.4;
}

p {
  color:#52665d;
}

.hero {
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:0;
  background:#e6eee6;
  border-radius:22px;
  overflow:hidden;
  min-height:500px;
}

.hero-copy {
  padding:clamp(26px,5vw,70px);
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.hero h1 {
  margin:23px 0 20px;
}

.hero p {
  font-size:16px;
  max-width:510px;
}

.hero figure {
  margin:0;
  height:100%;
  position:relative;
  min-height:420px;
}

.hero figure img {
  width:100%;
  height:100%;
  object-fit:cover;
}

.hero-figure-label {
  position:absolute;
  bottom:23px;
  left:23px;
  background:rgba(255,255,255,.94);
  padding:8px 14px;
  border-radius:20px;
  font-size:12px;
  font-weight:600;
}

.btn {
  display:inline-block;
  padding:13px 22px;
  border-radius:100px;
  background:var(--leaf);
  color:white;
  font-weight:700;
  font-size:14px;
  width:max-content;
  margin-top:10px;
}

.btn:hover {
  background:#204539;
  color:white;
}

.section {
  margin-top:78px;
}

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

.section-head p {
  max-width:510px;
  margin:0;
}

.section-head h2 {
  margin:10px 0 0;
}

.text-link {
  font-size:14px;
  color:var(--leaf);
  font-weight:700;
}

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

.theme {
  background:var(--paper);
  border:1px solid var(--line);
  padding:22px;
  border-radius:14px;
  transition:transform .2s;
}

.theme:hover,.story:hover {
  transform:translateY(-3px);
}

.theme-number {
  font-size:12px;
  letter-spacing:1px;
  color:var(--coral);
  font-weight:700;
}

.theme h3 {
  margin:12px 0 7px;
  font-size:20px;
}

.theme p {
  font-size:13px;
  margin:0;
}

.feature {
  display:grid;
  grid-template-columns:.95fr 1.05fr;
  background:var(--leaf);
  color:#fff;
  border-radius:20px;
  overflow:hidden;
}

.feature img {
  height:370px;
  width:100%;
  object-fit:cover;
}

.feature-copy {
  padding:clamp(28px,5vw,56px);
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.feature-copy p {
  color:#d6e7dc;
}

.feature-copy a {
  color:#fff;
  border-bottom:1px solid #fff;
  width:max-content;
  font-weight:700;
}

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

.story {
  background:var(--paper);
  border-radius:15px;
  overflow:hidden;
  box-shadow:var(--shadow);
  transition:transform .2s;
}

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

.story-body {
  padding:21px;
}

.story-body .tag {
  font-size:12px;
  color:#af6559;
  font-weight:700;
}

.story-body h3 {
  font-size:19px;
  margin:7px 0 10px;
}

.story-body p {
  font-size:13px;
  margin:0;
}

.note {
  background:#e6eae0;
  padding:30px;
  border-left:4px solid var(--coral);
  border-radius:0 16px 16px 0;
}

.note p {
  margin:0;
}

.breadcrumb {
  font-size:13px;
  color:var(--muted);
  margin-bottom:27px;
}

.breadcrumb a {
  color:var(--leaf);
}

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

.article-head {
  max-width:770px;
}

.article-head h1 {
  font-size:clamp(31px,4.2vw,49px);
  margin:18px 0;
}

.article-head .lead {
  font-size:17px;
  line-height:1.95;
}

.article-cover {
  border-radius:18px;
  overflow:hidden;
  margin:26px 0 36px;
}

.article-cover img {
  width:100%;
  max-height:450px;
  object-fit:cover;
}

.article-cover figcaption {
  background:#e4eae2;
  padding:10px 16px;
  font-size:12px;
  color:#5a6f65;
}

.article-body h2 {
  font-size:24px;
  margin:37px 0 13px;
  padding-left:16px;
  border-left:4px solid var(--coral);
}

.article-body p {
  font-size:16px;
  line-height:2.05;
  margin:0 0 18px;
}

.sidebar {
  align-self:start;
  position:sticky;
  top:24px;
}

.sidebar-box {
  background:var(--paper);
  padding:25px;
  border:1px solid var(--line);
  border-radius:15px;
  margin-bottom:18px;
}

.sidebar-box h2 {
  font-size:18px;
}

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

.sidebar-box a:last-child {
  border-bottom:0;
}

.category-hero {
  display:grid;
  grid-template-columns:1fr 320px;
  gap:35px;
  align-items:center;
  background:#e6eee6;
  border-radius:18px;
  padding:38px;
}

.category-hero h1 {
  font-size:clamp(32px,4vw,52px);
  margin:13px 0;
}

.category-hero img {
  border-radius:12px;
  height:220px;
  width:100%;
  object-fit:cover;
}

.footer {
  background:#243d34;
  color:#fff;
  padding:55px 0 25px;
}

.footer-grid {
  display:grid;
  grid-template-columns:1.4fr 1fr;
  gap:40px;
}

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

.footer-nav {
  display:flex;
  gap:12px 24px;
  flex-wrap:wrap;
  align-content:start;
}

.footer-bottom {
  border-top:1px solid rgba(255,255,255,.18);
  margin-top:32px;
  padding-top:20px;
  font-size:12px;
  color:#b8cbbc;
}

.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
}

@media(max-width:950px) {
  .header-inner {
    align-items:flex-start;
    flex-direction:column;
    padding:18px 0;
    gap:15px;
  }
  .nav {
    width:100%;
    overflow:auto;
    flex-wrap:nowrap;
    padding-bottom:7px;
  }
  .hero {
    grid-template-columns:1fr 1fr;
  }
  .article-layout {
    grid-template-columns:1fr;
    gap:30px;
  }
  .sidebar {
    position:static;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:18px;
  }
  .sidebar-box {
    margin:0;
  }
}

@media(max-width:700px) {
  .container {
    width:min(100% - 28px,1180px);
  }
  .page {
    padding-top:22px;
  }
  .hero {
    grid-template-columns:1fr;
  }
  .hero figure {
    min-height:240px;
    height:265px;
  }
  .hero-copy {
    padding:32px 25px;
  }
  .theme-grid,.story-grid {
    grid-template-columns:1fr 1fr;
    gap:14px;
  }
  .feature {
    grid-template-columns:1fr;
  }
  .feature img {
    height:250px;
  }
  .section {
    margin-top:53px;
  }
  .section-head {
    align-items:start;
    flex-direction:column;
  }
  .category-hero {
    grid-template-columns:1fr;
    padding:24px;
  }
  .category-hero img {
    height:230px;
  }
  .footer-grid,.sidebar {
    grid-template-columns:1fr;
  }
}

@media(max-width:480px) {
  .theme-grid,.story-grid {
    grid-template-columns:1fr;
  }
  .brand {
    font-size:22px;
  }
  .hero p {
    font-size:14px;
  }
  .section {
    margin-top:42px;
  }
  .story img {
    aspect-ratio:1.8;
  }
  .article-cover img {
    max-height:280px;
  }
  .note {
    padding:20px;
  }
}

/* ===== Responsive refinements and accessibility ===== */
:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

.header-inner {
  flex-wrap: wrap;
}

.nav {
  gap: 10px 18px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
}

.hero > *,
.feature > *,
.article-layout > *,
.story-grid > *,
.theme-grid > * {
  min-width: 0;
}

.eyebrow-on-dark {
  color: #f4c6bc;
}

.story h3,
.article-body,
.sidebar {
  overflow-wrap: anywhere;
}

@media (min-width: 951px) and (max-width: 1190px) {
  .header-inner {
    justify-content: center;
    padding-block: 12px;
  }
  .nav {
    justify-content: center;
  }
}

@media (max-width: 950px) {
  .nav {
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }
  .nav a {
    flex: 0 0 auto;
  }
}

@media (max-width: 700px) {
  .hero {
    min-height: 0;
  }
  .hero figure {
    min-height: 0;
  }
  .feature-copy a {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .section-head {
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .theme,
  .story {
    transition: none;
  }
}
