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

:root{
  --violet:#6514ff;
  --magenta:#bf00ff;
  --ink:#1c1726;
  --paper:#ede7fb;
  --muted:#c3b7dc;
  --line:rgba(255,255,255,.14);
  --glass:rgba(255,255,255,.055);
  --radius:10px;
}

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

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

body{
  margin:0;
  min-height:100vh;
  background:var(--ink);
  color:var(--paper);
  font-family:'Jost','PingFang SC','Hiragino Sans GB','Microsoft YaHei',system-ui,sans-serif;
  font-size:17px;
  line-height:1.7;
  padding-bottom:170px;
  overflow-x:hidden;
  max-width:100%;
  overflow-wrap:break-word;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-2;
  background-image:
    linear-gradient(rgba(191,0,255,.10) 1px,transparent 1px),
    linear-gradient(90deg,rgba(101,20,255,.13) 1px,transparent 1px);
  background-size:46px 46px;
  animation:drift 22s linear infinite;
}

body::after{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:
    radial-gradient(560px 420px at 88% -8%,rgba(191,0,255,.30),transparent 66%),
    radial-gradient(620px 480px at 2% 14%,rgba(101,20,255,.26),transparent 68%);
}

@keyframes drift{
  to{background-position:46px 46px,46px 46px}
}

img,
svg,
video,
pre,
table{max-width:100%}

h1,h2,h3{
  font-family:'Bodoni Moda','Songti SC','SimSun',Georgia,serif;
  font-weight:600;
  line-height:1.16;
  margin:0;
  overflow-wrap:break-word;
}

p{margin:0 0 1rem}
a{color:inherit}
main{display:block;max-width:100%}

/* 底部固定条 */
.dock{
  position:fixed;
  left:0;
  right:0;
  bottom:0;
  z-index:40;
  padding:.5rem 0 .6rem;
  background:rgba(20,15,31,.86);
  border-top:1px solid var(--line);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
}

.dock-nav{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:.15rem;
  padding:0 .6rem;
  max-width:100%;
  min-width:0;
}

.dock-brand{
  order:2;
  padding:0 1rem;
  font-family:'Bodoni Moda','Songti SC','SimSun',serif;
  font-size:19px;
  letter-spacing:.09em;
  white-space:nowrap;
  background:linear-gradient(90deg,var(--violet),var(--magenta));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.dock-list{
  display:contents;
  margin:0;
  padding:0;
  list-style:none;
}

.dock-list li{
  list-style:none;
  animation:rise .45s both;
}

.dock-list li:nth-child(-n+3){order:1}
.dock-list li:nth-child(n+4){order:3}
.dock-list li:nth-child(1){animation-delay:.03s}
.dock-list li:nth-child(2){animation-delay:.07s}
.dock-list li:nth-child(3){animation-delay:.11s}
.dock-list li:nth-child(4){animation-delay:.15s}
.dock-list li:nth-child(5){animation-delay:.19s}
.dock-list li:nth-child(6){animation-delay:.23s}
.dock-list li:nth-child(7){animation-delay:.27s}

.dock-list a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:.55rem .68rem;
  border-radius:8px;
  font-size:16px;
  color:#d3c9e8;
  text-decoration:none;
  white-space:nowrap;
  transition:background .22s ease,color .22s ease,transform .22s ease;
}

.dock-list a:hover,
.dock-list a:focus-visible{
  background:rgba(191,0,255,.22);
  color:#fff;
  transform:translateY(-2px);
}

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

/* 首屏 */
.hero{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:2rem;
  min-height:70vh;
  max-width:1080px;
  margin:0 auto;
  padding:clamp(2rem,6vw,4.5rem) 1.25rem 1.5rem;
  text-align:center;
}

.hero-copy{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:1.15rem;
  min-width:0;
}

.hero h1{
  font-size:clamp(34px,7vw,64px);
  background:linear-gradient(102deg,#ffffff 8%,#dcc9ff 46%,var(--magenta) 98%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
  padding-bottom:.12em;
  max-width:100%;
}

.hero-desc{
  max-width:30em;
  margin:0;
  color:var(--muted);
}

.hero-cta{
  display:inline-flex;
  align-items:center;
  min-height:46px;
  padding:.6rem 1.5rem;
  border-radius:var(--radius);
  background:linear-gradient(100deg,var(--violet),var(--magenta));
  color:#fff;
  font-size:16px;
  letter-spacing:.06em;
  text-decoration:none;
  white-space:nowrap;
  box-shadow:0 14px 34px rgba(101,20,255,.42);
  transition:transform .22s ease,filter .22s ease;
}

.hero-cta:hover,
.hero-cta:focus-visible{
  transform:translateY(-2px);
  filter:brightness(1.12);
}

.hero-figure{
  margin:0;
  display:flex;
  align-items:center;
  justify-content:center;
  min-width:0;
}

.hero-img{
  width:clamp(150px,22vw,250px);
  height:auto;
  max-width:100%;
  border-radius:var(--radius);
  border:1px solid rgba(255,255,255,.2);
  animation:float 7s ease-in-out infinite;
}

.hero-geo{
  position:relative;
  width:clamp(140px,20vw,220px);
  aspect-ratio:1;
  border-radius:var(--radius);
  background:linear-gradient(140deg,var(--violet),var(--magenta));
  box-shadow:0 20px 48px rgba(101,20,255,.45);
  animation:float 7s ease-in-out infinite;
}

.hero-geo span{
  position:absolute;
  border-radius:4px;
  background:rgba(255,255,255,.9);
}

.hero-geo span:nth-child(1){width:40%;height:40%;left:9%;top:12%}
.hero-geo span:nth-child(2){width:26%;height:26%;right:12%;top:20%;background:rgba(28,23,38,.55)}
.hero-geo span:nth-child(3){width:56%;height:14%;left:14%;bottom:16%}

@keyframes float{
  0%,100%{transform:translateY(0)}
  50%{transform:translateY(-12px)}
}

/* 正文区与侧栏 */
.body-grid{
  display:grid;
  grid-template-columns:230px minmax(0,760px);
  justify-content:center;
  align-items:start;
  gap:2.5rem;
  max-width:1120px;
  margin:0 auto;
  padding:1.5rem 1.25rem 4.5rem;
}

.side{
  position:sticky;
  top:1.5rem;
  min-width:0;
  padding:1.2rem 1.1rem 1.3rem;
  border-radius:var(--radius);
  border:1px solid var(--line);
  background:var(--glass);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
}

.side h2{
  font-size:22px;
  letter-spacing:.04em;
  background:linear-gradient(90deg,#fff,var(--magenta));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.side hr{
  border:0;
  height:3px;
  width:52px;
  margin:.85rem 0 1rem;
  background:linear-gradient(90deg,var(--violet),var(--magenta));
}

.side-list{
  display:flex;
  flex-direction:column;
  gap:.1rem;
  margin:0;
  padding:0;
  list-style:none;
  min-width:0;
}

.side-list li{list-style:none;min-width:0}

.side-list a{
  display:flex;
  align-items:center;
  min-height:40px;
  padding:.4rem .5rem;
  border-radius:8px;
  font-size:16px;
  color:#cfc4e6;
  text-decoration:none;
  transition:background .22s ease,color .22s ease,padding-left .22s ease;
}

.side-list a:hover,
.side-list a:focus-visible{
  background:rgba(191,0,255,.2);
  color:#fff;
  padding-left:.9rem;
}

.prose{
  display:flex;
  flex-direction:column;
  gap:2.8rem;
  min-width:0;
  max-width:100%;
  padding:clamp(1.2rem,3vw,2.4rem);
  border-radius:14px;
  border:1px solid var(--line);
  background:var(--glass);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  overflow-wrap:break-word;
}

.prose > *{min-width:0;max-width:100%}

.prose > article{scroll-margin-top:1rem}

.prose h2{
  font-size:clamp(30px,4.2vw,38px);
  color:#fff;
}

.prose h3{
  font-size:clamp(21px,2.6vw,25px);
  color:#e8dcff;
  margin-top:.4rem;
}

.prose h2 + hr,
.prose h3 + hr,
.prose hr{
  border:0;
  height:3px;
  width:64px;
  margin:.95rem 0 1.4rem;
  background:linear-gradient(90deg,var(--violet),var(--magenta));
}

.prose p{color:#d7cfe8}

.prose ul,
.prose ol{
  margin:0 0 1.2rem;
  padding-left:1.35rem;
  color:#d7cfe8;
}

.prose li{margin-bottom:.45rem}

.prose strong{color:#fff}

.prose a{
  color:#cfa6ff;
  text-decoration:underline;
  text-underline-offset:3px;
  overflow-wrap:anywhere;
}

.prose a:hover{color:#fff}

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

.prose figure{margin:1.4rem 0}

.prose pre{
  overflow-x:auto;
  padding:.85rem;
  border-radius:var(--radius);
  background:rgba(0,0,0,.32);
}

.prose blockquote{
  margin:1.4rem 0;
  padding:.2rem 0 .2rem 1.1rem;
  border-left:3px solid var(--magenta);
  color:#e2d8f6;
}

.prose table{
  display:block;
  width:100%;
  max-width:100%;
  overflow-x:auto;
  border-collapse:collapse;
  font-size:16px;
}

.prose th,
.prose td{
  padding:.6rem .5rem;
  border-bottom:1px solid var(--line);
  text-align:left;
  overflow-wrap:anywhere;
}

/* 页脚 */
.foot{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:.15rem;
  max-width:1120px;
  margin:0 auto;
  padding:2.5rem 1.25rem 3rem;
  text-align:center;
  overflow-wrap:break-word;
}

.foot p{
  margin:0;
  max-width:100%;
  font-family:'Bodoni Moda','Songti SC','SimSun',serif;
  font-size:clamp(30px,7vw,54px);
  letter-spacing:.02em;
  line-height:1.1;
  background:linear-gradient(100deg,#fff 10%,#c8a6ff 60%,var(--magenta) 100%);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.foot small{font-size:16px}

.foot small a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:0 .95rem;
  border-radius:999px;
  border:1px solid var(--line);
  color:#d9cdf0;
  text-decoration:none;
  transition:border-color .22s ease,color .22s ease,background .22s ease;
}

.foot small a:hover{
  border-color:var(--magenta);
  background:rgba(191,0,255,.18);
  color:#fff;
}

/* 移动端 */
@media (max-width:860px){
  body{padding-bottom:172px}

  .dock{padding:.35rem 0 .5rem}

  .dock-nav{
    flex-direction:column;
    align-items:center;
    gap:.05rem;
    width:100%;
    max-width:100%;
    padding:0 .4rem;
    overflow:hidden;
  }

  .dock-brand{
    order:1;
    padding:.05rem 0 .2rem;
    font-size:17px;
  }

  .dock-list{
    display:grid;
    order:2;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:.1rem;
    width:100%;
    max-width:100%;
    padding:0;
    overflow:visible;
  }

  .dock .dock-list li:nth-child(n){
    order:0;
    min-width:0;
    animation:none;
  }

  .dock-list a{
    display:flex;
    justify-content:center;
    width:100%;
    min-height:42px;
    padding:.4rem .1rem;
    font-size:16px;
    letter-spacing:0;
    transform:none;
  }

  .dock-list a:hover,
  .dock-list a:focus-visible{transform:none}

  .hero{
    grid-template-columns:1fr;
    min-height:auto;
    gap:1.5rem;
    padding:2.2rem 1rem 1.4rem;
  }

  .hero-figure{order:2}
  .hero-img{width:132px}

  .hero-geo{width:124px}

  .body-grid{
    grid-template-columns:minmax(0,1fr);
    gap:1.4rem;
    padding:1rem 1rem 3rem;
  }

  .side{position:static}

  .prose{
    order:1;
    gap:2.2rem;
    padding:1.15rem;
  }

  .foot{padding:2rem 1rem 2.4rem}
}

@media (max-width:400px){
  .dock-list a{padding:.4rem .05rem;font-size:16px}
}

@media (min-width:861px){
  .dock{
    left:50%;
    right:auto;
    transform:translateX(-50%);
    width:min(1000px,calc(100% - 2.5rem));
    bottom:16px;
    border:1px solid var(--line);
    border-radius:16px;
    box-shadow:0 18px 44px rgba(0,0,0,.5);
    padding:.35rem 0;
  }

  .dock-list a{min-height:42px}
}

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{
    animation:none!important;
    transition:none!important;
  }
}

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