/* 币价通 WAP 样式 */
:root{
  --bg:#f3f4f6;
  --card:#fff;
  --line:#eceef2;
  --text:#15181d;
  --sub:#7b8290;
  --brand:#ff8a1e;
  --brand-2:#ff6a00;
  --up:#12b886;
  --down:#f03e3e;
  --flat:#8b95a5;
  --shadow:0 2px 12px rgba(20,26,40,.06);
}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html{-webkit-text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--text);font:14px/1.6 -apple-system,BlinkMacSystemFont,"PingFang SC","Hiragino Sans GB","Microsoft YaHei",sans-serif;overflow-x:hidden}
a{color:inherit;text-decoration:none}
img{max-width:100%}
.wrap{max-width:720px;margin:0 auto;background:var(--bg);min-height:100vh;position:relative;padding-bottom:8px}
.shell{display:block}
.side-col{display:none}

/* 顶栏 */
.topbar{position:sticky;top:0;z-index:20;background:rgba(255,255,255,.94);backdrop-filter:blur(8px);border-bottom:1px solid var(--line)}
.tb-in{max-width:720px;margin:0 auto;display:flex;align-items:center;gap:12px;padding:10px 14px}
.brand{display:flex;align-items:center;gap:6px;font-weight:700;font-size:16px}
.brand-mark{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border-radius:6px;background:linear-gradient(135deg,#ffb03a,#ff6a00);color:#fff;font-size:13px;font-weight:800}
.brand-txt{letter-spacing:.5px}
.tb-nav{display:flex;gap:14px;margin-left:auto;font-size:13px;color:#4a5160}
.tb-nav-x{display:none}
.tb-nav a:hover{color:var(--brand-2)}
.tb-search{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;background:#f1f2f5;color:#4a5160}

/* 卡片 */
.card{background:var(--card);border-radius:14px;margin:10px 12px;padding:14px;box-shadow:var(--shadow);overflow:hidden}
.hero{margin:10px 12px;border-radius:16px;padding:14px;background:radial-gradient(120% 120% at 10% 0%,#2a3038 0%,#151a21 55%,#0f1318 100%);color:#fff;box-shadow:0 6px 20px rgba(10,14,20,.22)}
.hero-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.hero-label{font-size:12px;color:#9aa4b2}
.hero-btc{display:flex;justify-content:space-between;align-items:center;gap:8px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08);border-radius:12px;padding:10px 12px}
.hb-l{display:flex;align-items:center;gap:10px;min-width:0}
.hb-n{font-size:15px;font-weight:600;white-space:nowrap}
.hb-n em{font-style:normal;color:#9aa4b2;font-size:12px;margin-left:4px}
.hb-r{font-size:11px;color:#8b95a5;margin-top:2px}
.hb-r2{text-align:right;flex:none}
.hb-p{font-size:20px;font-weight:700;color:#ffb03a;letter-spacing:.2px;white-space:nowrap}
.hb-c{font-size:12px;font-weight:600}
.hero-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:0;margin:12px 0 4px;padding:10px 0;border-top:1px solid rgba(255,255,255,.08);border-bottom:1px solid rgba(255,255,255,.08)}
.hero-stats>div{text-align:center;position:relative;min-width:0;overflow:hidden;padding:0 2px}
.hero-stats>div+div::before{content:"";position:absolute;left:0;top:12%;width:1px;height:76%;background:rgba(255,255,255,.08)}
.hero-stats b{display:block;font-size:13px;font-weight:700;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hero-stats span{display:block;font-size:10px;color:#8b95a5;margin-top:2px}
.hero-search{display:flex;gap:8px;margin-top:12px}
.hero-search input{flex:1;min-width:0;height:38px;border-radius:20px;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.08);color:#fff;padding:0 14px;font-size:13px;outline:none}
.hero-search input::placeholder{color:#8b95a5}
.hero-search button{height:38px;padding:0 18px;border:0;border-radius:20px;background:linear-gradient(135deg,#ffb03a,#ff6a00);color:#fff;font-size:13px;font-weight:600}

/* 列表行 */
.row{display:flex;align-items:center;gap:10px;padding:11px 0;border-bottom:1px solid var(--line)}
.row:last-child{border-bottom:0}
.av,.av-sm,.av-lg{flex:none;display:inline-flex;align-items:center;justify-content:center;border-radius:50%;font-weight:700;color:#fff;
  background:linear-gradient(135deg,hsl(var(--h),72%,58%),hsl(calc(var(--h) + 18),72%,44%));box-shadow:0 2px 6px hsla(var(--h),60%,40%,.24)}
.av{width:38px;height:38px;font-size:13px}
.av-sm{width:34px;height:34px;font-size:12px}
.av-lg{width:48px;height:48px;font-size:16px}
.av b,.av-sm b,.av-lg b{font-weight:800;letter-spacing:.5px}
.row-main{flex:1;min-width:0}
.row-n{font-size:14px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.row-n em{font-style:normal;font-size:11px;color:var(--sub);margin-left:5px;font-weight:500}
.row-s{font-size:11px;color:var(--sub);margin-top:1px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.row-p{text-align:right;flex:none;min-width:78px}
.p{font-size:15px;font-weight:700;font-variant-numeric:tabular-nums}
.p i{font-style:normal;font-size:11px;font-weight:600;margin-right:1px;color:#6b7280}
.p-small{font-size:13px}
.up{color:var(--up)}
.down{color:var(--down)}
.flat{color:var(--flat)}
.chg{font-size:11px;font-weight:600;margin-top:1px}

/* 标题/更多 */
.sec-head{display:flex;align-items:center;justify-content:space-between;margin:0 0 8px}
.sec-head h3{margin:0;font-size:15px;font-weight:700}
.more{font-size:12px;color:var(--sub)}
.h2{margin:0 0 10px;font-size:16px;font-weight:700}
.card-more{display:block;text-align:center;font-size:12px;color:var(--brand-2);padding:10px 0 2px}

/* tabs */
.tabs{display:flex;gap:6px;margin:-4px -4px 8px}
.tab{border:0;background:#f3f4f7;color:#5b6270;font-size:13px;padding:6px 12px;border-radius:16px;font-weight:600}
.tab.on{background:#fff3e5;color:var(--brand-2)}
.tab-body{display:none}
.tab-body.on{display:block}

/* 板块宫格 */
.tag-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.tag-cell{background:#f8f9fb;border:1px solid var(--line);border-radius:10px;padding:10px 8px;text-align:center}
.tag-cell b{display:block;font-size:13px;font-weight:600;line-height:1.3}
.tag-cell span{display:block;font-size:11px;color:var(--sub);margin-top:3px}

/* 文章行 */
.art-row{display:flex;align-items:center;gap:8px;padding:10px 0;border-bottom:1px solid var(--line)}
.art-row:last-child{border-bottom:0}
.art-cat{flex:none;font-size:11px;color:var(--brand-2);background:#fff3e5;border-radius:4px;padding:2px 6px}
.art-t{flex:1;min-width:0;font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.art-d{flex:none;font-size:11px;color:var(--sub)}

/* 页面标题 */
.page-title{margin:14px 16px 6px}
.page-title h1{margin:0;font-size:19px;font-weight:800}
.page-title p{margin:4px 0 0;font-size:12px;color:var(--sub)}

/* 面包屑 */
.crumb{display:flex;flex-wrap:wrap;align-items:center;gap:4px;padding:10px 16px 0;font-size:11px;color:var(--sub)}
.crumb a{color:var(--sub)}
.crumb .cur{color:#3a4250}

/* 排序栏 */
.sortbar{display:flex;gap:8px;padding:8px 16px 4px;overflow-x:auto}
.sortbar a{flex:none;font-size:12px;padding:5px 12px;border-radius:14px;background:#fff;border:1px solid var(--line);color:#5b6270}
.sortbar a.on{background:#151a21;color:#fff;border-color:#151a21}

/* 分页 */
.pager{display:flex;gap:6px;justify-content:center;flex-wrap:wrap;padding:10px 12px}
.pager a,.pager span{min-width:34px;height:32px;line-height:32px;text-align:center;border-radius:8px;background:#fff;border:1px solid var(--line);font-size:13px;padding:0 8px}
.pager .cur{background:#151a21;color:#fff;border-color:#151a21}

/* 币种详情 */
.coin-hero{padding:16px 14px}
.ch-top{display:flex;align-items:center;gap:10px}
.ch-name{flex:1;min-width:0}
.ch-name h1{margin:0;font-size:18px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ch-name h1 em{font-style:normal;font-size:12px;color:var(--sub);font-weight:600;margin-left:4px}
.ch-sub{font-size:11px;color:var(--sub);margin-top:2px}
.ch-badge{flex:none;font-size:12px;font-weight:700;padding:4px 8px;border-radius:6px;background:#f4f6f8}
.ch-badge.up{background:#e8f8f3;color:var(--up)}
.ch-badge.down{background:#feeaea;color:var(--down)}
.ch-price{margin:12px 0 2px;display:flex;align-items:baseline;gap:2px}
.ch-price .cur{font-size:16px;font-weight:700;color:var(--text)}
.ch-price .big{font-size:34px;font-weight:800;letter-spacing:-.5px;font-variant-numeric:tabular-nums}
.ch-usd{font-size:12px;color:var(--sub)}
.ch-mcap{margin-top:8px;font-size:12px;color:var(--sub)}
.ch-mcap b{color:var(--text);font-size:14px}
.ch-mcap span{margin-left:8px;color:var(--brand-2)}
.stat-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;background:var(--line);border-radius:10px;overflow:hidden;margin-top:12px}
.stat-grid>div{background:#fbfcfd;padding:8px 10px;min-width:0;overflow:hidden}
.stat-grid span{display:block;font-size:11px;color:var(--sub)}
.stat-grid b{display:block;font-size:12.5px;font-weight:700;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* 图表 */
.chart-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}
.chart-head h2{margin:0;font-size:15px;font-weight:700}
.ctabs{display:flex;gap:4px}
.ctabs button{border:0;background:#f3f4f7;color:#5b6270;font-size:12px;padding:4px 10px;border-radius:12px}
.ctabs button.on{background:#151a21;color:#fff}
.chart-box{position:relative}
.cbox{display:none}
.cbox.on{display:block}
.trend{display:block;width:100%}
.chart-foot{display:flex;justify-content:space-between;font-size:12px;color:var(--sub);margin-top:4px}
.chart-foot b{color:var(--text)}
.chart-empty{font-size:13px;color:var(--sub);line-height:1.7;margin:6px 0 0}

/* 表格 */
.kv-table{width:100%;border-collapse:collapse;font-size:13px}
.kv-table th{text-align:left;font-size:11px;color:var(--sub);font-weight:500;padding:6px 0;border-bottom:1px solid var(--line)}
.kv-table td{padding:8px 0;border-bottom:1px solid var(--line);font-variant-numeric:tabular-nums}
.kv-table td:last-child,.kv-table th:last-child{text-align:right}
.table-tip{font-size:11px;color:var(--sub);margin:8px 0 0;line-height:1.6}

/* 信息和标签 */
.info-list{display:grid;grid-template-columns:1fr 1fr;gap:0 14px;margin:0}
.info-list>div{display:flex;justify-content:space-between;padding:8px 0;border-bottom:1px solid var(--line);font-size:13px}
.info-list dt{color:var(--sub);font-size:12px}
.info-list dd{margin:0;font-weight:600;text-align:right}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chips a{font-size:12px;padding:5px 10px;border-radius:14px;background:#f8f9fb;border:1px solid var(--line);color:#3a4250}

/* 正文 */
.article-body h1{margin:0 0 6px;font-size:19px;line-height:1.45;font-weight:800}
.article-body h2{margin:18px 0 8px;font-size:16px;font-weight:700}
.article-body h3{margin:14px 0 6px;font-size:14px;font-weight:700;color:#2a3038}
.article-body p{margin:0 0 10px;font-size:14px;line-height:1.85;color:#2b313a}
.article-body a{color:var(--brand-2);border-bottom:1px solid rgba(255,106,0,.25)}
.art-meta{font-size:11px;color:var(--sub);margin-bottom:8px}
.art-lead{font-size:14px;color:#48505c;background:#f8f9fb;border-left:3px solid var(--brand);padding:10px 12px;border-radius:8px;line-height:1.8}

/* 常见问题 */
.faq details{border-bottom:1px solid var(--line);padding:9px 0}
.faq details:last-child{border-bottom:0}
.faq summary{font-size:13px;font-weight:600;cursor:pointer;list-style:none;position:relative;padding-right:16px}
.faq summary::after{content:"+";position:absolute;right:0;top:0;color:var(--sub)}
.faq details[open] summary::after{content:"–"}
.faq p{margin:6px 0 0;font-size:13px;color:#48505c;line-height:1.75}

/* 文章卡 */
.art-card{display:block;padding:12px 0;border-bottom:1px solid var(--line)}
.art-card:last-child{border-bottom:0}
.ac-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}
.ac-d{font-size:11px;color:var(--sub)}
.art-card h2{margin:0;font-size:15px;font-weight:700;line-height:1.5}
.art-card p{margin:4px 0 0;font-size:12px;color:var(--sub);line-height:1.7;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* 板块页 */
.tag-intro{font-size:13px;color:#48505c;line-height:1.85}
.tag-list .tag-row{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:11px 0;border-bottom:1px solid var(--line)}
.tag-list .tag-row:last-child{border-bottom:0}
.tr-l{min-width:0}
.tr-l b{display:block;font-size:14px}
.tr-l span{display:block;font-size:11px;color:var(--sub);margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tr-r{flex:none;font-size:11px;color:var(--sub)}
.tr-r em{font-style:normal;font-weight:700;color:var(--brand-2);font-size:13px;margin-right:2px}

/* 搜索 */
.search-form{display:flex;gap:8px;padding:10px 12px}
.search-form input{flex:1;min-width:0;height:38px;border-radius:10px;border:1px solid var(--line);background:#f8f9fb;padding:0 12px;font-size:13px;outline:none}
.search-form button{height:38px;padding:0 16px;border:0;border-radius:10px;background:#151a21;color:#fff;font-size:13px;font-weight:600}
.result-tip{font-size:12px;color:var(--sub);margin-bottom:4px}

/* SEO 文本 */
.seo-text h2{margin:0 0 8px;font-size:15px;font-weight:700}
.seo-text p{margin:0 0 8px;font-size:12.5px;color:#5c6472;line-height:1.85}
.seo-text a{color:var(--brand-2)}

/* 404 */
.err-page{text-align:center;padding:30px 16px}
.err-code{font-size:44px;font-weight:800;color:#d7dbe2;line-height:1}
.err-page h1{font-size:17px;margin:10px 0 6px}
.err-page p{font-size:13px;color:var(--sub)}
.err-links{display:flex;gap:10px;justify-content:center;margin-top:10px}
.err-links a{font-size:13px;padding:7px 14px;border-radius:18px;background:#151a21;color:#fff}

/* 页脚 */
.site-foot{padding:18px 16px 26px;margin-top:6px;text-align:center}
.foot-links{display:flex;flex-wrap:wrap;gap:10px 14px;justify-content:center;font-size:12px;color:#4a5160}
.foot-tip{font-size:11px;color:#9aa2af;line-height:1.7;margin:10px 0 6px}
.foot-copy{font-size:11px;color:#9aa2af;margin:0}
.to-top{position:fixed;right:14px;bottom:18px;width:38px;height:38px;line-height:38px;text-align:center;border-radius:50%;background:rgba(21,26,33,.82);color:#fff;font-size:16px;z-index:30;box-shadow:0 4px 12px rgba(0,0,0,.18)}

/* 侧栏（桌面端） */
.side-card{padding:12px 14px}
.side-card .row{padding:8px 0}
.side-h{margin:0 0 6px;font-size:14px;font-weight:700;padding-bottom:6px;border-bottom:1px solid var(--line)}
.side-card .art-row{padding:8px 0}
.side-card .chips a{font-size:12px;padding:4px 8px}

/* 锚点导航（详情页栏目） */
.anchor-nav{display:flex;gap:6px;overflow-x:auto;padding:10px 12px 0}
.anchor-nav a{flex:none;font-size:12px;padding:5px 12px;border-radius:14px;background:#fff;border:1px solid var(--line);color:#4a5160}
.anchor-nav a:hover{color:var(--brand-2);border-color:#ffd7b3}

/* 榜单中心卡片 */
.rank-cards{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.rank-card{background:#f8f9fb;border:1px solid var(--line);border-radius:10px;padding:12px}
.rank-card b{display:block;font-size:14px;font-weight:700}
.rank-card span{display:block;font-size:11px;color:var(--sub);margin-top:3px;line-height:1.6}

/* ============ 平板 ≥768px ============ */
@media (min-width:768px){
  .wrap{max-width:760px}
  .tb-in{max-width:760px;padding:12px 18px}
  .brand{font-size:17px}
  .tb-nav{gap:18px;font-size:14px}
  body{font-size:14.5px}
  .card{margin:12px 16px;padding:16px;border-radius:16px}
  .hero{margin:12px 16px;padding:18px}
  .hb-p{font-size:22px}
  .hero-stats b{font-size:14px}
  .tag-grid{grid-template-columns:repeat(4,1fr)}
  .stat-grid{grid-template-columns:repeat(3,1fr)}
  .ch-price .big{font-size:38px}
  .page-title{margin:16px 20px 8px}
  .page-title h1{font-size:21px}
  .crumb{padding:12px 18px 0}
  .art-t{font-size:14px}
  .row{padding:12px 0}
  .row-n{font-size:15px}
  .p{font-size:16px}
}

/* ============ 桌面 ≥1024px ============ */
@media (min-width:1024px){
  .wrap{max-width:1180px}
  .tb-in{max-width:1180px;padding:12px 24px;gap:20px}
  .tb-nav-x{display:inline}
  .shell{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:20px;padding:0 8px;align-items:start}
  .main-col{min-width:0}
  .side-col{display:block;position:sticky;top:64px;margin-top:12px}
  .card{margin:12px 8px}
  .hero{margin:12px 8px}
  .page-title{margin:16px 12px 8px}
  .crumb{padding:12px 10px 0}
  .tag-grid{grid-template-columns:repeat(4,1fr)}
  /* 榜单列表两列排布，提高桌面信息密度 */
  .list-card{display:grid;grid-template-columns:1fr 1fr;column-gap:26px}
  .list-card .row{padding:10px 0}
  /* 详情页数据块更紧凑 */
  .stat-grid{grid-template-columns:repeat(6,1fr)}
  .stat-grid>div{padding:10px 12px}
  .coin-hero{padding:20px 18px}
  .ch-price .big{font-size:40px}
  .article-body p{font-size:14.5px;line-height:1.9}
  .anchor-nav{padding:12px 8px 0;overflow:visible}
  .rank-cards{grid-template-columns:repeat(3,1fr)}
  .to-top{right:auto;left:50%;transform:translateX(-50%)}
}

/* ============ 大屏 ≥1280px ============ */
@media (min-width:1280px){
  .wrap{max-width:1320px}
  .tb-in{max-width:1320px}
  .shell{grid-template-columns:minmax(0,1fr) 340px;gap:24px}
  .hero-stats b{font-size:16px}
  .tag-grid{grid-template-columns:repeat(5,1fr)}
}

@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto}}
