/* 糖心vlog 28 — 侧轨 + 主舞台骨架（与 26/27 不同的信息架构） */
:root {
  --hv-bg: #f1f5f9;
  --hv-panel: #ffffff;
  --hv-rail: #0f172a;
  --hv-rail-muted: #94a3b8;
  --hv-ink: #0f172a;
  --hv-muted: #64748b;
  --hv-accent: #e11d48;
  --hv-accent-soft: #fda4af;
  --hv-line: #e2e8f0;
  --hv-rail-line: rgba(148, 163, 184, 0.15);
  --hv-max: 720px;
  --hv-rail-w: 260px;
  --hv-font: "IBM Plex Sans", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --hv-serif: "IBM Plex Serif", ui-serif, Georgia, "Songti SC", serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--hv-font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--hv-ink);
  background: var(--hv-bg);
  min-height: 100vh;
}

a {
  color: #be123c;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ========== 骨架：顶栏（仅移动） ========== */
.hv-mtop {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: var(--hv-rail);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 60;
}

.hv-mbrand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-family: var(--hv-serif);
}
.hv-mbrand:hover {
  color: var(--hv-accent-soft);
  text-decoration: none;
}

.hv-mlogo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--hv-accent), #fb7185);
  display: grid;
  place-items: center;
  font-size: 1rem;
}

/* 移动菜单 */
.hv-drawer {
  position: relative;
}

.hv-drawer summary {
  list-style: none;
  cursor: pointer;
  padding: 8px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 0.8rem;
  font-weight: 700;
  color: #fff;
}
.hv-drawer summary::-webkit-details-marker {
  display: none;
}

.hv-drawer[open] summary {
  background: rgba(255, 255, 255, 0.2);
}

.hv-drawer nav {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 220px;
  padding: 12px;
  background: #1e293b;
  border: 1px solid var(--hv-rail-line);
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 70;
}

.hv-drawer nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: #e2e8f0;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}
.hv-drawer nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
  color: #fff;
}

.hv-drawer nav a.is-on {
  background: var(--hv-accent);
  color: #fff;
}

@media (min-width: 960px) {
  .hv-mtop {
    display: none;
  }
}

/* ========== 桌面侧轨 ========== */
.hv-frame {
  display: block;
  min-height: 100vh;
}

@media (min-width: 960px) {
  .hv-frame {
    display: flex;
    align-items: stretch;
  }
}

.hv-rail {
  display: none;
  flex: 0 0 var(--hv-rail-w);
  background: var(--hv-rail);
  color: #e2e8f0;
  flex-direction: column;
  padding: 28px 20px 32px;
  position: sticky;
  top: 0;
  align-self: flex-start;
  min-height: 100vh;
  border-right: 1px solid var(--hv-rail-line);
}

@media (min-width: 960px) {
  .hv-rail {
    display: flex;
  }
}

.hv-rail-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hv-rail-line);
}
.hv-rail-brand:hover {
  color: var(--hv-accent-soft);
  text-decoration: none;
}

.hv-rail-brand strong {
  font-family: var(--hv-serif);
  font-size: 1.1rem;
  display: block;
}

.hv-rail-brand small {
  display: block;
  font-size: 0.65rem;
  color: var(--hv-rail-muted);
  margin-top: 4px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.hv-rail nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hv-rail nav a {
  display: block;
  padding: 11px 14px;
  border-radius: 10px;
  color: #cbd5e1;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.hv-rail nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  text-decoration: none;
}

.hv-rail nav a.is-on {
  background: rgba(225, 29, 72, 0.15);
  color: #fff;
  border-left-color: var(--hv-accent);
}

.hv-rail-foot {
  margin-top: auto;
  padding-top: 24px;
  font-size: 0.68rem;
  color: var(--hv-rail-muted);
  line-height: 1.5;
}

/* ========== 主舞台 ========== */
.hv-stage {
  flex: 1;
  min-width: 0;
  padding: 0 0 48px;
}

.hv-skip {
  position: absolute;
  left: -9999px;
  background: var(--hv-accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 200;
  font-weight: 700;
}
.hv-skip:focus {
  left: 12px;
  top: 12px;
}

.hv-shell {
  width: min(100% - 32px, var(--hv-max));
  margin-inline: auto;
}

@media (min-width: 960px) {
  .hv-shell {
    margin-left: 48px;
    margin-right: auto;
  }
}

/* 首页：舞台顶区「通栏条」+ 主栏（非全宽 hero 图） */
.hv-band {
  background: linear-gradient(105deg, #1e293b 0%, #0f172a 50%, #1e1b4b 100%);
  color: #f8fafc;
  padding: 36px 24px 40px;
  margin-bottom: 0;
}

@media (min-width: 960px) {
  .hv-band {
    padding: 48px 48px 52px;
  }
}

.hv-band-inner {
  max-width: 920px;
  margin: 0 auto;
}

.hv-eyebrow {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hv-accent-soft);
  margin: 0 0 14px;
}

.hv-band h1 {
  margin: 0 0 16px;
  font-family: var(--hv-serif);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  line-height: 1.15;
  font-weight: 700;
  max-width: 18ch;
}

.hv-band-lead {
  margin: 0 0 24px;
  font-size: 0.95rem;
  color: #cbd5e1;
  max-width: 38em;
  line-height: 1.7;
}

.hv-band-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hv-pill {
  display: inline-flex;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.82rem;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hv-pill-p {
  background: var(--hv-accent);
  color: #fff;
  box-shadow: 0 8px 28px rgba(225, 29, 72, 0.35);
}
.hv-pill-p:hover {
  transform: translateY(-2px);
  text-decoration: none;
  color: #fff;
  box-shadow: 0 12px 36px rgba(225, 29, 72, 0.45);
}

.hv-pill-g {
  background: transparent;
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.hv-pill-g:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.08);
  text-decoration: none;
  color: #fff;
}

/* 主栏内：图在文字下方「通栏破栅」 */
.hv-breakout {
  margin: 0 calc(-1 * min(24px, 4vw));
  border-radius: 0;
  overflow: hidden;
  border: 1px solid var(--hv-line);
  border-top: none;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
}

@media (min-width: 960px) {
  .hv-breakout {
    margin: 0 0 0 calc(-1 * 48px);
    max-width: calc(100% + 48px);
    border-radius: 0 16px 16px 0;
    border-left: none;
  }
}

.hv-breakout img {
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: 0;
}

.hv-mainpad {
  padding-top: 32px;
}

/* 文章卡片列（主舞台内窄栏） */
.hv-card {
  background: var(--hv-panel);
  border: 1px solid var(--hv-line);
  border-radius: 16px;
  padding: 26px 26px 28px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

.hv-card h2 {
  margin: 0 0 12px;
  font-family: var(--hv-serif);
  font-size: 1.28rem;
  font-weight: 700;
}

.hv-card .hv-sub {
  margin: 0 0 18px;
  font-size: 0.88rem;
  color: var(--hv-muted);
  padding-left: 14px;
  border-left: 3px solid var(--hv-accent);
}

.hv-prose p {
  margin: 0 0 1em;
  color: #334155;
  font-size: 0.93rem;
}

.hv-prose p:last-child {
  margin-bottom: 0;
}

.hv-prose h3 {
  margin: 1.35em 0 0.5em;
  font-family: var(--hv-serif);
  font-size: 1.05rem;
}

.hv-prose h3:first-child {
  margin-top: 0;
}

.hv-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.hv-tags span {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 6px 11px;
  border-radius: 999px;
  background: #fef2f2;
  color: #9f1239;
  border: 1px solid #fecdd3;
}

/* FAQ */
.hv-faq {
  margin-top: 8px;
}

.hv-faq h2 {
  font-family: var(--hv-serif);
  font-size: 1.15rem;
  margin: 0 0 14px;
}

.hv-faq details {
  border-bottom: 1px solid var(--hv-line);
  padding: 12px 0;
}

.hv-faq summary {
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  list-style: none;
}
.hv-faq summary::-webkit-details-marker {
  display: none;
}

.hv-faq details p {
  margin: 10px 0 0;
  font-size: 0.85rem;
  color: var(--hv-muted);
}

/* 双列资源区：主舞台底部展宽 */
.hv-wide {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 16px 0;
}

@media (min-width: 960px) {
  .hv-wide {
    padding: 0 48px 0 0;
    margin-left: 48px;
  }
}

.hv-sec-title {
  font-family: var(--hv-serif);
  font-size: 1.05rem;
  margin: 36px 0 8px;
  font-weight: 700;
}

.hv-sec-note {
  font-size: 0.84rem;
  color: var(--hv-muted);
  margin: 0 0 16px;
}

.hv-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .hv-grid.g5 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .hv-grid.g5 {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (min-width: 560px) {
  .hv-grid.g6 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .hv-grid.g6 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.hv-tile {
  background: var(--hv-panel);
  border: 1px solid var(--hv-line);
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.hv-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
}

.hv-tile a {
  display: block;
  color: inherit;
  text-decoration: none;
}
.hv-tile a:hover {
  text-decoration: none;
  color: inherit;
}

.hv-tile img {
  border-radius: 0;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hv-tile-bd {
  padding: 14px 16px 16px;
}

.hv-tile h3 {
  margin: 0 0 6px;
  font-family: var(--hv-serif);
  font-size: 0.92rem;
  font-weight: 700;
}

.hv-tile p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--hv-muted);
  line-height: 1.45;
}

/* 内页 */
.hv-crumb {
  font-size: 0.82rem;
  color: var(--hv-muted);
  margin: 20px 0 10px;
}

.hv-crumb a {
  color: var(--hv-muted);
}
.hv-crumb a:hover {
  color: #be123c;
}

.hv-h1 {
  margin: 0 0 10px;
  font-family: var(--hv-serif);
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
}

.hv-lead {
  margin: 0 0 18px;
  color: var(--hv-muted);
  font-size: 0.88rem;
}

.hv-cover {
  margin: 0 0 20px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--hv-line);
}

.hv-cover img {
  border-radius: 0;
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.hv-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hv-list a {
  display: block;
  padding: 16px 18px;
  background: var(--hv-panel);
  border: 1px solid var(--hv-line);
  border-radius: 12px;
  text-decoration: none;
  color: var(--hv-ink);
  transition: border-color 0.15s ease;
}
.hv-list a:hover {
  border-color: #fda4af;
  text-decoration: none;
}

.hv-list strong {
  display: block;
  font-family: var(--hv-serif);
  font-size: 0.92rem;
  margin-bottom: 4px;
}

.hv-list span {
  font-size: 0.82rem;
  color: var(--hv-muted);
}

.hv-tip {
  margin-top: 22px;
  padding: 14px 16px;
  font-size: 0.82rem;
  color: #334155;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
}

.hv-foot {
  text-align: center;
  padding: 28px 16px 36px;
  font-size: 0.75rem;
  color: var(--hv-muted);
}

.hv-foot strong {
  color: #9f1239;
}

.hv-prose code {
  font-size: 0.88em;
  background: #f1f5f9;
  padding: 0.12em 0.35em;
  border-radius: 4px;
}

.hv-rail nav a:focus-visible,
.hv-drawer nav a:focus-visible,
.hv-pill:focus-visible,
.hv-mbrand:focus-visible,
.hv-rail-brand:focus-visible {
  outline: 2px solid var(--hv-accent-soft);
  outline-offset: 2px;
}
