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

:root{
  --ink:#26171f;
  --deep:#170c12;
  --panel:#331e2b;
  --panel-soft:#3b2333;
  --pink:#ff0080;
  --magenta:#ff00ff;
  --text:#f6e8f1;
  --muted:#cfb2c3;
  --radius:18px;
  --max:1180px;
  --gutter:20px;
}

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

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

body{
  margin:0;
  overflow-x:hidden;
  overflow-x:clip;
  font-family:"IBM Plex Sans","PingFang SC","Hiragino Sans GB","Microsoft YaHei",system-ui,sans-serif;
  font-size:17px;
  line-height:1.78;
  color:var(--text);
  background:var(--deep);
}

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

a{color:#ff9ccd}

/* ---------- 极光棱镜底层 ---------- */
.aurora{
  position:fixed;
  inset:0;
  z-index:0;
  overflow:hidden;
  pointer-events:none;
  background:
    radial-gradient(58vw 58vw at 10% 6%, rgba(255,0,128,.34), transparent 62%),
    radial-gradient(50vw 50vw at 90% 16%, rgba(255,0,255,.26), transparent 60%),
    radial-gradient(72vw 72vw at 52% 104%, rgba(122,28,190,.38), transparent 66%),
    var(--ink);
}

.aurora::before{
  content:"";
  position:absolute;
  inset:-28%;
  background:conic-gradient(from 0deg at 50% 50%, #ff0080, #ff00ff, #7b2bff, #ff3f9f, #ff0080);
  background-size:220% 220%;
  opacity:.26;
  filter:blur(64px) saturate(150%);
  animation:flow 26s linear infinite, shift 15s ease-in-out infinite alternate;
}

.aurora::after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(180deg, rgba(23,12,18,.22), rgba(23,12,18,.68) 62%, rgba(23,12,18,.9));
}

.orb{
  position:absolute;
  border-radius:50%;
  filter:blur(58px);
  mix-blend-mode:screen;
  opacity:.55;
  will-change:transform;
}
.orb-a{width:44vw;height:44vw;left:-8vw;top:6vh;background:radial-gradient(circle,#ff0080,transparent 70%)}
.orb-b{width:38vw;height:38vw;right:-6vw;top:30vh;background:radial-gradient(circle,#ff00ff,transparent 70%)}
.orb-c{width:52vw;height:52vw;left:26vw;bottom:-14vh;background:radial-gradient(circle,#8b2bff,transparent 72%)}

@keyframes flow{
  0%{background-position:0% 50%}
  50%{background-position:100% 50%}
  100%{background-position:0% 50%}
}
@keyframes shift{
  0%{filter:blur(64px) hue-rotate(0deg) saturate(150%)}
  100%{filter:blur(64px) hue-rotate(46deg) saturate(180%)}
}

/* ---------- 顶部两行 ---------- */
.top{
  position:sticky;
  top:0;
  z-index:20;
  background:linear-gradient(180deg, rgba(23,12,18,.92), rgba(23,12,18,.6));
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}
.top::after{
  content:"";
  display:block;
  height:1px;
  background:linear-gradient(90deg, transparent, rgba(255,0,128,.55), rgba(255,0,255,.5), transparent);
}

.brandrow{
  max-width:var(--max);
  margin:0 auto;
  padding:14px var(--gutter) 8px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

.logo{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  min-width:0;
  text-decoration:none;
}
.mark{
  width:34px;
  height:34px;
  border-radius:10px;
  object-fit:cover;
  flex:0 0 auto;
}
.wordmark{
  font-size:22px;
  font-weight:700;
  letter-spacing:.07em;
  background:linear-gradient(92deg,var(--pink),var(--magenta));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  white-space:nowrap;
}

.cta{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 18px;
  border-radius:999px;
  font-size:16px;
  font-weight:600;
  letter-spacing:.04em;
  color:#fff;
  text-decoration:none;
  white-space:nowrap;
  background:linear-gradient(100deg,var(--pink),var(--magenta));
  box-shadow:0 8px 26px rgba(255,0,128,.32);
  transition:transform .22s ease, box-shadow .22s ease;
}
.cta:hover{transform:translateY(-2px);box-shadow:0 12px 34px rgba(255,0,255,.42)}
.cta:active{transform:translateY(0)}

.navrow{
  max-width:var(--max);
  margin:0 auto;
  padding:0 var(--gutter) 10px;
  display:flex;
  gap:2px;
  overflow-x:auto;
  overscroll-behavior-x:contain;
  scrollbar-width:none;
}
.navrow::-webkit-scrollbar{display:none}

.nav-link{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:10px 13px;
  border-radius:12px;
  font-size:16px;
  color:var(--muted);
  text-decoration:none;
  white-space:nowrap;
  transition:color .18s ease, background .18s ease;
}
.nav-link:hover,.nav-link.is-current{
  color:#fff;
  background:rgba(255,0,128,.16);
}

/* ---------- 版心与网格 ---------- */
main{position:relative;z-index:1}

.sheet{
  max-width:var(--max);
  margin:0 auto;
  padding:0 var(--gutter) 80px;
  display:grid;
  grid-template-columns:232px minmax(0,1fr);
  gap:40px 44px;
  align-items:start;
}

/* ---------- 首屏 ---------- */
.hero{
  grid-column:1 / -1;
  position:relative;
  min-height:70vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:26px;
  padding:56px 0 0;
  background:transparent;
}

.hero::before{
  content:"";
  position:absolute;
  inset:0 -20vw auto;
  height:100%;
  z-index:-1;
  background:linear-gradient(157deg, rgba(255,0,128,.26), rgba(255,0,255,.12) 46%, rgba(255,255,255,0) 72%);
  clip-path:polygon(0 0, 100% 0, 100% 78%, 0 100%);
}

.hero h1{
  margin:8px 0 0;
  max-width:15em;
  font-size:clamp(32px, 5.4vw, 62px);
  line-height:1.14;
  letter-spacing:-.02em;
  font-weight:700;
  overflow-wrap:break-word;
  background:linear-gradient(102deg, #ffffff 8%, #ffd6eb 34%, var(--pink) 66%, var(--magenta) 96%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.hero-media{
  width:100%;
  max-height:44vh;
  object-fit:cover;
  border-radius:var(--radius);
  display:block;
  box-shadow:0 26px 60px rgba(12,4,10,.5);
}

/* ---------- 左侧栏 ---------- */
.side{
  position:sticky;
  top:146px;
  grid-column:1;
  min-width:0;
  padding:22px 20px;
  border-radius:var(--radius);
  background:var(--panel);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
}

.side small{
  display:block;
  font-size:14px;
  letter-spacing:.26em;
  color:#ff74ba;
  margin-bottom:6px;
}

.side-title{
  margin:0 0 14px;
  font-size:20px;
  font-weight:600;
  letter-spacing:.01em;
}

.side-list{
  list-style:none;
  margin:0;
  padding:0;
}
.side-list li + li{border-top:1px solid rgba(255,255,255,.07)}
.side-list a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:6px 2px;
  font-size:16px;
  color:var(--muted);
  text-decoration:none;
  transition:color .18s ease, padding-left .18s ease;
}
.side-list a:hover{color:#fff;padding-left:8px}

/* ---------- 正文区块 ---------- */
.sheet > section{
  grid-column:2;
  min-width:0;
  background:var(--panel);
  border-radius:var(--radius);
  padding:30px 32px;
  scroll-margin-top:152px;
  overflow-wrap:break-word;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.05);
}

.sheet > section:target{
  background:var(--panel-soft);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12), 0 0 0 1px rgba(255,0,128,.35);
}

.sheet > section > small{
  display:block;
  font-size:14px;
  letter-spacing:.24em;
  color:#ff74ba;
  margin:0 0 8px;
}

.sheet > section h2{
  margin:0 0 .7em;
  font-size:clamp(23px, 2.5vw, 31px);
  line-height:1.3;
  letter-spacing:-.01em;
  font-weight:700;
}
.sheet > section small + h2{margin-top:0}

.sheet > section h3{
  margin:1.6em 0 .5em;
  font-size:20px;
  line-height:1.4;
  font-weight:600;
  color:#ffd0e6;
}

.sheet > section p{margin:0 0 1.1em;color:#ecd9e4}
.sheet > section p:last-child{margin-bottom:0}

.sheet > section ul,
.sheet > section ol{margin:0 0 1.2em;padding-left:1.3em}
.sheet > section li{margin:.42em 0}

.sheet > section a{
  color:#ff9ccd;
  text-decoration:underline;
  text-decoration-color:rgba(255,0,128,.55);
  text-underline-offset:3px;
}
.sheet > section a:hover{color:#fff;text-decoration-color:var(--magenta)}

.sheet > section img{
  display:block;
  width:100%;
  max-width:100%;
  border-radius:14px;
  margin:1.4em 0;
}

.sheet > section blockquote{
  margin:1.3em 0;
  padding:16px 20px;
  border-radius:14px;
  background:rgba(255,0,128,.12);
  color:#ffe3f0;
}
.sheet > section blockquote p:last-child{margin-bottom:0}

.sheet > section table{
  width:100%;
  max-width:100%;
  border-collapse:collapse;
  margin:1.3em 0;
  font-size:16px;
  table-layout:fixed;
}
.sheet > section th,
.sheet > section td{
  padding:10px 12px;
  text-align:left;
  border-bottom:1px solid rgba(255,255,255,.1);
  overflow-wrap:break-word;
}
.sheet > section th{color:#ffc4e0;font-weight:600}

.sheet > section pre{
  max-width:100%;
  overflow-x:auto;
  padding:16px;
  border-radius:14px;
  background:rgba(23,12,18,.6);
}

/* ---------- 页脚 ---------- */
.foot{
  position:relative;
  z-index:1;
  max-width:var(--max);
  margin:0 auto;
  padding:60px var(--gutter) 44px;
  display:grid;
  grid-template-columns:1.15fr auto auto;
  gap:32px;
  align-items:start;
}
.foot::before{
  content:"";
  position:absolute;
  top:0;
  left:var(--gutter);
  right:var(--gutter);
  height:1px;
  background:linear-gradient(90deg, rgba(255,0,128,.6), rgba(255,0,255,.45), transparent);
}

.foot-brand{min-width:0}

.foot-logo{
  display:inline-block;
  font-size:clamp(38px, 6.6vw, 82px);
  line-height:1.02;
  font-weight:700;
  letter-spacing:-.03em;
  text-decoration:none;
  background:linear-gradient(96deg, #fff 6%, #ffb4da 32%, var(--pink) 70%, var(--magenta));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.foot-nav dl{
  margin:0;
  display:grid;
  grid-template-columns:auto auto;
  gap:0 16px;
  align-items:center;
}
.foot-nav dt{margin:0}
.foot-nav dd{
  margin:0;
  text-align:right;
  font-size:13px;
  letter-spacing:.1em;
  color:rgba(246,232,241,.42);
  font-variant-numeric:tabular-nums;
}
.foot-nav a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:2px;
  font-size:16px;
  color:var(--muted);
  text-decoration:none;
  transition:color .18s ease;
}
.foot-nav a:hover{color:#fff}

.foot-legal{
  align-self:end;
  justify-self:end;
  font-size:15px;
  color:rgba(246,232,241,.6);
}

/* ---------- 中屏 ---------- */
@media (max-width:1040px){
  .sheet{grid-template-columns:196px minmax(0,1fr);gap:32px}
  .foot{grid-template-columns:1fr auto;gap:26px}
  .foot-legal{grid-column:1 / -1;justify-self:start;align-self:auto}
}

/* ---------- 移动端 ---------- */
@media (max-width:860px){
  :root{--gutter:16px}
  body{font-size:16px}

  .brandrow{padding:12px var(--gutter) 6px}
  .navrow{padding:0 var(--gutter) 10px}

  .sheet{
    grid-template-columns:minmax(0,1fr);
    padding:0 var(--gutter) 60px;
    gap:22px;
  }

  .hero{
    min-height:60vh;
    padding-top:40px;
    gap:20px;
  }
  .hero::before{
    inset:0 calc(var(--gutter) * -1) auto;
    clip-path:polygon(0 0, 100% 0, 100% 82%, 0 100%);
  }
  .hero-media{max-height:32vh}

  .side{
    position:static;
    grid-column:1;
    padding:14px 16px;
    overflow-x:auto;
    overscroll-behavior-x:contain;
    scrollbar-width:none;
  }
  .side::-webkit-scrollbar{display:none}
  .side small{display:none}
  .side-title{margin:0 0 10px;font-size:17px}
  .side-list{
    display:flex;
    gap:8px;
  }
  .side-list li + li{border-top:0}
  .side-list a{
    min-height:40px;
    padding:8px 12px;
    border-radius:10px;
    background:rgba(255,255,255,.06);
    font-size:15px;
    white-space:nowrap;
  }
  .side-list a:hover{padding-left:12px;background:rgba(255,0,128,.2)}

  .sheet > section{
    grid-column:1;
    padding:24px 18px;
    scroll-margin-top:132px;
  }
  .sheet > section table{font-size:15px}
  .sheet > section th,
  .sheet > section td{padding:8px 10px}

  .foot{
    grid-template-columns:minmax(0,1fr);
    gap:20px;
    padding:44px var(--gutter) 36px;
  }
  .foot::before{left:var(--gutter);right:var(--gutter)}
  .foot-nav dl{grid-template-columns:1fr auto;max-width:100%}
  .foot-legal{justify-self:start}
}

@media (max-width:400px){
  .cta{padding:0 14px;font-size:15px;letter-spacing:0}
  .wordmark{font-size:20px;letter-spacing:.04em}
}

/* ---------- 动效降级 ---------- */
@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{
    animation-duration:.001ms !important;
    animation-iteration-count:1 !important;
    transition-duration:.001ms !important;
  }
}

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