/* ====== MATLAB 交付平台 · 用户端 + 管理端共用样式 ======
   主题：白 + 淡蓝，阳光活泼；终端日志区保留深色（控制台质感） */
:root {
  --bg: #f4f9ff;
  --bg2: #ffffff;
  --bg3: #eaf3fe;
  --border: #dce9f8;
  --text: #18324b;
  --text2: #6286a8;
  --accent: #2b8aff;
  --accent2: #1677ff;
  --sky: #4fc3f7;
  --green: #16a34a;
  --orange: #ea9012;
  --red: #e5484d;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --radius: 14px;
  --shadow: 0 2px 12px rgba(43, 138, 255, .07);
  --shadow-lg: 0 10px 32px rgba(43, 138, 255, .14);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background:
    radial-gradient(1200px 500px at 85% -100px, rgba(79,195,247,.14), transparent 70%),
    radial-gradient(900px 420px at -10% 0, rgba(43,138,255,.10), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 15px; line-height: 1.65;
}
a { color: var(--accent); text-decoration: none; }
button { font-family: inherit; }
::selection { background: rgba(43,138,255,.2); }

/* ---- 全局过渡动画 ---- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fadein { from { opacity: 0; transform: translateY(3px); } }
@keyframes popIn { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.card, .hero, .feature-card, .flow-card, .stat-card { animation: fadeUp .45s cubic-bezier(.2,.7,.3,1) both; }
.card:nth-child(2) { animation-delay: .05s; } .card:nth-child(3) { animation-delay: .1s; }

/* ---- 骨架屏（页面加载占位，杜绝白屏/文字闪烁） ---- */
@keyframes shimmerBg { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.skeleton { border-radius: 10px; background: linear-gradient(90deg, var(--bg3) 25%, #f3f8ff 50%, var(--bg3) 75%); background-size: 200% 100%; animation: shimmerBg 1.4s linear infinite; }
.skel-card { background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; margin-bottom: 20px; box-shadow: var(--shadow); }

/* ---- 慢任务"活着"指示：蠕动进度条 + 轮换提示 + 计时 ---- */
.creep-wrap { background: var(--bg3); border-radius: 20px; height: 8px; overflow: hidden; margin: 14px 0 6px; }
.creep-bar {
  height: 100%; border-radius: 20px; width: 4%;
  background: linear-gradient(90deg, var(--accent2), var(--sky));
  transition: width 1.2s ease;
}
.hint-rotator { min-height: 20px; font-size: 13px; color: var(--text2); }
.hint-rotator .hint { animation: fadein .5s; display: inline-block; }
.elapsed { font-variant-numeric: tabular-nums; color: var(--text2); font-size: 12.5px; }

/* ---- 线条图标（替代 emoji，产品化） ---- */
.licon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: rgba(43,138,255,.1); margin-bottom: 12px; }
.licon svg { width: 20px; height: 20px; stroke: var(--accent2); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.licon.warm { background: rgba(255,170,50,.12); } .licon.warm svg { stroke: #d27c00; }

/* ---- 课程领域标签 ---- */
.domain-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.domain-tags span { font-size: 12.5px; padding: 4px 14px; border-radius: 20px; background: #fff; border: 1px solid var(--border); color: var(--text2); }

/* ---- 案例页 ---- */
.case-card { display: flex; gap: 22px; align-items: flex-start; }
.case-card img { width: 320px; max-width: 42%; border-radius: 10px; border: 1px solid var(--border); flex: none; }
.case-meta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
.case-meta span { font-size: 12.5px; color: var(--text2); background: var(--bg3); padding: 3px 10px; border-radius: 6px; }
pre.logbox { background: #10243a; color: #c9e3f8; border-radius: 10px; padding: 14px 16px; font-family: var(--mono); font-size: 12px; overflow-x: auto; line-height: 1.6; white-space: pre-wrap; }
@media (max-width: 720px) { .case-card { flex-direction: column; } .case-card img { max-width: 100%; width: 100%; } }

/* ---- 文件树展示 ---- */
.filetree { font-family: var(--mono); font-size: 12.5px; line-height: 1.9; background: #fbfdff; border: 1px solid var(--border); border-radius: 10px; padding: 16px 20px; }
.filetree b { color: var(--accent2); font-weight: 600; }
.filetree .note { color: var(--text2); font-family: inherit; }

/* ---- 法务/长文页 ---- */
.legal-doc { max-width: 760px; margin: 0 auto; }
.legal-doc h1 { font-size: 24px; margin: 10px 0 18px; }
.legal-doc h2 { font-size: 17px; margin: 22px 0 8px; }
.legal-doc h3 { font-size: 15px; margin: 16px 0 6px; }
.legal-doc p, .legal-doc li { font-size: 14px; color: #2a4258; line-height: 1.85; }
.legal-doc ul, .legal-doc ol { padding-left: 22px; margin: 6px 0; }
.legal-doc strong { color: var(--text); }

/* ---- 全局页脚（多栏） ---- */
.site-footer { border-top: 1px solid var(--border); background: rgba(255,255,255,.7); margin-top: 40px; }
.site-footer .cols { max-width: 1020px; margin: 0 auto; padding: 36px 20px 20px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.site-footer h4 { font-size: 14px; margin-bottom: 10px; }
.site-footer a { display: block; font-size: 13px; color: var(--text2); padding: 3px 0; }
.site-footer a:hover { color: var(--accent2); }
.site-footer .brand { font-weight: 800; font-size: 16px; margin-bottom: 8px; }
.site-footer .brand span { color: var(--accent2); }
.site-footer .desc { font-size: 12.5px; color: var(--text2); line-height: 1.7; }
.site-footer .bottom { text-align: center; font-size: 12px; color: var(--text2); padding: 14px; border-top: 1px solid var(--border); }
@media (max-width: 720px) { .site-footer .cols { grid-template-columns: 1fr 1fr; } }

/* ---- 协议勾选 ---- */
.agree-row { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--text2); margin: 4px 0 12px; }
.agree-row input { margin-top: 3px; accent-color: var(--accent); }

/* ---- 布局 ---- */
.topbar {
  display: flex; align-items: center; gap: 16px;
  padding: 0 24px; height: 58px;
  background: rgba(255,255,255,.82); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.topbar .logo { font-weight: 800; font-size: 17px; letter-spacing: .3px; cursor: pointer; }
.topbar .logo span { background: linear-gradient(120deg, var(--accent2), var(--sky)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.topbar .spacer { flex: 1; }
.topbar .pub-nav { display: flex; gap: 4px; margin-left: 14px; }
.topbar .pub-nav a { color: var(--text2); font-size: 13.5px; padding: 6px 10px; border-radius: 8px; }
.topbar .pub-nav a:hover { color: var(--accent2); background: var(--bg3); }
@media (max-width: 640px) { .topbar .pub-nav { display: none; } }
.topbar .user-email { color: var(--text2); font-size: 13px; }
.container { max-width: 1080px; margin: 0 auto; padding: 28px 20px 80px; }
.hidden { display: none !important; }

/* ---- 卡片 / 表单 ---- */
.card {
  background: var(--bg2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px; margin-bottom: 20px;
  box-shadow: var(--shadow);
  transition: box-shadow .25s;
}
.card h2 { font-size: 19px; margin-bottom: 14px; }
.card h3 { font-size: 15px; margin: 16px 0 8px; }
label.fld { display: block; margin-bottom: 14px; }
label.fld .lbl { display: block; font-size: 13px; color: var(--text2); margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=number], textarea, select {
  width: 100%; padding: 10px 13px; border-radius: 10px;
  border: 1.5px solid var(--border); background: #fbfdff; color: var(--text);
  font-size: 14px; font-family: inherit; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, textarea:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(43,138,255,.12); }
textarea { resize: vertical; min-height: 90px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 10px; border: 1.5px solid var(--border);
  background: #fff; color: var(--text); font-size: 14px; cursor: pointer;
  transition: all .18s; box-shadow: 0 1px 3px rgba(24,50,75,.05);
}
.btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(43,138,255,.15); }
.btn.primary {
  background: linear-gradient(120deg, var(--accent2), var(--accent));
  border-color: transparent; color: #fff; font-weight: 600;
}
.btn.primary:hover { filter: brightness(1.08); color: #fff; box-shadow: 0 6px 18px rgba(43,138,255,.35); }
.btn.danger { color: var(--red); }
.btn.danger:hover { border-color: var(--red); }
.btn.sm { padding: 5px 12px; font-size: 13px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.muted { color: var(--text2); font-size: 13px; }
.error-text { color: var(--red); font-size: 13px; margin-top: 8px; white-space: pre-wrap; }

/* ---- 落地页 ---- */
.hero { padding: 56px 20px 46px; max-width: 1060px; margin: 0 auto; }
.hero-grid { display: flex; align-items: center; gap: 36px; text-align: left; }
.hero-left { flex: 1.15; }
.hero-img {
  flex: 1; min-width: 0; max-width: 460px; width: 42%;
  border-radius: 20px; box-shadow: var(--shadow-lg);
  animation: fadeUp .6s .15s cubic-bezier(.2,.7,.3,1) both;
}
.hero-grid .hero-cta { justify-content: flex-start; }
@media (max-width: 860px) { .hero-grid { flex-direction: column; text-align: center; } .hero-grid .hero-cta { justify-content: center; } .hero-img { width: 86%; } }
.hero-badge {
  display: inline-block; padding: 5px 16px; border-radius: 30px; font-size: 13px;
  background: rgba(43,138,255,.1); color: var(--accent2); border: 1px solid rgba(43,138,255,.25);
  margin-bottom: 20px; animation: popIn .5s both;
}
.hero h1 { font-size: 42px; line-height: 1.25; font-weight: 800; letter-spacing: .5px; }
.hero h1 .grad { background: linear-gradient(120deg, var(--accent2), var(--sky)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.sub { color: var(--text2); font-size: 17px; margin: 16px auto 30px; max-width: 560px; }
.hero-cta { display: flex; gap: 14px; justify-content: center; }
.hero-cta .btn { font-size: 16px; padding: 13px 32px; border-radius: 12px; }
.hero-stats { display: flex; gap: 36px; justify-content: center; margin-top: 38px; flex-wrap: wrap; }
.hero-stats .hs .v { font-size: 24px; font-weight: 800; color: var(--accent2); }
.hero-stats .hs .k { font-size: 12.5px; color: var(--text2); }

.land-section { max-width: 1020px; margin: 0 auto; padding: 34px 20px; }
.land-section > h2 { text-align: center; font-size: 26px; margin-bottom: 6px; }
.land-section > p.sec-sub { text-align: center; color: var(--text2); margin-bottom: 28px; }

.flow-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.flow-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; position: relative; box-shadow: var(--shadow); transition: all .25s;
}
.flow-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(43,138,255,.4); }
.flow-card .num {
  width: 30px; height: 30px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(120deg, var(--accent2), var(--sky)); color: #fff; font-weight: 700; margin-bottom: 12px;
}
.flow-card b { display: block; margin-bottom: 6px; font-size: 15px; }
.flow-card span { font-size: 13px; color: var(--text2); }

.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.feature-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); transition: all .25s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-card .ico { font-size: 26px; margin-bottom: 10px; }
.feature-card b { display: block; margin-bottom: 6px; }
.feature-card span { font-size: 13px; color: var(--text2); }

.price-band {
  background: linear-gradient(120deg, rgba(22,119,255,.08), rgba(79,195,247,.12));
  border: 1px solid rgba(43,138,255,.25); border-radius: 18px; padding: 30px;
  display: flex; gap: 30px; align-items: center; flex-wrap: wrap; justify-content: center;
}
.price-band .big { font-size: 38px; font-weight: 800; color: var(--accent2); }
.price-band ul { list-style: none; font-size: 14px; color: var(--text2); }
.price-band ul li::before { content: "✓ "; color: var(--green); font-weight: 700; }

.faq details {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 12px;
  padding: 14px 20px; margin-bottom: 10px; box-shadow: var(--shadow);
}
.faq summary { cursor: pointer; font-weight: 600; font-size: 14.5px; list-style: none; }
.faq summary::before { content: "＋ "; color: var(--accent); }
.faq details[open] summary::before { content: "－ "; }
.faq details p { color: var(--text2); font-size: 13.5px; margin-top: 8px; }

.land-footer { text-align: center; color: var(--text2); font-size: 13px; padding: 40px 0 30px; border-top: 1px solid var(--border); margin-top: 30px; }

/* ---- 认证页 ---- */
.auth-wrap { max-width: 420px; margin: 6vh auto 0; animation: fadeUp .4s both; }
.auth-hero { text-align: center; margin-bottom: 28px; }
.auth-hero h1 { font-size: 26px; margin-bottom: 8px; }
.auth-hero h1 span { color: var(--accent); }
.auth-hero p { color: var(--text2); font-size: 14px; }
.tabs { display: flex; border-bottom: 1.5px solid var(--border); margin-bottom: 18px; }
.tabs .tab {
  padding: 10px 18px; cursor: pointer; color: var(--text2);
  border-bottom: 2px solid transparent; font-size: 14px; transition: color .2s;
}
.tabs .tab.active { color: var(--accent2); border-bottom-color: var(--accent); font-weight: 600; }

/* ---- 订单列表 ---- */
table.list { width: 100%; border-collapse: collapse; font-size: 14px; }
table.list th, table.list td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--border); }
table.list th { color: var(--text2); font-weight: 500; font-size: 12px; }
table.list tr.clickable { cursor: pointer; transition: background .15s; }
table.list tr.clickable:hover { background: var(--bg3); }
.badge {
  display: inline-block; padding: 2px 10px; border-radius: 20px;
  font-size: 12px; background: var(--bg3); border: 1px solid var(--border);
}
.badge.b-running, .badge.b-parsing, .badge.b-planning, .badge.b-rework_planning { color: var(--accent2); border-color: var(--accent); background: rgba(43,138,255,.08); }
.badge.b-completed { color: var(--green); border-color: var(--green); background: rgba(22,163,74,.08); }
.badge.b-failed, .badge.b-cancelled { color: var(--red); border-color: var(--red); background: rgba(229,72,77,.07); }
.badge.b-clarify_pending, .badge.b-plan_ready, .badge.b-awaiting_payment { color: var(--orange); border-color: var(--orange); background: rgba(234,144,18,.08); }
.badge.b-queued { color: var(--text2); }

/* ---- 步骤条 ---- */
.stepper { display: flex; gap: 4px; margin-bottom: 24px; overflow-x: auto; }
.step { flex: 1; min-width: 86px; text-align: center; position: relative; padding-top: 26px; font-size: 12px; color: var(--text2); }
.step::before {
  content: attr(data-n); position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 22px; height: 22px; line-height: 22px; border-radius: 50%;
  background: #fff; border: 1.5px solid var(--border); font-size: 11px; transition: all .3s;
}
.step::after {
  content: ""; position: absolute; top: 11px; left: calc(50% + 14px); right: calc(-50% + 14px);
  height: 2px; background: var(--border); border-radius: 2px;
}
.step:last-child::after { display: none; }
.step.done { color: var(--green); }
.step.done::before { content: "✓"; background: rgba(22,163,74,.1); border-color: var(--green); color: var(--green); }
.step.done::after { background: rgba(22,163,74,.35); }
.step.now { color: var(--accent2); font-weight: 600; }
.step.now::before { border-color: var(--accent); color: var(--accent2); box-shadow: 0 0 0 5px rgba(43,138,255,.15); }

/* ---- 逐题澄清（一次一题 + 渐变过渡） ---- */
.quiz-wrap { max-width: 640px; margin: 0 auto; }
.quiz-dots { display: flex; gap: 8px; justify-content: center; margin-bottom: 18px; }
.quiz-dots .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--border); transition: all .3s; cursor: pointer;
}
.quiz-dots .dot.done { background: var(--green); }
.quiz-dots .dot.active { background: var(--accent); transform: scale(1.35); box-shadow: 0 0 0 4px rgba(43,138,255,.18); }
.quiz-card {
  background: var(--bg2); border: 1px solid var(--border); border-radius: 16px;
  padding: 28px; box-shadow: var(--shadow-lg);
  transition: opacity .28s ease, transform .28s ease;
}
.quiz-card.leave { opacity: 0; transform: translateX(-26px); }
.quiz-card.enter { opacity: 0; transform: translateX(26px); transition: none; }
.quiz-card .q-tag { font-size: 12px; color: var(--accent2); background: rgba(43,138,255,.1); display: inline-block; padding: 2px 10px; border-radius: 20px; margin-bottom: 12px; }
.quiz-card .q { font-weight: 700; font-size: 17px; margin-bottom: 6px; }
.quiz-card .why { font-size: 13px; color: var(--text2); margin-bottom: 16px; }
.quiz-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; }

/* ---- 终端日志（保留深色控制台质感） ---- */
.terminal {
  background: #10243a; border: 1px solid #1d3a57; border-radius: 12px;
  font-family: var(--mono); font-size: 12.5px; padding: 14px 16px;
  max-height: 320px; overflow-y: auto; line-height: 1.7; color: #d5e6f5;
}
.terminal .tl { animation: fadein .3s; white-space: pre-wrap; word-break: break-all; }
.terminal .tl .ts { color: #51718e; margin-right: 8px; }
.terminal .tl.t-error { color: #ff8e91; }
.terminal .tl.t-tick { color: #7fa8c9; }
.terminal .tl.t-escalation, .terminal .tl.t-api { color: #ffc56e; }
.terminal .tl.t-status { color: #6ee7a0; }
.terminal .tl.t-user, .terminal .tl.t-reply { color: #7cc4ff; }
.terminal .cursor::after { content: "▋"; animation: blink 1s infinite; color: #7cc4ff; }
@keyframes blink { 50% { opacity: 0; } }

/* ---- 进度条 ---- */
.progress-wrap { background: var(--bg3); border-radius: 20px; height: 14px; overflow: hidden; margin: 12px 0; }
.progress-bar {
  height: 100%; border-radius: 20px; width: 0%;
  background: linear-gradient(90deg, var(--accent2), var(--sky), var(--accent));
  background-size: 200% 100%; animation: shimmer 2s linear infinite;
  transition: width .6s ease;
}
@keyframes shimmer { to { background-position: -200% 0; } }
.queue-banner {
  display: flex; align-items: center; gap: 12px;
  background: rgba(234,144,18,.07); border: 1px solid rgba(234,144,18,.35);
  border-radius: 12px; padding: 12px 16px; margin-bottom: 14px; font-size: 14px;
}
.spinner {
  width: 16px; height: 16px; border: 2px solid var(--border);
  border-top-color: var(--accent); border-radius: 50%;
  animation: spin .8s linear infinite; flex: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- 澄清通用选项 ---- */
.clarify-item { border: 1px solid var(--border); border-radius: 12px; padding: 16px; margin-bottom: 14px; background: #fbfdff; }
.clarify-item .q { font-weight: 600; margin-bottom: 4px; }
.clarify-item .why { font-size: 12.5px; color: var(--text2); margin-bottom: 10px; }
.opt { display: flex; align-items: flex-start; gap: 8px; padding: 9px 12px; border-radius: 10px; cursor: pointer; border: 1.5px solid transparent; transition: all .18s; }
.opt:hover { background: var(--bg3); }
.opt.selected { border-color: var(--accent); background: rgba(43,138,255,.07); }
.opt input { margin-top: 5px; accent-color: var(--accent); }
.opt.custom input[type=text] { margin-top: 0; }

/* ---- 方案 / 交付清单 ---- */
.plan-summary { background: rgba(43,138,255,.06); border: 1px solid rgba(43,138,255,.25); border-radius: 12px; padding: 16px; margin-bottom: 16px; white-space: pre-wrap; }
.plan-step { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.plan-step > summary { padding: 12px 16px; cursor: pointer; background: #fbfdff; font-weight: 600; font-size: 14px; list-style: none; display: flex; justify-content: space-between; }
.plan-step > summary::after { content: "▾"; color: var(--text2); }
.plan-step[open] > summary::after { content: "▴"; }
.plan-step .body { padding: 12px 16px; font-size: 13.5px; border-top: 1px solid var(--border); }
.plan-step .body ul { padding-left: 20px; }
.deliv-table { width: 100%; font-size: 13.5px; border-collapse: collapse; }
.deliv-table td { padding: 7px 10px; border-bottom: 1px solid var(--border); }
.deliv-table tr.locked { opacity: .5; }
.deliv-table .kind { font-family: var(--mono); font-size: 11px; color: var(--text2); }
.file-icon { display: inline-block; width: 34px; text-align: center; font-family: var(--mono); font-size: 10px; padding: 2px 0; border-radius: 5px; background: var(--bg3); margin-right: 8px; }
.fi-code { color: #1677ff; } .fi-fig { color: #9254de; } .fi-png { color: #389e0d; }
.fi-data { color: #d46b08; } .fi-doc { color: #096dd9; } .fi-log { color: #8c8c8c; }
.fi-package { color: #d4380d; }

/* ---- 报价卡 ---- */
.price-card { border: 1px solid var(--border); border-radius: 12px; padding: 16px; background: #fbfdff; }
.price-line { display: flex; justify-content: space-between; font-size: 13.5px; padding: 3px 0; color: var(--text2); }
.price-line.total { color: var(--text); font-size: 18px; font-weight: 700; border-top: 1px solid var(--border); margin-top: 8px; padding-top: 10px; }
.price-line.total .amount { color: var(--accent2); }

/* ---- 弹窗 ---- */
.modal-mask {
  position: fixed; inset: 0; background: rgba(24,50,75,.35); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px;
  animation: fadein .2s;
}
.modal { background: #fff; border: 1px solid var(--border); border-radius: 18px; max-width: 640px; width: 100%; max-height: 86vh; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: popIn .25s both; }
.modal .m-head { padding: 16px 22px; border-bottom: 1px solid var(--border); font-weight: 700; display: flex; justify-content: space-between; }
.modal .m-head .x { cursor: pointer; color: var(--text2); }
.modal .m-body { padding: 18px 22px; overflow-y: auto; }
.modal .m-foot { padding: 14px 22px; border-top: 1px solid var(--border); display: flex; gap: 10px; justify-content: flex-end; }
.agreement-text { font-size: 13px; color: var(--text2); white-space: pre-wrap; max-height: 320px; overflow-y: auto; background: #fbfdff; border: 1px solid var(--border); border-radius: 10px; padding: 14px; }
.pay-amount { text-align: center; font-size: 34px; font-weight: 800; color: var(--accent2); margin: 10px 0; }
.pay-qr { width: 180px; height: 180px; margin: 0 auto 12px; border: 1.5px dashed var(--border); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--text2); font-size: 12px; text-align: center; padding: 12px; background: #fbfdff; }

/* ---- 系统路由器繁忙横幅 ---- */
.router-banner {
  position: sticky; top: 58px; z-index: 49;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 8px 18px; font-size: 13.5px;
  background: rgba(255,170,50,.13); color: #8a5300;
  border-bottom: 1px solid rgba(234,144,18,.35);
  animation: fadein .3s;
}
.router-banner .spinner { border-top-color: var(--orange); width: 14px; height: 14px; }

/* ---- 智能体编排 TodoList 面板 ---- */
.agent-panel {
  background: linear-gradient(120deg, rgba(146,84,222,.06), rgba(43,138,255,.07));
  border: 1px solid rgba(146,84,222,.3); border-radius: 12px;
  padding: 14px 18px; margin: 14px 0; animation: fadeUp .35s both;
}
.agent-head { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.agent-step { font-size: 13.5px; padding: 4px 0; color: var(--text2); transition: all .3s; }
.agent-step.st-done { color: var(--green); }
.agent-step.st-doing { color: var(--accent2); font-weight: 600; }
.agent-step.st-failed { color: var(--red); }

/* ---- 个人中心：余额 / 充值 ---- */
.balance-card {
  display: flex; justify-content: space-between; align-items: center;
  background: linear-gradient(120deg, rgba(22,119,255,.10), rgba(79,195,247,.16));
  border-color: rgba(43,138,255,.3);
}
.balance-num { font-size: 40px; font-weight: 800; color: var(--accent2); line-height: 1.2; }
.tier-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; }
.tier-card {
  position: relative; text-align: center; padding: 22px 10px 16px;
  border: 1.5px solid var(--border); border-radius: 14px; cursor: pointer;
  background: #fbfdff; transition: all .2s; overflow: hidden;
}
.tier-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.tier-card.has-bonus { border-color: rgba(234,144,18,.45); }
.tier-amount { font-size: 26px; font-weight: 800; color: var(--accent2); }
.tier-get { font-size: 12.5px; color: var(--text2); margin-top: 4px; }
.tier-card.has-bonus .tier-get { color: var(--orange); font-weight: 600; }
.bonus-ribbon {
  position: absolute; top: 10px; right: -26px; transform: rotate(38deg);
  background: linear-gradient(120deg, #ff9a3d, #ff6b6b); color: #fff;
  font-size: 11px; font-weight: 700; padding: 2px 28px;
}
.promo-tag {
  display: inline-block; font-size: 12.5px; color: #b25e00;
  background: rgba(255,170,50,.14); border: 1px solid rgba(234,144,18,.4);
  padding: 2px 12px; border-radius: 20px; margin-left: 8px; font-weight: 500;
}
.pay-split { font-size: 14px; color: var(--text2); margin-top: 8px; }
.pay-promo {
  margin-top: 12px; font-size: 13px; padding: 9px 14px; border-radius: 10px;
  background: rgba(255,170,50,.1); border: 1px solid rgba(234,144,18,.35); color: #9a5b00;
}

/* ---- 上传区 ---- */
.dropzone {
  border: 2px dashed rgba(43,138,255,.35); border-radius: 14px; padding: 30px; text-align: center;
  color: var(--text2); cursor: pointer; transition: all .2s; font-size: 14px; background: rgba(43,138,255,.03);
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent); color: var(--text); background: rgba(43,138,255,.08); transform: scale(1.005); }
.dropzone .big { font-size: 30px; margin-bottom: 6px; }

/* ---- 管理端 ---- */
.admin-layout { display: flex; min-height: calc(100vh - 58px); }
.admin-nav { width: 180px; border-right: 1px solid var(--border); padding: 18px 10px; flex: none; background: rgba(255,255,255,.6); }
.admin-nav .nav-item { padding: 9px 14px; border-radius: 10px; cursor: pointer; color: var(--text2); font-size: 14px; margin-bottom: 2px; transition: all .15s; }
.admin-nav .nav-item:hover { background: var(--bg3); color: var(--text); }
.admin-nav .nav-item.active { background: rgba(43,138,255,.12); color: var(--accent2); font-weight: 600; }
.admin-main { flex: 1; padding: 24px; max-width: 1100px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; padding: 16px; box-shadow: var(--shadow); }
.stat-card .v { font-size: 26px; font-weight: 800; color: var(--accent2); }
.stat-card .k { font-size: 12px; color: var(--text2); }
.kv-form .fld { margin-bottom: 10px; }
pre.code { background: #10243a; color: #d5e6f5; border: 1px solid #1d3a57; border-radius: 10px; padding: 12px; font-family: var(--mono); font-size: 12px; overflow-x: auto; white-space: pre-wrap; }
.prompt-editor textarea { font-family: var(--mono); font-size: 12.5px; min-height: 420px; }
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: #fff; border: 1.5px solid var(--accent); color: var(--text);
  padding: 10px 22px; border-radius: 12px; z-index: 200; font-size: 14px;
  animation: popIn .25s; box-shadow: var(--shadow-lg);
}
.toast.err { border-color: var(--red); }

@media (max-width: 720px) {
  .hero h1 { font-size: 30px; }
  .hero { padding: 40px 16px 30px; }
  .admin-nav { width: 64px; }
  .admin-nav .nav-item { font-size: 11px; padding: 8px 4px; text-align: center; }
}
