@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 {
  --pink: #ff0080;
  --magenta: #ff00ff;
  --ink: #26171f;
  --bg: #100510;
  --panel: rgba(38, 23, 31, 0.55);
  --text: #faeaf4;
  --muted: #cda8c2;
  --line: rgba(255, 150, 215, 0.2);
  --radius: 18px;
  --serif: "Noto Serif TC", "Songti TC", "SimSun", Georgia, serif;
  --sans: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.88;
  letter-spacing: 0.012em;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: -25%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(42% 38% at 18% 22%, rgba(255, 0, 128, 0.55), transparent 68%),
    radial-gradient(38% 42% at 80% 16%, rgba(255, 0, 255, 0.42), transparent 70%),
    radial-gradient(52% 46% at 62% 82%, rgba(122, 36, 176, 0.48), transparent 72%),
    radial-gradient(34% 34% at 30% 68%, rgba(255, 0, 128, 0.28), transparent 74%),
    conic-gradient(from 200deg at 50% 50%, #150710, #2a0f22, #12050f, #1d0a18, #150710);
  filter: blur(46px) saturate(135%);
  animation: aurora 30s ease-in-out infinite alternate;
}

@keyframes aurora {
  0% { transform: translate3d(-2%, -1%, 0) scale(1.02) rotate(0deg); filter: blur(46px) saturate(135%) hue-rotate(0deg); }
  50% { transform: translate3d(2%, 2%, 0) scale(1.08) rotate(2deg); filter: blur(52px) saturate(150%) hue-rotate(-12deg); }
  100% { transform: translate3d(-1%, 3%, 0) scale(1.05) rotate(-2deg); filter: blur(48px) saturate(140%) hue-rotate(10deg); }
}

.masthead,
main,
.foot { position: relative; z-index: 1; }

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

.skip {
  position: absolute;
  left: 0.75rem;
  top: -3rem;
  z-index: 60;
  padding: 0.6rem 1rem;
  border-radius: 0 0 12px 12px;
  background: var(--pink);
  color: #fff;
  text-decoration: none;
  font-size: 0.95rem;
  transition: top 0.2s ease;
}
.skip:focus { top: 0; }

/* 顶部两行：品牌行 + 菜单行 */
.masthead {
  position: sticky;
  top: 0;
  z-index: 30;
  padding: 0.55rem clamp(0.9rem, 4vw, 2.2rem) 0.35rem;
  background: linear-gradient(180deg, rgba(16, 5, 16, 0.94), rgba(16, 5, 16, 0.58));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.brandline {
  display: flex;
  align-items: center;
  padding-bottom: 0.35rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 42px;
  padding: 0.15rem 0.35rem 0.15rem 0;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(255, 200, 235, 0.35);
}

.brand-dot {
  display: block;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 30%, #ff9ad2, transparent 62%),
    conic-gradient(from 40deg, var(--pink), var(--magenta), #7a24b0, var(--pink));
  box-shadow: 0 0 18px rgba(255, 0, 128, 0.6);
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.22rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  background: linear-gradient(96deg, #ffd6ec, var(--pink) 45%, var(--magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* aside > nav > ul > li > a 菜单链 */
.menubar nav ul {
  display: flex;
  gap: 0.2rem;
  margin: 0;
  padding: 0 0 0.3rem;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.menubar nav ul::-webkit-scrollbar { display: none; }

.menubar nav a {
  display: block;
  min-height: 40px;
  padding: 0.6rem 0.85rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.95rem;
  white-space: nowrap;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.menubar nav a:hover,
.menubar nav a:focus-visible {
  color: #fff;
  border-color: rgba(255, 0, 160, 0.55);
  background: rgba(255, 0, 128, 0.16);
}

.menubar nav a[aria-current="true"] {
  color: #fff;
  border-color: rgba(255, 0, 200, 0.7);
  background: linear-gradient(120deg, rgba(255, 0, 128, 0.34), rgba(255, 0, 255, 0.2));
}

/* 首屏 */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 70vh;
  padding: clamp(2.6rem, 9vw, 5.5rem) clamp(1rem, 5vw, 2.5rem);
  overflow: hidden;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 46%;
  background: linear-gradient(180deg, transparent, rgba(16, 5, 16, 0.85));
  pointer-events: none;
  z-index: -1;
}

.hero-text {
  position: relative;
  z-index: 2;
  max-width: 22em;
  text-align: center;
}

.hero-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(2.2rem, 7.4vw, 4.1rem);
  line-height: 1.28;
  letter-spacing: 0.05em;
  background: linear-gradient(104deg, #fff2f9 6%, var(--pink) 46%, var(--magenta) 72%, #ffc2e6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 42px rgba(255, 0, 160, 0.28);
}

.hero-rule {
  display: block;
  width: 74px;
  height: 3px;
  margin: 1.35rem auto 0;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--pink), var(--magenta), transparent);
}

.collage {
  position: absolute;
  inset: 0;
  margin: 0;
  z-index: 1;
  pointer-events: none;
}

.collage img,
.collage .ph {
  position: absolute;
  width: clamp(120px, 17vw, 232px);
  height: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 190, 230, 0.4);
  box-shadow: 0 26px 62px rgba(255, 0, 128, 0.3);
  object-fit: cover;
  opacity: 0.86;
  mix-blend-mode: screen;
}

.collage .ph {
  aspect-ratio: 3 / 4;
  background: conic-gradient(from 30deg, rgba(255, 0, 128, 0.6), rgba(255, 0, 255, 0.45), rgba(122, 36, 176, 0.5), rgba(255, 0, 128, 0.6));
  filter: blur(1px);
}

.shot-a,
.ph-a { top: 9%; left: clamp(0.6rem, 4vw, 3rem); transform: rotate(-6deg); }

.shot-b,
.ph-b { bottom: 8%; right: clamp(0.6rem, 4vw, 3rem); transform: rotate(5.5deg); }

/* 主体：正文 + 右侧栏 */
.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 252px;
  gap: clamp(1.1rem, 3vw, 2.4rem);
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(1.4rem, 4vw, 2.6rem) clamp(0.9rem, 4vw, 2rem) clamp(2.4rem, 6vw, 4rem);
  align-items: start;
}

.prose { min-width: 0; }

.prose-h {
  margin: 0 0 0.35rem;
  font-family: var(--serif);
  font-size: clamp(1.4rem, 3.4vw, 1.9rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #fff;
}

.subtitle {
  margin: 0 0 1.6rem;
  padding-left: 0.9rem;
  border-left: 3px solid rgba(255, 0, 160, 0.75);
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

/* 正文分节卡片 */
.prose > div {
  position: relative;
  margin: 0 0 1.5rem;
  padding: clamp(1.15rem, 3.2vw, 1.95rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(158deg, rgba(255, 255, 255, 0.07), rgba(255, 0, 128, 0.055) 62%, rgba(38, 23, 31, 0.42));
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  overflow: hidden;
  scroll-margin-top: 122px;
}

.prose > div::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--pink), var(--magenta), rgba(255, 0, 128, 0));
  opacity: 0.9;
}

.prose > div h2 {
  margin: 0 0 0.7rem;
  font-family: var(--serif);
  font-size: clamp(1.28rem, 3vw, 1.62rem);
  font-weight: 600;
  letter-spacing: 0.045em;
  line-height: 1.42;
  color: #ffe4f3;
}

.prose > div h3 {
  margin: 1.4rem 0 0.5rem;
  font-family: var(--serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffd0e9;
}

.prose p { margin: 0 0 1rem; }

.prose p:last-child,
.prose ul:last-child,
.prose ol:last-child { margin-bottom: 0; }

.prose ul,
.prose ol { margin: 0 0 1rem; padding-left: 1.35rem; }

.prose li { margin-bottom: 0.45rem; }

.prose li::marker { color: var(--pink); }

.prose a {
  color: #ff9ed4;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 0, 160, 0.45);
}

.prose a:hover,
.prose a:focus-visible { color: #fff; border-bottom-color: var(--magenta); }

.prose strong { color: #fff; font-weight: 600; }

.prose blockquote {
  margin: 1.2rem 0;
  padding: 0.75rem 1.1rem;
  border-left: 3px solid var(--magenta);
  border-radius: 0 12px 12px 0;
  background: rgba(255, 0, 255, 0.08);
  color: #ffd9ee;
}

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

.prose table {
  width: 100%;
  margin: 1.1rem 0;
  border-collapse: collapse;
  font-size: 0.98rem;
}

.prose th,
.prose td {
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose th { color: #ffc9e5; font-weight: 600; }

.prose img { max-width: 100%; height: auto; border-radius: var(--radius); }

/* 右侧栏 */
.rail {
  position: sticky;
  top: 126px;
  padding: 1.1rem 1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(200deg, rgba(255, 0, 200, 0.12), rgba(38, 23, 31, 0.55));
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

.rail-h {
  margin: 0 0 0.7rem;
  font-family: var(--serif);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: #ffc6e6;
}

.rail-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.rail-list li { border-bottom: 1px solid rgba(255, 150, 215, 0.1); }

.rail-list a {
  display: block;
  min-height: 40px;
  padding: 0.52rem 0.15rem;
  color: var(--muted);
  font-size: 0.94rem;
  text-decoration: none;
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.rail-list a:hover,
.rail-list a:focus-visible,
.rail-list a[aria-current="true"] { color: #fff; padding-left: 0.45rem; }

/* 页脚：单行横排 */
.foot {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.45fr) auto;
  gap: clamp(1rem, 3vw, 2.4rem);
  align-items: start;
  padding: clamp(1.6rem, 4vw, 2.6rem) clamp(1rem, 4vw, 2.2rem) 2rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(38, 23, 31, 0.32), rgba(16, 5, 16, 0.9));
}

.foot-name {
  display: block;
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.16em;
  color: #ffd3ec;
}

.foot-desc {
  margin: 0.55rem 0 0;
  max-width: 26em;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.72;
}

.foot-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.foot-nav a {
  display: block;
  min-height: 40px;
  padding: 0.45rem 0;
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
}

.foot-nav a:hover,
.foot-nav a:focus-visible { color: #fff; }

.copy {
  margin: 0;
  padding-top: 0.45rem;
  color: rgba(205, 168, 194, 0.75);
  font-size: 0.86rem;
  white-space: nowrap;
}

/* 滚动显现 */
.js .hero-text,
.js .rail,
.js .foot-brand,
.js .foot-nav,
.js .prose > div,
.js .prose-h,
.js .subtitle {
  opacity: 0;
  transform: translateY(22px);
}

.js .is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.7, 0.3, 1);
}

@media (prefers-reduced-motion: reduce) {
  body::before { animation: none; }
  html { scroll-behavior: auto; }
  .js .hero-text,
  .js .rail,
  .js .foot-brand,
  .js .foot-nav,
  .js .prose > div,
  .js .prose-h,
  .js .subtitle { opacity: 1; transform: none; transition: none; }
}

@media (max-width: 860px) {
  .stage { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; order: 2; }
  .foot { grid-template-columns: minmax(0, 1fr); gap: 0.8rem; }
  .copy { padding-top: 0.2rem; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { min-height: 66vh; }
  .collage img,
  .collage .ph { width: 108px; opacity: 0.6; }
  .shot-a, .ph-a { top: 6%; left: 0.4rem; }
  .shot-b, .ph-b { bottom: 6%; right: 0.4rem; }
  .hero-text { max-width: 16em; }
  .prose-h { letter-spacing: 0.03em; }
  .rail-h { letter-spacing: 0.18em; }
}

@media (max-width: 380px) {
  .collage img,
  .collage .ph { width: 92px; }
}

:focus-visible {
  outline: 2px solid var(--magenta);
  outline-offset: 2px;
}

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