@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap');

:root {
  --rose: #eb879c;
  --blush: #ffb6c1;
  --ink: #26171a;
  --bg: #fdf4f5;
  --bg2: #ffeef1;
  --card: #fff8f9;
  --muted: #6d565b;
  --line: rgba(38, 23, 26, 0.1);
  --shadow: 0 2px 4px rgba(38, 23, 26, 0.05), 0 10px 22px rgba(235, 135, 156, 0.16);
  --shadow-sm: 0 2px 4px rgba(38, 23, 26, 0.06), 0 6px 14px rgba(235, 135, 156, 0.14);
  --r: 10px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  background-image: radial-gradient(circle at 12% 0%, #fff0f3 0%, rgba(253, 244, 245, 0) 55%);
  color: var(--ink);
  font-family: "DM Sans", system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
}

img { max-width: 100%; }

a { color: #b8455f; }

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--rose);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 99;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 var(--r) 0;
  text-decoration: none;
}

.skip:focus { left: 0; }

/* 顶部 */
.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(253, 244, 245, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.strip {
  margin: 0;
  padding: 5px 16px;
  background: var(--bg2);
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.5;
}

.strip-txt {
  display: inline-block;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
}

.logo {
  display: block;
  border-radius: 8px;
}

.burger {
  position: relative;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--r);
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background 0.22s ease, transform 0.22s ease;
}

.burger:hover { background: var(--bg2); }

.burger-lines {
  position: relative;
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
}

.burger-lines::before,
.burger-lines::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.24s ease, top 0.24s ease;
}

.burger-lines::before { top: -6px; }
.burger-lines::after { top: 6px; }

body.menu-open .burger-lines { background: transparent; }
body.menu-open .burger-lines::before { top: 0; transform: rotate(45deg); }
body.menu-open .burger-lines::after { top: 0; transform: rotate(-45deg); }

.site-menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 50px;
  background: rgba(38, 23, 26, 0.95);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.26s ease, visibility 0.26s ease;
}

body.menu-open .site-menu {
  opacity: 1;
  visibility: visible;
}

.site-menu p {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 12px;
  margin: 0 auto;
  max-width: 660px;
}

.site-menu a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 20px;
  border-radius: var(--r);
  background: rgba(255, 182, 193, 0.14);
  color: #ffeef1;
  text-decoration: none;
  font-size: 17px;
  font-weight: 500;
  transition: background 0.22s ease, color 0.22s ease;
}

.site-menu a:hover {
  background: var(--blush);
  color: var(--ink);
}

body.menu-open { overflow: hidden; }

/* 版心 */
.wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 268px;
  gap: 22px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 16px 44px;
}

.content { min-width: 0; }

/* 头图 */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  min-height: 45vh;
  padding: 16px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: linear-gradient(140deg, #ffeef1 0%, #fff8f9 70%);
  box-shadow: var(--shadow);
}

.hero-media {
  position: relative;
  overflow: hidden;
  min-height: 170px;
  border-radius: var(--r);
  background: linear-gradient(160deg, var(--blush), var(--rose));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.badge {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #fff8f9;
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  box-shadow: 0 6px 14px rgba(38, 23, 26, 0.2);
}

.hero-copy {
  text-align: center;
  padding: 0 6px;
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(24px, 5.4vw, 38px);
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.lede {
  margin: 0 auto 16px;
  max-width: 34ch;
  color: var(--muted);
  font-size: 17px;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 26px;
  border-radius: var(--r);
  background: var(--rose);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(235, 135, 156, 0.42);
  transition: background 0.22s ease, transform 0.22s ease;
}

.cta:hover {
  background: #e0708a;
  transform: translateY(-2px);
}

/* 正文 */
section { min-width: 0; }

section > div {
  margin-bottom: 16px;
  padding: 22px 18px;
  border-radius: var(--r);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  scroll-margin-top: 118px;
}

section div:last-child { margin-bottom: 0; }

section h2 {
  margin: 0 0 12px;
  font-size: clamp(20px, 3.4vw, 26px);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

section h2 > span {
  display: inline-block;
}

section h2 > span::after {
  content: "";
  display: block;
  width: 100%;
  height: 4px;
  margin-top: 5px;
  border-radius: 2px;
  background: var(--blush);
}

section h3 {
  margin: 18px 0 8px;
  font-size: 19px;
  line-height: 1.4;
}

section h3 > span {
  display: inline-block;
  border-bottom: 2px solid var(--bg2);
}

section p { margin: 0 0 12px; }
section p:last-child { margin-bottom: 0; }

section ul,
section ol {
  margin: 0 0 12px;
  padding-left: 1.25em;
}

section li { margin-bottom: 6px; }

section strong { color: #a53e57; }

section a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 侧栏 */
.side {
  position: sticky;
  top: 118px;
  padding: 16px 14px;
  border-radius: var(--r);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.side-h {
  margin: 0 0 10px;
  font-size: 16px;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 500;
}

.side-h span {
  display: inline-block;
  padding-bottom: 2px;
  border-bottom: 2px solid var(--blush);
}

.side-list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.side-list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 9px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 16px;
  text-decoration: none;
  transition: background 0.22s ease, color 0.22s ease;
}

.side-list a:hover {
  background: var(--bg2);
  color: #a53e57;
}

/* 页脚 */
.site-foot {
  margin-top: 18px;
  padding: 32px 16px 18px;
  background: #2b1a1e;
  color: #ffeef1;
}

.foot-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.foot-h {
  margin: 0 0 12px;
  font-size: 20px;
  color: #fff8f9;
}

.foot-h span {
  display: inline-block;
  padding-bottom: 3px;
  border-bottom: 2px solid var(--rose);
}

.sub {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 320px;
}

.sub input {
  flex: 1 1 150px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--r);
  border: 1px solid rgba(255, 238, 241, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #fff8f9;
  font: inherit;
  font-size: 16px;
}

.sub input::placeholder { color: rgba(255, 238, 241, 0.68); }

.sub button {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: var(--r);
  background: var(--rose);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.22s ease;
}

.sub button:hover { background: var(--blush); }

.site-foot dl { margin: 0; }

.site-foot dt {
  margin-bottom: 8px;
  font-size: 16px;
  letter-spacing: 0.06em;
  color: var(--blush);
}

.site-foot dd { margin: 0 0 2px; }

.site-foot dd a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: #ffeef1;
  font-size: 16px;
  text-decoration: none;
}

.site-foot dd a:hover { color: #fff; text-decoration: underline; }

.foot-bot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  max-width: 1100px;
  margin: 22px auto 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 238, 241, 0.18);
  font-size: 16px;
}

.copy { margin: 0; }

.bot-link { margin: 0; }

.bot-link a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: #ffeef1;
  text-decoration: none;
}

.bot-link a:hover { color: #fff; text-decoration: underline; }

/* 滚动显现 */
html.js .rv {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

html.js .rv.in {
  opacity: 1;
  transform: none;
}

@media (max-width: 920px) {
  .wrap { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    gap: 14px;
    padding: 14px;
  }
  .hero-copy { order: 1; }
  .hero-media { order: 2; min-height: 132px; }
  .hero-media img { aspect-ratio: 16 / 9; }
  .foot-top { grid-template-columns: 1fr; gap: 16px; }
  .site-menu { padding: 104px 16px 40px; align-items: flex-start; }
  .site-menu a { font-size: 16px; padding: 10px 16px; }
  section > div { padding: 18px 14px; scroll-margin-top: 104px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .rv { opacity: 1; transform: none; transition: none; }
  .cta:hover { transform: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

button[aria-expanded]{min-width:44px;min-height:44px}
