/* ===== Tarsign · A股决策台 · 全站共享样式（v4 极简白） ===== */
:root {
  --gl-blue:   #27548c;
  --gl-blue-d: #1d3f6b;
  --gl-blue-l: #eef3fa;
  --gl-navy: #0a0a0a;
  --gl-content: 1720px;   /* 全站统一版心：功能页 .wrap 与看盘大屏 .dash 共用（VIP 页单独 1400） */
  --gl-rail: 244px;
  --gl-top: 52px;
  --gl-line: #e3e4e6;
  --gl-line-l: #f0f0f2;
  --gl-ink: #0a0a0a;
  --gl-ink-2:#48484a;
  --gl-ink-3:#86868b;
  --gl-sub: #8a93a5;
  --gl-bd: #fafafa;
  --gl-up: #e03131;   /* A股习惯：红涨 */
  --gl-dn: #0ca678;   /* 绿跌 */
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--gl-bd); color: var(--gl-ink);
       font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
       font-size: 14px; line-height: 1.6; font-feature-settings: "kern" 1;
       -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
a { color: var(--gl-blue); text-decoration: none; }
button, input, select, textarea { font-family: inherit; }
::selection { background: rgba(39,84,140,.16); }

/* ===================== 站点外壳（v5 无侧栏 · 顶栏 + 全宽居中） ===================== */
.site-nav-wrap { position: static; background: transparent; border: 0; }

/* ---- 左侧抽屉（全视口默认隐藏，汉堡触发；数据绑定 DOM 保留） ---- */
.gl-rail { position: fixed; left: 0; top: 0; bottom: 0; width: 300px;
  background: #fff;
  box-shadow: 0 24px 64px -24px rgba(0,0,0,.28);
  display: flex; flex-direction: column; z-index: 60;
  transform: translateX(-102%); transition: transform .28s cubic-bezier(.4,.05,.2,1);
  border-right: 1px solid rgba(0,0,0,.055); }
.gl-rail.open { transform: none; }
.gl-rail .gl-brand { padding-right: 56px; }  /* 给关闭按钮留位 */
.gl-rail-close { position: absolute; right: 14px; top: 20px; width: 32px; height: 32px;
  border: 1px solid rgba(0,0,0,.08); border-radius: 9px; background: #fff;
  color: var(--gl-ink-2); font-size: 14px; cursor: pointer; display: grid; place-items: center; }
.gl-rail-close:hover { background: var(--gl-blue-l); color: var(--gl-blue-d); }
.gl-brand { display: flex; align-items: center; gap: 12px; padding: 20px 20px 16px; }
.gl-logo { width: 38px; height: 38px; border-radius: 11px; flex: none; display: grid; place-items: center;
  background: linear-gradient(135deg, #27548c 0%, #1d3f6b 100%);
  color: #fff; font-size: 18px; font-weight: 800;
  box-shadow: 0 4px 14px rgba(39,84,140,.28); }
/* 图片版站标（tarsign 字标，透明 PNG） */
.gl-logo.gl-logo-img { width: auto; background: none; box-shadow: none; }
.gl-logo.gl-logo-img img { display: block; height: 100%; width: auto; }
.gl-brand-top .gl-logo.gl-logo-img { height: 30px; }
.gl-bt b { display: block; color: var(--gl-ink); font-size: 16px; letter-spacing: 1.5px; line-height: 1.25; font-weight: 800; }
.gl-bt i { font-style: normal; display: block; color: var(--gl-ink-3); font-size: 10px; letter-spacing: 2px; font-weight: 600; }

/* 搜索（顶栏版：胶囊浅灰；抽屉版：侧栏样式） */
.gl-find { position: relative; }
.gl-find input { width: 100%; height: 36px; border-radius: 11px; color: var(--gl-ink);
  font-size: 13px; font-weight: 500;
  border: 1px solid rgba(0,0,0,.08); background: rgba(0,0,0,.035);
  padding: 0 44px 0 34px; outline: none; transition: .18s; }
.gl-find input::placeholder { color: var(--gl-ink-3); font-weight: 400; }
.gl-find input:focus { border-color: var(--gl-blue); background: #fff;
  box-shadow: 0 0 0 3px rgba(39,84,140,.14); }
.gl-find .gl-find-i { position: absolute; left: 12px; top: 10px; color: var(--gl-ink-3); font-size: 13px; pointer-events: none; }
.gl-find kbd { position: absolute; right: 8px; top: 9px; font-size: 9.5px; color: var(--gl-ink-3);
  border: 1px solid rgba(0,0,0,.08); border-radius: 4px; padding: 0 5px; pointer-events: none;
  background: rgba(0,0,0,.035); font-weight: 600; }
/* 顶栏搜索（更紧凑） */
.gl-find-top { width: 220px; flex: none; }
.gl-find-top input { height: 34px; padding: 0 36px 0 32px; }
/* 抽屉里的搜索 */
.gl-rail .gl-find { margin: 0 14px 12px; width: auto; }
.gl-rail .gl-find input { height: 34px; }

.gl-sug { position: absolute; left: 0; right: 0; top: 42px; z-index: 6; background: #fff;
  border: 1px solid rgba(0,0,0,.06); border-radius: 14px; box-shadow: 0 24px 48px -12px rgba(0,0,0,.14);
  padding: 6px; max-height: 320px; overflow-y: auto; }
.gl-sug-i { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 9px;
  color: var(--gl-ink); font-size: 12.5px; font-weight: 500; }
.gl-sug-i:hover, .gl-sug-i.on { background: var(--gl-blue-l); color: var(--gl-blue-d); }
.gl-sug-i span { font-size: 14px; }
.gl-sug-i b { font-weight: 600; white-space: nowrap; }
.gl-sug-i i { font-style: normal; color: var(--gl-ink-3); font-size: 11px; margin-left: auto; }
.gl-sug-e { padding: 10px; color: var(--gl-ink-3); font-size: 12px; text-align: center; }

.gl-nav { flex: 1; overflow-y: auto; padding: 4px 12px 14px; }
.gl-nav::-webkit-scrollbar { width: 5px; }
.gl-nav::-webkit-scrollbar-thumb { background: rgba(0,0,0,.10); border-radius: 4px; }
.gl-gt { color: var(--gl-ink-3); font-size: 10px; font-weight: 700; letter-spacing: 1.6px;
  padding: 14px 9px 6px; text-transform: uppercase; }
.gl-item { display: flex; align-items: center; gap: 9px; padding: 8px 11px; border-radius: 10px;
  color: var(--gl-ink-2); font-size: 13px; font-weight: 500; margin-bottom: 1px; transition: .16s; }
.gl-item:hover { background: rgba(0,0,0,.04); color: var(--gl-ink); }
.gl-item.active { background: var(--gl-blue-l);
  color: var(--gl-blue-d); font-weight: 600; }
.gl-i { width: 20px; flex: none; text-align: center; font-size: 14px; }
.gl-nm { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gl-tag { flex: none; font-size: 9.5px; color: var(--gl-ink-3); border: 1px solid rgba(0,0,0,.08);
  border-radius: 4px; padding: 0 5px; line-height: 15px; font-weight: 600; }
.gl-item.active .gl-tag { color: var(--gl-blue-d); border-color: rgba(39,84,140,.25); }
.gl-rail-ft { padding: 14px 18px 16px; border-top: 1px solid rgba(0,0,0,.05); }
.gl-rail-ft p { color: var(--gl-ink-3); font-size: 10.5px; line-height: 1.75; }

/* ---- 顶部条（v5：左 logo + 汉堡 + 面包屑 + 分组快捷链接 + 搜索 + 账号区） ---- */
/* 顶栏不悬浮：普通流式，随页面滚动滚走（不再 sticky 钉在视口顶） */
/* 对齐：所有子项统一 34px 高度基线；面包屑紧跟 logo 占固定槽位，不被 groups 挤没 */
.gl-top { min-height: var(--gl-top); display: flex; align-items: center; gap: 14px;
  padding: 6px 28px;
  background: #fff;
  border-bottom: 1px solid rgba(0,0,0,.05); position: static; z-index: 40; }
/* 各子项统一高度基线（34px），消除 30/32/34 混排错位 */
.gl-brand-top { display: flex; align-items: center; gap: 11px; padding: 0; flex: none; height: 34px; }
.gl-brand-top .gl-logo { width: 32px; height: 32px; font-size: 15px; border-radius: 9px; }
.gl-brand-top .gl-bt b { font-size: 14px; }
.gl-brand-top .gl-bt i { font-size: 9px; }

/* 面包屑紧跟 logo（固定槽位，永不 collapse） */
.gl-crumb-gl { flex: none; display: flex; align-items: center; gap: 0; color: var(--gl-ink-3);
  font-size: 12px; font-weight: 500; height: 34px; white-space: nowrap; overflow: hidden; }
.gl-crumb-gl a { color: var(--gl-ink-2); }
.gl-crumb-gl a:hover { color: var(--gl-blue); }
.gl-crumb-gl i { font-style: normal; color: #c8c8cc; font-size: 11px; }
.gl-crumb-gl .cur { color: var(--gl-ink); font-weight: 700; }

/* 分组快捷链接区（收藏直显）：贪婪占满剩余宽度，把 搜索+VIP+登录 三框钉死在最右缘；
   放不下时在本区内横滑（min-width:0），不挤右侧 */
.gl-top-groups { display: flex; align-items: center; gap: 4px; flex: 1 1 auto;
  min-width: 0; overflow-x: auto; scrollbar-width: none; justify-content: flex-start; }
.gl-top-groups::-webkit-scrollbar { display: none; }
.gl-top-link { flex: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 9px; color: var(--gl-ink-2);
  font-size: 12.5px; font-weight: 600; letter-spacing: -.1px;
  border: 1px solid transparent; transition: .16s; }
.gl-top-link:hover { background: rgba(0,0,0,.04); color: var(--gl-ink); }
.gl-top-link.on { background: var(--gl-blue-l); color: var(--gl-blue-d);
  border-color: rgba(39,84,140,.18); }
.gl-top-link .t { white-space: nowrap; }

/* 顶栏分组下拉（hover/click 展开；面板绝对定位于触发按钮下方） */
.gl-dd { position: relative; flex: none; }
.gl-dd-btn { border: 0; background: transparent; cursor: pointer; display: inline-flex;
  align-items: center; gap: 5px; padding: 7px 12px; border-radius: 9px;
  color: var(--gl-ink-2); font-size: 12.5px; font-weight: 600; white-space: nowrap; transition: .16s; }
.gl-dd-btn .ar { font-size: 9px; color: var(--gl-ink-3); transition: transform .18s; }
.gl-dd-panel { position: absolute; top: 100%; left: 0; margin-top: 8px; min-width: 232px; z-index: 50; }
.gl-dd.open .gl-dd-btn .ar { transform: rotate(180deg); }

/* 顶栏右侧账号区（VIP + 登录） */
.gl-top-r { display: flex; align-items: center; gap: 8px; flex: none; }
.gl-btn-vip, .gl-btn-login { flex: none; display: inline-flex; align-items: center; gap: 4px;
  height: 32px; padding: 0 13px; border-radius: 9px; font-size: 12.5px; font-weight: 600;
  text-decoration: none; white-space: nowrap; transition: .16s; }

/* 顶栏窄屏兜底：高频页 + 分组下拉放不下 → 隐藏，导航走汉堡抽屉 */
@media (max-width: 1079px) {
  .gl-crumb-gl { display: none; }
  .gl-top-groups { display: none; }
}

/* 面包屑（顶栏右侧，小字） */
.gl-crumb-gl { flex: none; display: flex; align-items: center; color: var(--gl-ink-3);
  font-size: 12px; font-weight: 500; min-width: 0; overflow: hidden; }
.gl-crumb-gl a { color: var(--gl-ink-2); }
.gl-crumb-gl a:hover { color: var(--gl-blue); }
.gl-crumb-gl i { font-style: normal; margin: 0 7px; color: #c8c8cc; }
.gl-crumb-gl .cur { color: var(--gl-ink); font-weight: 700; }
/* 旧 .crumb 选择器保持可用（验证脚本依赖 .crumb a / .crumb .cur） */
.gl-top .crumb { display: contents; }

.gl-top-r { flex: none; display: flex; align-items: center; gap: 14px; }
.gl-live { color: var(--gl-ink-2); font-size: 12px; display: flex; align-items: center; gap: 6px;
  font-weight: 500; white-space: nowrap; }
.gl-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--gl-up); display: inline-block;
  box-shadow: 0 0 0 3px rgba(224,49,49,.14); }

/* 汉堡（全视口显示，触发抽屉） */
.gl-burger { flex: none; width: 34px; height: 34px; border-radius: 9px;
  border: 1px solid rgba(0,0,0,.08); background: #fff; cursor: pointer;
  font-size: 15px; color: var(--gl-ink-2); display: grid; place-items: center;
  transition: .16s; }
.gl-burger:hover { background: var(--gl-blue-l); color: var(--gl-blue-d);
  border-color: rgba(39,84,140,.2); }
.gl-mask { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(0,0,0,.32);
  opacity: 0; pointer-events: none; transition: opacity .24s; }
.gl-mask.open { opacity: 1; pointer-events: auto; }

/* 不再给侧栏让位（v5 无侧栏） */
html.gl-rail-on body { padding-left: 0; }

/* 小屏：顶栏更紧凑 */
@media (max-width: 760px) {
  .gl-top { padding: 0 12px; gap: 8px; }
  .gl-find-top { width: 132px; }
  .gl-top-link { padding: 6px 9px; font-size: 12px; }
  .gl-crumb-gl { display: none; }
  .gl-live { display: none; }
}
/* 顶栏不整体裁切：overflow-x:hidden 会把搜索下拉建议竖向裁没；
   横向兜底交给 body{overflow-x:hidden} + groups 自身 min-width:0 横滑 */
html.gl-lock { overflow: hidden; }
body { overflow-x: hidden; }

/* 页面内部 sticky 侧栏在带顶栏（58px sticky）时的统一落点 */
html.gl-rail-on .mc-side { top: 70px; }
html.gl-rail-on .rp-side { top: 70px; }

/* ===================== 通用组件（Apple 式极简白） ===================== */
.wrap { max-width: var(--gl-content, 1720px); margin: 0 auto; padding: 24px 22px 40px; }
.card { background: #fff; border: 1px solid rgba(0,0,0,.045); border-radius: 16px;
        padding: 20px 22px; margin-bottom: 14px; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.sec-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; color: var(--gl-ink); letter-spacing: -.2px; }
.sec-desc { color: var(--gl-ink-3); font-size: 12.5px; margin-bottom: 14px; }

/* Hero：Apple 式纯白 + 大字 + 蓝点强调（不堆霓虹） */
.hero { background:transparent;border:0;border-radius:0;box-shadow:none; color: var(--gl-ink); padding: 14px 0 10px; margin-bottom: 12px;
        border-bottom: 1px solid rgba(39,84,140,.07); }
.hero h1 { font-size: 20px; margin-bottom: 4px; font-weight: 700; letter-spacing: -.4px; color: var(--gl-ink); }
.hero h1 em { font-style: normal; color: var(--gl-blue); }
.hero p { color: var(--gl-ink-3, #86868b); font-size: 12px; line-height: 1.7; max-width: 100%; font-weight: 400; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero .tags { display: none; }
.hero .tags span { background: #fff; border: 1px solid rgba(0,0,0,.08);
                   border-radius: 999px; padding: 4px 12px; font-size: 12px; font-weight: 500;
                   color: var(--gl-ink-2); }

.grid-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.fcard { background: #fff; border: 1px solid rgba(0,0,0,.045); border-radius: 18px; padding: 22px;
         display: flex; flex-direction: column; gap: 10px; transition: all .18s; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.fcard:hover { border-color: rgba(39,84,140,.2); box-shadow: 0 12px 32px -12px rgba(39,84,140,.12); transform: translateY(-2px); }
.fcard .ico { font-size: 24px; }
.fcard .fname { font-size: 16px; font-weight: 700; letter-spacing: -.2px; color: var(--gl-ink); }
.fcard .fdesc { color: var(--gl-ink-2); font-size: 13px; line-height: 1.75; flex: 1; }
.fcard .go { color: var(--gl-blue); font-size: 13px; font-weight: 600; }
.fcard.soon { opacity: .62; }
.fcard.soon:hover { transform: none; box-shadow: none; border-color: rgba(0,0,0,.045); }

.btn { border: 1px solid rgba(0,0,0,.08); background: #fff; border-radius: 10px; padding: 8px 16px;
  font-size: 13px; font-weight: 600; color: var(--gl-ink); cursor: pointer; transition: all .15s; }
.btn:hover { background: var(--gl-blue-xl); border-color: rgba(39,84,140,.2); color: var(--gl-blue-d); }
.btn.pri { background: var(--gl-blue); border-color: var(--gl-blue); color: #fff; }
.btn.pri:hover { background: var(--gl-blue-d); }
.pos { color: var(--gl-up); font-weight: 600; }
.neg { color: var(--gl-dn); font-weight: 600; }
       font-size: 13px; cursor: pointer; color: #333; transition: all .15s; }
.btn:hover { border-color: var(--gl-blue); color: var(--gl-blue); }
.btn.primary { background: var(--gl-blue); border-color: var(--gl-blue); color: #fff; }
.btn.primary:hover { background: var(--gl-blue-d); }

.idx-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 12px; }
.idx-card { display: block; background: #fff; border: 1px solid var(--gl-line); border-radius: 10px;
            padding: 14px 15px 10px; color: inherit; transition: all .18s; }
.idx-card:hover { border-color: #b3c7e2; box-shadow: 0 6px 16px rgba(39,84,140,.10); transform: translateY(-2px); }
.idx-card .iname { font-size: 14.5px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.idx-card .iname .code { color: #b3bac8; font-size: 11.5px; font-weight: 400; }
.idx-card .irow { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 2px; }
.idx-card .iclose { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; }
.idx-card .ipct { font-size: 13.5px; font-weight: 600; }
.idx-card .iamt { color: #9aa3b2; font-size: 12px; }
.idx-card .spark { margin-top: 6px; height: 44px; width: 100%; display: block; overflow: hidden; }
.idx-card .more { color: var(--gl-blue); font-size: 12px; margin-top: 6px; }

.stat-strip { display: flex; gap: 12px; flex-wrap: wrap; }
.stat-strip .stat { flex: 1; min-width: 120px; background: #f8fafd; border: 1px solid #edf0f6;
                    border-radius: 8px; padding: 11px 13px; text-align: center; }
.stat-strip .stat .k { color: var(--gl-sub); font-size: 12px; margin-bottom: 5px; }
.stat-strip .stat .v { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pos { color: var(--gl-up); } .neg { color: var(--gl-dn); }

.pfoot { color: #9aa3b2; font-size: 12px; line-height: 1.9; text-align: center; margin-top: 6px; }
.kv-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 8px 22px; }
.kv-list div { color: #5a6478; font-size: 13px; line-height: 1.9; }
.kv-list b { color: var(--gl-ink); }
.note { background: #f8fafd; border-left: 3px solid var(--gl-blue); padding: 10px 14px;
        border-radius: 0 8px 8px 0; color: #5a6478; font-size: 13px; line-height: 1.9; }
