@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');

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

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

body {
  margin: 0;
  width: 100%;
  min-height: 100vh;
  color: #f7eef6;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.78;
  font-weight: 400;
  overflow-x: hidden;
  background: transparent;
}

body::before {
  content: "";
  position: fixed;
  inset: -25% -25% -25% -25%;
  z-index: -2;
  background:
    radial-gradient(circle at 16% 20%, rgba(255, 0, 0, .55), rgba(255, 0, 0, 0) 44%),
    radial-gradient(circle at 80% 12%, rgba(255, 20, 147, .52), rgba(255, 20, 147, 0) 46%),
    radial-gradient(circle at 64% 80%, rgba(126, 46, 198, .5), rgba(126, 46, 198, 0) 52%),
    radial-gradient(circle at 26% 90%, rgba(255, 96, 60, .38), rgba(255, 96, 60, 0) 48%),
    linear-gradient(158deg, #1b0b19 0%, #0b0510 58%, #120718 100%);
  background-size: 180% 180%;
  filter: saturate(1.22);
  animation: drift 11s ease-in-out infinite alternate;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .16) 1px, rgba(0, 0, 0, 0) 1px);
  background-size: 24px 24px;
  opacity: .38;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, rgba(0, 0, 0, .25) 75%);
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, rgba(0, 0, 0, .25) 75%);
}

@keyframes drift {
  0%   { background-position: 0% 0%; }
  50%  { background-position: 60% 40%; }
  100% { background-position: 100% 100%; }
}

@keyframes spin {
  to { transform: rotate(360deg) scale(1.06); }
}

img { max-width: 100%; height: auto; display: block; }
menu { margin: 0; padding: 0; list-style: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 {
  font-family: "Noto Serif TC", "Songti TC", Georgia, serif;
  line-height: 1.32;
  margin: 0 0 .6rem;
  font-weight: 600;
  letter-spacing: .01em;
  overflow-wrap: break-word;
}

a { color: #ffb3d2; }

.skip {
  position: absolute;
  left: .8rem;
  top: -3rem;
  z-index: 60;
  padding: .6rem 1rem;
  border-radius: 999px;
  background: #ff1493;
  color: #fff;
  text-decoration: none;
  transition: top .2s ease;
}
.skip:focus { top: .8rem; }

:focus-visible {
  outline: 2px solid #ff1493;
  outline-offset: 3px;
}

/* ---------- 页头 ---------- */
.mast {
  padding: 1rem clamp(1rem, 4vw, 2.6rem) .9rem;
}

.mast-brand { display: flex; align-items: center; }

.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  min-height: 44px;
  text-decoration: none;
  color: #fff;
}

.brand-name {
  font-family: "Noto Serif TC", Georgia, serif;
  font-size: 1.32rem;
  font-weight: 700;
  letter-spacing: .16em;
}

.brand img { width: 34px; height: 34px; border-radius: 12px; }

.mark {
  width: 30px;
  height: 30px;
  border-radius: 11px;
  background: conic-gradient(from 0deg, #ff0000, #ff1493, #7e2ec6, #ff0000);
  filter: saturate(1.3);
  animation: spin 12s linear infinite;
}

.mast-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
  margin-top: .7rem;
  flex-wrap: wrap;
}

.menubar { display: flex; gap: .5rem; flex-wrap: wrap; min-width: 0; }

.dd { position: relative; }

.dd > summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 44px;
  padding: .5rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  font-size: .95rem;
  transition: background .22s ease, border-color .22s ease;
}
.dd > summary::-webkit-details-marker { display: none; }
.dd > summary::after {
  content: "▾";
  font-size: .7rem;
  color: #ff9ec4;
  transition: transform .22s ease;
}
.dd[open] > summary { background: rgba(255, 20, 147, .3); border-color: rgba(255, 20, 147, .6); }
.dd[open] > summary::after { transform: rotate(180deg); }
.dd > summary:hover { background: rgba(255, 255, 255, .14); }

.dd menu {
  position: absolute;
  top: calc(100% + .45rem);
  left: 0;
  min-width: 12rem;
  max-width: 15rem;
  z-index: 40;
  display: grid;
  gap: 2px;
  padding: .45rem;
  border-radius: 22px;
  background: #1d0f1e;
  border: 1px solid rgba(255, 255, 255, .13);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .55);
  animation: pop .18s ease-out both;
}
.dd:nth-of-type(2) menu { left: auto; right: 0; }

@keyframes pop {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

.dd menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: .45rem .8rem;
  border-radius: 15px;
  text-decoration: none;
  color: #f6e9f4;
  font-size: .95rem;
  white-space: nowrap;
  transition: background .2s ease, transform .2s ease;
}
.dd menu a:hover {
  background: linear-gradient(100deg, rgba(255, 0, 0, .45), rgba(255, 20, 147, .45));
  transform: translateX(2px);
}

.cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .55rem 1.25rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  color: #fff;
  letter-spacing: .06em;
  background: linear-gradient(115deg, #ff0000, #ff1493);
  box-shadow: 0 10px 26px rgba(255, 0, 0, .34);
  transition: transform .22s ease, box-shadow .22s ease;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(255, 20, 147, .45); }

/* ---------- 首屏 ---------- */
.sheet { min-width: 0; }

.hero {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: clamp(1.2rem, 4vw, 3rem);
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(1rem, 4vw, 2.4rem) clamp(1rem, 4vw, 2.6rem) clamp(2rem, 5vw, 3.5rem);
}

.hero-media { position: relative; min-width: 0; }

.hero-img {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}

.hero-orb {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  background: conic-gradient(from 200deg, #ff0000, #ff1493, #7e2ec6, #ff6a3d, #ff0000);
  filter: saturate(1.25) blur(.2px);
  animation: spin 12s linear infinite;
}

.hero-copy { text-align: right; min-width: 0; }

.kicker {
  margin: 0 0 .7rem;
  font-size: .82rem;
  letter-spacing: .38em;
  color: #ff9ec4;
}

.hero h1 {
  font-size: clamp(2.1rem, 5.6vw, 3.5rem);
  margin: 0 0 1rem;
  background: linear-gradient(102deg, #ffffff 8%, #ffd6e8 46%, #ff1493 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin: 0 0 1.4rem auto;
  max-width: 30ch;
  color: rgba(255, 240, 250, .8);
  font-size: 1rem;
}

.jump {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: .5rem 1.3rem;
  border-radius: 999px;
  text-decoration: none;
  color: #ffd6e8;
  border: 1px solid rgba(255, 20, 147, .55);
  transition: background .22s ease, color .22s ease;
}
.jump:hover { background: rgba(255, 20, 147, .28); color: #fff; }

/* ---------- 主体 ---------- */
.cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 296px;
  align-items: start;
  gap: clamp(1rem, 3vw, 2.2rem);
  padding: 0 clamp(1rem, 4vw, 2.6rem) clamp(2rem, 5vw, 3.5rem);
}

.cols > * { min-width: 0; }

.prose-body { display: grid; gap: 1.1rem; min-width: 0; }

.prose-body > div {
  min-width: 0;
  max-width: 100%;
  background: #261717;
  border-radius: 28px;
  padding: clamp(1.2rem, 3vw, 2.1rem);
  overflow-wrap: anywhere;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .28);
}

.prose-body h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  background: linear-gradient(100deg, #ffe6f1, #ff6aa8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.prose-body h3 { font-size: 1.2rem; color: #ffd0e4; }

.prose-body small {
  display: block;
  margin: 0 0 .45rem;
  font-size: .78rem;
  letter-spacing: .3em;
  color: #ff9ec4;
}

.prose-body p { margin: 0 0 .9rem; color: rgba(250, 240, 248, .88); }
.prose-body p:last-child { margin-bottom: 0; }

.prose-body ul, .prose-body ol { margin: 0 0 .9rem; padding-left: 1.15rem; list-style: disc; }
.prose-body li { margin-bottom: .4rem; }

.prose-body a {
  color: #ffb3d2;
  text-decoration-color: rgba(255, 20, 147, .6);
  text-underline-offset: 3px;
}
.prose-body a:hover { color: #fff; }

.prose-body blockquote {
  margin: 0 0 .9rem;
  padding: .2rem 0 .2rem 1rem;
  border-left: 3px solid #ff1493;
  color: #f3dcea;
}

.prose-body hr { border: 0; height: 1px; background: rgba(255, 255, 255, .14); margin: 1.2rem 0; }

.prose-body img,
.prose-body pre,
.prose-body table,
.prose-body iframe { max-width: 100%; }
.prose-body pre { overflow-x: auto; }
.prose-body table { width: 100%; border-collapse: collapse; }

/* ---------- 侧栏 ---------- */
.rail {
  background: #261717;
  border-radius: 28px;
  padding: 1.2rem 1.1rem 1rem;
  max-width: 100%;
  box-shadow: 0 16px 40px rgba(0, 0, 0, .3);
}

.rail .eyebrow {
  display: block;
  font-size: .76rem;
  letter-spacing: .3em;
  color: #ff9ec4;
  margin: 0 0 .35rem;
}

.rail-h {
  font-size: 1.15rem;
  margin: 0 0 .7rem;
  background: linear-gradient(100deg, #ffe6f1, #ff6aa8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rail-list { display: grid; gap: 2px; }

.rail-list a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: .3rem .65rem;
  border-radius: 14px;
  text-decoration: none;
  color: #f1e6ef;
  font-size: .95rem;
  transition: background .2s ease;
}
.rail-list a:hover { background: rgba(255, 20, 147, .26); color: #fff; }

.rail-top {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: .8rem;
  font-size: .86rem;
  color: #ff9ec4;
  text-decoration: none;
}
.rail-top:hover { color: #fff; }

/* ---------- 页脚 ---------- */
.base {
  padding: clamp(1.6rem, 4vw, 3rem) clamp(1rem, 4vw, 2.6rem) 2rem;
  background: linear-gradient(180deg, rgba(38, 23, 23, .42), rgba(8, 4, 12, .92));
  border-top: 1px solid rgba(255, 255, 255, .09);
}

.sub { max-width: 30rem; margin-bottom: 1.8rem; }

.sub .eyebrow {
  display: block;
  font-size: .78rem;
  letter-spacing: .3em;
  color: #ff9ec4;
  margin: 0 0 .35rem;
}

.sub h2 {
  font-size: 1.3rem;
  margin: 0 0 .9rem;
  background: linear-gradient(100deg, #ffe6f1, #ff6aa8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.subform { display: flex; gap: .55rem; flex-wrap: wrap; }

.subform input {
  flex: 1 1 11rem;
  min-width: 0;
  min-height: 46px;
  padding: 0 1.05rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .07);
  color: #fff;
  font: inherit;
  font-size: .95rem;
}
.subform input::placeholder { color: rgba(255, 255, 255, .5); }

.subform button {
  min-height: 46px;
  padding: 0 1.35rem;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(115deg, #ff0000, #ff1493);
  transition: transform .2s ease;
}
.subform button:hover { transform: translateY(-2px); }

.fgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.fgrid dl { margin: 0; min-width: 0; }

.fgrid dt {
  font-size: .8rem;
  letter-spacing: .22em;
  color: #ff9ec4;
  margin-bottom: .35rem;
}

.fgrid dd {
  margin: 0;
  color: rgba(246, 235, 244, .82);
  font-size: .95rem;
  overflow-wrap: anywhere;
}

.fgrid a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: #f0e3ee;
  text-decoration: none;
}
.fgrid a:hover { color: #ffb3d2; text-decoration: underline; text-underline-offset: 3px; }

.copy {
  margin: 1.8rem 0 0;
  text-align: center;
  font-size: .85rem;
  color: rgba(255, 255, 255, .52);
  letter-spacing: .08em;
}

/* ---------- 断点 ---------- */
[id] { scroll-margin-top: 1rem; }

@media (min-width: 980px) {
  .mast {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(13, 6, 15, .74);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, .07);
  }
  [id] { scroll-margin-top: 7.5rem; }
  .rail { position: sticky; top: 8.5rem; }
}

@media (max-width: 900px) {
  .cols { grid-template-columns: minmax(0, 1fr); }
  .rail { order: 2; }
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding-top: .8rem;
    gap: 1.4rem;
  }
  .hero-copy { order: 1; text-align: left; }
  .hero-media { order: 2; }
  .lede { margin-left: 0; max-width: 34ch; }
  .hero-img, .hero-orb { aspect-ratio: 16 / 11; }
  .fgrid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .fgrid dl:last-child { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .brand-name { font-size: 1.12rem; letter-spacing: .12em; }
  .dd menu { min-width: 10.5rem; max-width: 12rem; }
  .prose-body > div { padding: 1.1rem; border-radius: 24px; }
  .cta { padding: .5rem 1rem; font-size: .92rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body::before, .mark, .hero-orb { animation: none; }
  .dd menu { animation: none; }
  * { transition-duration: .01ms !important; }
}

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