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

:root{
  --ink:#1a1a2e;
  --ink-deep:#101020;
  --red:#ff0000;
  --mag:#ff006e;
  --glow:rgba(255,0,110,.55);
  --text:#ded9ee;
  --dim:#a09ab8;
  --line:rgba(255,0,110,.22);
  --serif:"Newsreader",Georgia,"Songti SC","Noto Serif SC",serif;
  --sans:"Roboto","Helvetica Neue",Arial,"PingFang SC","Microsoft YaHei",sans-serif;
}

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

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

body{
  margin:0;
  padding-left:272px;
  min-height:100%;
  background-color:var(--ink);
  background-image:
    linear-gradient(rgba(255,0,110,.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,0,110,.075) 1px, transparent 1px),
    radial-gradient(circle at 78% -8%, rgba(255,0,0,.18), transparent 58%);
  background-size:56px 56px, 56px 56px, 100% 100%;
  background-attachment:fixed, fixed, fixed;
  color:var(--text);
  font-family:var(--sans);
  font-size:17px;
  line-height:1.75;
  overflow-x:hidden;
}

body::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:70;
  pointer-events:none;
  background:repeating-linear-gradient(180deg, rgba(0,0,0,.3) 0 1px, rgba(0,0,0,0) 1px 3px);
  opacity:.5;
}

::selection{background:var(--mag);color:#12000c}

a{color:#ff5c95}
a:focus-visible{outline:2px solid var(--red);outline-offset:3px}

/* 左侧竖排导航 */
.rail{
  position:fixed;
  left:0;
  top:0;
  bottom:0;
  width:272px;
  z-index:50;
  display:flex;
  flex-direction:column;
  gap:26px;
  padding:34px 24px 28px;
  overflow-y:auto;
  background:linear-gradient(180deg, rgba(16,16,32,.985) 0%, rgba(26,26,46,.94) 100%);
  border-right:1px solid var(--line);
  box-shadow:inset -1px 0 0 rgba(255,0,0,.18), 16px 0 48px rgba(0,0,0,.55);
}

.brand{display:flex;align-items:center;gap:12px}

.logo{
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  flex:none;
  border:1px solid var(--mag);
  border-radius:4px;
  text-decoration:none;
  box-shadow:0 0 18px rgba(255,0,110,.35), inset 0 0 14px rgba(255,0,110,.2);
}
.logo img{width:100%;height:100%;object-fit:cover;border-radius:3px;display:block}
.logo-glyph{
  width:15px;
  height:15px;
  background:var(--red);
  box-shadow:0 0 12px var(--red);
  transform:rotate(45deg);
}

.brand-name{
  font-family:var(--serif);
  font-size:20px;
  font-weight:600;
  letter-spacing:.05em;
  color:#fff;
  text-shadow:0 0 14px var(--glow);
}

.rail nav{display:block}
.rail ul{
  list-style:none;
  margin:0;
  padding:0;
  display:flex;
  flex-direction:column;
  gap:2px;
}
.rail li{display:block}
.rail a{
  display:flex;
  align-items:center;
  gap:11px;
  min-height:44px;
  padding:9px 10px;
  color:#bdb6d4;
  font-size:16px;
  text-decoration:none;
  border-left:2px solid transparent;
  border-radius:0 4px 4px 0;
  transition:color .18s ease, background .18s ease, border-color .18s ease;
}
.tick{
  width:8px;
  height:8px;
  flex:none;
  border:1px solid var(--mag);
  transform:rotate(45deg);
  transition:background .18s ease, box-shadow .18s ease;
}
.rail a:hover,
.rail a:focus-visible{
  color:#fff;
  background:rgba(255,0,110,.12);
  border-left-color:var(--red);
  text-shadow:0 0 12px var(--glow);
}
.rail a:hover .tick,
.rail a:focus-visible .tick{background:var(--red);box-shadow:0 0 10px var(--red)}

.contact{
  margin-top:auto;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:12px 14px;
  border:1px solid var(--mag);
  border-radius:4px;
  color:#fff;
  font-size:16px;
  letter-spacing:.14em;
  text-decoration:none;
  box-shadow:inset 0 0 20px rgba(255,0,110,.18);
  transition:background .2s ease, color .2s ease, box-shadow .2s ease;
}
.contact:hover,
.contact:focus-visible{background:var(--mag);color:#15000a;box-shadow:0 0 26px rgba(255,0,110,.8)}

main{display:block}
div{display:block}

/* 满屏右对齐标题区 */
.hero{
  position:relative;
  display:flex;
  align-items:flex-end;
  justify-content:flex-end;
  min-height:100vh;
  min-height:100svh;
  padding:130px 48px 76px;
  overflow:hidden;
  border-bottom:2px solid var(--red);
  background-image:
    radial-gradient(circle at 86% 14%, rgba(255,0,110,.3), transparent 56%),
    repeating-linear-gradient(135deg, rgba(255,0,0,.07) 0 2px, transparent 2px 18px);
  background-attachment:fixed, fixed;
}
.hero::before{
  content:"";
  position:absolute;
  right:-8%;
  top:8%;
  width:52vw;
  height:52vw;
  max-width:640px;
  max-height:640px;
  border:1px solid rgba(255,0,110,.28);
  border-radius:50%;
  box-shadow:0 0 0 18px rgba(255,0,110,.05), 0 0 0 42px rgba(255,0,110,.04);
  pointer-events:none;
}

.hero-inner{position:relative;max-width:840px;text-align:right}

.hero h1{
  position:relative;
  margin:0;
  font-family:var(--serif);
  font-weight:600;
  font-size:clamp(2.5rem, 6.2vw, 5.2rem);
  line-height:1.04;
  letter-spacing:-.015em;
  color:#fff;
  text-shadow:0 0 24px var(--glow), 2px 0 0 rgba(255,0,0,.55), -2px 0 0 rgba(255,0,110,.5);
  animation:glitch 8s steps(1,end) infinite;
}
.hero h1::before,
.hero h1::after{
  content:attr(data-text);
  position:absolute;
  inset:0;
  pointer-events:none;
  opacity:.7;
}
.hero h1::before{color:var(--red);transform:translate(-3px,-2px);clip-path:inset(0 0 62% 0)}
.hero h1::after{color:var(--mag);transform:translate(3px,2px);clip-path:inset(52% 0 0 0)}

@keyframes glitch{
  0%,88%,100%{transform:translate(0,0)}
  89%{transform:translate(-2px,1px)}
  91%{transform:translate(3px,-1px)}
  93%{transform:translate(-1px,0)}
  95%{transform:translate(2px,1px)}
  97%{transform:translate(0,0)}
}

.hero-desc{
  margin:26px 0 0 auto;
  max-width:44ch;
  padding-right:16px;
  border-right:2px solid var(--mag);
  color:#c3bcd9;
  font-size:16px;
  line-height:1.65;
}

/* 眉题 */
.lead{
  max-width:920px;
  margin:0 auto;
  padding:56px 44px 0;
}
.lead small{
  display:block;
  font-size:14px;
  letter-spacing:.34em;
  color:var(--mag);
  text-shadow:0 0 10px rgba(255,0,110,.7);
}
.lead h2{
  margin:6px 0 0;
  font-family:var(--serif);
  font-size:clamp(1.7rem, 3vw, 2.4rem);
  font-weight:600;
  letter-spacing:.02em;
  color:#fff;
  text-shadow:0 0 18px rgba(255,0,110,.35);
}

/* 正文卡面 */
div > article[id]{
  display:block;
  max-width:920px;
  margin:34px auto;
  padding:40px 44px 24px;
  background:linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.018));
  border:1px solid var(--line);
  border-radius:4px;
  box-shadow:0 26px 64px -36px rgba(255,0,110,.65), inset 0 1px 0 rgba(255,255,255,.06);
  scroll-margin-top:80px;
}
div > article[id] > *:first-child{margin-top:0}

div > article[id] h2{
  font-family:var(--serif);
  font-size:clamp(1.55rem, 2.6vw, 2.1rem);
  line-height:1.28;
  font-weight:600;
  color:#fff;
  margin:.1em 0 .75em;
  padding-left:14px;
  border-left:3px solid var(--red);
  text-shadow:0 0 16px rgba(255,0,110,.45);
}

div > article[id] h3{
  font-family:var(--serif);
  font-size:1.32rem;
  line-height:1.35;
  font-weight:600;
  color:#ffdbe8;
  margin:1.5em 0 .6em;
}

div > article[id] p{margin:0 0 1.15em}
div > article[id] ul,
div > article[id] ol{margin:0 0 1.2em;padding-left:1.35em}
div > article[id] li{margin:0 0 .5em}
div > article[id] li::marker{color:var(--mag)}
div > article[id] strong{color:#fff;font-weight:700}
div > article[id] em{color:#ffdbe8}
div > article[id] a{
  color:#ff7aa8;
  text-decoration:underline;
  text-decoration-style:dotted;
  text-underline-offset:3px;
}
div > article[id] a:hover{color:#fff;text-shadow:0 0 10px var(--glow)}

div > article[id] blockquote{
  margin:0 0 1.3em;
  padding:18px 20px;
  border-left:3px solid var(--mag);
  border-radius:4px;
  background:rgba(255,0,110,.08);
  color:#efe9fb;
  box-shadow:0 14px 34px -26px rgba(255,0,110,.9);
}
div > article[id] blockquote p:last-child{margin-bottom:0}

div > article[id] img{
  max-width:100%;
  height:auto;
  display:block;
  margin:0 0 1.2em;
  border-radius:4px;
}

div > article[id] table{
  width:100%;
  border-collapse:collapse;
  margin:0 0 1.3em;
  font-size:16px;
}
div > article[id] th,
div > article[id] td{
  border:1px solid var(--line);
  padding:10px 12px;
  text-align:right;
}
div > article[id] th{background:rgba(255,0,110,.12);color:#fff}

/* 极简页脚 */
footer{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:space-between;
  gap:12px 20px;
  max-width:920px;
  margin:56px auto 0;
  padding:26px 44px 46px;
  border-top:1px solid var(--line);
}
footer p{margin:0;font-size:16px;color:var(--dim)}
footer small{
  display:flex;
  flex-wrap:wrap;
  gap:4px 16px;
  font-size:16px;
}
footer small a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:0 2px;
  color:#c6bfdb;
  text-decoration:none;
}
footer small a:hover,
footer small a:focus-visible{color:#fff;text-shadow:0 0 12px var(--glow)}

@media (max-width:900px){
  body{
    padding-left:0;
    background-attachment:scroll, scroll, scroll;
  }
  body::after{opacity:.4}

  .rail{
    position:static;
    width:auto;
    bottom:auto;
    gap:16px;
    padding:18px 18px 20px;
    overflow:visible;
    border-right:0;
    border-bottom:1px solid var(--line);
    box-shadow:0 14px 40px rgba(0,0,0,.5);
  }
  .rail nav{margin-top:4px}
  .rail ul{flex-direction:row;flex-wrap:wrap;gap:8px}
  .rail a{
    min-height:44px;
    padding:10px 12px;
    border-left:0;
    border:1px solid var(--line);
    border-radius:4px;
  }
  .rail a:hover,
  .rail a:focus-visible{border-color:var(--mag)}
  .contact{margin-top:6px}

  .hero{
    min-height:68svh;
    padding:56px 20px 44px;
    background-attachment:scroll, scroll;
  }
  .hero::before{width:70vw;height:70vw;right:-18vw;top:6%}
  .hero h1{font-size:clamp(2rem, 8.6vw, 3.1rem)}
  .hero-desc{max-width:100%;font-size:16px}

  .lead{padding:40px 20px 0}

  div > article[id]{
    margin:22px 12px;
    padding:28px 20px 12px;
    box-shadow:0 18px 48px -32px rgba(255,0,110,.7);
  }

  footer{margin-top:36px;padding:22px 20px 40px}
}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto}
  .hero h1{animation:none}
  *,
  *::before,
  *::after{transition-duration:.01ms !important; animation-duration:.01ms !important; animation-iteration-count:1 !important}
}

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