/* ============================================================
   汇率呀 - 全局样式（还原 huilvya.com 视觉风格）
   主色：#276cae / #006bb7  按钮：#65f  背景：#f5f5f5
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { height: 100%; scroll-behavior: smooth; }
body {
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.8;
  color: #333;
  background: #f5f5f5;
  -webkit-font-smoothing: antialiased;
  word-wrap: break-word;
}
a { text-decoration: none; color: #666; transition: color .2s; }
a:hover { color: #006bb7; }
img { vertical-align: middle; border: 0; }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; line-height: inherit; }
button { cursor: pointer; }
b { font-weight: 700; }

.inner { position: relative; max-width: 1070px; padding: 0 15px; margin: 0 auto; }
.clear::after { clear: both; display: table; content: ""; }

/* 自定义滚动条（站点蓝色语言） */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: #eef2f6; border-radius: 5px; }
::-webkit-scrollbar-thumb { background: #a9c4dd; border-radius: 5px; border: 2px solid #eef2f6; }
::-webkit-scrollbar-thumb:hover { background: #276cae; }
* { scrollbar-width: thin; scrollbar-color: #a9c4dd #eef2f6; }

/* ---------------- 顶部导航 ---------------- */
.header { position: sticky; top: 0; z-index: 1000; margin-bottom: 15px; }
.mod-head .bd {
  position: relative; height: 64px; overflow: visible;
  background: linear-gradient(100deg, #276cae 0%, #2f7cc0 55%, #276cae 100%);
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset, 0 2px 10px rgba(20,50,90,.18);
  transition: box-shadow .3s;
}
.header.scrolled .mod-head .bd { box-shadow: 0 4px 18px rgba(20,50,90,.32); }
.mod-head .bd .logo { float: left; display: flex; align-items: center; height: 64px; gap: 10px; }
.logo-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(145deg, #ffffff, #dcecfb);
  color: #276cae; font-size: 24px; font-weight: 800; font-family: Arial, sans-serif;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.logo-text { color: #fff; font-size: 22px; font-weight: 700; letter-spacing: 1px; line-height: 1.15; }
.logo-text small { display: block; font-size: 11px; font-weight: 400; letter-spacing: 2px; color: rgba(255,255,255,.65); }
.mod-head .bd ul { position: absolute; top: 0; right: 0; padding: 14px 10px; overflow: visible; }
.mod-head .bd ul li { float: left; height: 36px; padding: 0 9px; line-height: 36px; }
.mod-head .bd ul li a {
  display: block; position: relative; color: rgba(255,255,255,.82);
  font-size: 14px; padding: 0 2px; transition: color .2s;
}
.mod-head .bd ul li a::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 0; height: 2px;
  background: #fff; border-radius: 2px; transform: translateX(-50%); transition: width .25s;
}
.mod-head .bd ul li a:hover { color: #fff; }
.mod-head .bd ul li a:hover::after, .mod-head .bd ul li a.active::after { width: 100%; }
.mod-head .bd ul li a.active { color: #fff; font-weight: 600; }
.mod-head .menu { display: none; }

/* ---------------- 二级导航（汇率下拉） ---------------- */
.mod-head .bd ul li.nav-drop { position: relative; }
.drop-toggle .caret { margin-left: 4px; vertical-align: 1px; transition: transform .2s; }
.nav-drop:hover .drop-toggle .caret, .nav-drop.open .drop-toggle .caret { transform: rotate(180deg); }
.nav-drop::before { content: ""; position: absolute; left: 0; top: 100%; width: 100%; height: 16px; }
.drop-panel {
  position: absolute; top: calc(100% + 14px); left: -6px; min-width: 218px; padding: 6px;
  background: #fff; border: 1px solid #e2e2e2; border-radius: 8px;
  box-shadow: 0 12px 32px rgba(20,50,90,.2);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 1001;
}
.nav-drop.open .drop-panel { opacity: 1; visibility: visible; transform: none; }
.mod-head .bd .drop-panel a {
  display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 6px;
  color: #2E3C57; font-size: 13px; line-height: 1.4;
}
.mod-head .bd .drop-panel a::after { display: none; }
.drop-panel a img { width: 20px; height: 14px; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.08); flex: none; }
.drop-panel a span { flex: 1; }
.drop-panel a i { font-style: normal; font-size: 11px; color: #9ab2c8; font-family: Consolas, Menlo, monospace; }
.mod-head .bd .drop-panel a:hover { background: #e9f4ff; color: #006bb7; }
.mod-head .bd .drop-panel a.active { background: #e9f4ff; color: #006bb7; font-weight: 600; }
.mod-head .bd .drop-panel a.drop-more {
  justify-content: center; margin-top: 4px; padding-top: 9px;
  border-top: 1px solid #eef2f6; border-radius: 0 0 6px 6px;
  color: #006bb7; font-size: 12px;
}
@media (hover: hover) and (min-width: 861px) {
  .nav-drop:hover .drop-panel, .nav-drop:focus-within .drop-panel { opacity: 1; visibility: visible; transform: none; }
}

/* ---------------- 模块卡片 ---------------- */
.module {
  background: #fff; margin-bottom: 15px;
  border: 1px solid #e2e2e2; border-radius: 8px;
  box-shadow: 0 0 1px rgba(0,0,0,.15);
}
.module .hd {
  position: relative; padding: 10px 14px; line-height: 24px;
  border-bottom: 1px solid #e2e2e2;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.module .hd .title {
  position: relative; display: inline-block; vertical-align: middle;
  font-size: 16px; font-weight: bold; color: #212529; padding-left: 14px;
}
.module .hd .title::before {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  display: inline-block; content: ""; width: 4px; height: 16px;
  background: #006bb7; border-radius: 3px;
}

/* 入场动画 */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------------- 换算器 ---------------- */
.converter { position: relative; width: 100%; border-radius: 8px; scroll-margin-top: 80px; }
.converter .row { position: relative; z-index: 5; padding: 18px 28px 16px; }
.convert { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 8px; }
.converter .col { flex: 1; min-width: 0; }
.converter .col label { display: block; font-weight: 600; color: #141E37; font-size: 15px; line-height: 2.2; }
.converter .col input {
  display: block; width: 100%; height: 44px; padding: 0 14px;
  background: #fff; border-radius: 5px; border: 1px solid #c7c7d2;
  font-size: 16px; color: #212529; outline: none; transition: border-color .2s, box-shadow .2s;
}
.converter .col input:focus { border-color: #80bdff; box-shadow: 0 1px 3px 0 rgba(0,123,155,.2); }
.converter .col input::-webkit-outer-spin-button,
.converter .col input::-webkit-inner-spin-button { -webkit-appearance: none; }
.converter .col input[type=number] { -moz-appearance: textfield; appearance: textfield; }

/* 可搜索下拉（select2 风格） */
.cs { position: relative; }
.cs-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; height: 44px; padding: 0 12px 0 14px;
  background: #fff; border: 1px solid #c7c7d2; border-radius: 5px;
  font-size: 15px; color: #212529; text-align: left; transition: border-color .2s, box-shadow .2s;
}
.cs-trigger:hover { border-color: #9db8d2; }
.cs.open .cs-trigger, .cs-trigger:focus { outline: none; border-color: #80bdff; box-shadow: 0 1px 3px 0 rgba(0,123,155,.2); }
.cs-trigger .cs-caret { flex: none; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid #889; transition: transform .2s; }
.cs.open .cs-trigger .cs-caret { transform: rotate(180deg); }
.cs-drop {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 60;
  background: #fff; border: 1px solid #c7c7d2; border-radius: 5px;
  box-shadow: 0 8px 24px rgba(20,50,90,.18); overflow: hidden;
  animation: csIn .16s ease;
}
@keyframes csIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.cs-search { padding: 8px; border-bottom: 1px solid #ebebeb; }
.cs-search input {
  width: 100%; height: 34px; padding: 0 10px; font-size: 14px;
  border: 1px solid #c7c7d2; border-radius: 4px; outline: none;
}
.cs-search input:focus { border-color: #80bdff; }
.cs-list { max-height: 252px; overflow-y: auto; }
.cs-list li { padding: 7px 14px; font-size: 14px; color: #333; cursor: pointer; display: flex; justify-content: space-between; gap: 8px; }
.cs-list li .cs-code { color: #999; font-family: Consolas, Menlo, monospace; font-size: 13px; }
.cs-list li:hover, .cs-list li.hl { background: #e9f4ff; color: #006bb7; }
.cs-list li.selected { background: #276cae; color: #fff; }
.cs-list li.selected .cs-code { color: rgba(255,255,255,.75); }
.cs-list li.none { color: #999; cursor: default; justify-content: center; }
.cs-list li.none:hover { background: none; color: #999; }
.cs-list mark { background: none; color: #f60; font-weight: 700; }
.cs-list li.selected mark { color: #ffd9a8; }

/* 交换按钮 */
.exchange { flex: none; padding-bottom: 2px; }
.exchange button {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid #c7c7d2; background: #fff; color: #276cae;
  transition: all .25s;
}
.exchange button svg { width: 17px; height: 17px; }
.exchange button:hover { background: #276cae; border-color: #276cae; color: #fff; box-shadow: 0 3px 10px rgba(39,108,174,.35); }
.exchange button.spin svg { animation: swapSpin .4s ease; }
@keyframes swapSpin { from { transform: rotate(0); } to { transform: rotate(180deg); } }

/* 立即换算按钮 */
.currency-buts { flex: none; width: 150px; }
.currency-buts .but {
  width: 100%; height: 44px; border: 0; border-radius: 5px;
  background: linear-gradient(135deg, #6655ff, #5a4be6);
  color: #fff; font-size: 17px; font-weight: 400; letter-spacing: 2px;
  transition: all .3s; box-shadow: 0 3px 10px rgba(102,85,255,.28);
}
.currency-buts .but:hover { background: linear-gradient(135deg, #7a6bff, #6655ff); box-shadow: 0 5px 16px rgba(102,85,255,.42); transform: translateY(-1px); }
.currency-buts .but:active { transform: translateY(0); }

/* 换算结果 */
.converter .result { padding: 12px 0 4px; font-size: 16px; font-weight: 700; line-height: 180%; }
.converter .result .f { color: #5C667B; font-size: 16px; font-weight: 600; }
.converter .result .t { font-size: 30px; color: #2E3C57; padding: 6px 0 12px; line-height: 1.4; }
.converter .result .t .faded-digits { color: #A1A6B0; }
.converter .result .t .res-cur { font-size: 22px; }
.converter .result .e { font-weight: 400; font-size: 14px; color: #5C667B; }
.copy-btn {
  display: inline-flex; align-items: center; gap: 4px; vertical-align: middle;
  margin-left: 12px; padding: 3px 10px; font-size: 12px; font-weight: 400;
  color: #276cae; background: #eef5fc; border: 1px solid #cfe2f3; border-radius: 20px;
  transition: all .2s;
}
.copy-btn:hover { background: #276cae; color: #fff; border-color: #276cae; }
.rate-status {
  display: inline-flex; align-items: center; gap: 5px; margin-left: 12px;
  padding: 1px 9px; font-size: 12px; border-radius: 20px;
  background: #fff7e8; color: #c07a10; border: 1px solid #f3e2c0; vertical-align: 1px;
}
.rate-status .dot { width: 6px; height: 6px; border-radius: 50%; background: #e8a23c; }
.rate-status.live { background: #ecf8ec; color: #2e8b32; border-color: #cde8cd; }
.rate-status.live .dot { background: #4bae4f; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(75,174,79,.5); } 50% { box-shadow: 0 0 0 4px rgba(75,174,79,0); } }
.refresh { display: inline-flex; align-items: center; gap: 4px; margin-left: 12px; color: #006bb7; font-size: 13px; }
.refresh:hover { text-decoration: underline; }
.refresh.loading svg { animation: rot 1s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }

/* ---------------- 常见币种表 ---------------- */
.mod-panel { margin: 0 auto 15px; }
.mod-panel .ft table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.mod-panel .ft table caption { line-height: 42px; text-align: center; font-weight: bold; font-size: 16px; color: #212529; }
.mod-panel .ft table th, .mod-panel .ft table td { padding: 8px; border: 1px solid #e2e2e2; line-height: 20px; text-align: center; }
.mod-panel .ft table th { white-space: nowrap; }
.mod-panel .ft table thead { background: #f5f5f5; }
.mod-panel .ft table tbody tr { cursor: pointer; transition: background .15s; }
.mod-panel .ft table tbody tr:hover { background: #e9f4ff; }
.mod-panel .ft table tbody tr:hover a { color: #006bb7; }
.mod-panel .ft table td span { font-family: Consolas, Menlo, monospace; }
.mod-panel .ft table td.rev span { color: #fc9000; font-weight: 700; }

/* ---------------- 外汇牌价 ---------------- */
.mod-recommend .hd { position: relative; }
.bank-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: #c0392b; font-weight: 600;
  padding: 2px 12px; border: 1px solid #f0d5d0; border-radius: 20px; background: #fdf5f4;
}
.mod-recommend .bd { padding: 10px 14px; position: relative; line-height: 20px; }
.table-inner { overflow-x: auto; }
.mod-recommend .bd table { width: 100%; font-size: 15px; border-collapse: collapse; }
.mod-recommend .bd table thead { background: #f9f9f9; }
.mod-recommend .bd table tbody tr { border-bottom: 1px dotted #e2e2e2; transition: background .15s; }
.mod-recommend .bd table tbody tr:last-child { border-bottom: none; }
.mod-recommend .bd table tbody tr:hover { background: #f5faff; }
.mod-recommend .bd table th, .mod-recommend .bd table td { padding: 8px 12px; line-height: 22px; text-align: left; }
.mod-recommend .bd table th { font-weight: bold; color: #464248; white-space: nowrap; }
.mod-recommend .bd .cur-cell { display: flex; align-items: center; gap: 12px; }
.mod-recommend .bd .icon { flex: none; width: 60px; height: 40px; border-radius: 4px; overflow: hidden; border: 1px solid #e8e8e8; background: #f4f6f8; display: flex; align-items: center; justify-content: center; }
.mod-recommend .bd .icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mod-recommend .bd .icon .flag-fallback { font-size: 13px; font-weight: 700; color: #276cae; font-family: Consolas, monospace; }
.mod-recommend .bd .info p.name { font-weight: bold; color: #333; }
.mod-recommend .bd .info p.code { color: #999; font-size: 13px; font-family: Consolas, Menlo, monospace; }
.mod-recommend .bd td p { line-height: 22px; white-space: nowrap; }
.mod-recommend .bd td p i { font-style: normal; color: #999; margin-right: 4px; font-size: 13px; }
.mod-recommend .bd td.ref { color: #fc9000; font-weight: 700; font-family: Consolas, Menlo, monospace; }
.mod-recommend .bd td.time { color: #999; font-size: 13px; white-space: nowrap; }
.bank-note { padding: 8px 2px 2px; font-size: 12px; color: #999; }

/* ---------------- 货币代码 ---------------- */
.code-search { position: relative; display: flex; align-items: center; }
.code-search svg { position: absolute; left: 10px; color: #999; pointer-events: none; }
.code-search input {
  width: 280px; height: 32px; padding: 0 10px 0 32px;
  border: 1px solid #d8d8e0; border-radius: 20px; outline: none; font-size: 13px;
  transition: border-color .2s, box-shadow .2s;
}
.code-search input:focus { border-color: #80bdff; box-shadow: 0 1px 3px rgba(0,123,155,.15); }
.code-table-wrap { border: 1px solid #ebebeb; border-radius: 5px; }
.code-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.code-table thead th {
  position: sticky; top: 64px; z-index: 2; background: #f5f8fb;
  padding: 8px 14px; text-align: left; font-weight: 700; color: #464248;
  border-bottom: 1px solid #e2e2e2; white-space: nowrap;
}
.code-table td { padding: 7px 14px; border-bottom: 1px solid #f0f0f0; }
.code-table tbody tr { cursor: pointer; transition: background .15s; }
.code-table tbody tr:hover { background: #e9f4ff; }
.code-table td.c-code { font-family: Consolas, Menlo, monospace; font-weight: 700; color: #276cae; }
.code-table td.c-code .c-flag,
.code-table td.c-code .c-flag-fallback {
  width: 20px; height: 15px; border-radius: 2px; margin-right: 6px; vertical-align: -2px;
}
.code-table td.c-code .c-flag { display: inline-block; object-fit: cover; box-shadow: 0 0 0 1px rgba(30, 60, 100, .14); }
.code-table td.c-code .c-flag-fallback {
  display: inline-flex; align-items: center; justify-content: center;
  background: #eef5fc; color: #276cae; font-size: 11px; font-weight: 700; line-height: 1;
  box-shadow: inset 0 0 0 1px #cfe0f0;
}
.code-table td.c-rate { font-family: Consolas, Menlo, monospace; color: #555; white-space: nowrap; }
.code-empty { padding: 26px; text-align: center; color: #999; }
.code-more { margin-top: 10px; text-align: right; font-size: 13px; }
.code-more a { color: #006bb7; }
.code-more a:hover { text-decoration: underline; }
.symbol-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.symbol-table th {
  padding: 8px 14px; text-align: left; font-weight: 700; color: #464248;
  background: #f5f8fb; border-bottom: 1px solid #e2e2e2; white-space: nowrap;
}
.symbol-table td { padding: 7px 14px; border-bottom: 1px solid #f0f0f0; }
.symbol-table tbody tr:hover { background: #f5faff; }
.symbol-table td.sym { font-size: 17px; color: #276cae; font-family: "Segoe UI Symbol", Arial, sans-serif; }
.symbol-table td.sym b { font-weight: 700; }
.symbol-table td.c-code { font-family: Consolas, Menlo, monospace; font-weight: 700; color: #276cae; }

/* ---------------- 大写转换 ---------------- */
.daxie-box { padding: 6px 2px; }
.daxie-input label { display: block; font-weight: 600; color: #141E37; margin-bottom: 6px; }
.daxie-row { display: flex; gap: 12px; max-width: 560px; }
.daxie-row input {
  flex: 1; height: 44px; padding: 0 14px; font-size: 16px;
  border: 1px solid #c7c7d2; border-radius: 5px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.daxie-row input:focus { border-color: #80bdff; box-shadow: 0 1px 3px rgba(0,123,155,.2); }
.daxie-row input::-webkit-outer-spin-button, .daxie-row input::-webkit-inner-spin-button { -webkit-appearance: none; }
.daxie-row button {
  flex: none; width: 140px; height: 44px; border: 0; border-radius: 5px;
  background: linear-gradient(135deg, #6655ff, #5a4be6); color: #fff;
  font-size: 15px; letter-spacing: 1px; transition: all .3s;
  box-shadow: 0 3px 10px rgba(102,85,255,.28);
}
.daxie-row button:hover { box-shadow: 0 5px 16px rgba(102,85,255,.42); transform: translateY(-1px); }
.capital-result { line-height: 2; margin-top: 14px; }
.capital-result p {
  font-size: 24px; line-height: 1.7; letter-spacing: 2px; text-align: center;
  padding: 18px 16px; color: #f20; border: 1px solid #b0aeb9; border-radius: 5px;
  background: #fffdf9; min-height: 60px;
}
.capital-result .simplified { padding: 10px 2px 2px; border-bottom: 1px dotted #b0aeb9; color: #666; }
.capital-result .simplified b { color: #2E3C57; font-size: 15px; }

/* ---------------- 快捷链接 ---------------- */
.mod-rate .bd { padding: 12px; }
.mod-rate .bd ul { overflow: hidden; display: flex; flex-wrap: wrap; }
.mod-rate .bd li { width: 25%; }
.mod-rate .bd li a {
  display: block; background: #f9f9f9; margin: 0 1px 2px; padding: 0 12px;
  line-height: 34px; text-align: center; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; border-radius: 3px;
  transition: background .15s, color .15s;
}
.mod-rate .bd li a:hover { background: #e9f4ff; color: #006bb7; }

/* ---------------- 资讯 ---------------- */
.mod-list .bd { padding: 6px 15px 10px; }
.news-list li { border-bottom: 1px dotted #e2e2e2; }
.news-list li:last-child { border-bottom: none; }
.news-list a {
  display: flex; align-items: center; gap: 10px; padding: 9px 4px;
  color: #464248; transition: color .15s, padding-left .2s;
}
.news-list a:hover { color: #006bb7; padding-left: 10px; }
.news-list .news-tag {
  flex: none; font-size: 12px; padding: 0 8px; line-height: 20px; border-radius: 3px;
  background: #eef5fc; color: #276cae; border: 1px solid #d8e8f6;
}
.news-list .news-tag.hot { background: #fdf0ee; color: #d34242; border-color: #f4d9d5; }
.news-list .news-title { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-list .news-date { flex: none; color: #999; font-size: 13px; }

/* ---------------- 文章 / 友链 ---------------- */
.mod-article .bd { padding: 14px 18px; color: #555; }
.mod-article .bd p { margin-bottom: 8px; }
.mod-article .bd b { color: #2E3C57; }
.mod-links .bd { padding: 12px 15px; }
.mod-links .bd ul { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.mod-links .bd a { color: #276cae; font-size: 13px; }
.mod-links .bd a:hover { text-decoration: underline; }

/* ---------------- 页脚 ---------------- */
.footer { background: #2b3a4d; margin-top: 25px; padding: 24px 0 28px; }
.footer .inner { padding: 0 15px; }
.footer p { text-align: center; color: rgba(255,255,255,.72); font-size: 13px; line-height: 2; }
.footer p.disclaimer { color: rgba(255,255,255,.45); font-size: 12px; }

/* ---------------- 资讯弹窗 ---------------- */
.modal-mask {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(15,30,50,.55); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  animation: fadeIn .2s ease;
}
.modal-mask[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: 100%; max-width: 720px; max-height: 84vh; overflow-y: auto;
  background: #fff; border-radius: 10px; padding: 24px 28px 18px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3); animation: modalIn .25s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.modal-tag { font-size: 12px; padding: 1px 10px; border-radius: 3px; background: #eef5fc; color: #276cae; border: 1px solid #d8e8f6; }
.modal-close {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border: 0; border-radius: 50%;
  background: #f2f4f7; color: #666; transition: all .2s;
}
.modal-close:hover { background: #d34242; color: #fff; transform: rotate(90deg); }
.modal-title { font-size: 20px; line-height: 1.5; color: #212529; margin-bottom: 6px; }
.modal-meta { font-size: 13px; color: #999; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid #ebebeb; }
.modal-bd p { margin-bottom: 12px; color: #444; text-indent: 2em; }
.modal-bd table { width: 100%; border-collapse: collapse; margin: 6px 0 14px; font-size: 14px; }
.modal-bd th, .modal-bd td { border: 1px solid #e2e2e2; padding: 7px 10px; text-align: center; }
.modal-bd thead { background: #f5f8fb; }
.modal-bd td.num { font-family: Consolas, Menlo, monospace; color: #276cae; }
.modal-ft { margin-top: 14px; padding-top: 12px; border-top: 1px solid #ebebeb; font-size: 12px; color: #999; text-align: center; }

/* ---------------- Toast ---------------- */
.toast {
  position: fixed; left: 50%; bottom: 40px; transform: translateX(-50%);
  z-index: 3000; padding: 9px 22px; border-radius: 30px;
  background: rgba(30,45,65,.92); color: #fff; font-size: 14px;
  box-shadow: 0 6px 20px rgba(0,0,0,.25); animation: toastIn .25s ease;
  max-width: 86vw; text-align: center;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------------- 响应式 ---------------- */
@media screen and (max-width: 1024px) {
  .mod-head .bd ul li { padding: 0 6px; }
  .mod-head .bd ul li a { font-size: 13px; }
}
@media screen and (max-width: 860px) {
  .header { margin-bottom: 10px; }
  .mod-head .bd { height: auto; overflow: visible; }
  .mod-head .bd .inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; height: auto; min-height: 54px; }
  .mod-head .bd .logo { float: none; height: 54px; }
  .logo-mark { width: 32px; height: 32px; font-size: 20px; border-radius: 8px; }
  .logo-text { font-size: 19px; }
  .logo-text small { display: none; }
  .mod-head .menu {
    display: block; position: relative; width: 22px; height: 18px; padding: 0;
  }
  .mod-head .menu span {
    display: block; position: absolute; left: 0; width: 22px; height: 3px;
    background: #fff; border-radius: 2px; transition: all .3s;
  }
  .mod-head .menu span:nth-child(1) { top: 0; }
  .mod-head .menu span:nth-child(2) { top: 7px; }
  .mod-head .menu span:nth-child(3) { top: 14px; }
  .header.status-show .mod-head .menu span:nth-child(1) { top: 7px; transform: rotate(45deg); }
  .header.status-show .mod-head .menu span:nth-child(2) { opacity: 0; }
  .header.status-show .mod-head .menu span:nth-child(3) { top: 7px; transform: rotate(-45deg); }
  .mod-head .bd ul {
    display: none; position: static; padding: 0; flex: 1 1 100%;
    background: #fff; border-bottom: 1px solid #e2e2e2; overflow: hidden;
  }
  .header.status-show .mod-head .bd ul { display: block; }
  .mod-head .bd ul li { float: left; width: 33.33%; height: 38px; padding: 0; line-height: 38px; text-align: center; }
  .mod-head .bd ul li a {
    position: relative; left: -1px; top: -1px; padding: 0 8px; color: #555;
    border-left: 1px solid #e2e2e2; border-top: 1px solid #e2e2e2; font-size: 14px;
  }
  .mod-head .bd ul li a::after { display: none; }
  .mod-head .bd ul li a.active { color: #006bb7; background: #e9f4ff; font-weight: 600; }
  .mod-head .bd ul li a:hover { color: #006bb7; }

  .converter .row { padding: 16px; }
  .convert { flex-wrap: wrap; gap: 10px; }
  .converter .col label { line-height: 1.9; font-size: 14px; }
  .converter .amount { flex: 1 1 100%; order: 0; }
  .converter .select.from { flex: 1 1 calc(50% - 30px); order: 1; }
  .exchange { order: 2; flex: none; padding: 0; align-self: flex-end; margin-bottom: 2px; }
  .converter .select.to { flex: 1 1 calc(50% - 30px); order: 3; }
  .currency-buts { order: 4; flex: 1 1 100%; width: auto; }
  .converter .result .t { font-size: 24px; padding: 4px 0 8px; }
  .converter .result .t .res-cur { font-size: 18px; }
  .converter .result { line-height: 200%; }

  .mod-rate .bd li { width: 50%; }
  .code-search input { width: 200px; }
  .news-list .news-date { display: none; }
}
@media screen and (max-width: 560px) {
  .inner { padding: 0 10px; }
  .convert { display: block; }
  .converter .col { width: 100%; margin-bottom: 10px; }
  .exchange { display: flex; justify-content: center; margin: 2px 0 10px; }
  .exchange button { transform: rotate(90deg); }
  .exchange button:hover { transform: rotate(90deg) scale(1.05); }
  .exchange button.spin svg { animation: none; }
  .currency-buts { width: 100%; }
  .converter .result .t { font-size: 22px; }
  .copy-btn { margin-left: 6px; }
  .rate-status { margin-left: 6px; }
  .mod-panel .ft table { table-layout: auto; font-size: 13px; }
  .mod-panel .ft table th, .mod-panel .ft table td { padding: 6px 4px; }
  .mod-recommend .bd { padding: 8px; }
  .mod-recommend .bd table { font-size: 13px; min-width: 560px; }
    .mod-recommend .bd .ladder-col table { min-width: 0; }
    .ladder-col th, .ladder-col td { padding: 6px 6px; }
  .mod-recommend .bd table th, .mod-recommend .bd table td { padding: 6px 6px; line-height: 18px; }
  .mod-recommend .bd .icon { width: 44px; height: 30px; }
  .mod-recommend .bd .cur-cell { gap: 8px; }
  .bank-badge { font-size: 12px; padding: 1px 8px; }
  .module .hd { flex-wrap: wrap; }
  .code-search { width: 100%; }
  .code-search input { width: 100%; }
  .daxie-row { flex-direction: column; }
  .daxie-row button { width: 100%; }
  .capital-result p { font-size: 19px; letter-spacing: 1px; padding: 14px 10px; }
  .mod-rate .bd li { width: 50%; }
  .mod-rate .bd li a { font-size: 13px; padding: 0 6px; }
  .modal { padding: 18px 16px 14px; }
  .modal-title { font-size: 17px; }
  .footer p { font-size: 12px; }
}

/* 锚点偏移（sticky 头部） */
#paijia, #currency, #daxie, #news { scroll-margin-top: 76px; }
@media screen and (max-width: 860px) {
  #paijia, #currency, #daxie, #news, .converter { scroll-margin-top: 66px; }
}

/* ============================================================
   多页站点扩展：面包屑 / 页头 / 走势图 / 换算阶梯 / 文章页
   ============================================================ */
.mod-breadcrumbs { margin: 0 0 12px; line-height: 32px; color: #666; font-size: 13px; }
.mod-breadcrumbs a { color: #666; }
.mod-breadcrumbs a:hover { color: #006bb7; }
.mod-breadcrumbs strong { color: #276cae; font-weight: 600; }

.page-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 24px;
  background: linear-gradient(120deg, #ffffff 0%, #f4f9ff 60%, #eaf3fc 100%);
}
.page-hero .ph-text h1 { font-size: 24px; line-height: 1.4; color: #141E37; font-weight: 700; }
.page-hero .ph-text p { color: #5C667B; font-size: 14px; margin-top: 4px; max-width: 640px; }
.ph-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.ph-time { font-size: 12px; color: #889; }
.hd-more { font-size: 13px; color: #006bb7; font-weight: 400; }
.hd-more:hover { text-decoration: underline; }
.hd-wrap { flex-wrap: wrap; }
.more { padding: 12px 0 4px; text-align: center; }
.more a {
  display: inline-block; min-width: 30%; padding: 0 22px; height: 42px;
  background: #f9f9f9; border: 1px dotted #cfd8e3; line-height: 40px;
  text-align: center; border-radius: 5px; color: #276cae; transition: all .2s;
}
.more a:hover { background: #e9f4ff; border-color: #276cae; }

/* 币种页页头 */
.pair-hero { align-items: flex-start; }
.ph-flag { flex: none; padding-top: 4px; }
.hero-flag {
  display: block; width: 72px; height: 48px; object-fit: cover;
  border-radius: 6px; border: 1px solid #dfe6ee; box-shadow: 0 2px 8px rgba(20,50,90,.15);
}
.hero-flag.flag-fallback {
  display: flex; align-items: center; justify-content: center;
  background: #eef5fc; color: #276cae; font-weight: 700; font-family: Consolas, monospace; font-size: 16px;
}
.pair-code {
  display: inline-block; vertical-align: 3px; margin-left: 8px; padding: 1px 10px;
  font-size: 12px; font-weight: 600; font-family: Consolas, Menlo, monospace;
  color: #276cae; background: #eef5fc; border: 1px solid #d8e8f6; border-radius: 20px;
}
.hero-line { font-size: 15px; color: #5C667B; margin-top: 6px; }
.hero-line b { font-size: 34px; color: #2E3C57; font-family: Consolas, Menlo, monospace; letter-spacing: .5px; margin: 0 4px; }
.hero-change {
  display: inline-block; vertical-align: 6px; margin-left: 8px; padding: 2px 10px;
  font-size: 13px; font-weight: 700; border-radius: 4px;
}
.hero-change small { font-weight: 400; opacity: .75; margin-left: 2px; }
.hero-change.up { color: #d34242; background: #fdeeee; border: 1px solid #f4d5d5; }
.hero-change.down { color: #2e8b32; background: #ecf8ec; border: 1px solid #cde8cd; }
.hero-sub { font-size: 13px; color: #889; margin-top: 4px; }
.cur-meta { color: #5C667B; font-size: 13px; border-top: 1px dotted #dfe6ee; padding-top: 10px; }
.cur-meta b { color: #2E3C57; }

/* 分区/筛选 chips */
.region-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.chip {
  padding: 3px 14px; font-size: 13px; color: #555; background: #f5f7fa;
  border: 1px solid #dfe6ee; border-radius: 20px; transition: all .2s;
}
.chip:hover { color: #006bb7; border-color: #a9c4dd; background: #e9f4ff; }
.chip.active { color: #fff; background: #276cae; border-color: #276cae; box-shadow: 0 2px 8px rgba(39,108,174,.3); }
.code-count { margin-left: auto; font-size: 12px; color: #889; }
.range-btns { display: flex; gap: 6px; }

/* 可排序表头 */
th.sortable { cursor: pointer; user-select: none; position: relative; padding-right: 22px !important; }
th.sortable::after {
  content: "↕"; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  color: #b6c2d0; font-size: 12px;
}
th.sortable:hover { color: #006bb7; }
th.sortable.sorted { color: #006bb7; }
th.sortable.sorted[data-dir="asc"]::after { content: "↑"; color: #006bb7; }
th.sortable.sorted[data-dir="desc"]::after { content: "↓"; color: #006bb7; }
.c-country { color: #999; font-size: 12px; margin-left: 4px; }

/* 走势图 */
.chart-wrap { position: relative; height: 280px; }
.chart-wrap canvas { display: block; width: 100%; height: 100%; cursor: crosshair; }
.chart-tip {
  position: absolute; z-index: 5; pointer-events: none; min-width: 118px;
  background: rgba(20,35,55,.92); color: #fff; border-radius: 6px;
  padding: 7px 12px; font-size: 12px; line-height: 1.7;
  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.chart-tip b { display: block; font-family: Consolas, Menlo, monospace; color: #bcd6ee; }
.chart-tip span { font-family: Consolas, Menlo, monospace; font-size: 14px; font-weight: 700; }
.chart-tip i { font-style: normal; margin-left: 8px; font-weight: 700; }
.chart-tip i.up { color: #ff8f8f; }
.chart-tip i.down { color: #8fe09a; }

/* 换算阶梯 */
.ladder-grid { display: flex; gap: 16px; }
.ladder-col { flex: 1; min-width: 0; }
.ladder-col table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ladder-col caption {
  caption-side: top; text-align: center; font-weight: 700; font-size: 14px;
  color: #276cae; padding: 6px 0; background: #f4f9ff; border: 1px solid #e2e2e2; border-bottom: 0;
}
.ladder-col th, .ladder-col td { border: 1px solid #e2e2e2; padding: 6px 12px; text-align: center; }
.ladder-col thead { background: #f9f9f9; }
.ladder-col td.num { font-family: Consolas, Menlo, monospace; color: #2E3C57; font-weight: 600; }
.ladder-col tbody tr:hover { background: #f5faff; }

/* 大写页扩展 */
.daxie-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.daxie-chips > span { font-size: 13px; color: #889; }
.daxie-map { width: 100%; border-collapse: collapse; font-size: 15px; text-align: center; }
.daxie-map th, .daxie-map td { border: 1px solid #e2e2e2; padding: 8px 6px; }
.daxie-map thead { background: #f5f8fb; }
.daxie-map tbody td { color: #f20; font-weight: 700; font-size: 17px; }
.daxie-map tbody tr:last-child td { color: #276cae; font-size: 15px; }
.daxie-map tbody td:first-child { color: #666; font-weight: 400; font-size: 13px; background: #f9f9f9; }
/* 转换示例：票据式卡片 */
.example-tip { font-size: 12px; color: #889; }
.example-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.example-card {
  position: relative; border: 1px solid #dfe6ee; border-radius: 8px;
  background: linear-gradient(180deg, #fdfeff, #f3f8fc);
  padding: 16px 14px 12px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.example-card:hover { transform: translateY(-2px); border-color: #bcd4e8; box-shadow: 0 8px 20px rgba(39, 108, 174, .12); }
.ex-index {
  position: absolute; top: 7px; right: 10px;
  font-family: Consolas, Menlo, monospace; font-size: 11px; font-weight: 700;
  letter-spacing: 1px; color: #b9c9da;
}
.ex-body { display: flex; align-items: center; gap: 12px; min-height: 40px; }
.ex-amt { flex: none; font-family: Consolas, Menlo, monospace; font-size: 17px; font-weight: 700; color: #2E3C57; white-space: nowrap; }
.ex-amt i { font-style: normal; font-size: 13px; color: #276cae; margin-right: 2px; }
.ex-tear { flex: none; align-self: stretch; width: 0; border-left: 1px dashed #c9d6e4; position: relative; }
.ex-tear::before, .ex-tear::after {
  content: ""; position: absolute; left: -5px; width: 9px; height: 9px; border-radius: 50%;
  background: #f6fafd; border: 1px solid #dfe6ee;
}
.ex-tear::before { top: -5px; }
.ex-tear::after { bottom: -5px; }
.ex-cn {
  flex: 1; min-width: 0; color: #d4380d; font-weight: 700; font-size: 17px;
  letter-spacing: 1px; line-height: 1.5;
  font-family: "Kaiti SC", "STKaiti", "KaiTi", "DFKai-SB", serif;
}
.ex-actions { display: flex; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid #e6edf4; }
.ex-actions button {
  flex: 1; height: 30px; border-radius: 15px; font-size: 12px; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.ex-fill { border: 1px solid #276cae; background: #eef5fc; color: #276cae; font-weight: 600; }
.ex-fill:hover { background: #276cae; color: #fff; }
.ex-copy { border: 1px solid #d8e2ec; background: #fff; color: #667; }
.ex-copy:hover { border-color: #a9c4dd; background: #f7fafd; color: #276cae; }
.ex-copy.copied { border-color: #b7eb8f; background: #f6ffed; color: #389e0d; }
.daxie-row input.flash { border-color: #276cae; box-shadow: 0 0 0 3px rgba(39, 108, 174, .18); }
@media screen and (max-width: 560px) {
  .example-grid { grid-template-columns: 1fr; }
  .ex-amt { font-size: 15px; }
  .ex-cn { font-size: 15px; letter-spacing: .5px; }
  .example-tip { display: block; width: 100%; margin-top: 4px; }
}

/* 资讯列表（完整页） */
.news-full li a { align-items: flex-start; padding: 13px 4px; }
.news-main { flex: 1; min-width: 0; display: block; }
.news-main .news-title { display: block; font-size: 15px; font-weight: 600; color: #2E3C57; white-space: normal; line-height: 1.6; }
.news-list a:hover .news-main .news-title { color: #006bb7; }
.news-excerpt { display: block; font-size: 13px; color: #889; line-height: 1.7; margin-top: 3px; }
.news-full .news-date { padding-top: 3px; }
.news-none { padding: 26px; text-align: center; color: #999; }

/* 文章页 */
.article { padding: 26px 32px 18px; }
.article-hd { border-bottom: 1px solid #ebebeb; padding-bottom: 14px; margin-bottom: 18px; }
.article-hd h1 { font-size: 23px; line-height: 1.5; color: #141E37; margin: 10px 0 8px; }
.article-meta { font-size: 13px; color: #999; }
.article-bd p { margin-bottom: 14px; color: #444; text-indent: 2em; font-size: 15px; }
.article-bd table { width: 100%; border-collapse: collapse; margin: 6px 0 16px; font-size: 14px; }
.article-bd th, .article-bd td { border: 1px solid #e2e2e2; padding: 7px 10px; text-align: center; }
.article-bd thead { background: #f5f8fb; }
.article-bd td.num { font-family: Consolas, Menlo, monospace; color: #276cae; }
.article-pn {
  display: flex; justify-content: space-between; gap: 20px;
  border-top: 1px dotted #dfe6ee; padding-top: 14px; margin-top: 6px; font-size: 13px;
}
.article-pn a { color: #276cae; max-width: 48%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.article-pn a:hover { text-decoration: underline; }
.article-ft { margin-top: 14px; padding-top: 12px; border-top: 1px solid #ebebeb; font-size: 12px; color: #999; text-align: center; }

/* 页脚导航 */
.footer-nav { margin-bottom: 6px; }
.footer-nav a { color: rgba(255,255,255,.85); margin: 0 10px; font-size: 13px; }
.footer-nav a:hover { color: #fff; text-decoration: underline; }

/* 响应式补充 */
@media screen and (max-width: 860px) {
  .page-hero { flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; }
  .ph-side { flex-direction: row; align-items: center; width: 100%; justify-content: flex-start; gap: 12px; }
  .page-hero .ph-text h1 { font-size: 20px; }
  .hero-line b { font-size: 28px; }
  .chart-wrap { height: 220px; }
  .ladder-grid { flex-direction: column; gap: 12px; }
  .article { padding: 18px 16px 14px; }
  .article-hd h1 { font-size: 19px; }
  .article-pn { flex-direction: column; gap: 8px; }
  .article-pn a { max-width: 100%; }
  .code-count { margin-left: 0; width: 100%; }
}
@media screen and (max-width: 560px) {
  .pair-hero { flex-direction: row; flex-wrap: wrap; }
  .ph-flag { order: 0; }
  .pair-hero .ph-text { order: 1; flex: 1 1 calc(100% - 90px); }
  .pair-hero .ph-side { order: 2; }
  .hero-flag { width: 56px; height: 38px; }
  .hero-line b { font-size: 24px; }
  .hero-change { vertical-align: 3px; }
  .chart-wrap { height: 190px; }
  .daxie-map { font-size: 13px; min-width: 480px; }
  .daxie-map tbody td { font-size: 15px; }
  .news-full .news-date { display: none; }
}

/* 二级导航移动端：手风琴 */
@media screen and (max-width: 860px) {
  .header.status-show .mod-head .bd ul {
    display: flex; flex-wrap: wrap;
    max-height: calc(100vh - 54px); max-height: calc(100dvh - 54px);
    overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain;
    scrollbar-width: thin; scrollbar-color: #a9c4dd #eef3f8;
  }
  .header.status-show .mod-head .bd ul::-webkit-scrollbar { width: 6px; }
  .header.status-show .mod-head .bd ul::-webkit-scrollbar-track { background: #eef3f8; }
  .header.status-show .mod-head .bd ul::-webkit-scrollbar-thumb { background: #a9c4dd; border-radius: 3px; }
  .header.status-show .mod-head .bd ul::-webkit-scrollbar-thumb:hover { background: #276cae; }
  .mod-head .bd ul li { float: none; }
  .mod-head .bd ul li.nav-drop { width: 100%; order: -1; height: auto; }
  .mod-head .bd ul li:last-child { width: 66.666%; }
  .nav-drop::before { display: none; }
  .nav-drop .drop-toggle { display: flex; align-items: center; justify-content: center; gap: 4px; }
  .mod-head .bd .nav-drop .drop-toggle { display: flex; }
  .nav-drop .drop-panel {
    display: none; position: static; min-width: 0; margin: 0; padding: 4px 0;
    opacity: 1; visibility: visible; transform: none;
    border: 0; border-top: 1px solid #e2e2e2; border-radius: 0; box-shadow: none;
  }
  .nav-drop.open .drop-panel { display: block; }
  .mod-head .bd .drop-panel a { padding: 11px 16px; border: 0; left: 0; top: 0; border-radius: 0; text-align: left; min-height: 40px; }
  .drop-panel a i { margin-left: auto; }
  .mod-head .bd .drop-panel a.drop-more { border-top: 1px solid #eef2f6; border-radius: 0; text-align: center; }
}

@media screen and (max-width: 860px) {
  .code-table thead th { top: 54px; }
  .mod-recommend .bd .code-table thead th,
  .mod-recommend .bd .code-table td { padding: 6px 8px; line-height: 20px; }
}
@media screen and (max-width: 560px) {
  .mod-recommend .bd .symbol-table { min-width: 0; }
  .mod-recommend .bd .code-table { min-width: 0; }
  .mod-recommend .bd .code-table-wrap { border: 0; border-radius: 0; }
  .mod-recommend .bd .code-table,
  .mod-recommend .bd .code-table tbody,
  .mod-recommend .bd .code-table tr,
  .mod-recommend .bd .code-table td { display: block; }
  .mod-recommend .bd .code-table thead { display: none; }
  .mod-recommend .bd .code-table tbody tr {
    display: grid; grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 10px 2px 11px; border-bottom: 1px solid #eef2f6; column-gap: 10px; row-gap: 5px;
  }
  .mod-recommend .bd .code-table tbody tr:last-child { border-bottom: 0; }
  .mod-recommend .bd .code-table td { border: 0; padding: 0; min-width: 0; word-break: normal; }
  .mod-recommend .bd .code-table td:nth-child(1) {
    grid-column: 1; grid-row: 1; align-self: center;
    background: #eef5fc; border-radius: 4px; padding: 2px 7px; font-size: 12px; line-height: 18px;
  }
  .mod-recommend .bd .code-table td.c-code .c-flag,
  .mod-recommend .bd .code-table td.c-code .c-flag-fallback {
    width: 16px; height: 12px; margin-right: 5px; vertical-align: -1px;
  }
  .mod-recommend .bd .code-table td.c-code .c-flag-fallback { font-size: 9px; background: #fff; }
  .mod-recommend .bd .code-table td:nth-child(2) {
    grid-column: 2 / 4; grid-row: 1; font-weight: 600; color: #2E3C57; font-size: 14px; line-height: 20px;
  }
  .mod-recommend .bd .code-table td:nth-child(2) .c-country {
    display: block; font-size: 12px; font-weight: 400; color: #8b97a6; line-height: 16px;
  }
  .mod-recommend .bd .code-table td:nth-child(3) { grid-column: 1 / 3; grid-row: 2; }
  .mod-recommend .bd .code-table td:nth-child(4) { grid-column: 3; grid-row: 2; text-align: right; }
  .mod-recommend .bd .code-table td:nth-child(3)::before,
  .mod-recommend .bd .code-table td:nth-child(4)::before {
    color: #98a4b3; font-size: 11px; margin-right: 3px;
  }
  .mod-recommend .bd .code-table td:nth-child(3)::before { content: "1 CNY 兑 "; }
  .mod-recommend .bd .code-table td:nth-child(4)::before { content: "1 单位兑 CNY "; }
  .mod-recommend .bd .code-table td.c-rate { white-space: nowrap; font-size: 13px; }
  .symbol-table td { padding: 7px 6px; }
}
.code-sortbar { display: none; align-items: center; gap: 8px; margin: 2px 0 10px; font-size: 13px; color: #667; }
.code-sortbar label { flex: none; }
.code-sortbar select {
  flex: 1; height: 32px; border: 1px solid #d8e2ec; border-radius: 16px; padding: 0 10px;
  background: #f7fafd; color: #2E3C57; font-size: 13px; outline: none;
}
.code-sortbar select:focus { border-color: #276cae; }
.code-sortbar button {
  flex: none; height: 32px; border: 1px solid #d8e2ec; border-radius: 16px;
  background: #f7fafd; color: #276cae; font-size: 13px; padding: 0 12px; cursor: pointer;
}
.code-sortbar button:hover { border-color: #a9c4dd; background: #e9f4ff; }
@media screen and (max-width: 560px) {
  .mod-recommend .bd .code-sortbar { display: flex; }
}

/* 牌价页扩展 */
.ph-stats { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 12px; }
.ph-stats span { font-size: 12px; color: #889; }
.ph-stats b { font-size: 18px; color: #276cae; margin-right: 4px; font-family: Consolas, Menlo, monospace; }
.bank-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 10px; }
.bank-search { position: relative; flex: 1 1 230px; min-width: 200px; }
.bank-search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: #9ab2c8; pointer-events: none; }
.bank-search input {
  width: 100%; height: 34px; padding: 0 12px 0 33px; border: 1px solid #d8e2ec; border-radius: 17px;
  font-size: 13px; color: #2E3C57; background: #f7fafd; outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.bank-search input:focus { border-color: #276cae; background: #fff; box-shadow: 0 0 0 3px rgba(39,108,174,.12); }
.bank-toolbar .region-chips { margin-bottom: 0; }
.unit-toggle { display: inline-flex; border: 1px solid #d8e2ec; border-radius: 17px; overflow: hidden; background: #f7fafd; flex: none; }
.unit-toggle button { border: 0; background: transparent; padding: 7px 14px; font-size: 12px; color: #667; cursor: pointer; transition: background .2s, color .2s; }
.unit-toggle button:hover { color: #006bb7; }
.unit-toggle button.active { background: #276cae; color: #fff; }
.bank-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px; font-size: 12px; color: #889; margin: 2px 2px 8px; }
.bank-empty { padding: 26px 0; text-align: center; color: #999; font-size: 13px; }
.ex-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.ex-card {
  border: 1px solid #e2e2e2; border-radius: 8px; padding: 14px;
  background: linear-gradient(180deg, #fbfdff, #f3f8fc);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.ex-card:hover { transform: translateY(-2px); border-color: #bcd4e8; box-shadow: 0 6px 16px rgba(39,108,174,.12); }
.ex-label { font-size: 12px; color: #667; }
.ex-num { font-size: 20px; font-weight: 700; color: #2E3C57; margin: 6px 0; font-family: Consolas, Menlo, monospace; }
.ex-card.buy .ex-num b { color: #006bb7; }
.ex-card.warn .ex-num b { color: #d4380d; }
.ex-desc { font-size: 12px; color: #999; line-height: 1.6; }
.compare-table td:first-child { font-weight: 600; color: #2E3C57; white-space: nowrap; }
.compare-table td { line-height: 1.7; }
.tool-links { margin-top: 12px; font-size: 13px; color: #889; }
.tool-links a { color: #006bb7; margin-right: 16px; }
.tool-links a:hover { text-decoration: underline; }
@media screen and (max-width: 860px) {
  .ex-grid { grid-template-columns: repeat(2, 1fr); }
}
@media screen and (max-width: 560px) {
  .bank-toolbar { flex-direction: column; align-items: stretch; }
  .bank-search { flex-basis: auto; }
  .unit-toggle { align-self: flex-start; }
  .ex-grid { grid-template-columns: 1fr; }
  .ph-stats { gap: 6px 16px; }
}

/* ---------------- 系统配置：公告条 / 维护遮罩 ---------------- */
.announce-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 16px; font-size: 13px;
  background: #eef5fc; color: #276cae; border-bottom: 1px solid #cfe2f3;
}
.announce-bar .ab-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(39, 108, 174, .15); }
.announce-bar.lv-warn { background: #fff7e6; color: #ad6800; border-color: #ffe1a8; }
.announce-bar.lv-danger { background: #fff1f0; color: #cf1322; border-color: #ffccc7; }
.announce-bar .ab-text { flex: 1; min-width: 0; }
.announce-bar .ab-close {
  flex: none; width: 22px; height: 22px; border: 0; border-radius: 50%;
  background: transparent; color: inherit; font-size: 15px; line-height: 1; cursor: pointer;
}
.announce-bar .ab-close:hover { background: rgba(0, 0, 0, .08); }
.maintenance-mask {
  position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center;
  background: radial-gradient(1200px 600px at 50% -10%, #2f7cc0 0%, #17324d 55%, #0d1b2a 100%);
  padding: 20px;
}
.mt-card {
  max-width: 420px; text-align: center; color: #eaf2fa;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 14px; padding: 38px 30px; backdrop-filter: blur(6px);
}
.mt-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 14px; margin-bottom: 16px;
  background: linear-gradient(145deg, #fff, #dcecfb); color: #276cae; font-size: 30px; font-weight: 800;
}
.mt-card h1 { font-size: 22px; margin-bottom: 10px; }
.mt-card p { font-size: 14px; line-height: 1.8; color: #b9c9da; margin-bottom: 22px; }
.mt-btn {
  height: 40px; padding: 0 26px; border: 0; border-radius: 20px; cursor: pointer;
  background: linear-gradient(135deg, #2f7cc0, #276cae); color: #fff; font-size: 14px;
  box-shadow: 0 6px 18px rgba(20, 60, 110, .45);
}
.mt-btn:hover { filter: brightness(1.1); }