
:root{
  --primary:#4F46E5; --primary-dark:#3730A3; --primary-container:#E0E7FF;
  --bg:#F8FAFC; --card:#FFFFFF; --text:#0F172A; --muted:#64748B;
  --line:#E2E8F0; --surface:#F1F5F9; --danger:#E11D48;
  --green:#059669; --blue:#0284C7; --wine:#9F1239;
}
@media (prefers-color-scheme: dark){
  :root{ --bg:#0B1120; --card:#111827; --text:#E2E8F0; --muted:#94A3B8;
    --line:#1E293B; --surface:#1E293B; --primary-container:#312E81; }
}
*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }
body{
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","HarmonyOS Sans SC","MiSans","Source Han Sans SC","Microsoft YaHei",sans-serif;
  background:var(--bg); color:var(--text);
  -webkit-tap-highlight-color:transparent;
}
.screen{ max-width:560px; margin:0 auto; padding-bottom:calc(78px + env(safe-area-inset-bottom)); }

/* 底部导航 */
.tabbar{
  position:fixed; left:0; right:0; bottom:0; z-index:50;
  background:var(--card); border-top:1px solid var(--line);
  display:flex; padding-bottom:env(safe-area-inset-bottom);
  max-width:560px; margin:0 auto;
}
.tab{ flex:1; text-align:center; padding:7px 0 6px; color:var(--muted); font-size:11px; cursor:pointer; }
.tab.active{ color:var(--primary); font-weight:600; }
.t-ico{ display:block; font-size:20px; line-height:1.3; }

/* 首页头部 */
.home-head{
  position:relative;
  background:linear-gradient(180deg,var(--head-a),var(--head-b));
  color:#fff; padding:24px 20px 26px;
}
.skin-btn{
  width:32px; height:32px;
  border-radius:50%; border:none; background:rgba(255,255,255,.18);
  color:#fff; font-size:15px; cursor:pointer;
}
.hh-top{ display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; }
.auth-btn{
  height:32px; border-radius:999px; border:none; background:rgba(255,255,255,.18);
  color:#fff; font-size:13px; padding:0 14px; cursor:pointer;
  max-width:170px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.home-head .hh-top,.home-head .hh-title,.home-head .hh-sub,.home-head .searchbox,.home-head .suggest-box{ position:relative; z-index:1; }
.deco-el{
  position:absolute; pointer-events:none; z-index:0; line-height:1;
  text-shadow:0 2px 10px rgba(0,0,0,.3);
}
/* 游客锁定层 */
.lock-overlay{
  position:absolute; inset:0; z-index:5;
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  text-align:center; cursor:pointer; border-radius:16px;
  background:rgba(148,163,184,.08);
}
/* 在线客服 */
.cs-float{
  position:fixed; left:16px; bottom:calc(74px + env(safe-area-inset-bottom));
  width:48px; height:48px; border-radius:50%; border:none;
  background:var(--primary); color:#fff; font-size:22px; cursor:pointer;
  box-shadow:0 6px 16px rgba(79,70,229,.3); z-index:45;
  display:flex; align-items:center; justify-content:center;
}
/* 语音助手 */
.voice-float{
  position:fixed; left:16px; bottom:calc(130px + env(safe-area-inset-bottom));
  width:48px; height:48px; border-radius:50%; border:none;
  background:var(--primary); color:#fff; font-size:20px; cursor:pointer;
  box-shadow:0 6px 16px rgba(79,70,229,.3); z-index:45;
  display:flex; align-items:center; justify-content:center;
}
.voice-big{
  width:88px; height:88px; border-radius:50%; border:none; cursor:pointer;
  background:var(--primary); color:#fff; font-size:36px; margin:8px auto;
  display:flex; align-items:center; justify-content:center;
  box-shadow:0 6px 18px rgba(79,70,229,.35);
}
.voice-big.on{ background:#DC2626; animation:vpulse 1.2s infinite; }
@keyframes vpulse{
  0%{ box-shadow:0 0 0 0 rgba(220,38,38,.4); }
  70%{ box-shadow:0 0 0 18px rgba(220,38,38,0); }
  100%{ box-shadow:0 0 0 0 rgba(220,38,38,0); }
}

/* ===== 美化增强 ===== */
.screen{ animation: fadeIn .22s ease; }
@keyframes fadeIn{ from{ opacity:.55; transform: translateY(4px); } to{ opacity:1; transform:none; } }

.card{ transition: transform .15s ease, box-shadow .15s ease; }
.card:active{ transform: scale(.985); }
.tool-card, .post-card{ box-shadow:0 1px 2px rgba(15,23,42,.05), 0 6px 18px rgba(15,23,42,.05); }

.section-title{ position:relative; padding-left:10px; }
.section-title::before{ content:''; position:absolute; left:0; top:4px; bottom:4px; width:4px; border-radius:4px; background:var(--primary); }

.btn-primary{ transition: transform .12s ease, box-shadow .15s ease, background .15s ease; }
.btn-primary:active{ transform: scale(.96); }
.pill, .chip{ transition: all .15s ease; }

.searchbox{ box-shadow:0 4px 14px rgba(15,23,42,.08); transition: box-shadow .2s ease; }
.searchbox:focus-within{ box-shadow:0 6px 20px rgba(79,70,229,.25); }
.searchbox input{ caret-color:var(--primary); }

.input:focus{ border-color:var(--primary); box-shadow:0 0 0 3px rgba(79,70,229,.12); }

.tab{ transition: color .2s ease; }
.tab .t-ico{ transition: transform .2s ease; }
.tab.active .t-ico{ transform: translateY(-2px) scale(1.18); }
.tab.active::before{ content:''; position:absolute; top:3px; left:50%; transform:translateX(-50%); width:26px; height:3px; border-radius:3px; background:var(--primary); }

.modal-mask{ animation: maskIn .2s ease; }
@keyframes maskIn{ from{ opacity:0; } to{ opacity:1; } }
.modal{ animation: sheetUp .26s cubic-bezier(.2,.8,.3,1); }
@keyframes sheetUp{ from{ transform:translateY(40px); opacity:.5; } to{ transform:none; opacity:1; } }

.toast{ animation: toastIn .25s ease; }
@keyframes toastIn{ from{ transform:translate(-50%,10px); opacity:0; } to{ transform:translate(-50%,0); opacity:1; } }

.e-emoji{ display:inline-block; animation: floaty 3s ease-in-out infinite; }
@keyframes floaty{ 0%,100%{ transform:translateY(0); } 50%{ transform:translateY(-6px); } }

.cat-badge{ transition: transform .15s ease; }
.cat-item:active .cat-badge{ transform: scale(.92); }

.voice-float, .cs-float{ transition: transform .15s ease; }
.voice-float:active, .cs-float:active{ transform: scale(.9); }

.hh-title{ font-weight:800; letter-spacing:.5px; }
.hh-greet{ font-size:12px; opacity:.85; margin-top:2px; }
.badge-beta{ display:inline-block; font-size:10px; background:rgba(255,255,255,.22); border:1px solid rgba(255,255,255,.35); color:#fff; border-radius:999px; padding:2px 8px; margin-left:8px; vertical-align:3px; font-weight:500; }

/* 全页顶部主题光晕：让头部与页面背景自然衔接（随皮肤变色） */
body::before{
  content:''; position:fixed; top:-140px; left:50%; transform:translateX(-50%);
  width:min(1400px, 110vw); height:460px; pointer-events:none; z-index:0;
  background:radial-gradient(ellipse at top, color-mix(in srgb, var(--head-a) 14%, transparent), transparent 70%);
}
.screen{ position:relative; z-index:1; }
/* 页面背景随主题呼吸：顶部淡淡的主题色氛围，向下自然过渡到背景色 */
body{
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--head-a) 7%, var(--bg)) 0%, var(--bg) 560px);
}

@media (prefers-reduced-motion: reduce){
  *{ animation:none !important; transition:none !important; }
}

/* ===== 桌面网页版布局（≥820px 宽；手机保持 App 版不变） ===== */
@media (min-width: 820px){
  .tabbar{
    top:0; bottom:auto; left:0; right:0;
    max-width:none; height:60px; padding-bottom:0;
    justify-content:center; gap:4px;
    background:color-mix(in srgb, var(--card) 70%, transparent);
    backdrop-filter:blur(18px) saturate(1.5);
    -webkit-backdrop-filter:blur(18px) saturate(1.5);
    border-bottom:1px solid var(--line);
    box-shadow:none;
  }
  .tab{ flex:0 0 auto; display:flex; align-items:center; gap:6px; padding:0 18px; height:100%; font-size:14px; }
  .tab .t-ico{ font-size:18px; display:inline; line-height:1; }
  .tab.active::before{ top:auto; bottom:0; left:8px; right:8px; transform:none; width:auto; }
  .tab.active .t-ico{ transform:none; }
  .screen{ max-width:1400px; margin:0 auto; padding-top:80px; padding-bottom:48px; padding-left:6px; padding-right:6px; }
  .home-head{
    margin:12px 16px 4px;
    border-radius:28px;
    padding:44px 64px 48px;
    box-shadow:0 14px 44px rgba(79,70,229,.22);
    background:
      radial-gradient(120% 170% at 85% -20%, rgba(255,255,255,.20), transparent 55%),
      radial-gradient(rgba(255,255,255,.13) 1px, transparent 1.2px),
      linear-gradient(135deg, var(--head-a), var(--head-b));
    background-size:auto, 22px 22px, auto;
  }
  .home-head .hh-title{ font-size:32px; }
  .home-head .hh-greet{ font-size:14px; }
  .searchbox{ max-width:720px; margin-left:auto; margin-right:auto; }
  .card-grid{ display:grid; grid-template-columns:repeat(3, 1fr); gap:16px; padding:0 12px; margin-bottom:6px; }
  .card-grid .card{ margin:0; }
  .card{ padding:16px; }
  .tc-name{ font-size:16px; }
  .tc-tagline{ font-size:14px; }
  .pp-title{ font-size:16px; }
  .tab{ font-size:15px; }
  .h-scroll{ flex-wrap:wrap; }
  .section-title{ margin-left:16px; margin-right:16px; }
  .section-row{ margin-left:16px; margin-right:16px; }
  .footer-note{ max-width:760px; margin:0 auto; }
  .voice-float{ left:auto; right:24px; bottom:28px; }
  .cs-float{ left:auto; right:86px; bottom:28px; }
  .modal-mask{ align-items:center; }
  .modal{ border-radius:20px; margin:auto; max-width:640px; }
  .fab{ right:28px; bottom:36px; }
}
@media (min-width: 1250px){
  .screen{ max-width:1600px; }
  .card-grid{ grid-template-columns:repeat(4, 1fr); }
}
.faq-item{ border-bottom:1px solid var(--line); padding:10px 2px; }
.faq-item summary{ font-size:14px; font-weight:500; cursor:pointer; outline:none; }
.faq-a{ font-size:13px; color:var(--muted); line-height:1.7; padding:8px 4px 4px; }
/* 协议勾选与文档阅读 */
.agree-row{ display:flex; align-items:flex-start; gap:6px; font-size:12px; color:var(--muted); margin:8px 0 4px; line-height:1.6; }
.agree-row input{ margin-top:3px; }
.doc-link{ color:var(--primary); text-decoration:underline; cursor:pointer; }
.doc-body{ max-height:56vh; overflow-y:auto; font-size:13px; line-height:1.8; padding-right:4px; }
.doc-body p{ margin:0 0 8px; }
.hh-title{ font-size:24px; font-weight:700; }
.hh-sub{ font-size:13px; opacity:.88; margin-top:4px; }
.searchbox{
  display:flex; align-items:center; background:var(--card); border:1px solid var(--line); border-radius:14px;
  margin-top:14px; padding:4px 4px 4px 12px;
}
.sb-icon{ font-size:16px; }
.searchbox input{
  flex:1; border:none; outline:none; font-size:15px; padding:9px 6px;
  background:transparent; color:var(--text); min-width:0;
}
.searchbox input::placeholder{ color:var(--muted); }
.sb-btn{
  background:var(--primary); color:#fff; border:none; border-radius:10px;
  padding:9px 18px; font-size:14px; font-weight:600; cursor:pointer; flex:0 0 auto;
}

/* 区块标题 */
.section-title{ font-size:16px; font-weight:600; margin:20px 20px 10px; }
.section-sub{ font-size:12px; color:var(--muted); font-weight:400; margin-left:6px; }
.section-row{ display:flex; align-items:center; justify-content:space-between; margin:20px 20px 10px; }
.section-row .section-title{ margin:0; }
.link-btn{ border:none; background:none; color:var(--primary); font-size:13px; cursor:pointer; }

/* 横向滚动区 */
.h-scroll{
  display:flex; gap:8px; overflow-x:auto; padding:4px 20px;
  -webkit-overflow-scrolling:touch; scrollbar-width:none;
}
.h-scroll::-webkit-scrollbar{ display:none; }
.pill{
  flex:0 0 auto; border-radius:999px; padding:7px 14px; font-size:13px;
  background:var(--surface); color:var(--muted); border:none; cursor:pointer;
}
.pill.active{ background:var(--primary); color:#fff; font-weight:600; }

/* 分类快捷入口 */
.cat-item{
  flex:0 0 auto; width:62px; text-align:center; cursor:pointer; background:none; border:none; padding:0;
}
.cat-badge{
  width:50px; height:50px; border-radius:16px; margin:0 auto;
  display:flex; align-items:center; justify-content:center; font-size:24px;
}
.cat-name{ font-size:11px; color:var(--text); margin-top:5px; }

/* 工具卡片 */
.card{ background:var(--card); border-radius:16px; padding:14px; margin:0 16px 10px; box-shadow:0 1px 2px rgba(15,23,42,.05); }
.tool-card{ display:flex; cursor:pointer; }
.tc-badge{
  width:44px; height:44px; border-radius:14px; flex:0 0 auto;
  display:flex; align-items:center; justify-content:center; font-size:22px;
}
.tc-body{ flex:1; min-width:0; margin:0 10px; }
.tc-name{ font-size:15px; font-weight:600; }
.tc-vendor{ font-size:11px; color:var(--muted); font-weight:400; margin-left:5px; }
.tc-tagline{ font-size:13px; color:var(--muted); margin-top:3px; }
.tc-reason{ font-size:12px; color:var(--primary); font-weight:500; margin-top:6px; }
.tc-chips{ display:flex; gap:6px; margin-top:8px; flex-wrap:wrap; }
.chip{
  display:inline-block; border-radius:999px; padding:3px 9px;
  font-size:11px; line-height:1.4;
}
.tc-fav{
  flex:0 0 auto; background:none; border:none; font-size:18px; cursor:pointer;
  align-self:flex-start; padding:2px;
}
.tc-fav.on{ }

/* 推荐结果增强 */
.tc-bestfor{ font-size:12px; color:var(--muted); margin-top:3px; }
.badge-top{
  display:inline-block; font-size:10px; background:#D97706; color:#fff;
  border-radius:6px; padding:1px 6px; margin-left:6px; font-weight:600; vertical-align:1px;
}
.badge-match{
  display:inline-block; font-size:10px; color:#fff;
  border-radius:6px; padding:1px 6px; margin-left:6px; font-weight:600; vertical-align:1px;
}
.tool-card.hl{ border:1.5px solid var(--primary); box-shadow:0 4px 14px rgba(79,70,229,.18); }
.note-banner{
  margin:4px 16px 10px; background:#FEF3C7; color:#92400E;
  border-radius:12px; padding:10px 12px; font-size:13px; line-height:1.6;
}
html[style*="color-scheme: dark"] .note-banner{ background:#3A2C0F; color:#FBBF24; }
.suggest-box{ margin-top:8px; }
.suggest-title{ font-size:11px; color:rgba(255,255,255,.85); margin:2px 2px 5px; }
.suggest-chips{ display:flex; flex-wrap:wrap; gap:6px; }
.suggest-chip{
  background:rgba(255,255,255,.18); color:#fff; border:none;
  border-radius:999px; padding:5px 12px; font-size:12px; cursor:pointer;
}
.suggest-chip.clear{ background:rgba(255,255,255,.28); }

/* AI 对话气泡 */
.msg-row{ display:flex; margin:8px 16px; }
.msg-row.user{ justify-content:flex-end; }
.msg-row.bot{ justify-content:flex-start; }
.msg-bubble{
  max-width:82%; border-radius:14px; padding:10px 12px;
  font-size:14px; line-height:1.65; word-break:break-word;
}
.msg-row.user .msg-bubble{ background:var(--primary); color:#fff; border-bottom-right-radius:4px; }
.msg-row.bot .msg-bubble{ background:var(--surface); color:var(--text); border-bottom-left-radius:4px; }
.msg-row.bot .msg-bubble.err{ background:#FEF2F2; color:#991B1B; }

/* 皮肤选择 */
.skin-grid{ display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.skin-item{
  border-radius:14px; border:2px solid var(--line); overflow:hidden; cursor:pointer;
  background:var(--card);
}
.skin-item.sel{ border-color:var(--primary); }
.skin-swatch{
  height:62px; display:flex; align-items:center; justify-content:center; font-size:26px;
}
.skin-name{ font-size:13px; text-align:center; padding:8px 4px; color:var(--text); }

/* 模型市场 */
.work-content{
  background:var(--surface); border-radius:10px; padding:10px 12px;
  font-size:13px; line-height:1.7; word-break:break-all; white-space:pre-wrap;
  max-height:200px; overflow-y:auto; margin-top:4px;
}

/* 空状态 */
.empty{ text-align:center; padding:44px 20px; color:var(--muted); }
.e-emoji{ font-size:36px; }
.e-title{ font-size:15px; font-weight:600; color:var(--text); margin-top:10px; }
.e-hint{ font-size:12px; margin-top:4px; }

.footer-note{ font-size:12px; color:var(--muted); text-align:center; padding:14px 20px 26px; line-height:1.7; }

/* 弹窗 */
.modal-mask{
  position:fixed; inset:0; background:rgba(15,23,42,.45); z-index:100;
  display:flex; align-items:flex-end; justify-content:center;
}
.modal{
  background:var(--card); border-radius:20px 20px 0 0; width:100%; max-width:560px;
  max-height:88vh; overflow-y:auto; padding:20px 20px calc(20px + env(safe-area-inset-bottom));
}
.m-title{ font-size:17px; font-weight:700; margin-bottom:12px; }
.m-head{ display:flex; align-items:center; margin-bottom:12px; }
.m-head .m-title{ margin:0 10px; flex:1; }
.m-desc{ font-size:14px; line-height:1.65; color:var(--text); }
.m-chips{ display:flex; gap:6px; margin-top:12px; flex-wrap:wrap; }
.m-sec{ font-size:14px; font-weight:600; margin-top:16px; }
.m-list{ font-size:14px; line-height:2; }
.m-note{ font-size:11px; color:var(--muted); margin-top:12px; }
.m-preview{ font-size:13px; color:var(--muted); margin-top:6px; }
.m-btns{ display:flex; gap:10px; justify-content:flex-end; margin-top:18px; }
.btn-primary{
  display:inline-block; background:var(--primary); color:#fff; border:none;
  border-radius:12px; padding:10px 20px; font-size:14px; font-weight:600;
  cursor:pointer; text-decoration:none;
}
.btn-ghost{
  background:transparent; color:var(--muted); border:1px solid var(--line);
  border-radius:12px; padding:10px 18px; font-size:14px; cursor:pointer;
}
.btn-danger{ background:none; border:none; color:var(--danger); font-size:13px; cursor:pointer; padding:10px 0; }
.input{
  width:100%; border:1px solid var(--line); border-radius:12px; padding:10px 12px;
  font-size:15px; background:var(--bg); color:var(--text); outline:none;
  margin-bottom:10px; font-family:inherit;
}
.input:focus{ border-color:var(--primary); }
textarea.input{ resize:vertical; min-height:84px; }

/* 发帖/帖子 */
.post-card{ cursor:pointer; }
.pp-top{ display:flex; align-items:center; gap:6px; }
.pp-auto{ font-size:10px; color:var(--muted); }
.pp-date{ font-size:11px; color:var(--muted); margin-left:auto; }
.pp-title{ font-size:15px; font-weight:600; margin-top:8px; }
.pp-content{ font-size:13px; color:var(--muted); margin-top:4px;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.answer{
  background:var(--surface); border-radius:10px; padding:10px 12px; margin-top:8px;
  display:flex; align-items:flex-start; gap:8px;
}
.a-content{ flex:1; font-size:14px; line-height:1.6; }
.a-meta{ display:flex; align-items:center; gap:8px; font-size:11px; color:var(--muted); margin-top:4px; }
.a-like{ background:none; border:none; cursor:pointer; font-size:12px; color:var(--muted); }

/* 悬浮按钮 */
.fab{
  position:fixed; right:20px; bottom:calc(86px + env(safe-area-inset-bottom));
  width:56px; height:56px; border-radius:50%; background:var(--primary); color:#fff;
  font-size:28px; border:none; box-shadow:0 6px 16px rgba(79,70,229,.35);
  cursor:pointer; z-index:40;
}

/* 店铺 */
.stats{
  background:linear-gradient(135deg,var(--head-a),var(--head-b)); color:#fff;
  border-radius:18px; padding:18px; margin:10px 16px;
}
.st-label{ font-size:12px; opacity:.8; }
.st-big{ font-size:30px; font-weight:700; margin-top:4px; }
.st-row{ display:flex; margin-top:14px; }
.st-row>div{ flex:1; }
.st-k{ font-size:11px; opacity:.75; }
.st-v{ font-size:16px; font-weight:600; margin-top:2px; }
.btn-block{
  display:block; width:calc(100% - 32px); margin:14px 16px 0; text-align:center;
  background:var(--primary); color:#fff; border:none; border-radius:12px;
  padding:12px; font-size:15px; font-weight:600; cursor:pointer;
}
.bar-row{ margin:6px 0; }
.bar-label{ display:flex; justify-content:space-between; font-size:13px; margin-bottom:4px; }
.bar-track{ height:5px; background:var(--surface); border-radius:3px; overflow:hidden; }
.bar-fill{ height:100%; background:var(--primary); border-radius:3px; }
.advice{ display:flex; gap:10px; }
.adv-emoji{ font-size:22px; flex:0 0 auto; }
.adv-body{ flex:1; min-width:0; }
.adv-title{ font-size:14px; font-weight:600; }
.adv-detail{ font-size:12px; color:var(--muted); margin-top:3px; line-height:1.6; }
.adv-action{
  background:var(--primary-container); color:var(--primary-dark); border-radius:8px;
  font-size:12px; padding:7px 10px; margin-top:7px; line-height:1.5;
}
.tx-row{ display:flex; align-items:center; padding:9px 20px; }
.tx-ico{
  width:38px; height:38px; border-radius:11px; flex:0 0 auto;
  display:flex; align-items:center; justify-content:center; font-size:14px; font-weight:700;
}
.tx-body{ flex:1; min-width:0; margin-left:12px; }
.tx-cat{ font-size:14px; }
.tx-time{ font-size:11px; color:var(--muted); margin-top:2px; }
.tx-amount{ font-size:15px; font-weight:600; }
.tx-del{ background:none; border:none; font-size:16px; cursor:pointer; opacity:.5; margin-left:8px; }

/* 收入/支出切换 */
.seg{ display:flex; gap:8px; margin-bottom:12px; }
.seg-btn{
  flex:1; border-radius:10px; padding:9px; font-size:14px; cursor:pointer;
  border:1px solid var(--line); background:transparent; color:var(--muted);
}
.seg-btn.active{ background:var(--primary); color:#fff; border-color:var(--primary); font-weight:600; }

/* Toast */
.toast{
  position:fixed; left:50%; transform:translateX(-50%);
  bottom:calc(100px + env(safe-area-inset-bottom));
  background:rgba(15,23,42,.88); color:#fff; padding:10px 18px;
  border-radius:999px; font-size:13px; z-index:200; max-width:80%;
}
/* ===== 大师级光感升级 ===== */
body{ transition: background-color .35s ease, color .35s ease; }

.card{
  border:1px solid color-mix(in srgb, var(--primary) 6%, transparent);
  background:linear-gradient(180deg, color-mix(in srgb, var(--card) 96%, white), var(--card));
  box-shadow:
    0 1px 2px color-mix(in srgb, var(--primary) 5%, transparent),
    0 8px 24px color-mix(in srgb, var(--primary) 7%, transparent),
    inset 0 1px 0 rgba(255,255,255,.3);
  transition: transform .18s ease, box-shadow .18s ease, background-color .3s ease, border-color .3s ease;
}

.btn-primary{
  background:linear-gradient(180deg, color-mix(in srgb, var(--primary) 86%, white), var(--primary));
  box-shadow:0 4px 14px color-mix(in srgb, var(--primary) 32%, transparent), inset 0 1px 0 rgba(255,255,255,.25);
  transition: transform .12s ease, box-shadow .18s ease;
}
.btn-primary:hover{
  box-shadow:0 6px 22px color-mix(in srgb, var(--primary) 45%, transparent), inset 0 1px 0 rgba(255,255,255,.3);
  transform: translateY(-1px);
}
.btn-primary:active{ transform: scale(.97); }

.pill.active, .seg-btn.active{
  box-shadow:0 2px 12px color-mix(in srgb, var(--primary) 38%, transparent), inset 0 1px 0 rgba(255,255,255,.2);
}

.stats{ box-shadow:0 10px 30px color-mix(in srgb, var(--primary) 25%, transparent), inset 0 1px 0 rgba(255,255,255,.22); }

.note-banner{ box-shadow:0 2px 10px color-mix(in srgb, #D97706 12%, transparent); }

.chip{ box-shadow:inset 0 1px 0 rgba(255,255,255,.25); }

.toast{
  background:color-mix(in srgb, var(--card) 88%, transparent);
  color:var(--text);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border:1px solid var(--line);
  box-shadow:0 8px 28px rgba(15,23,42,.18);
}

.tc-badge{ box-shadow:inset 0 1px 0 rgba(255,255,255,.4), 0 2px 8px color-mix(in srgb, var(--primary) 12%, transparent); }

.voice-float, .cs-float{
  box-shadow:0 8px 22px color-mix(in srgb, var(--primary) 38%, transparent), inset 0 1px 0 rgba(255,255,255,.3);
}

.fab{ box-shadow:0 10px 26px color-mix(in srgb, var(--primary) 40%, transparent), inset 0 1px 0 rgba(255,255,255,.3); }

.home-head{ overflow:hidden; }
.home-head::before{
  content:''; position:absolute; top:-60%; bottom:-60%; width:34%; left:-24%;
  background:linear-gradient(105deg, transparent, rgba(255,255,255,.14), transparent);
  transform:rotate(12deg); pointer-events:none;
  animation:beam 8s ease-in-out infinite;
}
@keyframes beam{ 0%,100%{ left:-28%; } 55%{ left:112%; } }

@media (min-width:820px){
  .card:hover{ transform: translateY(-4px); box-shadow:0 14px 34px color-mix(in srgb, var(--primary) 15%, transparent), inset 0 1px 0 rgba(255,255,255,.3); }
  .tab{ border-radius:999px; align-self:center; height:40px; margin:0 2px; padding:0 18px; }
  .tab.active{ background:color-mix(in srgb, var(--primary) 10%, transparent); color:var(--primary); }
  .tab.active::before{ display:none; }
}


/* ── 2026-11-18 追加：移动端修正 + 国内可用性角标 ── */
.chip-cn{ background:#0596691a; color:#059669; }
.chip-proxy{ background:#0284C71a; color:#0284C7; }
#searchInput{ padding-right:74px; box-sizing:border-box; }
@media (max-width:819px){
  #searchInput{ padding-right:64px; font-size:14px; }
  #app{ padding-bottom:168px; }
  .cs-float{ bottom:calc(150px + env(safe-area-inset-bottom)); }
  .voice-float{ bottom:calc(206px + env(safe-area-inset-bottom)); }
}
