/* ==========================================================================
   飞翔科技频道 — 前台样式
   ========================================================================== */

/* ── 顶部渐变线 ─────────────────────────────────────── */
.topline {
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent));
}

/* ── 行情跑马灯 ─────────────────────────────────────── */
.ticker {
  background: var(--bg-sunken);
  border-bottom: 1px solid var(--border-plain);
  overflow: hidden;
  position: relative;
  height: 38px;
}
.ticker__track {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 28px;
  white-space: nowrap;
  animation: marquee 60s linear infinite;
  will-change: transform;
}
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}
.ticker__item img { width: 16px; height: 16px; border-radius: 50%; }
.ticker__sym { font-weight: 600; }
.ticker__price { color: var(--text-dim); }

/* ── 页头 ───────────────────────────────────────────── */
.header {
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border-plain);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 58px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .5px;
  flex-shrink: 0;
}
.logo__mark {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid; place-items: center;
  color: #06202B; font-size: 15px; font-weight: 800;
}
.nav { display: flex; gap: 22px; flex: 1; }
.nav a {
  color: var(--text-dim);
  font-size: 14.5px;
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav a:hover, .nav a.active { color: var(--text); border-bottom-color: var(--accent); }

.header__tools { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.searchbox {
  display: flex; align-items: center;
  background: var(--bg); border: 1px solid var(--border-plain);
  border-radius: 99px; padding: 5px 12px; gap: 7px;
}
.searchbox:focus-within { border-color: var(--border-strong); }
.searchbox input {
  background: none; border: 0; outline: 0;
  color: var(--text); font: inherit; font-size: 13px; width: 130px;
}
.searchbox input::placeholder { color: var(--text-mute); }

.cur-select {
  background: var(--bg); color: var(--text-dim);
  border: 1px solid var(--border-plain); border-radius: var(--radius-sm);
  padding: 5px 8px; font: inherit; font-size: 12.5px; cursor: pointer;
}

/* ── 通用版块 ───────────────────────────────────────── */
.main { padding: 22px 0 48px; }
.section { margin-bottom: 28px; }
.section__head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 14px; gap: 12px;
}
.section__title {
  font-size: 17px; font-weight: 700; margin: 0;
  display: flex; align-items: center; gap: 9px;
}
.section__title::before {
  content: ''; width: 3px; height: 15px; border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}
.section__more { font-size: 13px; color: var(--text-dim); }

/* ── 全局统计条 ─────────────────────────────────────── */
.globalbar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--border-plain);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 22px;
}
.globalbar__cell { background: var(--bg-elev); padding: 13px 16px; }
.globalbar__label { font-size: 12px; color: var(--text-mute); margin-bottom: 4px; }
.globalbar__value { font-size: 17px; font-weight: 600; }
.globalbar__sub { font-size: 12px; margin-top: 2px; }
.dom-bar {
  height: 3px; background: rgba(255,255,255,.08);
  border-radius: 2px; margin-top: 6px; overflow: hidden;
}
.dom-bar i {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

/* ── 排行榜三栏 ─────────────────────────────────────── */
.boards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.board { padding: 14px 16px; }
.board__title {
  font-size: 14px; font-weight: 600; margin: 0 0 10px;
  display: flex; align-items: center; gap: 6px;
}
.board__row {
  display: grid;
  grid-template-columns: 18px 1fr auto auto;
  gap: 9px; align-items: center;
  padding: 6px 0; font-size: 13px;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.board__row:last-child { border-bottom: 0; }
.board__idx { color: var(--text-mute); font-size: 12px; }
.board__coin { display: flex; align-items: center; gap: 6px; min-width: 0; }
.board__coin img { width: 18px; height: 18px; border-radius: 50%; }
.board__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board__price { color: var(--text-dim); font-size: 12.5px; }
.board__chg { min-width: 62px; text-align: right; }

/* ── 行情表 ─────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table.market { width: 100%; border-collapse: collapse; background: var(--bg-elev); min-width: 900px; }
table.market th {
  position: sticky; top: 0; z-index: 2;
  background: var(--bg-sunken);
  color: var(--text-dim);
  font-size: 12.5px; font-weight: 500;
  text-align: right; padding: 11px 12px;
  white-space: nowrap;
  border-bottom: 1px solid var(--border-plain);
}
table.market th:nth-child(1), table.market th:nth-child(2) { text-align: left; }
table.market th.sortable { cursor: pointer; user-select: none; }
table.market th.sortable:hover { color: var(--text); }
table.market th .arrow { opacity: .35; margin-left: 3px; font-size: 10px; }
table.market th.active { color: var(--accent); }
table.market th.active .arrow { opacity: 1; }
table.market td {
  padding: 11px 12px; text-align: right;
  border-bottom: 1px solid rgba(255,255,255,.04);
  white-space: nowrap;
}
table.market td:nth-child(1), table.market td:nth-child(2) { text-align: left; }
table.market tbody tr:hover { background: var(--bg-hover); }
table.market tbody tr:last-child td { border-bottom: 0; }

.coin-cell { display: flex; align-items: center; gap: 10px; }
.coin-cell img { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; }
.coin-cell__ph {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 700; color: #06202B;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.coin-cell__name { font-weight: 600; }
.coin-cell__sym { color: var(--text-mute); font-size: 12px; margin-left: 5px; }

.pct {
  display: inline-block; padding: 2px 7px;
  border-radius: var(--radius-sm); font-size: 12.5px;
}

.supply-bar {
  height: 3px; background: rgba(255,255,255,.08);
  border-radius: 2px; margin-top: 4px; overflow: hidden;
}
.supply-bar i { display: block; height: 100%; background: var(--accent); opacity: .65; }

/* ── 文章卡片 ───────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.layout-2col { display: grid; grid-template-columns: 1fr 320px; gap: var(--gap); align-items: start; }

.post {
  display: flex; gap: 14px; padding: 14px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.post:last-child { border-bottom: 0; }
.post__thumb {
  width: 150px; height: 96px; border-radius: var(--radius-sm);
  object-fit: cover; flex-shrink: 0; background: var(--bg-sunken);
}
.post__body { min-width: 0; flex: 1; }
.post__title {
  font-size: 15.5px; font-weight: 600; margin: 0 0 6px;
  line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.post__summary {
  color: var(--text-dim); font-size: 13px; margin: 0 0 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.post__meta { display: flex; gap: 12px; font-size: 12px; color: var(--text-mute); }
.post__cat { color: var(--accent); }

/* ── 快讯流 ─────────────────────────────────────────── */
.flash-list { padding: 4px 16px 12px; }
.flash-item {
  position: relative; padding: 11px 0 11px 18px;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.flash-item:last-child { border-bottom: 0; }
.flash-item::before {
  content: ''; position: absolute; left: 0; top: 17px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 3px rgba(45,212,191,.15);
}
.flash-item.is-important::before { background: var(--down); box-shadow: 0 0 0 3px rgba(234,57,67,.15); }
.flash-item::after {
  content: ''; position: absolute; left: 3px; top: 26px; bottom: -11px;
  width: 1px; background: rgba(255,255,255,.07);
}
.flash-item:last-child::after { display: none; }
.flash-time { font-size: 12px; color: var(--text-mute); margin-bottom: 3px; }
.flash-title { font-size: 13.5px; line-height: 1.6; margin: 0 0 4px; }
.flash-item.is-important .flash-title { color: #FFD9DB; font-weight: 600; }
.flash-text {
  font-size: 12.5px; color: var(--text-dim); margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.flash-tags { display: flex; gap: 5px; margin-top: 5px; flex-wrap: wrap; }
.coin-tag {
  font-size: 11px; padding: 1px 6px; border-radius: 4px;
  background: rgba(45,212,191,.1); color: var(--accent);
}

/* ── 提示条 ─────────────────────────────────────────── */
.notice {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: var(--radius-sm);
  background: var(--warn-bg); color: var(--warn);
  font-size: 13px; margin-bottom: 14px;
  border: 1px solid rgba(240,185,11,.2);
}

/* ── 分页 ───────────────────────────────────────────── */
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 22px; flex-wrap: wrap; }
.pager a, .pager span {
  min-width: 34px; height: 34px; padding: 0 10px;
  display: grid; place-items: center;
  border-radius: var(--radius-sm);
  background: var(--bg-elev); border: 1px solid var(--border-plain);
  font-size: 13px; color: var(--text-dim);
}
.pager a:hover { border-color: var(--border-strong); color: var(--text); }
.pager .current { background: var(--accent); border-color: var(--accent); color: #06202B; font-weight: 600; }
.pager .disabled { opacity: .4; }

/* ── 页脚 ───────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border-plain);
  background: var(--bg-sunken);
  padding: 26px 0;
  color: var(--text-mute);
  font-size: 12.5px;
}
.footer__inner { display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.footer a { color: var(--text-dim); }

/* ── 空状态 ─────────────────────────────────────────── */
.empty { padding: 44px 20px; text-align: center; color: var(--text-mute); }
.empty__icon { font-size: 30px; opacity: .4; margin-bottom: 8px; }

/* ── 响应式 ─────────────────────────────────────────── */
@media (max-width: 1100px) {
  .layout-2col { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .boards { grid-template-columns: 1fr; }
  .nav { display: none; }
  .searchbox input { width: 96px; }
}
@media (max-width: 640px) {
  .grid-3 { grid-template-columns: 1fr; }
  .post__thumb { width: 104px; height: 70px; }
  .post__title { font-size: 14.5px; }
  .globalbar { grid-template-columns: repeat(2, 1fr); }
  .header__inner { height: 52px; gap: 14px; }
}

/* 币种单元格整体可点击 */
a.coin-cell { color: inherit; }
a.coin-cell:hover .coin-cell__name { color: var(--accent); }
.coin-cell__text { min-width: 0; }
.board__coin a { display: flex; align-items: center; gap: 6px; min-width: 0; color: inherit; }
.board__coin a:hover .board__name { color: var(--accent); }

/* ── 首页头条区 ─────────────────────────────────────── */
.hero { display: grid; grid-template-columns: 1.35fr 1fr; gap: var(--gap); }
.hero__main { overflow: hidden; }
.hero__img { width: 100%; height: 264px; object-fit: cover; display: block; }
.hero__img--ph { background: linear-gradient(135deg, var(--bg-hover), var(--bg-sunken)); }
.hero__body { padding: 15px 18px 18px; }
.hero__title { font-size: 20px; line-height: 1.45; margin: 7px 0 8px; font-weight: 700; }
.hero__main:hover .hero__title { color: var(--accent); }
.hero__summary {
  color: var(--text-dim); font-size: 13.5px; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hero__side { display: flex; flex-direction: column; gap: 10px; }
.hero__item {
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; flex: 1;
}
.hero__item a { display: flex; gap: 11px; height: 100%; align-items: center; padding: 9px 12px; }
.hero__item img { width: 76px; height: 52px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.hero__item h3 {
  font-size: 14px; margin: 0 0 4px; line-height: 1.5; font-weight: 600;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hero__item:hover { border-color: var(--border-strong); }
.hero__item:hover h3 { color: var(--accent); }

.post--compact { padding: 9px 14px; }
.post--compact .post__thumb { width: 92px; height: 60px; }
.post--compact .post__title { font-size: 14.5px; -webkit-line-clamp: 1; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero__img { height: 200px; }
  .hero__title { font-size: 17px; }
}

/* ── 文章内嵌行情短代码 ─────────────────────────────── */
.coin-inline {
  display: inline-flex; align-items: center; gap: .35em;
  padding: .08em .45em; margin: 0 .15em;
  border-radius: var(--radius-sm);
  background: rgba(45,212,191,.08);
  border: 1px solid var(--border);
  vertical-align: baseline; white-space: nowrap;
  font-size: .94em; color: inherit;
}
.coin-inline:hover { border-color: var(--border-strong); }
.coin-inline img { width: 15px; height: 15px; border-radius: 50%; }
.coin-inline__sym { font-weight: 700; }
.coin-inline__price { color: var(--text-dim); }
.coin-inline.is-up .coin-inline__chg { color: var(--up); }
.coin-inline.is-down .coin-inline__chg { color: var(--down); }
.coin-inline.is-flat .coin-inline__chg { color: var(--flat); }
.coin-inline.is-unknown { color: var(--text-mute); border-style: dashed; }

.coin-card {
  max-width: 440px; margin: 1.3em 0;
  background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
}
.coin-card table { width: 100%; border-collapse: collapse; }
.coin-card th {
  font-size: 12px; font-weight: 500; color: var(--text-mute);
  padding: 9px 13px; text-align: right; background: var(--bg-sunken);
}
.coin-card th:first-child { text-align: left; }
.coin-card td {
  padding: 9px 13px; text-align: right; font-size: 13.5px;
  border-top: 1px solid rgba(255,255,255,.04);
}
.coin-card td:first-child { text-align: left; }
.coin-card td a { display: flex; align-items: center; gap: 7px; }
.coin-card td img { border-radius: 50%; }
.coin-card td span { font-weight: 600; }
.coin-card td i { color: var(--text-mute); font-style: normal; font-size: 12px; }
.coin-card__foot {
  padding: 7px 13px; font-size: 11.5px; color: var(--text-mute);
  background: var(--bg-sunken); border-top: 1px solid rgba(255,255,255,.04);
}
.coin-card__foot a { color: var(--accent); }
@media (max-width: 640px) { .coin-card { max-width: 100%; } }

/* ── 页面标题 ───────────────────────────────────────── */
.page-title { font-size: 22px; font-weight: 700; margin: 0 0 4px; }
.page-sub { color: var(--text-dim); font-size: 13px; margin: 0; }

/* ── 面包屑 ─────────────────────────────────────────── */
.crumb { font-size: 13px; color: var(--text-mute); margin-bottom: 12px; }
.crumb a { color: var(--text-dim); }
.crumb a:hover { color: var(--accent); }
.crumb span { margin: 0 7px; opacity: .6; }

/* ── 文章正文 ───────────────────────────────────────── */
.article { padding: 26px 30px 30px; }
.article__title { font-size: 26px; line-height: 1.4; margin: 0 0 14px; font-weight: 700; }
.article__meta {
  display: flex; flex-wrap: wrap; gap: 14px;
  font-size: 12.5px; color: var(--text-mute);
  padding-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,.06);
}
.article__meta a { color: var(--text-dim); }
.article__lead {
  margin: 16px 0 0; padding: 13px 16px;
  background: var(--bg-sunken); border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-dim); font-size: 14px; line-height: 1.75;
}
.article__body { margin-top: 20px; font-size: 15.5px; line-height: 1.95; }
.article__body p { margin: 0 0 1.1em; }
.article__body h2 { font-size: 19px; margin: 1.6em 0 .7em; font-weight: 700; }
.article__body h3 { font-size: 16.5px; margin: 1.4em 0 .6em; font-weight: 600; }
.article__body img { border-radius: var(--radius-sm); margin: 1.1em auto; }
.article__body a { color: var(--link); text-decoration: underline; text-underline-offset: 3px; }
.article__body ul, .article__body ol { padding-left: 1.6em; margin: 0 0 1.1em; }
.article__body li { margin-bottom: .45em; }
.article__body blockquote {
  margin: 1.2em 0; padding: 12px 18px;
  background: var(--bg-sunken); border-left: 3px solid var(--border-strong);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--text-dim);
}
.article__body pre {
  background: var(--bg-sunken); padding: 14px 16px; border-radius: var(--radius-sm);
  overflow-x: auto; font-family: var(--font-num); font-size: 13px; line-height: 1.7;
}
.article__body code {
  background: rgba(255,255,255,.07); padding: 2px 6px; border-radius: 4px;
  font-family: var(--font-num); font-size: .9em;
}
.article__body pre code { background: none; padding: 0; }
.article__body table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 14px; }
.article__body th, .article__body td { padding: 9px 12px; border: 1px solid var(--border-plain); }
.article__body th { background: var(--bg-sunken); }

.article__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.article__tags a {
  font-size: 12.5px; padding: 4px 11px; border-radius: 99px;
  background: rgba(45,212,191,.09); color: var(--accent); border: 1px solid var(--border);
}
.article__tags a:hover { border-color: var(--border-strong); }

.article__nav {
  display: grid; grid-template-columns: 1fr 1fr; gap: 18px;
  margin-top: 26px; padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.06); font-size: 13.5px;
}
.article__nav span { display: block; margin-bottom: 3px; }
.article__nav a { color: var(--text-dim); }
.article__nav a:hover { color: var(--accent); }

/* ── 大搜索框 ───────────────────────────────────────── */
.search-big { display: flex; gap: 10px; margin-bottom: 22px; }
.search-big input {
  flex: 1; background: var(--bg-elev); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 11px 16px; color: var(--text);
  font: inherit; font-size: 14.5px; outline: 0;
}
.search-big input:focus { border-color: var(--border-strong); }
.search-big button {
  padding: 0 24px; border: 0; border-radius: var(--radius); cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #06202B; font: inherit; font-size: 14.5px; font-weight: 600;
}

@media (max-width: 640px) {
  .article { padding: 20px 17px 24px; }
  .article__title { font-size: 20px; }
  .article__body { font-size: 15px; }
  .article__nav { grid-template-columns: 1fr; }
  .logo__text { display: none; }
}

/* ── 文章点赞 ───────────────────────────────────────── */
.article__like { text-align: center; margin: 32px 0 6px; }
.like-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 30px; border-radius: 99px; cursor: pointer;
  background: var(--bg-sunken); border: 1px solid var(--border);
  color: var(--text); font: inherit; font-size: 14.5px;
  transition: transform .12s, border-color .15s;
}
.like-btn:hover { border-color: var(--border-strong); transform: translateY(-1px); }
.like-btn:active { transform: translateY(0); }
.like-btn.is-liked {
  background: rgba(22,199,132,.12); border-color: rgba(22,199,132,.34); color: var(--up);
}
.like-btn .like-icon { font-size: 17px; }
.like-btn .like-count { font-family: var(--font-num); font-weight: 600; }
.like-btn:disabled { opacity: .6; cursor: default; }

/* ── 评论区 ─────────────────────────────────────────── */
.comment-box { padding: 18px 20px; margin-bottom: 16px; }
.comment-form textarea {
  width: 100%; background: var(--bg-sunken); border: 1px solid var(--border-plain);
  border-radius: var(--radius-sm); padding: 12px 14px; color: var(--text);
  font: inherit; font-size: 14px; line-height: 1.7; resize: vertical; outline: 0;
}
.comment-form textarea:focus { border-color: var(--border-strong); }
.comment-form.is-replying textarea { border-color: var(--accent); }
.comment-form__row {
  display: flex; align-items: center; gap: 10px; margin-top: 11px; flex-wrap: wrap;
}
.comment-form__row input {
  background: var(--bg-sunken); border: 1px solid var(--border-plain);
  border-radius: var(--radius-sm); padding: 8px 12px; color: var(--text);
  font: inherit; font-size: 13px; outline: 0; width: 160px;
}
.comment-form__row input:focus { border-color: var(--border-strong); }
.comment-form__count { color: var(--text-mute); font-size: 12px; margin-left: auto; font-family: var(--font-num); }
.comment-form__row button {
  padding: 8px 22px; border: 0; border-radius: var(--radius-sm); cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #06202B; font: inherit; font-size: 13.5px; font-weight: 600;
}
.comment-form__row button:disabled { opacity: .6; cursor: default; }
.comment-form__tip { margin: 9px 0 0; font-size: 12.5px; color: var(--text-mute); }
.comment-form__tip.is-error { color: var(--down); }
.comment-form__tip.is-ok { color: var(--up); }

.comment-list { padding: 4px 20px 12px; }
.comment { display: flex; gap: 12px; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.05); }
.comment:last-child { border-bottom: 0; }
.comment__avatar {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 15px;
}
.comment__avatar--sm { width: 28px; height: 28px; font-size: 13px; }
.comment__body { flex: 1; min-width: 0; }
.comment__head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 5px; }
.comment__name { font-weight: 600; font-size: 13.5px; }
.comment__badge {
  font-size: 11px; padding: 1px 7px; border-radius: 4px;
  background: rgba(45,212,191,.14); color: var(--accent);
}
.comment__time { color: var(--text-mute); font-size: 12px; }
.comment__text { margin: 0; font-size: 14px; line-height: 1.75; word-break: break-word; }
.comment__actions { display: flex; gap: 14px; margin-top: 7px; }
.comment__actions button {
  background: none; border: 0; padding: 0; cursor: pointer;
  color: var(--text-mute); font: inherit; font-size: 12.5px;
}
.comment__actions button:hover { color: var(--accent); }
.comment__actions button.is-liked { color: var(--up); }
.comment__replies {
  margin-top: 12px; padding-left: 14px;
  border-left: 2px solid rgba(255,255,255,.06);
}
.comment--reply { padding: 10px 0; border-bottom: 0; }

/* ── 排行榜表格 ─────────────────────────────────────── */
.rank-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--gap); }
.rank-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.rank-table th {
  font-size: 12px; font-weight: 500; color: var(--text-mute);
  padding: 9px 14px; text-align: right; border-bottom: 1px solid var(--border-plain);
}
.rank-table th:nth-child(1), .rank-table th:nth-child(2) { text-align: left; }
.rank-table td { padding: 9px 14px; text-align: right; border-bottom: 1px solid rgba(255,255,255,.04); }
.rank-table td:nth-child(1), .rank-table td:nth-child(2) { text-align: left; }
.rank-table tr:last-child td { border-bottom: 0; }
.rank-table tbody tr:hover { background: var(--bg-hover); }
.rank-ex { display: flex; align-items: center; gap: 8px; }
.rank-ex img { border-radius: 50%; }
.rank-company { font-weight: 500; }
.rank-flag { font-style: normal; color: var(--text-mute); font-size: 11.5px; margin-left: 6px; }
.rank-title { max-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-summary {
  padding: 11px 14px; background: var(--bg-sunken);
  font-size: 12.5px; color: var(--text-dim); border-bottom: 1px solid var(--border-plain);
}
.score {
  display: inline-block; min-width: 24px; padding: 1px 7px; border-radius: 4px;
  font-family: var(--font-num); font-size: 12px; font-weight: 600;
}
.score--10, .score--9 { background: var(--up-bg); color: var(--up); }
.score--8, .score--7 { background: rgba(45,212,191,.12); color: var(--accent); }
.score--6, .score--5 { background: var(--warn-bg); color: var(--warn); }

.tab-switch { display: flex; gap: 6px; }
.tab-switch a {
  padding: 5px 15px; border-radius: 99px; font-size: 13px;
  background: var(--bg-elev); border: 1px solid var(--border-plain); color: var(--text-dim);
}
.tab-switch a.active {
  background: var(--accent); border-color: var(--accent); color: #06202B; font-weight: 600;
}

@media (max-width: 900px) {
  .rank-grid { grid-template-columns: 1fr; }
  .comment-form__row input { width: 100%; }
  .comment-form__count { margin-left: 0; }
}

/* ── 交易所详情 ─────────────────────────────────────── */
.ex-hero { padding: 24px 26px; }
.ex-hero__top { display: flex; gap: 18px; align-items: flex-start; }
.ex-hero__logo { width: 64px; height: 64px; border-radius: 14px; flex-shrink: 0; }
.ex-hero__logo--ph {
  display: grid; place-items: center; font-size: 26px; font-weight: 800; color: #06202B;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.ex-hero__meta { flex: 1; min-width: 0; }
.ex-hero__name { font-size: 23px; margin: 0 0 7px; font-weight: 700; }
.ex-hero__name small { font-size: 14px; color: var(--text-mute); font-weight: 400; margin-left: 9px; }
.ex-hero__desc { color: var(--text-dim); font-size: 13.5px; margin: 0 0 11px; line-height: 1.7; }
.ex-hero__stats { display: flex; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--text-mute); }
.ex-hero__stats b { color: var(--text); margin-left: 5px; }
.ex-hero__actions { display: flex; gap: 11px; margin-top: 18px; flex-wrap: wrap; }
.btn-primary, .btn-ghost {
  padding: 9px 26px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 600;
}
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #06202B; }
.btn-ghost { background: var(--bg-sunken); border: 1px solid var(--border); color: var(--text-dim); }
.btn-ghost:hover { border-color: var(--border-strong); color: var(--text); }
.ex-promo {
  margin-top: 16px; padding: 11px 15px; border-radius: var(--radius-sm);
  background: var(--warn-bg); border: 1px solid rgba(240,185,11,.22);
  color: var(--warn); font-size: 13.5px;
}
.info-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.info-table th {
  width: 140px; padding: 11px 16px; text-align: left; font-weight: 400;
  color: var(--text-mute); border-bottom: 1px solid rgba(255,255,255,.04);
}
.info-table td { padding: 11px 16px; border-bottom: 1px solid rgba(255,255,255,.04); }
.info-table tr:last-child th, .info-table tr:last-child td { border-bottom: 0; }
.ext-link { color: var(--link); font-size: 12.5px; }

@media (max-width: 640px) {
  .ex-hero { padding: 18px; }
  .ex-hero__top { flex-direction: column; }
  .ex-hero__name { font-size: 19px; }
}

/* ── 快讯流 ─────────────────────────────────────────── */
.flash-date {
  display: flex; align-items: baseline; gap: 10px;
  margin: 20px 0 10px; font-size: 15px; font-weight: 600;
}
.flash-date::before {
  content: ''; width: 3px; height: 14px; border-radius: 2px;
  background: linear-gradient(180deg, var(--accent), var(--accent-2));
}
.flash-day { padding: 4px 20px; }
.flash-row {
  display: flex; gap: 16px; padding: 15px 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.flash-row:last-child { border-bottom: 0; }
.flash-row__time {
  color: var(--text-mute); font-size: 12.5px; flex-shrink: 0;
  width: 42px; padding-top: 2px;
}
.flash-row__body { flex: 1; min-width: 0; }
.flash-row__title { font-size: 15px; font-weight: 600; line-height: 1.6; margin: 0 0 6px; }
.flash-row.is-important .flash-row__title { color: #FFD9DB; }
.flash-badge {
  display: inline-block; font-size: 11px; padding: 1px 7px; border-radius: 4px;
  background: var(--down-bg); color: var(--down); margin-right: 7px; vertical-align: 2px;
}
.flash-row__text {
  margin: 0 0 8px; font-size: 13.5px; line-height: 1.75; color: var(--text-dim);
}
.flash-row__foot {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12px;
}
@media (max-width: 640px) {
  .flash-day { padding: 4px 15px; }
  .flash-row { gap: 11px; }
  .flash-row__time { width: 38px; }
  .flash-row__title { font-size: 14.5px; }
}

/* ── 币种详情页 ─────────────────────────────────────── */
.coin-hero { padding: 22px 26px; }
.coin-hero__top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.coin-hero__logo { width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0; }
.coin-hero__logo--ph {
  display: grid; place-items: center; font-size: 22px; font-weight: 800; color: #06202B;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.coin-hero__name { font-size: 24px; margin: 0 0 6px; font-weight: 700; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.coin-hero__sym { font-size: 15px; color: var(--text-mute); font-weight: 500; }
.coin-hero__rank {
  font-size: 12px; padding: 2px 9px; border-radius: 99px; font-weight: 600;
  background: rgba(45,212,191,.13); color: var(--accent);
}
.coin-hero__tags { display: flex; gap: 6px; flex-wrap: wrap; }
.coin-hero__price { margin-left: auto; text-align: right; }
.coin-hero__last { font-size: 30px; font-weight: 700; line-height: 1.2; }
.coin-hero__chg { font-size: 15px; margin-top: 3px; }

.metric-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
  gap: 1px; background: var(--border-plain);
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; margin-top: 16px;
}
.metric { background: var(--bg-elev); padding: 13px 16px; }
.metric__label { font-size: 12px; color: var(--text-mute); margin-bottom: 5px; }
.metric__value { font-size: 15.5px; font-weight: 600; }

.period-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 1px; background: var(--border-plain); overflow: hidden;
}
.period { background: var(--bg-elev); padding: 14px 16px; text-align: center; }
.period__label { font-size: 12px; color: var(--text-mute); margin-bottom: 5px; }
.period__value { font-size: 16px; font-weight: 600; }

#kline-chart { position: relative; }
#kline-chart.is-loading::after {
  content: '加载中…'; position: absolute; inset: 0;
  display: grid; place-items: center; color: var(--text-mute); font-size: 13px;
}

.timeline { position: relative; padding-left: 20px; }
.timeline::before {
  content: ''; position: absolute; left: 4px; top: 6px; bottom: 6px;
  width: 1px; background: rgba(255,255,255,.08);
}
.timeline__item { position: relative; padding: 0 0 20px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: ''; position: absolute; left: -20px; top: 6px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--bg-elev); border: 2px solid var(--border-strong);
}
.timeline__item.is-major::before { background: var(--accent); border-color: var(--accent); }
.timeline__date { font-size: 12.5px; color: var(--accent); margin-bottom: 4px; font-family: var(--font-num); }
.timeline__body h3 { font-size: 14.5px; margin: 0 0 5px; font-weight: 600; }
.timeline__body p { margin: 0; font-size: 13px; color: var(--text-dim); line-height: 1.75; }

.investor-list { display: flex; flex-wrap: wrap; gap: 9px; }
.investor {
  padding: 6px 13px; border-radius: var(--radius-sm); font-size: 13px;
  background: var(--bg-sunken); border: 1px solid var(--border-plain);
}
.investor i { font-style: normal; color: var(--text-mute); font-size: 11.5px; margin-left: 6px; }

@media (max-width: 640px) {
  .coin-hero { padding: 17px; }
  .coin-hero__price { margin-left: 0; text-align: left; width: 100%; margin-top: 10px; }
  .coin-hero__last { font-size: 25px; }
  .coin-hero__name { font-size: 20px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 视觉隐藏但保留给屏幕阅读器与搜索引擎 */
.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;
}

/* ── 嵌入组件生成器 ─────────────────────────────────── */
.embed-builder { display: grid; grid-template-columns: 1fr 400px; gap: 18px; align-items: start; }
.embed-types { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.embed-type {
  display: block; padding: 12px 14px; cursor: pointer;
  background: var(--bg-sunken); border: 1px solid var(--border-plain);
  border-radius: var(--radius-sm);
}
.embed-type input { display: none; }
.embed-type.active { border-color: var(--accent); background: rgba(45,212,191,.07); }
.embed-type strong { display: block; font-size: 14px; margin-bottom: 3px; }
.embed-type span { font-size: 12px; color: var(--text-mute); line-height: 1.6; }
.embed-coins { display: flex; flex-wrap: wrap; gap: 7px; max-height: 190px; overflow-y: auto; }
.embed-coin {
  display: inline-flex; align-items: center; gap: 5px; cursor: pointer;
  padding: 5px 11px; border-radius: 99px; font-size: 12.5px;
  background: var(--bg-sunken); border: 1px solid var(--border-plain);
}
.embed-coin input { display: none; }
.embed-coin img { border-radius: 50%; }
.embed-coin.active { border-color: var(--accent); background: rgba(45,212,191,.1); color: var(--accent); }
.embed-preview {
  min-height: 90px; padding: 18px; border-radius: var(--radius-sm);
  background: var(--bg-sunken); display: flex; align-items: center; justify-content: center;
}
.embed-code {
  background: var(--bg-sunken); padding: 14px; border-radius: var(--radius-sm);
  font-family: var(--font-num); font-size: 12px; line-height: 1.75;
  white-space: pre-wrap; word-break: break-all; color: var(--text-dim); margin: 0;
}
@media (max-width: 1000px) {
  .embed-builder { grid-template-columns: 1fr; }
  .embed-types { grid-template-columns: 1fr; }
}
