:root {
  --brand: #2f7d5d;
  --brand-2: #3f9b78;
  --brand-soft: #e6f2ea;
  --accent: #c98b3a;
  --accent-soft: #f8ecdb;

  --bg: #f7f5ef;
  --bg-soft: #efecdf;
  --surface: #ffffff;
  --surface-2: #fbfaf6;
  --ink: #1e2b24;
  --ink-2: #41544a;
  --muted: #7c8c82;
  --line: rgba(30, 43, 36, .10);
  --line-strong: rgba(30, 43, 36, .18);
  --glass: rgba(255, 255, 255, .72);
  --glass-line: rgba(255, 255, 255, .60);
  --wrap: 1220px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

html[data-theme="dark"] {
  --brand: #5cc094;
  --brand-2: #74d3aa;
  --brand-soft: rgba(92, 192, 148, .14);
  --accent: #e0a758;
  --accent-soft: rgba(224, 167, 88, .14);

  --bg: #101612;
  --bg-soft: #16201a;
  --surface: #17221c;
  --surface-2: #1b2721;
  --ink: #e7efe9;
  --ink-2: #c4d2c9;
  --muted: #93a79b;
  --line: rgba(231, 239, 233, .12);
  --line-strong: rgba(231, 239, 233, .22);
  --glass: rgba(23, 34, 28, .72);
  --glass-line: rgba(231, 239, 233, .10);
}

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.section { padding: 64px 0; }
.section--tight { padding: 18px 0 8px; }
.section--soft { background: var(--bg-soft); }

/* ---------- 通用组件 ---------- */
.glass-card {
  background: var(--glass);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 22px;
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: transform .35s var(--ease), background .25s, color .25s;
}
.btn--primary { background: linear-gradient(135deg, var(--brand-2), var(--brand)); color: #fff; }
.btn--primary:hover { transform: translateY(-2px) scale(1.02); }
.btn--ghost { background: var(--surface); color: var(--ink-2); }
.btn--ghost:hover { color: var(--brand); transform: translateY(-2px); }
.btn--light { background: rgba(255, 255, 255, .9); color: var(--brand); }
.btn--light:hover { transform: translateY(-2px); }
.btn--block { display: flex; width: 100%; }

.link-arrow { color: var(--brand); font-size: 13px; font-weight: 600; transition: gap .3s var(--ease); }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 3px; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px;
  background: var(--brand-soft); color: var(--brand);
  font-size: 12.5px; font-weight: 600; letter-spacing: .04em;
}
.badge .dot { width: 7px; height: 7px; background: var(--brand); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

/* ---------- 顶栏 ---------- */
.topbar { background: var(--ink); color: rgba(255,255,255,.72); font-size: 12.5px; }
html[data-theme="dark"] .topbar { background: #0b110d; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 36px; }
.topbar__left { display: flex; align-items: center; gap: 14px; }
.topbar__jieqi { color: #9fe3c0; font-weight: 600; }
.topbar__right { display: flex; align-items: center; gap: 18px; }
.topbar__right a:hover { color: #fff; }
.topbar__btn { padding: 3px 12px; background: rgba(255,255,255,.12); color: #fff !important; }

/* ---------- 导航 ---------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  transition: background .45s var(--ease);
}
.header__inner { display: flex; align-items: center; gap: 24px; height: 68px; }

.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo__mark {
  width: 42px; height: 42px; display: grid; place-items: center;
  color: #fff;
  background: linear-gradient(140deg, var(--brand-2), var(--brand));
  transition: transform .5s var(--ease);
}
.logo:hover .logo__mark { transform: rotate(-8deg) scale(1.06); }
.logo__text { display: flex; flex-direction: column; line-height: 1.15; }
.logo__text strong { font-size: 19px; letter-spacing: .02em; }
.logo__text em { font-size: 9.5px; font-style: normal; letter-spacing: .18em; color: var(--muted); }

.nav { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.nav__link {
  position: relative; padding: 8px 12px;
  font-size: 14.5px; color: var(--ink-2); white-space: nowrap;
  transition: color .25s, background .25s;
}
.nav__link:hover { color: var(--brand); background: var(--brand-soft); }
.nav__link.is-active { color: var(--brand); font-weight: 600; }
.nav__link.is-active::after {
  content: ""; position: absolute; left: 50%; bottom: 0; translate: -50% 0;
  width: 18px; height: 3px; background: var(--brand);
}

.header__actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.quicksearch { position: relative; display: flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 14px;
  background: var(--surface); color: var(--muted);
  transition: width .3s var(--ease);
}
.quicksearch input { width: 150px; background: none; font-size: 13.5px; color: var(--ink); outline: none; border: 0; }
.quicksearch input::placeholder { color: var(--muted); }
.quicksearch__panel {
  position: absolute; top: calc(100% + 10px); right: 0; width: 320px;
  padding: 8px;
  background: var(--surface);
  z-index: 20;
}
.quicksearch__panel a { display: block; padding: 8px 12px; font-size: 13.5px; color: var(--ink-2); }
.quicksearch__panel a:hover { background: var(--brand-soft); color: var(--brand); }
.quicksearch__panel .qs-empty { padding: 14px; font-size: 13px; color: var(--muted); text-align: center; }

.theme-switch { display: flex; gap: 2px; padding: 3px; background: var(--surface); }
.theme-switch button {
  width: 30px; height: 30px; display: grid; place-items: center;
  background: none; cursor: pointer; color: var(--muted); border: 0;
  transition: background .25s, color .25s;
}
.theme-switch button:hover { color: var(--ink); }
.theme-switch button.is-on { background: var(--brand); color: #fff; }

.menu-toggle { display: none; width: 38px; height: 38px;
  background: var(--surface); cursor: pointer; padding: 10px 9px; border: 0; }
.menu-toggle span { display: block; height: 2px; background: var(--ink); margin: 0 0 4px; transition: .3s var(--ease); }
.menu-toggle span:last-child { margin: 0; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 56px; overflow: hidden; }
.hero__decor { position: absolute; inset: 0; pointer-events: none; }
.blob { position: absolute; filter: blur(60px); opacity: .5; }
.blob--1 { width: 420px; height: 420px; top: -120px; right: -80px; background: radial-gradient(circle, var(--brand-2), transparent 70%); }
.blob--2 { width: 340px; height: 340px; bottom: -140px; left: -100px; background: radial-gradient(circle, var(--accent), transparent 70%); opacity: .28; }
.leaf--1 {
  position: absolute; right: 6%; top: 22%; width: 150px; height: 150px;
  background: currentColor; color: var(--brand); opacity: .07;
  clip-path: polygon(50% 0, 100% 38%, 78% 100%, 22% 100%, 0 38%);
  animation: floaty 9s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-18px) rotate(8deg); } }

.hero__inner { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { margin: 20px 0 16px; font-size: clamp(32px, 4.2vw, 52px); letter-spacing: -.02em; }
.hero h1 em { font-style: normal; color: var(--brand); position: relative; }
.hero h1 em::after {
  content: ""; position: absolute; left: 0; bottom: 4px; width: 100%; height: 10px;
  background: var(--accent); opacity: .28; z-index: -1;
}
.hero__desc { max-width: 560px; color: var(--ink-2); font-size: 16px; }

.hero__search {
  display: flex; align-items: center; gap: 10px; margin: 28px 0 14px;
  padding: 7px 7px 7px 18px;
  background: var(--surface);
  max-width: 620px; color: var(--muted);
}
.hero__search input { flex: 1; background: none; font-size: 15px; height: 40px; color: var(--ink); outline: none; border: 0; }
.hero__search input::placeholder { color: var(--muted); }

.hero__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.hero__tags a { padding: 4px 12px; background: var(--surface); color: var(--ink-2); transition: .25s var(--ease); }
.hero__tags a:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }

.hero__stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 34px; padding-top: 26px; }
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats b { font-size: 26px; color: var(--brand); font-variant-numeric: tabular-nums; }
.hero__stats span { font-size: 12.5px; color: var(--muted); }

/* Hero 右侧节气卡 */
.hero__card { position: relative; }
.hero__jqcard { padding: 26px; }
.hero__jqcard-top { display: flex; align-items: center; justify-content: space-between; }
.pill { padding: 4px 12px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 700; }
.hero__jqdate { font-size: 12.5px; color: var(--muted); }
.hero__jqtitle { margin: 14px 0 8px; font-size: 24px; }
.hero__jqdesc { font-size: 14px; color: var(--ink-2); }
.jq-list { margin: 18px 0; display: grid; gap: 10px; }
.jq-list li { display: flex; gap: 12px; align-items: baseline; font-size: 13.5px; color: var(--ink-2); }
.jq-list span {
  flex: 0 0 auto; padding: 2px 9px; font-size: 11.5px; font-weight: 700;
  background: var(--brand-soft); color: var(--brand);
}
.floating-mini {
  position: absolute; padding: 12px 16px; display: flex; flex-direction: column; gap: 2px;
  font-size: 12px; color: var(--muted); animation: floaty 7s ease-in-out infinite;
}
.floating-mini b { font-size: 14px; color: var(--ink); }
.floating-mini--1 { left: -46px; bottom: 46px; }
.floating-mini--2 { right: -26px; top: -22px; animation-delay: -3s; }

/* ---------- 快捷分类 ---------- */
.quickgrid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px;
  padding: 20px; background: var(--surface); }
.quickgrid__item {
  padding: 16px 12px; text-align: center;
  transition: transform .4s var(--ease), background .3s;
}
.quickgrid__item:hover { transform: translateY(-4px); background: var(--surface-2); }
.quickgrid__ico {
  width: 46px; height: 46px; margin: 0 auto 10px; display: grid; place-items: center;
  color: #fff;
  background: linear-gradient(140deg, var(--i1), var(--i2));
  transition: transform .45s var(--ease);
}
.quickgrid__item:hover .quickgrid__ico { transform: rotate(-8deg) scale(1.08); }
.quickgrid__item b { display: block; font-size: 14px; }
.quickgrid__item i { display: block; margin-top: 3px; font-size: 11.5px; font-style: normal; color: var(--muted); }

/* ---------- 主体布局 ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.col-main { min-width: 0; display: grid; gap: 40px; }
.col-side { display: grid; gap: 22px; position: sticky; top: 88px; }

.block__head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.block__head--center { flex-direction: column; align-items: center; text-align: center; gap: 8px; margin-bottom: 32px; }
.block__title { font-size: 24px; position: relative; padding-left: 14px; }
.block__title::before {
  content: ""; position: absolute; left: 0; top: 50%; translate: 0 -50%;
  width: 5px; height: 22px; background: var(--brand);
}
.block__head--center .block__title { padding-left: 0; }
.block__head--center .block__title::before { display: none; }
.block__sub { font-size: 13.5px; color: var(--muted); }

/* ---------- Tabs + 文章列表 ---------- */
.tabs-panel { background: var(--surface); padding: 22px; }
.tabs { display: flex; align-items: center; gap: 6px; padding-bottom: 14px; margin-bottom: 6px; flex-wrap: wrap; }
.tabs__btn {
  padding: 7px 16px; cursor: pointer;
  background: none; font-size: 14.5px; color: var(--ink-2); transition: .25s var(--ease); border: 0;
}
.tabs__btn:hover { background: var(--brand-soft); color: var(--brand); }
.tabs__btn.is-active { background: var(--brand); color: #fff; font-weight: 600; }
.tabs__more { margin-left: auto; font-size: 13px; color: var(--muted); }
.tabs__more:hover { color: var(--brand); }

.article-list li { }
.article-list li:last-child { }
.article-item {
  display: grid; grid-template-columns: 1fr 88px; gap: 18px; align-items: center;
  padding: 16px 10px;
  transition: background .3s, transform .35s var(--ease);
}
.article-item:hover { background: var(--surface-2); transform: translateX(4px); }
.article-item h3 { font-size: 16px; margin-bottom: 6px; transition: color .25s; }
.article-item:hover h3 { color: var(--brand); }
.article-item p { font-size: 13.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-item__meta { margin-top: 8px; display: flex; gap: 14px; font-size: 12px; color: var(--muted); }
.article-item__meta em { font-style: normal; color: var(--accent); }
.article-item__thumb {
  height: 62px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(140deg, var(--t1), var(--t2));
}

/* ---------- 食谱卡 ---------- */
.recipe-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.recipe-card {
  background: var(--surface);
  overflow: hidden; transition: transform .45s var(--ease);
}
.recipe-card:hover { transform: translateY(-6px); }
.recipe-card__thumb {
  position: relative; height: 130px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(140deg, var(--c1), var(--c2));
}
.recipe-card__tag {
  position: absolute; top: 12px; left: 12px; padding: 3px 10px;
  background: rgba(255,255,255,.9); color: #2f7d5d; font-size: 11.5px; font-weight: 700;
}
.recipe-card__body { padding: 16px 18px 18px; }
.recipe-card__body h3 { font-size: 16px; }
.recipe-card__body p { margin: 8px 0 12px; font-size: 13.5px; color: var(--muted); }
.recipe-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.recipe-meta span { padding: 3px 10px; background: var(--bg-soft); font-size: 11.5px; color: var(--ink-2); }

/* ---------- 中医卡 ---------- */
.tcm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.tcm-card {
  position: relative; padding: 22px;
  background: var(--surface);
  transition: transform .45s var(--ease);
}
.tcm-card:hover { transform: translateY(-5px); }
.tcm-card__idx { font-size: 30px; font-weight: 800; color: var(--brand); opacity: .18; line-height: 1; }
.tcm-card h3 { margin: 6px 0 8px; font-size: 17px; }
.tcm-card p { font-size: 13.5px; color: var(--muted); margin-bottom: 12px; }

/* ---------- 运动卡 ---------- */
.sport-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.sport-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 22px 14px;
  background: var(--surface); text-align: center;
  transition: transform .45s var(--ease);
}
.sport-card:hover { transform: translateY(-5px); }
.sport-card__ico { width: 52px; height: 52px; display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); margin-bottom: 6px; }
.sport-card b { font-size: 15px; }
.sport-card span { font-size: 12px; color: var(--muted); }

/* ---------- 侧栏 ---------- */
.side-card { background: var(--surface); padding: 20px; }
.side-card__title { display: flex; align-items: center; gap: 10px; font-size: 16px; margin-bottom: 14px; }
.side-card__bar { width: 4px; height: 16px; background: var(--brand); }
.tip { padding: 12px 0; }
.tip:first-of-type { padding-top: 0; }
.tip b { display: block; font-size: 14.5px; margin-bottom: 4px; }
.tip p { font-size: 13px; color: var(--muted); }

.rank-list li a { display: flex; gap: 10px; align-items:baseline; padding: 9px 0; font-size: 14px; color: var(--ink-2); }
.rank-list a:hover { color: var(--brand); }
.rank-list i {
  flex: 0 0 20px; height: 20px; display: grid; place-items: center;
  font-style: normal; font-size: 11.5px; font-weight: 700; background: var(--bg-soft); color: var(--muted);
}
.rank-list li:nth-child(1) i { background: var(--brand); color: #fff; }
.rank-list li:nth-child(2) i { background: #5fa583; color: #fff; }
.rank-list li:nth-child(3) i { background: #8fc2a8; color: #fff; }

.bmi__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.bmi__row label { display: block; font-size: 12.5px; color: var(--muted); }
.bmi__row input {
  width: 100%; height: 38px; margin-top: 5px; padding: 0 10px;
  background: var(--surface-2); outline: none; border: 0;
}
.bmi__result { margin-top: 14px; padding: 14px; background: var(--brand-soft); }
.bmi__result b { font-size: 22px; color: var(--brand); }
.bmi__result p { font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.bmi__result .bar { height: 8px; margin: 10px 0 6px;
  background: linear-gradient(90deg, #7bb8e8, #5cc094, #e0a758, #d88181); position: relative; }
.bmi__result .bar span { position: absolute; top: -3px; width: 4px; height: 14px; background: var(--ink); }
.bmi__note { margin-top: 10px; font-size: 11.5px; color: var(--muted); }

.side-card--promo { background: linear-gradient(140deg, var(--brand-2), var(--brand)); color: #fff; }
.side-card--promo h3 { font-size: 18px; margin: 8px 0; }
.side-card--promo p { font-size: 13.5px; opacity: .88; margin-bottom: 16px; }
.side-card__kicker { font-size: 11.5px; letter-spacing: .16em; opacity: .8; }

.follow { display: flex; gap: 14px; align-items: center; }
.follow__qr { width: 76px; height: 76px; flex: 0 0 auto; display: grid; place-items: center;
  background: var(--bg-soft); color: var(--ink); }
.follow__text b { display: block; font-size: 14px; }
.follow__text span { display: block; font-size: 12.5px; color: var(--muted); }
.follow__id { margin-top: 4px; font-family: ui-monospace, Consolas, monospace; color: var(--brand) !important; }

/* ---------- 四季 ---------- */
.season-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.season-card {
  padding: 24px; background: var(--surface);
  transition: transform .45s var(--ease);
}
.season-card:hover { transform: translateY(-6px); }
.season-card header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.season-card__ico { font-size: 24px; }
.season-card h3 { font-size: 18px; }
.season-card p { font-size: 13.5px; color: var(--ink-2); }
.season-card ul { margin-top: 14px; display: grid; gap: 7px; font-size: 12.5px; color: var(--muted); }
.season-card li { padding-left: 14px; position: relative; }
.season-card li::before { content: ""; position: absolute; left: 0; top: 9px; width: 6px; height: 6px; background: var(--brand); opacity: .6; }

.jieqi-strip { display: flex; align-items: center; gap: 16px; margin-top: 28px; padding: 16px 20px;
  background: var(--surface); }
.jieqi-strip__label { flex: 0 0 auto; font-size: 13px; font-weight: 700; color: var(--brand); }
.jieqi-strip__scroll { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.jieqi-strip__scroll::-webkit-scrollbar { height: 6px; }
.jieqi-strip__scroll::-webkit-scrollbar-thumb { background: var(--line-strong); }
.jieqi-item { flex: 0 0 auto; padding: 6px 14px; font-size: 13px; white-space: nowrap;
  background: var(--bg-soft); color: var(--ink-2); transition: .25s var(--ease); }
.jieqi-item:hover { color: var(--brand); }
.jieqi-item.is-now { background: var(--brand); color: #fff; font-weight: 600; }

/* ---------- 专家 ---------- */
.expert-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.expert-card {
  display: flex; gap: 14px; padding: 20px;
  background: var(--surface);
  transition: transform .45s var(--ease);
}
.expert-card:hover { transform: translateY(-6px); }
.expert-card__avatar {
  flex: 0 0 52px; height: 52px; display: grid; place-items: center;
  font-size: 20px; font-weight: 700; color: #fff;
  background: linear-gradient(140deg, var(--a1), var(--a2));
}
.expert-card__body { min-width: 0; }
.expert-card__body h3 { font-size: 15.5px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.expert-card__body h3 span { padding: 2px 8px; background: var(--brand-soft); color: var(--brand); font-size: 11.5px; font-weight: 600; }
.expert-card__hosp { margin: 4px 0 6px; font-size: 12.5px; color: var(--muted); }
.expert-card__skill { font-size: 12.5px; color: var(--ink-2); margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- 人群 ---------- */
.crowd-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.crowd-chip {
  display: flex; flex-direction: column; gap: 4px; padding: 20px;
  background: var(--surface);
  transition: transform .4s var(--ease), background .3s;
}
.crowd-chip:hover { transform: translateY(-4px); background: var(--brand-soft); }
.crowd-chip b { font-size: 16px; }
.crowd-chip span { font-size: 12.5px; color: var(--muted); }

/* ---------- 页脚 ---------- */
.footer { margin-top: 40px; background: var(--ink); color: rgba(255,255,255,.7); }
html[data-theme="dark"] .footer { background: #0b110d; }
.footer__top { display: grid; grid-template-columns: 1.1fr 2fr; gap: 48px; padding: 52px 0 36px; }
.footer__brand p { margin: 16px 0 14px; font-size: 13.5px; line-height: 1.9; max-width: 420px; }
.logo--footer .logo__text strong { color: #fff; }
.logo--footer .logo__text em { color: rgba(255,255,255,.5); }
.footer__contact { display: grid; gap: 6px; font-size: 12.5px; color: rgba(255,255,255,.55); }
.footer__links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.footer__links h4 { color: #fff; font-size: 14.5px; margin-bottom: 14px; }
.footer__links a { display: block; padding: 5px 0; font-size: 13px; transition: color .25s, transform .25s; }
.footer__links a:hover { color: #fff; transform: translateX(3px); }
.footer__disclaimer {
  padding: 16px 20px; margin-bottom: 24px;
  background: rgba(255,255,255,.06); font-size: 12.5px; line-height: 1.9; color: rgba(255,255,255,.62);
}
.footer__disclaimer strong { color: #f0c48c; }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  padding: 20px 0 28px; font-size: 12.5px; color: rgba(255,255,255,.5);
}
.footer__friendly a { margin-left: 10px; }
.footer__friendly a:hover { color: #fff; }

/* ---------- 回到顶部 ---------- */
.to-top {
  position: fixed; right: 26px; bottom: 30px; z-index: 50;
  width: 44px; height: 44px; display: grid; place-items: center;
  cursor: pointer;
  background: var(--surface); color: var(--brand);
  opacity: 0; pointer-events: none; transition: opacity .35s, transform .35s var(--ease);
  border: 0;
}
.to-top.is-on { opacity: 1; pointer-events: auto; }
.to-top:hover { transform: translateY(-4px) scale(1.05); }

/* ---------- 入场动画 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001s !important; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1180px) {
  .quickgrid { grid-template-columns: repeat(4, 1fr); }
  .expert-row { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
  .nav.is-open {
    display: flex; flex-wrap: wrap; position: absolute; top: 68px; left: 0; right: 0;
    padding: 16px 20px; background: var(--surface);
  }
  .nav.is-open .nav__link { width: 33.33%; text-align: center; }
  .menu-toggle { display: block; }
  .quicksearch { display: none; }
}
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .floating-mini { display: none; }
  .layout { grid-template-columns: 1fr; }
  .col-side { position: static; grid-template-columns: repeat(2, 1fr); }
  .season-grid, .crowd-grid, .sport-row { grid-template-columns: repeat(2, 1fr); }
  .recipe-grid { grid-template-columns: 1fr; }
  .tcm-grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 32px; }
  .footer__links { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 28px); }
  .section { padding: 44px 0; }
  .hero { padding: 44px 0 32px; }
  .quickgrid { grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 14px; }
  .season-grid, .crowd-grid, .sport-row, .expert-row, .col-side { grid-template-columns: 1fr; }
  .hero__stats { gap: 18px; }
  .hero__stats b { font-size: 21px; }
  .article-item { grid-template-columns: 1fr; }
  .article-item__thumb { display: none; }
  .header__inner { height: 60px; gap: 12px; }
  .logo__text em { display: none; }
  .topbar__left .topbar__date { display: none; }
  .nav.is-open .nav__link { width: 50%; }
  .footer__links { grid-template-columns: repeat(2, 1fr); }
  .to-top { right: 14px; bottom: 18px; }
}

/* ==========================================================
   草木养生 — 文章详情页
   ========================================================== */

/* ---------- 阅读进度条 ---------- */
.readbar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 70; background: transparent; }
.readbar span {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--brand-2), var(--brand) 60%, var(--accent));
  transition: width .1s linear;
}

/* ---------- 文章头 ---------- */
.art-head {
  padding: 30px 0 26px;
  background: linear-gradient(180deg, var(--brand-soft), var(--bg));
}

.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.crumbs a:hover { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.crumbs i { font-style: normal; opacity: .5; }
.crumbs span { color: var(--ink-2); }

.art-head__cat {
  display: inline-block; margin: 16px 0 12px;
  padding: 4px 12px;
  background: var(--brand); color: #fff; font-size: 12px; font-weight: 700;
}
.art-head__title { font-size: clamp(24px, 3.2vw, 36px); line-height: 1.35; letter-spacing: -.02em; }
.art-head__lead {
  margin-top: 14px; padding: 14px 18px;
  background: var(--surface);
  font-size: 14.5px; color: var(--ink-2); line-height: 1.85;
}
.art-head__meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 18px;
  margin-top: 20px; font-size: 13px; color: var(--muted);
}
.art-head__meta em { font-style: normal; color: var(--ink-2); font-weight: 600; }
.art-author { display: inline-flex; align-items: center; gap: 10px; }
.art-author i {
  width: 34px; height: 34px; display: grid; place-items: center;
  font-style: normal; font-size: 14px; font-weight: 700; color: #fff;
  background: linear-gradient(140deg, var(--brand-2), var(--brand));
}
.art-author b { color: var(--ink); font-size: 14px; }
.art-author em { font-style: normal; font-size: 12px; color: var(--muted); }

.art-head__tools {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  margin-top: 22px; padding-top: 18px;
}
.fontsize { display: inline-flex; align-items: center; gap: 4px; padding: 4px 8px;
  background: var(--surface); font-size: 12px; color: var(--muted); }
.fontsize span { padding-right: 4px; }
.fontsize button {
  min-width: 30px; height: 28px; cursor: pointer;
  background: none; color: var(--ink-2); font-size: 13px; transition: .25s var(--ease); border: 0;
}
.fontsize button:hover { background: var(--brand-soft); color: var(--brand); }
.fontsize button.is-on { background: var(--brand); color: #fff; font-weight: 700; }

.art-act {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 16px;
  cursor: pointer;
  background: var(--surface); color: var(--ink-2); font-size: 13px; border: 0;
  transition: transform .35s var(--ease), background .25s, color .25s;
}
.art-act:hover { transform: translateY(-2px); color: var(--brand); }
.art-act b { font-variant-numeric: tabular-nums; }
.art-act.is-on { background: var(--brand-soft); color: var(--brand); }
.art-act.is-on svg path { fill: currentColor; }

/* ---------- 布局 ---------- */
.section--article { padding: 34px 0 56px; }
.layout--article { grid-template-columns: minmax(0, 1fr) 300px; gap: 34px; align-items: start; }
.layout--article .col-main { display: grid; gap: 28px; }
.layout--article .col-side { top: 78px; }

/* ---------- 正文排版 ---------- */
.article {
  padding: 32px 34px;
  background: var(--surface);
  font-size: 16.5px; line-height: 1.95; color: var(--ink-2);
}
.article[data-size="sm"] { font-size: 15px; line-height: 1.85; }
.article[data-size="lg"] { font-size: 18.5px; line-height: 2.05; }

.article p { margin: 0 0 20px; text-align: justify; }
.article p:last-child { margin-bottom: 0; }
.article strong { color: var(--ink); font-weight: 700; }
.article em { font-style: normal; color: var(--brand); font-weight: 600; }

.article h3 {
  position: relative; margin: 38px 0 16px; padding-left: 16px;
  font-size: 20px; color: var(--ink); scroll-margin-top: 90px;
}
.article h3::before {
  content: ""; position: absolute; left: 0; top: 50%; translate: 0 -50%;
  width: 5px; height: 20px; background: var(--brand);
}
.article h3:first-child { margin-top: 0; }
.article h3 { margin: 26px 0 12px; font-size: 17px; color: var(--ink); scroll-margin-top: 90px; }

.article ul { margin: 0 0 20px; display: grid; gap: 10px; }
.article li { position: relative; padding-left: 20px; }
.article li::before {
  content: ""; position: absolute; left: 4px; top: .72em;
  width: 6px; height: 6px; background: var(--brand); opacity: .65;
}

/* 要点框 */
.art-box { margin: 24px 0; padding: 18px 20px; background: var(--brand-soft); }
.art-box b { display: block; margin-bottom: 8px; font-size: 15px; color: var(--brand); }
.art-box p:last-child, .art-box ul:last-child { margin-bottom: 0; }
.art-box ul { margin-bottom: 0; }

/* 警示框 */
.art-warn { margin: 24px 0; padding: 18px 20px;
  background: var(--accent-soft); }
.art-warn b { display: block; margin-bottom: 8px; font-size: 15px; color: var(--accent); }
.art-warn p:last-child { margin-bottom: 0; }

/* 表格 */
.art-table { margin: 24px 0; overflow-x: auto; }
.art-table table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.art-table th, .art-table td { padding: 11px 14px; text-align: left; }
.art-table th { background: var(--bg-soft); color: var(--ink); font-weight: 700; }
.art-table td { color: var(--ink-2); }

/* ---------- 提示 / 标签 / 上下篇 ---------- */
.art-note { padding: 18px 20px; background: var(--surface); }
.art-note b { display: block; margin-bottom: 6px; font-size: 14px; color: var(--accent); }
.art-note p { font-size: 13.5px; color: var(--muted); line-height: 1.85; }

.art-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.art-tags a {
  padding: 6px 14px; font-size: 13px;
  background: var(--bg-soft); color: var(--ink-2); transition: .25s var(--ease);
}
.art-tags a:hover { background: var(--brand); color: #fff; transform: translateY(-2px); }

.art-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.art-nav__item {
  padding: 16px 18px;
  background: var(--surface);
  transition: transform .4s var(--ease);
}
.art-nav__item:hover { transform: translateY(-3px); }
.art-nav__item span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.art-nav__item b { font-size: 14.5px; color: var(--ink); transition: color .25s; }
.art-nav__item:hover b { color: var(--brand); }
.art-nav__item--next { text-align: right; }

/* 上下篇：暂无状态 */
.art-nav__item.is-disabled {
  cursor: not-allowed;
  background: var(--bg-soft);
  border-color: var(--line);
  box-shadow: none;
}
.art-nav__item.is-disabled:hover {
  transform: none;
  border-color: var(--line);
  box-shadow: none;
}
.art-nav__item.is-disabled b {
  color: var(--muted);
  font-weight: 500;
}
.art-nav__item.is-disabled:hover b { color: var(--muted); }
.art-nav__item.is-disabled span { opacity: .65; }

/* ---------- 相关推荐 ---------- */
.rel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rel-card {
  display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center;
  padding: 14px;
  background: var(--surface);
  transition: transform .4s var(--ease);
}
.rel-card:hover { transform: translateY(-4px); }
.rel-card__ico {
  height: 48px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(140deg, var(--t1), var(--t2)); font-size: 20px;overflow:hidden;
}
.rel-card b { display: block; font-size: 14.5px; line-height: 1.5; margin-bottom: 4px; }
.rel-card span { font-size: 12px; color: var(--muted); }
.rel-card__ico img{
    display:block;
    width:100%;
    height:100%;
    object-fit: cover;
}

/* ---------- 评论 ---------- */
.comment-box { padding: 24px; background: var(--surface); }
.comment-form textarea {
  width: 100%; padding: 14px 16px; resize: vertical;
  background: var(--surface-2); color: var(--ink); outline: none; border: 0;
  font: inherit; font-size: 14px; line-height: 1.8;
}
.comment-form__foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 12px; flex-wrap: wrap; }
.comment-form__tip { font-size: 12.5px; color: var(--muted); }
.comment-list { margin-top: 20px; display: grid; gap: 14px; }
.comment-item { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding-top: 14px; }
.comment-item:first-child { padding-top: 0; }
.comment-item__avatar {
  width: 36px; height: 36px; display: grid; place-items: center;
  color: #fff; font-size: 13px; font-weight: 700;
  background: linear-gradient(140deg, var(--brand-2), var(--brand));
}
.comment-item__body b { font-size: 13.5px; }
.comment-item__body span { margin-left: 8px; font-size: 12px; color: var(--muted); }
.comment-item__body p { margin-top: 5px; font-size: 14px; color: var(--ink-2); line-height: 1.8; word-break: break-word; }

/* ---------- 侧栏 ---------- */
.side-card--toc { position: relative; }
.toc { display: grid; gap: 2px; font-size: 13.5px; }
.toc a {
  display: block; padding: 7px 12px; color: var(--muted);
  transition: .25s var(--ease);
}
.toc a:hover { background: var(--surface-2); color: var(--ink); }
.toc a.is-active { color: var(--brand); font-weight: 700; background: var(--brand-soft); }

.author-card { display: flex; gap: 12px; margin-bottom: 14px; }
.author-card__avatar {
  flex: 0 0 48px; height: 48px; display: grid; place-items: center;
  font-size: 18px; font-weight: 700; color: #fff;
  background: linear-gradient(140deg, var(--brand-2), var(--brand));
}
.author-card b { display: block; font-size: 14.5px; }
.author-card span { display: block; font-size: 12px; color: var(--muted); }
.author-card p { margin-top: 6px; font-size: 12.5px; color: var(--ink-2); line-height: 1.7; }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .layout--article { grid-template-columns: 1fr; }
  .layout--article .col-side { position: static; grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .article { padding: 22px 18px; font-size: 16px; }
  .art-head__meta { gap: 12px; }
  .art-nav { grid-template-columns: 1fr; }
  .art-nav__item--next { text-align: left; }
  .rel-grid { grid-template-columns: 1fr; }
  .layout--article .col-side { grid-template-columns: 1fr; }
  .side-card--toc { display: none; }
}