:root {
  --rose: #eb879c;
  --blush: #ffb6c1;
  --ink: #26171a;
  --paper: #fffafb;
  --mist: #fdeef1;
  --line: rgba(38, 23, 26, 0.16);
  --line-soft: rgba(38, 23, 26, 0.08);
  --muted: rgba(38, 23, 26, 0.68);
  --r: 28px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.78;
  color: var(--ink);
  background:
    radial-gradient(1100px 560px at 88% -6%, #ffe4eb 0%, rgba(255, 228, 235, 0) 62%),
    radial-gradient(820px 480px at -8% 28%, #fff0f4 0%, rgba(255, 240, 244, 0) 58%),
    var(--paper);
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  border-radius: 12px;
}

::selection {
  background: var(--blush);
  color: var(--ink);
}

p {
  margin: 0 0 1.05em;
}

/* 顶部 */
.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  padding: 11px clamp(16px, 4vw, 48px);
  background: rgba(255, 250, 251, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
  box-shadow: 0 2px 4px rgba(38, 23, 26, 0.05);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 46px;
  padding-right: 8px;
  font-size: 1.06rem;
  font-weight: 800;
  letter-spacing: -0.015em;
  text-decoration: none;
  color: var(--ink);
}

.mark {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border-radius: 10px;
  border: 1px solid rgba(38, 23, 26, 0.22);
  background: linear-gradient(140deg, var(--rose), var(--blush) 65%, #fff1f4);
}

.logo {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  object-fit: cover;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin-left: auto;
}

.topnav a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 10px 13px;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  transition: background 220ms var(--ease), color 220ms var(--ease);
}

.topnav a:hover {
  background: var(--mist);
}

.ico svg {
  width: 9px;
  height: 9px;
  fill: var(--rose);
}

/* 首屏 */
.hero {
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: clamp(24px, 4vw, 62px);
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(26px, 4vw, 56px) clamp(18px, 5vw, 76px) clamp(38px, 6vw, 84px);
}

.hero-copy {
  min-width: 0;
  max-width: 33ch;
}

.hero h1 {
  margin: 0 0 0.55em;
  font-size: clamp(1.95rem, 5.1vw, 3.35rem);
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -0.028em;
}

.hero-desc {
  margin: 0 0 1.6em;
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  line-height: 1.8;
  color: var(--muted);
}

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 0 28px;
  border-radius: 999px;
  border: 1px solid rgba(38, 23, 26, 0.2);
  background: var(--rose);
  color: var(--ink);
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 2px 4px rgba(38, 23, 26, 0.14), 0 14px 26px -18px rgba(38, 23, 26, 0.5);
  transition: transform 240ms var(--ease), background 240ms var(--ease);
}

.cta:hover {
  background: var(--blush);
  transform: translateY(-2px);
}

.hero-art {
  position: relative;
  min-height: clamp(230px, 44vh, 540px);
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(150deg, var(--blush), #fff3f6 52%, var(--rose));
  box-shadow: 0 2px 4px rgba(38, 23, 26, 0.07), 0 26px 54px -34px rgba(38, 23, 26, 0.6);
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-blob {
  position: absolute;
  inset: 18% 16% 18% 16%;
  border-radius: 50% 46% 52% 48%;
  background: radial-gradient(circle at 34% 30%, #fff 0%, var(--blush) 52%, var(--rose) 100%);
  border: 1px solid rgba(38, 23, 26, 0.1);
}

/* 内容区 */
.wrap {
  display: grid;
  grid-template-columns: minmax(198px, 248px) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 46px);
  align-items: start;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(26px, 4vw, 52px) clamp(16px, 4vw, 40px) clamp(52px, 7vw, 104px);
}

.rail {
  position: sticky;
  top: 104px;
  padding: 20px 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 2px 4px rgba(38, 23, 26, 0.05);
}

.rail h2 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.5;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.subtitle {
  margin: 0.2em 0 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
}

.jump {
  display: grid;
  gap: 2px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: jump;
}

.jump a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-height: 42px;
  padding: 9px 10px;
  border-radius: 14px;
  font-size: 1rem;
  line-height: 1.5;
  text-decoration: none;
  color: var(--ink);
  transition: background 200ms var(--ease);
}

.jump a:hover {
  background: var(--mist);
}

.jump .num {
  font-size: 0.875rem;
  font-weight: 800;
  color: #b8556d;
  font-variant-numeric: tabular-nums;
}

.body {
  min-width: 0;
  max-width: 74ch;
}

.body > div {
  padding-block: clamp(32px, 4.4vw, 58px);
  scroll-margin-top: 132px;
}

.body > div:first-child {
  padding-top: 0;
}

.body > div + div {
  border-top: 1px solid var(--line-soft);
}

.body h2 {
  position: relative;
  margin: 0 0 0.7em;
  padding-left: 18px;
  font-size: clamp(1.32rem, 2.5vw, 1.8rem);
  line-height: 1.42;
  font-weight: 800;
  letter-spacing: -0.015em;
}

.body h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 8px;
  height: 0.82em;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--rose), var(--blush));
  border: 1px solid rgba(38, 23, 26, 0.12);
}

.body h3 {
  margin: 1.4em 0 0.55em;
  font-size: 1.12rem;
  line-height: 1.5;
  font-weight: 700;
}

.body a {
  color: #b8475f;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.body a:hover {
  color: var(--ink);
  background: var(--mist);
}

.body ul,
.body ol {
  margin: 0 0 1.1em;
  padding-left: 1.3em;
}

.body li {
  margin-bottom: 0.45em;
  line-height: 1.78;
}

.body blockquote {
  margin: 1.3em 0;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  color: var(--ink);
}

.body blockquote p:last-child {
  margin-bottom: 0;
}

.body img {
  border-radius: var(--r);
  border: 1px solid var(--line);
  margin: 1.3em 0;
}

.body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.2em 0;
  font-size: 1rem;
}

.body th,
.body td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
}

/* 页脚 */
.foot {
  border-top: 1px solid var(--line);
  padding: clamp(34px, 5vw, 62px) clamp(18px, 5vw, 56px) 22px;
  background: linear-gradient(180deg, #fff6f8, #fdeef1);
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.2fr 0.85fr;
  gap: clamp(22px, 4vw, 54px);
  max-width: 1100px;
  margin: 0 auto;
}

.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 46px;
  font-size: 1.04rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--ink);
}

.foot address {
  margin-top: 8px;
  font-style: normal;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--muted);
}

.foot dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
  margin: 0;
}

.foot dt {
  margin: 0;
}

.foot dt a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  font-size: 0.98rem;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms var(--ease), color 200ms var(--ease);
}

.foot dt a:hover {
  color: #b8475f;
  border-bottom-color: var(--ink);
}

.foot-links {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot-links a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 0;
  font-size: 0.98rem;
  text-decoration: none;
  color: var(--ink);
}

.foot-links a:hover {
  color: #b8475f;
}

.foot-base {
  max-width: 1100px;
  margin: clamp(26px, 4vw, 44px) auto 0;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  text-align: center;
}

.foot-base p {
  margin: 0;
  font-size: 0.96rem;
  line-height: 1.7;
  color: var(--muted);
}

/* 进场动效 */
.js-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
}

.js-ready .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 260ms var(--ease) var(--d, 0ms), transform 260ms var(--ease) var(--d, 0ms);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .js-ready .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .cta:hover {
    transform: none;
  }
}

/* 断点 */
@media (max-width: 1040px) {
  .wrap {
    grid-template-columns: minmax(0, 1fr);
  }
  .rail {
    position: static;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }
  .body {
    max-width: none;
  }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding-top: clamp(22px, 5vw, 40px);
  }
  .hero-copy {
    max-width: 40ch;
  }
  .hero-art {
    min-height: clamp(200px, 34vh, 340px);
    height: clamp(200px, 34vh, 340px);
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
  .foot-grid > .foot-col:last-child {
    grid-column: 1 / -1;
  }
  .foot-links {
    grid-auto-flow: column;
    gap: 0 20px;
    justify-content: start;
  }
}

@media (max-width: 680px) {
  .masthead {
    gap: 4px;
    padding-bottom: 8px;
  }
  .topnav {
    flex-wrap: nowrap;
    width: 100%;
    margin-left: 0;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .topnav::-webkit-scrollbar {
    display: none;
  }
  .topnav a {
    flex: 0 0 auto;
    white-space: nowrap;
    border: 1px solid var(--line-soft);
    background: rgba(255, 255, 255, 0.72);
  }
  .jump {
    grid-template-columns: 1fr 1fr;
    gap: 2px 8px;
  }
  .body > div {
    scroll-margin-top: 150px;
  }
  .foot-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .foot dl {
    gap: 0 10px;
  }
}

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