/* 开好啦 staging detail1 (20261112-v7-detail1)
   Hover tilt, glass home buttons, theme-toggle alignment,
   page-tick overlay (later navigations only), USDT tutorial placeholders. Swarm chrome removed in detail8.
   Light + dark. Transform/opacity motion only; ease-out 200–300ms. */

:root{
  --d1-ease: cubic-bezier(0.23, 1, 0.32, 1);
  --d1-ms: 240ms;
  --d1-glow-dark: drop-shadow(0 16px 28px rgba(0,0,0,.42)) drop-shadow(0 0 22px rgba(62,199,255,.42)) drop-shadow(0 0 16px rgba(255,122,217,.28));
  --d1-glow-light: drop-shadow(0 14px 22px rgba(40,36,70,.22)) drop-shadow(0 0 16px rgba(139,108,255,.28));
}

/* ---------- 2a. Theme toggle: vertically centered, 36px like sibling CTAs ---------- */
.header-inner{
  align-items:center;
}
.header-actions,
.header-auth,
.panel-top-actions{
  display:flex;
  align-items:center;
  gap:8px;
}
.header-actions .theme-toggle,
.panel-top-actions .theme-toggle,
button.theme-toggle[data-theme-toggle]{
  position:relative;
  box-sizing:border-box;
  width:44px !important;
  height:44px !important;
  min-width:44px;
  min-height:44px;
  flex:0 0 44px;
  padding:0;
  margin:0;
  border-radius:999px !important;
  border:1px solid var(--hall-line) !important;
  background:var(--hall-btn) !important;
  color:var(--hall-ink) !important;
  box-shadow:none;
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  line-height:0;
  overflow:hidden;
  backdrop-filter:blur(8px);
}
.header-actions .theme-toggle:hover,
.panel-top-actions .theme-toggle:hover{
  border-color:rgba(62,199,255,.55) !important;
}
.header-actions .theme-toggle:focus-visible,
.panel-top-actions .theme-toggle:focus-visible,
.header-cta-login:focus-visible,
.header-cta-register:focus-visible,
.hall-cta:focus-visible,
.neo-buy:focus-visible,
.pay-pill:focus-visible{
  outline:2px solid #3ec7ff;
  outline-offset:2px;
}
.theme-toggle .theme-icon{
  position:absolute;
  inset:0;
  width:100% !important;
  height:100% !important;
  margin:0;
  display:none !important;
  align-items:center;
  justify-content:center;
  pointer-events:none;
  opacity:1 !important;
  transform:none !important;
}
.theme-toggle .theme-icon svg{
  width:18px;
  height:18px;
  display:block;
}
[data-theme="dark"] .theme-toggle .theme-icon-moon,
[data-theme="light"] .theme-toggle .theme-icon-sun{
  display:inline-flex !important;
}

/* ---------- 2b. Home buttons as glass, same language as the cards ---------- */
.neo-buy,
.hall-cta,
.header-cta-login,
.header-cta-register,
body.is-home .pay-pill{
  background:var(--hall-btn) !important;
  color:var(--hall-btn-ink) !important;
  border:1px solid rgba(255,255,255,.38) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.22),
    0 0 12px rgba(120,180,255,.14) !important;
  backdrop-filter:blur(10px) saturate(1.15);
  -webkit-backdrop-filter:blur(10px) saturate(1.15);
  text-decoration:none;
  transition:
    transform var(--d1-ms) var(--d1-ease),
    opacity var(--d1-ms) var(--d1-ease),
    box-shadow var(--d1-ms) var(--d1-ease),
    border-color var(--d1-ms) var(--d1-ease),
    background-color var(--d1-ms) var(--d1-ease);
}
[data-theme="light"] .neo-buy,
[data-theme="light"] .hall-cta,
[data-theme="light"] .header-cta-login,
[data-theme="light"] .header-cta-register,
[data-theme="light"] body.is-home .pay-pill{
  border-color:rgba(22,20,28,.28) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.7),
    0 0 10px rgba(139,108,255,.12) !important;
  color:#16141C !important;
}
/* Primary (注册 / 查看全部分类) keeps a slightly richer glass fill, still glass */
.header-cta-register,
.hall-cta{
  background:linear-gradient(180deg, rgba(62,199,255,.22), rgba(139,108,255,.16)) , var(--hall-btn) !important;
}
[data-theme="light"] .header-cta-register,
[data-theme="light"] .hall-cta{
  background:linear-gradient(180deg, rgba(62,199,255,.18), rgba(139,108,255,.10)) , rgba(255,255,255,.7) !important;
}

@media (hover:hover) and (pointer:fine){
  .neo-buy:hover,
  .hall-cta:hover,
  .header-cta-login:hover,
  .header-cta-register:hover,
  body.is-home .pay-pill:hover{
    transform:translateY(-1px);
    border-color:rgba(62,199,255,.7) !important;
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.32),
      0 0 18px rgba(62,199,255,.32),
      0 0 10px rgba(255,122,217,.18) !important;
  }
  .neo-buy:active,
  .hall-cta:active,
  .header-cta-login:active,
  .header-cta-register:active,
  body.is-home .pay-pill:active{
    transform:scale(0.97);
  }
}

/* ---------- 1. Card hover: tilt, sheen, glow, lift (fine pointer only) ---------- */
.neo-card{
  will-change:transform;
  transform-style:preserve-3d;
}
.neo-card-face .neo-sheen{
  background:linear-gradient(
    115deg,
    transparent 18%,
    rgba(255,255,255,.12) 36%,
    rgba(255,255,255,.5) 50%,
    rgba(62,199,255,.28) 58%,
    transparent 74%
  );
  transform:translate3d(var(--sheen-x, -80%), var(--sheen-y, 0), 0);
  opacity:var(--sheen-o, 0);
  mix-blend-mode:soft-light;
  transition:
    transform 280ms var(--d1-ease),
    opacity 220ms var(--d1-ease);
}
[data-theme="light"] .neo-card-face .neo-sheen{
  mix-blend-mode:overlay;
  background:linear-gradient(
    115deg,
    transparent 18%,
    rgba(255,255,255,.2) 36%,
    rgba(255,255,255,.72) 50%,
    rgba(139,108,255,.22) 58%,
    transparent 74%
  );
}

@media (hover:hover) and (pointer:fine){
  .neo-card.is-hover,
  .neo-card:hover{z-index:6;}
  .neo-card.is-hover .neo-sheen,
  .neo-card:hover .neo-sheen{opacity:var(--sheen-o, 1);}
  .neo-card.is-hover .neo-card-bloom,
  .neo-card:hover .neo-card-bloom{
    opacity:1;
    filter:blur(18px) saturate(1.25);
  }
  .neo-card.is-hover .neo-card-face::after,
  .neo-card:hover .neo-card-face::after{
    filter:brightness(1.28) saturate(1.2);
  }
  .neo-card:not(.neo-card-hero).is-hover,
  .neo-card:not(.neo-card-hero):hover{
    filter:var(--d1-glow-dark);
  }
  [data-theme="light"] .neo-card:not(.neo-card-hero).is-hover,
  [data-theme="light"] .neo-card:not(.neo-card-hero):hover{
    filter:var(--d1-glow-light);
  }
  .neo-card-hero.is-hover,
  .neo-card-hero:hover{
    filter:drop-shadow(0 22px 32px rgba(0,0,0,.5)) drop-shadow(0 0 24px rgba(62,199,255,.4)) drop-shadow(0 0 16px rgba(255,122,217,.28));
  }
  [data-theme="light"] .neo-card-hero.is-hover,
  [data-theme="light"] .neo-card-hero:hover{
    filter:drop-shadow(0 18px 26px rgba(40,36,70,.28)) drop-shadow(0 0 18px rgba(139,108,255,.32));
  }
}

@media (prefers-reduced-motion: reduce){
  .neo-card,
  .neo-card-hero,
  .detail-art .neo-card-hero,
  .neo-buy, .hall-cta, .header-cta-login, .header-cta-register, .pay-pill{
    transition:none !important;
    transform:none !important;
    will-change:auto;
  }
  .neo-card-face .neo-sheen{display:none !important;opacity:0 !important;}
}

/* ---------- 6. Page-tick overlay ---------- */
.kh-tick{
  position:fixed;inset:0;z-index:80;
  display:grid;place-items:center;
  background:rgba(5,8,20,.28);
  pointer-events:auto;
  cursor:pointer;
  opacity:1;
  transition:opacity 180ms var(--d1-ease);
}
[data-theme="light"] .kh-tick{background:rgba(232,234,238,.32);}
.kh-tick.is-out{opacity:0;pointer-events:none;}
.kh-tick-mark{
  position:relative;
  width:112px;height:112px;
  display:grid;place-items:center;
  border-radius:28px;
  background:rgba(8,12,28,.78);
  border:1px solid rgba(255,255,255,.22);
  box-shadow:0 10px 36px rgba(0,0,0,.45),0 0 24px rgba(62,199,255,.28);
  backdrop-filter:blur(12px) saturate(1.15);
}
[data-theme="light"] .kh-tick-mark{
  background:rgba(255,255,255,.86);
  border-color:rgba(22,20,28,.14);
  box-shadow:0 10px 28px rgba(40,36,70,.18),0 0 18px rgba(139,108,255,.22);
}
.kh-tick-icon{
  width:64px;height:64px;
  display:block;
  filter:drop-shadow(0 0 12px rgba(62,199,255,.45));
}
.kh-tick-sweep{
  position:absolute;inset:-8px;
  border-radius:24px;
  pointer-events:none;
  background:linear-gradient(105deg, transparent 30%, rgba(255,255,255,.7) 50%, transparent 70%);
  transform:translateX(-120%);
  animation:kh-tick-sweep 360ms var(--d1-ease) forwards;
  mix-blend-mode:screen;
}
[data-theme="light"] .kh-tick-sweep{mix-blend-mode:multiply;opacity:.7;}
.kh-tick.is-ok .kh-tick-icon{
  filter:drop-shadow(0 0 14px rgba(62,224,192,.7)) drop-shadow(0 0 8px rgba(212,242,106,.4));
  animation:kh-tick-pop 200ms var(--d1-ease) both;
}
.kh-tick-check{
  position:absolute;
  width:28px;height:28px;
  right:-4px;bottom:-2px;
  opacity:0;
  transform:scale(.6);
  color:#3ee0c0;
  filter:drop-shadow(0 0 6px rgba(62,224,192,.8));
}
.kh-tick.is-ok .kh-tick-check{
  opacity:1;
  transform:scale(1);
  transition:opacity 160ms var(--d1-ease), transform 200ms var(--d1-ease);
}
.kh-tick-hint{
  position:absolute;bottom:18%;
  font-size:12px;letter-spacing:.04em;
  color:var(--hall-muted);
  opacity:.85;
}
@keyframes kh-tick-sweep{
  to{transform:translateX(120%);}
}
@keyframes kh-tick-pop{
  from{transform:scale(.92);opacity:.85}
  to{transform:scale(1);opacity:1}
}
@media (prefers-reduced-motion: reduce){
  .kh-tick{display:none !important;}
}

@supports (view-transition-name: none){
  ::view-transition-old(root),
  ::view-transition-new(root){
    animation-duration:280ms;
    animation-timing-function:cubic-bezier(0.23, 1, 0.32, 1);
  }
}

/* ---------- 5. USDT tutorial placeholders ---------- */
.usdt-demo-card{
  position:relative;
  display:grid;
  grid-template-columns:120px 1fr;
  gap:16px;
  align-items:center;
  padding:16px;
  border-radius:16px;
  border:1px dashed rgba(255,210,106,.55);
  background:var(--hall-glass);
}
.usdt-demo-qr{
  position:relative;
  width:120px;height:120px;
  border-radius:12px;
  overflow:hidden;
  background:rgba(8,12,24,.6);
}
.usdt-demo-qr::before{
  content:"";
  position:absolute;inset:0;
  background:
    repeating-linear-gradient(90deg, #1a1e2c 0 8px, #2a3148 8px 16px),
    repeating-linear-gradient(0deg, #1a1e2c 0 8px, #2a3148 8px 16px);
  filter:blur(3px);
  transform:scale(1.08);
}
[data-theme="light"] .usdt-demo-qr::before{
  background:
    repeating-linear-gradient(90deg, #c8cad4 0 8px, #e6e7ee 8px 16px),
    repeating-linear-gradient(0deg, #c8cad4 0 8px, #e6e7ee 8px 16px);
}
.usdt-demo-stamp{
  position:absolute;inset:0;
  display:grid;place-items:center;
  z-index:1;
  font-weight:800;letter-spacing:.24em;
  font-size:20px;
  color:#ffd36a;
  text-shadow:0 1px 2px rgba(0,0,0,.8),0 0 10px rgba(0,0,0,.55);
  background:rgba(5,8,20,.35);
  pointer-events:none;
  filter:none;
}
[data-theme="light"] .usdt-demo-stamp{
  color:#8a5a00;
  text-shadow:0 1px 0 rgba(255,255,255,.7);
  background:rgba(255,255,255,.28);
}
.usdt-demo-card .addr-value{
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;
  word-break:break-all;
  color:var(--hall-muted);
}
.usdt-demo-note{font-size:13px;color:var(--hall-muted);margin:0 0 8px;}

/* Home section CTAs share the same glass language */
body.is-home .section-head .btn,
body.is-home #lookup .btn,
body.is-home #zones .btn{
  background:var(--hall-btn) !important;
  color:var(--hall-btn-ink) !important;
  border:1px solid rgba(255,255,255,.38) !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.22),0 0 12px rgba(120,180,255,.14) !important;
  backdrop-filter:blur(10px) saturate(1.15);
  -webkit-backdrop-filter:blur(10px) saturate(1.15);
  border-radius:999px !important;
  transition:transform var(--d1-ms) var(--d1-ease),opacity var(--d1-ms) var(--d1-ease),box-shadow var(--d1-ms) var(--d1-ease),border-color var(--d1-ms) var(--d1-ease);
}
[data-theme="light"] body.is-home .section-head .btn,
[data-theme="light"] body.is-home #lookup .btn,
[data-theme="light"] body.is-home #zones .btn{
  border-color:rgba(22,20,28,.28) !important;
  color:#16141C !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7),0 0 10px rgba(139,108,255,.12) !important;
}
@media (hover:hover) and (pointer:fine){
  body.is-home .section-head .btn:hover,
  body.is-home #lookup .btn:hover,
  body.is-home #zones .btn:hover{
    transform:translateY(-1px);
    border-color:rgba(62,199,255,.7) !important;
  }
  body.is-home .section-head .btn:active,
  body.is-home #lookup .btn:active,
  body.is-home #zones .btn:active{transform:scale(0.97);}
}
@media (prefers-reduced-motion: reduce){
  body.is-home .section-head .btn,
  body.is-home #lookup .btn,
  body.is-home #zones .btn{transition:none !important;transform:none !important;}
}

/* detail2: slogan third line + 44px theme toggle already above */
.hall-copy .tagline{
  margin:0;
  font-size:18px;
  font-weight:600;
  line-height:1.45;
  max-width:16em;
}
.hall-copy .tagline-note{
  margin:8px 0 0;
  font-size:13px;
  font-weight:500;
  letter-spacing:.04em;
  line-height:1.4;
  color:var(--hall-muted);
  opacity:.9;
}
@media (max-width:860px){
  .hall-copy h1{font-size:clamp(30px,8.2vw,36px);line-height:1.2;max-width:100%;}
  .hall-copy .tagline{font-size:16px;max-width:100%;margin-left:auto;margin-right:auto;}
  .hall-copy .tagline-note{font-size:12px;}
}


/* detail2 typography polish */
.countdown-box .cd-sub{
  display:block;
  text-align:left !important;
  white-space:normal;
  margin:8px 0 0;
  line-height:1.45;
  max-width:100%;
}

/* detail3b: holographic slogan + halo (no frosted-glass box; light AA sweep) */
.hall-copy{
  position:relative;
  isolation:auto;
}
.hall-copy::before{
  content:none !important;
  display:none !important;
}
.hall-copy h1{
  background-image:
    linear-gradient(105deg, transparent 42%, rgba(255,255,255,.55) 50%, transparent 58%),
    linear-gradient(105deg, #ff7ad9 0%, #8b6cff 18%, #3ec7ff 40%, #3ee0c0 58%, #ffd36a 78%, #ff7ad9 100%);
  background-size: 220% 100%, 240% 100%;
  background-position: 120% 50%, 0% 50%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: kh-slogan-shimmer 8.8s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(62,199,255,.32)) drop-shadow(0 0 6px rgba(255,122,217,.22));
  text-shadow: none;
}
/* Light: darker jewel stops. Sweep is a warm highlight band, never a white wash.
   Every stop (and +22% gold mix) stays ≥4.5:1 on the light wall / white halo. */
[data-theme="light"] .hall-copy h1{
  background-image:
    linear-gradient(105deg, transparent 40%, rgba(255, 196, 110, 0.22) 50%, transparent 60%),
    linear-gradient(105deg, #4a0e40 0%, #24105a 18%, #08405c 40%, #084840 58%, #5a4000 78%, #4a0e40 100%);
  filter:
    drop-shadow(0 0 1px rgba(255,255,255,1))
    drop-shadow(0 1px 2px rgba(255,255,255,.95))
    drop-shadow(0 0 10px rgba(255,255,255,.95))
    drop-shadow(0 0 22px rgba(255,255,255,.8))
    drop-shadow(0 2px 6px rgba(22,20,28,.18));
}
@keyframes kh-slogan-shimmer{
  0%, 100%{ background-position: 120% 50%, 0% 50%; }
  50%{ background-position: -20% 50%, 100% 50%; }
}
@media (prefers-reduced-motion: reduce){
  .hall-copy h1{
    animation: none;
    background-position: 40% 50%, 30% 50%;
  }
}
.hall-copy .tagline,
.hall-copy .tagline-note{
  color: var(--hall-ink);
  opacity: 1;
}
[data-theme="dark"] .hall-copy .tagline,
[data-theme="dark"] .hall-copy .tagline-note{
  color: #F5F7FF;
  text-shadow:
    0 0 6px rgba(5,8,20,.9),
    0 1px 2px rgba(0,0,0,.7),
    0 0 14px rgba(5,8,20,.75),
    0 0 18px rgba(62,199,255,.22);
}
[data-theme="dark"] .hall-copy .tagline-note{
  color: #E8ECF6;
}
[data-theme="light"] .hall-copy .tagline,
[data-theme="light"] .hall-copy .tagline-note{
  color: #16141C;
  text-shadow:
    0 0 4px rgba(255,255,255,1),
    0 0 8px rgba(255,255,255,1),
    0 0 16px rgba(255,255,255,.95),
    0 1px 2px rgba(255,255,255,.95),
    0 0 28px rgba(232,234,238,.9);
}
