/* App 端样式 */
#screen { max-width: 430px; margin: 0 auto; min-height: calc(100vh - 56px); padding: 0 16px 24px; }
#tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 430px;
  height: 56px; background: #fff; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); z-index: 10; }
.tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 10px; color: var(--ink3); position: relative; }
.tab .ic { font-size: 17px; }
.tab.on { color: var(--accent); font-weight: 700; }
.tab .dot { position: absolute; top: 9px; left: 58%; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.topbar { display: flex; align-items: center; height: 48px; margin: 0 -16px; padding: 0 16px; background: #fff; position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--line); }
.topbar .back { font-size: 18px; width: 26px; }
.topbar .t { font-size: 15.5px; font-weight: 700; }

.hero { background: linear-gradient(135deg, #2b2f38, #454b59); color: #fff; border-radius: var(--radius); padding: 18px 16px; margin-top: 14px; }
.hero .t { font-size: 18px; font-weight: 800; }
.hero .h { font-size: 12.5px; opacity: .85; margin-top: 4px; }

.field { margin-top: 14px; }
.field .fl { font-size: 12.5px; font-weight: 700; margin-bottom: 8px; }
.field .fl small { color: var(--ink3); font-weight: 400; margin-left: 6px; }
.field .fl .req { color: #e5484d; margin-right: 3px; }       /* 必选星标 */
.field .fl .opt { color: var(--ink3); font-weight: 400; margin-left: 6px; font-size: 11px; }

/* 目标企业切换按钮（icon 按钮，置于企业名旁） */
.swap-btn { width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--accent); background: #fff; color: var(--accent); display: flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.swap-btn:active { background: var(--accent); color: #fff; }

/* 自定义"＋ 更多"入口与超限提示 */
.chip.add { border-style: dashed; color: var(--ink3); background: #fafbfd; }
.input-hint { font-size: 11.5px; color: #c2671f; margin-top: 6px; }

/* 输入框占位符：明显淡于正式输入文字 */
input::placeholder { color: #b9c1ce; font-weight: 400; opacity: 1; }

.matchcount { display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin-top: 16px; font-size: 12.5px; color: var(--ink2); }
.matchcount b { font-size: 20px; color: var(--accent); }

.outline-item { display: flex; gap: 10px; align-items: flex-start; padding: 11px 4px; border-bottom: 1px solid var(--line); font-size: 13px; cursor: pointer; }
.outline-item .cb { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid #c3c9d4; flex: none; display: flex; align-items: center; justify-content: center; font-size: 11px; color: #fff; margin-top: 1px; }
.outline-item .cb.on { background: var(--green); border-color: var(--green); }

.qbox { margin-top: 12px; }
.qbox input { width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font-size: 13px; }
.block-feedback { border-radius: 10px; padding: 10px 12px; font-size: 12px; line-height: 1.6; margin-top: 8px; }
.block-feedback.bad { background: #fdf3f0; border: 1px solid #f3cfc5; color: #a03e2d; }
.block-feedback.good { background: #eef7f2; border: 1px solid #c4e5d5; color: #0c7a53; }

.kv { display: flex; justify-content: space-between; padding: 9px 2px; font-size: 13px; border-bottom: 1px solid var(--line); }
.kv .k { color: var(--ink3); }
.kv .v { font-weight: 600; }

.listrow { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; margin-bottom: 10px; font-size: 13px; cursor: pointer; }
.listrow .ic { width: 34px; height: 34px; border-radius: 10px; background: #f2f4f8; display: flex; align-items: center; justify-content: center; font-size: 15px; flex: none; }
.listrow .ch { margin-left: auto; font-size: 11.5px; color: var(--ink3); font-weight: 600; }

/* 消息 */
.bubble { max-width: 78%; padding: 9px 12px; border-radius: 12px; font-size: 13px; line-height: 1.6; margin-bottom: 8px; word-break: break-all; }
.bubble.me { background: var(--accent); color: #fff; margin-left: auto; border-bottom-right-radius: 3px; }
.bubble.peer { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 3px; }
.bubble.sys { background: #fff7e2; border: 1px solid #f0d492; color: #8a6a00; font-size: 11.5px; max-width: 100%; margin: 4px auto; text-align: center; }
.chat-input { display: flex; gap: 8px; padding: 10px 16px 14px; background: #fff; border-top: 1px solid var(--line); position: sticky; bottom: 56px; }
.chat-input input { flex: 1; height: 40px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; font-size: 13px; }

/* 时间线 */
.tl { margin-top: 6px; }
.tl-item { display: flex; gap: 10px; padding: 7px 0; font-size: 12px; }
.tl-item .dot2 { width: 8px; height: 8px; border-radius: 50%; background: #c9cfda; margin-top: 5px; flex: none; }
.tl-item.done .dot2 { background: var(--green); }
.tl-item .d { color: var(--ink3); font-size: 11px; }

/* 我的页 */
.profile { display: flex; align-items: center; gap: 12px; padding: 18px 0 8px; }
.profile .big-av { width: 52px; height: 52px; border-radius: 16px; font-size: 20px; }
.credit-link { margin-left: auto; text-align: right; cursor: pointer; }
.credit-link b { font-size: 20px; color: var(--green); }
.credit-link span { display: block; font-size: 10px; color: var(--ink3); }

.dimbar { margin: 6px 0 10px; }
.dimbar .row { display: flex; align-items: center; gap: 10px; font-size: 12px; margin-bottom: 8px; }
.dimbar .bar { flex: 1; height: 6px; background: #eef0f4; border-radius: 3px; overflow: hidden; }
.dimbar .bar i { display: block; height: 100%; border-radius: 3px; }

.switch { width: 40px; height: 22px; border-radius: 11px; background: #c9cfda; position: relative; flex: none; transition: background .15s; }
.switch::after { content: ''; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; }
.switch.on { background: var(--green); }
.switch.on::after { left: 21px; }
.switch.lock { background: var(--green); opacity: .92; cursor: not-allowed; }
.switch.on.lock::after { left: 21px; }

.modrow { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; margin-bottom: 10px; }
.modrow .nm { font-size: 13.5px; font-weight: 700; }
.modrow .ds { font-size: 11px; color: var(--ink3); margin-top: 2px; }
.modrow .lock-tag { font-size: 10px; background: #e6f5ee; color: #0c7a53; padding: 1px 6px; border-radius: 4px; margin-left: 6px; }

.foot-cta { position: sticky; bottom: 56px; display: flex; gap: 10px; padding: 10px 0; background: linear-gradient(transparent, var(--bg) 30%); }
.foot-cta .btn { flex: 1; }

/* ICP 备案号展示（工信部合规：链接至工信部备案系统） */
.beian { font-size: 10.5px; color: var(--ink3); text-align: center; padding: 12px 0 6px; }
.beian a { color: inherit; text-decoration: none; }
