/*============================================================
  奥咨达智能体 · 通用样式系统
  版本: v1.0 | 最后更新: 2026-07-28
  适用范围: 所有 Agent 页面、仪表盘、管理后台
  ============================================================*/

/* ---------- 1. 设计令牌 (Design Tokens) ---------- */
:root {
  /* 背景 & 面板 */
  --bg:             #f5f6f8;
  --panel:          #ffffff;
  --border:         #e6e8ec;
  --border-light:   #eef0f3;

  /* 文字 */
  --text:           #1f2329;
  --text-2:         #5f6570;
  --text-3:         #9aa1ad;

  /* 品牌色 */
  --accent:         #2563eb;
  --accent-soft:    #eff5ff;
  --accent-dark:    #1d4ed8;

  /* 语义色 */
  --teal:           #0d9488;
  --teal-soft:      #e8faf7;
  --green:          #12b76a;
  --green-soft:     #e8f8f0;
  --red:            #f04438;
  --red-soft:       #feeceb;
  --orange:         #f79009;
  --orange-soft:    #fef4e6;
  --purple:         #7c3aed;
  --purple-soft:    #f3eeff;

  /* 圆角 & 阴影 */
  --radius-sm:      8px;
  --radius:         12px;
  --shadow:         0 1px 3px rgba(16,24,40,.06), 0 1px 2px rgba(16,24,40,.04);
  --shadow-hover:   0 6px 16px rgba(16,24,40,.08);

  /* 间距 */
  --gap-xs:         4px;
  --gap-sm:         8px;
  --gap:            14px;
  --gap-lg:          20px;

  /* 字体 */
  --font:           "PingFang SC", "Microsoft YaHei", -apple-system, "Segoe UI", sans-serif;
}

/* ---------- 2. Reset & 基础 ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  overflow: hidden;
}

/* ---------- 3. 布局 ---------- */
.app            { display: none; height: 100vh; }
.app.logged-in  { display: flex; }

.sidebar {
  width: 250px;
  background: var(--panel);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; flex-shrink: 0; overflow-y: auto;
}

.main {
  flex: 1;
  display: flex; flex-direction: column; min-width: 0;
}

.topbar {
  height: 52px;
  background: var(--panel);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 var(--gap-lg); gap: 12px; flex-shrink: 0;
}

.topbar-right {
  margin-left: auto;
  display: flex; gap: 10px; align-items: center;
}

.workspace       { flex: 1; overflow-y: auto; padding: var(--gap-lg); }
.view            { display: none; }
.view.active     { display: block; }


/* ---------- 4. Logo & 品牌 ---------- */
.logo {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 16px 14px;
  position: sticky; top: 0; background: var(--panel); z-index: 2;
  border-bottom: 1px solid var(--border-light);
}

.logo-mark {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--teal));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px;
}

.logo-name       { font-weight: 600; font-size: 15px; }

.logo-tag {
  font-size: 10px; color: var(--accent);
  background: var(--accent-soft); border-radius: 4px;
  padding: 1px 5px; margin-left: 2px;
}


/* ---------- 5. 导航菜单 ---------- */
.nav             { flex: 1; padding: 6px 10px; }

.nav-group {
  font-size: 11px; color: var(--text-3);
  padding: 14px 10px 7px; letter-spacing: .5px;
  display: flex; align-items: center; gap: 6px;
}

/* 阶段颜色点 */
.nav-group .stage-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.stage-0 .stage-dot { background: var(--accent); }
.stage-1 .stage-dot { background: var(--teal); }
.stage-2 .stage-dot { background: var(--purple); }
.stage-3 .stage-dot { background: var(--red); }
.stage-4 .stage-dot { background: var(--orange); }
.stage-a .stage-dot { background: #0891b2; }
.stage-b .stage-dot { background: #059669; }

/* 阶段激活态颜色映射 */
.stage-0 .nav-item.active { background: var(--accent-soft); color: var(--accent); }
.stage-1 .nav-item.active { background: var(--teal-soft);    color: var(--teal); }
.stage-2 .nav-item.active { background: var(--purple-soft);  color: var(--purple); }
.stage-3 .nav-item.active { background: var(--red-soft);     color: var(--red); }
.stage-4 .nav-item.active { background: var(--orange-soft);  color: var(--orange); }
.stage-a .nav-item.active { background: #e6f7fa;             color: #0891b2; }
.stage-b .nav-item.active { background: #e6f6f0;             color: #059669; }

.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 10px; border-radius: var(--radius-sm);
  cursor: pointer; color: var(--text-2);
  margin-bottom: 1px; transition: .15s; font-size: 13.5px;
}
.nav-item:hover           { background: #f3f4f6; color: var(--text); }
.nav-item.active          { font-weight: 500; }
.nav-item .ico            { width: 20px; text-align: center; font-size: 14px; flex-shrink: 0; }
.nav-item .badge          { margin-left: auto; font-size: 10px; border-radius: 9px; padding: 0 6px; line-height: 17px; color: #fff; }
.nav-item.star            { font-weight: 600; font-size: 14px; color: var(--accent); margin: 4px 0 8px; }
.nav-item.star .ico       { font-size: 16px; }
.nav-item.sub             { font-size: 12.5px; padding: 6px 10px; }

.nav-bottom {
  padding: 10px; border-top: 1px solid var(--border-light);
  display: flex; flex-direction: column; gap: 2px;
}


/* ---------- 6. 按钮 ---------- */
.btn {
  border: 1px solid var(--border);
  background: #fff; border-radius: var(--radius-sm);
  padding: 6px 14px; font-size: 13px; cursor: pointer;
  color: var(--text-2); transition: .15s;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }

.btn-primary {
  background: var(--accent); border-color: var(--accent); color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); color: #fff; }

.btn-login {
  width: 100%; background: var(--accent); color: #fff;
  border: none; border-radius: var(--radius-sm);
  padding: 11px; font-size: 15px; font-weight: 600; cursor: pointer; transition: .15s;
}
.btn-login:hover { background: var(--accent-dark); }

.send {
  margin-left: auto; background: var(--accent); color: #fff;
  border: none; border-radius: var(--radius-sm);
  padding: 6px 18px; font-size: 13px; cursor: pointer;
}


/* ---------- 7. 卡片 ---------- */
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}


/* ---------- 8. 表格 ---------- */
table {
  width: 100%; border-collapse: collapse; font-size: 13px;
}

th {
  text-align: left; padding: 10px 14px;
  color: var(--text-3); font-weight: 500; font-size: 12px;
  border-bottom: 1px solid var(--border);
  background: #fafbfc;
}

td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-2);
}

tr:last-child td { border-bottom: none; }


/* ---------- 9. 标签 ---------- */
.tag {
  display: inline-block; font-size: 11.5px; border-radius: 6px;
  padding: 2px 8px; font-weight: 500;
}

.tag-green   { background: var(--green-soft);  color: var(--green); }
.tag-red     { background: var(--red-soft);    color: var(--red); }
.tag-orange  { background: var(--orange-soft); color: var(--orange); }
.tag-blue    { background: var(--accent-soft); color: var(--accent); }
.tag-teal    { background: var(--teal-soft);   color: var(--teal); }
.tag-purple  { background: var(--purple-soft); color: var(--purple); }
.tag-gray    { background: #f2f3f5;            color: var(--text-2); }

.stage-badge {
  padding: 2px 10px; border-radius: 12px; font-size: 11.5px; font-weight: 500;
}


/* ---------- 10. 表单元素 ---------- */
.input-box {
  border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 12px;
}
.input-box textarea {
  width: 100%; border: none; outline: none; resize: none;
  font-size: 13.5px; font-family: inherit; background: transparent; height: 40px;
}

.input-actions {
  display: flex; align-items: center; gap: var(--gap-sm); margin-top: 6px;
}

.chip {
  border: 1px solid var(--border); border-radius: 7px;
  padding: 3px 9px; font-size: 12px; color: var(--text-2);
  cursor: pointer; background: #fff; transition: .15s;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }

/* Toggle 开关 */
.switch {
  width: 38px; height: 21px; border-radius: 12px;
  background: #d4d8de; position: relative; cursor: pointer; transition: .2s;
}
.switch.on { background: var(--accent); }
.switch::after {
  content: ""; position: absolute; width: 17px; height: 17px;
  border-radius: 50%; background: #fff; top: 2px; left: 2px; transition: .2s;
}
.switch.on::after { left: 19px; }

/* 进度条 */
.progress {
  height: 7px; border-radius: 4px;
  background: #eef0f3; overflow: hidden; width: 160px;
}
.progress i  { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.progress i.warn { background: var(--orange); }
.progress i.over { background: var(--red); }

/* 表单行 */
.form-row {
  display: flex; align-items: center;
  padding: 14px 18px; border-bottom: 1px solid var(--border-light);
}
.form-row:last-child  { border-bottom: none; }
.form-row .fl         { width: 200px; font-size: 13.5px; }
.form-row .fr         { flex: 1; color: var(--text-2); font-size: 13px; }

/* Tab 切换栏 */
.tab-bar {
  display: flex; border: 1px solid var(--border); border-radius: var(--radius-sm);
  overflow: hidden; margin-bottom: var(--gap-xs);
}
.tab-bar span {
  flex: 1; text-align: center; padding: 8px; font-size: 13px;
  cursor: pointer; color: var(--text-2); background: #fafbfc; transition: .15s;
}
.tab-bar span.active { background: #fff; color: var(--accent); font-weight: 500; }

/* Tab 面板 */
.o-tab-content           { display: none; }
.o-tab-content.active    { display: block; }


/* ---------- 11. 网格 & 统计 ---------- */
.grid            { display: grid; gap: var(--gap); }
.stat-grid       { grid-template-columns: repeat(4, 1fr); margin-bottom: 16px; }
.stat            { padding: 16px 18px; }
.stat .label     { font-size: 12.5px; color: var(--text-2); }
.stat .num       { font-size: 26px; font-weight: 700; margin: 6px 0 2px; }
.stat .delta     { font-size: 12px; }
.delta.up        { color: var(--red); }
.delta.down      { color: var(--green); }

.section-title   { font-size: 14px; font-weight: 600; margin: var(--gap-lg) 0 10px; }
.list-card       { padding: 0; }


/* ---------- 12. 对话 & 消息 ---------- */
.chat-wrap {
  display: flex; gap: 16px; height: calc(100vh - 92px);
}

.chat-panel  { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.chat-body   { flex: 1; overflow-y: auto; padding: 18px 22px; }

.chat-input {
  border-top: 1px solid var(--border-light);
  padding: 12px 16px; background: #fff;
  border-radius: 0 0 var(--radius) var(--radius);
}

.msg {
  display: flex; gap: 10px; margin-bottom: 16px;
}

.msg .avatar {
  flex-shrink: 0; width: 30px; height: 30px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700; color: #fff;
}

.msg .bubble {
  max-width: 78%; padding: 11px 14px;
  border-radius: var(--radius); font-size: 13.5px; line-height: 1.7;
}

.msg.user               { flex-direction: row-reverse; }
.msg.user .bubble       { background: var(--accent); color: #fff; border-top-right-radius: 4px; }
.msg.ai .bubble         { background: #f4f6f9; border: 1px solid var(--border-light); border-top-left-radius: 4px; color: var(--text); }

/* 右侧面板（快捷任务 / 工作流 / 文件上传） */
.right-panel  { width: 320px; flex-shrink: 0; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; }
.quick-grid   { grid-template-columns: 1fr 1fr; gap: 10px; }

.quick {
  border: 1px solid var(--border); border-radius: 10px;
  padding: 13px; cursor: pointer; transition: .15s; background: #fff;
}
.quick:hover   { border-color: var(--accent); transform: translateY(-1px); box-shadow: var(--shadow); }
.quick .t      { font-weight: 600; font-size: 13px; margin-bottom: 3px; }
.quick .d      { font-size: 11.5px; color: var(--text-3); }

/* 工作流步骤卡片 */
.flow-card              { padding: 14px 16px; font-size: 13px; }
.flow-card .flow-title  { font-size: 13px; font-weight: 600; margin-bottom: var(--gap-sm); }
.flow-item {
  display: flex; align-items: center; gap: var(--gap-sm);
  padding: 6px 0; font-size: 12px; color: var(--text-2);
  border-top: 1px solid var(--border-light);
}
.flow-item .flow-step {
  font-size: 10px; color: #fff; border-radius: 50%;
  width: 18px; height: 18px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}

/* 文件上传卡片 */
.file-drop {
  border: 1.5px dashed var(--border); border-radius: var(--radius-sm);
  padding: 14px; text-align: center; cursor: pointer;
  background: #fafbfc; transition: .15s;
}
.file-drop:hover { border-color: var(--accent); background: var(--accent-soft); }


/* ---------- 13. Agent 介绍卡片 ---------- */
.agent-intro {
  background: linear-gradient(135deg, var(--accent-soft), #fafbff);
  border: 1px solid var(--accent-soft);
  border-radius: var(--radius);
  padding: 20px 22px; margin-bottom: 16px;
}

.agent-intro .aicon {
  width: 48px; height: 48px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 12px;
}

.agent-intro .aname   { font-size: 16px; font-weight: 700; margin-bottom: var(--gap-xs); }
.agent-intro .adesc   { font-size: 13px; color: var(--text-2); line-height: 1.7; }
.agent-intro .acaps   { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

.agent-intro .acap {
  padding: 3px 10px; border-radius: 14px;
  font-size: 12px; border: 1px solid var(--border); color: var(--text-2);
}


/* ---------- 14. 总控 Agent ---------- */
.orchestrator-wrap                 { display: flex; flex-direction: column; gap: 16px; }

.o-tabs {
  display: flex; gap: 0; border-bottom: 2px solid var(--border-light);
  padding: 0 2px;
}

.o-tab {
  padding: 10px 18px; cursor: pointer; font-size: 13.5px;
  color: var(--text-2); border-bottom: 2px solid transparent;
  margin-bottom: -2px; transition: .15s; font-weight: 500;
}
.o-tab:hover         { color: var(--text); }
.o-tab.active        { color: var(--accent); border-bottom-color: var(--accent); }


/* ---------- 15. 里程碑流程图 ---------- */
.milestone-flow {
  display: flex; flex-wrap: wrap; gap: 0;
  align-items: flex-start; padding: var(--gap-lg); overflow-x: auto;
}

.milestone-node {
  display: flex; flex-direction: column; align-items: center; gap: var(--gap-sm);
  min-width: 100px; position: relative; cursor: pointer;
  padding: var(--gap-sm) var(--gap-xs); border-radius: 10px; transition: .15s;
}
.milestone-node:hover { background: #f8f9fb; }

.milestone-node .m-dot {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
  position: relative; z-index: 2;
  border: 3px solid #e6e8ec; background: #fff; transition: .2s;
}

/* 节点状态 */
.milestone-node.done .m-dot        { background: var(--green-soft);  border-color: var(--green);  color: var(--green); }
.milestone-node.active-node .m-dot { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); animation: pulse-node 2s infinite; }
.milestone-node.pending .m-dot     { background: #fafbfc;            border-color: #d4d8de;         color: var(--text-3); }
.milestone-node.skipped .m-dot     { background: var(--orange-soft); border-color: var(--orange); color: var(--orange); text-decoration: line-through; }

@keyframes pulse-node { 50% { box-shadow: 0 0 0 8px rgba(37,99,235,.12); } }

.milestone-node .m-name   { font-size: 11.5px; font-weight: 500; text-align: center; max-width: 90px; line-height: 1.3; }
.milestone-node .m-status { font-size: 10.5px; border-radius: 10px; padding: 1px 8px; }

.milestone-node.done .m-status        { background: var(--green-soft);  color: var(--green); }
.milestone-node.active-node .m-status { background: var(--accent-soft); color: var(--accent); }
.milestone-node.pending .m-status     { background: #f2f3f5;           color: var(--text-3); }
.milestone-node.skipped .m-status     { background: var(--orange-soft); color: var(--orange); }

/* 里程碑箭头 */
.milestone-arrow {
  display: flex; align-items: center; padding: 0 2px;
  color: var(--text-3); font-size: 14px; min-width: 24px; justify-content: center;
}
.milestone-arrow.done         { color: var(--green); }
.milestone-arrow.active-arrow { color: var(--accent); }

.milestone-branch               { display: flex; flex-direction: column; gap: 6px; min-width: 100px; }
.milestone-branch .branch-label { font-size: 10.5px; color: var(--text-3); text-align: center; }


/* ---------- 16. 权限管理 ---------- */
.perm-table td, .perm-table th { font-size: 12.5px; }

.perm-check {
  display: inline-block; cursor: pointer; padding: 2px 10px;
  border-radius: 10px; font-size: 11px; border: 1px solid var(--border); transition: .15s;
}
.perm-check.on  { background: var(--green-soft); color: var(--green); border-color: var(--green); }
.perm-check.off { background: var(--red-soft);   color: var(--red);   border-color: var(--red); }


/* ---------- 17. 项目进度大屏 ---------- */
.project-dashboard { display: flex; flex-direction: column; gap: 16px; }

.proj-row  { display: flex; gap: var(--gap); flex-wrap: wrap; }

.proj-card {
  flex: 1; min-width: 300px; padding: 18px;
  transition: .15s; cursor: pointer;
}
.proj-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }

.proj-card .proj-head {
  display: flex; justify-content: space-between;
  align-items: flex-start; margin-bottom: 10px;
}

.proj-card .proj-name   { font-weight: 700; font-size: 14px; }
.proj-card .proj-cat    { font-size: 11px; color: var(--text-3); margin-bottom: 2px; }
.proj-card .proj-code   { font-size: 11px; color: var(--text-3); }

.proj-card .proj-bar-bg {
  height: 8px; border-radius: 4px;
  background: var(--border-light); margin: 12px 0 8px; overflow: hidden;
}

.proj-card .proj-bar {
  height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), var(--teal));
  transition: width .5s;
}

.proj-card .proj-stats {
  display: flex; gap: 12px; font-size: 12px; color: var(--text-2);
}

.proj-mini-milestones { display: flex; gap: 2px; margin-top: var(--gap-sm); }

.proj-mini-dot {
  width: 8px; height: 8px; border-radius: 50%;
}
.proj-mini-dot.done        { background: var(--green); }
.proj-mini-dot.active-node { background: var(--accent); }
.proj-mini-dot.pending     { background: #d4d8de; }
.proj-mini-dot.skipped     { background: var(--orange); }

.proj-meta { font-size: 11px; color: var(--text-3); padding: 0 2px; margin-top: var(--gap-xs); }


/* ---------- 18. 柱状图 ---------- */
.bar-chart {
  display: flex; align-items: flex-end; gap: var(--gap);
  height: 160px; padding: 16px 18px 8px;
}

.bar-col {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  gap: 6px; height: 100%; justify-content: flex-end;
}

.bar {
  width: 70%; border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, #6f9bff, var(--accent));
}

.bar-label { font-size: 11.5px; color: var(--text-3); }


/* ---------- 19. 登录页 ---------- */
.login-page {
  display: flex; height: 100vh;
  background: linear-gradient(135deg, #eff5ff 0%, #f0fdfa 60%, #faf5ff 100%);
}

.login-left {
  flex: 1; display: flex; flex-direction: column;
  justify-content: center; padding: 60px 80px; position: relative;
}

.login-left .brand { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; }

.brand-logo {
  width: 44px; height: 44px; border-radius: var(--radius);
  background: linear-gradient(135deg, var(--accent), var(--teal));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700;
}

.brand-name  { font-size: 22px; font-weight: 700; }

.brand-sub {
  font-size: 12px; color: var(--accent);
  background: var(--accent-soft); border-radius: 6px;
  padding: 2px 8px; margin-left: var(--gap-xs);
}

.hero-title {
  font-size: 32px; font-weight: 800; line-height: 1.4; margin-bottom: 16px;
  background: linear-gradient(135deg, #1e293b, var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.hero-desc     { font-size: 15px; color: var(--text-2); line-height: 1.8; margin-bottom: 36px; max-width: 480px; }
.hero-features { display: flex; flex-direction: column; gap: 16px; }

.hero-feat {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14px; color: var(--text-2);
}

.hero-feat .f-icon {
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; flex-shrink: 0;
}

.hero-feat .f-label { font-weight: 600; color: var(--text); margin-bottom: 2px; }
.hero-feat .f-desc  { font-size: 12.5px; color: var(--text-3); }

.login-right {
  width: 440px; display: flex; flex-direction: column;
  justify-content: center; padding: 60px 50px;
  background: var(--panel); box-shadow: -2px 0 20px rgba(16,24,40,.04);
}

.login-card {
  display: flex; flex-direction: column; gap: var(--gap-lg);
}

.login-card h2        { font-size: 20px; font-weight: 700; margin-bottom: var(--gap-xs); }
.login-card .subtitle { font-size: 13px; color: var(--text-3); }

.login-footer {
  text-align: center; font-size: 12px;
  color: var(--text-3); margin-top: 16px;
}

.qr-wrap {
  display: flex; flex-direction: column;
  align-items: center; gap: 16px; padding: var(--gap-lg) 0;
}

.qr-box {
  width: 180px; height: 180px; border: 2px dashed var(--border);
  border-radius: var(--radius);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: var(--gap-sm);
  background: #fafbfc; position: relative;
}

.qr-box img      { width: 130px; height: 130px; }
.qr-box .qr-label { font-size: 12px; color: var(--text-3); }
.qr-tip           { font-size: 12.5px; color: var(--text-2); text-align: center; line-height: 1.7; }
.qr-tip strong    { color: var(--accent); }

.phone-form           { display: none; flex-direction: column; gap: 12px; }
.phone-form.active    { display: flex; }

.phone-form input {
  width: 100%; border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 14px;
  font-size: 14px; outline: none; transition: .15s;
}
.phone-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

.phone-form .code-row      { display: flex; gap: 10px; }
.phone-form .code-row input { flex: 1; }

.phone-form .send-code {
  flex-shrink: 0; background: var(--accent-soft); color: var(--accent);
  border: none; border-radius: var(--radius-sm);
  padding: 0 16px; font-size: 13px; cursor: pointer; white-space: nowrap;
}


/* ---------- 20. 竞标 ---------- */
.bid-card          { display: flex; flex-direction: column; gap: var(--gap-sm); padding: 16px; cursor: pointer; transition: .15s; }
.bid-card:hover    { box-shadow: var(--shadow); border-color: var(--accent); }
.bid-card .bid-header { display: flex; align-items: center; justify-content: space-between; }
.bid-card .bid-title   { font-weight: 600; font-size: 13px; }
.bid-card .bid-meta    { font-size: 12px; color: var(--text-3); }
.bid-card .bid-deadline { font-size: 12px; padding: 2px 8px; border-radius: 10px; background: var(--red-soft); color: var(--red); }
