/* ===================================================================
   外汇导航 — 主样式表
   =================================================================== */

:root {
  --brand: #1a56db;
  --brand-d: #1e40af;
  --brand-l: #eef4ff;
  --gold: #c8961e;
  --gold-l: #fdf6e3;
  --ink: #101828;
  --ink-2: #344054;
  --ink-3: #667085;
  --ink-4: #98a2b3;
  --line: #e7eaf0;
  --line-2: #f0f2f6;
  --bg: #f5f7fb;
  --card: #fff;
  --up: #d92d20;
  --down: #079455;
  --r: 10px;
  --r-lg: 14px;
  --sh: 0 1px 2px rgba(16, 24, 40, .05);
  --sh-2: 0 4px 16px rgba(16, 24, 40, .08);
  --maxw: 1240px;
  color-scheme: light;
}

/* 深色模式：变量覆盖（由 <html data-theme="dark"> 控制） */
[data-theme="dark"] {
  --brand: #4d82f3;
  --brand-d: #6e9bf7;
  --brand-l: rgba(77, 130, 243, .17);
  --gold: #d9a92c;
  --gold-l: rgba(217, 169, 44, .14);
  --ink: #e7ecf5;
  --ink-2: #b6c2d6;
  --ink-3: #8b98ad;
  --ink-4: #6c7a90;
  --line: #283349;
  --line-2: #1f2839;
  --bg: #0d1220;
  --card: #161d2e;
  --up: #f97066;
  --down: #32d583;
  --sh: 0 1px 2px rgba(0, 0, 0, .45);
  --sh-2: 0 4px 16px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand); }
img { max-width: 100%; border: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; color: var(--ink); }
ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
button { font-family: inherit; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 16px; }
.main { min-height: 60vh; padding-bottom: 48px; }

/* ---------------------------------------------------------- 头部 */
.hd {
  background: linear-gradient(180deg, #16233f 0%, #1c2f52 100%);
  color: #fff;
  position: relative;
  z-index: 50;
}

.hd-in {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.logo { display: flex; align-items: center; gap: 10px; flex: none; }
.logo:hover { color: #fff; }

.logo-mark {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--gold), #e8b83f);
  color: #16233f;
  font-weight: 800;
  font-size: 19px;
  flex: none;
}

.logo-txt { display: flex; flex-direction: column; line-height: 1.25; }
.logo-txt b { font-size: 17px; color: #fff; letter-spacing: .3px; }
.logo-txt i { font-style: normal; font-size: 11px; color: #93a4c4; }

.hd-search {
  flex: 1;
  max-width: 520px;
  display: flex;
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  overflow: hidden;
  transition: .18s;
}

.hd-search:focus-within {
  background: #fff;
  border-color: #fff;
  box-shadow: 0 0 0 4px rgba(200, 150, 30, .22);
}

.hd-search input {
  flex: 1;
  border: 0; outline: 0;
  background: transparent;
  padding: 10px 18px;
  color: #fff;
  font-size: 13.5px;
}

.hd-search input::placeholder { color: #8fa1c2; }
.hd-search:focus-within input { color: var(--ink); }
.hd-search:focus-within input::placeholder { color: var(--ink-4); }

.hd-search button {
  border: 0;
  background: transparent;
  color: #a9b8d6;
  padding: 0 18px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.hd-search:focus-within button { color: var(--brand); }

.hd-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: transparent;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.hd-toggle span { width: 20px; height: 2px; background: #cbd5e1; border-radius: 2px; }

/* 深色模式切换 */
.hd-theme {
  flex: none;
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: #cdd8ec;
  cursor: pointer;
  transition: .15s;
}
.hd-theme:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.hd-theme svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[data-theme="dark"] .ti-moon { display: none; }
:root:not([data-theme="dark"]) .ti-sun { display: none; }

/* 导航条 */
.hd-nav { border-top: 1px solid rgba(255, 255, 255, .09); }
.hd-nav-in { display: flex; align-items: center; gap: 2px; position: relative; }

.nav-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 11px 15px;
  font-size: 14.5px;
  color: #cdd8ec;
  border-radius: 0;
  white-space: nowrap;
  transition: .15s;
}

.nav-item:hover, .nav-item.on { color: #fff; background: rgba(255, 255, 255, .08); }

.caret {
  width: 0; height: 0;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 4px solid currentColor;
  opacity: .7;
}

.nav-drop { position: static; }

.drop-panel {
  position: absolute;
  left: 0; right: 0; top: 100%;
  background: var(--card);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  box-shadow: var(--sh-2);
  padding: 22px 24px;
  display: none;
  z-index: 60;
}

.nav-drop:hover .drop-panel { display: block; }

.drop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 16px 24px;
}

.drop-col-hd {
  display: block;
  font-weight: 600;
  color: var(--ink);
  font-size: 14px;
  padding-bottom: 7px;
  margin-bottom: 7px;
  border-bottom: 1px solid var(--line);
}
.drop-col-hd:hover { color: var(--brand); }

.drop-col-a {
  display: block;
  font-size: 13px;
  color: var(--ink-3);
  padding: 3px 0;
}
.drop-col-a:hover { color: var(--brand); padding-left: 3px; transition: .15s; }

/* ---------------------------------------------------------- 提示条 */
.flash-wrap { margin-top: 16px; }
.flash {
  padding: 11px 16px;
  border-radius: var(--r);
  font-size: 13.5px;
  border: 1px solid;
}
.flash-success { background: #ecfdf3; border-color: #a6f4c5; color: #054f31; }
.flash-error   { background: #fef3f2; border-color: #fecdca; color: #912018; }
.flash-info    { background: var(--brand-l); border-color: #c7d7fe; color: var(--brand-d); }

/* ---------------------------------------------------------- 通用板块 */
.sec { margin-top: 26px; }

.sec-hd {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}

.sec-hd h2 {
  font-size: 18px;
  position: relative;
  padding-left: 12px;
}

.sec-hd h2::before {
  content: '';
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 4px; height: 16px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--gold), #e8b83f);
}

.sec-hd .sec-sub { font-size: 12.5px; color: var(--ink-4); }
.sec-hd .sec-more { margin-left: auto; font-size: 13px; color: var(--ink-3); }
.sec-hd .sec-more:hover { color: var(--brand); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh);
}

/* ---------------------------------------------------------- 首页 Hero 统计 */
.hero {
  background: linear-gradient(135deg, #16233f 0%, #21386a 55%, #1a4d8f 100%);
  border-radius: var(--r-lg);
  margin-top: 20px;
  padding: 34px 28px 30px;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  right: -70px; top: -70px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 150, 30, .3), transparent 68%);
}

.hero > * { position: relative; z-index: 1; }

.hero h1 {
  color: #fff;
  font-size: 25px;
  letter-spacing: .4px;
  margin-bottom: 8px;
}

.hero p { color: #b6c6e2; font-size: 14px; max-width: 760px; }

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 34px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.hero-stat b {
  display: block;
  font-size: 25px;
  color: #f2c14e;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.hero-stat span { font-size: 12.5px; color: #9db0d0; }

/* ---------------------------------------------------------- Hero 搜索 */
.hero-search-wrap { position: relative; max-width: 620px; margin-top: 20px; }

.hero-search { display: flex; gap: 10px; }

.hero-search input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 10px;
  background: rgba(255, 255, 255, .97);
  color: var(--ink);
  font-size: 15px;
  outline: none;
}

.hero-search input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200, 150, 30, .3); }

.hero-search button {
  height: 46px;
  padding: 0 28px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #e8b83f, #c8961e);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: .15s;
}

.hero-search button:hover { filter: brightness(1.07); }

.hero .hero-hot {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: #9db0d0;
}

.hero .hero-hot a {
  color: #d7e2f5;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  padding: 3px 11px;
  border-radius: 999px;
  transition: .15s;
}

.hero .hero-hot a:hover { background: rgba(255, 255, 255, .26); color: #fff; }

/* ---------------------------------------------------------- 分类专区 */
.cat-blocks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cat-block { padding: 15px 16px; }

.cat-block-hd { display: flex; align-items: center; gap: 8px; }

.cat-block-name { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.cat-block-name:hover { color: var(--brand); }

.cat-block-hd em {
  font-style: normal;
  font-size: 11px;
  color: var(--ink-4);
  background: var(--line-2);
  padding: 1px 7px;
  border-radius: 999px;
}

.cat-block-more { margin-left: auto; font-size: 12px; color: var(--ink-4); }
.cat-block-more:hover { color: var(--brand); }

.cat-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

.cat-pills a {
  font-size: 12.5px;
  color: var(--ink-3);
  background: var(--line-2);
  padding: 3px 10px;
  border-radius: 6px;
  transition: .15s;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cat-pills a:hover { background: var(--brand); color: #fff; }

.cat-pills a.pill-sub { background: var(--brand-l); color: var(--brand); }
.cat-pills a.pill-sub:hover { background: var(--brand); color: #fff; }

/* ---------------------------------------------------------- 站点列表 */
.site-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(292px, 1fr));
  gap: 12px;
}

.site-card {
  display: flex;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px;
  transition: .18s;
  align-items: flex-start;
}

.site-card:hover {
  border-color: #c7d7fe;
  box-shadow: var(--sh-2);
  transform: translateY(-2px);
  color: inherit;
}

.ic {
  width: 40px; height: 40px;
  border-radius: 9px;
  flex: none;
  display: grid;
  place-items: center;
  background: var(--line-2);
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  overflow: hidden;
  position: relative;
}

.ic img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  background: #fff;
  padding: 4px;
}

.site-info { min-width: 0; flex: 1; }

.site-name {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 3px;
}

.site-name span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-card:hover .site-name { color: var(--brand); }

.site-desc {
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 38px;
}

.site-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 7px;
  font-size: 11.5px;
  color: var(--ink-4);
}

.site-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-4); }

.tag {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--gold-l);
  color: #8a6512;
  border: 1px solid #f0e0b0;
  flex: none;
}

.tag-hot { background: #fef3f2; color: #b42318; border-color: #fecdca; }
.tag-new { background: #ecfdf3; color: #067647; border-color: #a6f4c5; }

/* ---------------------------------------------------------- 收藏 */
.site-wrap { position: relative; min-width: 0; }
.site-wrap > .site-card { height: 100%; }

.fav-btn {
  position: absolute;
  top: 9px;
  right: 9px;
  z-index: 2;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: #b6bfcf;
  cursor: pointer;
  opacity: 0;
  transition: .15s;
  font-family: inherit;
}
.site-card:hover ~ .fav-btn,
.fav-btn.on,
.fav-btn:focus-visible { opacity: 1; }
@media (hover: none) {
  .fav-btn { opacity: 1; }
}
.fav-btn:hover { color: var(--gold); border-color: rgba(200, 150, 30, .5); }
.fav-star { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.fav-btn.on { color: var(--gold); border-color: rgba(200, 150, 30, .45); background: var(--gold-l); }
.fav-btn.on .fav-star { fill: var(--gold); }
[data-theme="dark"] .fav-btn { color: #7c8aa5; }
[data-theme="dark"] .fav-btn.on { background: rgba(217, 169, 44, .12); border-color: rgba(217, 169, 44, .4); }

/* 详情页大号收藏按钮 */
.fav-btn-lg {
  position: static;
  opacity: 1;
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  flex: none;
}
.fav-btn-lg .fav-star { width: 16px; height: 16px; }
.fav-btn-lg:hover { color: var(--gold); border-color: rgba(200, 150, 30, .5); }

/* 头部收藏入口 */
.hd-fav {
  flex: none;
  margin-left: auto;
  position: relative;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  color: #cdd8ec;
  transition: .15s;
}
.hd-fav:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.hd-fav svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hd-fav em {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
  font-style: normal;
  font-size: 10px;
  line-height: 15px;
  text-align: center;
  font-weight: 600;
}
.hd-fav em[hidden] { display: none; }

/* 收藏页提示条 */
.fav-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 10px 14px;
  border: 1px solid #d6e2ff;
  border-radius: 10px;
  background: var(--brand-l);
  color: var(--ink-3);
  font-size: 12.5px;
}
.fav-note svg { flex: none; color: var(--brand); }
[data-theme="dark"] .fav-note { border-color: #26364f; }

/* 最近浏览区块（收藏页） */
.recent-sec { margin-top: 30px; }

/* ---------------------------------------------------------- 顶部公告栏 */
.ann-bar {
  background: var(--gold-l);
  border-bottom: 1px solid #efe0b8;
  color: #7a5c10;
  font-size: 13px;
}

.ann-in { display: flex; align-items: center; gap: 8px; padding: 7px 0; }
.ann-ic { flex: none; color: var(--gold); }
.ann-list { flex: 1; min-width: 0; position: relative; height: 19px; }

.ann-item {
  display: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  line-height: 19px;
  color: inherit;
}

.ann-item.on { display: block; }
a.ann-item:hover { color: var(--gold); text-decoration: underline; }
.ann-item.warn { color: #b42318; font-weight: 600; }

.ann-close {
  flex: none;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  opacity: .6;
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  transition: .15s;
}

.ann-close:hover { opacity: 1; background: rgba(200, 150, 30, .16); }
[data-theme="dark"] .ann-bar { border-bottom-color: rgba(217, 169, 44, .24); color: #dcc27f; }
[data-theme="dark"] .ann-item.warn { color: #f8978d; }

/* ---------------------------------------------------------- 移动端底部 Tab */
.mtabs { display: none; }

@media (max-width: 760px) {
  body.has-mtabs { padding-bottom: calc(52px + env(safe-area-inset-bottom)); }

  .mtabs {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: var(--card);
    border-top: 1px solid var(--line);
    padding: 5px 4px calc(5px + env(safe-area-inset-bottom));
  }

  .mtab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 3px 0;
    position: relative;
    color: var(--ink-4);
    font-size: 10.5px;
    line-height: 1.2;
  }

  .mtab svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mtab.on { color: var(--brand); }
  .mtab.on svg { stroke-width: 2.1; }

  .mtab em {
    position: absolute;
    top: 1px;
    left: calc(50% + 4px);
    min-width: 15px;
    height: 15px;
    padding: 0 3px;
    border-radius: 999px;
    background: var(--gold);
    color: #fff;
    font-style: normal;
    font-size: 10px;
    line-height: 15px;
    text-align: center;
    font-weight: 600;
  }

  .mtab em[hidden] { display: none; }
}

/* ---------------------------------------------------------- 首页两栏 */
.cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 306px;
  gap: 22px;
  align-items: start;
}

.side-card { padding: 16px; margin-bottom: 16px; }

.side-hd {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 11px;
  margin-bottom: 11px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}

.side-hd .sec-more { margin-left: auto; font-size: 12px; font-weight: 400; color: var(--ink-4); }

.rank-list li { display: flex; align-items: center; gap: 9px; padding: 6px 0; }

.rank-no {
  width: 19px; height: 19px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  background: var(--line-2);
  color: var(--ink-3);
  flex: none;
}

.rank-list li:nth-child(1) .rank-no { background: linear-gradient(135deg, #e8b83f, #c8961e); color: #fff; }
.rank-list li:nth-child(2) .rank-no { background: #b8c2d4; color: #fff; }
.rank-list li:nth-child(3) .rank-no { background: #d3a583; color: #fff; }

.rank-list li a {
  flex: 1;
  font-size: 13px;
  color: var(--ink-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-list li em { font-style: normal; font-size: 11.5px; color: var(--ink-4); font-variant-numeric: tabular-nums; }

/* 标签云 */
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tags a {
  font-size: 12.5px;
  color: var(--ink-2);
  background: var(--line-2);
  padding: 4px 11px;
  border-radius: 999px;
  transition: .15s;
}
.tags a:hover { background: var(--brand); color: #fff; }

/* 友链格 */
.link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.link-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  font-size: 12.5px;
  background: var(--card);
  color: var(--ink-2);
  overflow: hidden;
}
.link-item:hover { border-color: var(--brand); color: var(--brand); }
.link-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------------------------------------------------- 列表页 */
.crumb { font-size: 13px; color: var(--ink-4); padding: 16px 0 2px; }
.crumb a { color: var(--ink-3); }
.crumb a:hover { color: var(--brand); }
.crumb i { font-style: normal; margin: 0 6px; }

.page-hd {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  flex-wrap: wrap;
  padding: 12px 0 16px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}

.page-hd h1 { font-size: 21px; }
.page-hd .cnt { font-size: 13px; color: var(--ink-4); }

.sub-nav { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 16px; }
.sub-nav a {
  font-size: 13px;
  padding: 5px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-2);
}
.sub-nav a:hover { border-color: var(--brand); color: var(--brand); }
.sub-nav a.on { background: var(--brand); border-color: var(--brand); color: #fff; }

.sort-bar { display: flex; gap: 4px; margin-left: auto; }
.sort-bar a {
  font-size: 12.5px;
  padding: 4px 11px;
  border-radius: 6px;
  color: var(--ink-3);
}
.sort-bar a:hover { background: var(--line-2); }
.sort-bar a.on { background: var(--brand-l); color: var(--brand); font-weight: 600; }

/* ---------------------------------------------------------- 详情页 */
.detail-hd {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 20px;
  flex-wrap: wrap;
}

.detail-hd .ic { width: 58px; height: 58px; font-size: 24px; border-radius: 13px; }
.detail-hd .ic img { padding: 7px; }

.detail-hd-info { flex: 1; min-width: 200px; }
.detail-hd-info h1 { font-size: 21px; margin-bottom: 6px; }
.detail-hd-info .u { font-size: 13px; color: var(--ink-4); word-break: break-all; }

.btn-visit {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, var(--brand), var(--brand-d));
  color: #fff;
  padding: 11px 26px;
  border-radius: 9px;
  font-size: 14.5px;
  font-weight: 600;
  transition: .18s;
  flex: none;
}
.btn-visit:hover { color: #fff; box-shadow: 0 6px 18px rgba(26, 86, 219, .35); transform: translateY(-1px); }

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  padding: 13px 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-3);
}
.meta-row b { color: var(--ink); font-weight: 600; }

.desc-box { padding: 18px 20px; line-height: 1.8; font-size: 14px; color: var(--ink-2); }

/* ---------------------------------------------------------- 表单 */
.form-card { padding: 24px; max-width: 620px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13.5px; color: var(--ink); margin-bottom: 6px; font-weight: 500; }
.field label i { font-style: normal; color: var(--up); margin-left: 2px; }
.field .hint { font-size: 12px; color: var(--ink-4); margin-top: 5px; }

.inp, .sel, .txa {
  width: 100%;
  border: 1px solid #d5dbe5;
  border-radius: 8px;
  padding: 10px 13px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  outline: 0;
  transition: .15s;
}
.inp:focus, .sel:focus, .txa:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(26, 86, 219, .12); }
.txa { resize: vertical; min-height: 92px; line-height: 1.6; }
.sel { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 22px;
  font-size: 14px;
  cursor: pointer;
  transition: .15s;
  background: var(--brand);
  color: #fff;
}
.btn:hover { background: var(--brand-d); color: #fff; }
.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-ghost { background: #fff; border-color: #d5dbe5; color: var(--ink-2); }
.btn-ghost:hover { background: var(--line-2); color: var(--ink); border-color: #c0c8d6; }
.btn-danger { background: #d92d20; }
.btn-danger:hover { background: #b42318; }

/* ---------------------------------------------------------- 分页 */
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 26px; }
.pg {
  min-width: 34px;
  height: 34px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  font-size: 13px;
  color: var(--ink-2);
}
.pg:hover { border-color: var(--brand); color: var(--brand); }
.pg.active { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; }
.pg.disabled { color: var(--ink-4); background: var(--line-2); cursor: not-allowed; }
.pg.gap { border: 0; background: transparent; color: var(--ink-4); }

/* ---------------------------------------------------------- 空态 */
.empty {
  padding: 62px 20px;
  text-align: center;
  color: var(--ink-4);
}
.empty svg { width: 46px; height: 46px; stroke-width: 1.3; opacity: .45; margin-bottom: 12px; }
.empty p { font-size: 14px; }

/* ---------------------------------------------------------- 页脚 */
.ft {
  background: #16233f;
  color: #93a4c4;
  font-size: 13px;
  margin-top: 44px;
  padding: 34px 0 26px;
}

.ft-cols {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 26px;
  padding-bottom: 26px;
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.ft-logo { display: flex; align-items: center; gap: 9px; margin-bottom: 11px; }
.ft-logo .logo-mark { width: 30px; height: 30px; font-size: 15px; border-radius: 7px; }
.ft-logo b { color: #fff; font-size: 15px; }
.ft-col-brand p { line-height: 1.75; font-size: 12.5px; max-width: 330px; }

.ft-col h4 { color: #dbe3f0; font-size: 13.5px; margin-bottom: 10px; }
.ft-col li { margin-bottom: 6px; }
.ft-col a { font-size: 12.5px; color: #93a4c4; }
.ft-col a:hover { color: #f2c14e; }

.ft-bot { padding-top: 20px; text-align: center; }
.ft-links { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; }
.ft-links a { color: #93a4c4; }
.ft-links a:hover { color: #f2c14e; }
.ft-copy { font-size: 12.5px; margin-bottom: 8px; }
.ft-risk { font-size: 12px; color: #6b7c9c; max-width: 860px; margin: 0 auto; line-height: 1.7; }

/* ---------------------------------------------------------- 标签云 */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: baseline; line-height: 1.5; }
.tag-cloud-a {
  color: var(--ink-2);
  padding: 2px 8px;
  border-radius: 8px;
  transition: color .15s, background .15s;
}
.tag-cloud-a:hover { color: var(--brand); background: var(--line-2); }
.tag-cloud-a em {
  font-style: normal;
  font-size: .62em;
  color: var(--ink-4);
  margin-left: 3px;
  vertical-align: super;
}
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  padding: 5px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink-2);
}
.tag-list a:hover { border-color: var(--brand); color: var(--brand); }
.tag-list a .muted { font-size: 12px; color: var(--ink-4); }

/* ---------------------------------------------------------- 评分点评 */
.stars {
  position: relative;
  display: inline-block;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 1px;
  color: #d8dce5;
}
.stars > span { display: block; }
.stars > b {
  position: absolute;
  left: 0;
  top: 0;
  overflow: hidden;
  white-space: nowrap;
  color: #f5a623;
  font-weight: normal;
}
.meta-rate { display: inline-flex; align-items: center; gap: 4px; }
.meta-rate .stars { font-size: 10.5px; letter-spacing: .5px; }
.sec-sub .stars { vertical-align: -1px; margin-right: 4px; }

.rev-list { padding: 4px 20px; }
.rev-item { padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.rev-item:last-child { border-bottom: 0; }
.rev-hd { display: flex; align-items: center; gap: 9px; font-size: 13.5px; }
.rev-hd b { color: var(--ink); font-weight: 600; }
.rev-time { margin-left: auto; font-size: 12px; color: var(--ink-4); }
.rev-txt { margin-top: 7px; font-size: 13.5px; line-height: 1.75; color: var(--ink-2); }

.rate-input { position: relative; display: inline-flex; flex-direction: row-reverse; }
.rate-input input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.rate-input label {
  font-size: 30px;
  line-height: 1;
  color: #d8dce5;
  cursor: pointer;
  padding: 0 2px;
  transition: color .12s;
}
.rate-input input:checked ~ label,
.rate-input label:hover,
.rate-input label:hover ~ label { color: #f5a623; }

/* ---------------------------------------------------------- 资讯文章 */
.news-list { display: flex; flex-direction: column; gap: 12px; }
.news-item { padding: 18px 20px; }
.news-item h2 { font-size: 17px; line-height: 1.5; }
.news-item h2 a { color: var(--ink); }
.news-item h2 a:hover { color: var(--brand); }
.news-item h2 .tag { vertical-align: 2px; }
.news-sum {
  margin-top: 8px;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--ink-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 11px;
  font-size: 12.5px;
  color: var(--ink-4);
}
.news-meta a { color: var(--brand); }
.news-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-4); }

.art-card { padding: 26px 28px; }
.art-title { font-size: 23px; line-height: 1.5; }
.art-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 0;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-4);
}
.art-meta a { color: var(--brand); }
.art-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-4); }
.art-toc {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--line-2);
  padding: 13px 18px 11px;
}
.art-toc-hd { font-size: 13px; font-weight: 600; color: var(--ink-3); margin-bottom: 7px; }
.art-toc ol { margin: 0; padding-left: 20px; }
.art-toc li { margin-bottom: 5px; font-size: 13.5px; line-height: 1.6; }
.art-toc li:last-child { margin-bottom: 0; }
.art-toc a { color: var(--ink-2); }
.art-toc a:hover { color: var(--brand); }
.art-content { padding-top: 18px; font-size: 15px; line-height: 1.9; color: var(--ink-2); overflow-wrap: break-word; }
.art-content p { margin-bottom: 14px; }
.art-content h2 { font-size: 18px; margin: 22px 0 12px; }
.art-content h3 { font-size: 16px; margin: 20px 0 10px; scroll-margin-top: 16px; }
.art-content ul, .art-content ol { margin: 0 0 14px; padding-left: 22px; }
.art-content ul { list-style: disc; }
.art-content ol { list-style: decimal; }
.art-content li { margin-bottom: 6px; }
.art-content a { color: var(--brand); text-decoration: underline; }
.art-content blockquote {
  margin: 0 0 14px;
  padding: 10px 16px;
  border-left: 3px solid var(--brand);
  background: var(--line-2);
  border-radius: 0 8px 8px 0;
  color: var(--ink-3);
}
.art-content img { max-width: 100%; height: auto; border-radius: 10px; }
.art-content code {
  padding: 1px 6px;
  background: var(--line-2);
  border-radius: 5px;
  font-size: .92em;
}
.art-nav {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
}
.art-nav em { font-style: normal; color: var(--ink-4); }
.art-nav a { color: var(--ink-2); }
.art-nav a:hover { color: var(--brand); }

.rel-list { padding: 6px 20px; }
.rel-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line-2);
  font-size: 13.5px;
  color: var(--ink-2);
}
.rel-item:last-child { border-bottom: 0; }
.rel-item:hover span { color: var(--brand); }
.rel-item em { font-style: normal; font-size: 12px; color: var(--ink-4); flex: none; }

.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.news-card {
  display: block;
  padding: 17px 18px 14px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.news-card:hover { border-color: var(--brand); box-shadow: 0 6px 16px rgba(26, 86, 219, .08); transform: translateY(-1px); }
.news-card h3 {
  font-size: 14.5px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card p {
  margin-top: 7px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--ink-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card .news-meta { margin-top: 10px; }

/* ---------------------------------------------------------- 榜单专题 */
.topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.topic-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 16px;
  transition: .18s;
}
.topic-card:hover {
  border-color: #c7d7fe;
  box-shadow: var(--sh-2);
  transform: translateY(-2px);
  color: inherit;
}
.tc-top { display: flex; align-items: center; gap: 10px; }
.tc-title { font-size: 15.5px; font-weight: 700; color: var(--ink); }
.topic-card:hover .tc-title { color: var(--brand); }
.tc-count {
  margin-left: auto;
  flex: none;
  font-style: normal;
  font-size: 11.5px;
  color: #8a6512;
  background: var(--gold-l);
  border: 1px solid #f0e0b0;
  border-radius: 4px;
  padding: 1px 7px;
}
.tc-sub {
  font-size: 12.5px;
  color: var(--ink-3);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
}
.tc-icons { display: flex; align-items: center; margin-top: 2px; }
.tc-ic {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2px solid var(--card);
  margin-left: -8px;
  display: grid;
  place-items: center;
  color: #fff;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  overflow: hidden;
  position: relative;
  flex: none;
}
.tc-ic:first-child { margin-left: 0; }
.tc-ic img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  background: #fff;
  padding: 3px;
}
.tc-more { background: var(--line-2); color: var(--ink-3); font-size: 12px; }
.tc-go {
  margin-top: auto;
  padding-top: 6px;
  font-size: 12.5px;
  color: var(--brand);
  display: flex;
  align-items: center;
  gap: 2px;
}
.topic-note { margin-top: 16px; padding: 16px 20px; }
.topic-note b { font-size: 13.5px; color: var(--ink-2); }
.topic-note p { margin-top: 6px; font-size: 12.5px; line-height: 1.8; color: var(--ink-3); }

.topic-intro { padding: 18px 20px; margin-bottom: 14px; }
.topic-intro .share-row:first-child { border-top: 0; }
.topic-ranks { display: flex; flex-direction: column; gap: 10px; }
.tr-wrap { position: relative; display: flex; align-items: center; gap: 8px; }
.tr-wrap > .topic-rank { flex: 1; min-width: 0; }
.tr-fav {
  position: static;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 9px;
}
.tr-wrap:hover .tr-fav { opacity: 1; }
.topic-rank {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 14px 14px 14px 12px;
  transition: .18s;
}
.topic-rank:hover {
  border-color: #c7d7fe;
  box-shadow: var(--sh-2);
  transform: translateY(-2px);
  color: inherit;
}
.topic-rank:hover .site-name { color: var(--brand); }
.tr-no {
  flex: none;
  width: 30px; height: 30px;
  margin-top: 5px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 700;
  background: var(--line-2);
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.topic-ranks .tr-wrap:nth-child(1) .tr-no { background: linear-gradient(135deg, #e8b83f, #c8961e); color: #fff; }
.topic-ranks .tr-wrap:nth-child(2) .tr-no { background: #b8c2d4; color: #fff; }
.topic-ranks .tr-wrap:nth-child(3) .tr-no { background: #d3a583; color: #fff; }
.topic-rank .tr-note { font-style: italic; color: #8a6512; }
.tr-go { flex: none; align-self: center; color: var(--ink-4); transition: .15s; }
.topic-rank:hover .tr-go { color: var(--brand); }

.side-note { font-size: 12.5px; line-height: 1.8; color: var(--ink-3); }

.topic-strip {
  margin-top: 22px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-3);
}
.topic-strip b { color: var(--ink-2); font-weight: 600; }
.topic-strip a {
  background: var(--gold-l);
  color: #8a6512;
  border: 1px solid #f0e0b0;
  padding: 3px 11px;
  border-radius: 999px;
}
.topic-strip a:hover { color: #6d4f0e; border-color: #e3cf95; }
.topic-strip a.more { background: none; border: none; color: var(--brand); padding: 3px 2px; }

/* ---------------------------------------------------------- 分享按钮 */
.share-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 20px 14px;
  border-top: 1px solid var(--line);
}
.share-label { font-size: 13px; color: var(--ink-3); margin-right: 2px; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  font-family: inherit;
  color: var(--ink-2);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 13px;
  cursor: pointer;
  transition: border-color .15s, color .15s;
}
.share-btn:hover { border-color: var(--brand); color: var(--brand); }
.share-btn.ok { border-color: #12b76a; color: #12b76a; }
.share-btn svg { width: 13px; height: 13px; }
.art-card .share-row { border-top: 0; padding: 18px 0 0; }

/* 搜索关键词高亮 */
mark.hl { background: rgba(200, 150, 30, .22); color: inherit; padding: 0 1px; border-radius: 3px; }
[data-theme="dark"] mark.hl { background: rgba(217, 169, 44, .32); }

/* ---------------------------------------------------------- 搜索联想 */
.hd-in { position: relative; }
.search-sug {
  position: absolute;
  z-index: 80;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(16, 24, 40, .16);
  padding: 6px;
  max-height: 380px;
  overflow-y: auto;
}
.search-sug[hidden] { display: none; }
.sug-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  border-radius: 9px;
  font-size: 13.5px;
  color: var(--ink);
}
.sug-item:hover, .sug-item.on { background: var(--line-2); }
.sug-type {
  flex: none;
  font-size: 11px;
  line-height: 1.5;
  color: var(--ink-4);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0 6px;
}
.sug-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sug-empty { padding: 12px; font-size: 13px; color: var(--ink-4); text-align: center; }
.sug-all { border-top: 1px solid var(--line-2); border-radius: 0 0 9px 9px; margin-top: 4px; color: var(--brand); }
.sug-all .sug-label { font-weight: 600; }

/* ---------------------------------------------------------- 响应式 */
@media (max-width: 1024px) {
  .cols { grid-template-columns: 1fr; }
  .ft-cols { grid-template-columns: 1fr 1fr 1fr; }
  .ft-col-brand { grid-column: 1 / -1; }
  .news-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .hd-in { flex-wrap: wrap; gap: 12px; }
  .hd-search { order: 3; flex-basis: 100%; max-width: none; }
  .hd-toggle { display: flex; }

  .hd-nav { display: none; }
  .hd-nav.open { display: block; }
  .hd-nav-in { flex-direction: column; align-items: stretch; padding-top: 6px; padding-bottom: 10px; }
  .nav-item { padding: 11px 6px; border-bottom: 1px solid rgba(255, 255, 255, .07); border-radius: 0; }

  .drop-panel { position: static; box-shadow: none; border-radius: 0; padding: 12px 6px; }
  .nav-drop:hover .drop-panel { display: none; }
  .hd-nav.open .nav-drop:hover .drop-panel { display: block; }

  .hero { padding: 26px 20px 22px; }
  .hero h1 { font-size: 20px; }
  .hero-stats { gap: 22px; }
  .hero-stat b { font-size: 21px; }

  .site-grid { grid-template-columns: 1fr; }
  .cat-blocks { grid-template-columns: 1fr; }
  .hero-search input, .hero-search button { height: 42px; font-size: 14px; }
  .hero-search button { padding: 0 18px; }
  .news-grid { grid-template-columns: 1fr; }
  .art-card { padding: 18px 16px; }
  .art-title { font-size: 19px; }
  .ft-cols { grid-template-columns: 1fr 1fr; }
  .form-card { padding: 18px; }
  .detail-hd { padding: 16px; }
}

/* ---------------------------------------------------------- 出站跳转提示页 */
.jump-card { max-width: 520px; margin: 16px auto 0; padding: 34px 28px 26px; text-align: center; }
.jump-ico { width: 60px; height: 60px; font-size: 25px; border-radius: 14px; margin: 0 auto 14px; background: linear-gradient(135deg, var(--brand), var(--brand-d)); }
.jump-ico img { padding: 7px; }
.jump-name { font-size: 19px; margin-bottom: 8px; }
.jump-tip { color: var(--ink-3); font-size: 13.5px; }
.jump-line { margin-top: 10px; }
.jump-dom { display: inline-block; max-width: 100%; padding: 5px 18px; background: var(--brand-l); border: 1px solid #d6e2ff; border-radius: 999px; color: var(--brand); font-size: 15px; font-weight: 600; word-break: break-all; vertical-align: middle; }
.jump-sec { display: inline-block; margin-left: 8px; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; vertical-align: middle; }
.jump-sec.ok { background: #ecfdf3; color: #079455; border: 1px solid #abefc6; }
.jump-sec.warn { background: #fffaeb; color: #b54708; border: 1px solid #fedf89; }
.jump-url { margin-top: 8px; padding: 0 10px; color: var(--ink-4); font-size: 12px; word-break: break-all; }
.jump-meta { margin-top: 12px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.jump-cat { padding: 2px 12px; background: var(--line-2); border-radius: 999px; color: var(--ink-2); font-size: 12.5px; }
.jump-cat:hover { color: var(--brand); }
.jump-rate { color: var(--gold); font-size: 12.5px; align-self: center; }
.jump-desc { margin-top: 10px; padding: 0 6px; color: var(--ink-3); font-size: 13px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.jump-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.jump-prog { height: 4px; max-width: 320px; margin: 20px auto 0; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.jump-prog i { display: block; width: 0; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), var(--brand-d)); transition: width 1s linear; }
.jump-count { margin-top: 10px; color: var(--ink-4); font-size: 13px; }
.jump-count b { color: var(--brand); font-size: 15px; }
.jump-note { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); color: var(--ink-4); font-size: 12px; line-height: 1.7; }

/* 出站跳转弹窗（站内弹窗模式，复用 .jump-* 样式） */
.jump-modal { position: fixed; inset: 0; z-index: 999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.jump-mask { position: absolute; inset: 0; background: rgba(16, 24, 40, .55); animation: jumpMask .18s ease; }
.jump-dialog { position: relative; width: 100%; max-width: 460px; margin: 0; max-height: calc(100vh - 40px); overflow-y: auto; animation: jumpPop .2s ease; }
.jump-dialog .jump-name { font-size: 18px; font-weight: 600; }
.jump-dialog button { font-family: inherit; }
.jump-close { position: absolute; top: 10px; right: 12px; width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; border: 0; border-radius: 8px; background: transparent; color: var(--ink-4); font-size: 20px; line-height: 1; cursor: pointer; }
.jump-close:hover { background: var(--line-2); color: var(--ink); }
@keyframes jumpMask { from { opacity: 0; } }
@keyframes jumpPop { from { opacity: 0; transform: translateY(12px) scale(.97); } }

/* ---------------------------------------------------------- 工具箱：计算器 */
.calc-card { padding: 0; overflow: hidden; }

.calc-tabs { display: flex; border-bottom: 1px solid var(--line); }
.calc-tabs a {
  padding: 14px 22px;
  font-size: 14.5px;
  color: var(--ink-3);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: .15s;
}
.calc-tabs a:hover { color: var(--brand); }
.calc-tabs a.on { color: var(--brand); border-bottom-color: var(--brand); font-weight: 600; }

.calc-pane { padding: 22px 22px 24px; }
.calc-pane[hidden] { display: none; }

.calc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.calc-grid .field { margin-bottom: 14px; }

.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg label {
  position: relative;
  padding: 9px 16px;
  font-size: 13.5px;
  color: var(--ink-3);
  cursor: pointer;
  background: var(--card);
  transition: .15s;
}
.seg label + label { border-left: 1px solid var(--line); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label.on { background: var(--brand-l); color: var(--brand); font-weight: 600; }

.calc-out { margin-top: 8px; padding: 18px 20px; background: var(--line-2); border-radius: 10px; }
.calc-out-label { display: block; font-size: 12.5px; color: var(--ink-4); }
.calc-out-num {
  display: block;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
}
.calc-out-num.up { color: var(--up); }
.calc-out-num.down { color: var(--down); }
.calc-formula { display: block; margin-top: 4px; font-size: 12.5px; color: var(--ink-4); word-break: break-all; }

.calc-note { padding: 18px 20px; margin-top: 12px; font-size: 13px; color: var(--ink-3); line-height: 1.8; }
.calc-note b { color: var(--ink-2); }
.calc-note ul { margin: 8px 0 0; padding-left: 20px; list-style: disc; }
.calc-note li { margin-bottom: 6px; }

/* ---------------------------------------------------------- 工具箱：交易时段表 */
.sess-card { padding: 6px 20px 14px; }

.sess-top {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  padding: 13px 0 11px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.sess-summary { color: var(--ink-2); font-weight: 500; }
.sess-clock {
  margin-left: auto;
  color: var(--ink-4);
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}

.sess-hd,
.sess-row,
.sess-ruler {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 168px 190px;
  gap: 16px;
  align-items: center;
}

.sess-hd {
  padding: 10px 0 10px;
  font-size: 12px;
  color: var(--ink-4);
  border-bottom: 1px solid var(--line);
}
.sess-hd span:last-child { text-align: right; }

.sess-row { padding: 13px 0; border-bottom: 1px solid var(--line-2); }
.sess-row:last-of-type { border-bottom: 0; }

.sess-name { display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; }
.sess-name b { font-size: 14.5px; color: var(--ink); }
.sess-name span { font-size: 11.5px; color: var(--ink-4); }
.sess-dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }

.sess-track {
  position: relative;
  height: 14px;
  border-radius: 999px;
  background: var(--line-2);
  overflow: hidden;
}
.sess-track i {
  position: absolute;
  top: 0; bottom: 0;
  border-radius: 4px;
  opacity: .75;
}
.sess-row.is-open .sess-track i { opacity: 1; }

.sess-ruler { padding-top: 0; }
.sess-ruler-track {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--ink-4);
  font-variant-numeric: tabular-nums;
}

.sess-bj { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sess-bj b { color: var(--ink-2); font-weight: 600; }

.sess-st { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.sess-badge {
  font-size: 12px;
  font-weight: 600;
  padding: 2px 12px;
  border-radius: 999px;
  border: 1px solid;
}
.sess-badge.ok { background: rgba(7, 148, 85, .12); color: #067647; border-color: rgba(7, 148, 85, .35); }
.sess-badge.ok::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: #12b76a;
  vertical-align: 1px;
  animation: sessPulse 1.6s ease-in-out infinite;
}
.sess-badge.off { background: var(--line-2); color: var(--ink-4); border-color: var(--line); }
.sess-cd { font-style: normal; font-size: 11.5px; color: var(--ink-4); font-variant-numeric: tabular-nums; }

@keyframes sessPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}

/* ---------------------------------------------------------- 深色模式：定向覆盖 */
[data-theme="dark"] .hd-search:focus-within { background: #1c2536; border-color: #33415a; box-shadow: 0 0 0 4px rgba(217, 169, 44, .16); }
[data-theme="dark"] .hd-search:focus-within input { color: var(--ink); }

[data-theme="dark"] .hero-search input { background: rgba(13, 18, 32, .72); border-color: rgba(255, 255, 255, .22); color: var(--ink); }

[data-theme="dark"] .site-card:hover { border-color: var(--brand); }

[data-theme="dark"] .btn-ghost { background: #1c2536; border-color: #33415a; color: var(--ink-2); }
[data-theme="dark"] .btn-ghost:hover { background: var(--line-2); border-color: #3d4c68; color: var(--ink); }

[data-theme="dark"] .inp,
[data-theme="dark"] .txa { background: #101827; border-color: #33415a; }
[data-theme="dark"] .inp::placeholder,
[data-theme="dark"] .txa::placeholder,
[data-theme="dark"] .hero-search input::placeholder { color: #6c7a90; }
[data-theme="dark"] .sel {
  background-color: #101827;
  border-color: #33415a;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b98ad' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

[data-theme="dark"] .flash-success { background: rgba(7, 148, 85, .14); border-color: rgba(7, 148, 85, .45); color: #75e0a7; }
[data-theme="dark"] .flash-error { background: rgba(217, 45, 32, .14); border-color: rgba(217, 45, 32, .5); color: #fda29b; }
[data-theme="dark"] .flash-info { background: var(--brand-l); border-color: rgba(77, 130, 243, .4); color: #a6c1fb; }

[data-theme="dark"] .tag { color: #e2bd5e; border-color: rgba(217, 169, 44, .4); }
[data-theme="dark"] .tag-hot { background: rgba(217, 45, 32, .16); color: #fda29b; border-color: rgba(217, 45, 32, .45); }
[data-theme="dark"] .tag-new { background: rgba(7, 148, 85, .16); color: #6ce9a6; border-color: rgba(7, 148, 85, .45); }

[data-theme="dark"] .jump-dom { border-color: rgba(77, 130, 243, .45); }
[data-theme="dark"] .jump-sec.ok { background: rgba(7, 148, 85, .16); border-color: rgba(7, 148, 85, .45); color: #6ce9a6; }
[data-theme="dark"] .jump-sec.warn { background: rgba(181, 71, 8, .18); border-color: rgba(181, 71, 8, .5); color: #fdb022; }

[data-theme="dark"] .stars,
[data-theme="dark"] .rate-input label { color: #3a4557; }

[data-theme="dark"] .rank-list li:nth-child(2) .rank-no { background: #4a5568; }
[data-theme="dark"] .rank-list li:nth-child(3) .rank-no { background: #6b5342; }

[data-theme="dark"] .topic-card:hover,
[data-theme="dark"] .topic-rank:hover { border-color: var(--brand); }
[data-theme="dark"] .tc-count,
[data-theme="dark"] .topic-strip a { color: #e2bd5e; border-color: rgba(217, 169, 44, .4); }
[data-theme="dark"] .topic-rank .tr-note { color: #e2bd5e; }
[data-theme="dark"] .topic-ranks .tr-wrap:nth-child(2) .tr-no { background: #4a5568; }
[data-theme="dark"] .topic-ranks .tr-wrap:nth-child(3) .tr-no { background: #6b5342; }

[data-theme="dark"] .sess-badge.ok { background: rgba(50, 213, 131, .14); color: #6ce9a6; border-color: rgba(50, 213, 131, .4); }

@media (max-width: 760px) {
  .calc-tabs a { padding: 12px 14px; font-size: 13.5px; }
  .calc-grid { grid-template-columns: 1fr; }
  .calc-out-num { font-size: 24px; }

  .sess-top { font-size: 12px; }
  .sess-clock { width: 100%; margin-left: 0; }
  .sess-hd { display: none; }
  .sess-row { grid-template-columns: 1fr; gap: 8px; padding: 14px 0; }
  .sess-st { flex-direction: row; align-items: center; justify-content: space-between; }
  .sess-ruler { display: none; }
}
