/* ============================================================
   天禧 AGI BAR · 共享视觉层
   配色源自 PSD「联想天禧AI生态局（确定版）」
   强调色 rgb(201,221,92)，深蓝底 #0A1230 + 三团光
   ============================================================ */
:root{
  --lime:rgb(201,221,92);
  --lime-soft:rgba(201,221,92,.14);
  --lime-line:rgba(201,221,92,.55);
  --bg:#0A1230;
  --violet:#6E4FFC;
  --magenta:#E876BD;
  --ink:#0A1230;
  --text:#F4F7FF;
  --sub:rgba(244,247,255,.58);
  --faint:rgba(244,247,255,.34);
  --card:rgba(255,255,255,.055);
  --line:rgba(150,190,255,.16);
  --danger:#FF6B5E;
  --ok:#8BE89A;
}

*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}
html,body{height:100%}
body{
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei","Segoe UI",sans-serif;
  background:var(--bg);color:var(--text);overflow:hidden;
  -webkit-font-smoothing:antialiased;overscroll-behavior:none;
}

/* ============ 全屏视角容器 ============ */
.view{
  position:fixed;inset:0;z-index:10;
  display:flex;flex-direction:column;
  /* visibility 硬关：只用 opacity 时，带渐变背景的隐藏层在部分内核算不上真正的
     “不绘制”，可能在画面上留一层淡淡底色。visibility 才是可靠的隐藏。 */
  opacity:0;visibility:hidden;pointer-events:none;
  transform:translateY(14px);
  transition:opacity .28s ease,transform .32s cubic-bezier(.22,.8,.28,1),
             visibility 0s linear .28s;
  background:var(--bg);
}
.view.on{
  opacity:1;visibility:visible;pointer-events:auto;transform:none;z-index:12;
  transition:opacity .28s ease,transform .32s cubic-bezier(.22,.8,.28,1),
             visibility 0s linear 0s;
}
.view::before{
  content:"";position:absolute;inset:0;z-index:0;pointer-events:none;
  background:
    radial-gradient(78% 46% at 50% -6%, rgba(84,140,250,.42) 0%, rgba(10,18,48,0) 62%),
    radial-gradient(60% 40% at 92% 104%, rgba(232,118,189,.22) 0%, rgba(10,18,48,0) 62%),
    radial-gradient(64% 42% at 6% 100%, rgba(110,79,252,.26) 0%, rgba(10,18,48,0) 66%),
    linear-gradient(180deg,#101A44 0%,#0A1230 58%,#080E26 100%);
}
.view > *{position:relative;z-index:1}

/* ============ 头部 ============ */
.head{flex:none;padding:calc(10px + env(safe-area-inset-top)) 20px 0}
.head-row{display:flex;align-items:center;justify-content:space-between;height:34px}
.back{
  display:flex;align-items:center;gap:5px;
  background:none;border:0;color:var(--sub);
  font-size:12px;font-family:inherit;cursor:pointer;padding:4px 2px;
}
.back svg{width:8px;height:13px}
.back:active{color:var(--lime)}
.step-no{
  font-size:10.5px;letter-spacing:.14em;color:var(--faint);
  font-variant-numeric:tabular-nums;
}
.step-no b{color:var(--lime);font-weight:600}

.prog{height:3px;background:rgba(200,220,255,.14);border-radius:2px;margin-top:14px;overflow:hidden}
.prog i{
  display:block;height:100%;width:0;border-radius:2px;
  background:var(--lime);
  transition:width .38s cubic-bezier(.3,.8,.3,1);
}

/* ============ 底部按钮区 ============ */
.foot{flex:none;padding:12px 20px calc(16px + env(safe-area-inset-bottom));position:relative}
.foot::before{
  content:"";position:absolute;left:0;right:0;bottom:0;height:190%;
  background:linear-gradient(to top,rgba(8,14,38,.96) 30%,rgba(8,14,38,0));
  z-index:-1;pointer-events:none;
}
.btn{
  display:flex;align-items:center;justify-content:center;gap:7px;
  width:100%;height:52px;
  border:0;border-radius:26px;
  background:var(--lime);color:var(--ink);
  font-size:15.5px;font-weight:700;font-family:inherit;letter-spacing:.03em;
  cursor:pointer;transition:transform .14s,opacity .14s;
  box-shadow:0 8px 24px rgba(201,221,92,.22);
}
.btn:active{transform:scale(.976)}
.btn[disabled]{opacity:.5;cursor:default}
.btn-ghost{
  display:flex;align-items:center;justify-content:center;
  width:100%;height:40px;margin-top:6px;
  background:none;border:0;color:var(--faint);
  font-size:11.5px;font-family:inherit;letter-spacing:.04em;cursor:pointer;
}
.btn-ghost:active{color:var(--lime)}

/* ============ 内容滚动区 ============ */
.body{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:0 20px 10px}

.title{font-size:27px;line-height:1.3;font-weight:700;letter-spacing:-.01em;margin-top:16px}
.title em{font-style:normal;color:var(--lime)}
.sub{font-size:12px;line-height:1.6;color:var(--sub);margin-top:8px}

/* ============ 表单 ============ */
.field{margin-top:20px}
.field label{
  display:flex;align-items:baseline;gap:5px;
  font-size:11.5px;font-weight:600;color:var(--sub);margin-bottom:7px;
}
.field label i{color:var(--lime);font-style:normal}
.field label s{text-decoration:none;font-weight:400;font-size:10px;color:var(--faint)}
input[type=text],input[type=tel]{
  width:100%;height:50px;padding:0 14px;
  background:rgba(255,255,255,.06);
  border:1px solid var(--line);border-radius:12px;
  color:var(--text);font-size:15px;font-family:inherit;
  transition:border-color .18s,background .18s;
  appearance:none;
}
input::placeholder,textarea::placeholder{color:rgba(244,247,255,.3)}
input:focus{outline:none;border-color:var(--lime-line);background:rgba(255,255,255,.09)}
input.bad{border-color:var(--danger);background:rgba(255,107,94,.09);animation:shake .32s}
@keyframes shake{
  0%,100%{transform:translateX(0)}20%{transform:translateX(-5px)}
  45%{transform:translateX(4px)}70%{transform:translateX(-3px)}
}
.msg{min-height:16px;margin-top:12px;font-size:11.5px;color:var(--danger);line-height:1.4}

.quiet{
  display:flex;align-items:flex-start;gap:8px;
  margin-top:18px;padding:11px 12px;
  background:rgba(201,221,92,.06);
  border:1px solid rgba(201,221,92,.16);
  border-radius:10px;
  font-size:10px;line-height:1.55;color:rgba(232,240,190,.72);
}
.quiet svg{flex:none;width:12px;height:12px;margin-top:1px}
.safe-note{
  display:flex;align-items:center;gap:6px;justify-content:center;
  margin-top:14px;font-size:9.5px;color:rgba(244,247,255,.26);
}
.safe-note svg{width:10px;height:11px}

/* ============ 一题一屏 ============ */
.q-body{flex:1;overflow-y:auto;-webkit-overflow-scrolling:touch;padding:0 20px 14px;display:flex;flex-direction:column}
.q-inner{margin:auto 0;padding:18px 0 4px;width:100%}
.q-icon{
  display:flex;align-items:center;justify-content:center;
  width:64px;height:64px;margin:0 auto 16px;
  border-radius:20px;
  background:radial-gradient(circle at 50% 40%,rgba(201,221,92,.24),rgba(201,221,92,.04) 70%);
  box-shadow:inset 0 0 0 1px rgba(201,221,92,.22);
  color:var(--lime);
}
.q-icon svg{width:30px;height:30px}
.q-title{font-size:25px;line-height:1.34;font-weight:700;text-align:center;letter-spacing:-.01em}
.q-sub{margin-top:8px;font-size:12.5px;line-height:1.6;text-align:center;color:var(--sub)}
.q-inner.tight .q-icon{width:52px;height:52px;margin-bottom:12px}
.q-inner.tight .q-icon svg{width:25px;height:25px}
.q-inner.tight .q-title{font-size:22px}
.q-inner.tight .q-sub{margin-top:6px;font-size:11.5px}

.cards{display:flex;flex-direction:column;gap:10px;margin-top:26px}
.cards.compact{gap:7px;margin-top:20px}
.card{
  display:flex;align-items:center;gap:13px;
  width:100%;padding:14px 15px;min-height:66px;
  background:var(--card);border:1px solid var(--line);border-radius:16px;
  color:var(--text);text-align:left;font-family:inherit;
  cursor:pointer;transition:background .16s,border-color .16s,transform .12s;
}
.cards.compact .card{min-height:56px;padding:11px 14px;gap:11px;border-radius:14px}
.card:active{transform:scale(.99)}
.card.sel{background:rgba(201,221,92,.13);border-color:var(--lime-line)}
.card-ico{
  flex:none;width:34px;height:34px;
  display:flex;align-items:center;justify-content:center;
  border-radius:11px;background:rgba(255,255,255,.05);
  color:rgba(210,225,255,.72);
  transition:color .16s,background .16s;
}
.card-ico svg{width:19px;height:19px}
.cards.compact .card-ico{width:30px;height:30px;border-radius:9px}
.cards.compact .card-ico svg{width:17px;height:17px}
.card.sel .card-ico{background:rgba(201,221,92,.16);color:var(--lime)}
.card-txt{flex:1;min-width:0;display:block}
.card-t{display:block;font-size:14.5px;font-weight:650;line-height:1.35;color:rgba(244,247,255,.94)}
.cards.compact .card-t{font-size:13.5px}
.card.sel .card-t{color:var(--lime)}
.card-d{display:block;margin-top:3px;font-size:11.5px;line-height:1.45;color:rgba(244,247,255,.44)}
.cards.compact .card-d{font-size:11px;margin-top:2px}
.card.sel .card-d{color:rgba(201,221,92,.62)}
.card-tick{
  flex:none;width:18px;height:18px;border-radius:50%;
  border:1.5px solid rgba(150,190,255,.26);
  display:flex;align-items:center;justify-content:center;
}
.card-tick svg{width:9px;height:7px;opacity:0}
.card.sel .card-tick{border-color:var(--lime);background:var(--lime)}
.card.sel .card-tick svg{opacity:1}

.card-other-input{
  display:none;width:100%;height:38px;margin-top:9px;padding:0 12px;
  background:rgba(0,0,0,.18);border:1px solid rgba(201,221,92,.3);
  border-radius:9px;color:var(--text);font-size:13px;font-family:inherit;
}
.card-other-input:focus{outline:none;border-color:var(--lime-line)}
.card.open-other{flex-wrap:wrap}
.card.open-other .card-other-input{display:block}
.card.open-other .card-tick{display:none}
.cards.has-other .card:not(.open-other){min-height:46px;padding:8px 14px}
.cards.has-other .card:not(.open-other) .card-d{display:none}
.cards.has-other .card:not(.open-other) .card-ico{width:26px;height:26px;border-radius:8px}
.cards.has-other .card:not(.open-other) .card-ico svg{width:15px;height:15px}

/* 文本题 */
.ta-wrap{
  margin-top:26px;padding:14px;
  background:var(--card);border:1px solid var(--line);
  border-radius:16px;transition:border-color .18s;
}
.ta-wrap:focus-within{border-color:var(--lime-line)}
.ta-wrap textarea{
  width:100%;min-height:104px;background:none;border:0;
  color:var(--text);font-size:15px;line-height:1.65;font-family:inherit;
  resize:none;appearance:none;
}
.ta-wrap textarea:focus{outline:none}
.ta-foot{
  display:flex;align-items:center;justify-content:space-between;
  margin-top:8px;padding-top:9px;border-top:1px solid rgba(150,190,255,.1);
}
.ta-foot span{font-size:10px;color:var(--faint);letter-spacing:.03em}
.counter{font-variant-numeric:tabular-nums;font-size:10px;color:var(--faint)}
.quote-line{
  display:flex;align-items:center;gap:7px;
  margin-top:14px;padding:10px 12px;
  background:rgba(255,255,255,.03);border-radius:9px;
  font-size:9.5px;line-height:1.5;color:rgba(244,247,255,.36);
}
.quote-line svg{flex:none;width:11px;height:11px}

/* ============ 状态提示 ============ */
.ok{display:flex;align-items:center;justify-content:center;gap:7px;margin-top:18px;font-size:11.5px;font-weight:600;color:var(--ok)}
.ok svg{width:17px;height:17px}
.hello{margin-top:14px;font-size:26px;line-height:1.32;font-weight:700;letter-spacing:-.01em;word-break:break-word}
.hello em{font-style:normal;color:var(--lime)}
.hello-sub{margin-top:8px;font-size:11.5px;line-height:1.6;color:var(--sub)}

/* ============ 卡片容器 ============ */
.panel{
  margin-top:22px;padding:18px 17px 15px;
  background:rgba(255,255,255,.055);
  border:1px solid var(--line);border-radius:16px;
}
.panel-head{display:flex;align-items:center;justify-content:space-between}
.panel-name{font-size:13px;font-weight:650}
.tag{
  font-size:9.5px;font-weight:700;letter-spacing:.1em;
  padding:4px 8px;border-radius:4px;
  background:rgba(201,221,92,.16);color:var(--lime);
  border:1px solid rgba(201,221,92,.3);
}

.qr-wrap{
  display:flex;align-items:center;justify-content:center;
  width:168px;height:168px;margin:16px auto 10px;padding:9px;
  background:#fff;border-radius:10px;
}
.qr-wrap img,.qr-wrap canvas{width:100%;height:100%;display:block}
.qr-hint{text-align:center;font-size:9.5px;color:var(--faint);letter-spacing:.08em}
.tk-no{text-align:center;margin-top:12px;font-size:10px;letter-spacing:.14em;color:rgba(244,247,255,.42);font-weight:600}
.tk-div{height:1px;background:rgba(150,190,255,.14);margin:14px 0 13px}
.tk-row{display:flex;align-items:center;justify-content:space-between;font-size:11px;margin-bottom:8px}
.tk-row:last-child{margin-bottom:0}
.tk-row b{font-weight:400;color:rgba(244,247,255,.4)}
.tk-row span{color:rgba(244,247,255,.86);font-weight:500}

.notice{margin-top:20px}
.notice h3{font-size:10.5px;font-weight:600;color:rgba(244,247,255,.66);letter-spacing:.06em;margin-bottom:9px}
.notice p{display:flex;gap:7px;font-size:10px;line-height:1.55;color:var(--sub);margin-bottom:7px}
.notice p i{flex:none;width:3px;height:3px;border-radius:50%;background:rgba(201,221,92,.6);margin-top:6px}

/* 手环色块 */
.band{
  display:inline-flex;align-items:center;gap:6px;
  font-size:11px;font-weight:600;
}
.band i{width:9px;height:9px;border-radius:50%;display:block}

/* ============ 宽屏 ============ */
@media (min-width:560px){
  .view:not(#v-poster){
    max-width:440px;margin:0 auto;
    border-left:1px solid rgba(150,190,255,.08);
    border-right:1px solid rgba(150,190,255,.08);
    box-shadow:0 0 90px rgba(0,0,0,.55);
  }
  .head,.foot,.body,.q-body{padding-left:26px;padding-right:26px}
}
@media (prefers-reduced-motion:reduce){
  *{animation:none!important;transition:none!important}
}