@import url('https://fonts.googleapis.com/css2?family=Didact+Gothic&family=Poiret+One&display=swap');

:root {
  --ink: #172617;
  --ink-2: #1e3524;
  --ink-3: #152a1b;
  --neon: #69ff69;
  --cyan: #00ffff;
  --pink: #ff69b4;
  --mint: #e6ffe9;
  --chrome: linear-gradient(135deg, #f4fff7 0%, #cbe9d6 26%, #8ee0b4 50%, #f0fff6 72%, #a9d9c2 100%);
  --glow: 0 0 16px rgba(105, 255, 105, 0.45), 0 0 40px rgba(0, 255, 255, 0.26);
  --r: 18px;
}

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

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

body {
  margin: 0;
  padding-bottom: 6.5rem;
  font-family: 'Didact Gothic', "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.78;
  color: var(--mint);
  background: var(--ink);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(0, 255, 255, 0.05) 0 1px, transparent 1px 4px);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% -12%, rgba(0, 255, 255, 0.18), transparent 60%),
    radial-gradient(circle at 90% 2%, rgba(255, 105, 180, 0.16), transparent 56%);
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: 'Poiret One', 'Didact Gothic', "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: 0.02em;
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--neon);
  text-decoration: none;
}

a:hover {
  color: var(--cyan);
}

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

hr {
  border: 0;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--pink), var(--neon), var(--cyan));
  margin: 0.9rem 0 1.3rem;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---------- 底部固定条 ---------- */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem clamp(0.7rem, 2.5vw, 1.6rem);
  background: linear-gradient(180deg, rgba(23, 38, 23, 0.74), rgba(9, 20, 12, 0.97));
  border-top: 1px solid rgba(105, 255, 105, 0.4);
  box-shadow: 0 -12px 34px rgba(0, 255, 255, 0.18);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
}

.dock-brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--chrome);
  color: #0b1a0e;
  font-family: 'Poiret One', 'Didact Gothic', "PingFang SC", sans-serif;
  font-size: 1rem;
  letter-spacing: 0.05em;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65), var(--glow);
  transition: transform 0.25s ease;
}

.dock-brand:hover {
  color: #0b1a0e;
  transform: translateY(-2px);
}

.dock-brand span {
  white-space: nowrap;
}

.dock-mark {
  width: 26px;
  height: 26px;
  border-radius: 50%;
}

.dock-nav {
  flex: 1 1 auto;
  min-width: 0;
  margin-left: auto;
}

.dock-list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.3rem;
  padding: 0.15rem;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.dock-list li {
  flex: 0 0 auto;
}

.dock-list a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 1rem;
  color: rgba(230, 255, 233, 0.86);
  white-space: nowrap;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.dock-list a:hover,
.dock-list a.on {
  color: #0b1a0e;
  background: linear-gradient(135deg, #b6ffd0, #69ff69 55%, #00ffff);
  box-shadow: var(--glow);
  transform: translateY(-2px);
}

/* ---------- 头图 ---------- */
.hero {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(1.4rem, 5vw, 3.6rem) clamp(1rem, 5vw, 4rem) clamp(5rem, 10vw, 8rem);
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 5vw));
  background:
    radial-gradient(circle at 76% 42%, rgba(0, 255, 255, 0.18), transparent 55%),
    radial-gradient(circle at 20% 76%, rgba(255, 105, 180, 0.22), transparent 60%);
}

.hero-ghost {
  position: absolute;
  left: 2vw;
  top: 11%;
  z-index: 1;
  margin: 0;
  font-family: 'Poiret One', 'Didact Gothic', "PingFang SC", sans-serif;
  font-size: clamp(2.4rem, 11vw, 9rem);
  line-height: 0.9;
  letter-spacing: 0.03em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(105, 255, 105, 0.38);
  text-shadow: 0 0 26px rgba(0, 255, 255, 0.32);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(40rem, 100%);
  margin-left: auto;
  text-align: right;
}

.hero-title {
  font-size: clamp(1.9rem, 6.4vw, 3.5rem);
  color: #eaffee;
  text-shadow: 0 0 18px rgba(105, 255, 105, 0.62), 0 0 44px rgba(0, 255, 255, 0.42);
}

.hero-rule {
  width: 7rem;
  margin: 1.1rem 0 1.1rem auto;
}

.hero-lede {
  font-size: 1.05rem;
  color: rgba(230, 255, 233, 0.85);
}

.hero-shot {
  margin: 1.4rem 0 0;
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5), var(--glow);
}

.hero-img {
  width: 100%;
  height: clamp(140px, 26vw, 250px);
  object-fit: cover;
  filter: saturate(1.15) contrast(1.05);
}

.hero-bubble {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  opacity: 0.55;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.95), rgba(255, 105, 180, 0.5) 42%, rgba(0, 255, 255, 0.32) 70%, transparent 76%);
  box-shadow: var(--glow);
  animation: float 9s ease-in-out infinite;
}

.b1 {
  width: 62px;
  height: 62px;
  left: 8%;
  top: 15%;
}

.b2 {
  width: 34px;
  height: 34px;
  left: 32%;
  top: 64%;
  animation-delay: -3s;
}

.b3 {
  width: 92px;
  height: 92px;
  right: 5%;
  top: 7%;
  animation-delay: -6s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-16px);
  }
}

/* ---------- 主体 ---------- */
.page-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 17.5rem;
  align-items: start;
  gap: clamp(1rem, 3vw, 2.2rem);
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(1.6rem, 4vw, 3.4rem) clamp(1rem, 4vw, 2.6rem) 2rem;
}

.sheet {
  padding: clamp(1.1rem, 3.2vw, 2.4rem);
  border-radius: var(--r);
  background: var(--ink-2);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.46), inset 0 0 46px rgba(0, 255, 255, 0.07);
}

.flow section[id] {
  scroll-margin-top: 1.5rem;
  scroll-margin-bottom: 6rem;
}

.flow section + section {
  margin-top: 2.4rem;
  padding-top: 2rem;
  border-top: 1px dashed rgba(0, 255, 255, 0.22);
}

.flow h2 {
  font-size: clamp(1.45rem, 3.4vw, 2rem);
  color: #f2fff6;
  text-shadow: 0 0 16px rgba(105, 255, 105, 0.5);
}

.flow h3 {
  margin-top: 1.5rem;
  font-size: 1.22rem;
  color: var(--cyan);
}

.flow hr {
  width: 5rem;
  background: linear-gradient(90deg, var(--neon), var(--cyan));
}

.flow p {
  line-height: 1.86;
}

.flow ul,
.flow ol {
  margin: 0 0 1.1em;
  padding-left: 1.4rem;
  list-style: disc;
}

.flow ol {
  list-style: decimal;
}

.flow li {
  margin: 0.35em 0;
}

.flow a {
  color: var(--cyan);
  text-decoration: underline;
  text-decoration-color: rgba(0, 255, 255, 0.5);
  text-underline-offset: 3px;
}

.flow strong {
  color: #ffffff;
}

.flow blockquote {
  margin: 1.2em 0;
  padding: 0.85em 1.1em;
  border-left: 3px solid var(--pink);
  border-radius: 0 var(--r) var(--r) 0;
  background: rgba(255, 105, 180, 0.1);
}

.flow table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}

.flow th,
.flow td {
  padding: 0.5em 0.6em;
  border-bottom: 1px solid rgba(105, 255, 105, 0.2);
  text-align: left;
}

/* ---------- 侧栏 ---------- */
.rail {
  position: sticky;
  top: 1.4rem;
  padding: 1.1rem 1.1rem 1.2rem;
  border-radius: var(--r);
  background: var(--ink-3);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42), inset 0 0 30px rgba(0, 255, 255, 0.08);
}

.rail-title {
  font-size: 1.15rem;
  letter-spacing: 0.2em;
  color: var(--neon);
  text-shadow: 0 0 14px rgba(105, 255, 105, 0.6);
}

.rail hr {
  width: 3rem;
  margin: 0.7rem 0 1rem;
}

.rail-list {
  display: grid;
  gap: 0.25rem;
}

.rail-list a {
  display: block;
  min-height: 42px;
  padding: 0.5rem 0.7rem;
  border-radius: 12px;
  font-size: 1rem;
  color: rgba(230, 255, 233, 0.85);
  transition: background 0.2s ease, color 0.2s ease;
}

.rail-list a:hover,
.rail-list a.on {
  color: #ffffff;
  background: rgba(105, 255, 105, 0.16);
}

.rail-back {
  margin: 1rem 0 0;
}

.rail-back a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  background: var(--chrome);
  color: #0b1a0e;
  font-size: 0.98rem;
  box-shadow: var(--glow);
}

.rail-back a:hover {
  color: #0b1a0e;
}

/* ---------- 页脚 ---------- */
.foot {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.6rem;
  max-width: 1180px;
  margin: 0 auto;
  padding: 2rem clamp(1rem, 4vw, 2.6rem) 2.4rem;
  border-top: 1px solid rgba(105, 255, 105, 0.25);
  background:
    radial-gradient(circle at 92% 0%, rgba(255, 105, 180, 0.14), transparent 62%),
    radial-gradient(circle at 5% 100%, rgba(0, 255, 255, 0.14), transparent 62%);
}

.foot h3 {
  margin-bottom: 0.6rem;
  font-size: 1.02rem;
  letter-spacing: 0.22em;
  color: var(--cyan);
}

.foot-name {
  margin: 0 0 0.4rem;
  font-family: 'Poiret One', 'Didact Gothic', "PingFang SC", sans-serif;
  font-size: 1.3rem;
  color: #eaffee;
  text-shadow: 0 0 16px rgba(105, 255, 105, 0.55);
}

.foot-desc {
  margin: 0;
  font-size: 0.98rem;
  color: rgba(230, 255, 233, 0.72);
}

.foot-links ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 0.45rem;
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.3rem 0.6rem;
  border-radius: 10px;
  font-size: 1rem;
  color: rgba(230, 255, 233, 0.82);
}

.foot-links a:hover {
  color: #ffffff;
  background: rgba(0, 255, 255, 0.14);
}

.foot-copy {
  grid-column: 1 / -1;
  margin: 1.2rem 0 0;
  padding-top: 1rem;
  border-top: 1px dashed rgba(0, 255, 255, 0.2);
  text-align: center;
  font-size: 0.95rem;
  color: rgba(230, 255, 233, 0.62);
}

/* ---------- 入场 ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.js [data-reveal].in {
  opacity: 1;
  transform: none;
}

/* ---------- 断点 ---------- */
@media (max-width: 860px) {
  .page-main {
    grid-template-columns: 1fr;
    padding-bottom: 1rem;
  }

  .rail {
    position: static;
    order: 2;
  }

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

  .hero {
    align-items: flex-end;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 8vw));
  }

  .hero-ghost {
    left: 4vw;
    top: 8%;
    font-size: clamp(2.2rem, 12vw, 4.6rem);
    opacity: 0.8;
  }

  .hero-inner {
    width: 100%;
  }
}

@media (max-width: 420px) {
  body {
    font-size: 16px;
  }

  .dock {
    gap: 0.4rem;
    padding: 0.45rem 0.55rem;
  }

  .dock-brand {
    padding: 0.45rem 0.75rem;
  }

  .dock-list a {
    padding: 0.5rem 0.7rem;
  }
}

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

  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-bubble {
    animation: none;
  }

  * {
    transition-duration: 0.01ms !important;
  }
}

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