@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@300;400;500;600;700&family=Syne:wght@400;500;600;700&display=swap');

:root {
  --coral: #eb879c;
  --pink: #ffb6c1;
  --plum: #26171a;
  --plum-deep: #190e11;
  --plum-soft: #322025;
  --text: #f9eef1;
  --muted: #d6bfc5;
  --line: rgba(235, 135, 156, 0.28);
  --line-soft: rgba(255, 182, 193, 0.16);
  --radius: 18px;
  --shadow-soft: 0 2px 4px rgba(0, 0, 0, 0.32), 0 16px 36px -20px rgba(0, 0, 0, 0.62);
  --pad-x: clamp(16px, 4vw, 44px);
}

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

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

body {
  margin: 0;
  overflow-x: clip;
  font-family: 'Manrope', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--plum-deep);
  background-image:
    radial-gradient(900px 620px at 8% -12%, rgba(235, 135, 156, 0.22), transparent 62%),
    radial-gradient(720px 520px at 102% 4%, rgba(255, 182, 193, 0.13), transparent 58%),
    linear-gradient(180deg, #190e11 0%, #26171a 52%, #1b1013 100%);
}

a {
  color: var(--pink);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
  border-radius: 6px;
}

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

h1,
h2,
h3,
.cta-word,
.hero-big,
.num {
  font-family: 'Syne', 'Manrope', 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

/* 顶部细条与主栏 */
.strip {
  margin: 0;
  padding: 7px var(--pad-x);
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  color: #241317;
  background: linear-gradient(90deg, var(--coral), var(--pink) 60%, var(--coral));
}

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  padding: 14px var(--pad-x) 15px;
  border-bottom: 1px solid var(--line-soft);
}

.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(150deg, rgba(235, 135, 156, 0.24), rgba(38, 23, 26, 0.7));
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  transition: transform 240ms ease, border-color 240ms ease;
}

.mark:hover {
  transform: translateY(-2px) rotate(-3deg);
  border-color: var(--pink);
}

.mark-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 8px;
}

.mark-glyph {
  font-size: 1.05rem;
  color: var(--pink);
  letter-spacing: 0;
}

.mainnav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 2px;
  min-width: 0;
}

.mainnav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 13px 8px 15px;
  border-radius: 999px;
  font-size: 0.94rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 220ms ease, background-color 220ms ease;
}

.mainnav a::before {
  content: '';
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 2px;
  background: var(--coral);
  transform: rotate(45deg);
  transition: transform 240ms ease, background-color 240ms ease;
}

.mainnav a:hover {
  color: var(--text);
  background: rgba(235, 135, 156, 0.12);
}

.mainnav a:hover::before {
  background: var(--pink);
  transform: rotate(45deg) scale(1.35);
}

/* 粘性锚点条 */
.anchorbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  gap: 6px;
  padding: 9px var(--pad-x);
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--line);
  background: rgba(25, 14, 17, 0.9);
  backdrop-filter: blur(10px);
}

.anchorbar::-webkit-scrollbar {
  display: none;
}

.anchorbar a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 8px 14px;
  white-space: nowrap;
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: color 220ms ease, border-color 220ms ease, background-color 220ms ease;
}

.anchorbar a:hover {
  color: var(--text);
  border-color: var(--line);
  background: rgba(235, 135, 156, 0.12);
}

.anchorbar .num {
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--coral);
}

/* 首屏 */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: center;
  gap: clamp(24px, 5vw, 56px);
  min-height: 70vh;
  padding: clamp(30px, 5vw, 58px) var(--pad-x) clamp(34px, 5vw, 64px);
}

.hero-copy h1 {
  margin: 0;
  max-width: 17ch;
  font-size: clamp(2rem, 4.6vw, 3.5rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  color: #fff6f8;
}

.hero-copy h1::after {
  content: '';
  display: block;
  width: 96px;
  height: 4px;
  margin-top: 20px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--coral), var(--pink));
}

.hero-art {
  position: relative;
  min-height: clamp(320px, 52vh, 480px);
}

.hero-big {
  position: absolute;
  top: -12%;
  left: -3%;
  z-index: 0;
  font-size: clamp(6rem, 17vw, 14rem);
  line-height: 0.82;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 182, 193, 0.34);
  pointer-events: none;
}

.tile {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(150deg, rgba(235, 135, 156, 0.28), rgba(38, 23, 26, 0.65));
  box-shadow: var(--shadow-soft);
  transform: rotate(var(--rot, 0deg));
  will-change: transform;
}

.tile-a {
  top: 4%;
  left: 0;
  z-index: 2;
  width: 64%;
  aspect-ratio: 3 / 4;
  --rot: -3deg;
}

.tile-b {
  right: 0;
  bottom: 0;
  z-index: 1;
  width: 56%;
  aspect-ratio: 4 / 5;
  --rot: 3.5deg;
}

.tile-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ph {
  display: block;
  width: 100%;
  height: 100%;
  background:
    repeating-linear-gradient(135deg, rgba(255, 182, 193, 0.12) 0 8px, transparent 8px 16px),
    linear-gradient(160deg, rgba(235, 135, 156, 0.3), rgba(38, 23, 26, 0.5));
}

/* 正文区：aside 在左 */
.doc {
  display: grid;
  grid-template-columns: minmax(0, 218px) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 52px);
  align-items: start;
  padding: clamp(28px, 5vw, 54px) var(--pad-x) clamp(40px, 6vw, 72px);
  max-width: 1180px;
  margin: 0 auto;
}

.side {
  position: sticky;
  top: 84px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(170deg, rgba(50, 32, 37, 0.9), rgba(37, 22, 26, 0.9));
  box-shadow: var(--shadow-soft);
}

.side-title {
  margin: 0 0 10px;
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  color: var(--coral);
}

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

.side-list a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 6px 8px;
  border-radius: 10px;
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--muted);
  text-decoration: none;
  transition: color 220ms ease, background-color 220ms ease;
}

.side-list a:hover {
  color: var(--text);
  background: rgba(235, 135, 156, 0.14);
}

.side-list .num {
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  color: var(--coral);
}

.doc-body {
  min-width: 0;
}

.doc-body > h2 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #fff5f7;
}

.subtitle {
  margin: 0 0 28px;
  max-width: 62ch;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--muted);
}

.doc-body h2 {
  margin: 2rem 0 0.6rem;
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #fff5f7;
}

.doc-body h3 {
  margin: 1.6rem 0 0.5rem;
  font-size: 1.14rem;
  line-height: 1.35;
  color: var(--pink);
}

.doc-body p {
  margin: 0 0 1.05rem;
  color: #f0e2e6;
}

.doc-body ul,
.doc-body ol {
  margin: 0 0 1.2rem;
  padding-left: 1.25rem;
}

.doc-body li {
  margin-bottom: 0.45rem;
}

.doc-body li::marker {
  color: var(--coral);
}

.doc-body strong {
  color: #fff6f8;
}

.doc-body blockquote {
  margin: 1.4rem 0;
  padding: 14px 20px;
  border-left: 3px solid var(--coral);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(235, 135, 156, 0.1);
  color: #f4e6e9;
}

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

.doc-body figure {
  margin: 1.4rem 0;
}

.doc-body figure img,
.doc-body > p img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

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

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

.doc-body th {
  color: var(--pink);
  font-weight: 600;
}

.doc-body section[id] {
  scroll-margin-top: 96px;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-soft);
}

.doc-body section[id] > h2:first-child {
  margin-top: 0.9rem;
}

/* 页脚 */
.foot {
  padding: clamp(28px, 5vw, 52px) var(--pad-x) clamp(22px, 4vw, 36px);
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(38, 23, 26, 0.4), rgba(20, 12, 14, 0.9));
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid rgba(235, 135, 156, 0.45);
  border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(235, 135, 156, 0.2), rgba(255, 182, 193, 0.05));
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3), 0 26px 52px -32px rgba(235, 135, 156, 0.55);
}

.cta-word {
  margin: 0;
  font-size: clamp(1.35rem, 3.4vw, 2.3rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #fff4f7;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #241317;
  text-decoration: none;
  background: linear-gradient(90deg, var(--coral), var(--pink));
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -14px rgba(235, 135, 156, 0.9);
}

.footnav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: 22px 28px;
  margin-top: clamp(28px, 4vw, 42px);
}

.footnav dl {
  margin: 0;
  padding: 0;
}

.footnav dt {
  margin-bottom: 6px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  color: var(--coral);
  font-family: 'Syne', 'Manrope', sans-serif;
}

.footnav dd {
  margin: 0;
}

.footnav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 0;
  font-size: 0.92rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 220ms ease, transform 220ms ease;
}

.footnav a:hover {
  color: var(--pink);
  transform: translateX(3px);
  text-decoration: underline;
}

.legal {
  margin-top: clamp(24px, 4vw, 36px);
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.legal p {
  margin: 0 0 4px;
}

.legal a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 2px 10px;
  color: var(--muted);
  text-decoration: none;
}

.legal a:hover {
  color: var(--pink);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding-top: 26px;
  }

  .hero-copy h1 {
    max-width: 22ch;
    font-size: clamp(1.9rem, 7vw, 2.6rem);
  }

  .hero-art {
    min-height: 330px;
  }

  .hero-big {
    left: 0;
  }

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

  .side {
    position: static;
  }

  .side-list {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 4px;
  }

  .side-list::-webkit-scrollbar {
    display: none;
  }

  .side-list li {
    margin: 0;
  }

  .side-list a {
    white-space: nowrap;
    border: 1px solid var(--line-soft);
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16.5px;
  }

  .mainnav {
    gap: 2px;
    width: 100%;
  }

  .mainnav a {
    padding: 8px 10px;
    font-size: 0.9rem;
  }

  .hero-art {
    min-height: 300px;
  }

  .cta {
    flex-direction: column;
    align-items: flex-start;
  }

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

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .tile {
    transform: rotate(var(--rot, 0deg)) !important;
  }
}

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