/* 华南虎科技 · 提示词训练营 —— 沿用“问问”的品牌色与组件口径：暖灰底、白卡片、华南虎蓝为唯一主色 */
:root {
  --bg: #f6f5f2; --card: #ffffff; --text: #1d1d1f; --muted: #6e6e73; --faint: #9a9aa0; --line: #e5e3de; --line2: #efede8;
  --accent: #1459a3; --accent-2: #0071b7; --accent-ink: #ffffff; --accent-soft: #e8f1fb; --accent-line: #c9dcf2;
  --brand-grad: linear-gradient(135deg, #2c3c8c 0%, #0071b7 55%, #0099dd 100%);
  --ok: #1f8a4c; --ok-soft: #e6f4ec; --warn: #a65a00; --warn-soft: #fff4e0; --bad: #c62828; --bad-soft: #fdecec;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 2px 10px rgba(0,0,0,.035);
  --radius: 12px; --side: 232px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121212; --card: #1c1c1e; --text: #f2f2f2; --muted: #a1a1a6; --faint: #7c7c82; --line: #333335; --line2: #2a2a2c;
    --accent: #4da3e8; --accent-2: #3fb3ec; --accent-ink: #0b1a2b; --accent-soft: #14273d; --accent-line: #24476e;
    --brand-grad: linear-gradient(135deg, #3d5bc4 0%, #1f8fd6 60%, #3fb3ec 100%);
    --ok: #5cc98a; --ok-soft: #173325; --warn: #f0b056; --warn-soft: #3a2c12; --bad: #ff7b7b; --bad-soft: #3d1c1c;
    --shadow: none; color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 15px/1.6 -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif; -webkit-text-size-adjust: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: .2px; }
svg.i { width: 18px; height: 18px; flex: none; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 13px; } .tiny { font-size: 12px; }
.num { font-variant-numeric: tabular-nums; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; } .grow { flex: 1; min-width: 0; }
.between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.stack > * + * { margin-top: 12px; }
.hide { display: none !important; }

/* ---------- 框架 ---------- */
.app { min-height: 100vh; }
.side { position: fixed; inset: 0 auto 0 0; width: var(--side); background: var(--card); border-right: 1px solid var(--line); display: flex; flex-direction: column; z-index: 10; }
.side .brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px; }
.side .brand img { width: 30px; height: 34px; }
.side .brand b { display: block; font-size: 16px; letter-spacing: 1px; }
.side .brand span { display: block; font-size: 11px; color: var(--muted); letter-spacing: .5px; }
.side nav { flex: 1; overflow-y: auto; padding: 4px 10px; }
.side .grp { font-size: 12px; color: var(--faint); padding: 14px 10px 6px; letter-spacing: .5px; }
.side nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; color: var(--text); font-size: 14px; text-decoration: none; position: relative; }
.side nav a svg { color: var(--muted); }
.side nav a:hover { background: var(--line2); }
.side nav a.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.side nav a.on svg { color: var(--accent); }
.side nav a .cnt { margin-left: auto; background: var(--bad); color: #fff; font-size: 11px; border-radius: 9px; padding: 0 6px; line-height: 18px; font-weight: 600; }
.side .me { border-top: 1px solid var(--line); padding: 12px 14px; display: flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-grad); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; flex: none; border: 0; cursor: pointer; }
.side .me .n { font-size: 14px; font-weight: 600; line-height: 1.3; }
.side .me .d { font-size: 12px; color: var(--muted); }
.iconbtn { border: 0; background: transparent; color: var(--muted); width: 32px; height: 32px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.iconbtn:hover { background: var(--line2); color: var(--text); }

.main { margin-left: var(--side); min-height: 100vh; }
.page { max-width: 1120px; margin: 0 auto; padding: 26px 32px 80px; }
.page.wide { max-width: 1360px; }
.ph { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.ph h1 { font-size: 22px; }
.ph .sub { color: var(--muted); font-size: 13px; margin-top: 4px; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 13px; margin-bottom: 8px; cursor: pointer; }
.back:hover { color: var(--accent); text-decoration: none; }

.tabbar { display: none; }
@media (max-width: 900px) {
  .side { display: none; }
  .main { margin-left: 0; }
  .page { padding: calc(14px + env(safe-area-inset-top)) 16px calc(96px + env(safe-area-inset-bottom)); }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--card); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { flex: 1; text-align: center; color: var(--muted); font-size: 11px; text-decoration: none; padding: 3px 0; }
  .tabbar a svg { display: block; margin: 0 auto 2px; width: 22px; height: 22px; }
  .tabbar a.on { color: var(--accent); }
  .mtop { display: flex !important; }
}
.mtop { display: none; align-items: center; gap: 10px; margin-bottom: 12px; }
.mtop img { width: 24px; height: 28px; } .mtop b { flex: 1; font-size: 16px; }

/* ---------- 卡片与区块 ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; }
.card + .card { margin-top: 14px; }
.card h2 { font-size: 16px; }
.card .hd { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.card .hd .x { font-size: 13px; color: var(--muted); }
.sec { margin: 26px 0 10px; display: flex; align-items: baseline; justify-content: space-between; }
.sec h2 { font-size: 16px; }
.grid { display: grid; gap: 14px; align-items: start; }
.grid.eq { align-items: stretch; }
.g2 { grid-template-columns: 1fr 1fr; } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
.g-side { grid-template-columns: minmax(0, 1fr) 360px; }
@media (max-width: 1100px) { .g-side { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .g2, .g3 { grid-template-columns: 1fr; } .g4 { grid-template-columns: 1fr 1fr; } }

.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.stat .k { font-size: 12px; color: var(--muted); }
.stat .v { font-size: 26px; font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums; letter-spacing: .5px; }
.stat .v small { font-size: 13px; color: var(--muted); font-weight: 400; margin-left: 4px; }

.notice { border-radius: 10px; padding: 10px 14px; font-size: 14px; background: var(--accent-soft); color: var(--accent); border: 1px solid var(--accent-line); }
.notice.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.notice.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }

/* 考核横幅：唯一的强调块，用品牌渐变 */
.hero { background: var(--brand-grad); color: #fff; border-radius: 14px; padding: 18px 22px; display: flex; align-items: center; gap: 18px; justify-content: space-between; flex-wrap: wrap; }
.hero .t { font-size: 17px; font-weight: 600; }
.hero .m { font-size: 13px; opacity: .88; margin-top: 3px; }
.hero .btn { background: #fff !important; color: #1459a3 !important; }

/* ---------- 按钮与表单 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 9px; padding: 9px 16px; background: var(--brand-grad); color: #fff; font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; text-decoration: none !important; }
.btn:hover { filter: brightness(1.05); }
.btn.ghost { background: var(--card); color: var(--text); border: 1px solid var(--line); font-weight: 500; }
.btn.ghost:hover { border-color: var(--accent-line); color: var(--accent); filter: none; }
.btn.plain { background: transparent; color: var(--accent); padding: 6px 8px; font-weight: 500; }
.btn.danger { background: transparent; color: var(--bad); border: 1px solid var(--bad); font-weight: 500; }
.btn.sm { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn.lg { padding: 12px 22px; font-size: 15px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: default; filter: none; }
label.f { display: block; margin: 12px 0 5px; font-size: 13px; color: var(--muted); }
label.f:first-child { margin-top: 0; }
.in, select.in, textarea.in { width: 100%; border: 1px solid var(--line); background: var(--card); border-radius: 9px; padding: 9px 12px; outline: none; transition: border-color .15s; }
.in:focus { border-color: var(--accent); }
textarea.in { resize: vertical; min-height: 100px; line-height: 1.65; }
.check { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; cursor: pointer; margin-right: 14px; }
.hint { font-size: 12px; color: var(--muted); margin-top: 5px; }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: var(--card); border-radius: 8px; padding: 5px 11px; font-size: 13px; cursor: pointer; color: var(--text); white-space: nowrap; }
.chip:hover { border-color: var(--accent-line); }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.chip .c { color: var(--faint); margin-left: 4px; font-size: 12px; } .chip.on .c { color: rgba(255,255,255,.75); }
.tag { display: inline-block; font-size: 12px; line-height: 20px; padding: 0 7px; border-radius: 5px; background: var(--line2); color: var(--muted); white-space: nowrap; }
.tag.acc { background: var(--accent-soft); color: var(--accent); }
.tag.ok { background: var(--ok-soft); color: var(--ok); } .tag.warn { background: var(--warn-soft); color: var(--warn); } .tag.bad { background: var(--bad-soft); color: var(--bad); }
.lv { font-size: 12px; color: var(--muted); letter-spacing: 1px; } .lv b { color: var(--accent); font-weight: 400; }

/* ---------- 列表 ---------- */
.list { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.li { display: flex; align-items: center; gap: 14px; padding: 13px 18px; border-top: 1px solid var(--line2); cursor: pointer; text-decoration: none !important; color: var(--text); }
.li:first-child { border-top: 0; }
.li:hover { background: #fafaf8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .li:hover { background: #222224; } }
.li .t { font-size: 15px; font-weight: 500; }
.li .m { font-size: 12px; color: var(--muted); margin-top: 2px; display: flex; gap: 10px; flex-wrap: wrap; }
.score { min-width: 46px; text-align: right; font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.score.s-ok { color: var(--ok); } .score.s-mid { color: var(--accent); } .score.s-low { color: var(--warn); } .score.s-bad { color: var(--bad); }
.score.none { font-size: 13px; color: var(--faint); font-weight: 400; }
.empty { text-align: center; color: var(--muted); padding: 40px 0; font-size: 14px; }

table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--card); }
table.t td { padding: 10px 12px; border-bottom: 1px solid var(--line2); vertical-align: top; }
table.t tr:last-child td { border-bottom: 0; }
table.t tr.click { cursor: pointer; } table.t tr.click:hover td { background: #fafaf8; }
.tablewrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }

/* ---------- 进度条（单色） ---------- */
.bars .b { display: grid; grid-template-columns: 76px 1fr 58px; gap: 10px; align-items: center; padding: 6px 0; font-size: 13px; }
.bars .b .n { color: var(--text); }
.bars .b .v { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.track { height: 8px; background: var(--line2); border-radius: 4px; overflow: hidden; }
.track i { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.track.thin { height: 6px; }

/* ---------- 答题页 ---------- */
.work { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 1100px) { .work { grid-template-columns: 1fr; } }
.scene { padding: 20px 22px; }
.scene .lbl { font-size: 12px; color: var(--muted); letter-spacing: 1px; margin-bottom: 6px; }
.scene .task { margin-top: 16px; background: var(--accent-soft); border-radius: 10px; padding: 12px 14px; color: var(--accent); font-weight: 500; font-size: 14px; }
.mats { margin: 10px 0 0; padding: 0; list-style: none; }
.mats li { padding: 6px 0 6px 22px; position: relative; font-size: 14px; border-top: 1px dashed var(--line); }
.mats li:first-child { border-top: 0; }
.mats li::before { content: ''; position: absolute; left: 4px; top: 13px; width: 8px; height: 10px; border: 1.5px solid var(--faint); border-radius: 2px; }
.editor { position: sticky; top: 18px; padding: 16px 18px; }
.editor textarea { min-height: 380px; font-size: 15px; border-radius: 10px; }
.editor .bar { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.mic { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--card); color: var(--text); border-radius: 9px; padding: 8px 12px; cursor: pointer; font-size: 14px; }
.mic:hover { border-color: var(--accent-line); color: var(--accent); }
.mic.rec { background: var(--bad); border-color: var(--bad); color: #fff; animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(198,40,40,.14); } }
.interim { display: none; margin-top: 8px; font-size: 14px; color: var(--muted); background: var(--line2); border-radius: 8px; padding: 8px 10px; }
.interim.on { display: block; }
.elements { margin-top: 12px; border-top: 1px solid var(--line2); padding-top: 10px; }
.elements summary { cursor: pointer; font-size: 13px; color: var(--muted); list-style: none; }
.elements summary::-webkit-details-marker { display: none; }
.elements .el { display: grid; grid-template-columns: 26px 1fr; gap: 6px; font-size: 13px; padding: 5px 0; }
.elements .el b { display: inline-flex; width: 22px; height: 22px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); align-items: center; justify-content: center; font-size: 12px; }
.timer { font-variant-numeric: tabular-nums; font-size: 13px; color: var(--muted); }

/* ---------- 评分结果 ---------- */
.result-top { display: grid; grid-template-columns: 170px 1fr; gap: 20px; align-items: center; }
@media (max-width: 700px) { .result-top { grid-template-columns: 1fr; } }
.big { text-align: center; }
.big .n { font-size: 60px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.big .g { margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--accent); }
.big .of { font-size: 13px; color: var(--muted); }
.summary { font-size: 16px; line-height: 1.7; }
.versions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; align-items: center; }
.versions a { font-size: 12px; border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; color: var(--muted); text-decoration: none; }
.versions a.on { border-color: var(--accent); color: var(--accent); font-weight: 600; }
.dimrow { display: grid; grid-template-columns: 88px 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line2); }
.dimrow:first-child { border-top: 0; padding-top: 0; }
.dimrow .h { font-size: 14px; font-weight: 600; }
.dimrow .s { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.dimrow .c { font-size: 14px; margin-top: 6px; color: var(--text); }
.kp { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line2); font-size: 14px; }
.kp:first-child { border-top: 0; padding-top: 0; }
.kp .st { width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; margin-top: 2px; }
.kp .st.hit { background: var(--ok-soft); color: var(--ok); } .kp .st.partial { background: var(--warn-soft); color: var(--warn); } .kp .st.miss { background: var(--bad-soft); color: var(--bad); }
.kp .ev { font-size: 13px; color: var(--muted); margin-top: 3px; }
.imp { padding: 12px 0; border-top: 1px solid var(--line2); }
.imp:first-child { border-top: 0; padding-top: 0; }
.imp .h { font-weight: 600; font-size: 14px; }
.imp .d { font-size: 14px; margin-top: 4px; }
.quote { margin-top: 8px; border-left: 3px solid var(--accent); background: var(--accent-soft); padding: 8px 12px; border-radius: 0 8px 8px 0; font-size: 14px; color: var(--text); white-space: pre-wrap; }
.prompt { white-space: pre-wrap; font-size: 14px; line-height: 1.75; background: var(--bg); border: 1px solid var(--line2); border-radius: 10px; padding: 14px 16px; max-height: 560px; overflow-y: auto; }
.seg { display: inline-flex; background: var(--line2); border-radius: 9px; padding: 3px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 5px 12px; border-radius: 7px; font-size: 13px; cursor: pointer; color: var(--muted); }
.seg button.on { background: var(--card); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,.08); font-weight: 600; }
.why li { margin: 6px 0; font-size: 14px; }

.grading { text-align: center; padding: 50px 20px; }
.grading .ring { width: 54px; height: 54px; border-radius: 50%; border: 4px solid var(--accent-soft); border-top-color: var(--accent); animation: sp 1s linear infinite; margin: 0 auto 18px; }
@keyframes sp { to { transform: rotate(360deg); } }
.steps { display: inline-flex; flex-direction: column; gap: 8px; text-align: left; margin-top: 16px; }
.steps div { font-size: 14px; color: var(--faint); display: flex; align-items: center; gap: 8px; }
.steps div.on { color: var(--text); } .steps div.done { color: var(--ok); }
.spin { display: inline-block; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: sp .8s linear infinite; vertical-align: -2px; }

/* 教练对话 */
.chat .msg { margin: 12px 0; display: flex; }
.chat .msg.user { justify-content: flex-end; }
.chat .bubble { max-width: 86%; padding: 10px 14px; border-radius: 12px; font-size: 14px; }
.chat .msg.user .bubble { background: var(--accent); color: #fff; border-bottom-right-radius: 4px; white-space: pre-wrap; }
.chat .msg.ai .bubble { background: var(--bg); border: 1px solid var(--line2); border-bottom-left-radius: 4px; }
.chat .inbar { display: flex; gap: 8px; margin-top: 10px; align-items: flex-end; }
.chat .inbar textarea { min-height: 44px; height: 44px; max-height: 160px; }

/* Markdown */
.md { font-size: 15px; line-height: 1.8; }
.md h1 { font-size: 22px; margin: 4px 0 14px; } .md h2 { font-size: 18px; margin: 26px 0 10px; } .md h3 { font-size: 16px; margin: 20px 0 8px; } .md h4 { font-size: 15px; margin: 16px 0 6px; }
.md p { margin: 8px 0; } .md ul, .md ol { padding-left: 22px; margin: 8px 0; } .md li { margin: 3px 0; }
.md table { border-collapse: collapse; font-size: 14px; margin: 10px 0; width: 100%; }
.md th, .md td { border: 1px solid var(--line); padding: 7px 10px; text-align: left; vertical-align: top; }
.md th { background: var(--accent-soft); font-weight: 600; }
.md code { background: var(--line2); padding: 1px 5px; border-radius: 4px; font-size: 13px; }
.md pre { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; white-space: pre-wrap; font-size: 14px; line-height: 1.7; font-family: inherit; }
.md pre.bad { border-left: 3px solid var(--bad); } .md pre.good { border-left: 3px solid var(--ok); }
.md blockquote { margin: 10px 0; padding: 8px 14px; border-left: 3px solid var(--accent); background: var(--accent-soft); border-radius: 0 8px 8px 0; }
.md hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }
.scene .md { font-size: 15px; }

/* 学习中心 */
.learn { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 900px) { .learn { grid-template-columns: 1fr; } }
.toc { position: sticky; top: 18px; padding: 8px; }
.toc a { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 8px; color: var(--text); font-size: 14px; text-decoration: none; }
.toc a:hover { background: var(--line2); }
.toc a.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.toc a .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--line); flex: none; }
.toc a .dot.read { background: var(--ok); }

/* 考试 */
.examtop { position: sticky; top: 0; z-index: 8; background: var(--bg); padding: 10px 0; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); margin-bottom: 14px; flex-wrap: wrap; }
.examtop .clock { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--accent); }
.examtop .clock.low { color: var(--bad); }
.qtabs { display: flex; gap: 6px; }
.qtabs button { width: 36px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); cursor: pointer; font-weight: 600; position: relative; }
.qtabs button.on { border-color: var(--accent); color: var(--accent); }
.qtabs button.done::after { content: ''; position: absolute; right: 4px; top: 4px; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }

/* 登录 */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
@media (max-width: 900px) { .login-wrap { grid-template-columns: 1fr; } .login-art { display: none !important; } }
.login-art { background: var(--brand-grad); color: #fff; padding: 56px 64px; display: flex; flex-direction: column; justify-content: space-between; }
.login-art .logo { width: 210px; background: #fff; border-radius: 12px; padding: 10px 14px; }
.login-art h2 { font-size: 30px; margin: 0 0 14px; letter-spacing: 2px; }
.login-art p { font-size: 15px; opacity: .9; line-height: 1.9; max-width: 460px; margin: 0; }
.login-art .els { display: grid; grid-template-columns: repeat(7, auto); justify-content: start; gap: 10px; margin-top: 28px; }
.login-art .els span { width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.45); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 16px; }
.login-art .foot { font-size: 12px; opacity: .75; }
.login-box { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.login-box .inner { width: 100%; max-width: 360px; }
.login-box h1 { font-size: 22px; margin-bottom: 4px; }
.login-box .mlogo { display: none; width: 180px; margin-bottom: 18px; }
@media (max-width: 900px) { .login-box .mlogo { display: block; } }

/* 弹层与提示 */
.sheet-bg { position: fixed; inset: 0; background: rgba(15,20,30,.38); z-index: 40; display: flex; align-items: center; justify-content: center; padding: 16px; }
.sheet { background: var(--card); width: 100%; max-width: 560px; max-height: 88vh; overflow-y: auto; border-radius: 14px; padding: 20px 22px; box-shadow: 0 12px 40px rgba(0,0,0,.18); }
.sheet.wide { max-width: 860px; }
.sheet h2 { font-size: 18px; margin-bottom: 12px; }
#toast { position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 9px 18px; border-radius: 10px; font-size: 14px; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 60; max-width: 88vw; text-align: center; }
#toast.show { opacity: 1; }
@media (max-width: 900px) { #toast { bottom: calc(86px + env(safe-area-inset-bottom)); } }
.kpedit { display: grid; grid-template-columns: 1fr 120px 80px 32px; gap: 6px; margin-bottom: 6px; }
.pw { font-family: Consolas, Menlo, monospace; background: var(--line2); padding: 2px 8px; border-radius: 6px; }
