@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+TC:wght@300;400;500;700&family=Noto+Serif+TC:wght@400;500;600;700&display=swap');

:root {
  --bg: #0a120a;
  --bg2: #101d10;
  --ink: #172617;
  --neon: #69ff69;
  --cyan: #00ffff;
  --pink: #ff6ec7;
  --txt: #d9ffd9;
  --dim: #9dc4a4;
  --line: rgba(105, 255, 105, 0.24);
  --serif: "Noto Serif TC", "Noto Serif", Georgia, serif;
  --sans: "Noto Sans TC", system-ui, -apple-system, "PingFang TC", "Microsoft JhengHei", sans-serif;
  --chrome: linear-gradient(152deg, #f4fff8, #8fa79a 34%, #ffffff 50%, #6f8a7d 68%, #e8fff0);
  --radius: 10px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  color: var(--txt);
  font: 400 17px/1.75 var(--sans);
  background:
    radial-gradient(1100px 620px at 84% -12%, rgba(0, 255, 255, 0.15), transparent 62%),
    radial-gradient(820px 520px at 6% 2%, rgba(255, 110, 199, 0.16), transparent 58%),
    var(--bg);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(1.6px 1.6px at 12% 18%, rgba(255, 255, 255, 0.75), transparent 60%),
    radial-gradient(1.4px 1.4px at 74% 8%, rgba(0, 255, 255, 0.8), transparent 60%),
    radial-gradient(1.8px 1.8px at 46% 62%, rgba(255, 110, 199, 0.65), transparent 60%),
    radial-gradient(1.4px 1.4px at 88% 46%, rgba(105, 255, 105, 0.7), transparent 60%),
    radial-gradient(1.3px 1.3px at 32% 86%, rgba(255, 255, 255, 0.6), transparent 60%);
  opacity: 0.7;
}

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

h1, h2, h3 { font-family: var(--serif); font-weight: 600; }

/* ---------- 顶栏 ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 11px clamp(12px, 3vw, 34px);
  background: rgba(10, 18, 10, 0.8);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid var(--line);
}

.top::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: linear-gradient(90deg, var(--neon), var(--cyan) 42%, var(--pink) 70%, var(--neon));
  opacity: 0.85;
}

.top__wing {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.top__wing nav { display: flex; flex-wrap: wrap; gap: 6px; }
.top__wing--r { justify-content: flex-end; }

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 15px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
  color: var(--txt);
  font-size: 16px;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.pill:hover,
.pill:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(0, 255, 255, 0.65);
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(0, 255, 255, 0.35), 0 12px 26px -12px rgba(0, 255, 255, 0.85);
}

.pill--cta {
  border-color: transparent;
  background: linear-gradient(135deg, var(--pink), var(--cyan));
  color: #08160a;
  font-weight: 700;
  box-shadow: 0 10px 24px -12px rgba(255, 110, 199, 0.9);
}

.pill--cta:hover,
.pill--cta:focus-visible { color: #051005; }

.brand {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  text-decoration: none;
  font-family: var(--serif);
  font-size: clamp(19px, 2.4vw, 25px);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand__ink {
  background: var(--chrome);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 12px rgba(0, 255, 255, 0.55));
}

/* ---------- 结构 ---------- */
main { position: relative; z-index: 1; }

.sheet { padding: 0 clamp(14px, 4vw, 40px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: start;
  gap: clamp(22px, 4vw, 42px);
  min-height: 100svh;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(46px, 9vw, 110px) 0 clamp(120px, 14vw, 170px);
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: -1px;
  height: clamp(96px, 14vw, 150px);
  background: linear-gradient(100deg, var(--neon), var(--cyan) 46%, var(--pink));
  clip-path: polygon(0 62%, 100% 0, 100% 100%, 0 100%);
  opacity: 0.9;
}

.hero__copy { position: relative; z-index: 2; text-align: left; }

.hero__h1 {
  margin: 0 0 26px;
  max-width: 20ch;
  font-size: clamp(2rem, 6.4vw, 3.9rem);
  line-height: 1.16;
  letter-spacing: -0.01em;
  color: #f2fff4;
  text-shadow: 0 0 26px rgba(105, 255, 105, 0.45), 3px 3px 0 rgba(0, 255, 255, 0.28);
}

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--pink), var(--cyan) 88%);
  color: #08160a;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
  box-shadow: 0 16px 34px -16px rgba(0, 255, 255, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 22px 40px -16px rgba(255, 110, 199, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.hero__figure {
  position: relative;
  z-index: 1;
  margin: 0;
  min-height: 180px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(0, 255, 255, 0.4);
  box-shadow: 0 30px 70px -38px rgba(0, 255, 255, 0.95), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.hero__figure--bare {
  background: linear-gradient(150deg, rgba(255, 110, 199, 0.22), rgba(0, 255, 255, 0.2));
}

.hero__pic {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
}

/* ---------- 分区 ---------- */
.frame {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  gap: clamp(18px, 3vw, 40px);
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(34px, 6vw, 70px) clamp(14px, 4vw, 40px) clamp(40px, 7vw, 80px);
}

.rail {
  position: sticky;
  top: 96px;
  align-self: start;
  padding: 18px 14px 20px;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 255, 255, 0.28);
  background: linear-gradient(180deg, rgba(0, 255, 255, 0.08), rgba(10, 18, 10, 0.5));
  box-shadow: 0 20px 44px -30px rgba(0, 255, 255, 0.9);
}

.rail__title {
  margin: 0 0 10px;
  font-size: 16px;
  letter-spacing: 0.22em;
  color: var(--pink);
  text-shadow: 0 0 12px rgba(255, 110, 199, 0.7);
}

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

.rail__list a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 4px 8px;
  border-radius: 8px;
  color: var(--txt);
  font-size: 16px;
  line-height: 1.35;
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.rail__list a:hover,
.rail__list a:focus-visible {
  background: rgba(105, 255, 105, 0.12);
  border-left-color: var(--neon);
  color: #ffffff;
}

.rail__spark {
  display: block;
  margin-top: 14px;
  text-align: center;
  color: var(--cyan);
  font-size: 18px;
  text-shadow: 0 0 14px rgba(0, 255, 255, 0.9);
}

.sheet--text { min-width: 0; }

.lead {
  padding: 0 0 clamp(18px, 3vw, 30px);
  border-bottom: 1px solid rgba(105, 255, 105, 0.2);
}

.lead h2 {
  margin: 0;
  font-size: clamp(1.35rem, 3.4vw, 2rem);
  line-height: 1.3;
  color: #f0fff2;
  text-shadow: 0 0 20px rgba(105, 255, 105, 0.32);
}

.subtitle {
  margin: 10px 0 0;
  max-width: 62ch;
  font-size: 17px;
  color: var(--dim);
}

.body { padding-top: clamp(20px, 3.5vw, 34px); }

.body > div {
  position: relative;
  margin: 0 0 clamp(24px, 4.5vw, 46px);
  padding: clamp(20px, 3.4vw, 36px);
  border-radius: var(--radius);
  border: 1px solid rgba(105, 255, 105, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012));
  box-shadow: 0 24px 50px -34px rgba(0, 255, 255, 0.8), 0 2px 0 rgba(255, 255, 255, 0.05) inset;
  scroll-margin-top: 110px;
}

.body > div::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 68px;
  height: 3px;
  border-top-left-radius: var(--radius);
  background: linear-gradient(90deg, var(--pink), var(--cyan));
}

.body > div:last-child { margin-bottom: 0; }

.body h2 {
  margin: 0 0 0.55em;
  font-size: clamp(1.22rem, 2.7vw, 1.62rem);
  line-height: 1.32;
  color: #ebffed;
  text-shadow: 0 0 16px rgba(105, 255, 105, 0.34);
}

.body h3 {
  margin: 1.5em 0 0.4em;
  font-size: 1.12rem;
  color: var(--cyan);
}

.body p { margin: 0 0 1em; }
.body p:last-child { margin-bottom: 0; }
.body ul,
.body ol { margin: 0 0 1em; padding-left: 1.35em; }
.body li { margin: 0.32em 0; }
.body li::marker { color: var(--neon); }
.body a { color: var(--cyan); text-underline-offset: 3px; }
.body a:hover { color: var(--neon); }
.body strong { color: #ffffff; }
.body blockquote {
  margin: 0 0 1em;
  padding: 10px 16px;
  border-left: 3px solid var(--pink);
  background: rgba(255, 110, 199, 0.1);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.body img { max-width: 100%; height: auto; border-radius: var(--radius); }

/* ---------- 页脚 ---------- */
.foot {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
  padding: 24px clamp(14px, 4vw, 40px);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(0, 255, 255, 0.06), transparent);
}

.foot__id { order: 0; }

.foot__logo {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: #ecfff0;
  text-shadow: 0 0 14px rgba(105, 255, 105, 0.5);
}

.foot__nav { order: 1; }

.foot__nav dl {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 6px;
  margin: 0;
}

.foot__nav dt {
  font-size: 16px;
  color: var(--pink);
  letter-spacing: 0.14em;
  margin-right: 4px;
}

.foot__nav dd { margin: 0; }

.foot__nav dd a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 6px;
  font-size: 16px;
  color: var(--dim);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.16s ease, border-color 0.16s ease;
}

.foot__nav dd a:hover,
.foot__nav dd a:focus-visible {
  color: #ffffff;
  border-bottom-color: var(--cyan);
}

.foot__meta { order: 2; }
.foot__meta p { margin: 0; font-size: 16px; color: var(--dim); }

/* ---------- 动效 ---------- */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .body > div {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry 2% cover 26%;
    }
  }
}

@keyframes rise {
  from { opacity: 0.35; transform: translateY(26px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pill, .btn, .rail__list a, .foot__nav dd a { transition: none; }
  .pill:hover, .btn:hover { transform: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .top {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 6px;
    padding-bottom: 9px;
  }

  .brand { order: -1; }

  .top__wing {
    width: 100%;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .top__wing::-webkit-scrollbar { display: none; }
  .top__wing--r { justify-content: flex-start; }
  .top__wing nav { flex-wrap: nowrap; }

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

  .rail {
    position: static;
    order: 2;
    margin-top: 6px;
  }

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

  .sheet--text { order: 1; }

  .hero { min-height: auto; padding-top: clamp(38px, 9vw, 64px); }
  .hero__h1 { max-width: 100%; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .foot { flex-direction: column; align-items: flex-start; }
  .hero__figure { min-height: 150px; }
  .rail__list { grid-template-columns: 1fr; }
}

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