/* InsigtX Web 原型 —— 沿用 App 视觉：白底卡片、黑色文字、荧光绿强调 */
:root {
  --bg: #FFFFFF;
  --card: #FFFFFF;
  --ink: #0B0B0C;
  --ink-2: #3A3D42;
  --muted: #6E737A;
  --line: #E6E7E3;
  --soft: #F5F6F3;
  --lime: #CCFF00;
  --lime-soft: #F1FFC2;
  --up: #0E9F4E;
  --down: #E5484D;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.04);
  --top-h: 64px;
  --main-pt: 24px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--top-h) + 16px); }
body { margin: 0; background: var(--bg); font-size: 15px; line-height: 1.55; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
input, select { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
h1 { font-size: 26px; font-weight: 700; }
h2 { font-size: 19px; font-weight: 700; }
h3 { font-size: 16px; font-weight: 650; }
small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 400; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; word-break: break-all; }
.up { color: var(--up); } .down { color: var(--down); } .flat { color: var(--muted); }
[hidden] { display: none !important; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* 顶栏 */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.88); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.topbar-in { height: var(--top-h); display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.brand img { width: 32px; height: 32px; border-radius: 9px; }
.topnav { display: flex; gap: 4px; }
.topnav a { padding: 8px 14px; border-radius: 999px; font-weight: 600; color: var(--ink-2); }
.topnav a:hover { background: var(--soft); }
.topnav a.active { background: var(--ink); color: #fff; }
.searchbox { flex: 1; max-width: 360px; margin-left: auto; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; background: var(--soft); border: 1px solid var(--line); border-radius: 999px; }
.searchbox svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.searchbox input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; }
.searchbox:focus-within { border-color: var(--ink); background: #fff; }
.searchbox.big { max-width: none; height: 50px; margin: 8px 0 16px; background: #fff; font-size: 16px; }
.userbox { flex: none; }
.user-chip { display: flex; align-items: center; gap: 8px; font-weight: 600; padding: 4px 12px 4px 4px; border-radius: 999px; }
.user-chip:hover { background: var(--soft); }

/* 行情条 */
.ticker { background: var(--ink); color: #fff; }
.ticker-in { display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; height: 40px; align-items: center; }
.ticker-in::-webkit-scrollbar { display: none; }
.tick { display: flex; gap: 8px; align-items: baseline; white-space: nowrap; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.tick b { color: #fff; } .tick span { color: #C9CCD1; }
.tick em { font-style: normal; font-weight: 600; }
.tick .up { color: var(--lime); } .tick .down { color: #FF7A7E; }
body:not([data-route="home"]):not([data-route="rwa"]) .ticker { display: none; }

main#view { padding-top: var(--main-pt); padding-bottom: 48px; min-height: 70vh; } /* 要比 .wrap 的 padding 优先 */

/* 布局 */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.col-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.col-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: calc(var(--top-h) + 16px); }
.page-narrow { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.page-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head .refresh { margin-left: auto; }
.card { background: var(--card); border-radius: var(--radius); border: 1px solid var(--line); padding: 20px; }
.side-block { padding: 18px; }
.side-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.side-head a { font-size: 13px; color: var(--muted); }
.side-head a:hover { color: var(--ink); }

/* 按钮 */
.btn-primary, .btn-dark, .btn-ghost, .btn-follow { display: inline-flex; align-items: center; justify-content: center; gap: 4px; height: 38px; padding: 0 18px; border-radius: 999px; font-weight: 650; white-space: nowrap; transition: transform .1s, background .15s; }
.btn-primary { background: var(--lime); color: var(--ink); }
.btn-primary:hover { filter: brightness(.96); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { background: var(--soft); border: 1px solid var(--line); font-weight: 550; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost.on { background: var(--lime-soft); border-color: #B9E600; }
.btn-ghost:disabled { opacity: .5; cursor: default; }
.sm { height: 32px; padding: 0 14px; font-size: 13.5px; }
.xs { height: 24px; padding: 0 10px; font-size: 12px; }
.btn-block { width: 100%; height: 46px; }
.btn-follow { background: var(--lime); color: var(--ink); }
.btn-follow i { font-style: normal; font-weight: 800; }
.btn-follow.on { background: var(--soft); color: var(--muted); border: 1px solid var(--line); }
.btn-follow:active, .btn-primary:active { transform: scale(.97); }
.btn-more { display: block; width: 100%; margin-top: 12px; height: 44px; border-radius: 12px; background: var(--soft); color: var(--ink-2); font-weight: 600; }
.btn-more:hover { background: var(--line); }

/* Tabs / chips */
.tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { white-space: nowrap; font-weight: 600; color: var(--muted); }
.tabs.seg { background: #E9EAE6; padding: 3px; border-radius: 999px; }
.tabs.seg .tab { padding: 6px 16px; border-radius: 999px; font-size: 14px; }
.tabs.seg .tab.active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.tabs.underline { gap: 22px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.tabs.underline .tab { padding: 10px 0; position: relative; }
.tabs.underline .tab.active { color: var(--ink); }
.tabs.underline .tab.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px; background: var(--ink); }
.tabs.big .tab { font-size: 17px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 8px; }
.chip { height: 32px; padding: 0 14px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); font-size: 13.5px; font-weight: 550; color: var(--ink-2); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* 头像 */
.avatar { position: relative; flex: none; width: var(--s); height: var(--s); border-radius: 50%; overflow: hidden; background: var(--ink); color: #fff; display: inline-grid; place-items: center; font-weight: 700; font-size: calc(var(--s) * .36); letter-spacing: -.02em; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #fff; }
.avatar.ring { box-shadow: 0 0 0 3px var(--lime); }
.avatar-stack { display: inline-flex; }
.avatar-stack .avatar { box-shadow: 0 0 0 2px #fff; }
.avatar-stack .avatar + .avatar { margin-left: -8px; }

/* 行 */
.row-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.side-head + div > .row-item:first-child, .row-item:first-child { border-top: 0; }
.row-link { display: flex; align-items: center; gap: 12px; min-width: 0; }
.row-link > span { min-width: 0; }
.row-link b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-link small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quote-row { font-variant-numeric: tabular-nums; }
.quote-row b { width: 56px; }
.quote-row span { flex: 1; text-align: right; }
.pill { display: inline-block; min-width: 76px; text-align: center; padding: 4px 8px; border-radius: 8px; font-weight: 650; font-size: 13.5px; font-style: normal; font-variant-numeric: tabular-nums; }
.pill.up { background: #E5F6EC; } .pill.down { background: #FDECEC; } .pill.flat { background: var(--soft); }

/* 热门资讯 */
.hot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hot-card { display: flex; flex-direction: column; gap: 8px; }
.hot-cover { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; aspect-ratio: 4 / 3; padding: 16px; border-radius: var(--radius); overflow: hidden; background: #111 center / cover no-repeat; color: #fff; }
.hot-cover::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 25%, rgba(0,0,0,.85)); }
.hot-cover > * { position: relative; }
.hot-label { position: absolute !important; top: 14px; left: 14px; background: var(--lime); color: var(--ink); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 6px; max-width: calc(100% - 28px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hot-title { font-weight: 700; font-size: 16px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.hot-time { font-size: 12px; color: #C9CCD1; }
.hot-cover:hover .hot-title { text-decoration: underline; text-underline-offset: 3px; }
.hot-browse { align-self: flex-start; font-size: 13px; font-weight: 600; color: var(--ink-2); padding: 4px 2px; }
.hot-browse:hover { color: var(--ink); text-decoration: underline; }

/* 资讯卡片 */
.feed { padding-bottom: 12px; }
.feed-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.news-card { padding: 18px 0; border-top: 1px solid var(--line); }
.news-card:first-child { border-top: 0; }
.news-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); margin-bottom: 6px; flex-wrap: wrap; }
.news-subject { font-weight: 700; color: var(--ink); }
.news-agg { font-size: 12px; color: var(--muted); }
.news-cat { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 6px; background: var(--soft); border: 1px solid var(--line); color: var(--ink-2); }
.news-title { display: block; font-size: 17px; font-weight: 700; line-height: 1.4; }
.news-title:hover, .tl-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.news-body { margin: 6px 0 0; color: var(--ink-2); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rels { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.rel { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px 0 5px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); font-size: 13px; font-weight: 650; }
.rel:hover { border-color: var(--ink); }

/* 时间轴 */
.timeline { list-style: none; margin: 8px 0 0; padding: 0; }
.tl-day { font-weight: 700; font-size: 14px; padding: 16px 0 6px; color: var(--ink); }
.tl-item { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 12px 0; border-top: 1px dashed var(--line); }
.tl-day + .tl-item { border-top: 0; }
.tl-time { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; padding-top: 2px; }
.tl-title { font-weight: 700; font-size: 16px; line-height: 1.4; }
.tl-foot { display: flex; gap: 8px; margin-top: 8px; align-items: center; }

/* 侧栏卡片 */
.related-item { display: block; padding: 12px 0; border-top: 1px solid var(--line); }
.related-item:first-child { border-top: 0; }
.related-item span { display: block; font-weight: 600; line-height: 1.4; }
.related-item em, .related-item small { display: block; font-style: normal; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.related-item small { margin: 0 0 4px; }
.related-item small b { color: var(--ink); }
.related-item:hover span { text-decoration: underline; text-underline-offset: 3px; }
.app-card { display: flex; align-items: center; gap: 12px; background: var(--ink); color: #fff; }
.app-card img { width: 44px; height: 44px; border-radius: 12px; }
.app-card > div { flex: 1; }
.app-card .muted { color: #A9ADB3; margin: 2px 0 0; }
.app-card .btn-dark { background: var(--lime); color: var(--ink); }

/* 巨鲸列表 */
.filters { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.filters .chips { margin: 0; }
.filter-right { display: flex; gap: 10px; }
.input, select { height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; outline: 0; }
.input:focus, select:focus { border-color: var(--ink); }
select { padding-right: 28px; max-width: 220px; }
.whale-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.whale-card { display: flex; flex-direction: column; gap: 14px; padding: 18px; }
.whale-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.whale-name { font-size: 17px; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.tags em { font-style: normal; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 6px; background: var(--soft); border: 1px solid var(--line); color: var(--ink-2); }
.tags em.tag-hl, .tag-hl { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.whale-act { display: block; padding: 12px 14px; background: var(--soft); border-radius: 12px; }
.whale-act span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; font-size: 14.5px; margin-top: 2px; }
.whale-act:hover span { text-decoration: underline; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.person-chip { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 96px; padding: 12px 6px; border-radius: 12px; text-align: center; }
.person-chip:hover { background: var(--soft); }
.person-chip b { font-size: 13.5px; line-height: 1.3; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grid-people { display: flex; flex-wrap: wrap; gap: 4px; }
.mini-chip { font-size: 13px; font-weight: 600; padding: 4px 12px; border-radius: 999px; background: var(--soft); border: 1px solid var(--line); }
.mini-chip:hover { border-color: var(--ink); }
.result-group .news-card:first-of-type { border-top: 0; }
.see-all { font-size: 13px; color: var(--muted); }

/* 详情 Hero */
.hero { margin: calc(-1 * var(--main-pt)) calc(50% - 50vw) 24px; background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(204,255,0,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(204,255,0,.07) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(90deg, transparent 30%, #000); }
.hero-in { position: relative; max-width: 1200px; margin: 0 auto; padding: 20px 24px 28px; }
.hero-main { display: flex; align-items: center; gap: 20px; margin-top: 10px; }
.hero-text { flex: 1; min-width: 0; }
.hero-text h1 { font-size: 32px; }
.hero-en { font-size: 17px; font-weight: 500; color: #C9CCD1; }
.hero-sub { margin: 6px 0 0; color: #A9ADB3; font-size: 14px; }
.tags.dark em:not(.tag-hl) { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); color: #E6E7E3; }
.hero-intro { margin-top: 18px; padding: 14px 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; max-width: 820px; }
.hero-intro p { margin: 0; color: #E6E7E3; }
.hero-intro small { color: #A9ADB3; margin-top: 6px; }
.hero-note { margin: 12px 0 0; font-size: 12.5px; color: var(--lime); }
.back { display: inline-block; font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.back.light { color: #A9ADB3; }
.back:hover { color: var(--ink); } .back.light:hover { color: #fff; }
.quote-line { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-top: 20px; font-variant-numeric: tabular-nums; }
.quote-src { color: #C9CCD1; font-size: 14px; font-weight: 600; }
.quote-src .tag-hl { font-style: normal; font-size: 12px; padding: 2px 7px; border-radius: 6px; }
.quote-price { font-size: 36px; font-weight: 800; letter-spacing: -.02em; }
.quote-chg { font-size: 18px; font-weight: 700; }
.quote-chg.up { color: var(--lime); } .quote-chg.down { color: #FF7A7E; }
.quote-time { margin-left: auto; font-size: 13px; color: #A9ADB3; }

/* 核心仓位 */
.core .side-head select { height: 32px; border-radius: 999px; font-weight: 600; }
.core-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 10px; }
.core-card { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 14px; background: var(--lime); color: var(--ink); min-width: 0; }
.core-card:nth-child(n+2) { background: var(--lime-soft); }
.core-sym { display: flex; align-items: center; gap: 8px; }
.core-card strong { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.core-card small { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 资料 */
.profile-box p { margin: 0 0 10px; color: var(--ink-2); }
.profile-box dl { margin: 0; display: grid; grid-template-columns: 76px 1fr; gap: 10px 12px; font-size: 14px; }
.profile-box dl + .side-head { margin-top: 18px; }
.profile-box dt { color: var(--muted); }
.profile-box dd { margin: 0; color: var(--ink-2); min-width: 0; }
.profile-box dd.tags { margin-top: 0; }
.profile-box dd.mono { display: flex; gap: 8px; align-items: flex-start; }

/* 表格 */
.table-wrap { overflow-x: auto; margin: 0 -4px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.table th { text-align: left; font-weight: 600; font-size: 12.5px; color: var(--muted); padding: 10px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .r { text-align: right; }
.table td small { font-size: 12px; }
.table td a:hover b { text-decoration: underline; }
.table tr.click { cursor: pointer; }
.table tr.click:hover td { background: var(--soft); }
.rwa-table td:first-child { min-width: 200px; }
.show-sm { display: none !important; }
.ct { font-size: 12px; font-weight: 650; padding: 2px 8px; border-radius: 6px; background: var(--soft); white-space: nowrap; }
.ct-INCREASED, .ct-NEW { background: #E5F6EC; color: var(--up); }
.ct-DECREASED, .ct-REMOVED { background: #FDECEC; color: var(--down); }
.hold-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-top: 14px; }
.hold-summary { margin: 10px 0 0; padding: 10px 14px; background: var(--soft); border-radius: 10px; font-size: 14px; color: var(--ink-2); }
.pager-row { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 14px; }
.disclaimer { font-size: 12.5px; color: var(--muted); margin: 16px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }

/* 文章 */
.article { padding: 28px 36px 24px; }
.article h1 { font-size: 28px; line-height: 1.35; margin: 10px 0 18px; }
.article-meta { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 14px; margin-top: 8px; }
.article-body p { font-size: 17px; line-height: 1.85; margin: 0 0 16px; color: #1E2024; }
.article-actions { display: flex; gap: 10px; margin-top: 20px; }

/* 个人中心 */
.me-head { display: flex; align-items: center; gap: 16px; padding: 8px 4px; }
.me-head p { margin: 2px 0 0; }
.me-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.me-card { display: block; min-height: 120px; transition: transform .15s; }
.me-card:hover { transform: translateY(-2px); }
.me-card-body { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.me-count { font-size: 26px; font-weight: 800; }
.fav-title { margin: 0; font-size: 14px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.menu { padding: 6px 20px; }
.menu-item { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 16px 0; border-top: 1px solid var(--line); font-weight: 550; text-align: left; }
.menu-item:first-child { border-top: 0; }
.menu-item.danger { color: var(--down); justify-content: center; }
.login-cta { text-align: center; padding: 48px 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.login-cta img { width: 64px; height: 64px; border-radius: 16px; }
.login-cta p { max-width: 420px; margin: 0 0 8px; }

/* 弹窗 */
.modal-mask { position: fixed; inset: 0; z-index: 50; background: rgba(11,11,12,.5); display: grid; place-items: center; padding: 16px; animation: fade .15s; }
.modal { position: relative; width: 100%; max-width: 400px; max-height: 90vh; overflow: auto; background: #fff; border-radius: 20px; padding: 28px; }
.modal.wide { max-width: 560px; }
.modal h2 { margin-bottom: 4px; }
.modal-x { position: absolute; top: 12px; right: 14px; width: 32px; height: 32px; border-radius: 50%; font-size: 22px; color: var(--muted); }
.modal-x:hover { background: var(--soft); color: var(--ink); }
.modal-logo { width: 48px; height: 48px; border-radius: 12px; margin-bottom: 12px; }
.modal form { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.modal label { display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; font-weight: 600; }
.modal label input { height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); outline: 0; font-size: 15px; font-weight: 400; }
.modal label input:focus { border-color: var(--ink); }
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; min-width: 0; }
.code-row .btn-ghost { height: 46px; border-radius: 12px; }
.form-err { margin: 0; min-height: 1em; color: var(--down); font-size: 13px; }
.topic-list { margin: 16px 0 0; padding: 0; list-style: none; counter-reset: t; }
.topic-list li a { display: flex; gap: 12px; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); }
.topic-list li a::before { counter-increment: t; content: counter(t); font-weight: 800; color: var(--muted); width: 18px; }
.topic-list li a span { flex: 1; font-weight: 600; }
.topic-list li a em { font-style: normal; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.topic-list li a:hover span { text-decoration: underline; }

/* 状态 */
.empty { padding: 36px 12px; text-align: center; color: var(--muted); font-size: 14px; }
.empty .btn-primary { margin-top: 14px; }
.empty.big { padding: 80px 12px; font-size: 16px; }
.empty a { text-decoration: underline; }
.skeleton { padding: 8px 0; }
.sk-line { height: 14px; margin: 12px 0; border-radius: 7px; background: linear-gradient(90deg, #ECEDEA 25%, #F6F7F4 50%, #ECEDEA 75%); background-size: 200% 100%; animation: sk 1.2s infinite; }
.sk-line:nth-child(3n+2) { width: 72%; } .sk-line:nth-child(3n) { width: 48%; }
@keyframes sk { to { background-position: -200% 0; } }
@keyframes fade { from { opacity: 0; } }
.toast { position: fixed; left: 50%; bottom: 40px; z-index: 60; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 999px; font-size: 14px; transition: .25s; pointer-events: none; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.footer { display: flex; gap: 20px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 32px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }
.proto-flag { margin-left: auto; background: var(--lime); color: var(--ink); padding: 0 8px; border-radius: 6px; font-weight: 600; }

.tabbar { display: none; }


/* ===== PRD 网页版布局 ===== */
.icon-btn { display: none; width: 38px; height: 38px; border-radius: 50%; place-items: center; }
.icon-btn svg { width: 22px; height: 22px; }
.userbox { display: flex; gap: 8px; }
.page-title { display: flex; align-items: baseline; gap: 16px; margin: 8px 0 20px; flex-wrap: wrap; }
.page-title h1 { font-size: 28px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.section-head h2 { font-size: 22px; }
.text-toggle { display: flex; gap: 16px; }
.text-toggle button { font-weight: 600; color: var(--muted); padding: 4px 0; border-bottom: 2px solid transparent; }
.text-toggle button.active { color: var(--ink); border-color: var(--lime); }
.strong { font-weight: 650; }

/* 行情概览 */
.overview { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin-bottom: 20px; }
.ov-label { display: flex; align-items: center; padding: 0 16px; font-size: 13px; font-weight: 700; background: var(--ink); color: var(--lime); white-space: nowrap; }
.ov-cells { flex: 1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); overflow-x: auto; scrollbar-width: none; }
.ov-cells::-webkit-scrollbar { display: none; }
.ov-cells .skeleton { grid-column: 1 / -1; padding: 8px 16px; }
.ov-cell { display: flex; flex-direction: column; gap: 1px; padding: 10px 16px; border-left: 1px solid var(--line); min-width: 120px; font-variant-numeric: tabular-nums; }
.ov-cell:first-child { border-left: 0; }
.ov-cell:hover { background: var(--soft); }
.ov-cell small { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-cell b { font-size: 16px; }
.ov-cell em { font-style: normal; font-size: 12.5px; font-weight: 650; }

/* 焦点卡片 */
.focus { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.focus .skeleton { grid-column: 1 / -1; }
.focus-card { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #111 center / cover no-repeat; color: #fff; }
.focus-card::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.1) 20%, rgba(0,0,0,.88)); }
.focus-link { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 18px; }
.focus-label { position: absolute; top: 14px; left: 14px; background: var(--lime); color: var(--ink); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 6px; max-width: calc(100% - 28px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.focus-title { font-weight: 800; font-size: 19px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.focus-meta { display: flex; justify-content: space-between; font-size: 12.5px; color: #C9CCD1; }
.focus-meta i { font-style: normal; font-size: 16px; color: #fff; }
.focus-link:hover .focus-title { text-decoration: underline; text-underline-offset: 3px; }
.focus-browse { position: absolute; top: 12px; right: 12px; z-index: 1; font-size: 12px; font-weight: 600; color: #fff; background: rgba(255,255,255,.16); backdrop-filter: blur(6px); padding: 3px 10px; border-radius: 999px; }
.focus-browse:hover { background: rgba(255,255,255,.28); }
.focus-dots { display: none; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: .05em; margin-top: 8px; }
.home-gap { height: 8px; }
.focus + .focus-dots + .layout { margin-top: 32px; }

/* 市场动态 */
.feed-list { margin-top: 4px; }
.feed-item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.feed-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; min-height: 32px; }
.feed-time { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.feed-time .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 2px #E9FF99; }
.subject-chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px 0 5px; border: 1px solid var(--line); border-radius: 10px; font-size: 13.5px; font-weight: 650; min-width: 0; max-width: 60%; }
.subject-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.subject-chip i { font-style: normal; color: var(--muted); margin-left: auto; padding-left: 6px; }
.subject-chip:hover { border-color: var(--ink); }
.feed-title { display: block; font-size: 18px; font-weight: 750; line-height: 1.4; }
.feed-title:hover { text-decoration: underline; text-underline-offset: 3px; }
.feed-body { margin: 6px 0 0; color: var(--ink-2); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price-chips { display: flex; gap: 18px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; }
.price-chips::-webkit-scrollbar { display: none; }
.price-chip { display: inline-flex; gap: 6px; align-items: baseline; white-space: nowrap; font-size: 13px; font-variant-numeric: tabular-nums; }
.price-chip b { font-weight: 750; }
.price-chip span { color: var(--ink-2); }
.price-chip em { font-style: normal; font-weight: 650; }
.price-chip:hover b { text-decoration: underline; }

/* 首页右栏 */
.side-section { padding-bottom: 8px; }
.side-section + .side-section { padding-top: 16px; border-top: 1px solid var(--line); }
.side-sub { margin: -6px 0 10px; font-size: 12.5px; color: var(--muted); }
.asset-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 10px; }
.asset-card-top { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.asset-card-px { display: flex; flex-direction: column; align-items: flex-end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.asset-card-px b { font-size: 16px; }
.asset-card-px em { font-style: normal; font-size: 13px; font-weight: 650; }
.asset-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.asset-card-foot small { margin: 0; }

/* RWA */
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.seg-mini { display: flex; background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 3px; }
.seg-mini button { height: 32px; padding: 0 14px; border-radius: 9px; font-weight: 600; color: var(--muted); font-size: 14px; }
.seg-mini button.active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.seg-mini b { font-weight: 700; }
.field { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.searchbox.inline { margin-left: auto; max-width: 300px; height: 38px; border-radius: 12px; }
.searchbox.inline.wide { max-width: none; margin: 0 0 14px; }
.table-meta { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin: 0 0 6px; }
.star { font-size: 18px; color: var(--muted); width: 28px; height: 28px; border-radius: 50%; }
.star.on { color: #9BC400; }
.star:hover { background: var(--soft); }
.star-cell { width: 36px; }
.prod-tag { display: inline-block; font-size: 12.5px; font-weight: 650; padding: 3px 9px; border-radius: 8px; background: var(--lime-soft); border: 1px solid #DDF58A; }
.page-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 18px; font-size: 14px; font-weight: 600; }

/* 巨鲸 */
.hot-whales { margin-bottom: 28px; }
.hot-whales .section-head { justify-content: flex-start; align-items: baseline; }
.hw-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.hw-grid .skeleton { grid-column: 1 / -1; }
.hw-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; }
.hw-card .tags { margin: 0; }
.hw-head { font-size: 15px; }
.hw-desc { margin: 0; font-size: 13.5px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.hw-foot { display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; font-weight: 650; }
.hw-foot a:hover { text-decoration: underline; }
.count { font-size: 12px; background: var(--lime); color: var(--ink); padding: 0 7px; border-radius: 999px; margin-left: 4px; }
.whales-layout { margin-top: 18px; grid-template-columns: minmax(0, 1fr) 400px; }
.filter-rows { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.filter-row { display: flex; gap: 14px; align-items: center; }
.filter-row > span { flex: none; width: 64px; font-size: 13px; color: var(--muted); }
.filter-row .chips { margin: 0; }
.whale-list { border-top: 1px solid var(--line); }
.whale-row { display: flex; gap: 14px; align-items: flex-start; padding: 16px 12px; border-bottom: 1px solid var(--line); border-radius: 0; }
.whale-row:hover { background: var(--soft); }
.whale-row.selected { background: var(--lime-soft); box-shadow: inset 3px 0 0 var(--lime); }
.whale-row-main { flex: 1; min-width: 0; }
.whale-row-head { display: flex; align-items: baseline; gap: 8px; }
.whale-row-head b { font-size: 16px; }
.whale-row-head small { margin: 0; }
.whale-row .tags { margin-top: 6px; }
.whale-row-act { margin: 8px 0 0; font-size: 14px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.whale-row-act small { font-weight: 400; margin-bottom: 2px; }
.preview { border: 1px solid var(--line); border-radius: 16px; padding: 20px; background: linear-gradient(180deg, var(--lime-soft), #fff 140px); }
.pv-head { display: flex; gap: 12px; align-items: center; }
.pv-head b { font-size: 18px; }
.pv-block { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.pv-src { margin-bottom: 6px; }
.pv-summary { margin: 0 0 8px; font-size: 14px; color: var(--ink-2); }
.pv-change { display: grid; grid-template-columns: 64px 1fr auto; gap: 8px; align-items: baseline; padding: 8px 0; font-size: 13.5px; font-variant-numeric: tabular-nums; border-top: 1px dashed var(--line); }
.pv-change span { color: var(--muted); }
.pv-change em { font-style: normal; font-weight: 700; }
.pv-link { display: inline-block; margin-top: 10px; font-size: 13.5px; font-weight: 650; }
.pv-link:hover { text-decoration: underline; }
.pv-foot { display: flex; gap: 10px; margin-top: 18px; }
.related-item em { margin: 0 0 3px; }

/* 详情 */
.hero-kind { display: inline-block; font-size: 12.5px; color: var(--lime); font-weight: 650; margin-bottom: 4px; }
.lead { font-size: 15.5px; line-height: 1.75; color: var(--ink) !important; }
.wide-dl { grid-template-columns: 96px 1fr !important; }
.prod-line { display: flex; align-items: center; gap: 12px; margin-top: 14px; font-size: 13.5px; color: #C9CCD1; flex-wrap: wrap; }
.prod-line .prod-tag { color: var(--ink); background: var(--lime); border-color: var(--lime); }
.mint { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; color: #E6E7E3; padding: 3px 10px; border-radius: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); }
.mint:hover { border-color: var(--lime); }
.know { padding: 16px 0 8px; }
.sub-h { margin: 18px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }

/* 文章 */
.article { padding: 0; }
.article-head { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.article-cat { display: inline-block; font-size: 12.5px; font-weight: 700; background: var(--lime); padding: 2px 10px; border-radius: 6px; margin-top: 8px; }
.article h1 { margin: 12px 0 12px; }
.article-meta-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.article-actions { margin: 0; }
.involved { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 0; border-bottom: 1px solid var(--line); }
.involved-item { display: flex; align-items: center; gap: 12px; padding: 6px 8px 6px 6px; border: 1px solid var(--line); border-radius: 12px; }
.article-body { padding-top: 20px; }
.further { margin-top: 12px; padding: 18px 20px; background: var(--soft); border-radius: 14px; }
.further h3 { margin-bottom: 4px; }
.rel-asset { padding: 4px 0 12px; border-bottom: 1px solid var(--line); }
.rel-asset:last-child { border-bottom: 0; }
.rel-asset .row-item { border: 0; }
.rel-asset-foot { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 600; }
.rel-asset-foot a:hover { text-decoration: underline; }

/* 我的 */
.me-banner { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: 16px; background: var(--lime-soft); border: 1px solid #DDF58A; margin-bottom: 16px; }
.me-banner > div { flex: 1; }
.me-banner b { font-size: 17px; }
.me-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.me-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.me-row:first-child { border-top: 0; }
.me-row:hover b, .me-row:hover .fav-title { text-decoration: underline; }
.me-box .menu-item:first-of-type { border-top: 0; }
.menu.me-box { padding: 20px; }


/* ===== 返回栏 ===== */
.backbar { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 14px; }
.back-btn { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--soft); border: 1px solid var(--line); color: var(--ink); transition: background .15s, transform .1s; }
.back-btn svg { width: 18px; height: 18px; }
.back-btn:hover { background: #fff; border-color: var(--ink); }
.back-btn:active { transform: scale(.94); }
.crumb { color: var(--muted); font-weight: 600; }
.crumb:hover { color: var(--ink); }
.crumb-sep { color: #C3C6CB; }
.crumb-cur { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.backbar.light .back-btn { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); color: #fff; }
.backbar.light .back-btn:hover { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.4); }
.backbar.light .crumb { color: #A9ADB3; }
.backbar.light .crumb:hover { color: #fff; }
.backbar.light .crumb-sep { color: #5A5E64; }
.backbar.light .crumb-cur { color: #fff; }
.hero .backbar { margin-bottom: 4px; }

/* ===== 配色：荧光绿只做点缀，不用绿底黑字 ===== */
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { filter: none; background: #2A2C30; }
.btn-follow { background: var(--ink); color: #fff; }
.btn-follow i { color: var(--lime); }
.btn-follow:hover { background: #2A2C30; }
.btn-follow.on { background: #fff; color: var(--muted); border: 1px solid var(--line); }
.hero .btn-follow { background: #fff; color: var(--ink); }
.hero .btn-follow i { color: var(--ink); }
.hero .btn-follow.on { background: rgba(255,255,255,.1); color: #E6E7E3; border-color: rgba(255,255,255,.2); }
.tags em.tag-hl, .tag-hl { background: var(--ink); border-color: var(--ink); color: #fff; }
.tags.dark em, .tags.dark em.tag-hl { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); color: #E6E7E3; }
.tags.dark em.tag-hl { color: var(--lime); border-color: rgba(204,255,0,.35); }
.quote-src .tag-hl { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: #E6E7E3; }
.focus-label { background: rgba(11,11,12,.6); backdrop-filter: blur(6px); color: #fff; display: inline-flex; align-items: center; gap: 6px; }
.focus-label::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); flex: none; }
.core-card { background: var(--soft); border: 1px solid var(--line); }
.core-card:nth-child(n+2) { background: var(--soft); }
.core-card:first-child { background: var(--ink); border-color: var(--ink); color: #fff; }
.core-card:first-child strong { color: var(--lime); }
.core-card:first-child small { color: #A9ADB3; }
.count { background: var(--ink); color: #fff; }
.prod-tag { background: var(--soft); border-color: var(--line); color: var(--ink-2); }
.prod-line .prod-tag { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); color: #fff; }
.me-banner { background: var(--soft); border-color: var(--line); }
.article-cat { background: transparent; padding: 0; display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); }
.article-cat::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--lime); box-shadow: 0 0 0 1px #B5DC00; }
.whale-row.selected { background: var(--soft); box-shadow: inset 3px 0 0 var(--lime); }
.preview { background: #fff; border-top: 3px solid var(--lime); }
.proto-flag { background: var(--ink); color: var(--lime); }
.seg-mini b { color: var(--ink); }

/* 平板：侧栏移到下方 */
@media (max-width: 1023px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .col-side { position: static; }
  .topbar-in { gap: 16px; }
  .hw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .whales-layout .col-side { display: none; }
  .ov-cells { grid-template-columns: repeat(6, minmax(120px, 1fr)); }
}

/* 手机 */
@media (max-width: 767px) {
  :root { --top-h: 56px; --main-pt: 16px; }
  body { font-size: 15px; padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
  .wrap { padding: 0 16px; }
  .topnav { display: none; }
  .topbar-in { gap: 8px; }
  .brand { margin-right: auto; }
  #searchForm { display: none; }
  .icon-btn { display: grid; }
  .page-title h1 { font-size: 24px; }
  .overview { margin: 0 -16px 16px; border-radius: 0; border-left: 0; border-right: 0; }
  .ov-label { padding: 0 12px; font-size: 12px; }
  .ov-cell { min-width: 112px; padding: 8px 12px; }
  .focus { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 86%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; gap: 12px; }
  .focus::-webkit-scrollbar { display: none; }
  .focus-card { scroll-snap-align: start; }
  .focus-dots { display: block; }
  .focus + .focus-dots + .layout { margin-top: 20px; }
  .focus-title { font-size: 17px; }
  .feed-title { font-size: 16.5px; }
  .subject-chip { max-width: 55%; height: 30px; }
  .toolbar { gap: 8px; }
  .toolbar .field { flex: 1; }
  .toolbar .field select { flex: 1; max-width: none; }
  .searchbox.inline { max-width: none; margin: 0; flex-basis: 100%; }
  .hw-grid { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .hw-card { scroll-snap-align: start; }
  .filter-row { align-items: flex-start; }
  .filter-row .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .filter-row .chip { flex: none; }
  .whale-row { padding: 14px 4px; }
  .me-grid { grid-template-columns: minmax(0, 1fr); }
  .involved-item { width: 100%; justify-content: space-between; }
  h1 { font-size: 22px; }
  .card { padding: 16px; border-radius: 14px; }
  .page-head { margin-bottom: 14px; gap: 12px; }
  .page-head .refresh { margin-left: 0; }
  .hot { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 16px; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
  .hot::-webkit-scrollbar { display: none; }
  .hot-card { scroll-snap-align: start; }
  .hot-cover { aspect-ratio: 16 / 10; }
  .whale-grid, .me-cards, .core-grid { grid-template-columns: minmax(0, 1fr); }
  .core-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .core-card { padding: 10px; } .core-card strong { font-size: 18px; } .core-card small { display: none; }
  .filters { flex-direction: column; align-items: stretch; }
  .filter-right { flex-direction: column; }
  .filter-right select { max-width: none; }
  .filters .chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .filters .chips .chip { flex: none; }
  .tl-item { grid-template-columns: 1fr; gap: 4px; }
  .hero-in { padding: 12px 16px 20px; }
  .hero-main { flex-wrap: wrap; gap: 14px; }
  .hero-text h1 { font-size: 24px; }
  .hero-act { width: 100%; } .hero-act .btn-follow { width: 100%; }
  .hero .avatar { --s: 64px !important; }
  .quote-price { font-size: 30px; }
  .quote-time { margin-left: 0; width: 100%; }
  .hide-sm { display: none; }
  .show-sm { display: block !important; }
  .rwa-table td:first-child { min-width: 0; }
  .rwa-table td, .rwa-table th { padding-left: 4px; padding-right: 4px; }
  .rwa-table .pill { min-width: 62px; font-size: 13px; padding: 4px 6px; }
  .rwa-table .avatar { --s: 34px !important; }
  .table-wrap { margin: 0; }
  .rwa-table .row-link { gap: 8px; }
  .rwa-table .row-link b { max-width: 24vw; font-size: 14px; }
  .rwa-table td b { font-size: 14px; }
  .rwa-table thead { display: none; }
  .article { padding: 20px 18px; }
  .article h1 { font-size: 22px; }
  .article-body p { font-size: 16.5px; }
  .modal-mask { place-items: end center; padding: 0; }
  .modal { max-width: none; border-radius: 20px 20px 0 0; padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); }
  .footer { padding-bottom: 24px; }
  .proto-flag { margin-left: 0; }
  .tabbar { display: flex; position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); height: 58px; padding: 6px; gap: 4px; background: rgba(255,255,255,.94); backdrop-filter: blur(14px); border-radius: 999px; box-shadow: 0 6px 24px rgba(0,0,0,.12); }
  .tabbar a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; border-radius: 999px; color: var(--ink-2); font-weight: 650; font-size: 14px; }
  .tabbar a svg { width: 22px; height: 22px; }
  .tabbar a span { display: none; }
  .tabbar a.active { flex: 1.8; background: var(--soft); color: var(--ink); }
  .tabbar a.active span { display: inline; }
  .toast { bottom: 90px; }
}

/* ===== 动效：选中块平移 + 页面进场 ===== */
body { overflow-x: clip; }
.has-slide:not(.tabbar) { position: relative; }
.has-slide > :not(.slide-ind) { position: relative; z-index: 1; }
.slide-ind { position: absolute; left: 0; top: 0; margin: 0; padding: 0; min-width: 0; max-width: none; border: 0; z-index: 0; pointer-events: none; opacity: 0;
  transition: transform .34s cubic-bezier(.3,.8,.25,1), width .34s cubic-bezier(.3,.8,.25,1), height .34s, opacity .2s; }
/* 胶囊型：选中项自身背景交给滑块 */
.topnav .slide-ind { background: var(--ink); border-radius: 999px; }
.topnav.has-slide a.active { background: transparent; }
.topnav a { transition: color .25s, background-color .2s; }
.tabbar .slide-ind { background: var(--soft); border-radius: 999px; }
.tabbar.has-slide a.active { background: transparent; }
.tabbar a { transition: flex .32s cubic-bezier(.3,.8,.25,1), color .25s; }
.tabs.seg .slide-ind { background: #fff; border-radius: 999px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.tabs.seg.has-slide .tab.active { background: transparent; box-shadow: none; }
.seg-mini .slide-ind { background: #fff; border-radius: 9px; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.seg-mini.has-slide button.active { background: transparent; box-shadow: none; }
.tabs .tab, .seg-mini button, .text-toggle button { transition: color .25s; }
/* 下划线型：滑块只画底边 */
.slide-ind.line::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px; background: var(--ink); }
.tabs.underline.has-slide .tab.active::after { display: none; }
.text-toggle .slide-ind.line::after { bottom: 0; height: 2px; background: var(--lime); }
.text-toggle.has-slide button.active { border-color: transparent; }

#view.enter-right { animation: enter-x .34s cubic-bezier(.2,.75,.25,1); --dx: 28px; }
#view.enter-left { animation: enter-x .34s cubic-bezier(.2,.75,.25,1); --dx: -28px; }
#view.enter-up { animation: enter-y .3s ease-out; }
@keyframes enter-x { from { opacity: 0; transform: translateX(var(--dx)); } }
@keyframes enter-y { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) {
  .slide-ind, .tabbar a { transition: none; }
  #view { animation: none !important; }
}

/* ===== 首页 banner：点阵光带从右扫到左 ===== */
.focus-card::before { z-index: 1; }
.focus-link { z-index: 2; }
.focus-browse { z-index: 3; }
.focus-glow { position: absolute; inset: 0; z-index: 0; pointer-events: none;
  /* 两层：荧光绿小点阵（暗处也能亮起来）+ 原图提亮 */
  background: radial-gradient(circle, rgba(204,255,0,.5) 1.1px, transparent 1.7px) 0 0 / 6px 6px, var(--img) center / cover no-repeat;
  filter: brightness(2.4) saturate(1.5); mix-blend-mode: screen;
  -webkit-mask-image: linear-gradient(100deg, transparent 44%, rgba(0,0,0,.35) 47.5%, #000 49.5%, #000 50.2%, transparent 51.5%);
          mask-image: linear-gradient(100deg, transparent 44%, rgba(0,0,0,.35) 47.5%, #000 49.5%, #000 50.2%, transparent 51.5%);
  -webkit-mask-size: 300% 100%; mask-size: 300% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: 0% 0; mask-position: 0% 0;
  animation: dot-sweep 5s cubic-bezier(.45,.05,.35,1) var(--d, 0s) infinite; }
@keyframes dot-sweep {
  0% { -webkit-mask-position: 0% 0; mask-position: 0% 0; }
  62%, 100% { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
}

/* ===== 行情概览：横向轮播 ===== */
.ov-cells { display: block; overflow: hidden; position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.ov-track { display: flex; width: max-content; animation: ov-marquee calc(var(--n, 6) * 5s) linear infinite; }
.ov-track .ov-cell { width: 180px; min-width: 0; flex: none; }
.ov-track .ov-cell:first-child { border-left: 1px solid var(--line); } /* 两份首尾相接时分隔线一致，避免接缝处跳一下 */
.ov-cells:hover .ov-track, .ov-cells:focus-within .ov-track, .ov-cells:active .ov-track { animation-play-state: paused; }
@keyframes ov-marquee { to { transform: translateX(-50%); } }
@media (max-width: 767px) { .ov-track .ov-cell { width: 132px; } }
@media (prefers-reduced-motion: reduce) {
  .focus-glow { animation: none; opacity: 0; }
  .ov-cells { overflow-x: auto; }
  .ov-track { animation: none; }
}

/* ===== 12-03 第二轮调整 ===== */
/* 页头：顶部时无分隔线，滚动后出现轻阴影 */
.topbar { border-bottom-color: transparent; transition: border-color .2s, box-shadow .2s; }
body.scrolled .topbar { border-bottom-color: var(--line); box-shadow: 0 4px 16px rgba(0,0,0,.04); }
.hot-whales { margin-top: 0; }

/* 下拉框：自绘箭头，和右边留出距离 */
select { -webkit-appearance: none; appearance: none; padding-right: 36px; cursor: pointer;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B6F76' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; }

/* RWA：现价旁标代币化产品代码 */
.px-cell { display: inline-flex; align-items: center; gap: 8px; }
.prod-code { font-size: 11.5px; font-weight: 650; color: var(--muted); background: var(--soft); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; letter-spacing: .01em; }

/* 文章：点赞 */
.like-btn { display: inline-flex; align-items: center; gap: 6px; }
.like-btn svg { fill: none; }
.like-btn svg path { fill: transparent; stroke: currentColor; stroke-width: 1.8; }
.like-btn.on { color: #E5484D; border-color: #F3C2C4; background: #FFF5F5; }
.like-btn.on svg path { fill: currentColor; }
.article .disclaimer { margin-top: 28px; }

/* 右上角用户菜单 */
.user-menu { position: relative; }
.user-chip { cursor: pointer; }
.user-chip .caret { width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(45deg) translateY(-2px); margin-left: 2px; opacity: .6; }
.user-pop { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 12px 32px rgba(0,0,0,.12); padding: 6px; z-index: 50; animation: pop-in .16s ease-out; }
.user-pop[hidden] { display: none; }
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px); } }
.user-pop-head { display: flex; align-items: center; gap: 10px; padding: 10px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.user-pop-head span { display: flex; flex-direction: column; min-width: 0; }
.user-pop-head small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-pop a, .user-pop button { display: block; width: 100%; text-align: left; padding: 9px 10px; border-radius: 8px; font-weight: 550; font-size: 14px; }
.user-pop a:hover, .user-pop button:hover { background: var(--soft); }
.user-pop .danger { color: var(--down); border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; margin-top: 4px; }

/* 我的：资料条可点进个人设置 */
a.me-banner { color: inherit; transition: background-color .2s; }
a.me-banner:hover { background: #EDEEEA; }
.me-banner-go { font-size: 13px; font-weight: 600; color: var(--muted); }
.settings { padding: 4px 20px; }
.set-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 60px; border-top: 1px solid var(--line); font-weight: 550; text-align: left; }
.set-row:first-child { border-top: 0; }
.set-row > span { display: flex; flex-direction: column; }
.set-row small { color: var(--muted); font-size: 12px; font-weight: 400; }
.set-row b { font-weight: 600; color: var(--ink-2); }
.set-row.danger { color: var(--down); justify-content: center; }

/* 页脚链接 */
.footer { flex-direction: column; gap: 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-links a { color: var(--ink-2); font-weight: 550; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* ===== 12-03 第三轮：间距、少分隔线、信息块 ===== */
:root { --main-pt: 36px; }
@media (max-width: 767px) { :root { --main-pt: 20px; } }
.overview { margin-bottom: 28px; }
/* 去掉多余横线：页头只在滚动后出现轻阴影，不画线 */
.topbar, body.scrolled .topbar { border-bottom-color: transparent; }
body.scrolled .topbar { box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 6px 20px rgba(0,0,0,.05); }
.tabs.underline { border-bottom: 0; }
.footer { border-top: 0; padding-top: 28px; }
.disclaimer { border-top: 0; padding-top: 0; }
.article-head { border-bottom: 0; }
.sub-h { border-top: 0; }
.whale-list { border-top: 0; }
.side-section + .side-section { border-top: 0; padding-top: 8px; }
.preview { border-top: 0; }
/* 列表分隔线保留但更淡 */
.feed-item, .whale-row, .table td, .table th, .row-item, .related-item, .me-row, .news-card { border-color: #F0F0EC; }

/* 信息块 */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.fact { background: var(--soft); border-radius: 12px; padding: 10px 12px; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.fact.wide { grid-column: 1 / -1; }
.fact > span { font-size: 12px; color: var(--muted); font-weight: 550; }
.fact > b { font-size: 14px; font-weight: 600; color: var(--ink); line-height: 1.5; overflow-wrap: anywhere; }
.fact.wide > b { font-weight: 500; color: var(--ink-2); }
.fact .tags { margin: 2px 0 0; }
.fact .mono-row { display: flex; align-items: center; gap: 8px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; font-weight: 500; }
.fact .mono-row span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.profile-box .lead, .profile-box > p { margin: 4px 0 0; color: var(--ink-2); line-height: 1.7; }
.know { padding: 18px; }
.quote-src b { color: #fff; font-weight: 700; margin-left: 4px; }
.quote-price small { font-size: 14px; font-weight: 600; color: #A9ADB3; margin-left: 6px; letter-spacing: 0; }

/* 巨鲸列表：头像、名字可直接进详情 */
.whale-row [data-go] { cursor: pointer; }
.whale-row b[data-go]:hover { text-decoration: underline; text-underline-offset: 3px; }
.whale-row span[data-go] { flex: none; border-radius: 50%; transition: box-shadow .15s; }
.whale-row span[data-go]:hover { box-shadow: 0 0 0 3px var(--lime-soft, #F4FFD0); }
#followView .section-head { margin-bottom: 8px; }

/* 我的：两个框等高、行样式一致 */
.me-grid { align-items: stretch; }
.me-box { display: flex; flex-direction: column; }
.me-row { min-height: 52px; }
.me-row .fav-title { flex: 1; min-width: 0; -webkit-line-clamp: 1; }
.nowrap { white-space: nowrap; }
.quote-price { white-space: nowrap; display: inline-flex; align-items: baseline; }
#scopeTabs { margin-bottom: 20px; }

/* ===== 12-03 第四轮 ===== */
/* 首页：行情概览离页头近一点，市场动态第一条离筛选近一点 */
body[data-route="home"] main#view { padding-top: 16px; }
.feed-list > .feed-item:first-child { padding-top: 10px; }
.col-main > .tabs.underline + .feed-list, #followView .chips + .feed-list { margin-top: -10px; }

/* 夜间模式按钮：桌面、手机都显示 */
.theme-btn { display: grid; color: var(--ink-2); }
.theme-btn:hover { background: var(--soft); color: var(--ink); }
.theme-btn svg { width: 20px; height: 20px; }
.theme-btn svg + svg, :root[data-theme="dark"] .theme-btn svg:first-child { display: none; }
:root[data-theme="dark"] .theme-btn svg + svg { display: block; }

/* ===== 夜间模式 ===== */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0E0F10; --card: #16181A; --ink: #D3D5D0; --ink-2: #B0B4AE; --muted: #7F848B;
  --line: #2A2D31; --soft: #1D1F22; --lime-soft: #1E2808; --up: #3DD68C; --down: #FF6B70;
  --shadow: none;
}
:root[data-theme="dark"] body { color: var(--ink); }
:root[data-theme="dark"] .topbar { background: rgba(14,15,16,.86); }
:root[data-theme="dark"] body.scrolled .topbar { box-shadow: 0 1px 0 rgba(255,255,255,.05), 0 6px 20px rgba(0,0,0,.4); }
/* 原来「黑底白字」的按钮、标签：反转成浅底深字 */
/* 顶部大区块、行情条保持深色 */
:root[data-theme="dark"] :is(.hero, .ticker, .app-card) { background: #17191C; }
:root[data-theme="dark"] .hero { border-bottom: 1px solid var(--line); }
:root[data-theme="dark"] .ov-label { background: #1F2225; }
:root[data-theme="dark"] .avatar { background: #2A2D31; color: #F2F3EF; }
:root[data-theme="dark"] .tags.dark em.tag-hl, :root[data-theme="dark"] .quote-src .tag-hl { color: #E6E7E3; }
/* 白底组件改成卡片色 */
:root[data-theme="dark"] :is(.searchbox:focus-within, .searchbox.big, .modal, .user-pop, .preview, .back-btn:hover, .btn-follow.on) { background: var(--card); }
:root[data-theme="dark"] :is(.input, select) { background-color: var(--card); }
:root[data-theme="dark"] :is(.tabs.seg .tab.active, .seg-mini button.active, .tabs.seg .slide-ind, .seg-mini .slide-ind) { background: #2A2D31; box-shadow: none; }
:root[data-theme="dark"] .tabs.seg { background: var(--soft); }
:root[data-theme="dark"] .tabbar { background: rgba(22,24,26,.94); box-shadow: 0 6px 24px rgba(0,0,0,.5); }
:root[data-theme="dark"] .me-banner { border-color: var(--line); }
:root[data-theme="dark"] a.me-banner:hover { background: #24272A; }
:root[data-theme="dark"] :is(.pill.up, .ct-INCREASED, .ct-NEW) { background: rgba(61,214,140,.14); }
:root[data-theme="dark"] :is(.pill.down, .ct-DECREASED, .ct-REMOVED) { background: rgba(255,107,112,.14); }
:root[data-theme="dark"] .like-btn.on { color: #FF6B70; border-color: rgba(255,107,112,.4); background: rgba(255,107,112,.1); }
:root[data-theme="dark"] .sk-line { background: linear-gradient(90deg, #1D1F22 25%, #26292C 50%, #1D1F22 75%); background-size: 200% 100%; }
:root[data-theme="dark"] :is(.feed-item, .whale-row, .table td, .table th, .row-item, .related-item, .me-row, .news-card) { border-color: #222528; }
:root[data-theme="dark"] .feed-time .dot { box-shadow: 0 0 0 2px rgba(204,255,0,.25); }
:root[data-theme="dark"] .avatar-stack .avatar { box-shadow: 0 0 0 2px var(--bg); }
:root[data-theme="dark"] .brand img { filter: none; }
:root[data-theme="dark"] .modal-mask { background: rgba(0,0,0,.6); }
:root[data-theme="dark"] .text-toggle .slide-ind.line::after { background: var(--lime); }

/* RWA 列表：名称 + 代码，下一行一句话简介；现价右对齐，代币代码固定宽度跟在右边 */
.rwa-table .row-link > span { min-width: 0; }
.rwa-table .row-link b .sym { font-style: normal; font-weight: 600; font-size: 12.5px; color: var(--muted); margin-left: 4px; }
.row-intro { display: block; max-width: 460px; color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-height: 1.4em; }
.px-cell { display: inline-flex; align-items: center; justify-content: flex-end; gap: 10px; }
.px-cell b { font-variant-numeric: tabular-nums; }
.px-cell .prod-code { min-width: 62px; text-align: center; }
.px-cell .prod-code.empty { visibility: hidden; }

/* 标的头部：一句话简介；报价在左、代币标签在右 */
.hero-desc { margin: 8px 0 0; color: #D9DBD6; font-size: 15px; line-height: 1.6; max-width: 720px; }
.quote-line .quote-src { margin-left: 4px; padding: 4px 10px; border-radius: 8px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-size: 13px; }

/* 巨鲸列表：身份 + 一句话简介 */
.whale-row-intro { margin: 4px 0 0; color: var(--ink-2); font-size: 13.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

/* 标的页：巨鲸持仓 */
.hold-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 12px; }
.hold-head > div:first-child { display: flex; flex-direction: column; }
.hold-head small { color: var(--muted); font-size: 12.5px; }
.holder-list { display: flex; flex-direction: column; gap: 8px; }
.holder { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 140px 16px; align-items: center; gap: 16px; padding: 12px 14px; border-radius: 14px; background: var(--soft); border: 1px solid transparent; transition: border-color .15s, background-color .15s; }
a.holder:hover { border-color: var(--ink); background: var(--card); }
.holder-main { display: flex; align-items: center; gap: 10px; min-width: 0; }
.holder-main > span { display: flex; flex-direction: column; min-width: 0; }
.holder-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.holder small { color: var(--muted); font-size: 12px; }
.holder-weight { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; }
.holder-weight .bar { grid-row: 1 / span 2; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.holder-weight .bar i { display: block; height: 100%; border-radius: 3px; background: var(--ink); }
.holder-weight b, .holder-val b { font-variant-numeric: tabular-nums; }
.holder-weight small { grid-column: 2; }
.holder-val { display: flex; flex-direction: column; align-items: flex-end; }
.holder-go { font-style: normal; color: var(--muted); font-size: 18px; }
:root[data-theme="dark"] .holder-weight .bar i { background: var(--lime); }
@media (max-width: 767px) {
  .holder { grid-template-columns: minmax(0, 1fr) auto; }
  .holder-weight { grid-column: 1 / -1; grid-row: 2; }
  .holder-go { display: none; }
}

/* RWA 列表：代币代码一列靠左、现价一列靠右，各自对齐 */
.px-th, .px-td { width: 220px; }
.px-th { display: table-cell; }
.px-th span + span { float: right; }
.px-td .px-cell { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; }
.px-td .prod-code { min-width: 0; text-align: left; }
.px-td .prod-code.empty { visibility: hidden; }
@media (max-width: 767px) { .px-th, .px-td { width: auto; } .px-th span:first-child, .px-td .prod-code { display: none; } .px-td .px-cell { justify-content: flex-end; } }

/* ===== 夜间模式第二版：黑底灰字，按钮深灰底，荧光绿只做点缀 ===== */
:root[data-theme="dark"] { --btn: #2B2E32; --btn-hover: #34383C; --btn-ink: #DDE0DA; }
:root[data-theme="dark"] .article-body p { color: var(--ink-2); }
:root[data-theme="dark"] h1, :root[data-theme="dark"] h2, :root[data-theme="dark"] h3 { color: var(--ink); }
/* 实心按钮、选中态：深灰底 + 浅灰字 */
:root[data-theme="dark"] :is(.btn-dark, .btn-primary, .btn-follow, .chip.active, .count, .toast, .tags em.tag-hl, .tag-hl) { background: var(--btn); border-color: var(--btn); color: var(--btn-ink); }
:root[data-theme="dark"] :is(.btn-dark, .btn-primary, .btn-follow):hover { background: var(--btn-hover); }
:root[data-theme="dark"] .btn-follow:not(.on) i { color: var(--lime); }
/* 已关注：透明底 + 描边，文字中灰，和「关注」区分开 */
:root[data-theme="dark"] .btn-follow.on { background: transparent; border: 1px solid #3A3E43; color: #9A9FA5; }
:root[data-theme="dark"] .hero .btn-follow { background: var(--btn); color: var(--btn-ink); }
:root[data-theme="dark"] .hero .btn-follow.on { background: transparent; border-color: #3A3E43; color: #9A9FA5; }
/* 顶部导航选中、分段选中 */
:root[data-theme="dark"] .topnav .slide-ind { background: var(--btn); }
:root[data-theme="dark"] .topnav a.active, :root[data-theme="dark"] .topnav.has-slide a.active { color: var(--btn-ink); }
:root[data-theme="dark"] .core-card:first-child { background: var(--btn); border-color: var(--btn); color: var(--btn-ink); }
:root[data-theme="dark"] .core-card:first-child strong { color: var(--lime); }
:root[data-theme="dark"] .quote-src b, :root[data-theme="dark"] .hero h1 { color: #E2E4DF; }
:root[data-theme="dark"] .hero { color: #C9CCC6; }
:root[data-theme="dark"] .hero-desc { color: #A9ADA8; }
:root[data-theme="dark"] .feed-title { color: var(--ink); }
:root[data-theme="dark"] .btn-ghost { background: var(--soft); color: var(--ink-2); }
:root[data-theme="dark"] .btn-ghost:hover { border-color: #4A4E54; }
:root[data-theme="dark"] .slide-ind.line::after { background: var(--ink); }
:root[data-theme="dark"] .prod-code { color: #A3A8AE; }

/* 名称旁的代码 / 身份，名称下一行简介 */
.row-link b .sym, .asset-card .sym { font-style: normal; font-weight: 600; font-size: 12px; color: var(--muted); margin-left: 4px; }
.row-link small[data-intro] { display: block; max-width: 100%; }
.card-intro { flex: 1; min-width: 0; margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-intro:empty { visibility: hidden; }

/* 巨鲸列表：标题和筛选放一行，筛选靠右 */
.list-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 12px; }
.list-bar-title { display: flex; align-items: baseline; gap: 10px; }
.list-bar-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.list-bar-tools .searchbox.inline { margin: 0; width: 220px; }
.list-bar-tools select[hidden] { display: none; }
.hot-whales { margin-bottom: 32px; }
#scopeTabs { margin-bottom: 16px; }
@media (max-width: 767px) { .list-bar-tools { width: 100%; } .list-bar-tools .searchbox.inline { width: auto; flex: 1 1 100%; } }
body:is([data-route="whales"], [data-route="rwa"], [data-route="me"]) main#view { padding-top: 20px; }

/* 语言菜单 */
.lang-menu { position: relative; }
.lang-pop { min-width: 160px; }
.lang-pop button { display: flex; justify-content: space-between; align-items: center; }
.lang-pop button i { font-style: normal; color: var(--ink); }
.lang-pop button[aria-checked="true"] { font-weight: 700; }
.tool-btn { display: grid; color: var(--ink-2); }
.tool-btn:hover { background: var(--soft); color: var(--ink); }
.tool-btn svg { width: 20px; height: 20px; }

/* ===== 第 6 轮：首页压缩行情、右栏「价格/身份 + 最新动态」卡、专题页、正文侧栏 ===== */
/* 行情概览：单行窄条，有 logo 显示 logo */
.overview { border-radius: 12px; margin-bottom: 20px; }
.ov-label { padding: 0 12px; font-size: 12px; }
.ov-track .ov-cell { width: auto; }
.ov-cell { flex-direction: row; align-items: center; gap: 6px; padding: 7px 14px; min-width: 0; white-space: nowrap; }
.ov-cell img { width: 16px; height: 16px; border-radius: 50%; object-fit: cover; flex: none; }
.ov-cell small { font-size: 12.5px; font-weight: 700; color: var(--ink); }
.ov-cell b { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.ov-cell em { font-size: 12px; }
@media (max-width: 767px) { .ov-track .ov-cell { width: auto; } }

/* 右栏卡片 */
.pick-card { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin-bottom: 10px; }
.pick-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pick-top .row-link { min-width: 0; }
.pick-top .row-link > span:last-child { min-width: 0; }
.pick-top .row-link b { display: block; font-size: 14.5px; }
.pick-top .row-link small { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-slot { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); min-height: 40px; }
.news-ph { display: block; height: 30px; border-radius: 6px; background: linear-gradient(90deg, var(--soft), transparent, var(--soft)); background-size: 200% 100%; animation: sk 1.2s linear infinite; }
@keyframes sk { to { background-position: -200% 0; } }
.news-item + .news-item { margin-top: 10px; }
.news-line { display: flex; gap: 6px; align-items: flex-start; justify-content: space-between; }
.news-t { font-size: 13.5px; font-weight: 650; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-line i { font-style: normal; color: var(--muted); flex: none; }
.news-line:hover .news-t { text-decoration: underline; text-underline-offset: 3px; }
.news-meta { display: block; margin-top: 3px; font-size: 12px; color: var(--muted); }
.pick-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; font-size: 12.5px; }
.pick-foot a { color: var(--muted); }
.pick-foot a:hover { color: var(--ink); }

/* 专题总览 */
.topics-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.topics-head h1 { margin: 0; font-size: 26px; }
.topics-count { font-size: 13px; color: var(--muted); }
.topics-count b { font-size: 22px; color: var(--ink); margin-right: 4px; }
.topics-sub { margin: 6px 0 20px; font-size: 13.5px; color: var(--muted); }
.topic-grid { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.topic-grid .skeleton { grid-column: 1 / -1; }
.topic-card { display: grid; grid-template-columns: 42% 1fr; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--card); transition: border-color .2s; }
.topic-card:hover { border-color: var(--ink); }
.topic-card.big { grid-row: span 2; grid-template-columns: 1fr; grid-template-rows: 260px 1fr; }
.topic-cover { background: #111 center / cover no-repeat; min-height: 180px; }
.topic-body { display: flex; flex-direction: column; gap: 8px; padding: 18px; min-width: 0; }
.topic-kicker { font-size: 12px; color: var(--muted); font-weight: 600; }
.topic-title { font-size: 20px; font-weight: 800; line-height: 1.3; }
.topic-card.big .topic-title { font-size: 26px; }
.topic-desc { font-size: 14px; color: var(--ink-2); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.topic-mini { display: flex; flex-direction: column; margin-top: 4px; }
.topic-mini span { display: flex; gap: 10px; padding: 8px 0; border-top: 1px dashed var(--line); font-size: 13.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topic-mini em { font-style: normal; font-weight: 500; color: var(--muted); font-size: 12.5px; flex: none; }
.topic-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); padding-top: 6px; }
.topic-foot b { color: var(--ink); font-weight: 700; }

/* 单个专题 */
.topic-hero { position: relative; height: 220px; border-radius: 16px; overflow: hidden; background: #111 center / cover no-repeat; color: #fff; margin-bottom: 28px; }
.topic-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.86) 30%, rgba(0,0,0,.25)); }
.topic-hero-in { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 24px 28px; max-width: 640px; }
.topic-hero .focus-label { position: static; align-self: flex-start; }
.topic-hero h1 { margin: 0; font-size: 30px; }
.topic-hero p { margin: 0; color: #D7DAD4; font-size: 14.5px; }
.topic-hero-meta { font-size: 12.5px; color: #A9ADA6; }
.topic-row { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.topic-row:first-of-type { border-top: 0; }
.topic-thumb { width: 64px; height: 44px; border-radius: 8px; background: #111 center / cover; flex: none; }
.topic-row small, .topic-row em { display: block; font-size: 12px; color: var(--muted); font-style: normal; }
.topic-row b { display: block; font-size: 14px; }
.topic-row:hover b { text-decoration: underline; }
.who-intro { margin: 10px 0 0; font-size: 13.5px; line-height: 1.6; color: var(--ink-2); }
.who-intro:empty { display: none; }
.who-note { margin: 8px 0 0; font-size: 13px; line-height: 1.55; color: var(--ink-2); background: var(--soft); border-radius: 10px; padding: 8px 10px; }
.who-note span { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 2px; }
.who-more { display: inline-block; margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.who-more:hover { color: var(--ink); }

/* 正文侧栏：与正文头部顶端对齐；相关巨鲸 = 简介 + 最新动态；延伸阅读在下面 */
.article-side { margin-top: 8px; } /* 与分类标签（正文头部第一行）顶端对齐 */
.rel-whale + .rel-whale { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.rel-news { margin-top: 10px; }
.rel-news-h { display: block; font-size: 12px; font-weight: 700; color: var(--muted); }
.rel-news .news-slot { margin-top: 6px; padding-top: 0; border-top: 0; }
.article-side .further .related-item { padding: 10px 0; }
.article-side .further .related-item span { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.article-side .further .related-item em { margin-top: 0; margin-bottom: 3px; }
.article-side .further .related-item { display: flex; flex-direction: column-reverse; }

:root[data-theme="dark"] .topic-card { background: transparent; }
@media (max-width: 1023px) {
  .topic-grid { grid-template-columns: 1fr; }
  .topic-card.big { grid-row: auto; }
}

/* 正文结尾的点赞 / 分享：读完再操作，居中，免责声明在下面 */
.article-end { display: flex; justify-content: center; gap: 12px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.end-btn { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 14px; font-weight: 600; color: var(--ink-2); }
.end-btn:hover { border-color: var(--ink); color: var(--ink); }
.article .article-end + .disclaimer { margin-top: 16px; text-align: center; }
/* 点赞 / 分享放回头部（用户偏好在上面），沿用结尾按钮的样式，略小 */
.article-actions .end-btn { height: 34px; padding: 0 14px; font-size: 13px; }

/* ===== 第 7 轮：RWA 列表（参照 wiki DeFi 版）与标的详情头部 ===== */
.rwa-head h1 { margin: 0 0 16px; font-size: 26px; }
.rwa-toolbar .searchbox.inline { margin-left: auto; max-width: 320px; }
.rwa-toolbar .searchbox svg { color: var(--muted); flex: none; }
.rwa-table td.num b { font-variant-numeric: tabular-nums; font-weight: 700; }
.rwa-table .row-link b { font-size: 15px; }
.rwa-table .row-link small { display: block; font-size: 12.5px; color: var(--muted); }
.prod-chip { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 8px; background: var(--soft); border: 1px solid var(--line); font-size: 12.5px; font-weight: 650; color: var(--ink-2); }

.asset-head { padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.ah-top { display: flex; align-items: center; gap: 16px; }
.ah-logo { border-radius: 14px; }
.ah-name { flex: 1; min-width: 0; }
.ah-name h1 { margin: 0; font-size: 28px; line-height: 1.2; }
.ah-name h1 span { font-size: 16px; font-weight: 600; color: var(--muted); margin-left: 6px; }
.ah-name p { margin: 4px 0 0; font-size: 13px; color: var(--muted); }
.ah-prod { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.ah-code { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; }
.ah-code .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 2px #E9FF99; }
.ah-chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); font-size: 12.5px; color: var(--ink-2); }
.ah-chip.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; cursor: pointer; }
.ah-chip.mono i { font-style: normal; font-family: inherit; color: var(--muted); font-size: 11.5px; }
.ah-chip.mono:hover { border-color: var(--ink); }
.ah-quote { display: inline-flex; align-items: baseline; gap: 10px; margin-left: auto; font-variant-numeric: tabular-nums; }
.ah-price { font-size: 26px; font-weight: 800; }
.ah-price small { font-size: 12px; font-weight: 600; color: var(--muted); margin-left: 4px; }
.ah-chg { font-size: 15px; font-weight: 700; }
.ah-time { font-size: 12px; color: var(--muted); }
.know-desc { margin: 0 0 8px; }
.know-alias { margin: 0 0 12px; font-size: 12.5px; color: var(--muted); }
:root[data-theme="dark"] .ah-code .dot { box-shadow: none; }
@media (max-width: 767px) { .ah-quote { margin-left: 0; width: 100%; } .ah-name h1 { font-size: 22px; } }
.ah-price { white-space: nowrap; display: inline-flex; align-items: baseline; }

/* ===== 第 8 轮：标的详情 · 相关快讯只列标题；巨鲸持仓按来源分 ===== */
.news-titles { list-style: none; margin: 8px 0 0; padding: 0; }
.news-titles li a { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); align-items: baseline; }
.news-titles li:first-child a { border-top: 0; }
.news-titles em { font-style: normal; font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.news-titles span { font-weight: 650; font-size: 15px; line-height: 1.45; }
.news-titles a:hover span { text-decoration: underline; text-underline-offset: 3px; }
.src-seg { display: flex; gap: 10px; margin: 12px 0 18px; }
.src-seg button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 16px; min-width: 170px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); text-align: left; }
.src-seg button b { font-size: 14.5px; }
.src-seg button small { font-size: 12px; color: var(--muted); }
.src-seg button.active { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.src-seg button:hover:not(.active) { border-color: var(--muted); }
.hold-bar { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.hold-bar h3 { margin: 0; font-size: 16px; }
.hold-bar > .muted { margin-left: auto; }
.hold-table td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.hold-table td.num small, .hold-table td.num span small { font-size: 11.5px; color: var(--muted); margin-left: 2px; font-weight: 500; }
.hold-table .row-link small { display: block; font-size: 12px; color: var(--muted); }
.hold-table .row-link b { font-size: 14px; }
:root[data-theme="dark"] .src-seg button.active { border-color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--ink-2); }
@media (max-width: 767px) { .src-seg button { min-width: 0; flex: 1; } .news-titles li a { grid-template-columns: 1fr; gap: 2px; } }
.hold-table td.num, .hold-table td.num * { white-space: nowrap; }
.hold-table { table-layout: auto; width: 100%; }
.hold-table th:first-child, .hold-table td:first-child { width: 46%; }
.hold-table td.num small { display: inline; }

/* ===== 第 9 轮：相关快讯按天分组；巨鲸持仓卡片行 + 约值 + 变化筛选 ===== */
.nt { display: flex; flex-direction: column; gap: 22px; margin-top: 12px; }
.nt-day h4 { display: flex; align-items: baseline; gap: 8px; margin: 0 0 8px; font-size: 14px; font-weight: 750; }
.nt-day h4 span { font-size: 12px; font-weight: 500; color: var(--muted); }
.nt-item { display: grid; grid-template-columns: 56px 1fr 14px; align-items: center; gap: 14px; padding: 14px 14px; border-radius: 12px; transition: background-color .15s; }
.nt-item + .nt-item { margin-top: 2px; }
.nt-item:hover { background: var(--soft); }
.nt-item time { justify-self: start; font-size: 12px; font-weight: 650; color: var(--ink-2); background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; font-variant-numeric: tabular-nums; }
.nt-item:hover time { background: var(--card); }
.nt-item span { font-size: 15px; font-weight: 600; line-height: 1.5; }
.nt-item i { font-style: normal; color: var(--muted); font-size: 18px; opacity: 0; transition: opacity .15s, transform .15s; }
.nt-item:hover i { opacity: 1; transform: translateX(2px); }

.h-filters { margin: 4px 0 14px; }
.h-filters .chip i { font-style: normal; color: var(--muted); margin-left: 2px; font-weight: 500; }
.h-filters .chip.active i { color: inherit; opacity: .7; }
.holder.h2 { grid-template-columns: minmax(0, 1.25fr) minmax(0, .95fr) minmax(0, 1.15fr) minmax(0, .8fr) 14px; padding: 14px 16px; }
.h-lbl { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 2px; }
.h-hold, .h-chg { display: flex; flex-direction: column; min-width: 0; font-variant-numeric: tabular-nums; }
.h-hold b, .h-chg b { font-size: 14px; white-space: nowrap; }
.h-chg b em { font-style: normal; font-weight: 600; font-size: 12.5px; }
.h-hold small, .h-chg small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge.new { font-style: normal; display: inline-block; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 6px; background: var(--lime); color: #111; }
.holder.h2 .holder-weight { grid-template-columns: 1fr auto; grid-template-rows: auto auto; }
.holder.h2 .holder-weight .h-lbl { grid-column: 1 / -1; }
.holder.h2 .holder-weight .bar { grid-row: auto; }
@media (max-width: 767px) {
  .holder.h2 { grid-template-columns: 1fr 1fr; }
  .holder.h2 .holder-main { grid-column: 1 / -1; }
  .holder.h2 .holder-weight { grid-column: 1 / -1; }
  .nt-item { grid-template-columns: 52px 1fr; } .nt-item i { display: none; }
}
.holder.h2 { grid-template-columns: minmax(0, 1.6fr) minmax(0, .9fr) minmax(0, 1.05fr) minmax(0, .7fr) 14px; gap: 14px; }
.holder.h2 .holder-main b { white-space: normal; overflow: visible; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.35; font-size: 14px; }

/* 相关快讯：左侧时间轴竖线 + 节点，间距略放大 */
.nt { gap: 28px; }
.nt-day { position: relative; }
.nt-day::before { content: ""; position: absolute; left: 5px; top: 10px; bottom: 22px; width: 1px; background: var(--line); }
.nt-day h4 { position: relative; padding-left: 22px; margin-bottom: 10px; }
.nt-day h4::before { content: ""; position: absolute; left: 1px; top: 50%; width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px var(--card); transform: translateY(-50%); }
.nt-item { position: relative; margin-left: 22px; padding: 16px 14px; }
.nt-item + .nt-item { margin-top: 4px; }
.nt-item::before { content: ""; position: absolute; left: -21px; top: 50%; width: 7px; height: 7px; border-radius: 50%; background: var(--card); border: 1.5px solid var(--muted); transform: translateY(-50%); transition: background-color .15s, border-color .15s; }
.nt-item:hover::before { background: var(--lime); border-color: var(--ink); }
:root[data-theme="dark"] .nt-item:hover::before { border-color: var(--lime); }
.nt-day::before { width: 1.5px; background: #D6D9D2; left: 5.25px; }
:root[data-theme="dark"] .nt-day::before { background: #34383C; }
.nt-item::before { box-sizing: border-box; width: 9px; height: 9px; left: -21px; }

/* ===== 第 10 轮：巨鲸页（参照 wiki）：标题 → 热门 → 关注/全部；筛选改成标签行；预览先给结论 ===== */
.page-title { margin: 0 0 18px; font-size: 26px; }
.whale-filter { display: flex; flex-direction: column; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.whale-filter .searchbox.inline.wide { max-width: none; margin: 0 0 4px; height: 42px; }
.whale-filter .searchbox svg { color: var(--muted); flex: none; }
.f-row { display: flex; gap: 14px; align-items: flex-start; }
.f-label { flex: none; width: 56px; font-size: 12.5px; color: var(--muted); padding-top: 7px; }
.f-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.f-chips .chip { height: 30px; padding: 0 12px; font-size: 13px; }
.list-meta { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin: 12px 0 4px; }
.pv-headline { margin: 4px 0 10px; font-size: 18px; line-height: 1.4; }
.pv-counts { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.pv-counts span { font-size: 12px; color: var(--ink-2); background: var(--soft); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; }
.pv-counts span b { font-variant-numeric: tabular-nums; }
.pv-counts span.zero { color: var(--muted); opacity: .7; }
.pv-change2 { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px dashed var(--line); font-variant-numeric: tabular-nums; }
.pv-change2 > div { display: flex; flex-direction: column; }
.pv-change2 .r { align-items: flex-end; }
.pv-change2 b { font-size: 15px; }
.pv-change2 em { font-style: normal; font-weight: 800; font-size: 17px; }
.pv-change2 small, .pv-date { font-size: 12px; color: var(--muted); }
.pv-date { display: block; margin-top: 6px; }
.pv-intro { margin: 0; font-size: 14px; line-height: 1.6; color: var(--ink-2); }
#scopeTabs { margin-bottom: 18px; }
/* 巨鲸详情：浅色头部（与标的详情统一） */
.ah-logo.round { border-radius: 50%; }
.whale-head .ah-top { align-items: flex-start; }
.whale-head .tags { margin-top: 8px; }
.hold-summary2 { margin: 4px 0 12px; font-size: 14.5px; color: var(--ink-2); }
.hold-summary2 b { color: var(--ink); font-variant-numeric: tabular-nums; }

/* ===== 第 11 轮：语言、外观移到页脚和头像菜单；个人中心关注 ===== */
.footer { position: relative; }
.footer-prefs { display: flex; gap: 10px; flex-wrap: wrap; }
@media (min-width: 768px) { .footer-prefs { position: absolute; right: 0; top: 24px; } }
.seg-mini.pref button { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 12px; font-size: 12.5px; }
.seg-mini.pref svg { width: 14px; height: 14px; }
.user-pop-prefs { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; margin: 4px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.user-pop-prefs .seg-mini { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
.user-pop-prefs .seg-mini button { justify-content: center; }

.me-group + .me-group { margin-top: 14px; }
.me-group-h { display: flex; align-items: baseline; gap: 6px; padding: 4px 0 6px; font-size: 13px; }
.me-group-h span { color: var(--muted); font-variant-numeric: tabular-nums; }
.me-group-h i { font-style: normal; color: var(--muted); margin-left: auto; }
.me-group-h:hover b { text-decoration: underline; }
.me-row.me-whale { display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: center; }
.me-row.me-whale .news-slot { margin: 0; padding: 0; border: 0; min-height: 0; min-width: 0; }
.me-row.me-whale .news-t { font-size: 12.5px; font-weight: 550; -webkit-line-clamp: 1; }
.me-row.me-whale .news-meta { display: none; }

.follows-page { max-width: 820px; }
.follows-page .tabs .count { font-size: 12px; color: var(--muted); font-weight: 600; margin-left: 2px; }
.follow-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.follow-list > .btn-more, .follow-list > .empty, .follow-list > .skeleton { grid-column: 1 / -1; }
.follow-card { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: var(--card); }
.follow-card.off { opacity: .55; }
.fc-top { display: flex; align-items: center; gap: 12px; }
.fc-top .row-link { flex: 1; min-width: 0; }
.fc-top .row-link b { display: block; font-size: 15px; }
.fc-top .row-link small { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 767px) { .follow-list { grid-template-columns: 1fr; } .me-row.me-whale { grid-template-columns: 1fr; } }

/* ===== 首页 banner 动效（按图分别做）：提亮层 = 原图加亮，用遮罩只露出要动的部分 ===== */
.focus-glow[data-fx] { background: var(--img) center / cover no-repeat; filter: brightness(2.1) saturate(1.5); mix-blend-mode: screen;
  -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-position: 0 0; mask-position: 0 0; opacity: 0; animation: none; }
.focus-glow.fx-b:not([data-fx="RWA_TARGET"]) { display: none; }

/* 巨鲸：尾巴慢慢亮起再暗下 */
.focus-glow[data-fx="SUBJECT"]:not(.fx-b) {
  -webkit-mask-image: radial-gradient(ellipse 32% 50% at 80% 36%, #000 35%, transparent 100%);
          mask-image: radial-gradient(ellipse 32% 50% at 80% 36%, #000 35%, transparent 100%);
  animation: fx-breathe 4s ease-in-out var(--d) infinite; }
@keyframes fx-breathe { 0%, 100% { opacity: 0; } 50% { opacity: .95; } }

/* 芯片：一束光沿线路从左流向芯片，到了以后芯片核心闪一下 */
.focus-glow[data-fx="RWA_TARGET"]:not(.fx-b) { opacity: 1;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 4%, transparent 7%);
          mask-image: linear-gradient(90deg, transparent 0, #000 3%, #000 4%, transparent 7%);
  -webkit-mask-size: 250% 100%; mask-size: 250% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  animation: fx-flow 3.6s cubic-bezier(.5, 0, .7, 1) var(--d) infinite; }
@keyframes fx-flow {
  0% { -webkit-mask-position: 0% 0; mask-position: 0% 0; opacity: 0; }
  8% { opacity: 1; }
  62% { -webkit-mask-position: -47% 0; mask-position: -47% 0; opacity: 1; }
  70%, 100% { -webkit-mask-position: -50% 0; mask-position: -50% 0; opacity: 0; }
}
.focus-glow.fx-b[data-fx="RWA_TARGET"] {
  -webkit-mask-image: radial-gradient(circle at 85% 45%, #000 0, #000 10%, transparent 20%);
          mask-image: radial-gradient(circle at 85% 45%, #000 0, #000 10%, transparent 20%);
  animation: fx-flash 3.6s ease-out var(--d) infinite; }
@keyframes fx-flash { 0%, 58% { opacity: 0; } 68% { opacity: 1; } 100% { opacity: 0; } }

/* 地球：一道竖向光带从左往右扫过，像在转 */
.focus-glow[data-fx="MACRO"]:not(.fx-b) { opacity: .95;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 6%, transparent 10%);
          mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 6%, transparent 10%);
  -webkit-mask-size: 300% 100%; mask-size: 300% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  animation: fx-spin 5s linear var(--d) infinite; }
@keyframes fx-spin {
  0% { -webkit-mask-position: -20% 0; mask-position: -20% 0; opacity: 0; }
  10% { opacity: .95; }
  85% { opacity: .95; }
  100% { -webkit-mask-position: -45% 0; mask-position: -45% 0; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .focus-glow[data-fx] { animation: none !important; opacity: 0 !important; } }
.focus-glow[data-fx] { z-index: 1; filter: brightness(2.6) saturate(1.6) drop-shadow(0 0 6px rgba(204,255,0,.55)); }

/* ===== banner 动效 v2：放慢、做一轮歇一会；芯片改成光点沿单条线路走，三条轮流 ===== */
/* 巨鲸：9 秒一轮，前一半慢慢亮起再暗下，后一半休息 */
.focus-glow[data-fx="SUBJECT"]:not(.fx-b) { animation: fx-breathe2 9s ease-in-out var(--d) infinite; }
@keyframes fx-breathe2 { 0%, 55%, 100% { opacity: 0; } 27% { opacity: .9; } }

/* 地球：10 秒一轮，光带 6 秒扫过，之后休息 */
.focus-glow[data-fx="MACRO"]:not(.fx-b) { animation: fx-spin2 10s cubic-bezier(.4, 0, .6, 1) var(--d) infinite; }
@keyframes fx-spin2 {
  0% { -webkit-mask-position: -20% 0; mask-position: -20% 0; opacity: 0; }
  8% { opacity: .9; }
  52% { opacity: .9; }
  60%, 100% { -webkit-mask-position: -45% 0; mask-position: -45% 0; opacity: 0; }
}

/* 芯片：一个光点沿一条线路走向芯片（约 3 秒），到了核心闪一下；三条线路轮流，每条 9 秒一轮 */
.focus-glow[data-fx="RWA_TARGET"]:not(.fx-b) { opacity: 0;
  -webkit-mask-image: radial-gradient(closest-side, #000 25%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 25%, transparent 100%);
  -webkit-mask-size: 14% 22%; mask-size: 14% 22%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  animation: fx-trace 27s linear var(--d) infinite; }
@keyframes fx-trace {
  0%      { -webkit-mask-position: 5.8% 12.2%; mask-position: 5.8% 12.2%; opacity: 0; }
  1.5%    { opacity: 1; }
  11%     { -webkit-mask-position: 61.6% 12.2%; mask-position: 61.6% 12.2%; opacity: 1; }
  12.5%   { -webkit-mask-position: 63% 12.2%; mask-position: 63% 12.2%; opacity: 0; }
  33.2%   { -webkit-mask-position: 15.1% 33.3%; mask-position: 15.1% 33.3%; opacity: 0; }
  34.8%   { opacity: 1; }
  44.3%   { -webkit-mask-position: 66.9% 33.3%; mask-position: 66.9% 33.3%; opacity: 1; }
  45.8%   { -webkit-mask-position: 68% 33.3%; mask-position: 68% 33.3%; opacity: 0; }
  66.5%   { -webkit-mask-position: 25% 57.1%; mask-position: 25% 57.1%; opacity: 0; }
  68.1%   { opacity: 1; }
  77.6%   { -webkit-mask-position: 66.9% 57.1%; mask-position: 66.9% 57.1%; opacity: 1; }
  79.1%, 100% { -webkit-mask-position: 68% 57.1%; mask-position: 68% 57.1%; opacity: 0; }
}
.focus-glow.fx-b[data-fx="RWA_TARGET"] { animation: fx-flash2 9s ease-out var(--d) infinite; }
@keyframes fx-flash2 { 0%, 33% { opacity: 0; } 40% { opacity: .95; } 55%, 100% { opacity: 0; } }

/* ===== 设置：右上角齿轮（未登录）/ 头像菜单（登录后），语言、模式分两行 ===== */
.footer-prefs { display: none; }
.set-menu { margin-right: 8px; }
.set-btn { width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 50%; color: var(--muted); }
.set-btn:hover, .set-btn[aria-expanded="true"] { background: var(--soft); color: var(--ink); }
.set-btn svg { width: 19px; height: 19px; }
.set-menu .user-pop { min-width: 248px; }
.set-menu .user-pop-prefs { border: 0; margin: 0; }
.user-pop-prefs { gap: 10px; }
.pref-row { display: grid; grid-template-columns: 36px 1fr; align-items: center; gap: 10px; }
.pref-row > span { font-size: 13px; color: var(--muted); font-weight: 550; }
.user-pop .pref-row .seg-mini button { padding: 0 10px; }

/* 巨鲸页右侧预览卡：补回顶部边线 */
.preview { border-top: 1px solid var(--line); }

/* ===== 手机版：底栏图标同 App、banner 圆点、拖动、热门巨鲸隐藏、我的 ===== */
.focus.dragging { scroll-snap-type: none; cursor: grabbing; user-select: none; }
.focus.dragging a { pointer-events: none; }
.focus-dots button { width: 6px; height: 6px; border-radius: 999px; background: #D6D8D2; margin-right: 6px; padding: 0; transition: width .25s, background-color .25s; }
.focus-dots button.on { width: 18px; background: var(--ink); }
.me-app { display: none; }
@media (max-width: 767px) {
  .focus { cursor: grab; }
  .focus-dots { display: flex; align-items: center; justify-content: center; margin-top: 12px; }
  .hot-whales { display: none; }
  .me-app:not(:empty) { display: block; }
  .me-app:not(:empty) + .me-desk { display: none; }
  .tabbar a svg { width: 24px; height: 24px; }
}
.ma-head { display: flex; align-items: center; gap: 14px; padding: 4px 2px 18px; color: inherit; }
.ma-head span { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ma-head b { font-size: 21px; font-weight: 800; display: inline-flex; align-items: center; gap: 4px; }
.ma-head b svg, .ma-card-h svg { width: 18px; height: 18px; flex: none; }
.ma-head small { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ma-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.ma-card { display: flex; flex-direction: column; gap: 10px; padding: 14px; min-height: 96px; border: 1px solid var(--line); border-radius: 16px; background: var(--card, #fff); color: inherit; }
.ma-card-h { display: flex; justify-content: space-between; align-items: center; }
.ma-card-h b { font-size: 15.5px; font-weight: 700; }
.ma-card-h em { font-style: normal; color: var(--muted); font-weight: 600; margin-left: 2px; }
.ma-card small { color: var(--muted); font-size: 13px; line-height: 1.5; }
.ma-stack { display: flex; }
.ma-stack .avatar { box-shadow: 0 0 0 2px var(--card, #fff); border-radius: 50%; }
.ma-stack .avatar + .avatar { margin-left: -8px; }
.ma-fav { min-height: 0; margin-bottom: 22px; }
.ma-fav small { margin-bottom: -4px; }
.ma-fav-t { font-weight: 650; font-size: 15px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ma-menu { display: flex; flex-direction: column; gap: 10px; }
.ma-menu a { display: flex; align-items: center; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; color: inherit; font-weight: 600; font-size: 15.5px; }
.ma-menu a span { flex: 1; }
.ma-menu svg { width: 22px; height: 22px; flex: none; }
.ma-menu a svg:last-child { width: 18px; height: 18px; color: var(--muted); }
.ma-logout { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 22px 0 8px; font-weight: 600; font-size: 15px; color: var(--ink-2); }
.ma-logout svg { width: 20px; height: 20px; }
@media (max-width: 767px) { .user-chip > span, .user-chip .caret { display: none; } }

/* 持仓卡片·手机：持股 / 变化 / 占比 上下排，每行「标签 数量 ≈金额」，不截断不重叠 */
@media (max-width: 767px) {
  .holder.h2 { grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 14px; }
  .holder.h2 .holder-main, .holder.h2 .holder-weight { grid-column: 1; }
  .holder.h2 .holder-go { display: none; }
  .holder.h2 .h-hold, .holder.h2 .h-chg { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 8px; row-gap: 2px; }
  .holder.h2 .h-lbl { width: 48px; flex: none; margin: 0; }
  .holder.h2 .h-hold small, .holder.h2 .h-chg small { overflow: visible; color: var(--muted); }
  .holder.h2 .holder-weight { grid-template-columns: 48px 1fr auto; grid-template-rows: auto; column-gap: 8px; }
  .holder.h2 .holder-weight .h-lbl { grid-column: auto; }
  .holder.h2 .holder-main { padding-bottom: 4px; }
}
@media (max-width: 767px) { .holder.h2 .holder-weight { grid-row: auto; } }

/* 手机首页：去掉「市场动态」标题，轮播直接接动态；页首更醒目 */
@media (max-width: 767px) {
  /* 行情概览保留 */
  #overview ~ .layout .col-main > .section-head h2 { display: none; }
  #overview ~ .layout .col-main > .section-head { justify-content: flex-start; margin-bottom: 4px; }
  #overview ~ .layout .col-main > .section-head .text-toggle button { font-size: 17px; }
  #overview ~ .focus { margin-top: 4px; }
  .topbar, body.scrolled .topbar { background: var(--card); border-bottom: 1px solid var(--line); box-shadow: 0 2px 12px rgba(0,0,0,.05); }
  .brand { font-size: 21px; }
  .brand img { width: 36px; height: 36px; border-radius: 10px; }
}
:root[data-theme="dark"] .topbar { --card: #16181A; }
@media (max-width: 767px) { .holder.h2 .h-chg small { flex-basis: 100%; padding-left: 56px; } }

/* 手机首页行情条：去掉「行情概览」标签，改成无边框的胶囊滚动条，两端渐隐 */
@media (max-width: 767px) {
  .overview { border: 0; border-radius: 0; background: none; margin: 2px -16px 14px; }
  .ov-label { display: none; }
  .ov-cells { padding: 2px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent); mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent); }
  .ov-track { padding-left: 16px; }
  .ov-track .ov-cell, .ov-track .ov-cell:first-child { border: 0; margin-right: 8px; padding: 6px 12px 6px 7px; border-radius: 999px; background: var(--soft); gap: 6px; }
  .ov-cell img { width: 20px; height: 20px; }
  .ov-cell small { font-size: 13px; }
  .ov-cell b { font-size: 13px; }
  .ov-cell em { font-size: 12px; font-weight: 700; }
}

/* ===== Web 第 1 版测试修复：平板宽度 768–1199 ===== */
/* W-01 顶部导航不换行，窄时收紧间距 */
.topnav a { white-space: nowrap; }
@media (min-width: 768px) and (max-width: 959px) {
  .topbar-in { gap: 10px; }
  .topnav a { padding: 8px 10px; }
  .brand span { display: none; }
}
/* W-03 首页 Topic 卡：平板改成横滑（一屏约一张半），标签不和「浏览专题」挤在一起 */
@media (min-width: 768px) and (max-width: 1023px) {
  .focus { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; cursor: grab; }
  .focus::-webkit-scrollbar { display: none; }
  .focus-card { scroll-snap-align: start; }
  .focus-dots { display: flex; align-items: center; justify-content: center; margin-top: 12px; }
  .focus + .focus-dots + .layout { margin-top: 24px; }
}
.focus-label { max-width: calc(100% - 140px); }
/* W-02 持仓卡片：平板两行两栏（名称 | 占比；持股 | 变化），各栏允许换行 */
@media (min-width: 768px) and (max-width: 1199px) {
  .holder.h2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); row-gap: 10px; column-gap: 20px; }
  .holder.h2 .holder-main { grid-column: 1; grid-row: 1; }
  .holder.h2 .holder-weight { grid-column: 2; grid-row: 1; align-self: center; }
  .holder.h2 .h-hold { grid-column: 1; grid-row: 2; }
  .holder.h2 .h-chg { grid-column: 2; grid-row: 2; }
  .holder.h2 .holder-go { display: none; }
  .holder.h2 .h-hold b, .holder.h2 .h-chg b { white-space: normal; }
  .holder.h2 .h-hold small, .holder.h2 .h-chg small { overflow: visible; white-space: normal; }
}
.load-fail button { margin-top: 10px; }

/* 登录弹窗：Google 登录 + 分隔线 */
.social-login { margin: 18px 0 4px; display: flex; justify-content: center; }
.g-btn { width: 100%; display: flex; justify-content: center; min-height: 44px; }
.g-fake { width: 100%; height: 44px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-weight: 600; font-size: 14.5px; color: var(--ink); }
.g-fake:hover:not(:disabled) { background: var(--soft); }
.g-fake:disabled { opacity: .6; }
.g-fake svg { width: 18px; height: 18px; }
.or-line { display: flex; align-items: center; gap: 12px; margin: 14px 0 6px; color: var(--muted); font-size: 12.5px; }
.or-line::before, .or-line::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ===== banner 动效 v3：三张轮流动（36 秒一轮，每张占 12 秒，动约 7 秒），节奏更慢 ===== */
/* 巨鲸：尾巴慢慢亮起再暗下 */
.focus-glow[data-fx="SUBJECT"]:not(.fx-b) { animation: fx-breathe3 36s ease-in-out var(--d) infinite; }
@keyframes fx-breathe3 { 0%, 20%, 100% { opacity: 0; } 10% { opacity: .9; } }

/* 芯片：光点沿一条线路走到芯片，核心闪一下；三条线路每轮换一条 */
.focus-glow[data-fx="RWA_TARGET"]:not(.fx-b) { animation: fx-trace3 108s linear var(--d) infinite; }
@keyframes fx-trace3 {
  0%      { -webkit-mask-position: 5.8% 12.2%; mask-position: 5.8% 12.2%; opacity: 0; }
  .74%    { opacity: 1; }
  4.63%   { -webkit-mask-position: 61.6% 12.2%; mask-position: 61.6% 12.2%; opacity: 1; }
  5.37%   { -webkit-mask-position: 63% 12.2%; mask-position: 63% 12.2%; opacity: 0; }
  33.33%  { -webkit-mask-position: 15.1% 33.3%; mask-position: 15.1% 33.3%; opacity: 0; }
  34.07%  { opacity: 1; }
  37.96%  { -webkit-mask-position: 66.9% 33.3%; mask-position: 66.9% 33.3%; opacity: 1; }
  38.7%   { -webkit-mask-position: 68% 33.3%; mask-position: 68% 33.3%; opacity: 0; }
  66.67%  { -webkit-mask-position: 25% 57.1%; mask-position: 25% 57.1%; opacity: 0; }
  67.41%  { opacity: 1; }
  71.3%   { -webkit-mask-position: 66.9% 57.1%; mask-position: 66.9% 57.1%; opacity: 1; }
  72.04%, 100% { -webkit-mask-position: 68% 57.1%; mask-position: 68% 57.1%; opacity: 0; }
}
.focus-glow.fx-b[data-fx="RWA_TARGET"] { animation: fx-core3 36s ease-out var(--d) infinite; }
@keyframes fx-core3 { 0%, 13% { opacity: 0; } 16% { opacity: .95; } 24%, 100% { opacity: 0; } }

/* 地球：一个光点沿左边的轨道尾迹绕上来，到地球后整颗地球轻轻亮一下（不再用竖向光带） */
.focus-glow[data-fx="MACRO"]:not(.fx-b) { opacity: 0;
  -webkit-mask-image: radial-gradient(closest-side, #000 25%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 25%, transparent 100%);
  -webkit-mask-size: 14% 22%; mask-size: 14% 22%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  animation: fx-orbit3 36s linear var(--d) infinite; }
@keyframes fx-orbit3 {
  0%    { -webkit-mask-position: 45.3% 85.9%; mask-position: 45.3% 85.9%; opacity: 0; }
  1.5%  { opacity: 1; }
  4%    { -webkit-mask-position: 22.1% 62.8%; mask-position: 22.1% 62.8%; }
  7%    { -webkit-mask-position: 9.9% 24.4%; mask-position: 9.9% 24.4%; }
  9.5%  { -webkit-mask-position: 22.1% 11.5%; mask-position: 22.1% 11.5%; }
  12.5% { -webkit-mask-position: 50% 10.3%; mask-position: 50% 10.3%; opacity: 1; }
  15%   { -webkit-mask-position: 66.3% 15.4%; mask-position: 66.3% 15.4%; opacity: .8; }
  16.5%, 100% { -webkit-mask-position: 68% 16%; mask-position: 68% 16%; opacity: 0; }
}
.focus-glow.fx-b[data-fx="MACRO"] { display: block;
  -webkit-mask-image: radial-gradient(ellipse 26% 52% at 84% 46%, #000 45%, transparent 100%);
          mask-image: radial-gradient(ellipse 26% 52% at 84% 46%, #000 45%, transparent 100%);
  animation: fx-globe3 36s ease-in-out var(--d) infinite; }
@keyframes fx-globe3 { 0%, 13% { opacity: 0; } 18% { opacity: .75; } 26%, 100% { opacity: 0; } }
