

:root{
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC",
          "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.22,.61,.36,1);
  --spring: cubic-bezier(.34,1.56,.64,1);
  --txt: #f6f1ea;
  --txt-dim: rgba(246,241,234,.82);
  --txt-faint: rgba(246,241,234,.55);
  --glass: rgba(18,13,10,.22);   
  --glass-brd: rgba(255,255,255,.12);
  --radius: 22px;
}

[data-theme="fire"]{
  --accent:#ff7e3f; --accent-2:#ffcf6e;
  --glow: rgba(255,130,60,.50);
  --title-a:#ffe4b0; --title-b:#ffa14d; --title-c:#ff5e3a;
  --veil-a: rgba(36,11,4,.68);
  --veil-b: rgba(36,11,4,.30);
  --tint: rgba(255,120,45,.05);
}

[data-theme="leaf"]{
  --accent:#57cf86; --accent-2:#d8f3b6;
  --glow: rgba(105,225,150,.40);
  --title-a:#effadb; --title-b:#9ce8a8; --title-c:#3fc98f;
  --veil-a: rgba(7,29,17,.68);
  --veil-b: rgba(7,29,17,.30);
  --tint: rgba(90,220,140,.05);
}

[data-theme="mech"]{
  --accent:#f5b045; --accent-2:#bcdcec;
  --glow: rgba(255,190,95,.42);
  --title-a:#ffe6bb; --title-b:#f5b045; --title-c:#93bcd6;
  --veil-a: rgba(13,17,23,.72);
  --veil-b: rgba(13,17,23,.32);
  --tint: rgba(170,205,235,.05);
}

[data-theme="cloud"]{
  --accent:#4da3ff; --accent-2:#bfe3ff;
  --glow: rgba(100,170,255,.45);
  --title-a:#f0f8ff; --title-b:#9ed2ff; --title-c:#4da3ff;
  --veil-a: rgba(6,18,36,.68);
  --veil-b: rgba(6,18,36,.30);
  --tint: rgba(120,185,255,.05);
}
[data-theme="blood"]{
  --accent:#e04157; --accent-2:#ff92a3;
  --glow: rgba(224,65,87,.5);
  --title-a:#ffd9df; --title-b:#ff8497; --title-c:#c81e3c;
  --veil-a: rgba(26,4,10,.68);
  --veil-b: rgba(26,4,10,.30);
  --tint: rgba(230,90,110,.05);
  --txt-dim: rgba(255,205,214,.9);
  --txt-faint: rgba(255,170,184,.75);
}
body[data-theme="cloud"]{ background:#0a1626; }
body[data-theme="cloud"] #bg{ background-color:#0a1626; }
body[data-theme="cloud"] #loading{ background:#0a1626; }
body[data-theme="blood"]{ background:#1a040a; }
body[data-theme="blood"] #bg{ background-color:#1a040a; }
body[data-theme="blood"] #loading{ background:#1a040a; }

*, *::before, *::after{ box-sizing:border-box; }
html{ height:100%; -webkit-text-size-adjust:100%; }
body{
  margin:0;
  min-height:100vh;
  min-height:100dvh;
  display:flex; flex-direction:column;
  font-family:var(--font);
  font-size:16px;
  color:var(--txt);
  background:#0c0a09;
  overflow-x:hidden;
  -webkit-font-smoothing:antialiased;
  -webkit-tap-highlight-color:transparent;
}
img{ max-width:100%; }
a{ -webkit-tap-highlight-color:transparent; }
::selection{ background:var(--accent); color:#180b04; }
a:focus-visible{ outline:2px solid var(--accent); outline-offset:3px; border-radius:8px; }

#loading{
  position:fixed; inset:0; z-index:60;
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:20px;
  background:#0c0a09;
  transition:opacity .5s var(--ease), visibility 0s .5s;
}
#loading.done{ opacity:0; visibility:hidden; pointer-events:none; }
#loading .spin{
  width:46px; height:46px; color:var(--accent);
}
#loading .spin svg{
  display:block; width:100%; height:100%;
  animation:spin 1.6s linear infinite;
}
#loading p{
  margin:0; color:var(--txt-faint);
  font-size:13px; letter-spacing:.25em; text-indent:.25em;
}

#bg{
  position:fixed; inset:-4vmax; z-index:0;
  background-color:#0c0a09;
  background-position:center;
  background-size:cover;
  background-repeat:no-repeat;
  transform:scale(1.06);
  transition:opacity 1s var(--ease);
  will-change:transform, opacity;
}

body:not(.js) #bg{
  background-image:linear-gradient(160deg, var(--veil-a), #0c0a09 70%);
}

.veil{
  position:fixed; inset:0; z-index:1; pointer-events:none;
  background:
    linear-gradient(180deg, var(--veil-a) 0%, var(--veil-b) 32%, var(--veil-b) 62%, var(--veil-a) 100%),
    radial-gradient(130% 100% at 50% 42%, transparent 50%, var(--veil-a) 100%),
    linear-gradient(0deg, var(--tint), var(--tint));
}

.glow{
  display:none;
  position:fixed; left:0; top:0; z-index:2;
  width:460px; height:460px; margin:-230px 0 0 -230px;
  border-radius:50%;
  pointer-events:none;
  background:radial-gradient(circle, var(--glow) 0%, transparent 62%);
  opacity:.55;
  mix-blend-mode:screen;
  will-change:transform;
}
body.js .glow{ display:block; }
@media (pointer: coarse){ body.js .glow{ display:none; } }
@media (prefers-reduced-motion: reduce){ body.js .glow{ display:none; } }


#fx{ position:fixed; inset:0; z-index:5; pointer-events:none; }

.shell{
  position:relative; z-index:10;
  flex:1 0 auto;
  min-height:100vh; min-height:100dvh;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  padding:clamp(18px,4vw,44px);
  padding-top:max(clamp(18px,4vw,44px), env(safe-area-inset-top));
  padding-bottom:calc(clamp(18px,4vw,44px) + 58px);
  pointer-events:none;            
}
.shell > *{ pointer-events:auto; }   

.hero{
  position:relative;
  width:min(640px,100%);
  padding:clamp(28px,5vw,46px) clamp(22px,5vw,52px);
  border-radius:var(--radius);
  text-align:center;
  background:var(--glass);
  border:1px solid var(--glass-brd);
  -webkit-backdrop-filter:blur(4px) saturate(1.15);
  backdrop-filter:blur(4px) saturate(1.15);
  box-shadow:0 14px 36px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.06);
  animation:heroIn .9s var(--ease) .05s backwards;
  transition:transform .5s var(--ease), opacity .5s var(--ease), filter .5s var(--ease);
}
@keyframes heroIn{ from{ opacity:0; transform:translateY(20px) scale(.985); } to{ opacity:1; transform:none; } }
@keyframes rise{ from{ opacity:0; transform:translateY(26px); } to{ opacity:1; transform:none; } }
@keyframes fadein{ from{ opacity:0; } to{ opacity:1; } }

.avatar{ width:106px; height:106px; margin:0 auto 18px; position:relative; animation:rise .7s var(--ease) .12s backwards; }
.avatar img{
  display:block; width:100%; height:100%;
  object-fit:cover; border-radius:50%;
  border:3px solid rgba(255,255,255,.85);
  box-shadow:0 0 0 4px rgba(255,255,255,.08), 0 10px 30px rgba(0,0,0,.45);
}
@keyframes spin{ to{ transform:rotate(360deg); } }
[data-theme="fire"] .avatar{ filter:drop-shadow(0 0 18px rgba(255,120,50,.35)); }
[data-theme="leaf"] .avatar{ filter:drop-shadow(0 0 16px rgba(90,220,140,.30)); }
[data-theme="mech"] .avatar{ filter:drop-shadow(0 0 16px rgba(255,190,95,.28)); }
[data-theme="cloud"] .avatar{ filter:drop-shadow(0 0 16px rgba(90,160,255,.32)); }
[data-theme="blood"] .avatar{ filter:drop-shadow(0 0 16px rgba(224,65,87,.38)); cursor:pointer; }

.hero h1{
  margin:0 0 10px;
  font-size:clamp(26px,5.4vw,42px);
  font-weight:800; letter-spacing:.04em; line-height:1.25;
  background:linear-gradient(100deg, var(--title-a), var(--title-b) 45%, var(--title-c));
  -webkit-background-clip:text; background-clip:text;
  -webkit-text-fill-color:transparent; color:var(--accent-2);
  filter:drop-shadow(0 0 22px var(--glow)) drop-shadow(0 1px 10px rgba(0,0,0,.45));
  animation:rise .7s var(--ease) .2s backwards;
}
.hero .tagline{
  margin:0 0 22px;
  color:var(--txt-dim);
  font-size:clamp(15px,2.6vw,17px);
  letter-spacing:.1em;
  text-shadow:0 1px 12px rgba(0,0,0,.6);
  animation:rise .7s var(--ease) .28s backwards;
}
.hero .link-label{
  margin:26px 0 0;
  text-align:center;
  font-size:12px; font-weight:600;
  letter-spacing:.24em; text-indent:.24em;
  color:var(--txt-faint);
  animation:rise .7s var(--ease) .38s backwards;
}
.hero .chips + .link-label{ animation-delay:.5s; }
.hero .chips + .link-label + .chips{ animation-delay:.58s; }

.hero .chips{ width:min(430px,100%); margin:20px auto 0; text-align:left; animation:rise .7s var(--ease) .4s backwards; }
.hero p a{
  color:var(--accent-2); text-decoration:none;
  border-bottom:1px dashed rgba(255,255,255,.3);
  padding-bottom:1px;
  transition:.2s;
}
.hero p a:hover{
  color:#fff; border-bottom-color:var(--accent);
  text-shadow:0 0 12px var(--glow);
}      

.chips{ display:flex; flex-direction:column; gap:10px; margin:18px 0 6px; }
a.chip{
  --c:var(--accent);
  position:relative;
  display:flex; align-items:center; gap:12px;
  padding:13px 16px; border-radius:14px;
  font-size:15px; font-weight:600;
  color:var(--c); text-decoration:none;
  background:rgba(20,14,10,.30);
  border:1px solid rgba(255,255,255,.12);
  transition:transform .25s var(--spring), border-color .25s, box-shadow .25s, background .25s;
}
a.chip .ic{
  flex:none; width:20px; text-align:center;
  font-size:17px; line-height:1; color:var(--c);
}
a.chip .arr{ margin-left:auto; color:var(--c); opacity:.75; font-weight:400; transition:transform .25s; }
a.chip:hover, a.chip:focus-visible{
  transform:translateX(6px);
  border-color:var(--c);
  background:rgba(20,14,10,.48);
  box-shadow:0 6px 20px rgba(0,0,0,.3), 0 0 16px -4px var(--c);
}
a.chip:hover .arr{ transform:translate(3px,-3px); }

.footer{
  position:fixed; left:0; right:0; bottom:0; z-index:20;   
  text-align:center;
  padding:12px 16px calc(12px + env(safe-area-inset-bottom));
  color:var(--txt-faint);
  font-size:12.5px; letter-spacing:.05em;
  -webkit-user-select:text; user-select:text;
  pointer-events:none;
  animation:fadein 1.2s var(--ease) .9s backwards;
}
.footer p{ margin:0; text-shadow:0 1px 8px rgba(0,0,0,.5); }
.footer a{
  pointer-events:auto;
  color:var(--txt-dim); text-decoration:none;
  border-bottom:1px dotted rgba(255,255,255,.25);
  transition:color .2s;
}
.footer a:hover{ color:var(--accent-2); }

@media (max-width:640px){
  .hero{ padding:26px 20px; }
  .avatar{ width:92px; height:92px; }
  a.chip{ font-size:14.5px; padding:12px 14px; }
  .footer{ font-size:11.5px; }
}

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{
    animation-duration:.001s !important;
    animation-iteration-count:1 !important;
    transition-duration:.001s !important;
  }
}

.wish{
  display:flex; align-items:center; justify-content:center; gap:10px;
  margin:16px 0 0;
  font-size:13px; letter-spacing:.6px;
  color:rgba(226,236,250,.85);
  animation:rise .7s var(--ease) .66s backwards;
}
.wish .i-svg{ font-size:15px; line-height:1; }
@keyframes wish-float{ from{ transform:translateX(-3px); } to{ transform:translateX(3px); } }

body[data-theme="blood"] .wish{ color:rgba(255,214,220,.82); }
.wish-warn{
  margin:7px 0 0;
  font-size:11px; letter-spacing:1.5px;
  color:rgba(255,130,148,.6);
  text-align:center;
  animation:rise .7s var(--ease) .74s backwards;
}
.wish .wish-eye{ color:#ff5a70; animation:wish-float 3.4s ease-in-out infinite alternate; }
.wish .wish-drop{ color:#c22a45; animation:wish-pulse 1.8s ease-in-out infinite alternate; }
@keyframes wish-pulse{ from{ opacity:.5; transform:scale(.9); } to{ opacity:1; transform:scale(1.1); } }

body.eyeless .hero::after{
  content:""; position:absolute; inset:-3px; border-radius:var(--radius);
  pointer-events:none; z-index:3;
  border:1px solid rgba(255,150,165,.8);
  box-shadow:
    0 0 70px 20px rgba(224,65,87,.62),
    0 0 140px 40px rgba(224,65,87,.28),
    inset 0 0 90px rgba(224,65,87,.3);
  animation:eyeglow 1.5s ease-in-out infinite alternate;
}
@keyframes eyeglow{ from{ opacity:.65; } to{ opacity:1; } }

@media (max-width:760px), (pointer:coarse){
  body.eyeless .hero::after{
    border-color:rgba(255,150,165,.4);
    box-shadow:0 0 30px 9px rgba(224,65,87,.3), 0 0 64px 18px rgba(224,65,87,.12), inset 0 0 42px rgba(224,65,87,.14);
  }
}

/* ---- 内联 SVG 图标（2026-11-29 替代 Font Awesome 字体）----
   原先 9 个图标要拉 3 个 CSS + 2 个字体共约 292 KiB。
   改内联后按 1em 显示：.ic 已给了 font-size:17px，所以 1em=17px；
   a.chip 里改为 20x17 的槽位，preserveAspectRatio 默认会等比居中，
   视觉上和原来的字体图标一致（FA 也是 17px 高、宽度按比例）。 */
.i-svg{ flex:none; width:1em; height:1em; fill:currentColor; vertical-align:-.125em; }
a.chip .i-svg{ width:20px; height:17px; }
