/* 阿尔法投后管理系统 · 样式
   方向：像一份做工考究的财务报表——冷白纸面、墨蓝文字、大而轻的数字，靠留白和字重分层级，少用框线和底色。
   阿尔法橙只用在四处：标志、导航选中线、主按钮之外的关键提示（目标线、AI 按钮）、真正需要行动的计数。
   风险色只给真正要处理的事（注册地变更、高风险）。
   字体只用系统字体：服务器在国内，外部字体会拖慢甚至加载失败；数字用系统西文字体的等宽数字。 */
:root {
  --canvas: #e9ebee;
  --surface: #fbfbfc;
  --sunk: #f3f4f6;
  --ink: #0f1b2d;
  --ink-2: #3f4a5c;
  --muted: #8b93a1;
  --faint: #b5bbc5;
  --line: #e3e6ea;
  --line-2: #d2d6dd;
  --brand: #e8660d;     --brand-ink: #b54d05;   --brand-bg: #fdf1e7;
  --seal: #b42318;      --seal-bg: #fdf0ee;
  --amber: #9a5b00;     --amber-bg: #fdf5e3;
  --pine: #13705a;      --pine-bg: #eaf5f1;
  --indigo: #2b4c7e;    --indigo-bg: #edf2f9;
  --navy: #23395b;      --steel: #a9b8cd;
  --slate-bg: #f0f2f5;
  --radius: 12px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --num: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--canvas); color: var(--ink); font: 14px/1.65 var(--font); font-variant-numeric: tabular-nums;
       -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a { color: var(--indigo); text-decoration: none; }
a:hover { color: var(--ink); }
h1 { font-size: 24px; line-height: 1.3; margin: 0; font-weight: 600; letter-spacing: -.005em; }
h2 { font-size: 15px; margin: 0; font-weight: 600; letter-spacing: 0; }
h3 { font-size: 14px; margin: 0; font-weight: 600; }
code { background: var(--slate-bg); padding: 1px 6px; border-radius: 4px; font-size: 12.5px; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 2px; }
::selection { background: var(--brand-bg); }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.ink { color: var(--ink); }

/* ---- 顶栏 ---- */
.top { background: rgba(251, 251, 252, .9); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
       border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top-in { max-width: 1360px; margin: 0 auto; padding: 0 32px; height: 58px; display: flex; align-items: center; gap: 36px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; color: var(--ink); letter-spacing: .01em; }
.brand img { height: 26px; width: 26px; display: block; }
.brand:hover { color: var(--ink); }
.top nav { display: flex; gap: 6px; flex: 1; min-width: 0; height: 100%; }
.brand, .top nav a, .who button, .who span { white-space: nowrap; }
.top nav a { color: var(--ink-2); padding: 0 12px; display: flex; align-items: center; position: relative; font-size: 14px; }
.top nav a:hover { color: var(--ink); }
.top nav a.on { color: var(--ink); font-weight: 600; }
.top nav a.on::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--brand); }
.who { display: flex; align-items: center; gap: 14px; margin: 0; color: var(--muted); font-size: 13px; }
.who button.link { color: var(--ink-2); }

.wrap { max-width: 1360px; margin: 0 auto; padding: 32px 32px 80px; }
.flash { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--pine); color: var(--ink); padding: 11px 16px; border-radius: 8px; margin-bottom: 20px; }

/* ---- 页头 ---- */
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.head p { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.head p b, .head p .lastupdate { color: var(--ink-2); font-weight: 500; }
.lastupdate { color: var(--ink-2); font-weight: 500; }
.crumb { margin: 0 0 10px; font-size: 13px; }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--ink); }
.crumb a::before { content: "‹"; margin-right: 6px; }
.head-actions { display: flex; gap: 10px; align-items: center; }

/* ---- 迁址提醒区（全页唯一用力的地方）---- */
.moves { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.move { background: var(--surface); border: 1px solid #f1c9c4; border-radius: var(--radius); padding: 18px 22px 20px; box-shadow: inset 4px 0 0 var(--seal); }
.move-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.move-tag { color: var(--seal); font-weight: 600; font-size: 12.5px; display: inline-flex; align-items: center; gap: 6px; }
.move-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--seal); box-shadow: 0 0 0 3px rgba(180, 35, 24, .15); }
.move-co { font-weight: 600; font-size: 16px; color: var(--ink); }
.move-req { color: var(--seal); font-weight: 600; font-size: 13px; }
.move-top .spacer { flex: 1; }
.move-path { display: grid; grid-template-columns: 1fr auto 1fr; gap: 22px; align-items: center; margin-top: 14px; }
.place b { display: block; font-size: 26px; line-height: 1.2; font-weight: 600; letter-spacing: .01em; }
.place.from b { color: var(--faint); text-decoration: line-through; text-decoration-thickness: 1.5px; text-decoration-color: var(--line-2); }
.place.to b { color: var(--seal); }
.place span { display: block; margin-top: 4px; font-size: 12.5px; color: var(--ink-2); word-break: break-all; }
.place.from span { color: var(--muted); }
.move-arrow { font-size: 20px; color: var(--seal); }
.calm { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 20px; margin-bottom: 24px; color: var(--ink-2); }
.calm .tick, .todo .tick { width: 20px; height: 20px; border-radius: 50%; background: var(--pine-bg); color: var(--pine); font-size: 11px; font-weight: 700; display: grid; place-items: center; flex: none; }
.calm .bad { color: var(--seal); font-weight: 600; }
@media (max-width: 760px) { .move-path { grid-template-columns: 1fr; gap: 6px; } .move-arrow { transform: rotate(90deg); } }

/* ---- 卡片 ---- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 20px; }
.card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 18px 22px 12px; flex-wrap: wrap; }
.card-head h2 { font-size: 15px; }
.card-head .muted.small { font-size: 12.5px; }
.card-body { padding: 4px 22px 20px; }
.count { color: var(--muted); font-weight: 400; margin-left: 6px; font-size: 13px; }
.inbox { list-style: none; margin: 0; padding: 0 0 6px; }
.inbox li { display: grid; grid-template-columns: 64px 200px 1fr auto auto; gap: 14px; align-items: baseline; padding: 11px 22px; border-top: 1px solid var(--line); }
.inbox .co { font-weight: 600; color: var(--ink); }
@media (max-width: 900px) { .inbox li { grid-template-columns: 64px 1fr auto; } .inbox .co { grid-column: 2 / 4; } .inbox .sum { grid-column: 1 / 4; } }

/* ---- 筛选与表格 ---- */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px 12px; flex-wrap: wrap; }
.tabs { display: flex; gap: 2px; flex-wrap: wrap; background: var(--slate-bg); padding: 3px; border-radius: 9px; }
.tab { border: 0; background: none; padding: 5px 12px; border-radius: 7px; cursor: pointer; color: var(--ink-2); display: flex; gap: 6px; align-items: baseline; font-size: 13px; }
.tab:hover { color: var(--ink); }
.tab[aria-pressed="true"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(15, 27, 45, .08), 0 0 0 1px rgba(15, 27, 45, .04); }
.tab .n { font-size: 12px; color: var(--muted); font-weight: 400; }
.tab.alert .n { color: var(--seal); font-weight: 600; }
.search { width: 260px; max-width: 100%; }
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12.5px; padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface); position: sticky; top: 0; }
td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead tr:first-child th { border-top: 1px solid var(--line); }
.card > table thead tr:first-child th, .card > .tablewrap > table thead tr:first-child th { border-top: 0; }
tbody tr:last-child td { border-bottom: 0; }
tr.row { cursor: pointer; }
tr.row:hover td, tbody tr:hover td { background: var(--sunk); }
tr.row.sev-high td:first-child { box-shadow: inset 3px 0 0 var(--seal); }
tr.row.sev-medium td:first-child { box-shadow: inset 3px 0 0 #d79a2b; }
tr.row.is-selected td { background: var(--brand-bg); }
tr.row.pending td { color: var(--muted); }
tr.row.pending td.wait { font-size: 12.5px; }
td.co { min-width: 200px; }
td.co a { font-weight: 600; color: var(--ink); }
td.co a:hover { color: var(--indigo); }
td.where { min-width: 230px; max-width: 300px; }
td.where b { font-weight: 600; }
td.where small { display: block; color: var(--muted); font-size: 12px; line-height: 1.45; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
td.chg { min-width: 220px; max-width: 320px; }
td.chg .sum { display: block; margin-top: 3px; font-size: 13px; }
td.num { white-space: nowrap; font-family: var(--num); }
td.empty { text-align: center; color: var(--muted); padding: 40px 10px; }
.sub { display: block; color: var(--muted); font-size: 12px; font-weight: 400; margin-top: 1px; }
.req { display: inline-block; font-size: 12px; font-weight: 600; margin-left: 6px; padding: 0 6px; border-radius: 4px; vertical-align: 1px; }
.req.ok { color: var(--pine); background: var(--pine-bg); }
.req.bad { color: #fff; background: var(--seal); }

/* ---- 状态标记：一律“色点 + 文字”，不用实心色块 ---- */
.badge, .st, .pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; line-height: 1.6; font-weight: 500; white-space: nowrap; color: var(--ink-2); vertical-align: baseline; }
.badge::before, .st::before, .pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--faint); flex: none; }
.badge.high { color: var(--seal); } .badge.high::before { background: var(--seal); }
.badge.medium { color: var(--amber); } .badge.medium::before { background: #d79a2b; }
.badge.low::before { background: var(--faint); }
.badge.ai { color: #5b45a0; } .badge.ai::before { background: #8b74d1; }
.pill { color: var(--pine); } .pill::before { background: var(--pine); }
.pill.bad { color: var(--seal); } .pill.bad::before { background: var(--seal); }
.pill.warn { color: var(--amber); } .pill.warn::before { background: #d79a2b; }
.pill.demo { color: var(--muted); margin-left: 6px; }
.st-已确认, .st-已交割 { color: var(--pine); } .st-已确认::before, .st-已交割::before { background: var(--pine); }
.st-待确认, .st-部分待确认, .st-部分交割 { color: var(--amber); } .st-待确认::before, .st-部分待确认::before, .st-部分交割::before { background: #d79a2b; }
.st-取消投资 { color: var(--muted); } .st-取消投资::before { background: var(--line-2); }
.st-未交割 { color: var(--indigo); } .st-未交割::before { background: var(--indigo); }
.up { color: var(--seal); font-weight: 600; } .down { color: var(--pine); font-weight: 600; }

/* ---- 表单控件 ---- */
input, select, textarea { font: inherit; color: inherit; border: 1px solid var(--line-2); border-radius: 8px; padding: 7px 11px; background: var(--surface); transition: border-color .12s, box-shadow .12s; }
input::placeholder, textarea::placeholder { color: var(--faint); }
input:hover, select:hover, textarea:hover { border-color: #c3c9d2; }
input:focus, select:focus, textarea:focus { border-color: var(--indigo); outline: none; box-shadow: 0 0 0 3px rgba(43, 76, 126, .12); }
textarea { resize: vertical; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line-2); background: var(--surface); padding: 7px 16px; border-radius: 8px;
       cursor: pointer; font-weight: 500; font-size: 13.5px; color: var(--ink); transition: background .12s, border-color .12s; }
.btn:hover { background: var(--sunk); border-color: #c3c9d2; color: var(--ink); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.primary:hover { background: #22324a; border-color: #22324a; }
.btn:disabled { opacity: .5; cursor: default; }
.btn.small { padding: 4px 11px; font-size: 12.5px; border-radius: 7px; }
button.link, a.link { background: none; border: 0; color: var(--indigo); cursor: pointer; padding: 0; font-weight: 500; }
button.link:hover, a.link:hover { color: var(--ink); }
button.link.danger { color: var(--seal); }
form { margin: 0; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.stack label { display: flex; flex-direction: column; gap: 5px; color: var(--ink-2); font-size: 12.5px; }
.stack .btn { align-self: flex-start; }
.stack input[type=file] { border-style: dashed; padding: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cols > .card { margin-bottom: 20px; }
@media (max-width: 900px) { .cols, .row2 { grid-template-columns: 1fr; } .wrap { padding: 20px 16px 56px; } .top-in { padding: 0 16px; gap: 16px; } }
.actions { white-space: nowrap; text-align: right; }
.actions form { display: inline-block; margin-left: 12px; }
.inline-form { display: flex; gap: 6px; align-items: center; }
.inline-form input { width: 150px; padding: 4px 9px; font-size: 13px; }
tr.dim td { color: var(--muted); }

/* ---- 右侧抽屉 ---- */
.scrim { position: fixed; inset: 0; background: rgba(15, 27, 45, .28); opacity: 0; pointer-events: none; transition: opacity .18s; z-index: 30; }
.scrim.on { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(640px, 100vw); background: var(--surface); box-shadow: -12px 0 40px rgba(15, 27, 45, .14);
          transform: translateX(102%); transition: transform .22s cubic-bezier(.2, .7, .2, 1); z-index: 40; display: flex; flex-direction: column; }
.drawer.on { transform: none; }
.drawer-bar { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px 10px 24px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }
.drawer-body { overflow-y: auto; flex: 1; }
.x { border: 0; background: none; font-size: 20px; line-height: 1; cursor: pointer; color: var(--muted); padding: 5px 9px; border-radius: 6px; }
.x:hover { background: var(--slate-bg); color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .drawer, .scrim { transition: none; } }

/* ---- 详情内容（抽屉与整页共用）---- */
.pn { padding: 22px 26px 44px; }
.pn-head h1 { font-size: 20px; }
.pn-head .meta { margin: 6px 0 0; color: var(--muted); font-size: 12.5px; }
.pn-actions { display: flex; gap: 10px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.pn .alert { background: var(--amber-bg); color: var(--amber); padding: 9px 13px; border-radius: 8px; margin: 14px 0 0; }
.sec { margin-top: 26px; }
.sec-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.where-big b { font-size: 21px; font-weight: 600; }
.where-big p { margin: 3px 0 0; color: var(--ink-2); font-size: 13px; }
.where-big .req { margin-left: 0; margin-top: 6px; }
.chgs { list-style: none; margin: 0; padding: 0; }
.chgs li { display: grid; grid-template-columns: 58px 1fr auto; gap: 10px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--line); }
.chgs li.done { opacity: .5; }
.chgs li:last-child { border-bottom: 0; }
.kv { display: grid; grid-template-columns: 100px 1fr; gap: 7px 16px; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-all; }
details { margin-top: 10px; }
summary { cursor: pointer; color: var(--ink-2); }
.scope { color: var(--ink-2); font-size: 12.5px; margin: 6px 0 0; }
.factors { list-style: none; margin: 0; padding: 0; }
.factor { border-bottom: 1px solid var(--line); }
.factor:last-child { border-bottom: 0; }
.factor-btn { width: 100%; display: grid; grid-template-columns: 58px 1fr auto 18px; gap: 10px; align-items: center; text-align: left; border: 0; background: none; padding: 10px 6px; cursor: pointer; border-radius: 6px; }
.factor-btn:hover { background: var(--sunk); }
.factor-btn .name { font-weight: 600; }
.factor-btn .chev { color: var(--muted); transition: transform .15s; }
.factor-btn[aria-expanded="true"] .chev { transform: rotate(90deg); }
.detail { padding: 2px 6px 16px 68px; }
.detail .wait, .detail .err { color: var(--ink-2); font-size: 13px; padding: 6px 0; }
.detail .err { color: var(--seal); }
.detail .sumline { margin: 2px 0 6px; font-weight: 600; }
.detail .analysis { margin: 0 0 8px; color: var(--ink-2); font-size: 12.5px; }
.dtable { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
.dtable table { font-size: 12.5px; }
.dtable th { position: static; padding: 7px 10px; }
.dtable td { padding: 7px 10px; }
.detail .foot { margin-top: 6px; display: flex; gap: 12px; align-items: baseline; color: var(--muted); font-size: 12px; flex-wrap: wrap; }

/* ---- 登录：整页一块底色，正中一张卡片；标志只出现一次 ---- */
body:has(.login-page) .wrap { max-width: none; padding: 0; }
.login-page { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 20px 32px;
              background: radial-gradient(900px 520px at 88% 108%, rgba(232, 102, 13, .10), transparent 70%),
                          radial-gradient(700px 420px at 6% -8%, rgba(35, 57, 91, .07), transparent 70%), var(--canvas); }
.login { width: min(400px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 40px 40px 36px;
         box-shadow: 0 24px 60px rgba(15, 27, 45, .08), 0 2px 6px rgba(15, 27, 45, .04); position: relative; overflow: hidden; }
.login::before { content: ""; position: absolute; left: 40px; right: 40px; top: 0; height: 2px; border-radius: 0 0 2px 2px; background: var(--brand); }
.login .lockup { display: block; width: 132px; height: auto; margin: 4px 0 28px -3px; }
.login h1 { font-size: 21px; font-weight: 600; white-space: nowrap; }
.login .muted { margin: 6px 0 0; font-size: 13.5px; }
.login form { display: flex; flex-direction: column; gap: 16px; margin-top: 28px; }
.login label { display: flex; flex-direction: column; gap: 6px; color: var(--ink-2); font-size: 13px; }
.login input { padding: 10px 13px; font-size: 15px; background: var(--surface); }
.login .btn { margin-top: 8px; padding: 11px; font-size: 15px; border-radius: 9px; }
.login-foot { margin: 22px 0 0; color: var(--muted); font-size: 12px; }
.err { color: var(--seal); margin: 0; }
@media (max-width: 480px) { .login { padding: 32px 24px 28px; } .login::before { left: 24px; right: 24px; } }

/* ---- 窄屏（手机）---- */
@media (max-width: 760px) {
  .top-in { gap: 10px; padding: 0 12px; height: 52px; }
  .brand { font-size: 14px; gap: 8px; }
  .top nav a { padding: 0 8px; }
  .who span { display: none; }
  h1 { font-size: 20px; }
  .head { align-items: flex-start; }
  .toolbar { padding: 10px; }
  .search { width: 100%; }
  .card-head, .card-body { padding-left: 16px; padding-right: 16px; }
  .inbox li { padding-left: 16px; padding-right: 16px; }
  .pn { padding: 16px 16px 40px; }
  .detail { padding-left: 4px; }
}
@media (max-width: 400px) { .brand .name { display: none; } .top nav { overflow-x: auto; } }

/* ---- 基金页面 ---- */
.tabs-bar { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 0 0 24px; overflow-x: auto; }
.tabs-bar a { padding: 10px 14px 12px; color: var(--muted); white-space: nowrap; position: relative; font-size: 14px; }
.tabs-bar a:hover { color: var(--ink); }
.tabs-bar a.on { color: var(--ink); font-weight: 600; }
.tabs-bar a.on::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--ink); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); margin-bottom: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.kpis-small { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.kpi { padding: 20px 24px 20px; display: flex; flex-direction: column; gap: 4px; border-left: 1px solid var(--line); }
.kpi:first-child { border-left: 0; }
.kpi .l { color: var(--muted); font-size: 13px; }
.kpi .v { font-family: var(--num); font-size: 30px; font-weight: 500; line-height: 1.2; letter-spacing: -.02em; }
.kpi .v small { font-family: var(--font); font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 5px; letter-spacing: 0; }
.kpi .v.neg, .neg { color: var(--seal); }
.kpi .s { color: var(--muted); font-size: 12.5px; }
.kpis-small .kpi .v { font-size: 23px; }
@media (max-width: 900px) { .kpi { border-left: 0; border-top: 1px solid var(--line); } .kpi:first-child { border-top: 0; } }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.n { font-family: var(--num); }
th.ctr { text-align: center; }
.sub-head th { font-weight: 400; font-size: 12px; }
tr.strong td { font-weight: 600; background: var(--sunk); }
tr.total td { background: var(--brand-bg); }
tr.sec td { font-weight: 600; color: var(--ink-2); background: var(--sunk); padding: 9px 14px; font-size: 13px; }
tr.cancelled td { color: var(--faint); }
tr.cancelled td.co a { color: var(--muted); font-weight: 500; }
tr.clickable { cursor: pointer; }
td.note { max-width: 260px; color: var(--ink-2); font-size: 13px; }
.pad { padding: 0 22px; }
.card-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 22px; border-top: 1px solid var(--line); }
.legend { padding: 0 22px 10px; margin: 0; }
.lg { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin: 0 5px 0 10px; vertical-align: 0; }
.lg.r2 { background: #e5a35c; } .lg.r3 { background: #6aa88a; } .lg.r4 { background: #9b87c9; }
tr.r2 td:first-child { box-shadow: inset 3px 0 0 #e5a35c; }
tr.r3 td:first-child { box-shadow: inset 3px 0 0 #6aa88a; }
tr.r4 td:first-child { box-shadow: inset 3px 0 0 #9b87c9; }
.ret { padding: 16px 22px 14px; border-top: 1px solid var(--line); }
.ret.foot { display: flex; flex-wrap: wrap; gap: 6px 32px; background: var(--sunk); border-radius: 0 0 var(--radius) var(--radius); font-size: 13px; color: var(--ink-2); }
.ret-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.ret-nums { display: flex; flex-wrap: wrap; gap: 4px 26px; margin-top: 6px; color: var(--muted); font-size: 13px; }
.ret-nums b { color: var(--ink); font-family: var(--num); font-weight: 600; }
.ret-note { margin: 4px 0 0; }
.bar { display: flex; height: 6px; background: var(--slate-bg); border-radius: 3px; overflow: hidden; }
.bar .ok { background: var(--navy); }
.bar .pd { background: var(--steel); }
.todo { list-style: none; margin: 0; padding: 0 0 6px; }
.todo li { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: baseline; padding: 13px 22px; border-top: 1px solid var(--line); }
.todo li.ok { color: var(--ink-2); }
.todo .t b { font-weight: 600; margin-right: 4px; }
.fundcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; padding: 4px 22px 22px; }
.fundcard { display: block; border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.fundcard:hover { border-color: var(--line-2); box-shadow: 0 6px 20px rgba(15, 27, 45, .07); color: var(--ink); }
.fc-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.fc-top b { font-size: 16px; font-weight: 600; }
.fc-nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 16px 0 14px; }
.fc-nums .l { display: block; color: var(--muted); font-size: 12px; }
.fc-nums b { font-family: var(--num); font-size: 18px; font-weight: 500; letter-spacing: -.01em; }
.mini-ret { display: grid; grid-template-columns: 78px 1fr 52px; gap: 12px; align-items: center; font-size: 12.5px; margin-top: 8px; color: var(--ink-2); }
.mini-ret .n { text-align: right; font-family: var(--num); color: var(--ink-2); }
.mini-ret .n.good { color: var(--pine); font-weight: 600; }
.empty-note { padding: 24px 22px; color: var(--muted); margin: 0; }
.as-link { text-decoration: none !important; }
.grid { max-height: 70vh; overflow: auto; }
.gridtable { font-size: 12px; }
.gridtable td { padding: 5px 9px; white-space: nowrap; border-bottom: 1px solid var(--line); }
.budget td:first-child { width: 36%; }

/* ---- 与投后数据打通 ---- */
.impact { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-2); }
.impact b { color: var(--ink); }
.profile { margin: 8px 0 0; color: var(--ink-2); font-size: 13px; }
.compact-t { font-size: 12.5px; }
.compact-t th, .compact-t td { padding: 7px 9px; }

/* ---- 编辑表单 ---- */
.formcard { max-width: 880px; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 22px; padding: 8px 24px 22px; }
.fld { display: flex; flex-direction: column; gap: 5px; }
.fld > span { color: var(--ink-2); font-size: 13px; }
.fld.wide, .fgroup { grid-column: 1 / -1; }
.fld small { font-size: 12px; }
.fld input, .fld select, .fld textarea { width: 100%; }
.fgroup { margin: 10px 0 -4px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.formbar { display: flex; gap: 10px; align-items: center; padding: 16px 24px; border-top: 1px solid var(--line); background: var(--sunk); border-radius: 0 0 var(--radius) var(--radius); }
.formbar .spacer { flex: 1; }
.btn.danger { color: var(--seal); border-color: #efc4bf; }
.btn.danger:hover { background: var(--seal-bg); }
@media (max-width: 760px) { .fgrid { grid-template-columns: 1fr; padding: 8px 16px 18px; } }
.row3 { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 14px 22px; margin-bottom: 14px; align-items: start; }
.userform h3 { margin-bottom: 10px; }
.checks { gap: 6px; }
.inline-form .btn.small { white-space: nowrap; }
@media (max-width: 900px) { .row3 { grid-template-columns: 1fr; } }

/* ---- 图表 ---- */
.chart { width: 100%; padding: 4px 16px 10px; }
.cols-12 { grid-template-columns: 1fr 2fr; }
@media (max-width: 900px) { .cols-12 { grid-template-columns: 1fr; } }

/* ---- 表格交互：排序、表头固定、首列固定 ---- */
th.sort { cursor: pointer; user-select: none; }
th.sort:hover { color: var(--ink); }
th.sort::after { content: ""; display: inline-block; width: 0; height: 0; margin-left: 6px; vertical-align: 2px; border: 3.5px solid transparent; border-top-color: var(--line-2); border-bottom: 0; }
th.sort[aria-sort="ascending"]::after { border-top: 0; border-bottom: 3.5px solid var(--ink); }
th.sort[aria-sort="descending"]::after { border-top-color: var(--ink); }
.tablewrap.tall { max-height: 74vh; overflow: auto; }
.tablewrap.tall thead th { position: sticky; top: 0; z-index: 2; }
.freeze-1 td:nth-child(1), .freeze-1 th:nth-child(1),
.freeze-2 td:nth-child(2), .freeze-2 th:nth-child(2) { position: sticky; left: 0; z-index: 1; background: var(--surface); }
.freeze-1 thead th:nth-child(1), .freeze-2 thead th:nth-child(2) { z-index: 3; }
.freeze-1 tbody tr:hover td:nth-child(1), .freeze-2 tbody tr:hover td:nth-child(2) { background: var(--sunk); }
.freeze-1 tr.strong td:nth-child(1), .freeze-2 tr.strong td:nth-child(2) { background: var(--sunk); }
.freeze-1 tr.is-selected td:nth-child(1) { background: var(--brand-bg); }
.freeze-1 td:nth-child(1), .freeze-2 td:nth-child(2) { box-shadow: 1px 0 0 var(--line); }
tr.row.sev-high td:first-child.co { box-shadow: inset 3px 0 0 var(--seal), 1px 0 0 var(--line); }
tr.row.sev-medium td:first-child.co { box-shadow: inset 3px 0 0 #d79a2b, 1px 0 0 var(--line); }
.tablewrap td.actions, .tablewrap thead th.act { position: sticky; right: 0; z-index: 1; background: var(--surface); box-shadow: -1px 0 0 var(--line); }
.tablewrap thead th.act { z-index: 3; }
.tablewrap tbody tr:hover td.actions { background: var(--sunk); }
a.edit-btn { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 7px; font-size: 12.5px; color: var(--ink-2); font-weight: 500; }
a.edit-btn:hover { background: var(--slate-bg); color: var(--ink); }
a.edit-btn svg { width: 12px; height: 12px; }

/* ---- 注册地 / 存量风险清单 ---- */
.geo, .risklist { list-style: none; margin: 0; padding: 0 0 6px; }
.geo > li { display: grid; grid-template-columns: 100px 1fr; gap: 14px; padding: 12px 22px; border-top: 1px solid var(--line); }
.geo-city { display: flex; flex-direction: column; }
.geo-city b { font-size: 14px; font-weight: 600; }
.geo-ds { display: flex; flex-direction: column; gap: 7px; }
.geo-d { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: baseline; }
.geo-name { border: 1px solid var(--line-2); background: var(--surface); border-radius: 999px; padding: 1px 11px; cursor: pointer; white-space: nowrap; font-size: 12.5px; color: var(--ink); }
.geo-name:hover { border-color: var(--ink-2); }
.geo-name.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.geo-name .n { margin-left: 6px; font-weight: 600; font-family: var(--num); }
.geo-cos, .rc { font-size: 13px; color: var(--ink-2); line-height: 1.75; }
.geo-cos a, .rc a { color: var(--ink); }
.geo-cos a:hover, .rc a:hover { color: var(--indigo); }
.risklist li { display: grid; grid-template-columns: 64px 110px 1fr; gap: 12px; align-items: baseline; padding: 12px 22px; border-top: 1px solid var(--line); }
.rf { font-size: 13.5px; font-weight: 600; }

/* ---- 待确认问题 ---- */
.tabcount { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 6px; border-radius: 9px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 600; text-align: center; line-height: 17px; font-family: var(--num); }
.qintro { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 18px; flex-wrap: wrap; }
.qintro p { margin: 0 0 4px; max-width: 760px; color: var(--ink-2); }
.qintro-side { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.ai-review { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.q { padding: 20px 24px 22px; }
.q-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.q-head h3 { font-size: 15.5px; flex: 1; min-width: 260px; line-height: 1.55; font-weight: 600; }
.q-detail { list-style: none; margin: 14px 0 0; padding: 12px 16px; background: var(--sunk); border-radius: 10px; font-size: 13px; color: var(--ink-2); }
.q-detail li { padding: 3px 0; display: flex; flex-direction: column; gap: 4px; }
.cells { display: flex; flex-wrap: wrap; gap: 6px; }
.cell { font-size: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1px 8px; color: var(--ink-2); }
.cell b { color: var(--ink); margin-right: 4px; font-weight: 600; }
.q-form { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.q-opt { display: flex; gap: 12px; align-items: flex-start; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; transition: border-color .12s, background .12s; }
.q-opt:hover { border-color: var(--line-2); background: var(--sunk); }
.q-opt:has(input:checked) { border-color: var(--ink); background: var(--surface); box-shadow: 0 0 0 1px var(--ink); }
.q-opt input { margin-top: 5px; accent-color: var(--ink); }
.q-opt .effect { display: block; color: var(--amber); margin-top: 3px; font-size: 12.5px; }
.q-opt .hint { display: inline-block; margin: 4px 0 0; padding: 1px 9px; border-radius: 999px; background: var(--pine-bg); color: var(--pine); font-size: 12px; }
.q-evidence { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 6px 0 0; }
.notes.rules li form { flex: none; }
.q-form textarea { margin-top: 4px; }
.q-actions { display: flex; gap: 16px; align-items: center; margin-top: 6px; }
.q-opts-ro { margin: 12px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 13px; }
.q-answer { margin: 12px 0 0; font-size: 13px; color: var(--ink-2); }
.ai-read { margin: 12px 0 0; padding: 11px 16px; border-left: 2px solid var(--pine); background: var(--pine-bg); border-radius: 0 10px 10px 0; font-size: 13px; }
.ai-read > b { display: block; color: var(--pine); font-size: 12px; font-weight: 600; margin-bottom: 2px; }
.ai-read p { margin: 0; white-space: pre-line; }
.ai-read .doubt { margin-top: 6px; color: var(--amber); }
.ai-read.explain { border-left-color: #c98a1c; background: var(--amber-bg); }
.ai-read.explain > b { color: var(--amber); }
.q-explain { margin: 10px 0 0; }
.q.just { border-color: #b9dccf; box-shadow: 0 0 0 3px var(--pine-bg); }
.notes { list-style: none; margin: 0; padding: 0 0 6px; }
.notes li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 22px; border-top: 1px solid var(--line); font-size: 13px; }
.pn .notes li { padding: 8px 0; }
.note-form { display: flex; gap: 8px; margin-top: 10px; }
.card > .note-form { padding: 4px 22px 18px; }
.note-form input { flex: 1; }
.inline-upload { display: inline-flex; align-items: center; gap: 8px; }
.inline-upload label { cursor: pointer; }

/* ---- 问 AI：白色胶囊 + 橙色光点，安静地待在角落 ---- */
.ai-fab { position: fixed; right: 24px; bottom: 24px; z-index: 45; display: flex; align-items: center; gap: 10px; padding: 6px 18px 6px 6px;
          border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--ink);
          font-weight: 600; font-size: 14px; letter-spacing: .02em; cursor: grab; touch-action: none; user-select: none;
          box-shadow: 0 8px 24px rgba(15, 27, 45, .12), 0 1px 3px rgba(15, 27, 45, .08); transition: transform .15s ease, box-shadow .15s ease, border-color .15s; }
.ai-fab:hover { transform: translateY(-1px); border-color: var(--line-2); box-shadow: 0 12px 30px rgba(15, 27, 45, .16), 0 1px 3px rgba(15, 27, 45, .08); }
.ai-fab.dragging { cursor: grabbing; transform: scale(1.03); transition: none; }
.ai-fab:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
.ai-orb { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--brand);
          box-shadow: 0 0 0 4px var(--brand-bg); }
.ai-orb svg { width: 16px; height: 16px; }
.ai-fab.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.ai-fab.on .ai-orb { box-shadow: 0 0 0 4px rgba(232, 102, 13, .25); }
@media (prefers-reduced-motion: reduce) { .ai-fab, .ai-fab:hover { transition: none; transform: none; } }
.ai-panel { position: fixed; right: 24px; bottom: 84px; z-index: 46; width: min(440px, calc(100vw - 28px)); height: min(640px, calc(100vh - 110px));
            background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
            box-shadow: 0 24px 60px rgba(15, 27, 45, .18), 0 2px 8px rgba(15, 27, 45, .06); display: flex; flex-direction: column; overflow: hidden; }
.ai-panel[hidden] { display: none; }
.ai-panel.left { right: auto; left: 24px; }
.ai-panel header { display: flex; align-items: center; gap: 10px; padding: 14px 12px 12px 20px; border-bottom: 1px solid var(--line); }
.ai-panel header b { font-weight: 600; }
.ai-panel header .x { margin-left: auto; }
.ai-log { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; background: var(--sunk); }
.ai-msg { max-width: 96%; padding: 10px 14px; border-radius: 12px; font-size: 13.5px; line-height: 1.7; }
.ai-msg p { margin: 0 0 6px; } .ai-msg p:last-child { margin-bottom: 0; }
.ai-msg ul { margin: 4px 0 6px; padding-left: 18px; }
.ai-msg.bot { background: var(--surface); border: 1px solid var(--line); align-self: flex-start; border-top-left-radius: 4px; }
.ai-msg.me { background: var(--ink); color: #fff; align-self: flex-end; border-top-right-radius: 4px; }
.ai-msg.wait { color: var(--muted); }
.ai-msg.err { border-color: #efc4bf; color: var(--seal); }
.ai-sugs { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.ai-sugs button { text-align: left; border: 1px solid var(--line); background: var(--sunk); border-radius: 8px; padding: 7px 11px; cursor: pointer; font-size: 13px; color: var(--ink-2); }
.ai-sugs button:hover { border-color: var(--line-2); background: var(--surface); color: var(--ink); }
.ai-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.ai-input textarea { flex: 1; resize: none; }
.ai-note { margin: 0; padding: 0 14px 12px; font-size: 11.5px; color: var(--muted); display: flex; gap: 10px; justify-content: space-between; }
@media print { .ai-fab, .ai-panel { display: none !important; } }
.ai-table { overflow-x: auto; margin: 6px 0; }
.ai-table table { font-size: 12px; border: 1px solid var(--line); border-radius: 6px; }
.ai-table th { position: static; padding: 5px 9px; background: var(--sunk); }
.ai-table td { padding: 5px 9px; white-space: nowrap; }

/* ---- 基金概览：规模 / 投资 / 业绩，一条横幅，各自标明统计时点 ---- */
.glance { display: grid; grid-template-columns: 1fr 1.2fr 1.5fr; margin-bottom: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.g-block { padding: 20px 26px 18px; border-left: 1px solid var(--line); display: flex; flex-direction: column; }
.g-block:first-child { border-left: 0; }
.g-block header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; white-space: nowrap; }
.g-block header h2 { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.asof { font-size: 12px; color: var(--muted); white-space: nowrap; }
.asof small { color: var(--faint); font-size: 11.5px; margin-left: 2px; }
.card-head .asof { margin-left: 6px; margin-right: auto; }
.g-nums { display: grid; grid-template-columns: repeat(auto-fit, minmax(104px, 1fr)); gap: 14px 22px; margin-bottom: 18px; }
.g-nums > div { display: flex; flex-direction: column; gap: 2px; }
.g-nums .l { color: var(--muted); font-size: 12.5px; }
.g-nums .v { white-space: nowrap; font-family: var(--num); font-size: 28px; font-weight: 500; line-height: 1.2; letter-spacing: -.02em; }
.g-nums .v.sm { font-size: 18px; }
.g-nums .v small { font-family: var(--font); font-size: 12.5px; font-weight: 400; color: var(--muted); margin-left: 4px; letter-spacing: 0; }
.g-nums .s { color: var(--muted); font-size: 12px; }
.g-block.perf { border-radius: 0 var(--radius) var(--radius) 0; }
.g-block.perf header h2::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); margin-right: 8px; vertical-align: 2px; }
.g-empty { margin: 4px 0 0; }
.g-sub { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.g-sub b { color: var(--ink); font-weight: 600; font-family: var(--num); }
@media (max-width: 1100px) { .glance { grid-template-columns: 1fr; } .g-block { border-left: 0; border-top: 1px solid var(--line); } .g-block:first-child { border-top: 0; } .g-block.perf { border-radius: 0 0 var(--radius) var(--radius); } }

.empty-fund { padding: 26px 28px; }
.empty-fund h2 { font-size: 17px; margin-bottom: 6px; }
.todo-fill { list-style: none; margin: 18px 0; padding: 0; border-top: 1px solid var(--line); }
.todo-fill li { display: grid; grid-template-columns: 160px 1fr auto; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.todo-fill li span { color: var(--ink-2); font-size: 13px; }

/* ---- 基金列表：数字列右对齐、内容垂直居中、空基金只占一行说明 ---- */
.fundlist td { vertical-align: middle; padding-top: 16px; padding-bottom: 16px; }
.fundlist th:first-child, .fundlist td:first-child { padding-left: 24px; }
.fundlist th:last-child, .fundlist td:last-child { padding-right: 24px; }
.fundlist td.co { min-width: 240px; }
.fundlist td.co a { font-size: 15px; }
.fundlist td.n { font-size: 15px; }
.fundlist td.n .sub { font-family: var(--font); font-size: 12px; }
.fundlist th.c-ret, .fundlist td.c-ret { padding-left: 40px; width: 260px; }
.retlist { display: grid; grid-template-columns: auto 1fr 38px; gap: 5px 10px; align-items: center; font-size: 12.5px; color: var(--ink-2); }
.retlist .bar { height: 4px; min-width: 80px; }
.retlist .rl-n { text-align: right; font-family: var(--num); color: var(--ink); }
.retlist .rl-n.good { color: var(--pine); }
.fundlist tr.is-empty td.co a { color: var(--ink-2); }
.pending-note { color: var(--faint); font-size: 13px; }
.pending-note a { margin-left: 12px; font-size: 13px; }
.table-note { margin: 0; padding: 12px 24px 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
/* 数字列的排序箭头放在文字左边，表头文字才能和数字的右边缘对齐 */
th.n.sort::after { display: none; }
th.n.sort::before { content: ""; display: inline-block; width: 0; height: 0; margin-right: 6px; vertical-align: 2px; border: 3.5px solid transparent; border-top-color: var(--line-2); border-bottom: 0; }
th.n.sort[aria-sort="ascending"]::before { border-top: 0; border-bottom: 3.5px solid var(--ink); }
th.n.sort[aria-sort="descending"]::before { border-top-color: var(--ink); }
.fundcard.is-empty { border-style: dashed; background: var(--sunk); }
.fundcard.is-empty .fc-empty { margin: 18px 0 2px; color: var(--muted); font-size: 13px; }

/* ---- 投资数据表：每行一行高，长内容收起 ---- */
.invtable td { vertical-align: middle; padding-top: 11px; padding-bottom: 11px; }
.invtable td.nm { white-space: nowrap; min-width: 0; }
.invtable td.nm a { font-weight: 500; }
.renamed { display: inline-block; margin-left: 6px; font-size: 11px; line-height: 16px; padding: 0 4px; border-radius: 4px; color: var(--muted); border: 1px solid var(--line-2); vertical-align: 1px; cursor: default; }
.invtable td.rcell { white-space: nowrap; font-size: 13px; }
.faint { color: var(--faint); }
td.note { max-width: 260px; min-width: 160px; color: var(--ink-2); font-size: 12.5px; line-height: 1.5; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.invtable td.note { display: table-cell; white-space: nowrap; text-overflow: ellipsis; max-width: 240px; }

/* 悬停说明：替代浏览器自带的 title 提示（那个要等一秒、样式也和页面不搭） */
.tip { position: fixed; z-index: 60; max-width: 360px; padding: 7px 11px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 12.5px; line-height: 1.55;
       box-shadow: 0 8px 24px rgba(15, 27, 45, .2); pointer-events: none; opacity: 0; transform: translateY(2px); transition: opacity .12s, transform .12s; }
.tip.on { opacity: 1; transform: none; }



/* ---- 监测页：注册地分布、存量风险 ---- */
.cols-geo { grid-template-columns: 1.35fr 1fr; align-items: start; }
.geo2 { padding: 0 0 8px; }
.g-city { display: grid; grid-template-columns: 150px 1fr; gap: 16px; padding: 14px 22px; border-top: 1px solid var(--line); }
.g-city-h { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 8px; align-self: start; }
.g-city-h b { font-weight: 600; }
.g-n { font-family: var(--num); font-size: 15px; font-weight: 500; color: var(--ink); }
.g-bar { grid-column: 1 / -1; height: 3px; background: var(--slate-bg); border-radius: 2px; overflow: hidden; }
.g-bar span { display: block; height: 100%; background: var(--navy); border-radius: 2px; }
.g-city ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.g-city li { display: grid; grid-template-columns: 64px 22px 1fr; gap: 10px; align-items: baseline; font-size: 13px; }
.g-d { border: 0; background: none; padding: 0; text-align: left; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.g-d:hover, .g-d.on { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--brand); }
.g-d.on { font-weight: 600; }
.g-dn { font-family: var(--num); color: var(--muted); text-align: right; }
.g-cos { display: flex; flex-wrap: wrap; gap: 2px 14px; line-height: 1.7; }
.g-cos a { color: var(--ink); }
.g-cos a:hover { color: var(--indigo); }
.riskco { list-style: none; margin: 0; padding: 0; }
.riskco li { display: grid; grid-template-columns: 140px 1fr; gap: 14px; align-items: baseline; padding: 13px 22px; border-top: 1px solid var(--line); }
.rk-co { color: var(--ink); font-weight: 600; }
.rk-items { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13px; color: var(--ink-2); }
.rk { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.rk::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--faint); }
.rk.high::before { background: var(--seal); } .rk.medium::before { background: #d79a2b; }
.rk b { font-family: var(--num); font-weight: 600; color: var(--ink); }
@media (max-width: 1000px) { .cols-geo { grid-template-columns: 1fr; } .g-city { grid-template-columns: 1fr; gap: 8px; } }

.more-links { padding: 4px 0; }
.more-links a { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 14px 24px; color: var(--ink); }
.more-links a + a { border-top: 1px solid var(--line); }
.more-links a:hover { background: var(--sunk); }
.more-links b { font-weight: 600; }
.more-links span { grid-column: 1; color: var(--muted); font-size: 12.5px; }
.more-links i { grid-column: 2; grid-row: 1 / 3; align-self: center; font-style: normal; color: var(--faint); font-size: 18px; }

/* ---- 投资表单：按流程分段，状态决定哪些格子能填 ---- */
.invform { max-width: 920px; }
.isec { border: 0; margin: 0; padding: 20px 24px 6px; border-top: 1px solid var(--line); min-width: 0; }
.isec:first-child { border-top: 0; }
.isec legend { float: left; width: 100%; padding: 0; margin-bottom: 12px; font-weight: 600; font-size: 14px; }
.isec legend small { margin-left: 8px; font-weight: 400; color: var(--muted); font-size: 12px; }
.isec > *:not(legend) { clear: both; }
.isec .fgrid { padding: 0 0 14px; }
.seg { display: inline-flex; background: var(--slate-bg); padding: 3px; border-radius: 9px; gap: 2px; flex-wrap: wrap; }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 6px 16px; border-radius: 7px; color: var(--ink-2); font-size: 13.5px; }
.seg input:checked + span { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(15, 27, 45, .1), 0 0 0 1px rgba(15, 27, 45, .05); }
.seg input:focus-visible + span { outline: 2px solid var(--indigo); outline-offset: 1px; }
.seg.small span { padding: 4px 12px; font-size: 13px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 12px; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--ink); }
.check[hidden] { display: none; }
.stages { display: flex; flex-direction: column; }
.stage { display: grid; grid-template-columns: 56px 1fr 1fr; gap: 14px 22px; align-items: end; padding: 10px 0; border-top: 1px dashed var(--line); }
.stage:first-child { border-top: 0; padding-top: 0; }
.stage > b { align-self: center; font-weight: 600; font-size: 13px; color: var(--ink-2); padding-top: 18px; }
.stage.off > b { color: var(--faint); }
.fld.off span { color: var(--faint); }
.fld.off input { background: var(--sunk); border-color: var(--line); color: var(--faint); cursor: not-allowed; }
.stage-note { margin: 4px 0 14px; }
.rets { display: flex; flex-direction: column; gap: 10px; padding-bottom: 16px; }
.rets[hidden] { display: none; }
.ret-row { display: grid; grid-template-columns: 110px auto; gap: 14px; align-items: center; }
.rn { font-size: 13.5px; color: var(--ink-2); }
#f-ret-hint { margin: 0 0 12px; }
.newco summary { color: var(--indigo); font-size: 13px; cursor: pointer; }
.newco input { margin-top: 8px; width: 100%; }
.err-flash { border-left-color: var(--seal); color: var(--seal); }
@media (max-width: 700px) { .stage { grid-template-columns: 1fr; } .stage > b { padding-top: 0; } .ret-row { grid-template-columns: 1fr; gap: 6px; } }
.ret-row .seg { justify-self: start; }
