/* 糖心vlog 24 — 蜜桃粉 + 雾蓝渐变 · 下划线导航 */
:root {
  --tx-bg: #fff8f5;
  --tx-surface: #ffffff;
  --tx-ink: #1c1917;
  --tx-muted: #78716c;
  --tx-line: #fce7f3;
  --tx-rose: #e11d48;
  --tx-rose-d: #be123c;
  --tx-sky: #0ea5e9;
  --tx-max: 1040px;
  --tx-r: 16px;
  --tx-top: 58px;
  --tx-font: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--tx-font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--tx-ink);
  background: linear-gradient(180deg, #fff0f3 0%, var(--tx-bg) 28%, #f0f9ff 100%);
  min-height: 100vh;
}

a {
  color: var(--tx-rose-d);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.tx-wrap {
  width: min(100% - 24px, var(--tx-max));
  margin-inline: auto;
}

.tx-skip {
  position: absolute;
  left: -9999px;
  background: var(--tx-rose);
  color: #fff;
  padding: 8px 12px;
  z-index: 300;
  font-weight: 700;
}
.tx-skip:focus {
  left: 8px;
  top: 8px;
}

.tx-cb {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* 顶栏 */
.tx-head {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--tx-line);
  box-shadow: 0 4px 24px rgba(225, 29, 72, 0.06);
}

.tx-head-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  flex-wrap: wrap;
}

.tx-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--tx-ink);
  text-decoration: none;
}
.tx-logo:hover {
  color: var(--tx-rose);
  text-decoration: none;
}

.tx-heart {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #fda4af, #fb7185);
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.1rem;
  line-height: 1;
}

.tx-logo small {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--tx-muted);
  margin-top: 2px;
}

/* 桌面导航：下划线 */
.tx-navdesk {
  display: none;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: center;
}

@media (min-width: 880px) {
  .tx-navdesk {
    display: flex;
  }
}

.tx-navdesk a {
  padding: 8px 4px 10px;
  margin: 0 6px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #57534e;
  border-bottom: 3px solid transparent;
  text-decoration: none;
}

.tx-navdesk a:hover {
  color: var(--tx-rose-d);
  text-decoration: none;
}

.tx-navdesk a.is-on {
  color: var(--tx-rose-d);
  border-bottom-color: var(--tx-rose);
}

.tx-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--tx-line);
  border-radius: 10px;
  background: var(--tx-surface);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--tx-rose-d);
  cursor: pointer;
  user-select: none;
}

@media (min-width: 880px) {
  .tx-menu-btn {
    display: none;
  }
}

/* 移动折叠导航 */
.tx-mnav {
  width: 100%;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
  border-top: 1px solid transparent;
}

.tx-cb:checked ~ .tx-head .tx-mnav {
  max-height: 320px;
  border-top-color: var(--tx-line);
}

.tx-mnav-inner {
  padding: 12px 0 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tx-mnav a {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 700;
  color: var(--tx-ink);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--tx-line);
  text-decoration: none;
}

.tx-mnav a.is-on {
  background: #fff1f2;
  border-color: #fecdd3;
  color: var(--tx-rose-d);
}

/* Hero */
.tx-hero {
  padding: 36px 0 28px;
}

.tx-hero-in {
  display: grid;
  gap: 24px;
  align-items: center;
}

@media (min-width: 768px) {
  .tx-hero-in {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.tx-k {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: var(--tx-sky);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.tx-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.28rem, 3.6vw, 1.85rem);
  line-height: 1.25;
  font-weight: 800;
}

.tx-lead {
  margin: 0 0 18px;
  color: var(--tx-muted);
  font-size: 0.94rem;
}

.tx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tx-btn {
  display: inline-block;
  padding: 11px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.86rem;
  text-decoration: none;
}

.tx-btn-p {
  background: linear-gradient(135deg, var(--tx-rose), #fb7185);
  color: #fff;
  box-shadow: 0 8px 24px rgba(225, 29, 72, 0.25);
}
.tx-btn-p:hover {
  filter: brightness(1.05);
  text-decoration: none;
  color: #fff;
}

.tx-btn-o {
  background: #fff;
  color: var(--tx-rose-d);
  border: 1px solid var(--tx-line);
}
.tx-btn-o:hover {
  border-color: #fda4af;
  text-decoration: none;
}

.tx-hero-fig {
  margin: 0;
}

.tx-hero-fig img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--tx-line);
  box-shadow: 0 20px 50px rgba(14, 165, 233, 0.12);
}

.tx-hero-fig figcaption {
  margin-top: 8px;
  font-size: 0.72rem;
  color: var(--tx-muted);
}

/* 正文卡片 */
.tx-panel {
  background: var(--tx-surface);
  border: 1px solid var(--tx-line);
  border-radius: var(--tx-r);
  padding: 24px 22px;
  margin-bottom: 24px;
  box-shadow: 0 8px 32px rgba(28, 25, 23, 0.05);
}

.tx-panel h2 {
  margin: 0 0 8px;
  font-size: 1.14rem;
}

.tx-panel .tx-sub {
  margin: 0 0 16px;
  color: var(--tx-muted);
  font-size: 0.88rem;
}

.tx-prose p {
  margin: 0 0 1em;
  color: #44403c;
  font-size: 0.93rem;
}

.tx-prose p:last-child {
  margin-bottom: 0;
}

.tx-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.tx-pills span {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e0f2fe, #fce7f3);
  color: var(--tx-rose-d);
}

/* 栅格 */
.tx-sec {
  margin: 30px 0 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--tx-rose);
  text-transform: uppercase;
}

.tx-sec + p {
  margin: 0 0 14px;
  color: var(--tx-muted);
  font-size: 0.86rem;
}

.tx-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

@media (min-width: 520px) {
  .tx-grid.g5 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 880px) {
  .tx-grid.g5 {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1180px) {
  .tx-grid.g5 {
    grid-template-columns: repeat(5, 1fr);
  }
}

.tx-grid.g6 {
  grid-template-columns: 1fr;
}

@media (min-width: 520px) {
  .tx-grid.g6 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .tx-grid.g6 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.tx-card {
  border-radius: var(--tx-r);
  overflow: hidden;
  border: 1px solid var(--tx-line);
  background: var(--tx-surface);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.tx-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(225, 29, 72, 0.1);
}

.tx-card a {
  display: block;
  color: inherit;
  text-decoration: none;
}
.tx-card a:hover {
  text-decoration: none;
}

.tx-card img {
  border-radius: 0;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.tx-card .tx-bd {
  padding: 12px 14px 14px;
}

.tx-card h3 {
  margin: 0 0 4px;
  font-size: 0.95rem;
}

.tx-card p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--tx-muted);
  line-height: 1.45;
}

.tx-tag {
  display: inline-block;
  font-size: 0.58rem;
  font-weight: 800;
  color: #fff;
  background: var(--tx-sky);
  padding: 3px 7px;
  border-radius: 4px;
  margin-bottom: 6px;
}

/* 列表页 */
.tx-crumb {
  font-size: 0.84rem;
  color: var(--tx-muted);
  margin: 18px 0 10px;
}

.tx-h1 {
  margin: 0 0 10px;
  font-size: clamp(1.1rem, 2.8vw, 1.42rem);
}

.tx-sum {
  margin: 0 0 16px;
  color: var(--tx-muted);
  font-size: 0.88rem;
}

.tx-cover {
  margin: 0 0 18px;
  border-radius: var(--tx-r);
  overflow: hidden;
  border: 1px solid var(--tx-line);
}

.tx-cover img {
  border-radius: 0;
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
}

.tx-rows {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tx-rows a {
  display: block;
  padding: 16px 18px;
  background: var(--tx-surface);
  border: 1px solid var(--tx-line);
  border-radius: var(--tx-r);
  text-decoration: none;
  color: inherit;
  border-left: 4px solid var(--tx-rose);
}
.tx-rows a:hover {
  background: #fff;
  text-decoration: none;
}

.tx-rows strong {
  display: block;
  margin-bottom: 4px;
}

.tx-rows span {
  font-size: 0.84rem;
  color: var(--tx-muted);
}

.tx-note {
  margin-top: 20px;
  padding: 14px 16px;
  font-size: 0.84rem;
  color: #57534e;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--tx-r);
}

/* 文章 */
.tx-fig {
  margin: 0 0 18px;
  border-radius: var(--tx-r);
  overflow: hidden;
  border: 1px solid var(--tx-line);
}

.tx-fig img {
  border-radius: 0;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.tx-fig figcaption {
  padding: 8px 12px;
  font-size: 0.74rem;
  color: var(--tx-muted);
  background: var(--tx-surface);
}

.tx-aside {
  margin: 16px 0;
  padding: 12px 14px;
  font-size: 0.84rem;
  color: var(--tx-muted);
  background: #f5f5f4;
  border-radius: 10px;
  border-left: 3px solid var(--tx-sky);
}

.tx-foot {
  text-align: center;
  padding: 24px 16px;
  font-size: 0.78rem;
  color: var(--tx-muted);
  border-top: 1px solid var(--tx-line);
  margin-top: 28px;
  background: rgba(255, 255, 255, 0.65);
}

.tx-pad {
  padding-bottom: 28px;
}
