/* ===== CSS Variables ===== */
:root{
  --bg1:#fff7fb;
  --bg2:#f2fbff;
  --ink:#1f2a44;
  --muted:#5f6b86;
  --card:rgba(255,255,255,.78);
  --stroke:rgba(31,42,68,.10);
  --shadow: 0 18px 50px rgba(31,42,68,.12);
  --shadow2: 0 10px 30px rgba(31,42,68,.10);
  --pink:#ff7ab6;
  --violet:#9a7dff;
  --sky:#45c6ff;
  --mint:#39d6b5;
  --lemon:#ffd45c;
  --radius: 22px;
}

/* ===== Base Styles ===== */
*{box-sizing:border-box}
html,body{
  height:100%;
  min-height:100vh;
}
body{
  margin:0;
  color:var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  background:
    radial-gradient(ellipse 1400px 900px at 15% 8%, rgba(255,122,182,.20), transparent 60%),
    radial-gradient(ellipse 1100px 800px at 85% 12%, rgba(69,198,255,.16), transparent 58%),
    radial-gradient(ellipse 1200px 850px at 40% 88%, rgba(57,214,181,.14), transparent 62%),
    radial-gradient(ellipse 900px 700px at 70% 75%, rgba(154,125,255,.12), transparent 55%),
    linear-gradient(160deg, #fff7fb 0%, #fef8fc 25%, #f9fbff 50%, #f4fbff 75%, #f2fbff 100%);
  background-attachment: fixed;
  background-size: cover;
  overflow-x:hidden;
  transition: background 0.5s ease;
}

/* 自定义壁纸模式 */
body.custom-wallpaper {
  background-color: #000 !important;
  background-image: var(--wallpaper-url, url('wallpaper.jpg')) !important;
  background-position: center center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
}

/* 隐藏内容模式（仅显示 header 和背景）*/
body.wallpaper-only .wrap > *:not(header),
body.wallpaper-only .blob {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

/* 壁纸模式下也隐藏blob元素 */
body.custom-wallpaper .blob {
  display: none !important;
}

body.wallpaper-only .wrap {
  min-height: 100vh;
}

/* wallpaper-only模式下取消header和footer的半透明背景 */
body.wallpaper-only header,
body.wallpaper-only footer {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  box-shadow: none !important;
}

/* 仅桌面端隐藏系统光标（移动端保留默认） */
@media (hover:hover) and (pointer:fine){
  body{ cursor:none; }
  a, button, input, textarea, select, label { cursor:none; }
}

/* ===== Cute Floating Blobs ===== */
.blob{
  position:fixed;
  inset:auto auto auto auto;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  filter: blur(30px);
  opacity:.45;
  z-index:-2;
  animation: floaty 9s ease-in-out infinite;
  pointer-events:none;
}
.blob.b1{left:-90px; top:70px; background: radial-gradient(circle at 30% 30%, rgba(255,122,182,.9), rgba(154,125,255,.2));}
.blob.b2{right:-120px; top:220px; width:420px; height:420px; animation-duration: 12s;
         background: radial-gradient(circle at 30% 30%, rgba(69,198,255,.8), rgba(255,212,92,.25));}
.blob.b3{left:12%; bottom:-160px; width:520px; height:520px; animation-duration: 14s;
         background: radial-gradient(circle at 30% 30%, rgba(57,214,181,.75), rgba(255,122,182,.18));}
@keyframes floaty{
  0%,100%{transform: translateY(0) translateX(0) scale(1)}
  50%{transform: translateY(-24px) translateX(14px) scale(1.03)}
}

/* ===== Layout ===== */
.wrap{
  max-width: 1040px;
  margin: 0 auto;
  padding: 28px 18px 70px;
}

header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding: 10px 6px 22px;
}

/* 壁纸模式下header添加背景 */
body.custom-wallpaper header {
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 20px;
  padding: 14px 18px;
  margin-bottom: 10px;
  box-shadow: 0 8px 32px rgba(31, 42, 68, 0.12);
}

body.custom-wallpaper.night header {
  background: rgba(15, 18, 32, 0.01);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* 壁纸模式下header文字增强 */
body.custom-wallpaper .brand h1,
body.custom-wallpaper .brand small {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

body.custom-wallpaper.night .brand h1,
body.custom-wallpaper.night .brand small {
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* ===== Brand / Avatar ===== */
.brand{
  display:flex;
  align-items:center;
  gap:12px;
}
.avatar{
  width:82px;
  height:82px;
  aspect-ratio: 1 / 1;
  border-radius: 16px;
  background: url('avatar.png') center center / cover no-repeat;
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow2);
  position:relative;
  overflow:hidden;
  flex-shrink: 0;
}
.avatar:before{
  content:"";
  position:absolute; inset:-20%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.65), transparent 45%);
  transform: rotate(15deg);
}
.brand h1{
  margin:0;
  font-size: 16px;
  letter-spacing:.2px;
}
.brand small{
  display:block;
  color: var(--muted);
  font-size: 12px;
  margin-top:2px;
}

/* ===== Top Actions ===== */
.top-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
  justify-content:flex-end;
}

.pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.70);
  border: 1px solid var(--stroke);
  box-shadow: 0 8px 24px rgba(31,42,68,.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  text-decoration:none;
  color: var(--ink);
  font-size: 13px;
  transition: transform .15s ease, box-shadow .15s ease;
  user-select:none;
}
.pill:hover{transform: translateY(-1px); box-shadow: 0 14px 34px rgba(31,42,68,.12);}
.pill .dot{
  width:10px;height:10px;border-radius:50%;
  background: linear-gradient(135deg, var(--mint), var(--sky));
  box-shadow: 0 0 0 4px rgba(69,198,255,.12);
}

/* ===== Hero Section ===== */
.hero{
  display:grid;
  grid-template-columns: 1.15fr .85fr;
  gap:16px;
  align-items:stretch;
  margin-top: 6px;
}

.card{
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow:hidden;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out;
  transform-style: preserve-3d;
}

.card.tilt-active{
  box-shadow: var(--shadow), 0 30px 80px rgba(31,42,68,.18);
}

.hero-left{
  padding: 22px 22px 18px;
  position:relative;
}
.badge-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom: 10px;
}
.badge{
  font-size:12px;
  color: rgba(31,42,68,.86);
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px dashed rgba(31,42,68,.18);
  background: rgba(255,255,255,.55);
}

.title{
  margin: 8px 0 8px;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing:.2px;
}
.title .en{
  display:block;
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
  margin-top: 6px;
}
.summary{
  margin: 10px 0 14px;
  color: rgba(31,42,68,.86);
  line-height: 1.7;
  font-size: 14px;
}

.cta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 10px;
}
.btn{
  border:0;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
  background: rgba(255,255,255,.70);
  border: 1px solid rgba(31,42,68,.12);
  box-shadow: 0 12px 30px rgba(31,42,68,.10);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover{transform: translateY(-1px); box-shadow: 0 16px 44px rgba(31,42,68,.14);}
.btn.primary{
  background: linear-gradient(135deg, rgba(255,122,182,.95), rgba(154,125,255,.95));
  color: #fff;
  border: 1px solid rgba(255,255,255,.35);
}
.btn .ico{
  width:18px;height:18px;
  display:inline-grid; place-items:center;
  border-radius: 8px;
  background: rgba(255,255,255,.22);
}

.hero-right{
  padding: 18px;
  display:flex;
  flex-direction:column;
  gap:12px;
}

/* ===== Mini Cards ===== */
.mini{
  padding: 14px 14px 12px;
  border-radius: 18px;
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(31,42,68,.10);
  box-shadow: 0 10px 22px rgba(31,42,68,.07);
}
.mini h3{
  margin:0 0 10px;
  font-size: 14px;
  letter-spacing:.2px;
}

.contact-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
}

.kv{
  display:flex;
  flex-direction:column;
  gap:2px;
  padding:10px 10px;
  border-radius: 14px;
  border: 1px solid rgba(31,42,68,.10);
  background: rgba(255,255,255,.65);
}
.kv b{font-size:12px}
.kv a, .kv span{
  font-size: 12px;
  color: var(--muted);
  text-decoration:none;
  word-break: break-all;
}
.kv a:hover{color: rgba(31,42,68,.92); text-decoration:underline;}

.chips{
  display:flex; flex-wrap:wrap; gap:8px;
  margin-top: 10px;
}
.chip{
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(69,198,255,.18), rgba(57,214,181,.18));
  border: 1px solid rgba(31,42,68,.10);
}

/* ===== Main Content ===== */
main{margin-top: 16px;}
.section{
  margin-top: 14px;
  padding: 18px 18px 16px;
}
.section h2{
  margin:0 0 12px;
  font-size: 16px;
  display:flex;
  align-items:center;
  gap:10px;
  letter-spacing:.2px;
}
.section h2 .bubble{
  width:28px;height:28px;
  border-radius: 12px;
  display:grid; place-items:center;
  background: linear-gradient(135deg, rgba(255,212,92,.75), rgba(255,122,182,.35));
  border: 1px solid rgba(31,42,68,.10);
  box-shadow: 0 10px 24px rgba(31,42,68,.10);
}

.grid2{display:grid; grid-template-columns: 1fr 1fr; gap:12px;}
.grid3{display:grid; grid-template-columns: repeat(3, 1fr); gap:12px;}

.item{
  padding: 14px 14px 12px;
  border-radius: 18px;
  background: rgba(255,255,255,.62);
  border: 1px solid rgba(31,42,68,.10);
  box-shadow: 0 10px 22px rgba(31,42,68,.07);
}
.item h3{
  margin:0 0 6px;
  font-size: 14px;
  line-height:1.35;
}
.meta{
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
}
.tag{
  font-size: 11px;
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid rgba(31,42,68,.10);
  background: rgba(255,255,255,.58);
}
.item p{
  margin: 0;
  color: rgba(31,42,68,.86);
  font-size: 13px;
  line-height: 1.65;
}
.item ul{
  margin: 8px 0 0;
  padding-left: 18px;
  color: rgba(31,42,68,.86);
  font-size: 13px;
  line-height: 1.65;
}

footer{
  margin-top: 18px;
  padding: 16px 10px 0;
  color: var(--muted);
  font-size: 12px;
  text-align:center;
}

/* 壁纸模式下footer添加背景 */
body.custom-wallpaper footer {
  background: rgba(255, 255, 255, 0.80);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 16px;
  padding: 18px 20px;
  margin-top: 24px;
  box-shadow: 0 4px 20px rgba(31, 42, 68, 0.1);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

body.custom-wallpaper.night footer {
  background: rgba(15, 18, 32, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

/* ===== Responsive ===== */
@media (max-width: 920px){
  .hero{grid-template-columns: 1fr; }
  .contact-grid{grid-template-columns:1fr;}
}
@media (max-width: 860px){
  .grid2{grid-template-columns:1fr}
  .grid3{grid-template-columns:1fr}
  header{padding-bottom: 14px;}
}

/* ===== Wiggle Animation ===== */
.wiggle:hover{animation: wiggle .35s ease-in-out}
@keyframes wiggle{
  0%{transform: rotate(0deg)}
  30%{transform: rotate(-1.1deg)}
  60%{transform: rotate(1.1deg)}
  100%{transform: rotate(0deg)}
}

/* ===== Night Mode ===== */
body.night{
  --bg1:#0f1220;
  --bg2:#111a2c;
  --ink:#f3f6ff;
  --muted:#b7c2e2;
  --card:rgba(18,26,44,.62);
  --stroke:rgba(255,255,255,.12);
  --shadow: 0 18px 50px rgba(0,0,0,.35);
  --shadow2: 0 10px 30px rgba(0,0,0,.28);
}

/* 夜间模式默认渐变背景（仅在非壁纸模式下显示）*/
body.night:not(.custom-wallpaper) {
  background:
    radial-gradient(ellipse 1400px 900px at 15% 8%, rgba(255,212,92,.08), transparent 62%),
    radial-gradient(ellipse 1100px 800px at 85% 12%, rgba(154,125,255,.12), transparent 60%),
    radial-gradient(ellipse 1200px 850px at 40% 88%, rgba(69,198,255,.10), transparent 64%),
    radial-gradient(ellipse 900px 700px at 70% 75%, rgba(255,122,182,.08), transparent 58%),
    linear-gradient(160deg, #0f1220 0%, #101422 25%, #0f161f 50%, #101824 75%, #111a2c 100%);
  background-attachment: fixed;
  background-size: cover;
}
body.night .badge{color: rgba(243,246,255,.88); background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18);}
body.night .pill{background: rgba(255,255,255,.06);}
body.night .btn{background: rgba(255,255,255,.08);}
body.night .mini, body.night .item{background: rgba(255,255,255,.06);}

body.night .summary,
body.night .item p,
body.night .item ul,
body.night .mini,
body.night .mini * ,
body.night .item,
body.night .item * {
  color: rgba(243,246,255,.90);
}
body.night .hero-right .mini ul,
body.night .hero-right .mini li,
body.night .hero-left .summary,
body.night .meta,
body.night .badge-row,
body.night .badge {
  color: rgba(243,246,255,.88) !important;
}
body.night .tag,
body.night .chip,
body.night .badge,
body.night .kv {
  border-color: rgba(255,255,255,.18);
}
body.night .tag,
body.night .chip,
body.night .badge,
body.night .kv,
body.night .pill {
  background: rgba(255,255,255,.08);
}
body.night a { color: rgba(243,246,255,.90); }
body.night a:hover { color: #fff; }

/* ===== Glass Cursor (Desktop Only) ===== */
.cute-cursor, .cute-cursor-ring{ display:none; }

@media (hover:hover) and (pointer:fine){
  .cute-cursor, .cute-cursor-ring{ display:block; }

  .cute-cursor{
    position: fixed;
    left: 0; top: 0;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: rgba(255,122,182,.95);
    transform: translate(-50%,-50%);
    pointer-events: none;
    z-index: 9999999;
    transition: width .10s ease, height .10s ease, background .10s ease, opacity .10s ease;
    box-shadow: 0 10px 26px rgba(255,122,182,.22);
  }

  .cute-cursor-ring{
    position: fixed;
    left: 0; top: 0;
    width: 20px; height: 20px;
    border-radius: 50%;
    transform: translate(-50%,-50%);
    pointer-events: none;
    z-index: 9999998;
    background: rgba(255,255,255,.16);
    border: 1px solid rgba(255,255,255,.35);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    box-shadow:
      0 18px 40px rgba(31,42,68,.14),
      inset 0 1px 0 rgba(255,255,255,.45),
      inset 0 -10px 18px rgba(0,0,0,.06);
    transition:
      width .14s ease, height .14s ease,
      background .14s ease, border-color .14s ease,
      box-shadow .14s ease, opacity .14s ease;
    overflow: hidden;
  }

  .cute-cursor-ring::before{
    content:"";
    position:absolute;
    inset: -35% -35% auto auto;
    width: 70%;
    height: 70%;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.75), rgba(255,255,255,0) 60%);
    transform: rotate(18deg);
    opacity: .65;
    pointer-events:none;
  }
  .cute-cursor-ring::after{
    content:"";
    position:absolute;
    inset:0;
    background:
      repeating-linear-gradient(0deg, rgba(255,255,255,.02) 0 1px, rgba(255,255,255,0) 1px 3px),
      repeating-linear-gradient(90deg, rgba(255,255,255,.02) 0 1px, rgba(255,255,255,0) 1px 3px);
    opacity:.22;
    mix-blend-mode: overlay;
    pointer-events:none;
  }

  .cute-cursor.hover{
    width: 12px; height: 12px;
  }
  .cute-cursor-ring.hover{
    width: 26px; height: 26px;
    border-color: rgba(69,198,255,.42);
  }

  .cute-cursor.click{
    width: 24px; height: 24px;
    background: rgba(255,122,182,.55);
    box-shadow: 0 18px 46px rgba(255,122,182,.20);
  }
  .cute-cursor-ring.click{
    background: rgba(255,122,182,.22);
    border-color: rgba(255,255,255,.25);
  }

  body.night .cute-cursor{
    background: rgba(255,212,92,.95);
    box-shadow: 0 14px 36px rgba(255,212,92,.18);
  }
  body.night .cute-cursor.click{ background: rgba(255,212,92,.55); }
  body.night .cute-cursor-ring{
    background: rgba(255,255,255,.10);
    border-color: rgba(255,255,255,.28);
    box-shadow:
      0 22px 58px rgba(0,0,0,.35),
      inset 0 1px 0 rgba(255,255,255,.40),
      inset 0 -12px 22px rgba(0,0,0,.18);
  }
  body.night .cute-cursor-ring.hover{ border-color: rgba(255,212,92,.40); }
  body.night .cute-cursor-ring.click{
    background: rgba(255,212,92,.18);
    border-color: rgba(255,255,255,.22);
  }
}

/* ===== Custom Context Menu ===== */
.custom-context-menu {
  position: fixed;
  display: none;
  min-width: 220px;
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 14px;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 
    0 20px 60px rgba(31,42,68,.18),
    0 8px 20px rgba(31,42,68,.12),
    inset 0 1px 0 rgba(255,255,255,.65),
    inset 0 -1px 0 rgba(0,0,0,.04);
  padding: 8px;
  z-index: 99999999;
  overflow: hidden;
  opacity: 0;
  transform: scale(0.95);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.custom-context-menu.show {
  display: block;
  opacity: 1;
  transform: scale(1);
}

.custom-context-menu::before {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, transparent 1px 2px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 1px, transparent 1px 2px);
  opacity: 0.4;
  pointer-events: none;
  mix-blend-mode: overlay;
}

.context-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.12s ease;
  position: relative;
  color: var(--ink);
  font-size: 14px;
  user-select: none;
}

.context-menu-item:hover {
  background: rgba(255,122,182,.12);
  transform: translateX(2px);
}

.context-menu-item:active {
  background: rgba(255,122,182,.20);
  transform: scale(0.98);
}

.context-menu-item.disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.menu-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.menu-text {
  flex: 1;
  font-weight: 500;
}

.menu-shortcut {
  font-size: 11px;
  color: var(--muted);
  opacity: 0.7;
  font-family: 'Consolas', 'Monaco', monospace;
  background: rgba(0,0,0,.05);
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

.context-menu-divider {
  height: 1px;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(31,42,68,.12) 20%, 
    rgba(31,42,68,.12) 80%, 
    transparent);
  margin: 6px 0;
}

/* Night mode */
body.night .custom-context-menu {
  background: rgba(30,30,45,.92);
  border-color: rgba(255,255,255,.25);
  box-shadow: 
    0 20px 60px rgba(0,0,0,.45),
    0 8px 20px rgba(0,0,0,.30),
    inset 0 1px 0 rgba(255,255,255,.25),
    inset 0 -1px 0 rgba(0,0,0,.15);
}

body.night .context-menu-item {
  color: rgba(255,255,255,.95);
}

body.night .context-menu-item:hover {
  background: rgba(255,212,92,.15);
}

body.night .context-menu-item:active {
  background: rgba(255,212,92,.25);
}

body.night .menu-shortcut {
  color: rgba(255,255,255,.6);
  background: rgba(255,255,255,.08);
}

body.night .context-menu-divider {
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255,255,255,.15) 20%, 
    rgba(255,255,255,.15) 80%, 
    transparent);
}

/* ===== Copy Success Toast ===== */
.copy-toast {
  position: fixed;
  top: 80px;
  right: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: rgba(255,255,255,.88);
  border: 1px solid rgba(255,255,255,.50);
  border-radius: 12px;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 
    0 20px 50px rgba(31,42,68,.15),
    0 8px 18px rgba(31,42,68,.10),
    inset 0 1px 0 rgba(255,255,255,.70),
    inset 0 -1px 0 rgba(0,0,0,.03);
  z-index: 99999999;
  pointer-events: none;
  opacity: 0;
  transform: translateX(120%) scale(0.9);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  user-select: none;
}

.copy-toast::before {
  content: "";
  position: absolute;
  inset: 0;
  background: 
    repeating-linear-gradient(0deg, rgba(255,255,255,.03) 0 1px, transparent 1px 2px),
    repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 1px, transparent 1px 2px);
  opacity: 0.5;
  pointer-events: none;
  border-radius: 12px;
}

.copy-toast.show {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.toast-text {
  font-weight: 600;
  letter-spacing: 0.5px;
  position: relative;
  z-index: 1;
}


/* Night mode */
body.night .copy-toast {
  background: rgba(30,30,45,.92);
  border-color: rgba(255,255,255,.28);
  color: rgba(255,255,255,.95);
  box-shadow: 
    0 20px 50px rgba(0,0,0,.40),
    0 8px 18px rgba(0,0,0,.25),
    inset 0 1px 0 rgba(255,255,255,.30),
    inset 0 -1px 0 rgba(0,0,0,.10);
}

/* 移动端调整 */
@media (max-width: 768px) {
  .copy-toast {
    top: 60px;
    right: 15px;
    padding: 10px 18px;
    font-size: 13px;
  }
}

/* ===== Heart Burst Effect ===== */
.heart{
  position: fixed;
  width: 12px; height: 12px;
  transform: translate(-50%,-50%) rotate(45deg);
  background: rgba(255,122,182,.95);
  pointer-events: none;
  z-index: 10001;
  animation: heartFly .75s ease-out forwards;
  filter: drop-shadow(0 10px 14px rgba(31,42,68,.12));
  will-change: transform, opacity;
}
.heart:before, .heart:after{
  content:"";
  position:absolute;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: inherit;
}
.heart:before{ left: -6px; top: 0; }
.heart:after{ left: 0; top: -6px; }

@keyframes heartFly{
  0%{ opacity: 0; transform: translate(-50%,-50%) rotate(45deg) scale(.6); }
  12%{ opacity: 1; }
  100%{
    opacity: 0;
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(45deg) scale(1.15);
  }
}

/* ===== Mouse Trail Particles ===== */
.trail-particle{
  position: fixed;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255,122,182,.85);
  pointer-events: none;
  z-index: 9998;
  animation: trailFade 0.8s ease-out forwards;
  box-shadow: 0 0 8px rgba(255,122,182,.4);
}
body.night .trail-particle{
  background: rgba(255,212,92,.85);
  box-shadow: 0 0 8px rgba(255,212,92,.4);
}
@keyframes trailFade{
  0%{ opacity: 1; transform: scale(1); }
  100%{ opacity: 0; transform: scale(0.3); }
}

/* ===== Scroll Progress Bar ===== */
.scroll-progress{
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 10002;
  background: linear-gradient(90deg, var(--pink), var(--violet), var(--sky));
  box-shadow: 0 2px 12px rgba(255,122,182,.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: width 0.1s ease-out;
}
body.night .scroll-progress{
  background: linear-gradient(90deg, var(--lemon), var(--pink), var(--violet));
  box-shadow: 0 2px 12px rgba(255,212,92,.35);
}

/* ===== Mute Button ===== */
.mute-btn{
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 30px;
  height: 30px;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: var(--card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(31,42,68,.12);
  cursor: pointer;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  transition: all 0.2s ease;
  user-select: none;
}
.mute-btn:hover{
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 12px 32px rgba(31,42,68,.18);
}
.mute-btn:active{
  transform: translateY(0) scale(0.95);
}
body.night .mute-btn{
  background: rgba(18,26,44,.75);
  border-color: rgba(255,255,255,.15);
}

/* ===== Konami Code Explosion Effect ===== */
.explosion-particle{
  position: fixed;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10003;
  animation: explode 2s ease-out forwards;
  box-shadow: 0 0 20px currentColor;
}
@keyframes explode{
  0%{ opacity: 1; transform: translate(-50%,-50%) scale(1); }
  100%{ opacity: 0; transform: translate(calc(-50% + var(--ex)), calc(-50% + var(--ey))) scale(0); }
}
.screen-shake{
  animation: shake 1.2s ease-in-out;
}
@keyframes shake{
  0%, 100%{ transform: translate(0, 0) rotate(0deg); }
  5%{ transform: translate(-12px, -10px) rotate(-2deg); }
  10%{ transform: translate(10px, 12px) rotate(2deg); }
  15%{ transform: translate(-10px, 8px) rotate(-1.5deg); }
  20%{ transform: translate(12px, -10px) rotate(1.5deg); }
  25%{ transform: translate(-8px, -12px) rotate(-1deg); }
  30%{ transform: translate(10px, 10px) rotate(1deg); }
  35%{ transform: translate(-12px, 8px) rotate(-1.5deg); }
  40%{ transform: translate(8px, -8px) rotate(1deg); }
  45%{ transform: translate(-6px, -10px) rotate(-0.8deg); }
  50%{ transform: translate(8px, 6px) rotate(0.8deg); }
  55%{ transform: translate(-8px, 8px) rotate(-0.6deg); }
  60%{ transform: translate(6px, -6px) rotate(0.6deg); }
  65%{ transform: translate(-5px, -8px) rotate(-0.5deg); }
  70%{ transform: translate(6px, 5px) rotate(0.5deg); }
  75%{ transform: translate(-6px, 6px) rotate(-0.4deg); }
  80%{ transform: translate(4px, -4px) rotate(0.3deg); }
  85%{ transform: translate(-4px, -5px) rotate(-0.2deg); }
  90%{ transform: translate(3px, 3px) rotate(0.2deg); }
  95%{ transform: translate(-2px, -3px) rotate(-0.1deg); }
}

/* 全屏闪光效果 */
.screen-flash{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 10004;
  animation: flash 0.5s ease-out;
}
@keyframes flash{
  0%, 20%{ background: rgba(255,255,255,0.8); }
  100%{ background: rgba(255,255,255,0); }
}

/* ===== Warning Modal ===== */
.warning-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.warning-modal.active {
  opacity: 1;
}

.warning-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 16, 30, 0.38);
  backdrop-filter: blur(14px) saturate(1.2);
  cursor: none;
}

.warning-modal-content {
  position: relative;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.46));
  border-radius: 24px;
  padding: 48px 40px;
  max-width: 500px;
  width: 90%;
  border: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow:
    0 28px 70px rgba(31, 42, 68, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(18px) saturate(1.25);
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  transform: scale(0.8);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.warning-modal-content::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, 0.55), transparent 45%),
    radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.25), transparent 50%);
  opacity: 0.75;
  pointer-events: none;
}

.warning-modal-content::after {
  content: '';
  position: absolute;
  inset: 1px;
  border-radius: calc(24px - 1px);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.12);
  opacity: 0.7;
  pointer-events: none;
}

.warning-modal.active .warning-modal-content {
  transform: scale(1);
  animation: warningBounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.warning-shake-container {
  animation: warningShake 0.5s ease-in-out 0.3s;
}

.warning-icon {
  font-size: 80px;
  text-align: center;
  animation: warningPulse 1s ease-in-out infinite;
  filter: drop-shadow(0 6px 16px rgba(31, 42, 68, 0.25));
  margin-bottom: 20px;
}

.warning-title {
  font-size: 32px;
  font-weight: 800;
  text-align: center;
  color: var(--ink);
  margin: 0 0 24px 0;
  text-shadow: 0 8px 24px rgba(31, 42, 68, 0.15);
}

.warning-text {
  margin-bottom: 32px;
}

.warning-main {
  font-size: 20px;
  font-weight: 600;
  text-align: center;
  color: var(--ink);
  margin: 0 0 12px 0;
}

.warning-sub {
  font-size: 16px;
  text-align: center;
  color: var(--muted);
  margin: 0 0 8px 0;
}

.warning-joke {
  font-size: 14px;
  text-align: center;
  color: rgba(31, 42, 68, 0.45);
  margin: 0;
  font-style: italic;
}

.warning-btn {
  width: 100%;
  padding: 16px 24px;
  background: linear-gradient(135deg, rgba(255, 122, 182, 0.95) 0%, rgba(154, 125, 255, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 12px;
  color: white;
  font-size: 18px;
  font-weight: 700;
  cursor: none;
  transition: all 0.3s ease;
  box-shadow:
    0 10px 28px rgba(154, 125, 255, 0.35),
    inset 0 -2px 0 rgba(0, 0, 0, 0.12);
  position: relative;
  overflow: hidden;
}

.warning-btn:before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.warning-btn:hover:before {
  left: 100%;
}

.warning-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 34px rgba(154, 125, 255, 0.45),
    inset 0 -2px 0 rgba(0, 0, 0, 0.1);
}

.warning-btn:active {
  transform: translateY(0);
  box-shadow:
    0 6px 18px rgba(154, 125, 255, 0.35),
    inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-text {
  position: relative;
  z-index: 1;
}

.warning-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  color: rgba(31, 42, 68, 0.5);
  font-style: italic;
}

.warning-step-indicator {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 28px;
}

.step-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(31, 42, 68, 0.12);
  transition: all 0.3s ease;
  position: relative;
}

.step-dot.active {
  background: linear-gradient(135deg, var(--pink) 0%, var(--violet) 100%);
  box-shadow: 0 0 14px rgba(154, 125, 255, 0.45);
  transform: scale(1.3);
}

.step-dot.completed {
  background: var(--mint);
  box-shadow: 0 0 10px rgba(57, 214, 181, 0.5);
}

.step-dot.completed::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 8px;
  color: white;
  font-weight: bold;
}

body.night .warning-modal-overlay {
  background: rgba(5, 8, 18, 0.55);
  backdrop-filter: blur(16px) saturate(1.1);
}

body.night .warning-modal-content {
  background: linear-gradient(135deg, rgba(15, 20, 35, 0.72), rgba(12, 16, 30, 0.58));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.night .warning-modal-content::after {
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  opacity: 0.65;
}

body.night .warning-title {
  text-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
}

body.night .warning-joke,
body.night .warning-footer {
  color: rgba(243, 246, 255, 0.65);
}

body.night .step-dot {
  background: rgba(243, 246, 255, 0.18);
}

.warning-step {
  animation: stepFadeIn 0.3s ease-out;
}

@keyframes stepFadeIn {
  0% { 
    opacity: 0; 
    transform: translateY(20px) scale(0.95);
  }
  100% { 
    opacity: 1; 
    transform: translateY(0) scale(1);
  }
}

@keyframes stepFadeOut {
  0% { 
    opacity: 1; 
    transform: translateY(0) scale(1);
  }
  100% { 
    opacity: 0; 
    transform: translateY(-20px) scale(0.95);
  }
}

@keyframes warningBounce {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.05); }
  70% { transform: scale(0.95); }
  100% { transform: scale(1); opacity: 1; }
}

@keyframes warningShake {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  10% { transform: translateX(-10px) rotate(-2deg); }
  20% { transform: translateX(10px) rotate(2deg); }
  30% { transform: translateX(-10px) rotate(-1deg); }
  40% { transform: translateX(10px) rotate(1deg); }
  50% { transform: translateX(-8px) rotate(-1deg); }
  60% { transform: translateX(8px) rotate(1deg); }
  70% { transform: translateX(-5px) rotate(-0.5deg); }
  80% { transform: translateX(5px) rotate(0.5deg); }
  90% { transform: translateX(-2px) rotate(0deg); }
}

@keyframes warningPulse {
  0%, 100% { 
    transform: scale(1) rotate(0deg);
    filter: drop-shadow(0 4px 12px rgba(255, 100, 0, 0.4));
  }
  50% { 
    transform: scale(1.15) rotate(-5deg);
    filter: drop-shadow(0 6px 20px rgba(255, 100, 0, 0.6));
  }
}

/* ===== Accessibility: Reduced Motion ===== */
@media (prefers-reduced-motion: reduce){
  .blob{animation:none !important;}
  .wiggle:hover{animation:none !important;}
  .heart{animation:none !important; opacity:0 !important;}
  .cute-cursor, .cute-cursor-ring{transition:none !important;}
  .trail-particle{animation:none !important; opacity:0 !important;}
  .explosion-particle{animation:none !important; opacity:0 !important;}
  .screen-shake{animation:none !important;}
  .warning-shake-container{animation:none !important;}
  .warning-icon{animation:none !important;}
  .warning-modal-content{animation:none !important;}
}
