/* 糖心vlog 30 — 甜在心里 · 报头双轨布局骨架（纯 CSS） */
:root {
  --sn-ink: #1c1917;
  --sn-ink2: #44403c;
  --sn-muted: #78716c;
  --sn-cream: #fffbf7;
  --sn-blush: #fff1f2;
  --sn-rose: #e11d48;
  --sn-rose-d: #be123c;
  --sn-dust: #fce7f3;
  --sn-line: rgba(28, 25, 23, 0.08);
  --sn-dark: #1c1917;
  --sn-max: 1180px;
  --sn-read: 38rem;
  --sn-r: 20px;
  --sn-font: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --sn-serif: ui-serif, "Iowan Old Style", "Palatino Linotype", Palatino, "Songti SC", Georgia, serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--sn-font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--sn-ink);
  background: var(--sn-cream);
}

a {
  color: var(--sn-rose-d);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.sn-skip {
  position: absolute;
  left: -9999px;
  background: var(--sn-rose);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  z-index: 400;
  font-weight: 700;
}
.sn-skip:focus {
  left: 12px;
  top: 12px;
}

/* 顶线：报头日期条风格 */
.sn-mast {
  background: linear-gradient(90deg, #9f1239 0%, #be123c 40%, #c2410c 100%);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 8px 16px;
}

/* 主头：Logo + 下划线导航（与胶囊/侧栏不同） */
.sn-head {
  background: var(--sn-cream);
  border-bottom: 1px solid var(--sn-line);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 8px 32px rgba(28, 25, 23, 0.04);
}

.sn-head-in {
  width: min(100% - 32px, var(--sn-max));
  margin: 0 auto;
  padding: 18px 0 0;
}

.sn-brand-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
}

.sn-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--sn-ink);
  text-decoration: none;
}
.sn-brand:hover {
  text-decoration: none;
  color: var(--sn-rose-d);
}

.sn-orb {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fda4af, var(--sn-rose-d));
  box-shadow: 0 10px 28px rgba(190, 18, 60, 0.35);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.2rem;
}

.sn-brand-title {
  margin: 0;
  font-family: var(--sn-serif);
  font-size: clamp(1.25rem, 2.5vw, 1.55rem);
  font-weight: 700;
  line-height: 1.15;
}

.sn-brand .sn-tag {
  margin: 4px 0 0;
  font-size: 0.72rem;
  color: var(--sn-muted);
  font-weight: 600;
}

.sn-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid var(--sn-line);
  margin: 0 -4px;
}

.sn-nav a {
  flex: 1 1 auto;
  text-align: center;
  padding: 14px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--sn-ink2);
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  min-width: 0;
}

@media (max-width: 640px) {
  .sn-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
  }
  .sn-nav a {
    flex: 0 0 auto;
    padding: 14px 16px;
  }
}

.sn-nav a:hover {
  color: var(--sn-rose-d);
  background: var(--sn-blush);
  text-decoration: none;
}

.sn-nav a.is-on {
  color: var(--sn-rose-d);
  border-bottom-color: var(--sn-rose);
  background: linear-gradient(180deg, var(--sn-blush), transparent);
}

/* Hero：左文右图 + 底部叠条 */
.sn-hero {
  width: min(100% - 32px, var(--sn-max));
  margin: 28px auto 0;
}

.sn-hero-grid {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
  background: var(--sn-surface, #fff);
  border: 1px solid var(--sn-line);
  border-radius: var(--sn-r);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(28, 25, 23, 0.07);
}

@media (min-width: 880px) {
  .sn-hero-grid {
    grid-template-columns: 1fr 1.05fr;
  }
}

.sn-hero-txt {
  padding: 28px 26px 32px;
  background: linear-gradient(165deg, #fff 0%, var(--sn-blush) 100%);
}

@media (min-width: 880px) {
  .sn-hero-txt {
    padding: 36px 32px 40px;
  }
}

.sn-hero-txt .sn-lead-title {
  margin: 0 0 14px;
  font-family: var(--sn-serif);
  font-size: clamp(1.35rem, 2.8vw, 1.85rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--sn-ink);
}

.sn-hero-txt .sn-lead-p {
  margin: 0 0 20px;
  color: var(--sn-ink2);
  font-size: 0.92rem;
}

.sn-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sn-btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.8rem;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.sn-btn-p {
  background: linear-gradient(135deg, var(--sn-rose), var(--sn-rose-d));
  color: #fff;
  box-shadow: 0 8px 28px rgba(190, 18, 60, 0.3);
}
.sn-btn-p:hover {
  transform: translateY(-2px);
  text-decoration: none;
  color: #fff;
}

.sn-btn-o {
  background: #fff;
  color: var(--sn-rose-d);
  border: 1px solid var(--sn-line);
}
.sn-btn-o:hover {
  transform: translateY(-2px);
  border-color: var(--sn-rose);
  text-decoration: none;
}

.sn-hero-img {
  position: relative;
  min-height: 220px;
}

.sn-hero-img img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  border-radius: 0;
}

.sn-hero-cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 16px 18px;
  background: linear-gradient(transparent, rgba(28, 25, 23, 0.75));
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
}

/* ========== 双轨布局：左正文河 + 右术语轨 ========== */
.sn-shell {
  width: min(100% - 32px, var(--sn-max));
  margin-inline: auto;
}

.sn-river {
  display: grid;
  gap: 28px;
  padding: 36px 0 48px;
  grid-template-columns: 1fr;
}

@media (min-width: 1024px) {
  .sn-river {
    grid-template-columns: minmax(0, 1fr) 260px;
    align-items: start;
    gap: 36px;
  }
}

.sn-article {
  min-width: 0;
}

.sn-paper {
  background: #fff;
  border: 1px solid var(--sn-line);
  border-radius: var(--sn-r);
  padding: 28px 26px 32px;
  box-shadow: 0 4px 24px rgba(28, 25, 23, 0.05);
}

@media (min-width: 640px) {
  .sn-paper {
    padding: 32px 36px 36px;
  }
}

.sn-paper > h2 {
  margin: 0 0 16px;
  font-family: var(--sn-serif);
  font-size: 1.22rem;
  font-weight: 700;
}

.sn-paper .sn-drop {
  float: left;
  font-family: var(--sn-serif);
  font-size: 3.2rem;
  line-height: 0.85;
  font-weight: 700;
  color: var(--sn-rose);
  margin: 0 10px 0 0;
  padding: 4px 0 0;
}

.sn-prose {
  max-width: var(--sn-read);
}

.sn-prose p {
  margin: 0 0 1.1em;
  color: var(--sn-ink2);
  font-size: 0.95rem;
  text-align: justify;
  text-justify: inter-ideograph;
}

.sn-prose p:last-child {
  margin-bottom: 0;
}

.sn-prose::after {
  content: "";
  display: table;
  clear: both;
}

.sn-kwline {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--sn-line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sn-kwline span {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--sn-dust);
  color: var(--sn-rose-d);
  border: 1px solid #fbcfe8;
}

/* 右轨：术语 + 内链 */
.sn-rail {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

@media (min-width: 1024px) {
  .sn-rail {
    position: sticky;
    top: 120px;
  }
}

.sn-rail-block {
  background: #fff;
  border: 1px solid var(--sn-line);
  border-radius: 14px;
  padding: 18px 18px 20px;
  box-shadow: var(--sn-sh, 0 2px 16px rgba(28, 25, 23, 0.04));
}

.sn-rail-block h3 {
  margin: 0 0 12px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sn-rose-d);
}

.sn-rail-block ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sn-rail-block li {
  margin-bottom: 10px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--sn-ink2);
  padding-left: 12px;
  border-left: 2px solid #fecdd3;
}

.sn-rail-block li:last-child {
  margin-bottom: 0;
}

.sn-rail-block a {
  font-weight: 700;
}

.sn-rail-dark {
  background: var(--sn-dark);
  color: #e7e5e4;
  border: none;
}

.sn-rail-dark h3 {
  color: #fda4af;
}

.sn-rail-dark li {
  border-left-color: var(--sn-rose);
  color: #d6d3d1;
}

.sn-rail-dark a {
  color: #fecdd3;
}

/* 栏目区 */
.sn-block-title {
  font-family: var(--sn-serif);
  font-size: 1.08rem;
  margin: 0 0 6px;
  font-weight: 700;
}

.sn-block-note {
  margin: 0 0 16px;
  font-size: 0.84rem;
  color: var(--sn-muted);
}

.sn-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 520px) {
  .sn-grid.g5 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .sn-grid.g5 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1100px) {
  .sn-grid.g5 {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (min-width: 520px) {
  .sn-grid.g6 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 880px) {
  .sn-grid.g6 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.sn-card {
  background: #fff;
  border: 1px solid var(--sn-line);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 16px rgba(28, 25, 23, 0.04);
}

.sn-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 40px rgba(190, 18, 60, 0.1);
}

.sn-card a {
  display: block;
  color: inherit;
  text-decoration: none;
}
.sn-card a:hover {
  text-decoration: none;
  color: inherit;
}

.sn-card img {
  border-radius: 0;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.sn-card-bd {
  padding: 14px 16px 16px;
}

.sn-card h3 {
  margin: 0 0 6px;
  font-family: var(--sn-serif);
  font-size: 0.95rem;
  font-weight: 700;
}

.sn-card p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--sn-muted);
  line-height: 1.45;
}

/* 内页 */
.sn-crumb {
  font-size: 0.8rem;
  color: var(--sn-muted);
  margin: 0 0 12px;
}

.sn-page-h1 {
  margin: 0 0 10px;
  font-family: var(--sn-serif);
  font-size: clamp(1.15rem, 2.2vw, 1.42rem);
}

.sn-page-lead {
  margin: 0 0 18px;
  color: var(--sn-muted);
  font-size: 0.88rem;
}

.sn-cover {
  margin: 0 0 20px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--sn-line);
}

.sn-cover img {
  border-radius: 0;
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.sn-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sn-list a {
  display: block;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--sn-line);
  border-radius: 12px;
  text-decoration: none;
  color: var(--sn-ink);
  transition: border-color 0.15s;
}
.sn-list a:hover {
  border-color: #fda4af;
  text-decoration: none;
}

.sn-list strong {
  display: block;
  font-family: var(--sn-serif);
  font-size: 0.92rem;
  margin-bottom: 4px;
}

.sn-list span {
  font-size: 0.82rem;
  color: var(--sn-muted);
}

.sn-tip {
  margin-top: 20px;
  padding: 14px 16px;
  font-size: 0.82rem;
  color: var(--sn-ink2);
  background: var(--sn-blush);
  border-radius: 12px;
  border: 1px solid #fecdd3;
}

.sn-prose-in .sn-prose p {
  text-align: start;
}

.sn-prose code {
  font-size: 0.88em;
  background: #f5f5f4;
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

/* 深底栏 */
.sn-foot {
  background: var(--sn-dark);
  color: #a8a29e;
  padding: 40px 16px 48px;
  margin-top: 0;
}

.sn-foot-in {
  width: min(100% - 32px, var(--sn-max));
  margin: 0 auto;
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .sn-foot-in {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

.sn-foot h3 {
  margin: 0 0 12px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fda4af;
}

.sn-foot p,
.sn-foot a {
  font-size: 0.82rem;
  line-height: 1.55;
  color: #d6d3d1;
}

.sn-foot a {
  color: #fecdd3;
  text-decoration: none;
}
.sn-foot a:hover {
  text-decoration: underline;
}

.sn-foot-copy {
  grid-column: 1 / -1;
  text-align: center;
  padding-top: 24px;
  margin-top: 8px;
  border-top: 1px solid #44403c;
  font-size: 0.75rem;
  color: #78716c;
}

.sn-foot-copy strong {
  color: #fda4af;
}

.sn-nav a:focus-visible,
.sn-btn:focus-visible,
.sn-brand:focus-visible {
  outline: 2px solid var(--sn-rose);
  outline-offset: 2px;
}
