/* ==========================================================================
   链上码头 · 财经刊物浅色风 v3
   精致浅色金融风：暖纸底色 / 深海军蓝 / 衬线标题 / 等宽行情数字
   兼容模板全部类名；未改动任何 API 与动态行情逻辑
   ========================================================================== */

:root {
    /* 色彩体系 */
    --paper: #faf9f6;            /* 暖纸底色 */
    --card: #ffffff;
    --line: #e8e3d9;             /* 暖细线 */
    --line-soft: #f1eee7;
    --ink-1: #171b26;            /* 正文墨色 */
    --ink-2: #5a6474;
    --ink-3: #9aa3b2;

    --brand: #1d4ed8;            /* 主蓝 */
    --brand-deep: #14336e;       /* 深海军蓝 */
    --brand-soft: #eef3fc;
    --brand-line: #c6d7f6;
    --gold: #b98a2f;             /* 低调金（星级/徽标） */

    --up: #0e9f6e;               /* 涨-绿 */
    --down: #e5484d;             /* 跌-红 */

    /* 圆角 / 阴影 */
    --r-lg: 12px;
    --r-md: 9px;
    --r-sm: 6px;
    --shadow-card: 0 1px 2px rgba(23,27,38,.04), 0 6px 18px rgba(23,27,38,.05);
    --shadow-hover: 0 8px 28px rgba(23,27,38,.10);
    --shadow-brand: 0 6px 20px rgba(29,78,216,.22);

    /* 字体体系 */
    --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", serif;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    --font-num: "SF Pro Display", "Segoe UI", "Roboto Mono", "JetBrains Mono", ui-monospace, "PingFang SC", monospace;
}

/* ========== 基础 ========== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body {
    font-family: var(--font-sans);
    background: var(--paper);
    background-image:
        radial-gradient(circle at 12% -8%, rgba(29,78,216,.045), transparent 32%),
        radial-gradient(circle at 90% 0%, rgba(14,159,110,.028), transparent 26%);
    background-attachment: fixed;
    color: var(--ink-1);
    line-height: 1.65;
    font-size: 14px;
}
a { color: inherit; text-decoration: none; transition: color .18s; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
::selection { background: rgba(29,78,216,.14); }

/* 数字统一等宽：行情可读性 */
.price, .num, .crypto-num, .cpp-num, .q-price, .rk-num, .ms-price, .ms-chg, .btc-chart-price, .btc-chart-chg, .cs-v, .jys-score-num, .rk-hot, .re-time, .lv-t b, .cal-t, .am-fav {
    font-family: var(--font-num);
    font-variant-numeric: tabular-nums;
}

/* 标题统一衬线（财经刊物感） */
h1, h2, h3, .sec-t, .widget-hd h3, .brand-name, .ft-logo, .coin-panel-name, .article-hd h1, .page-hd h1, .live-hd h1, .search-hero h1, .fl-hd {
    font-family: var(--font-serif);
}

/* ========== 顶部信息条 ========== */
.hd-top { background: linear-gradient(90deg, #0d1b36 0%, #14336e 100%); color: #9fb0d6; font-size: 12px; }
.hd-top-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 34px; }
.hd-top-slogan { letter-spacing: .6px; color: #c3d0ea; }
.hd-top-meta { display: flex; gap: 18px; }
.hd-top-meta a { color: #9fb0d6; transition: color .2s; }
.hd-top-meta a:hover { color: #fff; }

/* ========== 主导航 ========== */
.hd {
    background: rgba(255,255,255,.9);
    backdrop-filter: saturate(180%) blur(12px);
    -webkit-backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line-soft);
    position: sticky; top: 0; z-index: 100;
}
.hd-inner { display: flex; align-items: center; gap: 36px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
a.logo img { max-height: 24px; }
a.logo .brand-name {
    font-weight: 700; font-size: 20px; letter-spacing: .5px;
    background: linear-gradient(100deg, var(--brand-deep) 10%, var(--brand) 55%, #0ea5e9 100%);
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    color: var(--brand);
}
.nav { display: flex; gap: 4px; }
.nav a {
    font-size: 15px; font-weight: 500; color: var(--ink-2); padding: 9px 16px; border-radius: var(--r-sm);
    transition: color .18s, background .18s; position: relative;
}
.nav a.is-active, .nav a:hover { color: var(--brand); background: var(--brand-soft); }
.nav a.is-active::after {
    content: ''; position: absolute; left: 16px; right: 16px; bottom: -14px; height: 2px;
    background: linear-gradient(90deg, var(--brand), #0ea5e9); border-radius: 2px;
}
.hd-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.search-form {
    display: flex; align-items: center; gap: 8px; background: var(--line-soft);
    border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px;
    transition: border .2s, background .2s, box-shadow .2s;
}
.search-form:focus-within { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(29,78,216,.10); }
.search-form svg { color: var(--ink-3); flex-shrink: 0; }
.search-form input { border: none; background: transparent; outline: none; font-size: 13px; width: 176px; color: var(--ink-1); }
.search-form input::placeholder { color: var(--ink-3); }
.hd-menu { display: none; background: none; border: none; cursor: pointer; color: var(--ink-1); }

/* ========== 区块标题 ========== */
.sec-hd { display: flex; align-items: center; justify-content: space-between; margin: 30px 0 16px; padding-bottom: 14px; position: relative; border-bottom: 1px solid var(--line-soft); }
.sec-t { font-size: 21px; font-weight: 700; color: var(--ink-1); display: flex; align-items: center; gap: 12px; letter-spacing: .3px; }
.sec-t::before { content: ''; width: 4px; height: 22px; border-radius: 2px; background: linear-gradient(180deg, var(--brand), #0ea5e9); }
.sec-sub { font-size: 12px; color: var(--ink-3); font-weight: normal; display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px; background: #fff; border: 1px solid var(--line); border-radius: 20px; font-family: var(--font-sans); }
.sec-sub::before { content: ''; width: 6px; height: 6px; background: var(--down); border-radius: 50%; animation: pulse-dot 1.5s ease-in-out infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(1.25); } }
.sec-more {
    font-size: 13px; color: var(--brand); padding: 7px 18px; border: 1px solid var(--brand-line); border-radius: 999px;
    transition: all .22s; display: inline-flex; align-items: center; gap: 4px; background: var(--brand-soft); font-weight: 500;
}
.sec-more:hover { background: var(--brand); color: #fff; border-color: var(--brand); box-shadow: var(--shadow-brand); transform: translateY(-1px); }

/* ========== 首页行情概览条 ========== */
.market-strip {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(176px, 1fr)); gap: 0;
    background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-lg);
    margin-top: 18px; box-shadow: var(--shadow-card); overflow: hidden;
}
.market-strip-item {
    display: flex; align-items: center; gap: 10px; padding: 13px 18px;
    border-left: 1px solid var(--line-soft); transition: background .18s; position: relative;
    min-width: 0; box-sizing: border-box;
}
.market-strip-item:first-child { border-left: none; }
.market-strip-item:hover { background: var(--brand-soft); }
.market-strip-item:hover::before {
    content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 2px;
    background: linear-gradient(180deg, var(--brand), #0ea5e9); border-radius: 2px;
}
.ms-name { font-size: 13px; font-weight: 600; color: var(--ink-1); display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; flex-shrink: 0; }
.ms-code { font-size: 11px; color: var(--ink-3); font-weight: normal; white-space: nowrap; }
.ms-price { font-size: 13px; font-weight: 700; color: var(--ink-1); margin-left: auto; white-space: nowrap; flex-shrink: 0; }
.ms-chg { font-size: 12px; font-weight: 600; min-width: 58px; text-align: right; white-space: nowrap; flex-shrink: 0; }

/* ========== 首页三栏布局 ========== */
.home-3col { display: grid; grid-template-columns: 252px minmax(0, 1fr) 292px; gap: 22px; margin-top: 22px; align-items: start; }
.home-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; position: sticky; top: 78px; }
.home-main { min-width: 0; }

/* ========== 首页 BTC 走势图 ========== */
.btc-chart-card { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.btc-chart-hd { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 15px 18px; border-bottom: 1px solid var(--line-soft); }
.btc-chart-id { display: flex; align-items: baseline; gap: 12px; }
.btc-chart-sym { font-size: 15px; font-weight: 700; color: var(--ink-1); }
.btc-chart-price { font-size: 24px; font-weight: 700; letter-spacing: -.3px; color: var(--ink-1); }
.btc-chart-chg { font-size: 13px; font-weight: 600; }
.btc-chart-chg.up { color: var(--up); }
.btc-chart-chg.down { color: var(--down); }
.btc-chart-tabs { display: flex; gap: 4px; background: var(--line-soft); padding: 3px; border-radius: var(--r-sm); }
.btc-chart-tabs a { padding: 4px 13px; border-radius: 5px; font-size: 12px; color: var(--ink-2); transition: all .18s; }
.btc-chart-tabs a:hover { color: var(--brand); }
.btc-chart-tabs a.on { background: #fff; color: var(--brand); font-weight: 600; box-shadow: 0 1px 3px rgba(23,27,38,.10); }
.btc-chart { width: 100%; height: 330px; }

/* ========== 热门资讯（左图右文） ========== */
.hot-list { display: flex; flex-direction: column; gap: 14px; }
.hot-item {
    display: flex; gap: 18px; background: var(--card); border-radius: var(--r-lg); overflow: hidden; padding: 16px;
    transition: box-shadow .22s, transform .22s, border-color .22s; border: 1px solid var(--line-soft); box-shadow: var(--shadow-card);
}
.hot-item:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); border-color: var(--brand-line); }
.hot-item-fig { flex: 0 0 200px; height: 132px; border-radius: var(--r-md); overflow: hidden; position: relative; }
.hot-item-fig::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 62%, rgba(13,27,54,.16)); }
.hot-item-fig img { width: 100%; height: 100%; object-fit: cover; transition: transform .32s; }
.hot-item:hover .hot-item-fig img { transform: scale(1.05); }
.hot-item-body { flex: 1; min-width: 0; display: flex; flex-direction: column; padding: 2px 0; }
.hot-item-body h3 { font-size: 16px; line-height: 1.5; margin-bottom: 8px; font-weight: 600; color: var(--ink-1); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .2s; }
.hot-item:hover .hot-item-body h3 { color: var(--brand); }
.hot-item-body p { font-size: 13px; color: var(--ink-2); line-height: 1.65; margin-bottom: 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hot-item-body .hot-meta { margin-top: auto; display: flex; align-items: center; gap: 14px; font-size: 12px; color: var(--ink-3); }
.hot-item-body .hot-meta span { display: inline-flex; align-items: center; gap: 4px; }
.hot-item-body .hot-meta span::before { content: ''; width: 3px; height: 3px; border-radius: 50%; background: #cdd3de; }

/* 头条样式（第一条） */
.hot-item.featured { display: block; padding: 0; }
.hot-item.featured .hot-item-fig { flex: none; width: 100%; height: 300px; border-radius: 0; }
.hot-item.featured .hot-item-body { padding: 20px 22px 18px; }
.hot-item.featured .hot-item-body h3 { font-family: var(--font-serif); font-size: 22px; font-weight: 700; line-height: 1.45; margin-bottom: 10px; -webkit-line-clamp: 2; }
.hot-item.featured .hot-item-body p { font-size: 14px; -webkit-line-clamp: 2; }

/* ========== 行情表 ========== */
.market-table-wrap { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.market-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.market-table th, .market-table td { padding: 13px 15px; text-align: left; border-bottom: 1px solid var(--line-soft); }
.market-table thead th {
    background: linear-gradient(180deg, #12294f 0%, #14336e 100%); color: #dbe5f7; font-weight: 600; letter-spacing: .4px; font-size: 12.5px;
    position: sticky; top: 0; white-space: nowrap;
}
.market-table tbody tr { transition: background .15s; }
.market-table tbody tr:hover { background: #f6f8fc; }
.market-table tbody tr:last-child td { border-bottom: none; }
.coin-cell { display: flex; align-items: center; gap: 10px; }
.coin-icon-sm {
    width: 28px; height: 28px; border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-soft), #e0ecfb); display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 700; color: var(--brand); flex-shrink: 0; object-fit: cover;
}
.coin-symbol { font-weight: 600; }
.coin-desc { font-size: 12px; color: var(--ink-3); }
.up { color: var(--up); }
.down { color: var(--down); }

/* ========== 列表页排名徽标 ========== */
.rank-badge {
    display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px;
    padding: 0 7px; border-radius: 6px; background: #eef1f6; color: var(--ink-2);
    font-size: 12px; font-weight: 700; font-family: var(--font-num);
}
.market-table tbody tr:first-child .rank-badge,
.market-table tbody tr:nth-child(2) .rank-badge,
.market-table tbody tr:nth-child(3) .rank-badge { background: linear-gradient(135deg, #0f2a55, var(--brand-deep)); color: #fff; }
.market-table tbody tr:first-child .rank-badge { background: linear-gradient(135deg, #0f2a55, var(--gold)); }

/* ========== 行情数据来源标注 ========== */
.cpp-src { color: var(--ink-3); font-size: 12px; font-weight: normal; }

/* ========== 侧栏 ========== */
.widget { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.widget-hd {
    display: flex; align-items: center; justify-content: space-between; padding: 14px 16px;
    border-bottom: 1px solid var(--line-soft); position: relative;
}
.widget-hd h3 { font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 8px; letter-spacing: .3px; }
.widget-hd h3::before { content: ''; width: 4px; height: 15px; border-radius: 2px; background: linear-gradient(180deg, var(--brand), #0ea5e9); }
.wh-more { font-size: 12px; color: var(--brand); font-weight: 500; }
.wh-more:hover { text-decoration: underline; }
.widget-body { padding: 10px 16px; }
.rank li { padding: 9px 0; border-bottom: 1px dashed var(--line-soft); }
.rank li:last-child { border-bottom: none; }
.rank a { display: flex; align-items: center; gap: 8px; font-size: 14px; }
.rank a:hover .rk-txt { color: var(--brand); }
.rk-no {
    width: 21px; height: 21px; border-radius: 6px; background: #eef1f6; display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; color: var(--ink-2); flex-shrink: 0; font-family: var(--font-num);
}
.rank li:nth-child(1) .rk-no, .rank li:nth-child(2) .rk-no, .rank li:nth-child(3) .rk-no { background: linear-gradient(135deg, #0f2a55, var(--brand-deep)); color: #fff; }
.rank li:nth-child(1) .rk-no { background: linear-gradient(135deg, #0f2a55, var(--gold)); }
.rk-txt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .2s; }
.rk-hot { font-size: 11px; color: var(--ink-3); flex-shrink: 0; }
.quote { width: 100%; border-collapse: collapse; font-size: 12px; }
.quote th, .quote td { padding: 8px 4px; text-align: left; font-size: 14px; }
.quote th { color: var(--ink-3); font-weight: 500; font-size: 12px; }
.quote td { border-bottom: 1px solid var(--line-soft); }
.quote tr:last-child td { border-bottom: none; }
.q-code { display: block; font-size: 11px; color: var(--ink-3); }
.rank-coin .rk-icon { width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; object-fit: cover; }
.rank-coin .rk-num { font-size: 12px; flex-shrink: 0; }
.rank-coin .rk-star { font-size: 11px; flex-shrink: 0; letter-spacing: 0; }
.star { color: var(--gold); font-size: 13px; letter-spacing: 1px; }

/* ========== 面包屑 ========== */
.crumb { padding: 16px 0 8px; font-size: 13px; color: var(--ink-3); display: flex; align-items: center; gap: 2px; }
.crumb i { margin: 0 6px; font-style: normal; color: #cdd3de; }
.crumb a { color: var(--ink-2); transition: color .2s; }
.crumb a:hover { color: var(--brand); }
.crumb .cur { color: var(--ink-1); font-weight: 500; }

/* ========== 列表页 ========== */
.page-hd { padding: 20px 0 8px; }
.page-hd h1 { font-size: 28px; font-weight: 700; letter-spacing: .4px; }
.page-hd p { font-size: 13px; color: var(--ink-2); margin-top: 6px; }
.layout { display: grid; grid-template-columns: 1fr 300px; gap: 24px; margin-top: 16px; }
.layout-main { min-width: 0; }
.feed { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.feed li { border-bottom: 1px solid var(--line-soft); }
.feed li:last-child { border-bottom: none; }
.fitem { display: flex; gap: 18px; padding: 18px; transition: background .18s; }
.fitem:hover { background: #f7f9fd; }
.fitem-body { flex: 1; min-width: 0; }
.fitem-body h3 { font-size: 16px; line-height: 1.5; margin-bottom: 6px; font-weight: 600; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color .2s; }
.fitem:hover .fitem-body h3 { color: var(--brand); }
.fdesc { font-size: 14px; color: var(--ink-2); margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fitem-meta { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--ink-3); }
.fm-right { display: flex; align-items: center; gap: 10px; }
.tag { display: inline-block; padding: 2px 9px; border-radius: 4px; font-size: 11px; }
.tag-line { border: 1px solid var(--line); color: var(--ink-2); background: #f8f9fb; }
.fitem-fig { flex: 0 0 180px; height: 120px; border-radius: var(--r-sm); overflow: hidden; }
.fitem-fig img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.fitem:hover .fitem-fig img { transform: scale(1.04); }
.pager-wrap { padding: 20px 16px; text-align: center; }
.pager-wrap a, .pager-wrap span { display: inline-block; padding: 6px 12px; margin: 0 2px; border-radius: var(--r-sm); font-size: 13px; }
.pager-wrap a:hover { background: var(--brand-soft); color: var(--brand); }
.pager-wrap .current, .pager-wrap .on { background: var(--brand); color: #fff; }
.pager-info { text-align: center; font-size: 12px; color: var(--ink-3); padding: 0 0 16px; margin-top: -8px; }

/* 迅睿原生 {$pages} 输出 <ul class="pagination"><li>...</li></ul> */
.pager-wrap .pagination { display: inline-flex; list-style: none; padding: 0; margin: 0; gap: 6px; }
.pager-wrap .pagination li { display: inline-block; }
.pager-wrap .pagination li a,
.pager-wrap .pagination li span { display: inline-block; padding: 7px 13px; min-width: 34px; border-radius: var(--r-sm); font-size: 13px; color: var(--ink-2); background: #fff; border: 1px solid var(--line); transition: all .2s; text-align: center; }
.pager-wrap .pagination li a:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.pager-wrap .pagination li.active a,
.pager-wrap .pagination li.active span { background: var(--brand); border-color: var(--brand); color: #fff; font-weight: 600; box-shadow: var(--shadow-brand); }
.pager-wrap .pagination li.disabled a,
.pager-wrap .pagination li.disabled span { color: #c0c6d0; cursor: not-allowed; background: #f7f8fa; }
.pager-wrap .pagination li.disabled a:hover { border-color: var(--line); color: #c0c6d0; background: #f7f8fa; }

/* ========== 搜索区 ========== */
.search-hero {
    background: linear-gradient(135deg, #0d1b36 0%, var(--brand-deep) 55%, #1d4ed8 120%); border-radius: var(--r-lg);
    padding: 36px 28px; margin-top: 18px; text-align: center; color: #fff; position: relative; overflow: hidden;
    box-shadow: 0 12px 32px rgba(20,51,110,.28);
}
.search-hero::before { content: ''; position: absolute; right: -40px; top: -60px; width: 240px; height: 240px; background: radial-gradient(circle, rgba(255,255,255,.12), transparent 60%); }
.search-hero h1 { font-size: 26px; font-weight: 700; margin-bottom: 20px; letter-spacing: .4px; }
.sh-form { display: flex; gap: 0; max-width: 580px; margin: 0 auto; position: relative; z-index: 1; }
.sh-input { flex: 1; height: 48px; padding: 0 20px; border: 2px solid #fff; border-radius: 10px 0 0 10px; font-size: 15px; outline: none; background: #fff; color: var(--ink-1); }
.sh-input:focus { border-color: #0ea5e9; }
.sh-btn { padding: 0 38px; height: 48px; background: #0ea5e9; color: #fff; border: none; border-radius: 0 10px 10px 0; font-size: 15px; font-weight: 600; cursor: pointer; transition: background .2s; }
.sh-btn:hover { background: #0891b2; }

.search-stat { padding: 16px 2px; font-size: 14px; color: var(--ink-2); }
.search-stat b { color: var(--brand); font-weight: 700; }

.filter-bar {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: var(--card); border: 1px solid var(--line-soft);
    border-radius: var(--r-md); padding: 12px 16px; margin-bottom: 16px; box-shadow: var(--shadow-card);
}
.fb-label { font-size: 14px; color: var(--ink-3); margin-right: 4px; }
.filter-bar a { font-size: 13px; color: var(--ink-2); padding: 5px 14px; border-radius: var(--r-sm); transition: all .2s; }
.filter-bar a:hover { color: var(--brand); background: var(--brand-soft); }
.filter-bar a.is-on { background: var(--brand); color: #fff; font-weight: 600; }
.fb-right { margin-left: auto; display: flex; gap: 8px; }
.fb-sort { font-size: 13px; color: var(--ink-2); padding: 5px 14px; border-radius: var(--r-sm); border: 1px solid var(--line); background: #fff; transition: all .2s; }
.fb-sort:hover { border-color: var(--brand); color: var(--brand); }
.fb-sort.is-on { background: var(--brand); color: #fff; border-color: var(--brand); }

.search-empty { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 52px 24px; text-align: center; font-size: 15px; color: var(--ink-3); box-shadow: var(--shadow-card); }

/* ========== 详情页 ========== */
.article { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 30px; box-shadow: var(--shadow-card); }
.article-hd { margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line-soft); }
.article-hd h1 { font-size: 25px; line-height: 1.5; font-weight: 700; letter-spacing: .3px; }
.article-meta { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-3); margin-top: 14px; flex-wrap: wrap; }
.dot { width: 3px; height: 3px; border-radius: 50%; background: #cdd3de; }
.am-fav { color: var(--brand); font-weight: 700; }
.article-body { font-size: 15px; line-height: 1.8; color: var(--ink-2); }
.article-body p { font-size: 16px; line-height: 30px; text-indent: 2em; }
.article-body img { max-width: 100%; height: auto; border-radius: var(--r-md); margin: 16px auto; box-shadow: var(--shadow-card); }
.article-body h2, .article-body h3 { color: var(--ink-1); margin: 22px 0 12px; line-height: 1.45; }
.article-body h2 { font-size: 20px; }
.article-body h3 { font-size: 17px; }
.article-body blockquote { border-left: 3px solid var(--brand); background: var(--brand-soft); padding: 12px 16px; margin: 14px 0; border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--ink-1); }
.article-body a { color: var(--brand); border-bottom: 1px dashed var(--brand-line); }
.article-body table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.article-body th, .article-body td { border: 1px solid var(--line); padding: 8px 12px; }
.article-body th { background: #f7f9fc; }
.article-tags { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line-soft); }
.at-label { font-size: 13px; color: var(--ink-3); margin-right: 8px; }
.article-tags a { display: inline-block; padding: 3px 11px; margin: 0 6px 6px 0; background: var(--brand-soft); border: 1px solid var(--brand-line); border-radius: 999px; font-size: 12px; color: var(--brand); transition: all .2s; }
.article-tags a:hover { background: var(--brand); color: #fff; }
.pn-nav { display: flex; justify-content: space-between; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line-soft); gap: 24px; }
.pn-prev, .pn-next { font-size: 13px; color: var(--ink-2); max-width: 45%; line-height: 1.5; transition: color .2s; }
.pn-k { display: block; font-size: 12px; color: var(--ink-3); margin-bottom: 3px; }
.pn-prev:hover, .pn-next:hover { color: var(--brand); }
.related { margin-top: 26px; }
.related ul { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.related li { border-bottom: 1px solid var(--line-soft); }
.related li:last-child { border-bottom: none; }
.related a { display: flex; justify-content: space-between; align-items: center; padding: 13px 16px; font-size: 16px; transition: background .18s, color .2s; }
.related a:hover { color: var(--brand); background: #f7f9fd; }
.re-time { font-size: 12px; color: var(--ink-3); flex-shrink: 0; margin-left: 16px; }

/* ========== 行情详情页 ========== */
.coin-panel {
    background: linear-gradient(165deg, #ffffff 0%, #f3f7fe 100%); border: 1px solid var(--brand-line);
    border-radius: var(--r-lg); padding: 24px 26px; box-shadow: var(--shadow-card); position: relative; overflow: hidden;
}
.coin-panel::before { content: ''; position: absolute; right: -60px; top: -70px; width: 260px; height: 260px; background: radial-gradient(circle, rgba(29,78,216,.07), transparent 62%); }
.coin-panel-hd { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; position: relative; z-index: 1; }
.coin-panel-id { display: flex; align-items: center; gap: 14px; }
.coin-icon-lg {
    width: 54px; height: 54px; border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-soft), #e0ecfb); display: flex; align-items: center; justify-content: center;
    font-size: 24px; font-weight: 700; color: var(--brand); flex-shrink: 0; box-shadow: inset 0 0 0 1px var(--brand-line); object-fit: cover;
}
.coin-panel-name { font-size: 25px; font-weight: 700; line-height: 1.3; letter-spacing: .3px; }
.coin-panel-code { font-size: 12px; color: var(--ink-3); margin-top: 4px; letter-spacing: .4px; }
.coin-panel-price { text-align: right; }
.cpp-num { font-size: 32px; font-weight: 700; letter-spacing: -.5px; color: var(--ink-1); }
.cpp-chg { font-size: 14px; font-weight: 600; margin-top: 3px; }
.cpp-chg span { color: var(--ink-3); font-weight: normal; font-size: 11px; margin-left: 3px; }
.coin-stats {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 24px; margin-top: 24px; padding-top: 20px;
    border-top: 1px solid var(--line); position: relative; z-index: 1;
}
.coin-stats li { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line-soft); border-radius: var(--r-sm); padding: 11px 13px; transition: border-color .2s, transform .2s; }
.coin-stats li:hover { border-color: var(--brand-line); transform: translateY(-1px); }
.cs-k { font-size: 12px; color: var(--ink-3); }
.cs-v { font-size: 14px; font-weight: 600; color: var(--ink-1); margin-top: 3px; }
.coin-ex { margin-top: 18px; }
.ex-empty { text-align: center; color: var(--ink-3); padding: 24px 0 !important; }
.jys-score { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.jys-score-num { font-size: 32px; font-weight: 700; color: var(--brand); letter-spacing: -.5px; }
.jys-stats { grid-template-columns: repeat(4, 1fr); }

/* ========== 快讯页 ========== */
.live-hd { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 18px 0 10px; }
.lh-l { display: flex; align-items: center; gap: 12px; }
.lh-l h1 { font-size: 25px; font-weight: 700; letter-spacing: .4px; }
.live-dot { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: #fff; background: var(--down); padding: 4px 12px; border-radius: 999px; font-weight: 600; }
.live-dot::before { content: ''; width: 7px; height: 7px; background: #fff; border-radius: 50%; animation: pulse-dot 1.4s ease-in-out infinite; }
.lh-desc { font-size: 13px; color: var(--ink-3); }
.live-list { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.live-list li { display: flex; gap: 18px; padding: 18px 20px; border-bottom: 1px solid var(--line-soft); transition: background .18s; position: relative; }
.live-list li:last-child { border-bottom: none; }
.live-list li:hover { background: #f7f9fd; }
.live-list li.is-key { background: linear-gradient(90deg, #fff6f5, #fff); }
.lv-t { flex: 0 0 78px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; padding-top: 2px; border-right: 1px solid var(--line-soft); margin-right: 4px; }
.lv-t b { font-size: 17px; font-weight: 700; color: var(--brand); }
.lv-t span { font-size: 11px; color: var(--ink-3); margin-top: 2px; }
.lv-c { flex: 1; min-width: 0; }
.lv-c h3 { font-size: 16px; line-height: 1.5; margin-bottom: 6px; font-weight: 600; }
.lv-c h3 a:hover { color: var(--brand); }
.lv-txt p { font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.lv-foot { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--ink-3); margin-top: 10px; }
.lv-src { color: var(--ink-2); }

/* ========== 币圈日历 ========== */
.cal-day { font-size: 14px; font-weight: 600; margin-bottom: 12px; color: var(--ink-1); }
.cal-day span { display: inline-flex; align-items: center; gap: 8px; }
.cal-day b { color: var(--brand); font-family: var(--font-num); }
.cal li { padding: 7px 0; border-bottom: 1px dashed var(--line-soft); }
.cal li:last-child { border-bottom: none; }
.cal-t { font-size: 12px; color: var(--ink-3); }
.cal-star { display: inline-block; color: var(--brand); background: var(--brand-soft); padding: 0 6px; border-radius: 4px; margin-left: 4px; font-size: 11px; font-family: var(--font-sans); }
.cal-n { font-size: 13px; color: var(--ink-1); line-height: 1.5; }

/* ========== 推广卡片 ========== */
.ad-box {
    display: block; background: linear-gradient(135deg, var(--brand-deep), #1d4ed8); border-radius: var(--r-lg); padding: 24px 20px; color: #fff;
    transition: transform .2s, box-shadow .2s; box-shadow: var(--shadow-brand); position: relative; overflow: hidden;
}
.ad-box::after { content: ''; position: absolute; right: -30px; bottom: -40px; width: 130px; height: 130px; background: radial-gradient(circle, rgba(255,255,255,.16), transparent 62%); }
.ad-kicker { font-size: 11px; opacity: .8; letter-spacing: 1.5px; text-transform: uppercase; }
.ad-box h4 { font-size: 18px; margin: 10px 0 6px; line-height: 1.45; font-weight: 700; font-family: var(--font-serif); }
.ad-box p { font-size: 12px; opacity: .85; }
.ad-box:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(20,51,110,.34); }

/* ========== 底部 ========== */
.ft { background: linear-gradient(180deg, #0d1b36 0%, #101d33 100%); color: #98a2b3; padding: 44px 0 28px; margin-top: 34px; }
.ft-top { display: flex; justify-content: space-between; gap: 48px; margin-bottom: 28px; }
.ft-brand { max-width: 430px; }
.ft-cols { display: flex; gap: 68px; flex-wrap: wrap; }
.ft-logo {
    font-size: 24px; font-weight: 700; color: #fff; margin-bottom: 12px; letter-spacing: .6px;
    display: flex; align-items: center; gap: 8px;
}
.ft-brand p { font-size: 13px; line-height: 1.85; color: #7d8aa0; }
.ft-col h4 { color: #fff; font-size: 14px; margin-bottom: 15px; font-weight: 600; letter-spacing: .5px; font-family: var(--font-serif); }
.ft-col ul { display: flex; flex-direction: column; gap: 9px; }
.ft-col a { font-size: 13px; color: #98a2b3; transition: color .2s, transform .2s; display: inline-block; }
.ft-col a:hover { color: #fff; transform: translateX(2px); }
.ft-bot { display: flex; justify-content: space-between; align-items: center; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12px; color: #7d8aa0; }
.ft-note { margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.06); font-size: 12px; color: #6b7891; line-height: 1.8; max-width: 860px; }
.ft-links { display: flex; gap: 16px; }
.ft-links a:hover { color: #fff; }
.to-top {
    position: fixed; bottom: 30px; right: 30px; width: 42px; height: 42px; border-radius: 50%;
    background: #fff; border: 1px solid var(--line); cursor: pointer; display: flex; align-items: center; justify-content: center;
    color: var(--brand); box-shadow: var(--shadow-hover); z-index: 99; transition: transform .2s, box-shadow .2s;
}
.to-top:hover { transform: translateY(-2px); box-shadow: var(--shadow-brand); }

/* ========== 友情链接（预留） ========== */
.ft-links-section { background: var(--card); margin-top: 32px; padding: 22px 0; border-top: 1px solid var(--line); }
.fl-hd { font-size: 14px; font-weight: 600; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.fl-hd::before { content: ''; width: 4px; height: 14px; border-radius: 2px; background: linear-gradient(180deg, var(--brand), #0ea5e9); }
.fl-list { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.fl-list a { font-size: 13px; color: var(--ink-2); transition: color .2s; }
.fl-list a:hover { color: var(--brand); }

/* ==========================================================================
   链上码头 v4 · 版面重构
   两栏版式 / 深海军蓝行情主视觉 / 刊物化栏目眉
   保留 v3 全部类名；本段只新增类，不覆盖旧类
   ========================================================================== */

/* ---- 双栏版式（列表 / 详情 / 搜索共用） ---- */
.page-2col { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; margin-top: 18px; align-items: start; }
.page-2col .layout-main { min-width: 0; }
.page-2col .home-side-r { position: sticky; top: 78px; }

/* ---- 栏目眉（刊物化小标 + 标题） ---- */
.sec-kicker {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase;
    color: var(--gold); font-weight: 700;
}
.sec-kicker::before { content: ''; width: 22px; height: 1px; background: var(--gold); }
.sec-kicker::after { content: ''; width: 22px; height: 1px; background: var(--gold); }

/* ---- 首页行情区块：BTC 走势图全宽卡片 + 行情窄条 ---- */
.btc-chart-card { margin-top: 18px; }

/* ---- 主流币种 24H 行情窄条 ---- */
.ticker-card {
    margin-top: 16px; background: var(--card); border: 1px solid var(--line-soft);
    border-radius: var(--r-lg); box-shadow: var(--shadow-card); overflow: hidden;
}
.ticker-hd {
    display: flex; align-items: center; justify-content: space-between;
    padding: 11px 16px 0; font-size: 12px; color: var(--ink-3);
}
.ticker-hd b { color: var(--ink-1); font-weight: 600; }
.ticker-more { font-size: 12px; color: var(--brand); transition: color .2s; }
.ticker-more:hover { color: var(--brand-deep); }
.ticker-card .market-strip {
    margin-top: 4px; border: none; border-radius: 0; box-shadow: none;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1px; background: var(--line-soft);
}
.ticker-card .market-strip-item { border-left: none; background: var(--card); }
.ticker-card .market-strip-item:hover { background: var(--brand-soft); }
.ticker-card .market-strip-item:hover::before { display: none; }

/* ---- 列表页头（刊物化） ---- */
.page-hd-v2 { padding: 18px 0 6px; position: relative; }
.page-hd-v2 .sec-kicker { margin-bottom: 6px; }
.page-hd-v2 h1 { font-size: 30px; font-weight: 700; letter-spacing: .4px; color: var(--ink-1); line-height: 1.3; }
.page-hd-v2 p { font-size: 13px; color: var(--ink-2); margin-top: 8px; max-width: 720px; line-height: 1.7; }
.page-hd-v2::after { content: ''; display: block; height: 3px; margin-top: 16px; border-radius: 2px; background: linear-gradient(90deg, var(--brand-deep) 0%, var(--brand) 40%, rgba(29,78,216,.15) 100%); }

/* ---- 数据说明（免责/来源标注） ---- */
.data-note {
    margin-top: 12px; padding: 12px 16px; font-size: 12px; color: var(--ink-3);
    background: #f8f7f3; border: 1px dashed var(--line); border-radius: var(--r-md); line-height: 1.7;
}
.data-note b { color: var(--ink-2); font-weight: 600; }

/* ---- 首页资讯区（与主视觉呼应） ---- */
.hot-section { margin-top: 4px; }
.hot-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hot-grid .hot-item.featured { grid-column: 1 / -1; }

/* ---- 侧栏推广卡（右侧栏统一） ---- */
.side-ad { margin-top: 2px; }

/* ---- 响应式（v4 新增） ---- */
@media (max-width: 1180px) {
    .page-2col { grid-template-columns: minmax(0, 1fr); }
    .page-2col .home-side-r { display: none; }
}
@media (max-width: 960px) {
    .hot-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .btc-chart-card { border-radius: 0; border-left: none; border-right: none; }
    .btc-chart-hd { padding: 12px 14px; }
    .btc-chart-card .btc-chart-price { font-size: 22px; }
}

/* ========== 响应式 ========== */
@media (max-width: 1180px) {
    .home-3col { grid-template-columns: 220px minmax(0, 1fr); }
    .home-side-r { display: none; }
}
@media (max-width: 960px) {
    .home-3col { grid-template-columns: 1fr; }
    .home-side-l { display: none; }
    .layout { grid-template-columns: 1fr; }
    .side { display: none; }
    .market-table-wrap { overflow-x: auto; }
    .coin-icon-sm { width: 20px; height: 20px; font-size: 10px; }
    .market-table th, .market-table td { font-size: 11px; padding: 11px 10px; }
    .coin-stats { grid-template-columns: repeat(3, 1fr); }
    .coin-panel-hd { flex-direction: column; align-items: flex-start; }
    .coin-panel-price { text-align: left; }
    .col-type { display: none !important; }
    .hot-item.featured .hot-item-fig { height: 220px; }
}
@media (max-width: 640px) {
    .wrap { padding: 0 12px; }
    .hd-inner { gap: 12px; height: 54px; }
    .nav { display: none; }
    .article { margin-left: -6px; margin-right: -6px; padding: 20px 16px; }
    .hd-menu { display: block; }
    .nav.is-open {
        display: flex; position: absolute; top: 54px; left: 0; right: 0; flex-direction: column; gap: 0;
        background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 8px 16px rgba(23,27,38,.08); padding: 4px 16px; z-index: 99;
    }
    .nav.is-open a { padding: 12px 0; border-bottom: 1px solid var(--line-soft); border-radius: 0; text-align:center;}
    .nav.is-open a:last-child { border-bottom: none; }
    .nav.is-open a.is-active::after { display: none; }
    .search-form input { width: 96px; }
    .hot-item { gap: 12px; padding: 12px; flex-direction: column; }
    .hot-item-fig { flex: none; width: 100%; height: 180px; }
    .hot-item-body h3 { font-size: 16px; }
    .hot-item.featured .hot-item-fig { height: 190px; }
    .fitem { flex-direction: column; gap: 10px; }
    .fitem-fig { order: -1; flex: none; width: 100%; height: 170px; }
    .ft-top { flex-direction: column; gap: 26px; }
    .ft-bot { flex-direction: column; gap: 8px; text-align: center; }
    .coin-stats { grid-template-columns: repeat(2, 1fr); }
    .live-list li { gap: 12px; padding: 14px; }
    .lv-t { flex-basis: 58px; }
    .market-strip { grid-template-columns: repeat(2, 1fr); }
    .ticker-card .market-strip { grid-template-columns: repeat(2, 1fr); }
    .market-strip-item { flex-wrap: wrap; row-gap: 2px; padding: 10px 12px; }
    .market-strip-item:nth-child(odd) { border-left: none; }
    .market-strip-item:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
    .sec-t { font-size: 18px; }
}
