/* ==========================================================================
   链界 ChainScope · 前台样式
   视觉基调：深空黑底 + 鎏金主色 + 青色数据高光，机构级金融媒体质感
   ========================================================================== */

:root {
  --bg:            #07090F;
  --bg-1:          #0B0F18;
  --bg-2:          #101623;
  --bg-3:          #161D2E;
  --line:          #1F2937;
  --line-soft:     #18202E;

  --gold:          #E8B84B;
  --gold-2:        #F5D488;
  --gold-deep:     #B98A22;
  --cyan:          #2FE6C8;
  --blue:          #5B8DEF;
  --purple:        #A97BFF;

  --txt:           #EDF1F7;
  --txt-1:         #A9B4C6;
  --txt-2:         #6E7B90;
  --txt-3:         #4A5668;

  --up:            #FF4D4F;   /* 涨 - 红（中国市场惯例） */
  --down:          #17C964;   /* 跌 - 绿 */

  --radius:        14px;
  --radius-sm:     9px;
  --maxw:          1320px;
  --shadow:        0 18px 48px rgba(0,0,0,.55);
  --shadow-sm:     0 8px 24px rgba(0,0,0,.4);
  --grad-gold:     linear-gradient(135deg,#F5D488 0%,#E8B84B 45%,#B98A22 100%);
  --grad-line:     linear-gradient(90deg,transparent,#E8B84B,transparent);
  --font:          "Inter","PingFang SC","Microsoft YaHei","Hiragino Sans GB","Source Han Sans SC",system-ui,-apple-system,sans-serif;
  --mono:          "JetBrains Mono","SF Mono","Cascadia Mono",Consolas,monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--txt);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 背景光晕 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(760px 420px at 12% -6%, rgba(232,184,75,.10), transparent 62%),
    radial-gradient(680px 400px at 88% 4%, rgba(47,230,200,.07), transparent 60%),
    radial-gradient(900px 520px at 50% 110%, rgba(91,141,239,.06), transparent 65%);
}
body > * { position: relative; z-index: 1; }

a { color: inherit; text-decoration: none; transition: color .2s ease; }
img { max-width: 100%; display: block; }
ul, ol { padding-left: 1.25em; }

::selection { background: rgba(232,184,75,.28); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-1); }
::-webkit-scrollbar-thumb { background: #232E42; border-radius: 6px; border: 2px solid var(--bg-1); }
::-webkit-scrollbar-thumb:hover { background: #33415C; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================ 顶部行情条 ============================ */
.ticker {
  background: linear-gradient(90deg,#0A0D16,#0E1424 50%,#0A0D16);
  border-bottom: 1px solid var(--line-soft);
  overflow: hidden;
  height: 38px;
  display: flex;
  align-items: center;
}
.ticker-inner { display: flex; align-items: center; gap: 34px; white-space: nowrap; animation: tickerScroll 60s linear infinite; }
.ticker:hover .ticker-inner { animation-play-state: paused; }
@keyframes tickerScroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tk { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-family: var(--mono); }
.tk .sym { color: var(--txt-1); font-weight: 600; letter-spacing: .04em; }
.tk .px { color: var(--txt); }
.tk .ch { font-weight: 600; }
.tk .ch.up { color: var(--up); }
.tk .ch.down { color: var(--down); }

/* ============================ 导航栏 ============================ */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(7,9,15,.82);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 66px; }

.logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--grad-gold);
  display: grid; place-items: center;
  font-weight: 800; font-size: 18px; color: #0A0D16;
  box-shadow: 0 6px 18px rgba(232,184,75,.32);
  letter-spacing: -.02em;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-cn { font-size: 18px; font-weight: 800; letter-spacing: .06em; }
.logo-en { font-size: 9.5px; color: var(--txt-2); letter-spacing: .32em; text-transform: uppercase; }

.menu { display: flex; align-items: center; gap: 4px; flex: 1; overflow: hidden; }
.menu a {
  position: relative;
  padding: 9px 14px; border-radius: 8px;
  font-size: 14px; color: var(--txt-1); font-weight: 500;
  white-space: nowrap;
}
.menu a:hover { color: var(--txt); background: rgba(255,255,255,.045); }
.menu a.active { color: var(--gold); }
.menu a.active::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px;
  height: 2px; border-radius: 2px; background: var(--grad-gold);
}

.nav-right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.search-box { position: relative; }
.search-box input {
  width: 190px; height: 36px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 9px; color: var(--txt);
  padding: 0 34px 0 13px; font-size: 13px; font-family: var(--font);
  outline: none; transition: border-color .2s, width .25s;
}
.search-box input::placeholder { color: var(--txt-3); }
.search-box input:focus { border-color: rgba(232,184,75,.55); width: 232px; }
.search-box .ico {
  position: absolute; right: 11px; top: 50%; transform: translateY(-50%);
  color: var(--txt-3); pointer-events: none; font-size: 13px;
}
.btn-ghost {
  height: 36px; padding: 0 16px; display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); border-radius: 9px;
  background: var(--bg-2); color: var(--txt-1); font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all .2s;
}
.btn-ghost:hover { border-color: rgba(232,184,75,.5); color: var(--gold); }
.burger { display: none; background: none; border: 0; color: var(--txt); font-size: 22px; cursor: pointer; }

/* ============================ 通用组件 ============================ */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.sec-title { display: flex; align-items: center; gap: 11px; font-size: 20px; font-weight: 700; margin: 0; letter-spacing: .01em; }
.sec-title::before { content: ""; width: 4px; height: 20px; border-radius: 3px; background: var(--grad-gold); }
.sec-more { font-size: 13px; color: var(--txt-2); display: inline-flex; align-items: center; gap: 5px; }
.sec-more:hover { color: var(--gold); }

.tag {
  display: inline-flex; align-items: center;
  padding: 2px 9px; border-radius: 6px; font-size: 11.5px; font-weight: 600;
  background: rgba(232,184,75,.11); color: var(--gold-2);
  border: 1px solid rgba(232,184,75,.22); letter-spacing: .02em;
}
.tag.cyan { background: rgba(47,230,200,.1); color: var(--cyan); border-color: rgba(47,230,200,.22); }
.tag.blue { background: rgba(91,141,239,.1); color: var(--blue); border-color: rgba(91,141,239,.22); }

.meta { display: flex; align-items: center; gap: 14px; font-size: 12.5px; color: var(--txt-2); flex-wrap: wrap; }
.meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--txt-3); }

.card {
  background: linear-gradient(180deg,var(--bg-2),var(--bg-1));
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.card:hover { border-color: rgba(232,184,75,.34); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.card:hover .c-title { color: var(--gold-2); }

.thumb {
  width: 100%; aspect-ratio: 16/9; border-radius: var(--radius) var(--radius) 0 0;
  position: relative; overflow: hidden;
  display: grid; place-items: center;
}
.thumb::after {
  content: ""; position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,.028) 0 1px, transparent 1px 14px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,.028) 0 1px, transparent 1px 14px);
}
.thumb .glyph {
  position: relative; z-index: 1;
  font-family: var(--mono); font-size: 30px; font-weight: 700;
  color: rgba(255,255,255,.16); letter-spacing: .1em;
}

/* ============================ 首页 Hero ============================ */
.hero { padding: 34px 0 8px; }
.hero-grid { display: grid; grid-template-columns: 1.65fr 1fr; gap: 26px; align-items: stretch; }

.lead-card {
  position: relative; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line-soft); min-height: 420px;
  display: flex; align-items: flex-end;
  background: linear-gradient(135deg,#141B2E 0%,#241C0E 55%,#0A0D16 100%);
}
.lead-card::before {
  content: ""; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.02) 0 1px, transparent 1px 16px),
    radial-gradient(680px 320px at 18% 100%, rgba(232,184,75,.16), transparent 68%);
}
.lead-body { position: relative; z-index: 2; padding: 34px 36px 32px; width: 100%;
  background: linear-gradient(180deg,transparent,rgba(7,9,15,.55) 45%,rgba(7,9,15,.92)); }
.lead-badge { display: inline-flex; gap: 8px; align-items: center; margin-bottom: 14px; }
.lead-title { font-size: 31px; line-height: 1.3; font-weight: 800; margin: 0 0 13px; letter-spacing: -.01em; }
.lead-title a:hover { color: var(--gold-2); }
.lead-excerpt { color: var(--txt-1); font-size: 14.5px; margin: 0 0 18px; max-width: 92%; }

.hero-side { display: flex; flex-direction: column; gap: 14px; }
.side-item { padding: 15px 17px; display: block; }
.side-item .n {
  font-family: var(--mono); font-size: 12px; color: var(--gold); font-weight: 700;
  letter-spacing: .08em;
}
.side-item h3 { font-size: 14.5px; line-height: 1.5; margin: 6px 0 7px; font-weight: 600; }

/* ============================ 行情面板 ============================ */
.market-panel { margin: 34px 0 8px; }
.market-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 13px; }
.mk-card {
  padding: 15px 16px; background: linear-gradient(180deg,var(--bg-2),var(--bg-1));
  border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  transition: border-color .22s, transform .22s;
}
.mk-card:hover { border-color: rgba(232,184,75,.3); transform: translateY(-2px); }
.mk-top { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.mk-sym { font-family: var(--mono); font-size: 14px; font-weight: 700; letter-spacing: .04em; }
.mk-name { font-size: 11.5px; color: var(--txt-2); margin-left: auto; text-align: right;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 55%; }

/* 币种图标 */
.coin-ico {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  object-fit: contain; background: rgba(255,255,255,.05); display: inline-block;
  vertical-align: middle;
}
.coin-ico.sm { width: 24px; height: 24px; }
.coin-ico.xs { width: 15px; height: 15px; }
.coin-ico-txt {
  display: inline-grid; place-items: center; font-style: normal;
  font-family: var(--mono); font-weight: 800; font-size: 12px;
  color: var(--txt-2); border: 1px solid var(--line);
}
.coin-ico-txt.xs { font-size: 9px; }
.mkt-name-wrap { display: inline-flex; align-items: center; gap: 9px; }
.mk-price { font-family: var(--mono); font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.mk-price small { font-size: 11px; color: var(--txt-2); font-weight: 400; margin-left: 4px; }
.mk-ch {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 7px;
  font-family: var(--mono); font-size: 12.5px; font-weight: 700;
  padding: 2px 7px; border-radius: 5px;
}
.mk-ch.up { color: var(--up); background: rgba(255,77,79,.1); }
.mk-ch.down { color: var(--down); background: rgba(23,201,100,.1); }
.mk-range { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--txt-3); font-family: var(--mono); margin-top: 9px; }
.mk-vol { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--txt-3); font-family: var(--mono); margin-top: 4px; }
.mk-live { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--txt-3); font-family: var(--mono); }
.mk-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(47,230,200,.6); animation: mk-pulse 2s infinite; }
@keyframes mk-pulse { 70% { box-shadow: 0 0 0 7px rgba(47,230,200,0); } 100% { box-shadow: 0 0 0 0 rgba(47,230,200,0); } }
@media (prefers-reduced-motion: reduce) { .mk-live::before { animation: none; } }

/* ============================ 主内容布局 ============================ */
.main-layout { display: grid; grid-template-columns: 1fr 344px; gap: 34px; margin: 40px 0 60px; }

.news-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.news-grid .card { display: flex; flex-direction: column; overflow: hidden; }
.c-body { padding: 17px 19px 19px; display: flex; flex-direction: column; flex: 1; }
.c-title { font-size: 16.5px; line-height: 1.5; font-weight: 700; margin: 10px 0 9px; transition: color .2s; }
.c-exc { font-size: 13.5px; color: var(--txt-1); margin: 0 0 13px; flex: 1; }
.c-foot { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--txt-2); padding-top: 12px; border-top: 1px solid var(--line-soft); }

/* 列表样式条目 */
.news-list { display: flex; flex-direction: column; gap: 0; }
.li-item { display: grid; grid-template-columns: 176px 1fr; gap: 20px; padding: 22px 0; border-bottom: 1px solid var(--line-soft); }
.li-item:first-child { padding-top: 0; }
.li-thumb { aspect-ratio: 4/3; border-radius: var(--radius-sm); position: relative; overflow: hidden; display: grid; place-items: center; border: 1px solid var(--line-soft); }
.li-thumb::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(255,255,255,.026) 0 1px, transparent 1px 13px); }
.li-thumb .glyph { position: relative; z-index: 1; font-family: var(--mono); font-size: 18px; font-weight: 700; color: rgba(255,255,255,.14); }
.li-title { font-size: 18px; font-weight: 700; line-height: 1.48; margin: 8px 0 9px; transition: color .2s; }
.li-item:hover .li-title { color: var(--gold-2); }
.li-exc { color: var(--txt-1); font-size: 13.5px; margin: 0 0 12px; }

/* ============================ 侧边栏 ============================ */
.sidebar { display: flex; flex-direction: column; gap: 22px; }
.side-box { background: linear-gradient(180deg,var(--bg-2),var(--bg-1)); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.side-head { padding: 14px 17px; border-bottom: 1px solid var(--line-soft); font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 9px; }
.side-head::before { content: ""; width: 3px; height: 14px; border-radius: 2px; background: var(--grad-gold); }
.side-body { padding: 6px 0; }

/* 快讯 */
.flash-list { max-height: 400px; overflow-y: auto; }
.flash-item { display: flex; gap: 11px; padding: 11px 17px; border-bottom: 1px solid var(--line-soft); transition: background .2s; }
.flash-item:last-child { border-bottom: 0; }
.flash-item:hover { background: rgba(255,255,255,.025); }
.flash-time { font-family: var(--mono); font-size: 11.5px; color: var(--gold); flex-shrink: 0; padding-top: 2px; font-weight: 600; }
.flash-txt { font-size: 13px; color: var(--txt-1); line-height: 1.62; }
.flash-item.imp .flash-txt { color: var(--txt); }
.flash-item.imp { position: relative; }
.flash-item.imp::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 2px; background: var(--gold); border-radius: 2px; }

/* 排行 */
.rank-item { display: flex; gap: 13px; padding: 11px 17px; align-items: flex-start; }
.rank-item:hover .r-title { color: var(--gold-2); }
.r-no { font-family: var(--mono); font-size: 14px; font-weight: 800; color: var(--txt-3); flex-shrink: 0; width: 20px; }
.rank-item:nth-child(1) .r-no { color: var(--gold); }
.rank-item:nth-child(2) .r-no { color: #C8D2E0; }
.rank-item:nth-child(3) .r-no { color: #C08B5C; }
.r-title { font-size: 13.5px; line-height: 1.55; font-weight: 500; transition: color .2s; }
.r-sub { font-size: 11.5px; color: var(--txt-3); margin-top: 4px; font-family: var(--mono); }

/* 订阅 */
.sub-box { padding: 20px 18px; text-align: center; background: linear-gradient(150deg,#141B2C,#1E1A0E 60%,#0D111B); }
.sub-box h3 { font-size: 16px; margin: 0 0 7px; font-weight: 700; }
.sub-box p { font-size: 12.5px; color: var(--txt-2); margin: 0 0 15px; }
.sub-box input {
  width: 100%; height: 38px; background: rgba(0,0,0,.35); border: 1px solid var(--line);
  border-radius: 8px; color: var(--txt); padding: 0 13px; font-size: 13px; outline: none; margin-bottom: 10px;
  font-family: var(--font);
}
.sub-box input:focus { border-color: rgba(232,184,75,.5); }
.btn-gold {
  width: 100%; height: 38px; border: 0; border-radius: 8px; cursor: pointer;
  background: var(--grad-gold); color: #0A0D16; font-weight: 700; font-size: 13.5px;
  letter-spacing: .04em; transition: filter .2s, transform .15s; font-family: var(--font);
}
.btn-gold:hover { filter: brightness(1.08); }
.btn-gold:active { transform: scale(.985); }

/* ============================ 文章详情页 ============================ */
.article-hero { padding: 30px 0 0; }
.breadcrumb { font-size: 12.5px; color: var(--txt-2); display: flex; gap: 8px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb .sep { color: var(--txt-3); }
.art-title { font-size: 37px; line-height: 1.32; font-weight: 800; margin: 0 0 18px; letter-spacing: -.015em; max-width: 940px; }
.art-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding-bottom: 22px; border-bottom: 1px solid var(--line-soft); font-size: 13px; color: var(--txt-2); }
.art-meta .author { color: var(--txt-1); font-weight: 600; }
.art-meta .pub-time, .art-meta .upd-time { color: var(--txt-2); }
.art-meta .pub-time time, .art-meta .upd-time time { color: var(--txt-1); font-variant-numeric: tabular-nums; }
.art-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 20px 0 0; }
.art-tags .tag { background: rgba(255,255,255,.05); color: var(--txt-1); border-color: var(--line); }

.article-layout { display: grid; grid-template-columns: 1fr 320px; gap: 44px; margin: 30px 0 60px; }
.article-body { font-size: 16.5px; line-height: 1.9; color: #D8DFEB; max-width: 800px; }
.article-body h2 { font-size: 22px; margin: 38px 0 15px; font-weight: 700; color: var(--txt); letter-spacing: -.01em; position: relative; padding-left: 15px; }
.article-body h2::before { content: ""; position: absolute; left: 0; top: .28em; bottom: .28em; width: 3px; border-radius: 2px; background: var(--grad-gold); }
.article-body h3 { font-size: 18px; margin: 28px 0 12px; font-weight: 700; color: var(--txt); }
.article-body h4 { font-size: 16px; margin: 22px 0 10px; color: var(--txt); }
.article-body p { margin: 0 0 19px; }
.article-body ul, .article-body ol { margin: 0 0 19px; padding-left: 1.4em; }
.article-body li { margin-bottom: 9px; }
.article-body strong { color: var(--gold-2); font-weight: 700; }
.article-body code { font-family: var(--mono); font-size: .88em; background: rgba(232,184,75,.1); color: var(--gold-2); padding: 2px 6px; border-radius: 5px; }
.article-body blockquote {
  margin: 0 0 20px; padding: 16px 20px;
  background: rgba(232,184,75,.05); border-left: 3px solid var(--gold);
  border-radius: 0 10px 10px 0;
}
.article-body blockquote p:last-child { margin-bottom: 0; }

.disclaimer { margin: 34px 0 0; padding: 15px 18px; font-size: 12.5px; color: var(--txt-2); background: rgba(255,255,255,.022); border: 1px dashed var(--line); border-radius: var(--radius-sm); line-height: 1.75; }

.art-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 34px; }
.art-nav a { padding: 15px 17px; border: 1px solid var(--line-soft); border-radius: var(--radius-sm); background: var(--bg-1); transition: all .2s; }
.art-nav a:hover { border-color: rgba(232,184,75,.4); }
.art-nav .lb { font-size: 11.5px; color: var(--txt-3); margin-bottom: 7px; }
.art-nav .tt { font-size: 14px; line-height: 1.5; font-weight: 600; }
.art-nav .right { text-align: right; }

/* 目录 */
.toc { position: sticky; top: 84px; }
.toc-list { padding: 12px 0; max-height: 60vh; overflow-y: auto; }
.toc-list a { display: block; padding: 7px 17px; font-size: 13px; color: var(--txt-2); border-left: 2px solid transparent; line-height: 1.55; }
.toc-list a:hover { color: var(--gold); background: rgba(255,255,255,.022); }
.toc-list a.h3 { padding-left: 30px; font-size: 12.5px; }

/* ============================ 分类页 / 归档页 ============================ */
.page-head { padding: 38px 0 26px; border-bottom: 1px solid var(--line-soft); margin-bottom: 34px; }
.page-title { font-size: 36px; font-weight: 800; margin: 0 0 12px; letter-spacing: -.015em; }
.page-desc { color: var(--txt-1); font-size: 15px; max-width: 780px; margin: 0; }
.chips { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 22px; }
.chip {
  padding: 7px 15px; border-radius: 20px; font-size: 13px; font-weight: 500;
  border: 1px solid var(--line); background: var(--bg-2); color: var(--txt-1); transition: all .2s;
}
.chip:hover { border-color: rgba(232,184,75,.45); color: var(--gold); }
.chip.active { background: var(--grad-gold); color: #0A0D16; border-color: transparent; font-weight: 700; }

.pager { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 40px; }
.pager button, .pager span {
  min-width: 38px; height: 38px; padding: 0 12px; border-radius: 9px;
  border: 1px solid var(--line); background: var(--bg-2); color: var(--txt-1);
  font-size: 13.5px; font-family: var(--font); cursor: pointer; transition: all .2s;
  display: inline-grid; place-items: center;
}
.pager button:hover:not(:disabled) { border-color: rgba(232,184,75,.5); color: var(--gold); }
.pager button:disabled { opacity: .35; cursor: not-allowed; }
.pager .cur { background: var(--grad-gold); color: #0A0D16; border-color: transparent; font-weight: 700; }

/* ============================ 空状态 ============================ */
.empty { padding: 70px 20px; text-align: center; color: var(--txt-2); }
.empty .ico { font-size: 42px; opacity: .3; margin-bottom: 14px; }
.empty h3 { font-size: 17px; color: var(--txt-1); margin: 0 0 8px; font-weight: 600; }
.empty p { font-size: 13.5px; margin: 0; }

/* ============================ 页脚 ============================ */
.footer { border-top: 1px solid var(--line-soft); background: linear-gradient(180deg,var(--bg-1),#05070C); padding: 52px 0 28px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 34px; border-bottom: 1px solid var(--line-soft); }
.foot-col h4 { font-size: 13.5px; font-weight: 700; margin: 0 0 15px; color: var(--txt); letter-spacing: .04em; }
.foot-col ul { list-style: none; padding: 0; margin: 0; }
.foot-col li { margin-bottom: 10px; }
.foot-col a { font-size: 13px; color: var(--txt-2); }
.foot-col a:hover { color: var(--gold); }
.foot-about p { font-size: 13px; color: var(--txt-2); line-height: 1.8; margin: 14px 0 0; max-width: 380px; }
.foot-bottom { padding-top: 22px; display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 12.5px; color: var(--txt-3); }
.foot-bottom a { color: var(--txt-3); }
.foot-bottom a:hover { color: var(--gold); }

/* ============================ 响应式 ============================ */
@media (max-width: 1180px) {
  .hero-grid { grid-template-columns: 1fr; }
  .main-layout { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .toc { position: static; }
  .market-grid { grid-template-columns: repeat(3,1fr); }
  .side-item:first-child { display: block; }
}
@media (max-width: 900px) {
  .menu { display: none; }
  .menu.open {
    display: flex; position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(9,12,20,.98); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line); padding: 10px 16px 18px; z-index: 70;
  }
  .menu.open a { padding: 13px 12px; border-radius: 8px; }
  .menu.open a.active::after { display: none; }
  .menu.open a.active { background: rgba(232,184,75,.1); }
  .burger { display: block; }
  .search-box input { width: 130px; }
  .search-box input:focus { width: 150px; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .art-title { font-size: 27px; }
  .lead-title { font-size: 24px; }
  .lead-body { padding: 24px 22px; }
  .news-grid { grid-template-columns: 1fr; }
  .market-grid { grid-template-columns: repeat(2,1fr); }
  .li-item { grid-template-columns: 128px 1fr; gap: 15px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 16px; }
  .foot-grid { grid-template-columns: 1fr; }
  .page-title { font-size: 27px; }
  .market-grid { grid-template-columns: 1fr; }
  .li-item { grid-template-columns: 1fr; }
  .li-thumb { aspect-ratio: 16/9; }
  .art-nav { grid-template-columns: 1fr; }
  .logo-en { display: none; }
}

/* ==========================================================================
   实时波动动效 —— 价格跳动时闪烁提示，涨红跌绿（中国市场惯例）
   ========================================================================== */
@keyframes fl-up   { 0% { background: rgba(255,77,79,.26); } 100% { background: transparent; } }
@keyframes fl-down { 0% { background: rgba(23,201,100,.26); } 100% { background: transparent; } }
.fl-up, .fl-down { border-radius: 5px; padding: 0 4px; margin: 0 -4px; }
.fl-up   { animation: fl-up .85s ease-out; }
.fl-down { animation: fl-down .85s ease-out; }
.tk .px.t-up, .mk-price.t-up { color: var(--up); }
.tk .px.t-down, .mk-price.t-down { color: var(--down); }
.t-up, .t-down { transition: color .5s ease .5s; }
@media (prefers-reduced-motion: reduce) { .fl-up, .fl-down { animation: none; } }

/* ==========================================================================
   行情总表（/markets）
   ========================================================================== */
.mkt-toolbar {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 15px 17px; background: linear-gradient(180deg,var(--bg-2),var(--bg-1));
  border: 1px solid var(--line-soft); border-radius: var(--radius); margin-bottom: 16px;
}
.mkt-input {
  flex: 1; min-width: 190px; height: 38px; background: var(--bg); border: 1px solid var(--line);
  border-radius: 9px; color: var(--txt); padding: 0 14px; font-size: 13.5px; outline: none;
  font-family: var(--font);
}
.mkt-input:focus { border-color: rgba(232,184,75,.55); }
.mkt-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.mkt-tab {
  padding: 7px 14px; border-radius: 8px; font-size: 13px; cursor: pointer;
  border: 1px solid var(--line); background: var(--bg-2); color: var(--txt-1);
  font-family: var(--font); transition: all .18s;
}
.mkt-tab:hover { border-color: rgba(232,184,75,.45); color: var(--gold); }
.mkt-tab.on { background: var(--grad-gold); color: #0A0D16; border-color: transparent; font-weight: 700; }
.mkt-tab.rise.on { background: linear-gradient(135deg,#FF6B6D,#FF4D4F); color: #fff; }
.mkt-tab.fall.on { background: linear-gradient(135deg,#2FD97A,#17C964); color: #06210F; }

.mkt-wrap {
  background: linear-gradient(180deg,var(--bg-2),var(--bg-1));
  border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden;
}
.mkt-scroll { overflow-x: auto; }
.mkt-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 800px; }
.mkt-table thead th {
  position: sticky; top: 0; z-index: 2;
  background: #0C1120; color: var(--txt-2); font-weight: 600; font-size: 12px;
  text-align: right; padding: 12px 14px; white-space: nowrap;
  border-bottom: 1px solid var(--line); cursor: pointer; user-select: none;
}
.mkt-table thead th:first-child, .mkt-table thead th:nth-child(2) { text-align: left; }
.mkt-table thead th.sortable:hover { color: var(--gold); }
.mkt-table thead th .ar { color: var(--gold); margin-left: 3px; font-size: 10px; }
.mkt-table tbody td {
  padding: 11px 14px; text-align: right; font-family: var(--mono);
  border-bottom: 1px solid var(--line-soft); white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.mkt-table tbody td:first-child, .mkt-table tbody td:nth-child(2) { text-align: left; font-family: var(--font); }
.mkt-table tbody tr:hover { background: rgba(255,255,255,.028); }
.mkt-table tbody tr:last-child td { border-bottom: 0; }
.mkt-no { color: var(--txt-3); font-size: 12px; }
.mkt-name { color: var(--txt); font-weight: 600; }
.mkt-full { color: var(--txt-3); font-size: 11.5px; margin-left: 6px; }
.mkt-sym { color: var(--txt-2); font-family: var(--mono); font-size: 12px; }
.mkt-up { color: var(--up); font-weight: 600; }
.mkt-down { color: var(--down); font-weight: 600; }
.mkt-chg { display: inline-block; min-width: 62px; padding: 2px 7px; border-radius: 5px; font-weight: 700; }
.mkt-chg.up { color: var(--up); background: rgba(255,77,79,.1); }
.mkt-chg.down { color: var(--down); background: rgba(23,201,100,.1); }
.spark { width: 78px; height: 26px; display: block; margin-left: auto; }
.mkt-foot {
  padding: 12px 17px; font-size: 12px; color: var(--txt-3);
  border-top: 1px solid var(--line-soft); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.mkt-foot .live-dot { color: var(--cyan); }

/* ==========================================================================
   交易所排名（/exchanges）
   ========================================================================== */
.ex-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(300px,1fr)); gap: 14px; }
.ex-card {
  position: relative; padding: 17px 18px; overflow: hidden;
  background: linear-gradient(180deg,var(--bg-2),var(--bg-1));
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  transition: border-color .22s, transform .22s;
}
.ex-card:hover { border-color: rgba(232,184,75,.34); transform: translateY(-3px); }
.ex-card.mid { border-color: rgba(255,255,255,.06); }
.ex-top { display: flex; align-items: center; gap: 12px; margin-bottom: 13px; }
.ex-badge {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center; font-family: var(--mono); font-weight: 800; font-size: 15px;
  background: var(--bg-3); color: var(--txt-2); border: 1px solid var(--line);
}
.ex-card.p1 .ex-badge { background: var(--grad-gold); color: #0A0D16; border-color: transparent; }
.ex-card.p2 .ex-badge { background: linear-gradient(135deg,#D8E2F0,#9FB0C6); color: #10141C; border-color: transparent; }
.ex-card.p3 .ex-badge { background: linear-gradient(135deg,#D9A273,#B4763F); color: #1A1108; border-color: transparent; }
/* 交易所 logo：白底圆角，保证深色主题下任何颜色的 logo 都清晰可读 */
.ex-logo {
  position: relative; width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 11px; background: #F7F9FC; border: 1px solid rgba(255,255,255,.10);
  display: grid; place-items: center; overflow: hidden;
}
.ex-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.ex-namebox { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ex-name {
  font-size: 15.5px; font-weight: 700; line-height: 1.3;
  display: inline-flex; align-items: center; gap: 7px; min-width: 0;
}
.ex-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-rank {
  flex-shrink: 0; font-style: normal; font-family: var(--mono);
  font-size: 10px; font-weight: 800; letter-spacing: .04em;
  padding: 1px 6px; border-radius: 5px; line-height: 1.5;
  color: var(--txt-2); background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
}
.ex-rank[data-top] {
  color: #0A0D16; background: var(--grad-gold); border-color: transparent;
}
.ex-card.p1 .ex-rank[data-top] { background: linear-gradient(135deg,#F5D488,#E8B84B); }
@media (max-width: 640px) { .ex-logo { width: 40px; height: 40px; } }
.ex-name { font-size: 15.5px; font-weight: 700; line-height: 1.3; }
.ex-sub { font-size: 11.5px; color: var(--txt-3); margin-top: 3px; }
.ex-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.ex-stat .k { font-size: 11px; color: var(--txt-3); }
.ex-stat .v { font-size: 14.5px; font-family: var(--mono); font-weight: 700; color: var(--txt); margin-top: 2px; }
.ex-stat .v.gold { color: var(--gold-2); }
.trust { margin-top: 4px; }
.trust-track { height: 5px; border-radius: 3px; background: var(--bg-3); overflow: hidden; }
.trust-fill { height: 100%; border-radius: 3px; background: var(--grad-gold); transition: width .5s; }
.trust-fill.low { background: linear-gradient(90deg,#8A6A2E,#B98A22); }
.trust-fill.hi { background: linear-gradient(90deg,#2FE6C8,#17C964); }
.ex-note { font-size: 11.5px; color: var(--txt-3); margin-top: 6px; display: flex; justify-content: space-between; }

.ex-bar { display: flex; align-items: center; gap: 12px; margin: 16px 0 8px; font-size: 12.5px; color: var(--txt-2); }
.ex-bar-track { flex: 1; height: 7px; border-radius: 4px; background: var(--bg-3); overflow: hidden; display: flex; }
.ex-bar-seg { height: 100%; }

/* ==========================================================================
   7×24 快讯（来自新闻聚合接口）
   ========================================================================== */
.live-item { display: flex; gap: 11px; padding: 10px 17px; border-bottom: 1px solid var(--line-soft); }
.live-item:last-child { border-bottom: 0; }
.live-item:hover { background: rgba(255,255,255,.025); }
.live-time { font-family: var(--mono); font-size: 11px; color: var(--gold); flex-shrink: 0; padding-top: 2px; font-weight: 600; }
.live-body { min-width: 0; }
.live-txt { font-size: 13px; color: var(--txt-1); line-height: 1.6; }
.live-item a.live-txt:hover { color: var(--gold-2); }
.live-src { font-size: 10.5px; color: var(--txt-3); margin-top: 3px; font-family: var(--mono); }
.live-src .en { color: var(--blue); }
.new-badge {
  display: inline-block; font-size: 9.5px; font-weight: 700; padding: 1px 5px;
  border-radius: 4px; background: rgba(255,77,79,.16); color: var(--up);
  margin-right: 5px; vertical-align: 1px; font-family: var(--mono);
}

/* ==========================================================================
   站内搜索页
   ========================================================================== */
.sr-result { display: flex; flex-direction: column; }
.sr-item { padding: 18px 0; border-bottom: 1px solid var(--line-soft); }
.sr-item .t { font-size: 17px; font-weight: 700; line-height: 1.5; }
.sr-item .t a:hover { color: var(--gold-2); }
.sr-item .e { font-size: 13.5px; color: var(--txt-1); margin: 7px 0 8px; }
.sr-item mark { background: rgba(232,184,75,.24); color: var(--gold-2); padding: 0 2px; border-radius: 3px; }

/* ==========================================================================
   移动端 / App 化
   ========================================================================== */
.app-cta {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 16px 18px; margin: 0 0 20px;
  background: linear-gradient(120deg,rgba(232,184,75,.1),rgba(47,230,200,.05));
  border: 1px solid rgba(232,184,75,.22); border-radius: var(--radius);
}
.app-cta .t { font-size: 14.5px; font-weight: 700; }
.app-cta .d { font-size: 12.5px; color: var(--txt-2); margin-top: 3px; }
.app-cta .sp { flex: 1; }
.btn-install {
  height: 38px; padding: 0 18px; border-radius: 9px; border: 0; cursor: pointer;
  background: var(--grad-gold); color: #0A0D16; font-weight: 700; font-size: 13.5px;
  font-family: var(--font); white-space: nowrap;
}
.btn-install[hidden] { display: none; }

@media (max-width: 900px) {
  .mkt-table { font-size: 12.5px; min-width: 660px; }
  .mkt-table thead th, .mkt-table tbody td { padding: 9px 10px; }
  .spark { display: none; }
  .ex-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .mkt-toolbar { padding: 12px; gap: 9px; }
  .mkt-input { min-width: 100%; }
  .page-desc { font-size: 14px; }
}

/* ==========================================================================
   7×24 行情终端（首页改版：行情 · 交易所 · 美股，无新闻版块）
   ========================================================================== */
.sec-tag {
  font-size: 10px; font-weight: 700; letter-spacing: .1em; padding: 2px 7px;
  border-radius: 5px; color: var(--gold-2); background: rgba(232,184,75,.1);
  border: 1px solid rgba(232,184,75,.28); font-family: var(--mono);
}
.sec-side { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.src-note { margin: 12px 0 0; font-size: 11.5px; line-height: 1.75; color: var(--txt-3); }

/* 每秒同步：把脉冲点节奏压到 1s，让「每秒」这件事是看得见的 */
.mk-live.fast::before { animation-duration: 1s; }
.mk-live b { font-weight: 600; color: var(--txt-1); font-variant-numeric: tabular-nums; }

/* ---- 美股 ---- */
.stk-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 12px; }
.stk-card {
  padding: 13px 14px 11px; background: linear-gradient(180deg,var(--bg-2),var(--bg-1));
  border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  transition: border-color .22s, transform .22s;
}
.stk-card:hover { border-color: rgba(91,141,239,.35); transform: translateY(-2px); }
.stk-top { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.stk-ico {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  object-fit: contain; background: #fff; padding: 3px; display: inline-block;
}
.stk-ico.sm { width: 26px; height: 26px; border-radius: 7px; padding: 2px; }
.stk-ico-txt {
  display: inline-grid; place-items: center; font-style: normal;
  font-family: var(--mono); font-weight: 800; font-size: 13px;
  color: var(--txt-2); border: 1px solid var(--line); background: rgba(255,255,255,.05);
}
.stk-id { display: flex; flex-direction: column; min-width: 0; }
.stk-sym { font-family: var(--mono); font-size: 13.5px; font-weight: 700; letter-spacing: .03em; line-height: 1.25; }
.stk-name { font-size: 10.5px; color: var(--txt-2); line-height: 1.3;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stk-price { font-family: var(--mono); font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.stk-price small { font-size: 10px; color: var(--txt-3); font-weight: 400; margin-left: 4px; }
.stk-chg {
  display: inline-flex; align-items: center; gap: 4px; margin-top: 5px;
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  padding: 1px 7px; border-radius: 5px;
}
.stk-chg.up { color: var(--up); background: rgba(255,77,79,.1); }
.stk-chg.down { color: var(--down); background: rgba(23,201,100,.1); }
.stk-meta { display: flex; justify-content: space-between; font-size: 10px; color: var(--txt-3);
  font-family: var(--mono); margin-top: 9px; }

/* 交易时段状态 */
.sess-chip {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600;
  padding: 2px 8px; border-radius: 20px; font-family: var(--mono);
  border: 1px solid var(--line); color: var(--txt-2); background: rgba(255,255,255,.04);
}
.sess-chip::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.sess-chip.s-open { color: var(--up); border-color: rgba(255,77,79,.3); background: rgba(255,77,79,.08); }
.sess-chip.s-open::before { animation: mk-pulse 1.6s infinite; }
.sess-chip.s-pre, .sess-chip.s-post { color: var(--blue); border-color: rgba(91,141,239,.3); background: rgba(91,141,239,.08); }
.sess-chip.s-closed { color: var(--txt-3); }

@media (max-width: 1180px) { .stk-grid { grid-template-columns: repeat(4,1fr); } }
@media (max-width: 900px)  { .stk-grid { grid-template-columns: repeat(3,1fr); } }
@media (max-width: 680px)  { .stk-grid { grid-template-columns: repeat(2,1fr); gap: 9px; }
  .stk-card { padding: 11px 11px 9px; } .stk-price { font-size: 17px; }
  .stk-ico { width: 28px; height: 28px; border-radius: 8px; } }

/* ==========================================================================
   要闻快讯（RSS 聚合） + 下载中心
   ========================================================================== */
.rss-tabs {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin: 18px 0 14px;
}
.rss-tab {
  font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
  padding: 5px 14px; border-radius: 18px;
  color: var(--txt-2); background: rgba(255,255,255,.04);
  border: 1px solid var(--line); transition: all .18s;
}
.rss-tab:hover { color: var(--txt); border-color: rgba(232,184,75,.4); }
.rss-tab.active {
  color: #0A0D16; background: var(--grad-gold); border-color: transparent; font-weight: 700;
}
.rss-tabs .mk-live { margin-left: auto; }

.rss-list {
  list-style: none; margin: 0; padding: 0;
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: linear-gradient(180deg,var(--bg-2),var(--bg-1)); overflow: hidden;
}
.rss-item {
  display: flex; align-items: baseline; gap: 10px; padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft); transition: background .15s;
}
.rss-item:last-child { border-bottom: 0; }
.rss-item:hover { background: rgba(232,184,75,.04); }
.rss-cat {
  flex-shrink: 0; font-size: 10px; font-weight: 700; font-family: var(--mono);
  padding: 1px 7px; border-radius: 5px; line-height: 1.7;
}
.rss-cat.c-crypto { color: var(--gold-2); background: rgba(232,184,75,.1); }
.rss-cat.c-stocks { color: var(--blue); background: rgba(91,141,239,.12); }
.rss-cat.c-ai { color: #C9A6FF; background: rgba(155,107,255,.12); }
.rss-title {
  flex: 1; min-width: 0; color: var(--txt); font-size: 13.5px; font-weight: 500;
  line-height: 1.55; text-decoration: none;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.rss-title:hover { color: var(--gold-2); }
.rss-meta { flex-shrink: 0; font-size: 11px; color: var(--txt-3); font-family: var(--mono); }
.rss-empty { color: var(--txt-3); justify-content: center; }
@media (max-width: 680px) {
  .rss-item { flex-wrap: wrap; padding: 11px 12px; }
  .rss-meta { flex-basis: 100%; padding-left: 2px; }
  .rss-title { flex-basis: calc(100% - 60px); }
}

/* ---- 下载中心 ---- */
.dl-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin: 26px 0 8px; }
.dl-card {
  padding: 22px 20px; border-radius: var(--radius);
  background: linear-gradient(180deg,var(--bg-2),var(--bg-1));
  border: 1px solid var(--line-soft); display: flex; flex-direction: column;
}
.dl-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.dl-ico {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 22px;
  background: rgba(255,255,255,.05); border: 1px solid var(--line);
}
.dl-t { font-size: 16.5px; font-weight: 700; }
.dl-s { font-size: 11.5px; color: var(--txt-3); margin-top: 2px; }
.dl-feats { list-style: none; margin: 0 0 16px; padding: 0; flex: 1; }
.dl-feats li {
  font-size: 12.5px; color: var(--txt-2); line-height: 1.6;
  padding: 4px 0 4px 18px; position: relative;
}
.dl-feats li::before { content: "✓"; position: absolute; left: 0; color: var(--gold-2); font-weight: 700; }
.dl-btn {
  display: block; text-align: center; text-decoration: none;
  font-size: 14px; font-weight: 700; padding: 11px 16px; border-radius: 10px;
  color: #0A0D16; background: var(--grad-gold); border: 0; cursor: pointer;
  transition: transform .18s, box-shadow .18s;
}
.dl-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(232,184,75,.25); }
.dl-btn.ios { background: linear-gradient(135deg,#5B8DEF,#3E6FD9); color: #fff; }
.dl-btn[data-pending] { opacity: .55; cursor: not-allowed; pointer-events: none; }
.dl-pending {
  display: block; font-size: 10.5px; font-weight: 500; margin-top: 3px; opacity: .8;
}
.dl-note { font-size: 11px; color: var(--txt-3); line-height: 1.6; margin: 10px 0 0; }
.qr-card { align-items: center; text-align: center; }
.dl-qr { margin: 6px 0 4px; }
.dl-qr .qr { display: block; border-radius: 12px; }
.qr-fallback { font-size: 12px; color: var(--txt-3); padding: 30px 10px; line-height: 1.7; }
.dl-pwa { margin-top: 34px; }
.dl-steps { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.dl-step {
  font-size: 13px; color: var(--txt-2); line-height: 1.75;
  padding: 14px 16px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.03); border: 1px solid var(--line-soft);
}
.dl-step b { color: var(--gold-2); display: block; margin-bottom: 4px; }
@media (max-width: 980px) { .dl-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) {
  .dl-grid { grid-template-columns: 1fr; }
  .dl-steps { grid-template-columns: 1fr; }
}

/* ==========================================================================
   币种 / 美股详情页（K 线）
   ========================================================================== */
.card-link { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.mk-card, .stk-card { position: relative; }
.mk-card:hover .mk-name, .stk-card:hover .stk-name { color: var(--gold-2); }

.mkt-name-wrap { text-decoration: none; color: inherit; }
.mkt-name-wrap:hover .mkt-name { color: var(--gold-2); }
.coin-ico-wrap { display: inline-flex; }

.row-k {
  display: inline-block; padding: 2px 9px; border-radius: 6px;
  font-size: 11px; font-weight: 600; text-decoration: none;
  color: var(--gold-2); background: rgba(232,184,75,.1);
  border: 1px solid rgba(232,184,75,.28); white-space: nowrap;
}
.row-k:hover { background: rgba(232,184,75,.2); }

.det-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 18px; flex-wrap: wrap; margin: 18px 0 20px;
}
.det-id { display: flex; align-items: center; gap: 14px; min-width: 0; }
.det-title { font-size: 26px; font-weight: 800; letter-spacing: -.01em; line-height: 1.25; }
.det-title .det-sym { font-family: var(--mono); font-size: 14px; color: var(--txt-3); font-weight: 600; margin-left: 6px; }
.det-sub { font-size: 12px; color: var(--txt-3); margin-top: 5px; }
.det-px { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.det-price { font-family: var(--mono); font-size: 34px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.det-chg { font-family: var(--mono); font-size: 15px; font-weight: 700; padding: 3px 9px; border-radius: 6px; }
.det-chg.up { color: var(--up); background: rgba(255,77,79,.1); }
.det-chg.down { color: var(--down); background: rgba(23,201,100,.1); }
.coin-ico.lg { width: 44px; height: 44px; }
.stk-ico.lg { width: 44px; height: 44px; border-radius: 11px; }

.det-stats {
  list-style: none; margin: 0 0 22px; padding: 0;
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px;
  background: var(--line-soft); border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm); overflow: hidden;
}
.det-stats li {
  background: var(--bg-1); padding: 12px 14px;
  display: flex; flex-direction: column; gap: 4px;
}
.det-stats span { font-size: 11px; color: var(--txt-3); }
.det-stats b { font-family: var(--mono); font-size: 14.5px; font-weight: 700; }

/* ---- K 线面板 ---- */
.kline-panel {
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  padding: 14px 16px 10px; margin-bottom: 26px;
}
.kl-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.kl-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.kl-tab {
  font: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
  padding: 4px 12px; border-radius: 7px; color: var(--txt-2);
  background: rgba(255,255,255,.04); border: 1px solid var(--line);
  transition: all .16s;
}
.kl-tab:hover { color: var(--txt); border-color: rgba(232,184,75,.35); }
.kl-tab.active { color: #0A0D16; background: var(--grad-gold); border-color: transparent; }
.kl-legend { display: flex; gap: 12px; flex-wrap: wrap; font-family: var(--mono); font-size: 11.5px; color: var(--txt-2); }
.kl-wrap { position: relative; height: 380px; }
.kl-canvas { width: 100%; height: 100%; display: block; touch-action: pan-y; }
.kl-tip {
  position: absolute; top: 8px; left: 8px; z-index: 3; pointer-events: none;
  display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline;
  padding: 6px 10px; border-radius: 8px; font-family: var(--mono); font-size: 11.5px;
  background: rgba(10,13,22,.92); border: 1px solid var(--line); color: var(--txt-2);
  opacity: 0; transition: opacity .12s; max-width: 92%;
}
.kl-tip b { font-size: 13px; }
.kl-tip b.up { color: var(--up); }
.kl-tip b.down { color: var(--down); }
.kline-panel .src-note { margin: 8px 0 2px; }

.det-about { margin: 8px 0 30px; }
.det-about h2 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.det-about p { font-size: 13.5px; line-height: 1.85; color: var(--txt-2); margin-bottom: 10px; }
.det-about a { color: var(--gold-2); text-decoration: none; }
.det-about a:hover { text-decoration: underline; }

.rel-sec { margin-bottom: 30px; }
.rel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.rel-item {
  display: flex; align-items: center; gap: 9px; padding: 10px 13px;
  border-radius: var(--radius-sm); text-decoration: none; color: inherit;
  background: rgba(255,255,255,.025); border: 1px solid var(--line-soft);
  transition: border-color .18s, transform .18s;
}
.rel-item:hover { border-color: rgba(232,184,75,.35); transform: translateY(-1px); }
.rel-n { font-size: 13px; font-weight: 600; }
.rel-s { font-family: var(--mono); font-size: 11px; color: var(--txt-3); }
.rel-c { margin-left: auto; font-family: var(--mono); font-size: 12px; font-weight: 700; }
.rel-c.up { color: var(--up); } .rel-c.down { color: var(--down); }

@media (max-width: 980px) {
  .det-stats { grid-template-columns: repeat(3, 1fr); }
  .rel-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .det-title { font-size: 21px; }
  .det-price { font-size: 27px; }
  .det-stats { grid-template-columns: repeat(2, 1fr); }
  .kl-wrap { height: 300px; }
  .kl-legend { display: none; }
  .rel-grid { grid-template-columns: 1fr; }
}

/* ---- 交易所详情页 ---- */
.ex-logo-lg { width: 56px; height: 56px; border-radius: 14px; }
.ex-badge-lg {
  width: 56px; height: 56px; border-radius: 14px; flex-shrink: 0;
  display: grid; place-items: center; font-family: var(--mono);
  font-size: 20px; font-weight: 800; color: var(--txt-2);
  background: rgba(255,255,255,.05); border: 1px solid var(--line);
}
.gold-t { color: var(--gold-2); }
.trust-lg .trust-track { height: 10px; border-radius: 6px; }
.trust-lg .trust-fill { height: 10px; border-radius: 6px; }
.trust-lg .ex-note { font-size: 12px; }
.exd-trust { padding-bottom: 14px; }
.exd-trust .trust { margin: 6px 0 4px; }
.exd-quote {
  margin: 12px 0; padding: 12px 16px;
  border-left: 3px solid var(--gold-2); border-radius: 0 10px 10px 0;
  background: rgba(232,184,75,.05); color: var(--txt-2);
  font-size: 13px; line-height: 1.8;
}
.exd-quote-src { display: block; margin-top: 6px; font-size: 11px; color: var(--txt-3); }
.rel-ico { width: 24px; height: 24px; border-radius: 6px; object-fit: contain; background: #fff; padding: 2px; flex-shrink: 0; }
.rel-ico-n {
  display: inline-grid; place-items: center; width: 24px; height: 24px;
  border-radius: 6px; font-style: normal; font-family: var(--mono);
  font-size: 11px; font-weight: 700; color: var(--txt-2);
  background: rgba(255,255,255,.05); border: 1px solid var(--line); flex-shrink: 0;
}

/* ---- 搜索结果：行情优先 ---- */
.sr-sec {
  font-size: 12px; font-weight: 700; letter-spacing: .08em;
  color: var(--txt-3); margin: 22px 0 8px; padding-left: 2px;
}
.sr-sec:first-child { margin-top: 4px; }
.sr-quote {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; margin-bottom: 6px; text-decoration: none; color: inherit;
  border: 1px solid var(--line-soft); border-radius: var(--radius-sm);
  background: linear-gradient(180deg, var(--bg-2), var(--bg-1));
  transition: border-color .16s, transform .16s;
}
.sr-quote:hover { border-color: rgba(232,184,75,.4); transform: translateY(-1px); }
.sr-qico {
  width: 30px; height: 30px; border-radius: 8px; object-fit: contain;
  background: #fff; padding: 2px; flex-shrink: 0;
}
.sr-qico.sr-st { border-radius: 7px; }
.sr-qid { display: flex; flex-direction: column; min-width: 0; }
.sr-qid b { font-family: var(--mono); font-size: 13.5px; font-weight: 700; }
.sr-qid span { font-size: 11.5px; color: var(--txt-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-qpx { margin-left: auto; font-family: var(--mono); font-size: 14px; font-weight: 700; }
.sr-qpx small { font-size: 10px; color: var(--txt-3); font-weight: 400; margin-left: 3px; }
.sr-qch {
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  min-width: 72px; text-align: right;
}
.sr-qch.up { color: var(--up); } .sr-qch.down { color: var(--down); }
.sr-qgo { font-size: 11.5px; color: var(--gold-2); flex-shrink: 0; }
.sr-qrank {
  display: inline-grid; place-items: center; width: 30px; height: 30px;
  border-radius: 8px; font-family: var(--mono); font-size: 12px; font-weight: 800;
  color: var(--gold-2); background: rgba(232,184,75,.1);
  border: 1px solid rgba(232,184,75,.28); flex-shrink: 0;
}
.sr-quote.sr-ex .sr-qch { color: var(--txt-2); font-weight: 600; min-width: 90px; }
@media (max-width: 560px) {
  .sr-quote { flex-wrap: wrap; gap: 8px; padding: 9px 11px; }
  .sr-qpx { margin-left: 42px; }
  .sr-qch, .sr-qgo { font-size: 11px; }
}

/* ---- 导航下拉（资讯栏目整合）---- */
.nav-drop { position: relative; }
.drop-toggle {
  font: inherit; color: inherit; background: none; border: 0; cursor: pointer;
  padding: 0; display: inline-flex; align-items: center; gap: 4px;
  font-size: inherit; font-weight: inherit; letter-spacing: inherit;
}
.drop-toggle .caret { font-size: 9px; transition: transform .18s; }
.nav-drop.open .caret { transform: rotate(180deg); }
.drop-menu {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(6px);
  min-width: 150px; padding: 8px; z-index: 60;
  background: rgba(13,17,28,.98); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.45);
  display: flex; flex-direction: column; gap: 1px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .16s, transform .16s, visibility .16s;
}
.nav-drop.open .drop-menu, .nav-drop:hover .drop-menu {
  opacity: 1; visibility: visible; pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.drop-menu a {
  padding: 8px 12px; border-radius: 8px; white-space: nowrap;
  font-size: 13px; color: var(--txt-2); text-decoration: none;
}
.drop-menu a:hover { color: var(--gold-2); background: rgba(232,184,75,.07); }
.drop-menu a.active { color: var(--gold-2); font-weight: 600; }

/* ---- 行情/美股表整行可点 ---- */
tr[data-href] { cursor: pointer; }
tr[data-href]:hover td { background: rgba(232,184,75,.04); }

/* ---- 商务合作 ---- */
.partner-grid { margin-top: 26px; }
.partner-contact { margin: 34px 0 20px; }
.pc-box {
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  background: linear-gradient(180deg,var(--bg-2),var(--bg-1));
  margin-top: 14px; overflow: hidden;
}
.pc-item {
  display: flex; gap: 16px; padding: 14px 18px; align-items: baseline;
  border-bottom: 1px solid var(--line-soft); flex-wrap: wrap;
}
.pc-item:last-child { border-bottom: 0; }
.pc-item span { flex-shrink: 0; font-size: 12px; color: var(--txt-3); min-width: 72px; }
.pc-item b { font-size: 13.5px; color: var(--txt); font-weight: 600; line-height: 1.7; }
.pc-item a { color: var(--gold-2); text-decoration: none; }
.pc-item a:hover { text-decoration: underline; }

/* ==========================================================================
   全部美股（us-stocks）：搜索 / 板块筛选 / 排序 / 翻页
   为什么单独一套：这里是不停变化的 1500 行长表，需要收缩行高、弱化次要列，
   才能在手机上把「代码 + 价格 + 涨跌」三件事留在首屏。
   ========================================================================== */
.ua-bar {
  display: flex; gap: 10px; flex-wrap: wrap; align-items: center;
  margin: 18px 0 14px;
}
.ua-search {
  flex: 1 1 260px; min-width: 200px;
  padding: 10px 14px; font-size: 13.5px; font-family: var(--font);
  color: var(--txt); background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 10px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.ua-search::placeholder { color: var(--txt-3); }
.ua-search:focus { border-color: var(--gold-deep); box-shadow: 0 0 0 3px rgba(232,184,75,.09); }
.ua-sel {
  padding: 10px 12px; font-size: 13px; font-family: var(--font);
  color: var(--txt-1); background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 10px; outline: none; cursor: pointer;
}
.ua-sel:focus { border-color: var(--gold-deep); }

.ua-table { min-width: 860px; }
.ua-table tbody td { padding: 8px 12px; }
.ua-rank { color: var(--txt-3); font-family: var(--mono); font-size: 12px; }
.ua-sym {
  font-family: var(--mono); font-size: 12.5px; font-weight: 700;
  color: var(--gold-2); letter-spacing: .3px;
}
.ua-name { font-size: 13px; color: var(--txt); line-height: 1.45; }
.ua-en { display: block; font-size: 11px; color: var(--txt-3); margin-top: 1px; }
.ua-dim { color: var(--txt-2); font-size: 12.5px; }
.ua-focus { background: rgba(232,184,75,.025); }
.ua-focus .ua-sym::after {
  content: "·实时"; font-size: 9.5px; color: var(--gold); font-weight: 400;
  margin-left: 3px; letter-spacing: 0;
}
.ua-on {
  display: inline-block; padding: 1px 7px; border-radius: 5px;
  background: rgba(232,184,75,.12); color: var(--gold-2);
  font-size: 11px; font-weight: 600;
}
.ua-empty { text-align: center !important; color: var(--txt-3); padding: 40px 0 !important; }

.ua-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  padding: 14px 18px; border-top: 1px solid var(--line-soft);
  font-size: 12.5px; color: var(--txt-2);
}
.ua-pager { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ua-pager button {
  padding: 6px 11px; font-size: 12.5px; font-family: var(--mono);
  color: var(--txt-1); background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 7px; cursor: pointer;
  transition: color .14s, border-color .14s, background .14s;
}
.ua-pager button:hover { color: var(--gold-2); border-color: var(--gold-deep); }
.ua-pager button.on { background: var(--grad-gold); color: #14100A; border-color: transparent; font-weight: 700; }
.ua-gap { color: var(--txt-3); font-size: 12px; padding: 0 2px; }

@media (max-width: 640px) {
  .ua-bar { gap: 8px; }
  .ua-search { flex: 1 1 100%; }
  .ua-sel { flex: 1 1 46%; }
  .ua-table { min-width: 720px; font-size: 12.5px; }
  .ua-table tbody td { padding: 7px 9px; }
  .ua-en { display: none; }         /* 手机上省掉英文名，优先保证价格可读 */
  .ua-foot { justify-content: center; }
}

/* ---- 区块头移动端适配：标题不换行，辅助信息整体折到下一行 ----
   此前「美股行情」在 390px 宽度下被右侧的 状态/时间/入口链接 挤压，
   标题折成「美股行 / 情」，右侧「重点 118 只 →」被裁掉 —— 用户截图的
   「排版乱」即此。窄屏一律改成两行：标题独占一行，sec-side 换行放下。 */
@media (max-width: 760px) {
  .sec-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .sec-title { white-space: nowrap; }
  .sec-side {
    width: 100%;
    gap: 8px 14px;
    font-size: 12px;
  }
  .sec-side .sec-more { font-size: 12px; }
  .sec-side .mk-live { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* ---- 全部美股表窄屏裁列：只留 # / 代码 / 名称 / 价格 / 涨跌，
   成交量 / 市值 / 板块在手机上隐藏（数据仍在，旋转或宽屏可见），
   名称超长省略号，杜绝长英文名把表格顶成横向错位 ---- */
@media (max-width: 640px) {
  .ua-table { min-width: 360px; }
  .ua-table th:nth-child(6), .ua-table td:nth-child(6),
  .ua-table th:nth-child(7), .ua-table td:nth-child(7),
  .ua-table th:nth-child(8), .ua-table td:nth-child(8) { display: none; }
  .ua-name {
    white-space: nowrap; max-width: 150px;
    overflow: hidden; text-overflow: ellipsis;
  }
}
