:root {
  --ink: #26171a;
  --ink2: #5f464a;
  --rose: #eb879c;
  --pink: #ffb6c1;
  --blush: #fdf2f3;
  --paper: #fffbfb;
  --line: #eed6d9;
  --sh1: 0 1px 2px rgba(38, 23, 26, 0.06), 0 4px 12px rgba(38, 23, 26, 0.05);
  --sh2: 0 2px 4px rgba(38, 23, 26, 0.07), 0 12px 30px rgba(38, 23, 26, 0.09);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--blush);
  background-image: radial-gradient(circle at 12% 8%, rgba(255, 182, 193, 0.32), transparent 42%),
    radial-gradient(circle at 88% 0%, rgba(235, 135, 156, 0.18), transparent 38%);
  background-repeat: no-repeat;
  color: var(--ink);
  font-family: "Noto Sans SC", system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.8;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 9px 20px;
  background: rgba(253, 242, 243, 0.94);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--pink);
  box-shadow: 0 2px 10px rgba(38, 23, 26, 0.05);
}

.logo {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--paper);
  box-shadow: var(--sh1);
  border-bottom: 3px solid var(--rose);
  text-decoration: none;
  overflow: hidden;
}

.logo-i {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 4px;
}

.logo-t {
  font-weight: 700;
  color: var(--rose);
  font-size: 1.15rem;
}

.topnav {
  display: flex;
  flex: 1;
  gap: 2px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: thin;
}

.tnav-a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 12px;
  min-height: 44px;
  color: var(--ink2);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color 200ms ease, background-color 200ms ease, border-color 200ms ease;
}

.tnav-a:hover {
  color: var(--ink);
  background: rgba(255, 182, 193, 0.24);
  border-bottom-color: var(--rose);
}

.dot {
  width: 10px;
  height: 10px;
  flex: none;
  fill: var(--rose);
}

.topbar-cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  box-shadow: var(--sh1);
  border-bottom: 3px solid var(--rose);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.topbar-cta:hover {
  transform: translateY(-1px);
  box-shadow: var(--sh2);
}

.stage {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  padding: 26px 20px 54px;
}

.rail {
  position: sticky;
  top: 92px;
  background: var(--paper);
  box-shadow: var(--sh1);
  border-bottom: 3px solid var(--pink);
  padding: 14px 12px 18px;
}

.rail-t {
  margin: 0 0 8px;
  padding-left: 8px;
  font-size: 0.76rem;
  letter-spacing: 0.22em;
  color: var(--rose);
  font-weight: 500;
}

.rail-nav {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.rail-nav a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 10px;
  color: var(--ink2);
  text-decoration: none;
  font-size: 0.93rem;
  line-height: 1.5;
  border-left: 2px solid transparent;
  transition: color 200ms ease, background-color 200ms ease, border-color 200ms ease;
}

.rail-nav a:hover,
.rail-nav a.on {
  color: var(--ink);
  background: #fdeef0;
  border-left-color: var(--rose);
}

.col {
  min-width: 0;
  max-width: 820px;
}

.col [id] {
  scroll-margin-top: 100px;
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  gap: 30px;
  min-height: 45vh;
  padding: 26px 30px 34px;
  background: linear-gradient(135deg, #ffffff 0%, #fdeef0 56%, #ffdde5 100%);
  box-shadow: var(--sh2);
  border-bottom: 5px solid var(--rose);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: -46px;
  bottom: -72px;
  width: 260px;
  height: 150px;
  background: rgba(255, 182, 193, 0.4);
  transform: rotate(-12deg);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 0.82rem;
  letter-spacing: 0.26em;
  color: #c25168;
  font-weight: 500;
}

.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(1.9rem, 4.6vw, 3rem);
  line-height: 1.24;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 22px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  box-shadow: var(--sh1);
  border-bottom: 3px solid var(--rose);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.hero-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--sh2);
}

.hero-art {
  position: relative;
  z-index: 1;
  flex: none;
  width: 208px;
  margin: 0;
  transform: rotate(2deg);
  will-change: transform;
}

.hero-art img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: var(--sh2);
}

.art-fb {
  display: block;
  width: 100%;
  height: auto;
  padding: 14px;
  background: var(--paper);
  box-shadow: var(--sh2);
  border-bottom: 4px solid var(--rose);
  fill: none;
  stroke: var(--rose);
  stroke-width: 3;
  stroke-linecap: square;
}

.col section {
  padding: 6px 0 2px;
  margin: 0 0 34px;
}

.col section + section {
  border-top: 1px solid var(--line);
  padding-top: 32px;
}

.col h2 {
  margin: 0 0 1rem;
  padding: 0 0 0.45rem 14px;
  font-size: 1.42rem;
  line-height: 1.4;
  font-weight: 700;
  border-left: 6px solid var(--rose);
  border-bottom: 3px solid var(--pink);
}

.col h2 span {
  display: inline;
}

.col h3 {
  margin: 1.6em 0 0.55em;
  padding-bottom: 0.3rem;
  font-size: 1.14rem;
  line-height: 1.5;
  border-bottom: 2px solid var(--pink);
}

.col p {
  margin: 0 0 1.05em;
}

.col ul,
.col ol {
  margin: 0 0 1.1em;
  padding-left: 1.35em;
}

.col li {
  margin: 0.35em 0;
}

.col a {
  color: #bd4b62;
  text-decoration: none;
  border-bottom: 1px solid rgba(235, 135, 156, 0.55);
  transition: color 200ms ease, border-color 200ms ease;
}

.col a:hover {
  color: #94324a;
  border-bottom-color: #94324a;
}

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

.col figure {
  margin: 1.4em 0;
  padding: 12px;
  background: var(--paper);
  box-shadow: var(--sh1);
  border-bottom: 3px solid var(--pink);
}

.col figure img {
  display: block;
  width: 100%;
}

.col figcaption {
  padding-top: 8px;
  font-size: 0.86rem;
  color: var(--ink2);
}

.col blockquote {
  margin: 1.4em 0;
  padding: 14px 18px;
  background: #fdeef0;
  border-left: 5px solid var(--rose);
  color: var(--ink2);
}

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

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

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

.foot {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 1px;
  background: var(--ink);
  color: #f8e9eb;
}

.foot > section {
  padding: 30px 26px;
}

.foot h2 {
  margin: 0 0 0.9rem;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.foot h2 span {
  padding-bottom: 2px;
  border-bottom: 2px solid currentColor;
}

.foot-cta {
  background: linear-gradient(135deg, #eb879c 0%, #ffb6c1 100%);
  color: var(--ink);
}

.foot-mark {
  margin: 0 0 18px;
  font-size: 1.28rem;
  font-weight: 700;
  line-height: 1.4;
}

.foot-btn {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  border-bottom: 3px solid #fff;
  transition: transform 220ms ease;
}

.foot-btn:hover {
  transform: translateY(-1px);
}

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

.foot-nav dt,
.foot-nav dd {
  margin: 0;
}

.foot-nav a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 0;
  color: #f3dfe2;
  text-decoration: none;
  font-size: 0.92rem;
  line-height: 1.5;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: color 200ms ease, padding-left 200ms ease, border-color 200ms ease;
}

.foot-nav a:hover {
  color: #fff;
  padding-left: 5px;
  border-bottom-color: var(--pink);
}

.foot-brand {
  margin: 0;
  font-size: 1.05rem;
  color: #ffdfe6;
  line-height: 1.6;
}

.foot-bar {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  padding: 14px 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.85rem;
  color: #dcc4c8;
}

.foot-bar .copy {
  margin: 0;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
}

.foot-bar a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  color: #f3dfe2;
  text-decoration: none;
  transition: color 200ms ease;
}

.foot-bar a:hover {
  color: #fff;
}

.totop {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 240ms ease, transform 240ms ease;
}

.totop.is-on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.totop a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  box-shadow: var(--sh2);
  border-bottom: 3px solid var(--rose);
}

@media (max-width: 900px) {
  .topbar {
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 14px;
  }

  .topnav {
    order: 3;
    flex-basis: 100%;
    gap: 0;
    border-top: 1px solid var(--line);
    padding-top: 4px;
  }

  .tnav-a {
    padding: 9px 10px;
  }

  .stage {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 16px 15px 42px;
  }

  .rail {
    position: static;
    padding: 8px 8px 10px;
  }

  .rail-t {
    margin-bottom: 4px;
  }

  .rail-nav {
    flex-direction: row;
    gap: 4px;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .rail-nav a {
    flex: none;
    padding: 8px 12px;
    white-space: nowrap;
    border-left: 0;
    border-bottom: 2px solid transparent;
  }

  .rail-nav a:hover,
  .rail-nav a.on {
    border-left: 0;
    border-bottom-color: var(--rose);
  }

  .hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    min-height: 0;
    padding: 22px 18px 26px;
  }

  .hero-art {
    width: 122px;
    align-self: flex-end;
    margin-top: -6px;
  }

  .foot {
    grid-template-columns: minmax(0, 1fr);
  }

  .foot > section {
    padding: 26px 20px;
  }
}

@media (preserves-reduced-motion: no-preference) {
  .hero-art img {
    transition: transform 240ms ease;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-art {
    transform: none !important;
  }

  .tnav-a,
  .topbar-cta,
  .hero-btn,
  .foot-btn,
  .foot-nav a,
  .rail-nav a,
  .totop,
  .col a {
    transition: none;
  }
}

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