/* ============ 百合CP交易所 · 设计系统 v2 ============ */
:root {
  --bg: #0e1015;
  --bg-soft: #14171e;
  --panel: #181c24;
  --panel-solid: #181c24;
  --panel-2: #1e222c;
  --panel-3: #232833;
  --line: #252a34;
  --line-soft: #20252e;
  --line2: #333a48;
  --text: #c9cdd6;
  --text-hi: #e9edf4;
  --dim: #7b8291;
  --dim2: #6b7280;
  --pink: #f0b90b;
  --violet: #a970ff;
  --gold: #f0b90b;
  --blue: #3d8bfd;
  --grad: linear-gradient(180deg, #f7c948, #e0a32e);
  --up: #ff4d4f;
  --down: #00b578;
  --flat: #7b8291;
  --mono: "DIN Alternate", "Bahnschrift", "Consolas", ui-monospace, monospace;
  --shadow: 0 6px 20px rgba(0, 0, 0, .4);
  --r-lg: 6px;
  --r-md: 4px;
  --r-sm: 3px;
}
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Microsoft YaHei UI", "PingFang SC", "Hiragino Sans GB", system-ui, sans-serif;
  font-size: 13px; line-height: 1.45;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex; flex-direction: column;
  letter-spacing: .1px;
}
a { color: inherit; text-decoration: none; }
input, button, select { font: inherit; color: inherit; }
input {
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 10px 12px; width: 100%; outline: none; transition: border-color .18s, box-shadow .18s, background .18s;
}
input:focus { border-color: rgba(240, 185, 11, .6); box-shadow: 0 0 0 3px rgba(240, 185, 11, .15); background: rgba(255, 255, 255, .05); }
input::placeholder { color: var(--dim2); }
/* 下拉框与 input 同肤：暗色底 + 自定义箭头 + 暗色弹层（修复原生白底弹窗违和） */
:root { color-scheme: dark; }
select {
  appearance: none; -webkit-appearance: none;
  background-color: rgba(255, 255, 255, .04);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237b8291' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat; background-position: right 10px center; background-size: 12px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  padding: 10px 30px 10px 12px; width: 100%; outline: none; cursor: pointer;
  transition: border-color .18s, box-shadow .18s, background-color .18s;
}
select:focus { border-color: rgba(240, 185, 11, .6); box-shadow: 0 0 0 3px rgba(240, 185, 11, .15); background-color: rgba(255, 255, 255, .05); }
select option { background-color: var(--panel-solid); color: var(--text); }
/* wp-picker 的 background 简写会抹掉自定义箭头，这里补回（右移让位小药丸造型） */
.wp-picker { padding-right: 26px; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 24 24' fill='none' stroke='%237b8291' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><path d='M6 9l6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right 10px center; background-size: 11px; }
button { white-space: nowrap; cursor: pointer; border: none; border-radius: var(--r-sm); transition: transform .12s, filter .15s, background .15s, border-color .15s; }
button:active { transform: scale(.965); }
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #333a48; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #454e60; }

.ic { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -3px; }
.nav a { display: flex; align-items: center; gap: 6px; }

.brand-mark {
  width: 27px; height: 27px; border-radius: 6px; display: block; object-fit: cover; flex: none;
  box-shadow: 0 0 12px rgba(240, 185, 11, .35), 0 0 0 1px rgba(240, 185, 11, .45);
}
/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: linear-gradient(180deg, #1b202a, #161a22); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar-inner { max-width: 1180px; margin: 0 auto; padding: 12px 22px; display: flex; align-items: center; gap: 26px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-text { font-weight: 800; font-size: 17.5px; letter-spacing: .5px; display: flex; flex-direction: column; line-height: 1.25;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-text small { font-size: 10.5px; color: var(--dim2); font-weight: 500; letter-spacing: 2.5px; -webkit-text-fill-color: var(--dim2); }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a {
  padding: 7px 13px; border: 1px solid transparent; border-radius: var(--r-sm); color: var(--dim); font-size: 14px; font-weight: 500;
  transition: color .18s, background .18s;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav a.active { color: #fff; background: var(--grad); box-shadow: 0 4px 14px rgba(240, 185, 11, .3); }
.user-area { display: flex; align-items: center; gap: 10px; font-size: 14px; white-space: nowrap; }
.user-cash { color: var(--gold); font-variant-numeric: tabular-nums; font-weight: 600; }
.username { color: var(--text); font-weight: 500; }
.notice { overflow: hidden; border-top: 1px solid var(--line-soft); font-size: 11.5px; color: var(--dim); }
.notice-track { display: inline-block; white-space: nowrap; padding: 5px 0; animation: marquee 70s linear infinite; }
@keyframes marquee { from { transform: translateX(20vw); } to { transform: translateX(-100%); } }

/* ---------- 布局 ---------- */
main { flex: 1; max-width: 1180px; width: 100%; margin: 0 auto; padding: 20px; }
.view-enter { animation: vEnter .28s cubic-bezier(.2, .7, .3, 1); }
@keyframes vEnter { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.loading { text-align: center; color: var(--dim2); padding: 80px 0; }
.footer { text-align: center; color: var(--dim2); font-size: 11.5px; padding: 20px; border-top: 1px solid var(--line-soft); margin-top: 40px; }
.panel {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px;
}
h2.section { font-size: 13.5px; font-weight: 700; margin: 20px 0 10px; display: flex; align-items: center; gap: 6px; letter-spacing: .3px; flex-wrap: wrap; }
h2.section .dim { font-weight: 400; flex-basis: 100%; }
h2.section:first-child { margin-top: 0; }

/* ---------- 骨架屏 ---------- */
.skel-wrap { display: flex; flex-direction: column; gap: 12px; padding: 20px 0; }
.skel { height: 15px; border-radius: 8px; background: linear-gradient(90deg, rgba(255,255,255,.05) 25%, rgba(255,255,255,.1) 50%, rgba(255,255,255,.05) 75%); background-size: 200% 100%; animation: shimmer 1.1s linear infinite; }
.skel.w60 { width: 60%; } .skel.w40 { width: 40%; } .skel.w80 { width: 80%; } .skel.tall { height: 90px; border-radius: var(--r-md); }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- 通用组件 ---------- */
.btn {
  background: var(--panel-2); border: 1px solid var(--line); padding: 9px 17px; color: var(--text); font-size: 14px; font-weight: 500;
}
.btn:hover { border-color: rgba(240, 185, 11, .5); background: rgba(255, 255, 255, .06); }
.btn.primary { background: var(--grad); border: none; color: #1c1608; font-weight: 700; box-shadow: 0 2px 10px rgba(240, 185, 11, .25); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.buy { background: var(--up); color: #fff; font-weight: 700; border: none; box-shadow: 0 4px 16px rgba(255, 77, 79, .3); }
.btn.sell { background: var(--down); color: #01281a; font-weight: 700; border: none; box-shadow: 0 4px 16px rgba(0, 181, 120, .25); }
.btn.short { background: #17845a; color: #eafff5; font-weight: 700; border: none; }
.btn.cover { background: var(--gold); color: #3d2c00; font-weight: 700; border: none; }
.btn.full { width: 100%; padding: 12px; font-size: 15px; }
.btn.small { padding: 7px 11px; font-size: 12.5px; border-radius: 8px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.up { color: var(--up); } .down { color: var(--down); } .flat { color: var(--flat); }
.num { font-variant-numeric: tabular-nums; }
.dim { color: var(--dim); }
.warn { color: var(--gold); }
.mono { font-family: "JetBrains Mono", Consolas, monospace; }

.av-pair { display: inline-flex; position: relative; width: 40px; height: 28px; flex: none; }
.av-pair img {
  width: 28px; height: 28px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--bg-soft); background: var(--panel-2);
}
.av-pair img + img { position: absolute; left: 14px; }
.av-pair.big { width: 84px; height: 56px; }
.av-pair.big img { width: 56px; height: 56px; border-width: 3px; }
.av-pair.big img + img { left: 28px; }

/* ---------- 表格 ---------- */
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; color: var(--dim2); font-weight: 500; font-size: 11.5px; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; letter-spacing: .4px; }
.tbl td { padding: 8px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tbody tr { transition: background .15s; }
.tbl tbody tr:hover td { background: rgba(255, 255, 255, .028); }
.tbl .r, .tbl th.r { text-align: right; }
.tbl tr.clickable { cursor: pointer; }

/* ---------- 市场 ---------- */
.mode-slider { display: flex; gap: 4px; background: var(--panel); border: 1px solid var(--line-soft); border-radius: 999px; padding: 3px; flex: none; }
.ms-btn { display: flex; align-items: center; gap: 5px; padding: 7px 13px; min-height: 40px; border-radius: 999px; background: none; color: var(--dim); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.ms-btn.active { background: var(--grad); color: #1c1608; }
.wp-picker { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 999px; padding: 8px 12px; font-size: 12px; max-width: 180px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: none; }
.market-head { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.search-box { flex: 1; min-width: 220px; max-width: 420px; position: relative; }
.search-box input { padding-left: 38px; border-radius: 999px; }
.search-box::before { content: ""; position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; opacity: .5; background: var(--dim);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.4-4.4'/%3E%3C/svg%3E") center/contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M21 21l-4.4-4.4'/%3E%3C/svg%3E") center/contain no-repeat; }
.market-stats { color: var(--dim2); font-size: 12.5px; margin-left: auto; }
.hot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.hot-card {
  background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: 14px;
  cursor: pointer; display: flex; gap: 12px; align-items: center; transition: transform .14s, border-color .15s, box-shadow .15s;
}
.hot-card:hover { transform: translateY(-3px); border-color: rgba(240, 185, 11, .5); box-shadow: var(--shadow); }
.hot-card .info { min-width: 0; flex: 1; }
.hot-card .nm { font-size: 14px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hot-card .wk { font-size: 11.5px; color: var(--dim2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hot-card .pr { text-align: right; }
.hot-card .pr .p { font-size: 17px; font-weight: 750; }
.hot-card .pr .c { font-size: 12px; }
details.work-group { margin-bottom: 10px; background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--r-md); overflow: hidden; }
details.work-group summary {
  padding: 13px 16px; cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px;
  font-weight: 650; font-size: 14.5px; user-select: none; transition: background .15s;
}
details.work-group summary:hover { background: rgba(255, 255, 255, .03); }
details.work-group summary::-webkit-details-marker { display: none; }
details.work-group summary::after { content: "▾"; margin-left: auto; color: var(--dim2); transition: transform .18s; }
details.work-group[open] summary::after { transform: rotate(180deg); }
details.work-group summary .cnt { color: var(--dim2); font-weight: 400; font-size: 12px; }
.spark { display: block; }
.floatbar { width: 74px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.floatbar i { display: block; height: 100%; background: var(--grad); border-radius: 3px; }

.mrow {
  display: grid; grid-template-columns: 48px minmax(0, 1fr) 96px 88px 84px 118px;
  align-items: center; gap: 8px; padding: 10px 12px; font-size: 13.5px;
  border-bottom: 1px solid var(--line-soft); transition: background .14s; border-radius: 6px;
}
.mrow:hover { background: rgba(255, 255, 255, .035); }
.mrow.mhead { color: var(--dim2); font-size: 11.5px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--bg-soft); z-index: 2; padding: 8px 12px; border-radius: 0; }
.m-name b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13.5px; font-weight: 600; }
.m-name span { display: block; color: var(--dim2); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-price { text-align: right; }
.m-price b { display: block; font-size: 15px; font-weight: 700; }
.m-price span { font-size: 12px; }
.m-extra { text-align: right; }
.r { text-align: right; }
.m-only-d { min-width: 0; }
.work-rows { padding: 0 8px 8px; }

.pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; font-size: 12.5px; }
.new-card .pr .c { color: var(--dim2); }

/* ---------- 个股页 ---------- */
.stock-head { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.stock-head .title h1 { font-size: 21px; font-weight: 800; letter-spacing: .2px; }
.stock-head .title .sub { color: var(--dim); font-size: 12.5px; margin-top: 5px; line-height: 1.6; }
.stock-price { margin-left: auto; text-align: right; }
.stock-price .big { font-size: 34px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .5px; }
.stock-price .sub { font-size: 12.5px; color: var(--dim); line-height: 1.7; }
.stock-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 12px; margin-top: 12px; }
@media (max-width: 860px) { .stock-grid { grid-template-columns: 1fr; } }
.trade-panel .tabs { display: flex; gap: 5px; margin-bottom: 14px; }
.trade-panel .tabs .tab {
  flex: 1; padding: 9px 2px; border-radius: 9px; background: rgba(255, 255, 255, .035); border: 1px solid transparent;
  color: var(--dim); font-size: 13.5px; font-weight: 500; transition: all .16s;
}
.trade-panel .tabs .tab:hover { color: var(--text); }
.trade-panel .tabs .tab.active-buy { background: rgba(255, 77, 79, .13); color: var(--up); border-color: rgba(255, 77, 79, .35); font-weight: 700; }
.trade-panel .tabs .tab.active-sell { background: rgba(0, 181, 120, .12); color: var(--down); border-color: rgba(0, 181, 120, .35); font-weight: 700; }
#sk-form { min-height: 360px; }   /* 固定为最高胶囊（买入+融资）的高度，切换不跳 */
.trade-panel label { display: block; font-size: 12px; color: var(--dim); margin-bottom: 10px; }
.trade-panel label input { margin-top: 5px; }
.trade-info { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--dim); margin: 4px 0 10px; }
.est { background: rgba(255, 255, 255, .03); border: 1px dashed var(--line); border-radius: var(--r-sm); padding: 10px 12px; font-size: 13px; margin: 12px 0; display: flex; justify-content: space-between; }
.margin-toggle { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text); margin: 8px 0 2px; cursor: pointer; }
.margin-toggle input { width: auto; accent-color: var(--violet); }
.book-panel { padding: 12px; }
.book-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.book-side { min-width: 0; }
.book-side h4 { font-size: 11.5px; color: var(--dim2); font-weight: 500; margin-bottom: 8px; display: flex; justify-content: space-between; }
.bk-row { display: flex; justify-content: space-between; font-size: 12.5px; padding: 4px 6px; border-radius: 6px; font-variant-numeric: tabular-nums; position: relative; overflow: hidden; cursor: pointer; }
.bk-row .fill { position: absolute; top: 0; bottom: 0; right: 0; opacity: .13; border-radius: 6px; }
.bk-row.ask .fill { background: var(--down); }
.bk-row.bid .fill { background: var(--up); }
.bk-empty { color: var(--dim2); font-size: 12px; text-align: center; padding: 18px 0; }
.trade-log { max-height: 260px; overflow-y: auto; }
.trade-log .row {
  display: grid; grid-template-columns: 56px 1fr 46px 30px;
  padding: 5px 6px; border-bottom: 1px solid var(--line-soft);
  font-size: 12px; align-items: center; gap: 6px;
}
.trade-log .t-time { color: var(--dim2); font-family: var(--mono); }
.trade-log .t-price { font-family: var(--mono); font-weight: 600; text-align: right; }
.trade-log .t-qty { color: var(--dim); text-align: right; font-family: var(--mono); }
.trade-log .t-tag { font-size: 11px; color: var(--dim2); text-align: center; }
.my-orders .cancel-btn { font-size: 12px; padding: 4px 11px; }

/* ---------- 资产 / 排行 ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat-card { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: 16px; }
.stat-card .k { color: var(--dim2); font-size: 12px; letter-spacing: .3px; }
.stat-card .v { font-size: 22px; font-weight: 750; margin-top: 6px; font-variant-numeric: tabular-nums; }
.today-pnl { padding: 20px 18px; border-radius: var(--r-md); }
.today-pnl .v { font-size: 32px; }
.pnl-grid .stat-card .v { font-size: 24px; }
@media (max-width: 720px) { .pnl-grid .stat-card .v { font-size: 19px; } .pnl-grid .stat-card .k span { display: none; } }
.pulse-up { animation: pulseUp 1.8s ease-in-out infinite; }
.pulse-down { animation: pulseDown 1.8s ease-in-out infinite; }
@keyframes pulseUp { 0%, 100% { text-shadow: none; } 50% { text-shadow: 0 0 20px rgba(255, 77, 79, .5); } }
@keyframes pulseDown { 0%, 100% { text-shadow: none; } 50% { text-shadow: 0 0 20px rgba(0, 181, 120, .5); } }
.board-rank { display: inline-flex; width: 27px; height: 27px; border-radius: 9px; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; background: rgba(255, 255, 255, .05); color: var(--dim); }
.board-rank.r1 { background: var(--gold); color: #3d2c00; }
.board-rank.r2 { background: #cfd6e4; color: #2b3040; }
.board-rank.r3 { background: #d8925c; color: #381d05; }
.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tbl-wrap .tbl { min-width: 560px; }
.lb-tabs { display: flex; gap: 8px; }
.lb-tabs .tab { flex: 1; padding: 11px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .035); border: 1px solid transparent; color: var(--dim); font-size: 14px; font-weight: 500; transition: all .16s; }
.lb-tabs .tab.active { background: var(--grad); color: #fff; font-weight: 700; box-shadow: 0 4px 14px rgba(240, 185, 11, .3); }

/* ---------- 上市 / 董事会 ---------- */
.rules li { color: var(--dim); font-size: 13px; margin: 7px 0 7px 18px; line-height: 1.7; }
.listing-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.listing-form .full-row { grid-column: 1 / -1; }
@media (max-width: 700px) { .listing-form { grid-template-columns: 1fr; } }
.pending-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.pending-card:last-child { border-bottom: none; }
.pending-card .nm { font-weight: 650; }
.pending-card .wk { color: var(--dim2); font-size: 12.5px; }
.raise-line { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.sign-bar { width: 90px; height: 6px; background: rgba(255, 255, 255, .08); border-radius: 3px; overflow: hidden; flex: none; }
.sign-bar i { display: block; height: 100%; background: var(--grad); }
.pledge-box { display: flex; flex-direction: column; gap: 6px; width: 150px; flex: none; }
.pledge-box input { padding: 8px 10px; font-size: 13px; }
.board-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.board-info > div { background: rgba(255, 255, 255, .03); border-radius: var(--r-sm); padding: 9px 11px; font-size: 13px; display: flex; flex-direction: column; gap: 3px; }
.board-info .dim { font-size: 11px; }
.board-top { color: var(--dim); font-size: 12.5px; margin-top: 10px; line-height: 1.7; }
.propose-forms { display: flex; flex-direction: column; gap: 8px; }
.propose-forms > div { display: flex; align-items: center; gap: 6px; font-size: 13px; flex-wrap: wrap; }
.propose-forms input { width: 100px; padding: 8px 9px; font-size: 13px; }
.prop-card { border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: 11px 13px; margin-bottom: 8px; background: rgba(255, 255, 255, .025); }
.prop-head { display: flex; align-items: center; gap: 8px; font-size: 13px; flex-wrap: wrap; }
.prop-head .tag { background: rgba(240, 185, 11, .12); border-radius: 6px; padding: 2px 8px; font-size: 11.5px; }
.vote-line { display: flex; justify-content: space-between; font-size: 12.5px; margin-top: 8px; font-variant-numeric: tabular-nums; }
.vote-btns { display: flex; gap: 6px; align-items: center; margin-top: 6px; }

/* ---------- 快讯 / 糖话 ---------- */
.feed-list { display: flex; flex-direction: column; }
.feed-row { display: flex; align-items: center; gap: 8px; padding: 7px 4px; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.feed-row:last-child { border-bottom: none; }
.feed-row.clickable { cursor: pointer; }
.feed-row.clickable:hover .feed-title { color: var(--violet); }
.feed-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.feed-tag { font-size: 11px; flex: none; width: 52px; }
.feed-title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-time { font-size: 11px; flex: none; }
.post-composer { background: rgba(255, 255, 255, .03); border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: 12px; margin-bottom: 6px; }
.side-pick { display: flex; gap: 6px; margin-bottom: 9px; }
.sp { padding: 8px 14px; border-radius: 999px; font-size: 12.5px; background: rgba(255, 255, 255, .04); color: var(--dim); border: 1px solid transparent; }
.sp.bull.active { background: rgba(255, 77, 79, .16); color: var(--up); border-color: rgba(255, 77, 79, .4); font-weight: 650; }
.sp.bear.active { background: rgba(0, 181, 120, .14); color: var(--down); border-color: rgba(0, 181, 120, .4); font-weight: 650; }
.sp.melon.active { background: rgba(240, 185, 11, .13); color: var(--violet); border-color: rgba(240, 185, 11, .4); font-weight: 650; }
.composer-row { display: flex; gap: 8px; }
.composer-row input { flex: 1; }
.post-row { padding: 11px 4px; border-bottom: 1px solid var(--line-soft); }
.post-row:last-child { border-bottom: none; }
.post-row.fresh { animation: freshIn .45s cubic-bezier(.2, .7, .3, 1); }
@keyframes freshIn { from { opacity: 0; transform: translateX(-14px); background: rgba(240, 185, 11, .12); } to { opacity: 1; transform: none; } }
.post-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; flex-wrap: wrap; }
.post-head b { font-weight: 650; }
.side-tag { font-size: 11px; padding: 1.5px 8px; border-radius: 999px; background: rgba(255, 255, 255, .05); }
.side-tag.up { background: rgba(255, 77, 79, .14); } .side-tag.down { background: rgba(0, 181, 120, .13); }
.post-stock { font-size: 11.5px; color: var(--violet); cursor: pointer; }
.post-time { margin-left: auto; font-size: 11px; }
.post-content { font-size: 13.5px; line-height: 1.65; margin: 6px 0; word-break: break-word; }
.post-actions { display: flex; gap: 8px; }
.vote-btn { background: rgba(255, 255, 255, .04); color: var(--dim); font-size: 12px; padding: 7px 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 4px; }
.vote-btn:hover { color: var(--text); }
.vote-btn.on { background: rgba(255, 77, 79, .18); color: var(--up); }
.vote-btn.on-no { background: rgba(0, 181, 120, .16); color: var(--down); }
.pop { animation: pop .32s cubic-bezier(.2, .7, .3, 1.4); display: inline-block; }
@keyframes pop { 40% { transform: scale(1.5); } }

/* ---------- 成就 / 两融 ---------- */
.margin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.m-card { background: rgba(255, 255, 255, .03); border-radius: var(--r-sm); padding: 11px 12px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.m-card b { font-variant-numeric: tabular-nums; font-size: 15px; }

/* ---------- 金融中心 ---------- */
.fin-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.fin-strip > div { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; font-size: 12px; }
.fin-strip b { font-size: 16px; font-variant-numeric: tabular-nums; }
.fin-strip .s { font-size: 11px; }
.pocket-cell { border-color: rgba(240, 185, 11, .35) !important; }
.pocket-num { color: var(--gold); }
details.acc { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--r-md); margin-bottom: 10px; }
details.acc summary { list-style: none; cursor: pointer; padding: 12px 14px; display: flex; align-items: center; gap: 8px; font-weight: 650; font-size: 13.5px; user-select: none; }
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::after { content: "▾"; margin-left: auto; color: var(--dim); transition: transform .18s; }
details.acc[open] summary::after { transform: rotate(180deg); }
details.acc .acc-body { padding: 0 14px 12px; }
.acc-badge { margin-left: auto; font-size: 11px; color: var(--dim); background: rgba(255,255,255,.05); border-radius: 999px; padding: 2px 9px; font-weight: 500; }
.acc-badge.acc-hot { background: rgba(240, 185, 11, .15); color: var(--gold); font-weight: 700; }
.fin-ops { display: flex; gap: 6px; margin-top: 6px; }
.fin-ops input { min-width: 0; flex: 1; padding: 7px 9px; font-size: 13px; }
.wp-card { border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: 11px 13px; margin-top: 8px; background: rgba(255, 255, 255, .025); }
.wp-head { display: flex; align-items: center; gap: 8px; font-size: 13px; flex-wrap: wrap; }
.wp-invest { display: flex; gap: 6px; margin-top: 8px; }
.wp-invest input { flex: 1; min-width: 0; padding: 7px 9px; font-size: 13px; }

/* ---------- K线图 ---------- */
#sk-chart { padding: 14px 10px 10px 12px; }
.kchart-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.ktf-tabs { display: flex; gap: 4px; }
.ktf { padding: 8px 14px; border-radius: 999px; font-size: 12px; background: rgba(255, 255, 255, .04); color: var(--dim); font-weight: 500; }
.ktf:hover { color: var(--text); }
.ktf.on { background: var(--grad); color: #fff; font-weight: 700; box-shadow: 0 3px 10px rgba(240, 185, 11, .3); }
.ma-legend { font-size: 11px; display: flex; gap: 10px; flex-wrap: wrap; }
.kchart-body { position: relative; }
.kchart-body svg text { user-select: none; }
.kc-tip {
  position: absolute; pointer-events: none; background: rgba(14, 20, 33, .96); border: 1px solid var(--line);
  border-radius: 10px; padding: 8px 11px; font-size: 11.5px; line-height: 1.9; white-space: nowrap; z-index: 5;
  box-shadow: var(--shadow);
}
.kc-tip b { margin: 0 6px 0 2px; font-weight: 650; }

/* ---------- 持仓概览格子 ---------- */
.hold-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hold-card { background: var(--panel-2); border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: 10px; cursor: pointer; transition: border-color .15s, transform .12s; min-width: 0; }
.hold-card:hover { border-color: rgba(240, 185, 11, .45); transform: translateY(-2px); }
.hc-head { display: flex; align-items: center; gap: 6px; min-width: 0; margin-bottom: 6px; }
.hc-head b { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc-price { font-size: 15px; font-weight: 750; font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 5px; }
.hc-pct { font-size: 11.5px; font-weight: 600; }
.hc-meta { font-size: 11px; }

/* ---------- 用户态度 ---------- */
.user-vote { display: inline-flex; cursor: pointer; padding: 6px 8px; border-radius: 5px; color: var(--dim2); }
.user-vote:hover { background: rgba(255,255,255,.06); }
.user-vote.up-v:hover { color: var(--up); }
.user-vote.down-v:hover { color: var(--down); }
.user-vote .ic { width: 13px; height: 13px; }
.thumb-show { display: flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.thumb-show.up { background: rgba(255, 77, 79, .12); color: var(--up); }
.thumb-show.down { background: rgba(0, 181, 120, .12); color: var(--down); }
.thumb-show .ic { width: 14px; height: 14px; }

/* ---------- 收藏星标 ---------- */
.star-btn { background: none; border: none; padding: 7px 9px; color: var(--dim2); display: inline-flex; vertical-align: middle; }
.star-btn .ic { width: 15px; height: 15px; }
.star-btn:hover { color: var(--gold); }
.star-btn.on { color: var(--gold); }
.star-btn.on .ic { fill: var(--gold); }
.star-btn.big .ic { width: 20px; height: 20px; }

/* ---------- 色点 / 金币 / 皇冠 ---------- */
.pdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 4px; vertical-align: 1px; }
.pdot.bull { background: var(--up); }
.pdot.bear { background: var(--down); }
.pdot.melon { background: var(--violet); }
.coin-ic { width: 14px; height: 14px; vertical-align: -2px; color: var(--gold); }
.crown { color: var(--gold); vertical-align: -2px; }

/* ---------- 弹窗 / toast ---------- */
.post-full { font-size: 14.5px; line-height: 1.9; margin: 12px 0 14px; word-break: break-word; color: var(--text-hi); }
.post-content.clickable { cursor: pointer; }
.post-content.clickable:hover { color: var(--text-hi); }
.modal-mask { position: fixed; inset: 0; background: rgba(4, 6, 11, .74); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; animation: fadeIn .2s; }
.modal-mask[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } }
.modal {
  background: var(--panel-solid); border: 1px solid var(--line); border-radius: 18px; padding: 26px;
  width: 100%; max-width: 380px; position: relative; box-shadow: var(--shadow);
  max-height: calc(100dvh - 24px); overflow-y: auto;
  animation: modalIn .28s cubic-bezier(.2, .7, .3, 1);
}
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.97); } to { opacity: 1; transform: none; } }
.modal-close { position: absolute; top: 13px; right: 13px; background: rgba(255, 255, 255, .05); color: var(--dim); font-size: 14px; width: 30px; height: 30px; border-radius: 50%; }
.modal-close:hover { color: var(--text); }
.modal-tabs { display: flex; gap: 6px; margin-bottom: 18px; }
.modal-tabs .tab { flex: 1; padding: 10px; border-radius: var(--r-sm); background: rgba(255, 255, 255, .04); border: 1px solid transparent; color: var(--dim); }
.modal-tabs .tab.active { background: rgba(240, 185, 11, .15); color: #fff; border-color: rgba(240, 185, 11, .5); font-weight: 650; }
.modal label { display: block; font-size: 12.5px; color: var(--dim); margin-bottom: 12px; }
.modal label input { margin-top: 5px; }
.modal-tip { color: var(--up); font-size: 12.5px; min-height: 18px; margin-bottom: 8px; }
.modal-note { color: var(--dim2); font-size: 11.5px; margin-top: 14px; text-align: center; }
.verify-to { font-size: 13px; color: var(--dim); margin-bottom: 14px; line-height: 1.6; }
.verify-to b { color: var(--text); }
#v-code { text-align: center; font-size: 22px; letter-spacing: 12px; font-weight: 700; }
.btn.ghost { background: none; border: 1px dashed var(--line); color: var(--dim); }
.btn.ghost:disabled { opacity: .45; }
.toast {
  position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
  background: rgba(18, 24, 38, .92); backdrop-filter: blur(10px); border: 1px solid rgba(240, 185, 11, .4); color: var(--text);
  padding: 12px 24px; border-radius: 12px; font-size: 14px; z-index: 200; box-shadow: var(--shadow);
  max-width: 90vw; animation: toastIn .3s cubic-bezier(.2, .7, .3, 1.2);
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translate(-50%, 0); } }
.toast.err { border-color: rgba(255, 77, 79, .5); }

/* ---------- 底部导航 ---------- */
.bottom-nav {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: rgba(10, 14, 22, .88); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line-soft); padding-bottom: env(safe-area-inset-bottom, 0px);
}
.bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 0 8px; color: var(--dim2); font-size: 11px; transition: color .15s; }
.bottom-nav a i { font-style: normal; font-size: 20px; line-height: 1.2; transition: transform .18s; }
.bottom-nav a.active { color: var(--pink); }
.bottom-nav a.active i { transform: translateY(-2px) scale(1.1); }

/* ---------- 个人中心 ---------- */
.uav { border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; flex: none; letter-spacing: 0; text-shadow: 0 1px 3px rgba(0,0,0,.25); user-select: none; }
.user-chip { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 5px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line-soft); transition: border-color .15s, background .15s; }
.user-chip:hover { border-color: rgba(240, 185, 11, .5); background: rgba(255, 255, 255, .08); }
.user-chip .username { max-width: 7em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 13.5px; }
/* 个人中心 · 手机优先简约卡片 */
.credit-bar { flex: 1; min-width: 90px; max-width: 160px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .07); overflow: hidden; display: inline-block; }
.credit-bar i { display: block; height: 100%; border-radius: 3px; }
.up-bg { background: linear-gradient(90deg, #00b578, #2ee6a8); }
.warn-bg { background: linear-gradient(90deg, #f0b90b, #ffd95e); }
.down-bg { background: linear-gradient(90deg, #ff4d4f, #ff8a8c); }
.pf-hero { padding: 0; overflow: hidden; }
.pf-banner { height: 74px; background: linear-gradient(115deg, rgba(240, 185, 11, .22), rgba(169, 112, 255, .13) 55%, rgba(61, 139, 253, .09)); }
.pf-hero-body { padding: 0 16px 16px; margin-top: -30px; display: flex; flex-direction: column; gap: 9px; }
.pf-hero-body .uav { border: 3px solid var(--panel); box-shadow: 0 4px 14px rgba(0, 0, 0, .35); }
.pf-id { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pf-id h1 { font-size: 21px; font-weight: 800; color: var(--text-hi); letter-spacing: .3px; display: flex; align-items: center; gap: 6px; }
.pf-vbadge { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 50%; background: var(--grad); color: #20242e; font-size: 10px; font-weight: 900; }
.pf-uid { font-size: 11.5px; letter-spacing: 1px; color: var(--dim); background: rgba(255, 255, 255, .05); border: 1px solid var(--line-soft); border-radius: 999px; padding: 3px 11px; }
.pf-uid:hover { color: var(--gold); border-color: rgba(240, 185, 11, .4); }
.pf-meta { display: flex; gap: 12px; flex-wrap: wrap; font-size: 11.5px; align-items: center; }
.pf-meta .ic { width: 13px; height: 13px; vertical-align: -2px; }
.pf-credit { display: flex; align-items: center; gap: 7px; font-size: 12px; }
.pf-credit .credit-bar { max-width: 140px; }
.pf-bio { font-size: 12.5px; color: var(--dim); font-style: italic; border-left: 2px solid var(--gold); padding-left: 10px; line-height: 1.6; }
.pf-vote-ops { display: flex; gap: 8px; margin-top: 3px; }
.pf-net { display: flex; flex-direction: column; gap: 3px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.pf-net > .dim { font-size: 11.5px; }
.pf-net > b { font-size: 26px; font-weight: 800; color: var(--text-hi); font-family: var(--mono); letter-spacing: .5px; }
.pf-net > .num { font-size: 12.5px; }
.pf-pnl-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.pf-pnl { background: rgba(255, 255, 255, .03); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 9px 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pf-pnl .k { font-size: 11px; color: var(--dim2); }
.pf-pnl b { font-size: 15px; font-family: var(--mono); }
.pf-pnl > .dim { font-size: 10.5px; }
.pf-assets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 8px; margin-top: 12px; }
.pf-assets > div { padding: 7px 10px; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.pf-assets .dim { font-size: 11px; }
.pf-assets b { font-size: 13.5px; font-family: var(--mono); color: var(--text-hi); overflow: hidden; text-overflow: ellipsis; }
.pf-war { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.pf-war-cell { background: rgba(255, 255, 255, .03); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 10px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pf-war-cell .k { font-size: 11px; color: var(--dim2); }
.pf-war-cell b { font-size: 15px; font-family: var(--mono); }
.pf-best { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.pf-best > div { padding: 9px 10px; border: 1px dashed var(--line); border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; min-width: 0; }
.pf-ops { display: flex; gap: 8px; margin-top: 14px; }
.pf-ops .btn { flex: 1; display: flex; align-items: center; justify-content: center; padding-left: 4px; padding-right: 4px; }
.pf-hold { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--line-soft); font-size: 12.5px; align-items: center; }
.pf-hold:last-child { border-bottom: none; }
.pf-hold .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-hold:hover { background: rgba(255, 255, 255, .02); }
@media (min-width: 761px) {
  .pf-hero-body { padding: 0 22px 18px; }
}
.logout-btn { color: var(--up); }

.brand-bar { display: none; }

/* ---------- 手机端 ---------- */
@media (max-width: 760px) {
  input, select { font-size: 16px; }
  .logo { display: none; }
  .brand-bar {
    display: block; text-align: center; font-size: 11.5px; font-weight: 800; letter-spacing: 4px;
    padding: 5px 0 4px; color: var(--dim);
    background: linear-gradient(180deg, #1b202a, #161a22); color: var(--gold); letter-spacing: 6px;
    border-bottom: 1px solid var(--line-soft);
  }
  .topbar-inner { padding: 10px 14px; gap: 10px; }
  .logo-text small { display: none; }
  .nav { display: none; }
  .user-area { margin-left: auto; font-size: 13px; gap: 8px; }
  .user-area .btn { padding: 8px 13px; }
  .user-chip .username { display: none; }
  .user-chip { padding: 4px 5px; }
  .bottom-nav { display: flex; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  main { padding: 12px 12px 4px; }
  .footer { margin-top: 24px; font-size: 10.5px; }
  .toast { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .m-only-d { display: none; }
  .mrow { grid-template-columns: 42px minmax(0, 1fr) auto; padding: 11px 4px; }
  .mrow.mhead { display: none; }
  .m-price b { font-size: 15.5px; }
  .av-pair img { width: 26px; height: 26px; }
  .av-pair img + img { left: 13px; }
  .market-stats { margin-left: 0; font-size: 11px; flex-basis: 100%; }
  .hot-grid { grid-template-columns: 1fr; gap: 8px; }
  .hot-card { padding: 11px; gap: 8px; border-radius: var(--r-md); }
  .hot-card .nm { font-size: 12.5px; }
  .hot-card .pr .p { font-size: 14px; }
  details.work-group summary { padding: 12px; font-size: 13.5px; }
  .stock-head .title h1 { font-size: 17px; }
  .stock-price { margin-left: 0; text-align: left; flex-basis: 100%; }
  .stock-price .big { font-size: 27px; }
  .av-pair.big img { width: 44px; height: 44px; }
  .av-pair.big { width: 66px; height: 44px; }
  .av-pair.big img + img { left: 22px; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .stat-card { padding: 13px; }
  .stat-card .v { font-size: 17px; }
  .stat-card .v span { display: block; font-size: 11px; }
  .tbl th, .tbl td { padding: 8px; }
  .tbl { font-size: 12.5px; }
  .modal-mask { padding: 12px; align-items: flex-end; }
  .modal { padding: 22px 18px; border-radius: 20px 20px 14px 14px; }
  .modal::before { content: ""; position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 38px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .14); }
  .modal { animation: slideUp .26s cubic-bezier(.2, .7, .3, 1); }
  @keyframes slideUp { from { transform: translateY(40px); opacity: .6; } to { transform: none; opacity: 1; } }
  .pending-card { padding: 12px 8px; gap: 8px; }
  .pledge-box { width: 100%; flex-direction: row; }
  .pledge-box input { flex: 1; }
    .composer-row { flex-direction: column; }
  .margin-grid { grid-template-columns: 1fr; }
  .fin-strip, .fin-strip.fin-4 { grid-template-columns: repeat(2, 1fr); }
  .fin-ops .btn, .wp-invest .btn { white-space: nowrap; flex: none; }
  .fin-ops input, .wp-invest input { min-width: 0; flex: 1; }
  .m-card b { font-size: 15px; }
.roof-art { font-family: ui-monospace, Consolas, 'Courier New', monospace; font-size: 13px; line-height: 1.4; text-align: center; color: var(--gold); white-space: pre; overflow: hidden; margin: 2px 0 6px; }
#roof-modal .modal { max-width: 340px; }
.replies { margin-top: 8px; border-top: 1px dashed var(--line-soft); padding-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.reply-row { display: flex; align-items: flex-start; gap: 8px; font-size: 12.5px; }
.reply-row .user-chip { padding: 1px 8px 1px 2px; flex-shrink: 0; }
.reply-row .username { font-size: 12px; max-width: 6em; }
.reply-main { flex: 1; min-width: 0; }
.reply-text { word-break: break-word; }
.reply-at { color: var(--gold); font-size: 11px; margin-left: 6px; cursor: pointer; padding: 3px 5px; }
.reply-composer { display: flex; gap: 6px; margin-top: 2px; }
.reply-composer .reply-input { flex: 1; background: rgba(255,255,255,.04); border: 1px solid var(--line-soft); border-radius: 8px; padding: 6px 10px; color: var(--fg); font-size: 12.5px; }
.wp-empty-hint { font-size: 12px; color: var(--dim2); text-decoration: none; border: 1px dashed var(--line-soft); border-radius: 999px; padding: 4px 12px; white-space: nowrap; }
.wp-empty-hint:hover { color: var(--gold); border-color: rgba(240, 185, 11, .5); }
.board-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.board-tab { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line-soft); color: var(--dim); border-radius: 999px; padding: 11px 12px; font-size: 13px; cursor: pointer; transition: all .15s; }
.board-tab.active { background: var(--gold); color: #3d2c00; border-color: var(--gold); font-weight: 700; }
.board-tab .ic { width: 15px; height: 15px; flex-shrink: 0; }
.board-tab .bt-sub { font-size: 11px; font-weight: 400; opacity: .75; }
.code-row { display: flex; gap: 6px; margin-bottom: 12px; }
.code-row #v-code { flex: 1; min-width: 0; letter-spacing: 3px; }
.code-row .btn { flex-shrink: 0; }
img.uav { object-fit: cover; }
.avatar-edit { position: relative; cursor: pointer; flex-shrink: 0; }
.avatar-edit:hover .uav { filter: brightness(.7); }
.avatar-edit-tag { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-size: 10.5px; padding: 2px 0; background: rgba(0, 0, 0, .55); color: #fff; border-radius: 0 0 12px 12px; opacity: 0; transition: opacity .15s; pointer-events: none; }
.avatar-edit:hover .avatar-edit-tag { opacity: 1; }
.profit-tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.profit-tab { flex: 1; background: rgba(255, 255, 255, .04); border: 1px solid var(--line-soft); color: var(--dim); border-radius: 999px; padding: 7px 0; font-size: 12.5px; cursor: pointer; transition: all .15s; }
.profit-tab.active { background: var(--gold); color: #3d2c00; border-color: var(--gold); font-weight: 700; }
.profit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.profit-col { min-width: 0; }
.profit-title { font-size: 12px; font-weight: 700; margin-bottom: 6px; letter-spacing: .3px; }
.profit-row { display: flex; align-items: center; gap: 6px; padding: 4px 0; font-size: 12px; border-bottom: 1px dashed var(--line-soft); }
.profit-row:last-child { border-bottom: none; }
.profit-row .board-rank { width: 20px; height: 20px; font-size: 11px; flex: none; }
.profit-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 720px) { .profit-grid { grid-template-columns: 1fr; } }
.profile-bio { font-size: 13px; color: var(--dim); margin-top: 8px; font-style: italic; }
.edit-row { display: flex; gap: 8px; align-items: flex-end; margin-bottom: 10px; }
.edit-row label { flex: 1; font-size: 12px; color: var(--dim2); }
.edit-row input { margin-top: 4px; width: 100%; background: rgba(255, 255, 255, .04); border: 1px solid var(--line-soft); border-radius: 8px; padding: 8px 10px; color: var(--fg); font-size: 13px; }
.edit-row .btn { flex-shrink: 0; margin-bottom: 1px; }
.btn.warn { background: rgba(255, 176, 32, .14); color: var(--gold); border: 1px solid rgba(240, 185, 11, .4); }

/* ---------- 术语解释 / 加载圈 / 签到进度 / 校验徽章 ---------- */
.spinner { display: inline-block; width: 15px; height: 15px; border: 2px solid var(--line2); border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -3px; margin-right: 7px; }
@keyframes spin { to { transform: rotate(360deg); } }
.term { display: inline-flex; align-items: center; justify-content: center; width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--dim2); color: var(--dim2); font-size: 9.5px; font-weight: 700; cursor: help; vertical-align: 2px; margin: 0 2px; user-select: none; flex: none; }
.term:hover, .term:active { color: var(--gold); border-color: var(--gold); }
.ck-dots { display: flex; gap: 4px; margin: 5px 0 3px; }
.ck-dots i { width: 15px; height: 5px; border-radius: 3px; background: rgba(255, 255, 255, .1); }
.ck-dots i.on { background: var(--grad); }
.pf-vbadge .ic { width: 10px; height: 10px; stroke-width: 3.4; vertical-align: 0; }
.tbl-wrap .tbl.tbl-fit { min-width: 0; }
.btn.full { white-space: normal; line-height: 1.4; }
@media (max-width: 760px) {
  .m-hide { display: none; }
  .ktf, .sp, .vote-btn, .btn.small { min-height: 40px; align-items: center; }
  .btn.small { display: inline-flex; justify-content: center; }
  .star-btn { padding: 10px; }
  .footer { font-size: 11px; }
}

/* ---------- 价格变动闪光 / 榜外追逐条 ---------- */
.flash-up { display: inline-block; animation: flashUp 1.2s ease-out; }
.flash-down { display: inline-block; animation: flashDown 1.2s ease-out; }
@keyframes flashUp { 0% { text-shadow: 0 0 22px rgba(255, 77, 79, .95); transform: scale(1.07); } 100% { text-shadow: none; transform: none; } }
@keyframes flashDown { 0% { text-shadow: 0 0 22px rgba(0, 181, 120, .95); transform: scale(1.07); } 100% { text-shadow: none; transform: none; } }
.board-me { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 10px 14px; border: 1px solid rgba(240, 185, 11, .32); border-radius: 10px; background: rgba(240, 185, 11, .06); font-size: 12.5px; }
.board-me .ic { width: 18px; height: 18px; color: var(--gold); flex: none; }
.board-me b { font-weight: 700; }

/* ---------- 天台转生 ---------- */
.roof-panel { display: flex; align-items: center; gap: 12px; border-color: rgba(240, 185, 11, .28); background: linear-gradient(135deg, rgba(240, 185, 11, .05), transparent 55%); }
.roof-info { display: flex; align-items: flex-start; gap: 10px; flex: 1; min-width: 0; }
.roof-pending { border-color: rgba(240, 185, 11, .45); background: rgba(240, 185, 11, .07); }
.rebirth-tag { display: inline-flex; align-items: center; gap: 3px; margin-left: 8px; padding: 1px 8px; border: 1px solid rgba(240, 185, 11, .4); border-radius: 999px; color: var(--gold); font-size: 11px; font-weight: 700; vertical-align: 1px; }
.rebirth-tag .ic { width: 11px; height: 11px; }
.pf-meta .rebirth-tag { margin-left: 0; color: var(--gold); }
.ad-modal { max-width: 420px; width: calc(100vw - 24px); }
.ad-box { position: relative; border-radius: 10px; overflow: hidden; background: #000; line-height: 0; }
.ad-box video { width: 100%; display: block; }
.ad-count { position: absolute; right: 10px; bottom: 10px; padding: 3px 10px; border-radius: 999px; background: rgba(0, 0, 0, .62); color: #cfd3dc; font-size: 11.5px; line-height: 1.5; backdrop-filter: blur(4px); }
.ad-count.done { color: var(--gold); border: 1px solid rgba(240, 185, 11, .5); }

/* 角色图鉴联想下拉（上市申请） */
.ac-box { position: relative; display: block; }
.ac-drop { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 40;
  background: var(--panel-solid); border: 1px solid var(--line2); border-radius: var(--r-md);
  max-height: 280px; overflow-y: auto; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.ac-row { display: flex; align-items: center; gap: 8px; padding: 7px 10px; cursor: pointer; }
.ac-row:hover, .ac-row:active { background: var(--panel-2); }
.ac-row img { width: 30px; height: 30px; border-radius: 8px; object-fit: cover; flex: none; background: var(--bg-soft); }
.ac-row .ac-nm { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ac-row .ac-wk { margin-left: auto; color: var(--dim); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.ac-none { display: block; padding: 12px; color: var(--dim); font-size: 12.5px; }
.ac-pick { display: block; margin-top: 6px; }
.ac-pick img { width: 22px; height: 22px; border-radius: 6px; object-fit: cover; vertical-align: -6px; margin-right: 6px; }
.ac-pick span { font-size: 12px; color: var(--dim); }
