/* IDV Guard 临时检测网站 · 浅鼠尾草绿主题 */
:root{
  --bg:#e8ece5;
  --surface:#f6f8f3;
  --sage-50:#eef1ea;
  --sage-100:#dde5db;
  --sage-200:#c9d4c7;
  --sage-400:#8ea294;
  --green:#2f6b52;
  --green-hover:#285c46;
  --green-ink:#24473a;
  --ink:#1f2d27;
  --muted:#5e6a63;
  --faint:#87928b;
  --line:#d8dfd5;
  --amber:#a8660f;
  --amber-bg:#fcf3e2;
  --amber-line:#f1dbb1;
  --red:#b8443b;
  --red-bg:#fcecea;
  --red-line:#f1c9c4;
  --radius:16px;
  --radius-sm:10px;
  --shadow:0 1px 2px rgba(31,45,39,.03);
  --shadow-lg:0 12px 40px rgba(29,40,34,.14);
  --font:"PingFang SC","HarmonyOS Sans SC","MiSans","Microsoft YaHei UI","Microsoft YaHei","Noto Sans SC",system-ui,sans-serif;
  --mono:"JetBrains Mono","Cascadia Mono",Consolas,"SFMono-Regular",monospace;
}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--ink);font:15px/1.65 var(--font);-webkit-font-smoothing:antialiased}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
a{color:var(--green-ink)}
h1,h2,h3,p{margin:0}
h1{font-size:26px;line-height:1.3;font-weight:700;letter-spacing:-.01em}
h2{font-size:19px;line-height:1.4;font-weight:650}
h3{font-size:15.5px;line-height:1.45;font-weight:650}
:focus-visible{outline:3px solid rgba(47,107,82,.35);outline-offset:2px;border-radius:8px}
[hidden]{display:none!important}
/* 兜底：没有单独指定尺寸的图标跟随文字大小，避免撑大 */
svg{width:1.15em;height:1.15em;flex:none}
.muted{color:var(--muted)}
.small{font-size:13px}
.mono{font-family:var(--mono);letter-spacing:.04em}

/* 启动 */
.boot{min-height:100vh;display:grid;place-items:center;color:var(--muted);font-weight:600;letter-spacing:.08em}
.boot span{display:block;font-weight:400;letter-spacing:0;margin-top:6px;font-size:13px}

/* 品牌 */
.brand{display:flex;align-items:center;gap:10px;font-weight:750;letter-spacing:.02em;color:var(--ink);text-decoration:none;background:none;border:0;padding:0}
.brand img{width:32px;height:32px;display:block}
.brand small{display:block;font-size:10.5px;font-weight:500;color:var(--faint);letter-spacing:.22em;line-height:1.2;text-transform:uppercase}

/* 顶栏 */
.topbar{position:sticky;top:0;z-index:20;background:rgba(232,236,229,.9);backdrop-filter:saturate(1.4) blur(12px);-webkit-backdrop-filter:saturate(1.4) blur(12px);border-bottom:1px solid var(--line)}
.topbar-in{max-width:1080px;margin:0 auto;height:64px;padding:0 24px;display:flex;align-items:center;gap:28px}
.tabs{display:flex;gap:4px}
.tab{border:0;background:none;padding:8px 14px;border-radius:999px;color:var(--muted);font-weight:550;display:flex;align-items:center;gap:7px;transition:background .15s,color .15s}
.tab svg{width:18px;height:18px}
.tab:hover{background:var(--sage-100);color:var(--ink)}
.tab.active{background:var(--sage-100);color:var(--green-ink)}
.top-right{margin-left:auto;display:flex;align-items:center;gap:8px}
.icon-btn{width:38px;height:38px;border-radius:999px;border:1px solid var(--line);background:var(--surface);display:grid;place-items:center;color:var(--muted);transition:border-color .15s,color .15s}
.icon-btn:hover{border-color:var(--sage-400);color:var(--green-ink)}
.icon-btn svg{width:18px;height:18px}

/* 账号菜单 */
.menu{position:relative}
.menu>summary{list-style:none;display:flex;align-items:center;gap:8px;padding:4px 10px 4px 4px;border:1px solid var(--line);border-radius:999px;background:var(--surface);cursor:pointer;font-weight:550;font-size:14px}
.menu>summary::-webkit-details-marker{display:none}
.menu>summary:hover{border-color:var(--sage-400)}
.avatar{width:30px;height:30px;border-radius:999px;background:var(--sage-100);color:var(--green-ink);display:grid;place-items:center;font-weight:700;font-size:13px}
.menu-pop{position:absolute;right:0;top:calc(100% + 8px);min-width:200px;background:#fbfcf9;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow-lg);padding:6px;animation:pop .14s ease-out}
.menu-pop .who{padding:10px 12px 8px;font-size:13px;color:var(--muted);border-bottom:1px solid var(--line);margin-bottom:4px}
.menu-pop .who b{display:block;color:var(--ink);font-size:14px}
.menu-pop button,.menu-pop a{display:flex;width:100%;align-items:center;gap:10px;padding:9px 12px;border:0;background:none;border-radius:9px;text-align:left;font-size:14px;text-decoration:none;color:var(--ink)}
.menu-pop button:hover,.menu-pop a:hover{background:var(--sage-50)}
.menu-pop svg{width:16px;height:16px;flex:none;color:var(--faint)}
.menu-pop .danger-text svg{color:currentColor}
.menu-pop button,.menu-pop a{white-space:nowrap}
.menu-pop .danger-text{color:var(--red)}
.menu-pop hr{border:0;border-top:1px solid var(--line);margin:4px 0}

/* 主体 */
.page{max-width:1080px;margin:0 auto;padding:32px 24px 72px}
.enter{animation:rise .32s cubic-bezier(.2,.7,.2,1)}
.stack>*+*{margin-top:20px}
.back{display:inline-flex;align-items:center;gap:6px;color:var(--muted);text-decoration:none;font-size:14px;border:0;background:none;padding:4px 0;margin-bottom:12px}
.back:hover{color:var(--green-ink)}
.back svg{width:16px;height:16px}
.page-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:24px;flex-wrap:wrap}
.page-head p{color:var(--muted);margin-top:4px}

/* 卡片 */
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:24px}
.card.flat{box-shadow:none}
.card-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}
.card-title .small{color:var(--faint)}

/* 按钮 */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 20px;border-radius:12px;border:1px solid var(--sage-200);background:var(--sage-100);color:var(--green-ink);font-weight:600;text-decoration:none;white-space:nowrap;transition:background .15s,transform .15s,box-shadow .15s,border-color .15s}
.btn:hover{background:#d0dbcf;border-color:var(--sage-400)}
.btn:active{transform:translateY(1px)}
.btn:disabled{opacity:.55;cursor:not-allowed;box-shadow:none}
.btn svg{width:18px;height:18px}
.btn.lg{min-height:52px;padding:0 26px;font-size:16px;border-radius:14px}
.btn.ghost{background:transparent;color:var(--ink);border-color:var(--line)}
.btn.ghost:hover{border-color:var(--sage-400);background:var(--sage-50);box-shadow:none}
.btn.soft{background:var(--surface);color:var(--green-ink)}
.btn.soft:hover{background:var(--sage-50);box-shadow:none}
.btn.danger{background:transparent;color:var(--red);border-color:var(--red-line)}
.btn.danger:hover{background:var(--red-bg);box-shadow:none}
.btn.sm{min-height:36px;padding:0 14px;font-size:13.5px;border-radius:10px}
.btn.full{width:100%}
.link-btn{border:0;background:none;padding:0;color:var(--green-ink);font-weight:600;font-size:14px;display:inline-flex;align-items:center;gap:6px;text-decoration:none}
.link-btn:hover{text-decoration:underline;text-underline-offset:3px}
.link-btn svg{width:16px;height:16px}
.link-btn.quiet{color:var(--muted);font-weight:500}

/* 状态标签 */
.pill{display:inline-flex;align-items:center;gap:6px;padding:3px 10px;border-radius:999px;font-size:12.5px;font-weight:600;background:var(--sage-50);color:var(--muted);border:1px solid var(--line);white-space:nowrap}
.pill::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor;opacity:.7}
.pill.live{background:#e6f3ea;color:var(--green-ink);border-color:#c5e1cd}
.pill.live::before{opacity:1;animation:pulse 1.6s ease-in-out infinite}
.pill.warn{background:var(--amber-bg);color:var(--amber);border-color:var(--amber-line)}
.pill.bad{background:var(--red-bg);color:var(--red);border-color:var(--red-line)}
.pill.plain::before{display:none}

/* 首页 */
.hello{margin-bottom:28px}
.hello p{color:var(--muted);margin-top:6px}
.choices{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.choice{position:relative;text-align:left;display:flex;flex-direction:column;gap:10px;padding:28px;border-radius:20px;border:1px solid var(--line);background:var(--surface);box-shadow:var(--shadow);transition:transform .2s,box-shadow .2s,border-color .2s;min-height:220px}
button.choice:hover,.choice.open{border-color:var(--sage-400)}
button.choice:hover{transform:translateY(-2px)}
.choice .glyph{width:52px;height:52px;border-radius:16px;background:var(--sage-100);color:var(--green-ink);display:grid;place-items:center;margin-bottom:6px}
.choice .glyph svg{width:26px;height:26px}
.choice h2{font-size:22px}
.choice p{color:var(--muted)}
.choice .go{margin-top:auto;display:flex;align-items:center;justify-content:space-between;gap:6px;padding:16px 18px;border-radius:14px;background:var(--sage-100);color:var(--green-ink);font-weight:650;font-size:15px;transition:background .15s}
button.choice:hover .go{background:#d0dbcf}
.choice .go svg{width:18px;height:18px;transition:transform .2s}
button.choice:hover .go svg{transform:translateX(3px)}
.roles{margin-top:auto;display:grid;gap:10px}
.role{display:flex;align-items:center;gap:14px;width:100%;text-align:left;padding:14px 16px;border-radius:14px;border:1px solid var(--line);background:var(--sage-100);transition:border-color .15s,background .15s}
.role:hover{border-color:var(--sage-400);background:#d0dbcf}
.role .ri{width:38px;height:38px;border-radius:12px;background:var(--surface);display:grid;place-items:center;color:var(--green-ink);flex:none;border:1px solid var(--line)}
.role .ri svg{width:20px;height:20px}
.role b{display:block;font-size:15px}
.role span{color:var(--muted);font-size:13px}
.role .chev{margin-left:auto;color:var(--faint);width:18px;height:18px;flex:none}
.join-inline{display:flex;gap:8px;margin-top:2px;animation:rise .2s ease-out}
.join-inline input{flex:1;min-width:0}
.how{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:22px;padding:14px 18px;border-radius:14px;background:var(--sage-50);border:1px dashed var(--sage-200);color:var(--muted);font-size:14px}
.how b{color:var(--ink);font-weight:600}
.how .n{width:22px;height:22px;border-radius:50%;background:#fff;border:1px solid var(--sage-200);display:inline-grid;place-items:center;font-size:12px;font-weight:700;color:var(--green-ink);margin-right:6px}
.how .arrow{color:var(--sage-400)}
.how .link-btn{margin-left:auto}
.resume{display:flex;align-items:center;gap:18px;padding:18px 22px;margin-bottom:24px;border-radius:18px;background:var(--sage-100);border:1px solid var(--sage-200);animation:rise .3s ease-out}
.resume .dot{width:12px;height:12px;border-radius:50%;background:var(--green);box-shadow:0 0 0 6px rgba(47,107,82,.15);flex:none;animation:pulse 1.6s ease-in-out infinite}
.resume.warn{background:var(--amber-bg);border-color:var(--amber-line)}
.resume.warn .dot{background:var(--amber);box-shadow:0 0 0 6px rgba(168,102,15,.14)}
.resume div{flex:1;min-width:0}
.resume p{color:var(--muted);font-size:14px}
.section-head{display:flex;align-items:baseline;justify-content:space-between;margin:40px 0 12px}
.section-head h2{font-size:17px}
.cap{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--faint);margin-top:16px}
.meter{width:90px;height:6px;border-radius:999px;background:var(--sage-100);overflow:hidden;display:inline-block}
.meter i{display:block;height:100%;background:var(--sage-400);border-radius:inherit}

/* 列表 */
.list{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);overflow:hidden}
.row{display:grid;grid-template-columns:1fr auto auto;align-items:center;gap:16px;padding:14px 20px;border:0;border-top:1px solid var(--line);width:100%;background:none;text-align:left;transition:background .12s}
.row:first-child{border-top:0}
.row:hover{background:var(--sage-50)}
.row h3{font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.row .meta{font-size:13px;color:var(--faint)}
.row .when{font-size:13px;color:var(--faint);white-space:nowrap}
.row .chev{color:var(--faint);width:18px;height:18px}
.empty{padding:36px 20px;text-align:center;color:var(--muted)}
.empty b{display:block;color:var(--ink);font-size:15.5px;margin-bottom:4px}
.filters{display:flex;gap:6px;flex-wrap:wrap}
.chip{border:1px solid var(--line);background:var(--surface);border-radius:999px;padding:5px 14px;font-size:13.5px;color:var(--muted)}
.chip.active{background:var(--sage-100);border-color:var(--sage-400);color:var(--green-ink);font-weight:600}

/* 检测详情 · 状态头 */
.status-hero{display:flex;gap:22px;align-items:flex-start;padding:28px;border-radius:20px;background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow)}
.status-hero .si{width:56px;height:56px;border-radius:18px;display:grid;place-items:center;flex:none;background:var(--sage-100);color:var(--green-ink)}
.status-hero .si svg{width:28px;height:28px}
.status-hero.live .si{background:#dff0e4;position:relative}
.status-hero.live .si::after{content:"";position:absolute;inset:-5px;border-radius:22px;border:2px solid rgba(47,107,82,.35);animation:ring 2s ease-out infinite}
.status-hero.warn .si{background:var(--amber-bg);color:var(--amber)}
.status-hero.bad .si{background:var(--red-bg);color:var(--red)}
.status-hero.done .si{background:var(--sage-50);color:var(--muted)}
.status-hero .sb{flex:1;min-width:0}
.status-hero .kicker{font-size:13px;color:var(--faint);display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-bottom:4px}
.status-hero h1{font-size:24px}
.status-hero p{color:var(--muted);margin-top:6px;max-width:58ch}
.status-hero .acts{display:flex;gap:10px;flex-wrap:wrap;margin-top:18px}

/* 步骤条 */
.stepper{display:flex;gap:0;margin:22px 4px 4px;list-style:none;padding:0;counter-reset:s}
.stepper li{flex:1;position:relative;font-size:12.5px;color:var(--faint);text-align:center;padding-top:30px}
.stepper li::before{counter-increment:s;content:counter(s);position:absolute;top:0;left:50%;transform:translateX(-50%);width:24px;height:24px;border-radius:50%;background:var(--surface);border:2px solid var(--sage-200);display:grid;place-items:center;font-size:11.5px;font-weight:700;color:var(--faint);z-index:1;transition:all .3s}
.stepper li::after{content:"";position:absolute;top:11px;left:-50%;width:100%;height:2px;background:var(--sage-200)}
.stepper li:first-child::after{display:none}
.stepper li.done{color:var(--muted)}
.stepper li.done::before{content:"✓";background:var(--sage-400);border-color:var(--sage-400);color:#fff}
.stepper li.done::after,.stepper li.now::after{background:var(--sage-400)}
.stepper li.now{color:var(--green-ink);font-weight:650}
.stepper li.now::before{background:var(--green);border-color:var(--green);color:#fff;box-shadow:0 0 0 5px rgba(47,107,82,.16)}

/* 详情布局 */
.detail{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:20px;margin-top:20px;align-items:start}
.detail>div{display:grid;gap:20px;min-width:0}
.detail.even{grid-template-columns:1fr 1fr}

/* 连接码 / 监督密钥 */
.task{display:grid;gap:16px}
.task-step{display:flex;gap:14px}
.task-step .n{width:28px;height:28px;border-radius:50%;background:var(--sage-100);color:var(--green-ink);font-weight:700;font-size:13px;display:grid;place-items:center;flex:none;margin-top:1px}
.task-step p{color:var(--muted);font-size:14px}
.code-box{display:flex;align-items:center;gap:10px;margin-top:10px;padding:12px 12px 12px 16px;border-radius:12px;background:var(--sage-50);border:1px solid var(--sage-200)}
.code-box .mono{font-size:21px;font-weight:700;color:var(--ink);flex:1;letter-spacing:.08em;overflow-wrap:anywhere;user-select:all}
.code-box.share{background:repeating-linear-gradient(135deg,#fff,#fff 8px,#f7faf6 8px,#f7faf6 16px);border:1.5px dashed var(--sage-400)}
.code-box.share .mono{font-size:15.5px;letter-spacing:.04em;white-space:nowrap}
.code-tag{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:600;color:var(--green-ink);background:var(--sage-100);padding:2px 9px;border-radius:999px;margin-left:6px}
.code-tag svg{width:13px;height:13px}
.code-tag.share{background:#fff;border:1px dashed var(--sage-400)}

/* 分数 */
.score{display:grid;grid-template-columns:auto 1fr;gap:26px;align-items:center}
.gauge{width:148px;height:148px;position:relative}
.gauge svg{width:100%;height:100%;transform:rotate(-90deg)}
.gauge .track{stroke:var(--sage-100)}
.gauge .val{stroke:var(--green);transition:stroke-dashoffset .8s cubic-bezier(.2,.7,.2,1)}
.gauge.warn .val{stroke:#d29433}
.gauge.bad .val{stroke:var(--red)}
.gauge .num{position:absolute;inset:0;display:grid;place-items:center;text-align:center}
.gauge .num b{font-size:38px;line-height:1;font-weight:750;letter-spacing:-.02em;display:block}
.gauge .num span{font-size:12px;color:var(--faint);display:block;margin-top:4px}
.verdict h2{font-size:21px}
.verdict p{color:var(--muted);font-size:14px;margin-top:6px}
.verdict .tone{display:inline-block;margin-bottom:8px}
.score-wait{display:flex;align-items:center;gap:16px;padding:8px 0;color:var(--muted)}
.spin{display:inline-block;width:34px;height:34px;border-radius:50%;border:3px solid var(--sage-100);border-top-color:var(--sage-400);animation:spin 1s linear infinite;flex:none}
.score-wait .ci{width:44px;height:44px;border-radius:14px;background:var(--sage-50);color:var(--sage-400);display:grid;place-items:center;flex:none}
.score-wait .ci svg{width:22px;height:22px}
.score-wait b{display:block;color:var(--ink)}

/* 检测项 */
.checks{display:grid;gap:0;margin-top:20px;border-top:1px solid var(--line)}
.check{display:flex;gap:14px;align-items:flex-start;padding:14px 0;border-bottom:1px solid var(--line)}
.check:last-child{border-bottom:0}
.check .ci{width:30px;height:30px;border-radius:10px;display:grid;place-items:center;flex:none;background:var(--sage-50);color:var(--sage-400)}
.check .ci svg{width:16px;height:16px}
.check.hit .ci{background:var(--amber-bg);color:var(--amber)}
.check b{display:block;font-weight:600}
.check p{color:var(--muted);font-size:13.5px}
.check .pill{margin-left:auto;flex:none}

/* 时间 */
.facts{display:grid;gap:12px}
.fact{display:flex;justify-content:space-between;gap:12px;font-size:14px}
.fact span{color:var(--muted)}
.fact b{font-weight:600;text-align:right}
.cover{margin:6px 0 4px}
.cover-bar{height:8px;border-radius:999px;background:var(--sage-100);overflow:hidden}
.cover-bar i{display:block;height:100%;background:var(--green);border-radius:inherit;transition:width .6s}
.cover small{display:flex;justify-content:space-between;color:var(--faint);font-size:12px;margin-top:6px}

/* 提示条 */
.note{display:flex;gap:12px;align-items:flex-start;padding:14px 16px;border-radius:12px;background:var(--sage-50);border:1px solid var(--line);font-size:14px;color:var(--muted)}
.note svg{width:18px;height:18px;flex:none;margin-top:2px;color:var(--sage-400)}
.note b{color:var(--ink)}
.note.warn{background:var(--amber-bg);border-color:var(--amber-line);color:#7a5317}
.note.warn svg{color:var(--amber)}
.note.bad{background:var(--red-bg);border-color:var(--red-line);color:#8a322b}
.note.bad svg{color:var(--red)}

.foot-actions{display:flex;flex-wrap:wrap;gap:10px 22px;align-items:center;justify-content:space-between;padding:6px 2px}
.foot-actions>div{display:flex;gap:20px;flex-wrap:wrap}

/* 反馈 */
.fb{padding:14px 0;border-top:1px solid var(--line)}
.fb:first-of-type{border-top:0;padding-top:0}
.fb-head{display:flex;justify-content:space-between;gap:10px;align-items:center}
.fb p{color:var(--muted);font-size:14px;margin-top:4px;white-space:pre-wrap;overflow-wrap:anywhere}
.fb .reply{margin-top:10px;padding:10px 12px;border-radius:10px;background:var(--sage-50);font-size:14px;color:var(--ink)}
.fb .reply b{display:block;font-size:12px;color:var(--green-ink);margin-bottom:2px}
.fb small{color:var(--faint);font-size:12px}

/* 表单 */
.field{display:grid;gap:6px;margin-bottom:16px}
.field label,.label{font-size:14px;font-weight:600}
.field .hint{font-size:12.5px;color:var(--faint);display:flex;justify-content:space-between}
input,select,textarea{width:100%;min-height:46px;padding:10px 14px;border-radius:12px;border:1px solid var(--sage-200);background:#fbfcf9;transition:border-color .15s,box-shadow .15s}
textarea{min-height:130px;resize:vertical;line-height:1.6}
input:focus,select:focus,textarea:focus{outline:0;border-color:var(--green);box-shadow:0 0 0 4px rgba(47,107,82,.13)}
input::placeholder,textarea::placeholder{color:#a4b0a8}
.error{color:var(--red);font-size:13.5px;min-height:0}
.error:empty{display:none}
.error:not(:empty){margin-bottom:12px}
.seg{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.seg label{display:flex;align-items:center;gap:10px;padding:12px 14px;border:1px solid var(--sage-200);border-radius:12px;cursor:pointer;font-weight:550;transition:border-color .15s,background .15s}
.seg label svg{width:20px;height:20px;color:var(--muted)}
.seg input{position:absolute;opacity:0;width:1px;height:1px;min-height:0}
.seg label:has(input:checked){border-color:var(--green);background:var(--sage-50);box-shadow:0 0 0 3px rgba(47,107,82,.1)}
.seg label:has(input:checked) svg{color:var(--green-ink)}
.seg label:has(input:focus-visible){outline:3px solid rgba(47,107,82,.35)}

/* 报错类型 */
.types{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:18px}
.type{position:relative;display:flex;gap:12px;align-items:flex-start;padding:14px;border:1px solid var(--sage-200);border-radius:14px;cursor:pointer;transition:border-color .15s,background .15s}
.type input{position:absolute;opacity:0;width:1px;height:1px;min-height:0}
.type .ti{width:34px;height:34px;border-radius:10px;background:var(--sage-50);display:grid;place-items:center;color:var(--muted);flex:none}
.type .ti svg{width:18px;height:18px}
.type b{display:block;font-size:14.5px}
.type span{font-size:12.5px;color:var(--muted);line-height:1.45;display:block}
.type:hover{border-color:var(--sage-400)}
.type:has(input:checked){border-color:var(--green);background:var(--sage-50);box-shadow:0 0 0 3px rgba(47,107,82,.1)}
.type:has(input:checked) .ti{background:var(--green);color:#fff}
.type:has(input:focus-visible){outline:3px solid rgba(47,107,82,.35)}
.type.wide{grid-column:1/-1}
.issue-step{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:650;color:var(--green-ink);margin-bottom:10px}
.issue-step i{font-style:normal;width:20px;height:20px;border-radius:50%;background:var(--sage-100);display:grid;place-items:center;font-size:11px}
.auto-attach{display:flex;flex-wrap:wrap;gap:6px;margin:-6px 0 16px}
.auto-attach span{font-size:12px;color:var(--muted);background:var(--sage-50);border:1px solid var(--line);padding:2px 9px;border-radius:999px}

/* 弹窗 */
dialog{border:0;padding:0;border-radius:20px;width:min(560px,calc(100vw - 24px));max-height:calc(100vh - 32px);box-shadow:var(--shadow-lg);background:#fbfcf9;color:var(--ink)}
dialog[open]{animation:pop .2s cubic-bezier(.2,.7,.2,1)}
dialog::backdrop{background:rgba(29,40,34,.32);backdrop-filter:blur(3px)}
.modal-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:22px 24px 0}
.modal-head p{color:var(--muted);font-size:14px;margin-top:4px}
.modal-body{padding:18px 24px 24px}
.close{width:36px;height:36px;border-radius:50%;border:0;background:var(--sage-50);color:var(--muted);display:grid;place-items:center;flex:none;font-size:20px;line-height:1}
.close:hover{background:var(--sage-100);color:var(--ink)}

/* 帮助 */
.faq details{border-top:1px solid var(--line)}
.faq details:first-child{border-top:0}
.faq summary{list-style:none;padding:14px 0;font-weight:600;cursor:pointer;display:flex;justify-content:space-between;gap:10px}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{content:"+";color:var(--sage-400);font-size:20px;line-height:1;transition:transform .2s}
.faq details[open] summary::after{transform:rotate(45deg)}
.faq details p{color:var(--muted);font-size:14px;padding:0 0 14px}
.flow{display:grid;gap:12px;margin-bottom:18px}
.flow div{display:flex;gap:12px;align-items:flex-start}
.flow .n{width:26px;height:26px;border-radius:50%;background:var(--green);color:#fff;font-weight:700;font-size:12.5px;display:grid;place-items:center;flex:none}
.flow p{font-size:14px;color:var(--muted)}
.flow b{color:var(--ink)}

/* 登录 */
.auth{min-height:100vh;display:grid;grid-template-columns:1.05fr 1fr}
.auth-art{position:relative;overflow:hidden;background:var(--bg);border-right:1px solid var(--line);padding:48px;display:flex;flex-direction:column;justify-content:space-between}
.auth-art::before,.auth-art::after{content:"";position:absolute;border-radius:50%;background:rgba(255,255,255,.25)}
.auth-art::before{width:520px;height:520px;right:-180px;top:-140px}
.auth-art::after{width:340px;height:340px;left:-120px;bottom:-120px;background:rgba(47,107,82,.08)}
.auth-art>*{position:relative;z-index:1}
.auth-art h1{font-size:40px;line-height:1.25;font-weight:750;color:var(--ink);letter-spacing:-.02em}
.auth-art p{color:var(--muted);margin-top:14px;font-size:16px;max-width:26em}
.auth-points{display:grid;gap:12px;max-width:360px}
.auth-points div{display:flex;gap:12px;align-items:center;padding:12px 16px;background:var(--sage-100);border-radius:14px;font-size:14px;color:var(--ink);backdrop-filter:blur(4px)}
.auth-points svg{width:20px;height:20px;color:var(--green);flex:none}
.auth-side{display:grid;place-items:center;padding:40px 24px;background:var(--surface)}
.auth-box{width:min(400px,100%)}
.auth-box h2{font-size:26px;font-weight:700}
.auth-box>p{color:var(--muted);margin:6px 0 24px}
.switch{display:grid;grid-template-columns:1fr 1fr;padding:4px;border-radius:12px;background:var(--sage-100);margin-bottom:22px}
.switch button{border:0;background:none;padding:9px;border-radius:9px;font-weight:600;color:var(--muted);transition:background .15s,color .15s}
.switch button.active{background:var(--surface);color:var(--ink);box-shadow:0 1px 3px rgba(29,40,34,.1)}
.auth-foot{margin-top:20px;font-size:13px;color:var(--faint);text-align:center}
.auth .brand-sm{display:none}

/* 管理 */
.admin-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:22px}
.stat{padding:16px 18px;border-radius:14px;background:var(--surface);border:1px solid var(--line)}
.stat span{font-size:13px;color:var(--muted)}
.stat b{display:block;font-size:26px;font-weight:700;line-height:1.3}
.stat.hot b{color:var(--amber)}
.seg-tabs{display:inline-flex;padding:4px;border-radius:12px;background:var(--sage-100);gap:2px;margin-bottom:14px}
.seg-tabs button{border:0;background:none;padding:7px 16px;border-radius:9px;font-weight:600;font-size:14px;color:var(--muted)}
.seg-tabs button.active{background:var(--surface);color:var(--ink);box-shadow:0 1px 3px rgba(29,40,34,.1)}
.seg-tabs em{font-style:normal;font-size:12px;margin-left:6px;padding:0 7px;border-radius:999px;background:var(--sage-200);color:var(--green-ink)}
.table-wrap{overflow-x:auto;background:var(--surface);border:1px solid var(--line);border-radius:var(--radius)}
table{width:100%;border-collapse:collapse;font-size:14px}
th{text-align:left;font-size:12.5px;font-weight:600;color:var(--faint);padding:12px 16px;background:var(--sage-50);border-bottom:1px solid var(--line);white-space:nowrap}
td{padding:12px 16px;border-bottom:1px solid var(--line);vertical-align:top}
tr:last-child td{border-bottom:0}
td small{color:var(--faint);font-size:12.5px}
td .desc{max-width:420px;white-space:pre-wrap;overflow-wrap:anywhere;color:var(--muted)}
td select{min-height:36px;padding:4px 10px;width:auto}
.admin-tools{display:flex;align-items:center;gap:12px;margin-bottom:12px}
.admin-tools input{max-width:320px;min-height:40px}
.who-tag{display:inline-block;font-size:11.5px;color:var(--faint);margin-right:6px;min-width:3.6em}
.watchers{display:flex;flex-wrap:wrap;align-items:center;gap:4px;margin-top:4px}
.wname{font-size:12.5px;padding:1px 8px;border-radius:999px;background:var(--sage-100);color:var(--green-ink);cursor:default}
.table-note{margin-top:10px}
tr[hidden]{display:none}
.td-acts{display:flex;gap:6px;flex-wrap:wrap}

/* 报告 */
.report-bar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-bottom:20px}
.report-bar .spacer{flex:1}
.report{max-width:840px;margin:0 auto;background:#fbfcf9;border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow);padding:44px 48px}
.rp-head{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;padding-bottom:22px;border-bottom:2px solid var(--ink)}
.rp-head h1{font-size:28px;margin-top:14px}
.rp-head .ids{font-family:var(--mono);font-size:11.5px;color:var(--faint);margin-top:6px;line-height:1.7;word-break:break-all}
.rp-head .right{text-align:right;display:grid;gap:8px;justify-items:end;font-size:13px;color:var(--muted)}
.rp-sum{display:grid;grid-template-columns:auto 1fr;gap:30px;align-items:center;padding:26px 0}
.rp-sum .gauge{width:160px;height:160px}
.rp-sum h2{font-size:23px}
.rp-sum p{color:var(--muted);margin-top:6px}
.kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:16px}
.kpi{padding:12px 14px;border-radius:12px;background:var(--sage-50);border:1px solid var(--line)}
.kpi span{font-size:12px;color:var(--muted);display:block}
.kpi b{font-size:18px;font-weight:700}
.kpi small{font-size:11.5px;color:var(--faint);display:block;line-height:1.4}
.rp-sec{padding-top:26px;margin-top:4px;break-inside:avoid}
.rp-sec>h2{font-size:16px;display:flex;align-items:center;gap:10px;margin-bottom:14px}
.rp-sec>h2 i{font-style:normal;font-family:var(--mono);font-size:12px;color:#fff;background:var(--green);border-radius:6px;padding:1px 7px}
.timeline{position:relative;padding:18px 0 4px}
.tl-bar{height:14px;border-radius:999px;background:var(--sage-100);position:relative;overflow:hidden}
.tl-bar i{position:absolute;inset:0 auto 0 0;background:linear-gradient(90deg,var(--sage-400),var(--green));border-radius:inherit}
.tl-ends{display:flex;justify-content:space-between;margin-top:10px;font-size:13px}
.tl-ends div span{display:block;font-size:11.5px;color:var(--faint)}
.tl-ends div:last-child{text-align:right}
.grid-facts{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:16px}
.verdicts{display:grid;gap:0;border:1px solid var(--line);border-radius:14px;overflow:hidden}
.vrow{display:grid;grid-template-columns:170px auto 1fr;gap:16px;align-items:center;padding:13px 16px;border-top:1px solid var(--line);font-size:14px}
.vrow:first-child{border-top:0}
.vrow>span:first-child{font-weight:600}
.vrow p{color:var(--muted);font-size:13px}
.verdicts+.table-wrap{margin-top:14px}
.final{padding:18px 20px;border-radius:14px;background:var(--sage-50);border:1px solid var(--line);border-left:4px solid var(--green);font-size:14.5px}
.final.warn{border-left-color:#d29433}
.final.bad{border-left-color:var(--red)}
.final p+p{margin-top:8px}
.final .concl{font-weight:700;font-size:16px;color:var(--ink)}
.limits{margin:0;padding-left:20px;color:var(--muted);font-size:14px;display:grid;gap:6px}
.disclaimer{margin-top:30px;padding-top:16px;border-top:1px solid var(--line);font-size:12px;color:var(--faint);line-height:1.7}

/* 提示 */
#toast{position:fixed;left:50%;bottom:28px;transform:translateX(-50%);z-index:100;background:var(--ink);color:#fff;padding:12px 20px;border-radius:12px;box-shadow:var(--shadow-lg);font-size:14px;max-width:calc(100vw - 32px);animation:toast .25s ease-out}

/* 底部导航（手机） */
.bottom-nav{display:none}

/* 动效 */
@keyframes rise{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes pop{from{opacity:0;transform:scale(.97) translateY(4px)}to{opacity:1;transform:none}}
@keyframes toast{from{opacity:0;transform:translate(-50%,10px)}to{opacity:1;transform:translate(-50%,0)}}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.35}}
@keyframes ring{0%{opacity:.8;transform:scale(.92)}100%{opacity:0;transform:scale(1.15)}}
@keyframes spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

/* 平板 */
@media (max-width:900px){
  .detail,.detail.even{grid-template-columns:1fr}
  .auth{grid-template-columns:1fr}
  .auth-art{display:none}
  .auth .brand-sm{display:flex;margin-bottom:28px}
  .admin-stats{grid-template-columns:1fr 1fr}
}

/* 手机 */
@media (max-width:640px){
  body{font-size:15px}
  h1{font-size:22px}
  .topbar-in{height:56px;padding:0 16px;gap:12px}
  .topbar .tabs,#help{display:none}
  .choice .glyph{width:44px;height:44px;border-radius:14px}
  .brand small{display:none}
  .menu>summary .uname{display:none}
  .menu>summary{padding:3px}
  .page{padding:20px 16px 96px}
  .choices{grid-template-columns:1fr;gap:14px}
  .choice{min-height:0;padding:22px}
  .how{font-size:13px}
  .how .link-btn{margin-left:0}
  .resume{flex-wrap:wrap;padding:16px}
  .resume .btn{width:100%}
  .row{grid-template-columns:1fr auto;padding:14px 16px}
  .row .when{display:none}
  .status-hero{flex-direction:column;gap:14px;padding:22px}
  .status-hero .acts .btn{flex:1}
  .stepper li{font-size:11px}
  .card{padding:20px}
  .score{grid-template-columns:1fr;justify-items:center;text-align:center;gap:16px}
  .types{grid-template-columns:1fr}
  .seg{grid-template-columns:1fr}
  .modal-head{padding:20px 20px 0}
  .modal-body{padding:16px 20px 20px}
  dialog{max-height:calc(100vh - 16px)}
  .report{padding:24px 18px;border-radius:16px}
  .rp-head{flex-direction:column}
  .rp-head .right{text-align:left;justify-items:start}
  .rp-sum{grid-template-columns:1fr;justify-items:center;text-align:center}
  .kpis,.grid-facts{grid-template-columns:1fr 1fr}
  .vrow{grid-template-columns:1fr auto;gap:6px 12px}
  .vrow p{grid-column:1/-1}
  .admin-stats{gap:10px}
  .bottom-nav{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:30;background:rgba(232,236,229,.95);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);border-top:1px solid var(--line);padding:6px 8px calc(6px + env(safe-area-inset-bottom))}
  .bottom-nav button{flex:1;border:0;background:none;display:grid;justify-items:center;gap:2px;padding:6px 0;font-size:11.5px;color:var(--faint);border-radius:10px}
  .bottom-nav svg{width:22px;height:22px}
  .bottom-nav button.active{color:var(--green-ink);font-weight:650}
  #toast{bottom:86px}
}

/* 打印：A4 报告 */
@media print{
  @page{size:A4;margin:14mm 14mm 16mm}
  body{background:#fff;font-size:11.5pt}
  .topbar,.bottom-nav,.no-print,#toast,dialog,.report-bar,.back{display:none!important}
  .page{padding:0;max-width:none}
  .enter{animation:none}
  .report{border:0;box-shadow:none;padding:0;max-width:none;border-radius:0}
  .gauge .val{transition:none}
  .rp-sec,.verdicts,.vrow,.kpi,.timeline{break-inside:avoid}
  .kpi,.verdicts,.note,.final{-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .tl-bar,.tl-bar i,.rp-sec>h2 i,.gauge svg{-webkit-print-color-adjust:exact;print-color-adjust:exact}
  a{text-decoration:none;color:inherit}
}
