:root{
  --ink:#261717;
  --red:#ff0000;
  --vio:#8b00ff;
  --paper:#f8f0ed;
  --soft:#e2cec9;
  --muted:#c8aeaa;
  --glass:rgba(255,255,255,.09);
  --line:rgba(255,255,255,.2);
  --r:18px;
  --maxw:1180px;
}

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

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

body{
  margin:0;
  font-family:'Didact Gothic',system-ui,-apple-system,'PingFang SC','Hiragino Sans GB','Microsoft YaHei',sans-serif;
  font-size:17px;
  line-height:1.75;
  color:var(--paper);
  background-color:var(--ink);
  background-image:
    radial-gradient(900px 620px at 6% -8%, rgba(255,0,0,.44), transparent 62%),
    radial-gradient(760px 560px at 96% 2%, rgba(139,0,255,.4), transparent 60%),
    radial-gradient(1100px 820px at 50% 112%, rgba(139,0,255,.24), transparent 68%),
    linear-gradient(180deg,#2e1a1a 0%,#1c1010 58%,#261717 100%);
  background-attachment:fixed;
  overflow-x:clip;
  word-break:break-word;
  -webkit-font-smoothing:antialiased;
}

body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  opacity:.85;
  background-image:repeating-linear-gradient(112deg, rgba(255,255,255,.045) 0 1px, transparent 1px 104px);
}

a{color:inherit}

:focus-visible{outline:2px solid #ffd0d0;outline-offset:3px;border-radius:6px}

/* ---------- 顶栏 ---------- */

.masthead{
  position:sticky;
  top:0;
  z-index:40;
  background:rgba(38,23,23,.55);
  border-bottom:1px solid var(--line);
  -webkit-backdrop-filter:blur(16px);
  backdrop-filter:blur(16px);
}

.mast-inner{
  width:min(100% - 1.6rem, var(--maxw));
  margin:0 auto;
  display:flex;
  align-items:center;
  gap:14px;
  min-height:70px;
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  padding:6px 4px;
  text-decoration:none;
  color:var(--paper);
  flex:none;
}

.mark{
  width:40px;
  height:40px;
  border-radius:12px;
  object-fit:cover;
  flex:none;
}

.mark--geo{
  background:conic-gradient(from 45deg, var(--red), var(--vio), var(--red));
  box-shadow:0 0 22px rgba(255,0,0,.45);
  clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%);
}

.brand-name{
  font-family:'Poiret One','Didact Gothic',system-ui,'PingFang SC',serif;
  font-size:1.05rem;
  letter-spacing:.14em;
  white-space:nowrap;
}

.burger{
  display:none;
  margin-left:auto;
  align-items:center;
  gap:8px;
  min-height:44px;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid var(--line);
  background:var(--glass);
  color:var(--paper);
  font:inherit;
  font-size:1rem;
  cursor:pointer;
  -webkit-backdrop-filter:blur(12px);
  backdrop-filter:blur(12px);
}

.burger-bars{
  position:relative;
  width:18px;
  height:2px;
  background:var(--paper);
  flex:none;
}

.burger-bars::before,
.burger-bars::after{
  content:"";
  position:absolute;
  left:0;
  width:18px;
  height:2px;
  background:var(--paper);
}

.burger-bars::before{top:-6px}
.burger-bars::after{top:6px}

.navwrap{
  display:flex;
  align-items:center;
  gap:10px;
  margin-left:auto;
  min-width:0;
}

.nav-list{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:2px;
  margin:0;
  padding:0;
  list-style:none;
}

.nav-list a{
  display:inline-flex;
  align-items:center;
  gap:7px;
  min-height:44px;
  padding:10px 9px;
  border-radius:12px;
  text-decoration:none;
  color:var(--soft);
  font-size:1rem;
  transition:color .2s ease, background .2s ease;
}

.nav-list a::before{
  content:"";
  width:6px;
  height:6px;
  flex:none;
  opacity:.9;
  transform:rotate(45deg);
  background:linear-gradient(135deg, var(--red), var(--vio));
}

.nav-list a:hover,
.nav-list a:focus-visible{
  color:#fff;
  background:rgba(255,255,255,.1);
}

.contact{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:10px 18px;
  border-radius:999px;
  text-decoration:none;
  font-size:1rem;
  color:#fff;
  background:linear-gradient(135deg, rgba(255,0,0,.85), rgba(139,0,255,.85));
  border:1px solid rgba(255,255,255,.28);
  box-shadow:0 10px 26px -12px rgba(255,0,0,.7);
  transition:transform .2s ease, box-shadow .2s ease;
  flex:none;
}

.contact:hover{transform:translateY(-1px);box-shadow:0 16px 30px -14px rgba(255,0,0,.85)}

/* ---------- 首屏 ---------- */

.hero{
  position:relative;
  z-index:1;
  min-height:70vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:22px;
  padding:70px 20px 80px;
  text-align:center;
  overflow:hidden;
}

.hero-ring{
  position:absolute;
  top:50%;
  left:50%;
  width:min(78vw,600px);
  aspect-ratio:1;
  transform:translate(-50%,-50%);
  border-radius:50%;
  border:1px solid rgba(255,255,255,.16);
  box-shadow:inset 0 0 90px rgba(255,0,0,.18), 0 0 90px rgba(139,0,255,.16);
  pointer-events:none;
}

.hero-ring::after{
  content:"";
  position:absolute;
  inset:15%;
  border-radius:50%;
  border:1px solid rgba(255,255,255,.12);
}

.tagfloat{
  position:absolute;
  top:13%;
  right:8%;
  margin:0;
  padding:8px 16px;
  border-radius:999px;
  font-size:1rem;
  letter-spacing:.26em;
  color:#ffd9d9;
  background:rgba(255,0,0,.18);
  border:1px solid rgba(255,255,255,.24);
  -webkit-backdrop-filter:blur(10px);
  backdrop-filter:blur(10px);
  animation:floaty 7s ease-in-out infinite;
}

.hero-title{
  position:relative;
  margin:0;
  max-width:20ch;
  font-family:'Poiret One','Didact Gothic',system-ui,'PingFang SC',serif;
  font-size:clamp(2.2rem, 7.2vw, 4.6rem);
  line-height:1.16;
  letter-spacing:.05em;
  color:#fff;
  text-shadow:0 0 42px rgba(255,0,0,.45), 0 22px 60px rgba(0,0,0,.72);
}

.hero-sub{
  position:relative;
  margin:0;
  max-width:36rem;
  padding:14px 22px;
  border-radius:var(--r);
  font-size:1rem;
  line-height:1.8;
  color:#f2e6e2;
  background:rgba(255,255,255,.1);
  border:1px solid var(--line);
  box-shadow:0 26px 60px -34px rgba(0,0,0,.9);
  -webkit-backdrop-filter:blur(15px);
  backdrop-filter:blur(15px);
}

/* ---------- 主体 ---------- */

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

.wrap{
  width:min(100% - 1.6rem, var(--maxw));
  margin:0 auto;
  display:grid;
  grid-template-columns:minmax(0,1fr) 288px;
  gap:26px;
  align-items:start;
  padding:10px 0 70px;
}

.panel,
.doc{min-width:0}

.doc > article{
  margin:0 0 20px;
  padding:clamp(18px, 3.4vw, 34px);
  border-radius:var(--r);
  border:1px solid var(--line);
  background:linear-gradient(180deg, rgba(255,255,255,.11), rgba(38,23,23,.44));
  box-shadow:0 30px 70px -40px rgba(0,0,0,.95), inset 0 1px 0 rgba(255,255,255,.22);
  -webkit-backdrop-filter:blur(15px);
  backdrop-filter:blur(15px);
  scroll-margin-top:96px;
  animation:rise .6s cubic-bezier(.2,.7,.3,1) backwards;
  transition:transform .25s ease, box-shadow .25s ease;
}

.doc > article:hover{
  transform:translateY(-2px);
  box-shadow:0 36px 80px -40px rgba(0,0,0,1), inset 0 1px 0 rgba(255,255,255,.28);
}

.doc > article:nth-child(2){animation-delay:.05s}
.doc > article:nth-child(3){animation-delay:.1s}
.doc > article:nth-child(4){animation-delay:.15s}
.doc > article:nth-child(5){animation-delay:.2s}
.doc > article:nth-child(6){animation-delay:.25s}
.doc > article:nth-child(7){animation-delay:.3s}
.doc > article:nth-child(8){animation-delay:.35s}

.doc > article:last-child{margin-bottom:0}

.doc h2{
  position:relative;
  margin:0 0 14px;
  padding-left:18px;
  font-family:'Poiret One','Didact Gothic',system-ui,'PingFang SC',serif;
  font-size:clamp(1.45rem, 3vw, 2rem);
  line-height:1.32;
  letter-spacing:.04em;
  color:#fff;
}

.doc h2::before{
  content:"";
  position:absolute;
  left:0;
  top:.16em;
  bottom:.16em;
  width:3px;
  border-radius:3px;
  background:linear-gradient(180deg, var(--red), var(--vio));
}

.doc h3{
  margin:1.4em 0 .6em;
  font-family:'Poiret One','Didact Gothic',system-ui,'PingFang SC',serif;
  font-size:1.2rem;
  letter-spacing:.05em;
  color:#ffd9d9;
}

.doc p{margin:0 0 1em;color:#f0e3df}
.doc p:last-child{margin-bottom:0}
.doc strong{color:#fff}
.doc em{color:#ffc9c9}

.doc a{
  color:#ff9d9d;
  text-decoration-color:rgba(255,0,0,.5);
  text-underline-offset:3px;
}

.doc a:hover{color:#fff;text-decoration-color:#fff}

.doc ul,
.doc ol{margin:0 0 1em;padding-left:1.35em;color:#f0e3df}
.doc li{margin:.35em 0}

.doc blockquote{
  margin:0 0 1em;
  padding:12px 18px;
  border-left:2px solid rgba(139,0,255,.75);
  border-radius:0 12px 12px 0;
  background:rgba(255,255,255,.06);
  color:#f3e7e3;
}

.doc img{
  display:block;
  max-width:100%;
  height:auto;
  margin:0 0 1em;
  border-radius:14px;
  border:1px solid var(--line);
}

.doc table{
  display:block;
  width:100%;
  overflow-x:auto;
  border-collapse:collapse;
  margin:0 0 1em;
}

.doc th,
.doc td{
  padding:9px 12px;
  border:1px solid rgba(255,255,255,.16);
  text-align:left;
}

/* ---------- 右栏 ---------- */

.rail{
  position:sticky;
  top:96px;
  padding:20px 18px;
  border-radius:var(--r);
  border:1px solid var(--line);
  background:linear-gradient(180deg, rgba(255,255,255,.12), rgba(38,23,23,.5));
  box-shadow:0 30px 70px -44px rgba(0,0,0,.95);
  -webkit-backdrop-filter:blur(15px);
  backdrop-filter:blur(15px);
}

.eyebrow{
  display:block;
  margin-bottom:2px;
  font-size:1rem;
  letter-spacing:.34em;
  color:#ffb3b3;
}

.rail-title{
  margin:0 0 12px;
  font-family:'Poiret One','Didact Gothic',system-ui,'PingFang SC',serif;
  font-size:1.35rem;
  letter-spacing:.14em;
  color:#fff;
}

.rail-list{
  margin:0;
  padding:0;
  list-style:none;
  counter-reset:rail;
}

.rail-list li{
  counter-increment:rail;
  margin:0 0 3px;
  animation:rise .5s cubic-bezier(.2,.7,.3,1) backwards;
}

.rail-list li:nth-child(2){animation-delay:.04s}
.rail-list li:nth-child(3){animation-delay:.08s}
.rail-list li:nth-child(4){animation-delay:.12s}
.rail-list li:nth-child(5){animation-delay:.16s}
.rail-list li:nth-child(6){animation-delay:.2s}
.rail-list li:nth-child(7){animation-delay:.24s}

.rail-list a{
  display:flex;
  align-items:center;
  gap:10px;
  min-height:40px;
  padding:8px 10px;
  border-radius:12px;
  text-decoration:none;
  color:var(--soft);
  font-size:1rem;
  transition:background .2s ease, color .2s ease, transform .2s ease;
}

.rail-list a::before{
  content:counter(rail, decimal-leading-zero);
  font-family:'Poiret One','Didact Gothic',system-ui,serif;
  font-size:.95rem;
  letter-spacing:.06em;
  color:#ff9d9d;
}

.rail-list a:hover,
.rail-list a:focus-visible{
  color:#fff;
  background:rgba(255,255,255,.1);
  transform:translateX(3px);
}

/* ---------- 页脚 ---------- */

.foot{
  position:relative;
  z-index:1;
  display:flex;
  flex-wrap:wrap;
  align-items:flex-start;
  justify-content:space-between;
  gap:26px 32px;
  margin-top:16px;
  padding:34px max(1rem, calc((100% - var(--maxw)) / 2)) 40px;
  border-top:1px solid var(--line);
  background:rgba(18,10,10,.55);
  -webkit-backdrop-filter:blur(16px);
  backdrop-filter:blur(16px);
}

.foot-brand{
  display:flex;
  flex-direction:column;
  gap:8px;
  min-width:200px;
}

.brand--foot{pointer-events:auto}

.copy{
  margin:0;
  font-size:1rem;
  color:var(--muted);
}

.foot-list{
  display:grid;
  grid-template-columns:repeat(2, minmax(0,1fr));
  gap:0 22px;
  margin:0;
  padding:0;
  list-style:none;
}

.foot-list a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:8px 0;
  text-decoration:none;
  color:var(--soft);
  font-size:1rem;
}

.foot-list a:hover{color:#fff}

.foot-side{
  display:flex;
  flex-direction:column;
  gap:12px;
  min-width:240px;
}

.sub-label{
  display:block;
  margin-bottom:6px;
  font-size:1rem;
  letter-spacing:.2em;
  color:#ffb3b3;
}

.sub-row{display:flex;gap:8px}

.sub-input{
  flex:1;
  min-width:0;
  min-height:44px;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.1);
  color:var(--paper);
  font:inherit;
}

.sub-input::placeholder{color:#c9b2ae}

.sub-btn{
  min-height:44px;
  padding:10px 18px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.28);
  background:linear-gradient(135deg, rgba(255,0,0,.85), rgba(139,0,255,.85));
  color:#fff;
  font:inherit;
  cursor:pointer;
  transition:transform .2s ease;
}

.sub-btn:hover{transform:translateY(-1px)}

.totop{
  align-self:flex-start;
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:8px 14px;
  border-radius:999px;
  border:1px solid var(--line);
  background:var(--glass);
  text-decoration:none;
  color:var(--soft);
  font-size:1rem;
}

.totop:hover{color:#fff;background:rgba(255,255,255,.14)}

/* ---------- 断点 ---------- */

@media (max-width:980px){
  .wrap{grid-template-columns:minmax(0,1fr)}
  .rail{position:static;order:2}
}

@media (max-width:860px){
  html.js .navwrap{display:none}
  html.js .burger{display:inline-flex}
  .masthead.open .mast-inner{flex-wrap:wrap;padding-bottom:14px}
  .masthead.open .navwrap{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:8px;
    width:100%;
    margin:0;
  }
  .navwrap{order:3}
  .nav-list{flex-direction:column;gap:2px;width:100%}
  .nav-list a{
    justify-content:flex-start;
    padding:12px 14px;
    background:rgba(255,255,255,.07);
    border:1px solid rgba(255,255,255,.12);
  }
  .contact{justify-content:center}
  .hero{min-height:auto;padding:56px 16px 64px}
  .hero-ring{width:min(92vw,420px)}
  .tagfloat{position:static;animation:none}
  .foot{flex-direction:column;gap:22px}
  .foot-list{grid-template-columns:1fr}
  .foot-side{min-width:0;width:100%}
}

@media (max-width:420px){
  .wrap{width:calc(100% - 1.2rem)}
  .mast-inner{width:calc(100% - 1.2rem)}
  .brand-name{font-size:1rem;letter-spacing:.1em}
  .hero-sub{padding:12px 16px}
}

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

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

@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,
  *::before,
  *::after{
    animation-duration:.001s !important;
    animation-delay:0s !important;
    transition-duration:.001s !important;
  }
}

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