/* 冰白补给站 · 极光夜间主题
   仅覆盖视觉样式，不改变页面结构与购买逻辑。 */
html[data-theme="dark"]{
  color-scheme:dark;
  background:#070b14;
  --ink:#edf3fb;
  --muted:#94a5bb;
  --line:#26374b;
  --accent:#69d9ff;
  --accent-2:#a78bfa;
  --blue:#14283a;
  --grad:linear-gradient(120deg,#24bfe9 0%,#6678f5 58%,#a855f7 100%);
  --grad-soft:linear-gradient(120deg,#102b3a,#211c3d);
  --shadow-s:0 10px 30px rgba(0,0,0,.22);
  --shadow-m:0 18px 54px rgba(0,0,0,.38);
  --shadow-accent:0 8px 28px rgba(61,157,255,.25);
}
html[data-theme="dark"] body{
  background:
    radial-gradient(1000px 500px at 8% -140px,rgba(25,177,220,.18),transparent 65%),
    radial-gradient(900px 500px at 92% -100px,rgba(133,79,255,.20),transparent 64%),
    radial-gradient(700px 500px at 50% 100%,rgba(32,99,190,.10),transparent 65%),
    #070b14;
  color:var(--ink);
}
html[data-theme="dark"] ::selection{background:#294d70;color:#f3f8ff}
html[data-theme="dark"] .skip-link{background:#152237;color:#edf3fb}

/* 顶栏与主题切换 */
html[data-theme="dark"] .site-header{
  background:rgba(7,12,24,.78);
  border-bottom-color:rgba(116,155,214,.18);
  box-shadow:0 8px 30px rgba(0,0,0,.18),inset 0 1px 0 rgba(255,255,255,.025);
}
html[data-theme="dark"] .brand{color:#f2f7fc}
html[data-theme="dark"] .brand small{color:#7794ae}
html[data-theme="dark"] .brand-mark{box-shadow:var(--shadow-accent)}
html[data-theme="dark"] nav a{color:#93a7bd}
html[data-theme="dark"] nav a:hover{color:#d5e8f7}
html[data-theme="dark"] nav a.active{color:#82e2ff}
html[data-theme="dark"] nav a.active:after{box-shadow:0 2px 12px rgba(70,197,255,.38)}
html[data-theme="dark"] .text-button,
html[data-theme="dark"] .cart-button,
html[data-theme="dark"] .account-link{color:#a5b6ca}
html[data-theme="dark"] .text-button:hover,
html[data-theme="dark"] .cart-button:hover,
html[data-theme="dark"] .account-link:hover,
html[data-theme="dark"] .account-link.active{color:#79dfff}
html[data-theme="dark"] .cart-count{background:#192b42;color:#a9d8f3}
.theme-toggle{
  width:36px;height:36px;padding:0;flex:0 0 36px;
  display:inline-grid;place-items:center;position:relative;
  border:1px solid #dce5f1;border-radius:50%;
  background:rgba(255,255,255,.72);color:#5d6d85;
  transition:background .2s,border-color .2s,color .2s,transform .2s,box-shadow .2s;
}
.theme-toggle:hover{transform:translateY(-1px);border-color:#afc8ee;color:#2e6bf0;box-shadow:0 5px 16px rgba(30,80,150,.12)}
.theme-toggle:active{transform:scale(.94)}
.theme-toggle svg{width:18px;height:18px;position:absolute;transition:opacity .18s,transform .25s}
.theme-toggle .theme-icon-sun{opacity:0;transform:rotate(-45deg) scale(.7)}
.theme-toggle .theme-icon-moon{opacity:1;transform:rotate(0) scale(1)}
html[data-theme="dark"] .theme-toggle{
  background:rgba(18,32,51,.88);border-color:#314b66;color:#8fe5ff;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04);
}
html[data-theme="dark"] .theme-toggle:hover{border-color:#4c7799;color:#c2f2ff;box-shadow:0 0 20px rgba(61,190,240,.12)}
html[data-theme="dark"] .theme-toggle .theme-icon-sun{opacity:1;transform:rotate(0) scale(1)}
html[data-theme="dark"] .theme-toggle .theme-icon-moon{opacity:0;transform:rotate(45deg) scale(.7)}

/* 商城首屏与目录 */
html[data-theme="dark"] .shop-intro h1{
  background:linear-gradient(110deg,#e8fbff 5%,#72ddff 48%,#b5a2ff 92%);
  -webkit-background-clip:text;background-clip:text;
}
html[data-theme="dark"] .shop-intro p{color:#7794ae}
html[data-theme="dark"] .catalog-controls,
html[data-theme="dark"] .product-card,
html[data-theme="dark"] .guide-card{
  background:linear-gradient(145deg,rgba(19,30,49,.90),rgba(12,20,35,.94));
  border-color:rgba(111,160,219,.22);
  box-shadow:0 12px 36px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.035);
}
html[data-theme="dark"] .category-tabs button{color:#99a9bd}
html[data-theme="dark"] .category-tabs button:hover{background:#1b2b3e;color:#e2f0fa}
html[data-theme="dark"] .category-tabs button.active{color:#fff}
html[data-theme="dark"] .search-field{
  background:rgba(5,11,21,.72);border-color:#2a4058;color:#7898b2;
}
html[data-theme="dark"] .search-field input{color:#dcebf5}
html[data-theme="dark"] .search-field input::placeholder{color:#657f96}
html[data-theme="dark"] .search-field:focus-within{background:#0a1421;border-color:#4c83aa;box-shadow:0 0 0 4px rgba(63,179,230,.11)}
html[data-theme="dark"] .catalog-meta{color:#748ba2}

/* 商品卡片：图标用深色底，真实商品图保留奶白展示窗 */
html[data-theme="dark"] .product-card:hover{border-color:rgba(94,211,255,.46);box-shadow:0 18px 55px rgba(0,0,0,.35),0 0 30px rgba(44,157,255,.07)}
html[data-theme="dark"] .product-art{box-shadow:inset 0 0 0 1px rgba(255,255,255,.055)}
html[data-theme="dark"] .product-art.gpt{background:radial-gradient(circle at 30% 20%,#17556a,#102f46 52%,#0b1b30)}
html[data-theme="dark"] .product-art.claude{background:radial-gradient(circle at 30% 20%,#573c31,#30271f 58%,#1d1916)}
html[data-theme="dark"] .product-art.gemini{background:radial-gradient(circle at 30% 20%,#343a80,#202650 52%,#11172e)}
html[data-theme="dark"] .product-art.grok{background:radial-gradient(circle at 30% 20%,#364252,#202a38 58%,#131b27)}
html[data-theme="dark"] .product-art.perplexity{background:radial-gradient(circle at 30% 20%,#17525b,#10343e 58%,#0b222c)}
html[data-theme="dark"] .product-art.digital{background:radial-gradient(circle at 30% 20%,#58356e,#322445 52%,#1d162e)}
html[data-theme="dark"] .product-art::after{background:linear-gradient(120deg,rgba(105,229,255,.10),transparent 45%,rgba(178,120,255,.08))}
html[data-theme="dark"] .product-art .product-logo:not(.photo){background:transparent}
html[data-theme="dark"] .product-art .product-logo:not(.photo) img{filter:brightness(0) invert(1) drop-shadow(0 10px 22px rgba(0,0,0,.35))}
html[data-theme="dark"] .product-art .product-logo.gemini:not(.photo) img{filter:invert(78%) sepia(36%) saturate(1100%) hue-rotate(187deg) brightness(106%) drop-shadow(0 10px 22px rgba(0,0,0,.35))}
html[data-theme="dark"] .product-art:has(.product-logo.photo){
  background:#e9e7e1!important;
  border:1px solid rgba(202,229,244,.24);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.16),0 8px 24px rgba(0,0,0,.16);
}
html[data-theme="dark"] .product-art .product-logo.photo{background:transparent}
html[data-theme="dark"] .product-art .product-logo.photo img{filter:brightness(.93) saturate(.88) contrast(.98)!important}
html[data-theme="dark"] .product-card:has(.product-logo.photo){border-color:rgba(122,178,218,.28);box-shadow:0 14px 42px rgba(0,0,0,.28),0 0 28px rgba(66,183,235,.055)}
html[data-theme="dark"] .product-card h3{color:#edf3fa}
html[data-theme="dark"] .product-sub{color:#8ea1b7}
html[data-theme="dark"] .product-tags span,
html[data-theme="dark"] .product-tags span+span{background:#192b42;color:#9fc5e3}
html[data-theme="dark"] .product-tags .stock-ok{background:#10332f;color:#69ddbf}
html[data-theme="dark"] .product-tags .stock-low{background:#382719;color:#f0ae72}
html[data-theme="dark"] .product-tags .promo-tag{background:#3c2326;color:#ff9f8b}
html[data-theme="dark"] .sold-count,html[data-theme="dark"] .buy-price span.sold-count{color:#9fb2c8}
html[data-theme="dark"] .product-price,
html[data-theme="dark"] .buy-price strong{
  background:linear-gradient(120deg,#6de3ff,#b7a4ff);
  -webkit-background-clip:text;background-clip:text;
}
html[data-theme="dark"] .product-price .period{color:#748ba2;-webkit-text-fill-color:#748ba2}
html[data-theme="dark"] .regular-price{color:#71849a}
html[data-theme="dark"] .select-button,
html[data-theme="dark"] .primary-button{color:#fff}
html[data-theme="dark"] .product-card.sold-out .select-button{background:#405063;color:#b6c2d0}
html[data-theme="dark"] .store-note{background:rgba(11,20,34,.74);border-color:#20334a;color:#8298ae}
html[data-theme="dark"] .store-note b{color:#b4c7d8}
html[data-theme="dark"] .ticket-link,
html[data-theme="dark"] .link-hint{color:#7ddfff}

/* 面板、商品详情与购买 */
html[data-theme="dark"] .order-card,
html[data-theme="dark"] .plain-panel,
html[data-theme="dark"] .pay-panel,
html[data-theme="dark"] .usage-panel,
html[data-theme="dark"] .item-main,
html[data-theme="dark"] .buy-panel,
html[data-theme="dark"] .guide-article,
html[data-theme="dark"] .empty-state{
  background:linear-gradient(145deg,rgba(19,30,49,.94),rgba(12,20,35,.97));
  border-color:rgba(111,160,219,.22);color:var(--ink);
  box-shadow:0 12px 36px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.03);
}
html[data-theme="dark"] .section-heading h2,
html[data-theme="dark"] .section-heading h3,
html[data-theme="dark"] .item-header h1,
html[data-theme="dark"] .guide-article h1,
html[data-theme="dark"] .guide-card h3{color:#edf4fb}
html[data-theme="dark"] .section-heading p,
html[data-theme="dark"] .guide-card p,
html[data-theme="dark"] .item-sub,
html[data-theme="dark"] .muted{color:#8fa3b9}
html[data-theme="dark"] .item-header{background:linear-gradient(120deg,#122638,#211d38);border-bottom-color:#293a50}
html[data-theme="dark"] .item-header .product-logo:not(.photo){background:#142b3c}
html[data-theme="dark"] .item-header .product-logo:not(.photo) img{filter:brightness(0) invert(1)}
html[data-theme="dark"] .item-body ul{color:#afc0d1}
html[data-theme="dark"] .buy-row{border-top-color:#283a4e}
html[data-theme="dark"] .buy-total strong,
html[data-theme="dark"] .pay-amount{color:#78ddff}
html[data-theme="dark"] .qty-stepper{border-color:#34495f}
html[data-theme="dark"] .qty-stepper button{background:#142235;color:#a9bdd0}
html[data-theme="dark"] .qty-stepper button:hover:not(:disabled){background:#1d3449;color:#78ddff}
html[data-theme="dark"] .buy-notice,
html[data-theme="dark"] .purchase-notice,
html[data-theme="dark"] .countdown{
  background:linear-gradient(120deg,#30271b,#251f19);border-color:#51432d;color:#d0af77;
}
html[data-theme="dark"] .purchase-notice h4{color:#e1c18b}
html[data-theme="dark"] .sold-out-box{background:#182534;color:#91a5ba}
html[data-theme="dark"] .secondary-button{background:#192a3d;color:#a9c4dc}
html[data-theme="dark"] .secondary-button:hover{background:#213b52;color:#7fe2ff}
html[data-theme="dark"] .copy-button{background:#17334a;color:#83e1ff}
html[data-theme="dark"] .copy-button:hover{background:#20445f}
html[data-theme="dark"] .pay-option{background:#101c2b;border-color:#32465d;color:#a6b9cc}
html[data-theme="dark"] .pay-option:hover{border-color:#527a9c}
html[data-theme="dark"] .pay-option.alipay.selected{background:#102c43;border-color:#3e9fe6;color:#79c8ff;box-shadow:0 0 0 3px rgba(62,159,230,.10)}
html[data-theme="dark"] .pay-option.wechat.selected{background:#102f29;border-color:#25b87b;color:#69daa6;box-shadow:0 0 0 3px rgba(37,184,123,.10)}
html[data-theme="dark"] .plan-option{background:#101c2b;border-color:#32465d}
html[data-theme="dark"] .plan-option.selected{background:#102c43;border-color:#4d9fd0;box-shadow:0 0 0 3px rgba(77,159,208,.10)}

/* 订单、费用与教程 */
html[data-theme="dark"] a.order-link:hover,
html[data-theme="dark"] .guide-card:hover{border-color:rgba(94,211,255,.44)}
html[data-theme="dark"] .order-top,
html[data-theme="dark"] .order-bottom,
html[data-theme="dark"] .cart-row,
html[data-theme="dark"] .order-items,
html[data-theme="dark"] .usage,
html[data-theme="dark"] .guide-footer{border-color:#293b50}
html[data-theme="dark"] .status-pill{background:#342d1e;color:#dbb978}
html[data-theme="dark"] .status-pill.waiting{background:#15334a;color:#7dcfff}
html[data-theme="dark"] .status-pill.done{background:#12352c;color:#70dbae}
html[data-theme="dark"] .status-pill.cancelled{background:#25303d;color:#9bacc0}
html[data-theme="dark"] .pay-steps,
html[data-theme="dark"] .usage,
html[data-theme="dark"] .online-wait{color:#9cafc2}
html[data-theme="dark"] .pay-steps code,
html[data-theme="dark"] .code-row code{background:#142638;color:#b4d5ee}
html[data-theme="dark"] .code-row{background:#101c2b;border-color:#2c4158}
html[data-theme="dark"] .code-row .code-name{color:#8298af}
html[data-theme="dark"] .qr-box img,
html[data-theme="dark"] .online-qr{background:#fff;border-color:#40546a}
html[data-theme="dark"] .pay-badge{background:#12352c;color:#70dbae}
html[data-theme="dark"] .pay-badge.alipay{background:#15334a;color:#7dcfff}
html[data-theme="dark"] .auto-tag{background:#12352c;color:#70dbae}
html[data-theme="dark"] .online-amount{color:#edf4fb}
html[data-theme="dark"] .fee-box{background:#0f1b29;border-color:#2b4057}
html[data-theme="dark"] .fee-box summary{color:#7edfff}
html[data-theme="dark"] .fee-line,
html[data-theme="dark"] .fee-group h4{color:#c0d0df}
html[data-theme="dark"] .fee-line small,
html[data-theme="dark"] .fee-note,
html[data-theme="dark"] .online-fee{color:#8298af}
html[data-theme="dark"] .fee-hint{background:#122b40;border-color:#2c4a64;color:#c4d8e8}
html[data-theme="dark"] .fee-hint b{color:#7edfff}
html[data-theme="dark"] .guide-card .guide-meta{color:#77dfff}
html[data-theme="dark"] .guide-summary,
html[data-theme="dark"] .rich blockquote{background:#12273a;border-left-color:#3e8bb5;color:#a9bfd2}
html[data-theme="dark"] .rich{color:#aec0d1}
html[data-theme="dark"] .rich h3,
html[data-theme="dark"] .rich h4,
html[data-theme="dark"] .usage h4{color:#e2edf6}
html[data-theme="dark"] .rich a{color:#79dfff}
html[data-theme="dark"] .rich hr{border-top-color:#2b3e53}
html[data-theme="dark"] .rich-gallery img{background:#101c2a}
html[data-theme="dark"] .ticket-reply{background:#142b40;color:#b6cbdc}
html[data-theme="dark"] .ticket-thumb{background:#101c2a;border-color:#30465d}
html[data-theme="dark"] .ticket-thumb button{background:#edf3fa;color:#111e2d}

/* 表单、登录与弹窗 */
html[data-theme="dark"] dialog{background:#111e2d;border-color:#30465d;color:#edf3fa;box-shadow:0 30px 90px rgba(0,0,0,.55)}
html[data-theme="dark"] dialog::backdrop{background:rgba(2,7,15,.72)}
html[data-theme="dark"] .modal-header{border-bottom-color:#2a3d52}
html[data-theme="dark"] .close-button{background:#1d2d40;color:#a9bdce}
html[data-theme="dark"] .close-button:hover{background:#293e53;color:#e5f2fb}
html[data-theme="dark"] .field-input{background:#0b1623;border-color:#33495f;color:#e1edf6}
html[data-theme="dark"] .field-input::placeholder{color:#617b92}
html[data-theme="dark"] .field-input:focus{background:#0d1a29;border-color:#4b8bad;box-shadow:0 0 0 4px rgba(66,174,219,.11)}
html[data-theme="dark"] .field-label,
html[data-theme="dark"] .faq-item h3{color:#c8d8e5}
html[data-theme="dark"] .auth-tabs{border-bottom-color:#2b3f55}
html[data-theme="dark"] .auth-tabs button{color:#8fa5ba}
html[data-theme="dark"] .auth-tabs button:hover{background:#17283a;color:#d5e7f3}
html[data-theme="dark"] .auth-tabs button.active{color:#78dfff;border-color:#63d4fa}
html[data-theme="dark"] .password-field .reveal{color:#829ab0}
html[data-theme="dark"] .password-field .reveal:hover{background:#1b3044;color:#7edfff}
html[data-theme="dark"] .demo-warning{background:#13293b;border-color:#2c465d;color:#b5c9da}
html[data-theme="dark"] .form-error{color:#ff8f9b}
html[data-theme="dark"] .form-error.ok{color:#6ddbad}
html[data-theme="dark"] .qq-box{background:#14283a}
html[data-theme="dark"] .notice-modal .qq-box{background:#142c40}
html[data-theme="dark"] input:-webkit-autofill,
html[data-theme="dark"] input:-webkit-autofill:hover,
html[data-theme="dark"] input:-webkit-autofill:focus{-webkit-text-fill-color:#e1edf6;-webkit-box-shadow:0 0 0 1000px #0b1623 inset;transition:background-color 9999s ease-out}

/* 页脚与浮层 */
html[data-theme="dark"] footer{border-top-color:#1e3043;color:#647f97}
html[data-theme="dark"] footer strong{color:#9cb3c6}
html[data-theme="dark"] .help-float{background:rgba(14,29,48,.92);border-color:#31516d;color:#8adff7;box-shadow:0 10px 30px rgba(0,0,0,.32)}
html[data-theme="dark"] .help-float:hover{box-shadow:0 12px 34px rgba(0,0,0,.4),0 0 22px rgba(66,190,238,.08)}
html[data-theme="dark"] #toast{background:rgba(18,35,54,.96);color:#edf6fc;border:1px solid #31516d}
html[data-theme="dark"] .success-icon{color:#71dfff}
html[data-theme="dark"] .promo-banner{background:linear-gradient(120deg,#382329,#2b1d29);border-color:#5b3137;color:#ff9f8b}
html[data-theme="dark"] .fee-line.discount span,
html[data-theme="dark"] .fee-line.discount b{color:#ff9f8b}

@media(max-width:780px){
  .theme-toggle{width:34px;height:34px;flex-basis:34px}
  .header-actions{gap:12px}
  html[data-theme="dark"] .catalog-controls,
  html[data-theme="dark"] .product-card{backdrop-filter:none}
}
@media(prefers-reduced-motion:reduce){.theme-toggle,.theme-toggle svg{transition:none!important}}
html[data-theme="dark"] .maint-tag{background:#382719!important;color:#f0ae72!important}html[data-theme="dark"] .maint-box b{color:#f0ae72}
html[data-theme="dark"] .copy-button.join-button{background:#2b7fd6!important;color:#fff!important}
