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

:root {
  --rose: #FF2E63;
  --navy: #1B1B3A;
  --navy2: #24244b;
  --navy3: #32325f;
  --lemon: #FFC93C;
  --ink: #FFFFFF;
  --muted: #B9BADF;
  --r: 28px;
  --dock: 94px;
}

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

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

body {
  margin: 0;
  background: var(--navy);
  color: var(--ink);
  font-family: 'Poppins', "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.75;
  padding-bottom: calc(var(--dock) + 26px);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
  border-radius: 16px;
}

a {
  color: inherit;
}

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

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px);
}

/* ---- 底部固定导航条 ---- */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px clamp(10px, 2vw, 22px);
  background: var(--navy2);
  border-top: 3px solid var(--lemon);
  border-radius: var(--r) var(--r) 0 0;
  box-shadow: 0 -14px 34px rgba(6, 6, 20, .5);
}

.dock .side {
  display: flex;
  gap: 2px;
  flex: 1 1 0;
  min-width: 0;
}

.dock .side.l {
  justify-content: flex-end;
}

.dock .side.r {
  justify-content: flex-start;
}

.dock a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 14px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background .16s ease, color .16s ease;
}

.dock a::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: var(--lemon);
  flex: 0 0 auto;
}

.dock a:hover {
  background: var(--navy3);
  color: var(--lemon);
}

.bmark {
  font-family: 'Righteous', 'Poppins', sans-serif;
  font-size: 20px;
  letter-spacing: .5px;
  color: var(--lemon);
  text-decoration: none;
  padding: 0 18px;
  white-space: nowrap;
  flex: 0 0 auto;
}

.bmark::before {
  display: none;
}

.dock .cta {
  flex: 0 0 auto;
  background: var(--rose);
  color: #fff;
  font-weight: 700;
  padding: 0 20px;
}

.dock .cta::before {
  background: var(--lemon);
}

.dock .cta:hover {
  background: #fff;
  color: var(--rose);
}

/* ---- 首屏 ---- */
.hero {
  padding: clamp(26px, 5vw, 52px) 0 clamp(16px, 3vw, 30px);
}

.hero-card {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(22px, 4vw, 52px);
  align-items: center;
  min-height: calc(100vh - var(--dock) - 80px);
}

.hero-copy {
  min-width: 0;
}

.hero-copy h1 {
  margin: 0 0 20px;
  font-size: clamp(31px, 4.6vw, 56px);
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: -.4px;
}

.lead {
  margin: 0 0 26px;
  max-width: 32em;
  color: var(--muted);
  font-size: 17px;
}

.go {
  display: inline-flex;
  align-items: center;
  min-height: 50px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--rose);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: background .18s ease, color .18s ease;
}

.go:hover {
  background: var(--lemon);
  color: var(--navy);
}

.hero-art {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r);
  overflow: hidden;
  border: 6px solid var(--rose);
  background: var(--navy3);
}

.dotgrid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--lemon) 2px, transparent 2px);
  background-size: 18px 18px;
  opacity: .3;
  z-index: 0;
}

.hero-art .slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  opacity: 0;
  transition: opacity .5s ease;
  z-index: 1;
}

.hero-art .slide.on {
  opacity: 1;
}

.blk {
  position: absolute;
  z-index: 2;
  display: block;
}

.b1 {
  width: 62px;
  height: 62px;
  left: 14px;
  bottom: 14px;
  background: var(--lemon);
  border-radius: 6px;
  transform: rotate(-12deg);
}

.b2 {
  width: 44px;
  height: 44px;
  right: 16px;
  top: 16px;
  background: var(--rose);
  border-radius: 50%;
  border: 4px solid var(--navy);
}

/* ---- 侧栏 + 正文 ---- */
.split {
  display: grid;
  grid-template-columns: 258px minmax(0, 1fr);
  gap: clamp(18px, 3vw, 36px);
  align-items: start;
  padding-bottom: 44px;
}

.rail {
  position: sticky;
  top: 18px;
  background: var(--navy2);
  border-left: 6px solid var(--lemon);
  border-radius: 24px;
  padding: 20px 18px;
  min-width: 0;
}

.rail h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 800;
  color: var(--rose);
}

.rail .subtitle {
  margin: 8px 0 16px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

.toc ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc li + li {
  margin-top: 4px;
}

.toc a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  background: var(--navy3);
  transition: background .16s ease, color .16s ease;
}

.toc a:hover {
  background: var(--rose);
  color: #fff;
}

.doc {
  counter-reset: sec;
  min-width: 0;
}

.doc > section {
  position: relative;
  background: var(--navy2);
  border-left: 6px solid var(--rose);
  border-radius: var(--r);
  padding: clamp(20px, 3vw, 36px);
  margin-bottom: 24px;
  scroll-margin-top: 24px;
  scroll-margin-bottom: calc(var(--dock) + 24px);
  box-shadow: 0 16px 36px rgba(8, 8, 24, .38);
}

.doc > section::before {
  counter-increment: sec;
  content: counter(sec, decimal-leading-zero);
  position: absolute;
  top: 12px;
  right: 22px;
  font-family: 'Righteous', 'Poppins', sans-serif;
  font-size: 28px;
  line-height: 1;
  color: var(--rose);
  opacity: .55;
}

.doc > section:nth-child(even) {
  background: var(--lemon);
  color: var(--navy);
  border-left-color: var(--navy);
}

.doc > section:nth-child(even)::before {
  color: var(--navy);
  opacity: .5;
}

.doc > section:nth-child(even) a {
  color: #8d0f33;
}

.doc h2 {
  margin: 0 0 14px;
  padding-right: 44px;
  font-size: clamp(21px, 2.3vw, 30px);
  line-height: 1.32;
  font-weight: 800;
}

.doc h3 {
  margin: 24px 0 8px;
  font-size: 19px;
  line-height: 1.4;
  font-weight: 700;
}

.doc p {
  margin: 0 0 14px;
}

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

.doc ul,
.doc ol {
  margin: 0 0 14px;
  padding-left: 1.3em;
}

.doc li {
  margin: 6px 0;
}

.doc strong {
  font-weight: 700;
}

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

.doc blockquote {
  margin: 0 0 14px;
  padding: 12px 16px;
  border-left: 4px solid var(--rose);
  background: rgba(0, 0, 0, .16);
  border-radius: 0 12px 12px 0;
}

.doc > section:nth-child(even) blockquote {
  background: rgba(255, 255, 255, .5);
}

.doc img {
  margin: 14px 0;
  border-radius: 16px;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}

.doc th,
.doc td {
  border-bottom: 2px solid currentColor;
  padding: 8px 6px;
  text-align: left;
}

.stagger {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .45s ease, transform .45s ease;
}

.stagger.in {
  opacity: 1;
  transform: none;
}

/* ---- 页脚 ---- */
.foot {
  background: var(--navy2);
  border-top: 4px solid var(--lemon);
  border-radius: var(--r) var(--r) 0 0;
  padding: clamp(28px, 5vw, 56px) clamp(16px, 4vw, 40px) 26px;
  margin-top: 12px;
}

.f-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto 30px;
}

.f-mark {
  display: inline-block;
  font-family: 'Righteous', 'Poppins', sans-serif;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.2;
  color: var(--lemon);
  text-decoration: none;
}

.f-about {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px 0 18px;
  font-size: 16px;
  color: var(--muted);
  text-decoration: none;
}

.f-about:hover {
  color: var(--lemon);
}

.f-form {
  display: flex;
  gap: 8px;
  min-width: 0;
}

.f-form input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 48px;
  padding: 0 14px;
  border: 2px solid var(--navy3);
  border-radius: 14px;
  background: var(--navy);
  color: var(--ink);
  font-size: 16px;
  font-family: inherit;
}

.f-form input::placeholder {
  color: var(--muted);
}

.f-form button {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 14px;
  background: var(--rose);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background .16s ease, color .16s ease;
}

.f-form button:hover {
  background: var(--lemon);
  color: var(--navy);
}

.f-mid {
  max-width: 1180px;
  margin: 0 auto 22px;
}

.fnav dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  column-gap: 34px;
  margin: 0;
}

.fnav dt {
  margin: 12px 0 0;
}

.fnav dt a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.fnav dt a::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--rose);
  flex: 0 0 auto;
}

.fnav dt a:hover {
  color: var(--lemon);
}

.fnav dd {
  margin: 2px 0 8px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted);
}

.fnav dd a {
  text-decoration: none;
  color: inherit;
}

.fnav dd a:hover {
  color: var(--lemon);
}

.f-end {
  max-width: 1180px;
  margin: 0 auto;
  padding-top: 16px;
  border-top: 2px solid var(--navy3);
  color: var(--muted);
  font-size: 16px;
}

/* ---- 断点 ---- */
@media (max-width: 1000px) {
  .hero-card {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 24px;
  }

  .hero-art {
    aspect-ratio: 16 / 11;
  }

  .split {
    grid-template-columns: 1fr;
  }

  .rail {
    position: static;
  }

  .f-top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  :root {
    --dock: 104px;
  }

  .dock {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    padding-bottom: 12px;
  }

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

  .bmark {
    order: -1;
    padding: 0 8px;
    font-size: 19px;
  }

  .dock .side {
    flex: 0 0 auto;
  }
}

@media (max-width: 560px) {
  .doc > section {
    border-radius: 22px;
    border-left-width: 5px;
  }

  .doc > section::before {
    font-size: 22px;
    right: 16px;
  }

  .doc h2 {
    padding-right: 34px;
  }

  .hero-art {
    border-width: 4px;
    border-radius: 22px;
  }

  .b1 {
    width: 46px;
    height: 46px;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .stagger {
    opacity: 1;
    transform: none;
  }
}

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