/* 股参谋 网页版 · 桌面数据面板样式(深色,自包含无外部依赖) */
:root {
  --bg: #090b11; --bg-grad: radial-gradient(1200px 600px at 100% -10%, rgba(45,212,191,.06), transparent),
                             radial-gradient(900px 500px at -10% 0%, rgba(75,139,255,.07), transparent);
  --sidebar: #0c0f17; --surface: #10141e; --surface-2: #151b28; --surface-3: #1b2231;
  --line: rgba(255,255,255,.07); --line-2: rgba(255,255,255,.12);
  --ink: #eef1f8; --muted: #98a1b6; --faint: #616b83;
  --blue: #4b8bff; --teal: #2dd4bf; --up: #f0503c; --down: #33c76a;
  --grad: linear-gradient(120deg, #4b8bff, #2dd4bf);
  --r: 16px; --r-sm: 11px;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 30px rgba(0,0,0,.28);
  --sidebar-w: 244px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg); background-image: var(--bg-grad); background-attachment: fixed;
  color: var(--ink); font: 14.5px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--teal); text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, select { font: inherit; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #ffffff14; border-radius: 6px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #ffffff24; background-clip: content-box; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.spacer { flex: 1; }

/* ==== 布局 ==== */
#app { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w); flex: none; background: var(--sidebar); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 20px 14px 14px; position: sticky; top: 0; height: 100vh;
}
.sidebar .brand { display: flex; align-items: center; gap: 11px; font-weight: 750; font-size: 18px; padding: 4px 10px 20px; letter-spacing: .3px; }
.sidebar .brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav-label { font-size: 11px; font-weight: 700; letter-spacing: .8px; color: var(--faint); text-transform: uppercase; padding: 4px 12px 8px; }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--r-sm);
  color: var(--muted); background: none; border: none; width: 100%; text-align: left; font-size: 14.5px; margin-bottom: 2px;
  transition: background .12s, color .12s;
}
.nav-item:hover { color: var(--ink); background: #ffffff08; }
.nav-item.active { color: var(--ink); background: #ffffff0e; font-weight: 600; box-shadow: inset 2px 0 0 var(--teal); }
.nav-item .ico { font-size: 16px; width: 20px; text-align: center; }
.nav-item .dot { margin-left: auto; min-width: 19px; height: 19px; padding: 0 6px; border-radius: 10px;
  background: var(--up); color: #fff; font-size: 11px; line-height: 19px; text-align: center; font-weight: 700; }

/* 侧栏底部用户卡 */
.user-card { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: var(--r-sm);
  background: var(--surface); border: 1px solid var(--line); cursor: pointer; transition: border-color .12s; }
.user-card:hover { border-color: var(--line-2); }
.user-card .ava { width: 34px; height: 34px; border-radius: 50%; background: var(--grad); display: flex; align-items: center;
  justify-content: center; font-weight: 700; color: #fff; font-size: 15px; flex: none; overflow: hidden; }
.user-card .ava img { width: 100%; height: 100%; object-fit: cover; }
.user-card .u-meta { min-width: 0; }
.user-card .u-name { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-card .u-tier { font-size: 11px; color: var(--teal); }
.user-card .u-cog { margin-left: auto; color: var(--faint); font-size: 15px; }

.main { flex: 1; min-width: 0; }
.topbar { display: none; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: rgba(9,11,17,.9); backdrop-filter: blur(12px); z-index: 20; }
.topbar .brand { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.topbar .brand img { width: 26px; height: 26px; border-radius: 6px; }
/* 自适应:窗口小时铺满,超宽屏封顶居中(兼顾空间利用与报告可读性) */
.content { width: 100%; max-width: 1360px; margin: 0 auto; padding: 30px 36px 90px; }

/* ==== 页头 ==== */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.page-title { font-size: 23px; font-weight: 750; letter-spacing: .2px; }
.page-sub { color: var(--muted); font-size: 13.5px; margin-top: 3px; }
.page-head-actions { display: flex; gap: 10px; flex: none; }

/* ==== 按钮 ==== */
.btn { border: none; border-radius: var(--r-sm); padding: 10px 18px; font-weight: 650; font-size: 14px; color: #fff;
  background: var(--grad); box-shadow: 0 4px 16px rgba(45,212,191,.22); transition: transform .05s, box-shadow .15s, opacity .15s; }
.btn:hover { box-shadow: 0 6px 22px rgba(45,212,191,.32); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: default; box-shadow: none; }
.btn-ghost { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line-2); box-shadow: none; }
.btn-ghost:hover { background: var(--surface-3); box-shadow: none; }
.btn-tint-teal { background: linear-gradient(120deg, #22c9a9, #2dd4bf); color: #04231e; box-shadow: 0 4px 16px rgba(45,212,191,.22); }
.btn-tint-blue { background: linear-gradient(120deg, #3f7dff, #5b9bff); box-shadow: 0 4px 16px rgba(75,139,255,.25); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 13.5px; }
.icon-btn { display: inline-flex; align-items: center; gap: 7px; }
.fab { display: none; }

/* ==== 卡片(Feed) ==== */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; align-items: start; }
.feed-group { margin-bottom: 26px; }
.section-date { font-size: 12.5px; color: var(--faint); font-weight: 700; letter-spacing: .4px; margin: 0 2px 12px; display: flex; align-items: center; gap: 10px; }
.section-date::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 17px; }
.card.clickable { cursor: pointer; transition: border-color .14s, background .14s, transform .06s; }
.card.clickable:hover { border-color: var(--line-2); background: var(--surface-2); }
.card.clickable:active { transform: scale(.994); }
.card-head { display: flex; align-items: center; gap: 10px; }
.stockcol { min-width: 0; }
.sname { font-weight: 700; font-size: 16px; }
.scode { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tag { font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 20px; white-space: nowrap; }
.topbadge { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.badge { font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 20px; white-space: nowrap; }
.consensus { font-size: 10px; font-weight: 600; }
.score { font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.score small { font-size: 10px; color: var(--muted); font-weight: 500; }
.card-body { margin-top: 11px; display: flex; flex-direction: column; gap: 6px; }
.card-body:empty { margin-top: 0; }
.card-body .lead { font-size: 14.5px; font-weight: 600; line-height: 1.5; }
.card-body p { font-size: 13.5px; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 3px; }
.pills span { font-size: 12px; background: var(--surface-3); padding: 4px 10px; border-radius: 8px; font-variant-numeric: tabular-nums; }
.spinner-row { display: flex; justify-content: center; padding: 8px 0 4px; }
.spinner { width: 18px; height: 18px; border: 2px solid var(--line-2); border-top-color: var(--teal); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ==== 空 / 加载 ==== */
.empty { text-align: center; padding: 72px 20px; color: var(--muted); grid-column: 1 / -1; }
.empty .ico { font-size: 44px; margin-bottom: 14px; opacity: .8; }
.empty h3 { color: var(--ink); font-size: 17px; margin-bottom: 6px; font-weight: 650; }
.loading-wrap { display: flex; justify-content: center; padding: 60px; }

/* ==== 自选股表格 ==== */
.wl-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.wl-table thead th { text-align: left; font-size: 12px; font-weight: 600; color: var(--faint); padding: 13px 18px; border-bottom: 1px solid var(--line); letter-spacing: .3px; }
.wl-table thead th.num { text-align: right; }
.wl-table tbody tr { cursor: pointer; transition: background .12s; }
.wl-table tbody tr:hover { background: var(--surface-2); }
.wl-table tbody td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.wl-table tbody tr:last-child td { border-bottom: none; }
.wl-table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.wl-name { font-weight: 650; }
.wl-code { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.wl-price { font-weight: 700; font-variant-numeric: tabular-nums; }
.chip { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.spark { display: block; }
.watch-cards { display: none; }
.watch-item { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 16px; margin-bottom: 10px; cursor: pointer; }
.watch-item:hover { border-color: var(--line-2); }
.watch-item .wname { font-weight: 700; }
.watch-item .wcode { font-size: 12px; color: var(--muted); }
.watch-item .wsig { margin-left: auto; text-align: right; }
.watch-item .wprice { font-weight: 700; font-variant-numeric: tabular-nums; }
.watch-item .wpct { font-size: 13px; }

/* ==== 个股详情:数据磁贴 ==== */
.detail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.detail-price .big { font-size: 40px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1; }
.detail-price .chg { font-size: 16px; font-weight: 700; margin-top: 8px; font-variant-numeric: tabular-nums; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; margin-bottom: 22px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 13px; padding: 13px 15px; }
.tile .k { font-size: 12px; color: var(--muted); }
.tile .v { font-size: 16px; font-weight: 700; margin-top: 5px; font-variant-numeric: tabular-nums; }
.detail-actions { display: flex; gap: 12px; margin-bottom: 22px; }
.detail-actions .btn { flex: 1; padding: 13px; }
.hint { text-align: center; color: var(--muted); font-size: 13px; margin-bottom: 12px; }

/* ==== 报告会议纪要(与首页/自选股同宽,填满内容区,保证各页左右边缘一致) ==== */
.report { width: 100%; }
.banner { border-radius: var(--r); padding: 18px 20px; margin-bottom: 18px; border: 1px solid var(--line); }
.banner .cap { font-size: 13px; color: var(--muted); }
.banner .decision { font-size: 30px; font-weight: 800; margin: 4px 0; }
.banner .meta { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.meeting { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.msg { display: flex; gap: 12px; margin-bottom: 18px; align-items: flex-start; }
.avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 19px; box-shadow: 0 3px 10px rgba(0,0,0,.3); }
.msgbody { flex: 1; min-width: 0; }
.who { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.who small { font-weight: 400; font-size: 12px; color: var(--faint); margin-left: 8px; }
.bubble { background: var(--surface); border: 1px solid var(--line); border-radius: 5px 16px 16px 16px; padding: 14px 16px; overflow-wrap: break-word; }
.bubble > :first-child { margin-top: 0; } .bubble > :last-child { margin-bottom: 0; }
.bubble p { margin: 9px 0; font-size: 14.5px; }
.bubble ul, .bubble ol { margin: 9px 0; padding-left: 22px; }
.bubble li { margin: 3px 0; font-size: 14.5px; }
.bubble h3, .bubble h4, .bubble h5, .bubble h6 { margin: 14px 0 5px; font-size: 15px; }
.bubble h3 { font-size: 16px; }
.bubble hr { border: none; border-top: 1px solid var(--line); margin: 12px 0; }
.bubble code { background: #ffffff14; border-radius: 4px; padding: 1px 5px; font-size: 13px; }
.bubble strong { color: #fff; }
.tablewrap { overflow-x: auto; margin: 10px 0; border: 1px solid var(--line); border-radius: 10px; }
.bubble table { border-collapse: collapse; font-size: 13px; min-width: 100%; }
.bubble th, .bubble td { padding: 8px 10px; text-align: left; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); white-space: normal; min-width: 68px; }
.bubble th:last-child, .bubble td:last-child { border-right: none; }
.bubble thead th { background: #4b8bff1f; font-weight: 600; }
.bubble tbody tr:last-child td { border-bottom: none; }
.disclaimer { font-size: 12px; color: var(--faint); margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); line-height: 1.7; }
.back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); background: none; border: none; font-size: 14px; margin-bottom: 18px; padding: 6px 0; }
.back-link:hover { color: var(--ink); }

/* 日报详情模块 */
.mod-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; margin-bottom: 14px; }
.mod-card h3 { font-size: 14.5px; margin-bottom: 10px; font-weight: 650; }

/* ==== 账户 ==== */
.acct-hero { display: flex; align-items: center; gap: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin-bottom: 16px; }
.acct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.acct-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 6px 18px; }
.acct-row { display: flex; justify-content: space-between; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.acct-row:last-child { border-bottom: none; }
.acct-row .k { color: var(--muted); }
.acct-row .v { font-weight: 650; font-variant-numeric: tabular-nums; }
.avatar-lg { width: 66px; height: 66px; border-radius: 50%; background: var(--grad); display: flex; align-items: center;
  justify-content: center; font-size: 27px; font-weight: 700; color: #fff; flex: none; overflow: hidden; }
.avatar-lg img { width: 100%; height: 100%; object-fit: cover; }
.tier-chip { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 20px; margin-top: 6px;
  background: rgba(45,212,191,.14); color: var(--teal); }

/* ==== 表单 / 认证 ==== */
.auth-wrap { display: flex; align-items: center; justify-content: center; min-height: 100vh; padding: 24px;
  background: radial-gradient(820px 500px at 70% -5%, rgba(45,212,191,.14), transparent),
              radial-gradient(720px 500px at 12% 0%, rgba(75,139,255,.18), transparent); }
.auth-card { width: 100%; max-width: 404px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 22px; padding: 34px 30px; box-shadow: var(--shadow); }
.auth-card .brand { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; justify-content: center; margin-bottom: 6px; }
.auth-card .brand img { width: 34px; height: 34px; border-radius: 9px; }
.auth-card .slogan { text-align: center; color: var(--muted); font-size: 13px; margin-bottom: 26px; }
.auth-card h2 { font-size: 19px; margin-bottom: 20px; }
.field { margin-bottom: 15px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 7px; }
.field input, .field select { width: 100%; background: var(--bg); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 13px; color: var(--ink); outline: none; transition: border-color .12s, box-shadow .12s; }
.field input:focus, .field select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(75,139,255,.18); }
.auth-err { color: #ff6b6b; font-size: 13px; margin-bottom: 12px; min-height: 18px; }
.auth-switch { text-align: center; margin-top: 18px; font-size: 14px; color: var(--muted); }
.auth-switch a { cursor: pointer; }
.auth-mini-link { display: block; text-align: right; font-size: 13px; margin: -6px 0 14px; cursor: pointer; }

/* ==== 弹窗 ==== */
.modal-mask { position: fixed; inset: 0; background: rgba(0,0,0,.62); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 20px; }
.modal { width: 100%; max-width: 460px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 20px; padding: 26px; max-height: 88vh; overflow-y: auto; box-shadow: var(--shadow); }
.modal h3 { font-size: 18px; margin-bottom: 16px; }
.modal .row { display: flex; gap: 10px; margin-top: 18px; }
.modal .row .btn { flex: 1; }
.search-results { margin-top: 12px; max-height: 280px; overflow-y: auto; }
.search-item { padding: 12px 13px; border-radius: 10px; cursor: pointer; display: flex; gap: 10px; align-items: center; transition: background .1s; }
.search-item:hover { background: var(--surface-2); }
.search-item .nm { font-weight: 600; }
.search-item .cd { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* ==== 进度流 ==== */
.progress-log { margin-top: 16px; }
.progress-step { display: flex; gap: 11px; align-items: center; padding: 9px 0; font-size: 14px; }
.progress-step .st-ico { width: 20px; text-align: center; }
.progress-step.done { color: var(--ink); }
.progress-step.pending { color: var(--muted); }

.toast { position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%); background: var(--surface-3); color: var(--ink);
  border: 1px solid var(--line-2); padding: 12px 22px; border-radius: 12px; z-index: 80; font-size: 14px; box-shadow: var(--shadow); }

/* ==== 移动端底部导航(基础规则须在媒体查询之前) ==== */
.mobile-nav { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: rgba(12,15,23,.94); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); z-index: 40; }
.mobile-nav button { flex: 1; background: none; border: none; color: var(--muted); padding: 9px 0 12px; font-size: 11px;
  display: flex; flex-direction: column; align-items: center; gap: 3px; position: relative; }
.mobile-nav button.active { color: var(--teal); }
.mobile-nav button .ico { font-size: 20px; }
.mobile-nav button .dot { position: absolute; top: 4px; right: 50%; margin-right: -22px; min-width: 16px; height: 16px;
  background: var(--up); color: #fff; border-radius: 8px; font-size: 10px; line-height: 16px; padding: 0 4px; font-weight: 700; }

/* ==== 响应式 ==== */
@media (max-width: 900px) {
  .content { padding: 26px 22px 90px; }
  .acct-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .sidebar { display: none; }
  .topbar { display: flex; }
  #app { flex-direction: column; }
  .content { padding: 18px 15px 92px; max-width: 640px; }
  .mobile-nav { display: flex; }
  .page-title { font-size: 21px; }
  .card-grid { grid-template-columns: 1fr; }
  .wl-table { display: none; }
  .watch-cards { display: block; }
  .fab { display: flex; position: fixed; right: 20px; bottom: 78px; width: 54px; height: 54px; border-radius: 50%; font-size: 26px;
    align-items: center; justify-content: center; background: var(--grad); color: #fff; border: none; box-shadow: 0 8px 26px rgba(45,212,191,.4); z-index: 30; }
  .detail-price .big { font-size: 34px; }
  .page-head-actions .btn span.long { display: none; }
}
