/* 快启 Agent · 样式 */
* { box-sizing: border-box; }

:root {
  --b1: #007aff;          /* logo 深蓝 */
  --b2: #3da5ff;          /* logo 浅蓝 */
  --grad: linear-gradient(135deg, #007aff, #3da5ff);
  --line: #e6e8ee;
  --ink: #1f2329;
  --sub: #4e5969;
  --dim: #86909c;
  --pale: #a9aeb8;
}

body {
  margin: 0;
  font: 15px/1.7 -apple-system, BlinkMacSystemFont, "PingFang SC",
        "Microsoft YaHei", sans-serif;
  color: var(--ink);
  min-height: 100vh;
  background:
    radial-gradient(1100px 620px at 12% 8%,  #e2edff 0%, rgba(226,237,255,0) 62%),
    radial-gradient(980px 560px at 88% 12%,  #e9f4ff 0%, rgba(233,244,255,0) 60%),
    radial-gradient(900px 700px at 78% 92%,  #dfeaff 0%, rgba(223,234,255,0) 62%),
    radial-gradient(760px 520px at 18% 88%,  #eaf3ff 0%, rgba(234,243,255,0) 60%),
    #fbfcfe;
}

.hide { display: none !important; }
.muted { color: var(--dim); }

/* ---- 落地页 ---- */
.hist-btn {
  position: fixed; top: 20px; right: 24px; z-index: 30;
  width: 40px; height: 40px; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(255,255,255,.92);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--sub); transition: all .15s;
}
.hist-btn:hover { border-color: #9ecbff; color: var(--b1); }
.hist-btn svg { width: 19px; height: 19px; }

.land {
  min-height: 100vh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; padding: 0 24px 8vh;
}
.land-brand {
  display: flex; align-items: center; justify-content: center;
  gap: 15px; margin-bottom: 30px;
}
.land-brand .mark {
  width: 50px; height: 50px; border-radius: 11px; flex: 0 0 50px;
  box-shadow: 0 3px 14px rgba(0,122,255,.26);
}
.land h1 {
  font-size: 34px; font-weight: 700; letter-spacing: -.5px;
  margin: 0; text-align: center;
}
.land h1 .brand {
  background: linear-gradient(96deg, #007aff 0%, #3da5ff 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.land h1 sup {
  font-size: 12px; font-weight: 500; vertical-align: super;
  color: var(--sub); background: #f0f1f5; border-radius: 4px;
  padding: 2px 6px; margin-left: 6px; letter-spacing: 0;
}

/* ---- 输入框 ---- */
.composer {
  width: 100%; max-width: 800px; background: #fff;
  border-radius: 14px; padding: 16px 18px 12px;
  position: relative; box-shadow: 0 2px 20px rgba(31,35,41,.06);
}
.composer::before {
  content: ''; position: absolute; inset: -1.5px; border-radius: 15px;
  background: linear-gradient(112deg, #007aff 0%, #3da5ff 55%, #7cc4ff 100%);
  z-index: -1;
}
.composer.sm { padding: 12px 14px 9px; border-radius: 12px; }
.composer.sm::before { border-radius: 13px; }
.composer textarea {
  width: 100%; border: none; outline: none; resize: none;
  font: inherit; color: var(--ink); background: transparent;
  min-height: 26px; max-height: 200px; line-height: 1.6; display: block;
}
/* 起始就给三行左右的高度，补充业务信息往往要写几句 */
.composer.sm textarea { font-size: 14px; min-height: 62px; max-height: 200px; }
.composer textarea::placeholder { color: var(--pale); }

.composer-bar {
  display: flex; align-items: center; gap: 18px;
  margin-top: 12px; font-size: 13px; color: var(--sub);
}
.composer.sm .composer-bar { gap: 12px; margin-top: 9px; font-size: 12px; }
.pill { display: flex; align-items: center; gap: 5px; }
.pill .dot {
  width: 15px; height: 15px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 10px; color: #fff; flex: 0 0 15px;
}
.pill .dot.ds { background: #4d6bfe; }
.pill .dot.think { background: #0a84ff; }
.pill .dot.net { background: #22a06b; }

.tool {
  width: 30px; height: 30px; border-radius: 8px; flex: 0 0 30px;
  border: 1px solid var(--line); background: #fff; color: var(--sub);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all .15s; padding: 0;
}
.tool:hover { border-color: #9ecbff; color: var(--b1); }
.tool svg { width: 16px; height: 16px; }
.composer.sm .tool { width: 26px; height: 26px; flex: 0 0 26px; }

.thumbs { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 11px; }
.thumb {
  position: relative; width: 62px; height: 62px; border-radius: 9px;
  overflow: hidden; border: 1px solid var(--line); background: #f4f5f8;
}
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .x {
  position: absolute; top: 2px; right: 2px;
  width: 17px; height: 17px; border-radius: 50%; border: none;
  background: rgba(31,35,41,.62); color: #fff; cursor: pointer;
  font-size: 12px; line-height: 1; padding: 0;
  display: flex; align-items: center; justify-content: center;
}
.thumb .x:hover { background: rgba(31,35,41,.85); }

.send {
  margin-left: auto; width: 33px; height: 33px; border-radius: 50%;
  border: none; background: #eceef2; color: var(--pale);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all .15s; flex: 0 0 33px;
}
.composer.sm .send { width: 28px; height: 28px; flex: 0 0 28px; }
.send.on { background: var(--grad); color: #fff; }
.send.on:hover { filter: brightness(1.08); }
.send:disabled { cursor: not-allowed; }
.send svg { width: 16px; height: 16px; }

.samples {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 10px; margin-top: 26px;
  font-size: 13px; color: var(--dim);
}
.samples button {
  font: inherit; padding: 7px 15px; border-radius: 8px;
  border: 1px solid var(--line); background: rgba(255,255,255,.86);
  color: var(--sub); cursor: pointer; transition: all .15s;
}
.samples button:hover { border-color: #9ecbff; color: var(--b1); background: #fff; }

/* ============ 工作台 ============ */
.work { display: flex; height: 100vh; overflow: hidden; }

/* ---- 左：分析文档 ---- */
.doc {
  flex: 1; min-width: 0; overflow-y: auto;
  padding: 18px 20px 60px;
}
.doc-inner { max-width: 900px; margin: 0 auto; }
.doc-head { display: flex; align-items: center; gap: 9px; margin-bottom: 20px; }
.doc-head .mark-sm { width: 26px; height: 26px; border-radius: 7px; flex: 0 0 26px; }
.doc-head .logo { font-size: 16px; font-weight: 700; }
.doc-head .logo .brand {
  background: linear-gradient(96deg, #007aff, #3da5ff);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.doc-head .badge {
  font-size: 11px; color: var(--b1); background: #e8f3ff;
  border-radius: 4px; padding: 2px 7px;
}
.doc-title { font-size: 21px; font-weight: 700; margin: 0 0 16px; }
.doc-title .k { color: var(--b1); }

/* 商机数徽标：跟在下游行业标题右侧 */
.biz-badge {
  /* 不用 flex gap —— 它会作用到每个文字节点上，
     「52 类」和「商机」之间会多出空隙 */
  display: inline-flex; align-items: baseline;
  margin-left: 12px; vertical-align: 3px;
  font-size: 14px; font-weight: 600; color: #d4380d;
  background: linear-gradient(90deg, #fff1f0, #fff7e6);
  border: 1px solid #ffd8bf; border-radius: 20px;
  padding: 4px 13px 4px 10px;
}
.biz-badge .fire { font-size: 14px; line-height: 1; margin-right: 5px; }
.biz-badge b {
  font-size: 16px; font-weight: 800; letter-spacing: .2px;
  margin: 0 2px;
}

/* 分析卡片 */
.panel {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 18px 22px; margin-bottom: 18px;
  box-shadow: 0 1px 8px rgba(31,35,41,.03);
}
.panel > h3 {
  font-size: 16px; font-weight: 700; margin: 0 0 4px;
  display: flex; align-items: center; gap: 8px;
}
.panel > h3 .ico { font-size: 17px; }
.panel .ptype {
  font-size: 12px; font-weight: 400; padding: 2px 9px; border-radius: 5px;
  background: #e6f2ff; color: #0064d2; margin-left: 2px;
}
.panel > h3 .el { margin-left: auto; font-size: 12px; font-weight: 400; color: var(--pale); }
.panel .sep { height: 1px; background: var(--line); margin: 12px 0 4px; }

.sec { margin-top: 16px; }
.sec:first-of-type { margin-top: 10px; }
.sec h4 { font-size: 14px; font-weight: 700; margin: 0 0 6px; }
.sec p { margin: 0; font-size: 14px; color: #3d444d; }
.sec em { font-style: normal; color: #d4380d; font-weight: 600; }

/* 下游行业 */
.tabs {
  display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line);
  margin: 0 0 16px; padding-bottom: 0; scrollbar-width: thin;
}
.tabs::-webkit-scrollbar { height: 4px; }
.tabs::-webkit-scrollbar-thumb { background: #dfe2e8; border-radius: 2px; }
.tabs button {
  font: inherit; font-size: 14px; white-space: nowrap; cursor: pointer;
  border: none; background: none; color: var(--dim);
  padding: 8px 12px 10px; border-bottom: 2px solid transparent;
  transition: all .15s;
}
.tabs button:hover { color: var(--sub); }
.tabs button.on { color: var(--b1); font-weight: 600; border-bottom-color: var(--b1); }

.reason { font-size: 13px; color: var(--dim); margin: -4px 0 14px; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: flex; align-items: center; gap: 6px; cursor: pointer;
  border: 1px solid var(--line); border-radius: 9px;
  padding: 9px 14px; background: #fff; font-size: 14px;
  transition: all .15s; user-select: none;
}
.chip:hover { border-color: #9ecbff; }
.chip.on { border-color: var(--b1); background: #f2f8ff; }
.chip input { display: none; }
.chip .m { font-size: 11px; }
.chip .m.lv1 { color: #d4380d; }
.chip .m.lv2 { color: #d46b08; }
.chip .m.lv3 { color: var(--pale); }
.chip.all { font-weight: 600; }

.more {
  font: inherit; font-size: 13px; color: var(--b1); cursor: pointer;
  border: 1px solid #cfe4ff; background: #f2f8ff; border-radius: 9px;
  padding: 9px 16px;
}
.more:hover { background: #e8f3ff; }

.notice {
  background: #fff8ea; border: 1px solid #ffdfa8; color: #8a5a00;
  padding: 11px 14px; border-radius: 9px; font-size: 13px;
}
.notice.err { background: #fff0ee; border-color: #ffc4bc; color: #c0332c; }

/* ---- 企业名单 ---- */
.list-head { margin: 26px 0 14px; }
.list-head h3 { font-size: 19px; font-weight: 700; margin: 0 0 9px; }
.list-head h3 .k { color: var(--b1); }
.list-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12px; }
.list-meta .tag {
  padding: 3px 10px; border-radius: 5px; background: #f2f3f6; color: var(--sub);
}
.list-meta .tag.word { background: #fff1f0; color: #d4380d; font-weight: 600; }
.list-meta .n { color: var(--dim); margin-left: auto; }
/* 「翻页可查看其他商机」跟在精选数量后面，不再占一次 margin-left:auto */
.list-meta .n-hint { color: var(--pale); }

.loading { padding: 30px 0; text-align: center; color: var(--dim); font-size: 13px; }

.ctable {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; box-shadow: 0 1px 8px rgba(31,35,41,.03);
}
.crow {
  display: grid; grid-template-columns: minmax(0,2fr) 104px minmax(0,2fr) 92px;
  gap: 14px; padding: 15px 18px; border-bottom: 1px solid #f2f3f5;
  font-size: 13px; align-items: start;
}
.crow:last-child { border-bottom: none; }
.crow:not(.chead):hover { background: #fafbfd; }
.chead {
  background: #fafbfc; font-size: 12px; color: var(--dim);
  font-weight: 500; padding: 11px 18px;
}

.cname { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.cname em { font-style: normal; color: #d4380d; }
.ctags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 7px; }
.ctags .tg {
  font-size: 11px; padding: 2px 8px; border-radius: 4px;
  background: #f2f3f6; color: var(--sub);
}
.cline { color: var(--sub); line-height: 1.9; }
.cline .lb { color: var(--pale); margin-right: 3px; }
.cline .lb:not(:first-child) { margin-left: 14px; }
.cline .st {
  color: #0a7d4b; background: #e8f8f0; border-radius: 4px;
  padding: 1px 7px; font-size: 12px;
}
.ccap { color: var(--ink); }
.cdate { color: var(--sub); }

/* 主营产品类别：一条一行，超出的悬停看 */
.cprod { color: var(--sub); line-height: 1.7; }
.cprod em { font-style: normal; color: #d4380d; font-weight: 600; }
.cprod .pline {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-size: 12.5px;
}
/* 路径分隔符和末段（末段是真正的产品名） */
.pgt { color: #c9ced6; margin: 0 5px; }
.ptail { color: var(--ink); font-weight: 600; }
.cprod .pmore {
  font-size: 11px; color: var(--b1); margin-top: 3px;
  display: inline-block; padding: 1px 7px; border-radius: 4px;
  background: #f0f5ff;
}
.cprod.has-more { cursor: default; }
.cprod.has-more:hover .pmore { background: #d9e8ff; }

.prod-pop {
  position: fixed; z-index: 200; opacity: 0;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: 0 8px 28px rgba(31,35,41,.16);
  min-width: 300px; max-width: 440px;
  transition: opacity .12s;
}
.prod-pop.on { opacity: 1; }
.pp-head {
  font-size: 12px; color: var(--dim); padding: 10px 14px 8px;
  border-bottom: 1px solid #f2f3f5;
}
.pp-body { max-height: 340px; overflow-y: auto; padding: 8px 14px 12px; }
.pp-line {
  font-size: 12.5px; color: var(--sub); line-height: 1.85;
  word-break: break-word;
}
.pp-line em { font-style: normal; color: #d4380d; font-weight: 600; }

.pager {
  display: flex; align-items: center; gap: 12px;
  margin: 16px 0 30px; font-size: 13px;
}
.pager button {
  font: inherit; font-size: 13px; padding: 7px 16px; border-radius: 8px;
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  cursor: pointer; transition: all .15s;
}
.pager button:hover:not(:disabled) { border-color: #9ecbff; color: var(--b1); }
.pager button:disabled { color: var(--pale); cursor: not-allowed; background: #fafbfc; }
.pager .pn { color: var(--sub); }
.pager .cap { color: var(--pale); font-size: 12px; margin-left: auto; }

@media (max-width: 1400px) {
  .crow { grid-template-columns: minmax(0,1.8fr) 96px minmax(0,1.6fr) 86px; gap: 10px; }
  .cprod .pline { font-size: 12px; }
}

/* ---- 右：对话 ---- */
.side {
  width: 428px; flex: 0 0 428px; display: flex; flex-direction: column;
  background: #fff; border-left: 1px solid var(--line);
}
.side-top {
  display: flex; align-items: center; justify-content: flex-end; gap: 9px;
  padding: 14px 18px; border-bottom: 1px solid #f0f1f4;
}
.sbtn {
  display: flex; align-items: center; gap: 6px; font: inherit; font-size: 13px;
  padding: 7px 14px; border-radius: 20px; border: 1px solid var(--line);
  background: #fff; color: var(--sub); cursor: pointer; transition: all .15s;
}
.sbtn:hover { border-color: #9ecbff; color: var(--b1); }
.sbtn svg { width: 15px; height: 15px; }
.sbtn.icon { border-radius: 50%; width: 34px; height: 34px; padding: 0;
             justify-content: center; flex: 0 0 34px; }

/* 两个对话框切换 */
.side-tabs {
  display: flex; gap: 4px; padding: 10px 18px 0;
  border-bottom: 1px solid #f0f1f4;
}
.stab {
  font: inherit; font-size: 13px; padding: 8px 14px 10px;
  border: none; background: none; color: var(--dim);
  cursor: pointer; position: relative; transition: color .15s;
}
.stab:hover { color: var(--sub); }
.stab.on { color: var(--ink); font-weight: 600; }
.stab.on::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: -1px;
  height: 2px; background: var(--b1); border-radius: 2px 2px 0 0;
}
.stab .badge {
  display: inline-block; margin-left: 5px; font-size: 11px;
  font-weight: 400; color: var(--b1);
}

.side-stream { flex: 1; overflow-y: auto; padding: 18px; }
.side-foot { padding: 12px 16px 16px; border-top: 1px solid #f0f1f4; }
.side-tips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.side-tips button {
  font: inherit; font-size: 12px; padding: 6px 11px; border-radius: 14px;
  border: 1px solid var(--line); background: #fbfcfd; color: var(--sub);
  cursor: pointer; transition: all .15s;
}
.side-tips button:hover { border-color: #9ecbff; color: var(--b1); background: #fff; }

/* 右侧气泡 */
.msg { margin-bottom: 16px; }
.msg.u { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }
.msg.u .bub {
  background: #eaf3ff; color: #1f2329; padding: 8px 14px;
  border-radius: 12px 12px 4px 12px; max-width: 88%;
  white-space: pre-wrap; word-break: break-word; font-size: 14px;
}
.msg.u .imgs { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; max-width: 88%; }
.msg.u .imgs img {
  width: 74px; height: 74px; object-fit: cover; border-radius: 9px;
  border: 1px solid var(--line); display: block;
}
.msg.a { font-size: 14px; color: #3d444d; }
.msg.a .who {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 8px;
}
.msg.a .who .mk { width: 19px; height: 19px; border-radius: 5px; flex: 0 0 19px; }
.msg.a .body { word-break: break-word; }
.msg.a .body strong { color: var(--ink); font-weight: 600; }
.msg.a .body code {
  background: #f4f5f8; border-radius: 4px; padding: 1px 5px;
  font-family: Menlo, Consolas, monospace; font-size: 13px;
}
/* 极简 markdown 渲染 */
.md-h {
  font-size: 14px; font-weight: 700; color: var(--ink);
  margin: 14px 0 6px;
}
.md-h:first-child { margin-top: 0; }
.md-p { margin: 6px 0; }
.md-li { display: flex; gap: 7px; margin: 4px 0; }
.md-li .b { flex: 0 0 auto; color: var(--b1); font-weight: 600; }
.gap { height: 5px; }

/* 思考过程 */
.think-box { margin-bottom: 16px; }
.think-box > .who {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; margin-bottom: 10px;
}
.think-box > .who .mk { width: 19px; height: 19px; border-radius: 5px; flex: 0 0 19px; }
.step {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13px; color: var(--sub); padding: 7px 0;
}
.step .ic { flex: 0 0 16px; margin-top: 3px; }
.step .ic svg { width: 16px; height: 16px; display: block; }
.step.run .ic {
  width: 14px; height: 14px; border: 2px solid #dfe2e8; border-top-color: var(--b1);
  border-radius: 50%; animation: sp .7s linear infinite; margin: 4px 1px 0;
  flex: 0 0 14px;
}
.step.done .ic { color: #22a06b; }
.step .tx { flex: 1; font-weight: 500; color: var(--ink); }
.step .note { font-size: 13px; color: var(--sub); font-weight: 400;
              margin-top: 4px; line-height: 1.65; }
@keyframes sp { to { transform: rotate(360deg); } }

.think-done {
  display: flex; align-items: center; gap: 7px; font-size: 13px;
  color: var(--dim); padding: 4px 0 2px;
}
.think-done .mk { width: 19px; height: 19px; border-radius: 5px; flex: 0 0 19px; }

/* ---- 历史抽屉 ---- */
.drawer-bg {
  position: fixed; inset: 0; background: rgba(31,35,41,.32);
  z-index: 40; display: flex; justify-content: flex-end;
}
.drawer {
  width: 356px; max-width: 88vw; background: #fff; height: 100%;
  display: flex; flex-direction: column; box-shadow: -4px 0 24px rgba(0,0,0,.1);
}
.drawer-top {
  padding: 16px 20px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center;
}
.drawer-top h3 { margin: 0; font-size: 14px; font-weight: 600; }
.drawer-top button {
  margin-left: auto; border: none; background: none; cursor: pointer;
  color: var(--dim); font-size: 20px; line-height: 1; padding: 0 2px;
}
.drawer-top button:hover { color: var(--ink); }
.drawer-list { flex: 1; overflow-y: auto; padding: 8px; }
.hitem { padding: 11px 13px; border-radius: 9px; cursor: pointer; margin-bottom: 3px; }
.hitem:hover { background: #f6f7fa; }
.hitem .t { font-size: 14px; font-weight: 500; margin-bottom: 3px; }
.hitem .m { font-size: 12px; color: var(--pale); }
.drawer-empty { padding: 40px 20px; text-align: center; color: var(--pale); font-size: 13px; }

@media (max-width: 1100px) {
  .work { flex-direction: column; height: auto; overflow: visible; }
  .side { width: auto; flex: none; border-left: none; border-top: 1px solid var(--line); }
  .side-stream { max-height: 62vh; }
}
@media (max-width: 640px) {
  .land h1 { font-size: 25px; }
  .doc { padding: 14px 14px 40px; }
  .panel { padding: 15px 16px; }
}

/* ---- 左上角账号区 ---- */
/* 落地页是 fixed（页面居中布局，没有可挂的容器）；
   工作台挂在 .doc-head 里，跟着标题行走，所以那里改成 static */
/* .acct-btn 是 display:flex（块级），不给容器排成一行的话
   「退出」会被挤到下一行去 */
.acct {
  position: fixed; top: 20px; left: 24px; z-index: 30;
  display: flex; align-items: center; gap: 4px;
}
.doc-head .acct { position: static; margin-left: auto; }

.acct-btn {
  display: flex; align-items: center; gap: 7px; font: inherit; font-size: 13px;
  padding: 7px 13px; border-radius: 20px; cursor: pointer;
  border: 1px solid var(--line); background: rgba(255,255,255,.92);
  color: var(--sub); transition: all .15s;
}
.acct-btn:hover { border-color: #9ecbff; color: var(--b1); }
.acct-btn svg { width: 15px; height: 15px; flex: 0 0 15px; }
.acct-btn .who {
  max-width: 148px; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap;
}
.acct-btn.on { color: var(--ink); }
.acct-btn .av {
  width: 21px; height: 21px; border-radius: 50%; flex: 0 0 21px;
  background: var(--grad); color: #fff; font-size: 11px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}
.acct-out {
  border: none; background: none; cursor: pointer; font: inherit;
  font-size: 12px; color: var(--dim); padding: 0 2px; margin-left: 2px;
}
.acct-out:hover { color: #d93026; }

/* ---- 登录窗 ---- */
.modal-bg {
  position: fixed; inset: 0; z-index: 60;
  background: rgba(31,35,41,.42);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.login-card {
  width: 372px; max-width: 100%; background: #fff; border-radius: 16px;
  padding: 28px 28px 22px; position: relative;
  box-shadow: 0 18px 60px rgba(31,35,41,.22);
}
.lg-close {
  position: absolute; top: 12px; right: 14px; border: none; background: none;
  font-size: 22px; line-height: 1; color: var(--pale); cursor: pointer;
  padding: 0 2px;
}
.lg-close:hover { color: var(--sub); }
.lg-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.lg-brand img {
  width: 42px; height: 42px; border-radius: 10px; flex: 0 0 42px;
  box-shadow: 0 3px 12px rgba(0,122,255,.24);
}
.lg-name { font-size: 19px; font-weight: 700; letter-spacing: -.3px; }
.lg-name .brand {
  background: var(--grad); -webkit-background-clip: text;
  background-clip: text; -webkit-text-fill-color: transparent;
}
.lg-sub { font-size: 12px; color: var(--dim); }
.lg-tip {
  font-size: 13px; border-radius: 8px; padding: 9px 12px; margin-bottom: 14px;
  background: #fff1f0; color: #cf1322; border: 1px solid #ffccc7;
}
.lg-tip.info { background: #e8f3ff; color: #0958d9; border-color: #bcdcff; }
.lg-f { display: block; margin-bottom: 14px; }
.lg-f span { display: block; font-size: 12px; color: var(--sub); margin-bottom: 6px; }
.lg-f input {
  width: 100%; font: inherit; font-size: 14px; padding: 10px 13px;
  border: 1px solid var(--line); border-radius: 9px; background: #fbfcfe;
  transition: all .15s;
}
.lg-f input:focus {
  outline: none; border-color: var(--b2); background: #fff;
  box-shadow: 0 0 0 3px rgba(0,122,255,.1);
}
.lg-go {
  width: 100%; font: inherit; font-size: 15px; font-weight: 600; color: #fff;
  background: var(--grad); border: none; border-radius: 10px;
  padding: 11px; cursor: pointer; margin-top: 4px;
  box-shadow: 0 4px 14px rgba(0,122,255,.26);
}
.lg-go:hover { filter: brightness(1.04); }
.lg-go:disabled { opacity: .6; cursor: default; box-shadow: none; }
.lg-foot {
  font-size: 12px; color: var(--pale); text-align: center; margin-top: 14px;
}

/* ================= 运营后台 ================= */
.adm-body { min-height: 100vh; }
.adm-gate {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.adm-top {
  display: flex; align-items: center; gap: 9px;
  padding: 13px 24px; background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
}
.adm-top .mark-sm { width: 26px; height: 26px; border-radius: 7px; flex: 0 0 26px; }
.adm-top .logo { font-size: 16px; font-weight: 700; }
.adm-top .logo .brand {
  background: var(--grad); -webkit-background-clip: text;
  background-clip: text; -webkit-text-fill-color: transparent;
}
.adm-top .badge {
  font-size: 11px; color: var(--b1); background: #e8f3ff;
  border-radius: 4px; padding: 2px 7px;
}
.adm-top-r { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.adm-top-r .sbtn { text-decoration: none; }

.adm-main { max-width: 1240px; margin: 0 auto; padding: 22px 24px 60px; }

.stats { display: flex; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.stat {
  flex: 1; min-width: 132px; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 15px 17px;
}
.stat .n { font-size: 25px; font-weight: 700; line-height: 1.25; }
.stat .k { font-size: 12px; color: var(--dim); margin-top: 2px; }

.adm-card {
  background: #fff; border: 1px solid var(--line); border-radius: 13px;
  padding: 17px 19px 19px; margin-bottom: 16px;
}
.adm-card-h {
  display: flex; align-items: center; gap: 10px; margin-bottom: 15px;
}
.adm-card-h h3 { margin: 0; font-size: 15px; font-weight: 600; }
.adm-card-h .muted { font-size: 12px; margin-left: auto; }
.srch {
  margin-left: auto; font: inherit; font-size: 13px; width: 230px;
  padding: 7px 12px; border: 1px solid var(--line); border-radius: 18px;
  background: #fbfcfe;
}
.srch:focus { outline: none; border-color: var(--b2); background: #fff; }

.new-row { display: flex; gap: 11px; align-items: flex-end; flex-wrap: wrap; }
.new-row label { display: block; flex: 0 0 auto; width: 178px; }
.new-row label.grow { flex: 1; min-width: 178px; width: auto; }
.new-row span { display: block; font-size: 12px; color: var(--sub); margin-bottom: 5px; }
.new-row input {
  width: 100%; font: inherit; font-size: 13px; padding: 9px 12px;
  border: 1px solid var(--line); border-radius: 9px; background: #fbfcfe;
}
.new-row input:focus { outline: none; border-color: var(--b2); background: #fff; }
.lg-go.slim { width: auto; padding: 9px 20px; font-size: 14px; margin-top: 0; }

.adm-tip {
  margin-top: 12px; font-size: 13px; border-radius: 8px; padding: 8px 12px;
  background: #e8f3ff; color: #0958d9;
}
.adm-tip.bad { background: #fff1f0; color: #cf1322; }

.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th {
  text-align: left; font-weight: 600; color: var(--sub); font-size: 12px;
  padding: 9px 10px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.tbl td {
  padding: 11px 10px; border-bottom: 1px solid #f2f3f6; vertical-align: middle;
}
.tbl tr:last-child td { border-bottom: none; }
.tbl td.mono { font-family: ui-monospace, Menlo, Consolas, monospace; }
.tbl td.sm { font-size: 12px; color: var(--sub); }
.tbl td.note {
  max-width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tag {
  display: inline-block; font-size: 11px; border-radius: 4px; padding: 2px 8px;
  white-space: nowrap;
}
.tag.ok { background: #e7f6ec; color: #0f8a3d; }
.tag.no { background: #f3f4f6; color: var(--dim); }
.ops { white-space: nowrap; }
.op {
  font: inherit; font-size: 12px; border: 1px solid var(--line); background: #fff;
  color: var(--sub); border-radius: 6px; padding: 4px 9px; cursor: pointer;
  margin-right: 5px;
}
.op:hover { border-color: #9ecbff; color: var(--b1); }
.op.del:hover { border-color: #ffa39e; color: #d93026; }
.empty { text-align: center; color: var(--dim); font-size: 13px; padding: 26px 0; }

.pw-show {
  background: #f7f9fc; border: 1px solid var(--line); border-radius: 10px;
  padding: 14px 16px; margin-bottom: 16px;
}
.pw-row { display: flex; align-items: center; gap: 12px; padding: 4px 0; }
.pw-row .k { font-size: 12px; color: var(--dim); width: 30px; flex: 0 0 30px; }
.pw-row .v {
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 16px;
  font-weight: 600; letter-spacing: .5px; user-select: all;
}

/* 密码列：点一下复制 */
.pw-cell { white-space: nowrap; }
.pw-v {
  font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px;
  background: #f5f7fa; border: 1px solid var(--line); border-radius: 6px;
  padding: 3px 9px; cursor: pointer; user-select: all; display: inline-block;
  min-width: 92px; text-align: center; transition: all .15s;
}
.pw-v:hover { border-color: #9ecbff; color: var(--b1); background: #f0f7ff; }
.pw-v.copied { color: #0f8a3d; border-color: #b7e0c4; background: #e7f6ec; }
.pw-none { font-size: 12px; color: var(--pale); }
