@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,700;1,400&family=Nunito:ital,wght@0,700;0,800;0,900;1,700&display=swap');

:root{
  --rose:#ff0080;
  --mag:#ff00ff;
  --ink:#26171f;
  --paper:#fff4fa;
  --r:28px;
  --max:1120px;
}

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

html{
  background:var(--paper);
  scroll-behavior:smooth;
  -webkit-text-size-adjust:100%;
}

body{
  margin:0;
  min-height:100vh;
  font-family:"Nunito","DM Sans",system-ui,-apple-system,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;
  font-size:17px;
  line-height:1.75;
  color:var(--ink);
  overflow-x:hidden;
  position:relative;
  background:transparent;
}

body::before{
  content:"";
  position:fixed;
  inset:-25%;
  z-index:-1;
  background:
    radial-gradient(36% 40% at 14% 20%, rgba(255,0,128,.5), rgba(255,0,128,0) 64%),
    radial-gradient(40% 36% at 84% 14%, rgba(255,0,255,.44), rgba(255,0,255,0) 62%),
    radial-gradient(46% 44% at 72% 86%, rgba(38,23,31,.3), rgba(38,23,31,0) 66%),
    radial-gradient(38% 38% at 20% 90%, rgba(255,90,175,.42), rgba(255,90,175,0) 64%),
    conic-gradient(from 200deg at 50% 50%, #ffe2f2, #fff2fa, #ffd9ee, #f4dcff, #ffeaf5);
  animation:mesh 24s ease-in-out infinite alternate;
  will-change:transform,filter;
}

@keyframes mesh{
  from{transform:translate3d(-2%,-1%,0) scale(1.06);filter:hue-rotate(0deg) saturate(115%)}
  to{transform:translate3d(2%,2%,0) scale(1.16);filter:hue-rotate(30deg) saturate(132%)}
}

/* 顶部细条 */
.ticker{
  background:linear-gradient(90deg,var(--ink),#4a2233 42%,var(--rose) 72%,var(--mag));
  color:#fff;
  font-size:16px;
  letter-spacing:.09em;
  padding:7px 0;
  white-space:nowrap;
  overflow:hidden;
}
.ticker p{
  margin:0;
  padding:0 18px;
  text-align:center;
  overflow:hidden;
  text-overflow:ellipsis;
}

/* 页头 */
.top{
  position:sticky;
  top:0;
  z-index:30;
  display:flex;
  align-items:center;
  gap:16px;
  flex-wrap:wrap;
  padding:12px clamp(14px,4vw,44px);
  background:rgba(255,255,255,.8);
  backdrop-filter:blur(12px);
  border-bottom:2px solid var(--ink);
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:46px;
  text-decoration:none;
  color:var(--ink);
}

.mark{
  display:inline-flex;
  width:36px;
  height:36px;
  border-radius:13px;
  border:2px solid var(--ink);
  overflow:hidden;
  background:linear-gradient(135deg,var(--rose),var(--mag));
}
.mark-img{display:block;width:100%;height:100%;object-fit:cover}

.brand-name{
  font-weight:900;
  font-size:20px;
  letter-spacing:.05em;
  background:linear-gradient(96deg,var(--ink) 10%,var(--rose) 58%,var(--mag));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}

.menu{margin-left:auto;min-width:0}
.menu-list{
  display:flex;
  gap:5px;
  margin:0;
  padding:0;
  list-style:none;
  max-width:100%;
  overflow-x:auto;
  scrollbar-width:none;
  -webkit-overflow-scrolling:touch;
}
.menu-list::-webkit-scrollbar{display:none}
.menu-list a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:6px 12px;
  border:2px solid transparent;
  border-radius:999px;
  color:var(--ink);
  font-size:16px;
  font-weight:700;
  text-decoration:none;
  white-space:nowrap;
}
.menu-list a:hover,
.menu-list a:focus-visible{
  border-color:var(--ink);
  background:linear-gradient(120deg,rgba(255,0,128,.18),rgba(255,0,255,.18));
}

/* 头图 */
.hero{
  position:relative;
  isolation:isolate;
  display:flex;
  align-items:flex-end;
  justify-content:flex-end;
  height:clamp(420px,70vh,660px);
  overflow:hidden;
  background:
    radial-gradient(60% 80% at 20% 18%, rgba(255,0,255,.62), rgba(255,0,255,0) 62%),
    radial-gradient(70% 90% at 82% 32%, rgba(255,0,128,.7), rgba(255,0,128,0) 64%),
    conic-gradient(from 140deg at 60% 40%, #ff0080, #ff00ff, #6d2549, #ff0080);
  animation:aura 19s ease-in-out infinite alternate;
}
@keyframes aura{
  from{filter:hue-rotate(0deg) saturate(112%)}
  to{filter:hue-rotate(26deg) saturate(130%)}
}
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background:linear-gradient(to top, rgba(38,23,31,.92), rgba(38,23,31,.34) 56%, rgba(38,23,31,.14));
}
.hero-media{position:absolute;inset:0;z-index:0}
.hero-img{display:block;width:100%;height:100%;object-fit:cover}

.hero-copy{
  position:relative;
  z-index:2;
  max-width:min(900px,100%);
  padding:0 clamp(16px,5vw,56px) clamp(26px,6vh,54px);
  text-align:right;
}
.hero h1{
  margin:0;
  color:#fff;
  font-weight:900;
  font-size:clamp(2rem,7.2vw,4.6rem);
  line-height:1.14;
  letter-spacing:.02em;
  text-shadow:0 8px 30px rgba(38,23,31,.55);
  overflow-wrap:break-word;
}

/* 正文骨架 */
main{padding:clamp(30px,5.5vw,64px) 0 clamp(40px,7vw,80px)}
.wrap{max-width:var(--max);margin:0 auto;padding:0 clamp(14px,4vw,36px)}

.col{
  display:grid;
  grid-template-columns:minmax(0,1fr) 300px;
  gap:clamp(18px,3vw,40px);
  align-items:start;
}

.body{
  min-width:0;
  padding:clamp(20px,3.4vw,44px);
  border:2px solid var(--ink);
  border-radius:var(--r);
  background:rgba(255,255,255,.87);
  backdrop-filter:blur(6px);
}

.body > article{
  padding-top:clamp(26px,4vw,46px);
  border-top:2px dashed rgba(38,23,31,.24);
  scroll-margin-top:120px;
}
.body > article:first-child{padding-top:0;border-top:0}

.body h2{
  position:relative;
  margin:.15em 0 .6em;
  padding-left:18px;
  font-size:clamp(1.4rem,3vw,2rem);
  line-height:1.34;
  font-weight:900;
}
.body h2::before{
  content:"";
  position:absolute;
  left:0;
  top:.2em;
  bottom:.2em;
  width:8px;
  border-radius:8px;
  background:linear-gradient(180deg,var(--rose),var(--mag));
}
.body h3{
  margin:1.5em 0 .5em;
  font-size:1.14rem;
  font-weight:800;
}
.body p{margin:0 0 1.05em}
.body ul,
.body ol{margin:0 0 1.1em;padding-left:1.35em}
.body li{margin:.35em 0}
.body strong{font-weight:800}
.body a{
  color:#c1006a;
  text-decoration:underline;
  text-decoration-thickness:2px;
  text-underline-offset:3px;
}
.body a:hover{color:var(--mag)}
.body img{
  max-width:100%;
  height:auto;
  border:2px solid var(--ink);
  border-radius:18px;
}
.body blockquote{
  margin:1.2em 0;
  padding:.65em 1.05em;
  border-left:6px solid var(--rose);
  border-radius:0 18px 18px 0;
  background:rgba(255,0,128,.09);
}

/* 侧栏 */
.rail{
  position:sticky;
  top:98px;
  padding:22px;
  border:2px solid var(--ink);
  border-radius:var(--r);
  background:linear-gradient(165deg,rgba(255,255,255,.96),rgba(255,231,244,.94));
}
.rail h2{
  margin:0 0 .35em;
  font-size:1.2rem;
  font-weight:900;
  letter-spacing:.05em;
}
.subtitle{
  margin:0 0 16px;
  font-size:16px;
  line-height:1.6;
  color:#6b4a5c;
}

.rail-list{
  display:grid;
  gap:6px;
  margin:0;
  padding:0;
  list-style:none;
}
.rail-list a{
  display:flex;
  align-items:center;
  min-height:44px;
  padding:8px 14px;
  border:2px solid rgba(38,23,31,.24);
  border-radius:16px;
  background:rgba(255,255,255,.72);
  color:var(--ink);
  font-size:16px;
  font-weight:700;
  text-decoration:none;
}
.rail-list a:hover,
.rail-list a:focus-visible{
  border-color:var(--ink);
  background:linear-gradient(120deg,rgba(255,0,128,.16),rgba(255,0,255,.16));
}
.rail-list li{animation:rise .55s cubic-bezier(.22,1,.36,1) both}
.rail-list li:nth-child(1){animation-delay:.05s}
.rail-list li:nth-child(2){animation-delay:.12s}
.rail-list li:nth-child(3){animation-delay:.19s}
.rail-list li:nth-child(4){animation-delay:.26s}
.rail-list li:nth-child(5){animation-delay:.33s}
.rail-list li:nth-child(6){animation-delay:.4s}
@keyframes rise{
  from{opacity:0;transform:translateY(14px)}
  to{opacity:1;transform:none}
}

/* 页脚 */
.foot{
  display:grid;
  gap:8px;
  justify-items:center;
  text-align:center;
  padding:26px clamp(14px,4vw,36px) 34px;
  border-top:2px solid var(--ink);
  background:linear-gradient(180deg,rgba(255,255,255,.72),rgba(255,209,234,.9));
}
.foot article p{margin:0}
.foot-mark p{
  font-size:16px;
  font-weight:900;
  letter-spacing:.26em;
  background:linear-gradient(90deg,var(--rose),var(--mag));
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
.foot-meta p{font-size:16px;color:#5d4351}

/* 断点 */
@media (max-width:900px){
  .col{grid-template-columns:minmax(0,1fr)}
  .rail{position:static}
}

@media (max-width:820px){
  .top{padding:10px 14px;gap:10px}
  .brand-name{font-size:18px}
  .menu{order:3;width:100%;margin-left:0}
  .menu-list{padding-bottom:2px}
  .hero{height:clamp(400px,68vh,560px)}
  .hero-copy{text-align:right}
  .body > article{scroll-margin-top:150px}
}

@media (max-width:430px){
  body{font-size:16px}
  .hero h1{font-size:clamp(1.85rem,8.4vw,2.6rem)}
  .body,.rail,.foot{padding-left:16px;padding-right:16px}
}

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

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