/* =====================================================
   CryptoPrice Theme - Main Stylesheet
   ZBlog PHP 1.7.5+ | 参考 BitKan 风格
   ===================================================== */

/* === 1. CSS Variables & Reset === */
:root {
    --bg-dark:        #0d1117;
    --bg-card:        #161b22;
    --bg-card-hover:  #1c2230;
    --border:         #21262d;
    --text-primary:   #e6edf3;
    --text-secondary: #8b949e;
    --text-muted:     #484f58;
    --accent:         #f7a600;
    --accent-hover:   #e09500;
    --price-up:       #26a69a;
    --price-down:     #ef5350;
    --price-flat:     #8b949e;
    --link:           #58a6ff;
    --btn-primary-bg: #f7a600;
    --btn-primary-fg: #000;
    --radius-sm:      4px;
    --radius-md:      8px;
    --radius-lg:      12px;
    --shadow:         0 2px 12px rgba(0,0,0,.4);
    --transition:     .18s ease;
    --container-max:  1280px;
    --sidebar-width:  300px;
    --header-h:       64px;
    --font-mono:      'SF Mono', 'Fira Code', Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC',
                 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-dark);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* === 2. Layout === */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 20px;
}

.content-layout {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-width);
    gap: 24px;
    margin-top: 24px;
}

.main-content { min-width: 0; }
.sidebar { min-width: 0; }

/* === 3. Header === */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    height: var(--header-h);
    background: rgba(13,17,23,.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    height: var(--header-h);
    gap: 32px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    flex-shrink: 0;
}
.site-logo:hover { color: var(--accent); }
.logo-icon { font-size: 22px; color: var(--accent); }

.main-nav { flex: 1; }
.main-nav ul { display: flex; gap: 4px; }
.main-nav a {
    display: block;
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition);
}
.main-nav a:hover,
.main-nav a.active {
    color: var(--text-primary);
    background: rgba(255,255,255,.06);
}

.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

/* === 4. Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 20px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    border: 1.5px solid transparent;
    white-space: nowrap;
}
.btn-primary {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-fg);
    border-color: var(--btn-primary-bg);
}
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #000; }
.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: rgba(247,166,0,.08); }
.btn-sm { padding: 5px 14px; font-size: 12px; }
.btn-block { width: 100%; }

/* === 5. Page Hero === */
.page-hero {
    text-align: center;
    padding: 48px 0 32px;
}
.page-hero h1 { font-size: 32px; font-weight: 700; margin-bottom: 10px; }
.page-hero p  { color: var(--text-secondary); font-size: 15px; }
.page-hero.small { padding: 24px 0 16px; text-align: left; }
.page-hero.small h1 { font-size: 22px; }

/* === 6. Filter Tabs === */
.filter-tabs {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
}

.tab-btn {
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    cursor: pointer;
    transition: all var(--transition);
}
.tab-btn.active,
.tab-btn:hover {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
    font-weight: 600;
}

.search-box {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 7px 14px;
}
.search-box i { color: var(--text-muted); font-size: 13px; }
.search-box input {
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 13px;
    width: 200px;
    outline: none;
}
.search-box input::placeholder { color: var(--text-muted); }

/* === 7. Price Table === */
.table-wrap {
    width: 100%;
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--bg-card);
}

.price-table {
    width: 100%;
    border-collapse: collapse;
}
.price-table th,
.price-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.price-table th {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    background: var(--bg-card);
}
.price-table th.sortable { cursor: pointer; user-select: none; }
.price-table th.sortable:hover { color: var(--text-primary); }
.price-table tr:last-child td { border-bottom: none; }
.price-table tbody tr {
    transition: background var(--transition);
}
.price-table tbody tr:hover { background: var(--bg-card-hover); }

.col-rank  { width: 50px; color: var(--text-muted); font-size: 13px; }
.col-name  { min-width: 200px; }
.col-price { min-width: 130px; font-family: var(--font-mono); }
.col-change{ min-width: 100px; }
.col-volume{ min-width: 120px; font-family: var(--font-mono); }
.col-mcap  { min-width: 120px; font-family: var(--font-mono); }
.col-action{ min-width: 120px; text-align: right; }

/* Coin info cell */
.coin-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
}
.coin-info:hover { color: var(--text-primary); }
.coin-icon {
    width: 32px; height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.coin-icon-placeholder {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #ff6b00);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: #000;
    flex-shrink: 0;
}
.coin-names { display: flex; flex-direction: column; }
.coin-name   { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.coin-symbol { font-size: 12px; color: var(--text-muted); margin-top: 1px; }

/* Price */
.price-val { font-size: 14px; font-weight: 600; color: var(--text-primary); }

/* Change badge */
.change-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-mono);
}
.price-up   { color: var(--price-up); }
.price-down { color: var(--price-down); }
.price-flat { color: var(--price-flat); }
.change-badge.price-up   { background: rgba(38,166,154,.12); }
.change-badge.price-down { background: rgba(239,83,80,.12); }
.change-badge.price-flat { background: rgba(139,148,158,.1); }
.change-badge.lg { padding: 5px 14px; font-size: 15px; }

/* Action buttons */
.btn-detail, .btn-trade {
    display: inline-block;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
}
.btn-detail {
    border: 1px solid var(--border);
    color: var(--text-secondary);
    margin-right: 4px;
}
.btn-detail:hover { border-color: var(--accent); color: var(--accent); }
.btn-trade {
    background: var(--accent);
    color: #000;
    border: 1px solid var(--accent);
}
.btn-trade:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #000; }

/* Empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}
.empty-state i { font-size: 40px; margin-bottom: 12px; display: block; }
.empty-state p  { font-size: 14px; }

/* Hide responsive cols */
@media (max-width: 768px) { .hide-sm { display: none !important; } }
@media (max-width: 1024px){ .hide-md { display: none !important; } }

/* === 8. Pagination === */
.pagination-wrap {
    padding: 20px 0;
    display: flex;
    justify-content: center;
}
.pagination-wrap a,
.pagination-wrap span {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 3px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-secondary);
    transition: all var(--transition);
}
.pagination-wrap a:hover { border-color: var(--accent); color: var(--accent); }
.pagination-wrap .current-page,
.pagination-wrap span.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #000;
    font-weight: 600;
}

/* === 9. Sidebar === */
.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 20px;
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
}
.card-header h3 {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}
.card-header h3 i { color: var(--accent); }
.card-more { font-size: 12px; color: var(--text-muted); }
.card-more:hover { color: var(--accent); }

.rank-list li { border-bottom: 1px solid var(--border); }
.rank-list li:last-child { border-bottom: none; }
.rank-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    transition: background var(--transition);
    color: var(--text-primary);
}
.rank-item:hover { background: var(--bg-card-hover); color: var(--text-primary); }
.rank-icon {
    width: 28px; height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.rank-icon-text {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #ff6b00);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; color: #000;
    flex-shrink: 0;
}
.rank-name {
    flex: 1;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.rank-name em {
    display: block;
    font-style: normal;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 400;
}
.rank-price {
    font-size: 13px;
    font-weight: 600;
    text-align: right;
    font-family: var(--font-mono);
    flex-shrink: 0;
}
.rank-price em {
    display: block;
    font-style: normal;
    font-size: 11px;
    font-weight: 600;
}

/* === 10. Detail Page — “Ledger” 设计 === */
.detail-page { padding-bottom: 60px; }

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 16px 0;
    font-size: 13px;
    color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--border); }
.breadcrumb .current { color: var(--text-secondary); }

/* Ledger hero — 顶部像一份"币种档案"：上方是 hash 风格的台账条，
   下方左侧是身份信息，右侧是交易所风格的大号实时报价 */
.ledger-hero {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, var(--bg-card) 0%, var(--bg-dark) 140%);
    overflow: hidden;
    margin: 8px 0 24px;
}

.ledger-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 24px;
    background: rgba(255,255,255,.03);
    border-bottom: 1px solid var(--border);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .04em;
    color: var(--text-muted);
    overflow-x: auto;
    white-space: nowrap;
    position: relative;
}
.ledger-strip::after {
    content: '';
    position: absolute;
    top: 0; left: -40%;
    width: 40%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(247,166,0,.18), transparent);
    animation: ledger-sweep 2.4s ease-out 1;
    pointer-events: none;
}
@keyframes ledger-sweep {
    from { left: -40%; }
    to   { left: 100%; }
}
.ledger-field { color: var(--text-secondary); }
.ledger-sep   { color: var(--border); }
.ledger-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--text-muted);
    flex-shrink: 0;
}
.ledger-dot.is-live {
    background: var(--link);
    animation: ledger-pulse 1.8s infinite;
}
@keyframes ledger-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(88,166,255,.55); }
    70%  { box-shadow: 0 0 0 6px rgba(88,166,255,0); }
    100% { box-shadow: 0 0 0 0 rgba(88,166,255,0); }
}

.ledger-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    padding: 24px 24px 28px;
    flex-wrap: wrap;
}
.ledger-identity { display: flex; align-items: center; gap: 16px; }
.ledger-titles h1 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.coin-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.coin-hero-icon {
    width: 60px; height: 60px;
    border-radius: 50%;
    object-fit: cover;
}
.coin-hero-placeholder {
    width: 60px; height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #ff6b00);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; font-weight: 700; color: #000;
}
.symbol-badge {
    background: rgba(247,166,0,.12);
    color: var(--accent);
    border: 1px solid rgba(247,166,0,.3);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}
.meta-link {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
}
.meta-link:hover { border-color: var(--accent); color: var(--accent); }

.ledger-readout { text-align: right; min-width: 240px; }
.current-price { margin-bottom: 8px; }
.price-usdt {
    display: block;
    font-size: 30px;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--text-primary);
    text-shadow: 0 0 18px rgba(247,166,0,.18);
}
.price-usd {
    font-size: 13px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}
.price-change-row { margin: 6px 0 14px; }
.trade-buttons { display: flex; gap: 10px; justify-content: flex-end; }

/* Stat rail — 不用卡片网格，改成一条带分隔线的横向台账，
   小屏自然横向滚动，呼应顶部的 ledger-strip */
.stat-rail {
    display: flex;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin-bottom: 24px;
}
.stat-cell {
    flex: 1 0 140px;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    border-right: 1px solid var(--border);
}
.stat-cell:last-child { border-right: none; }
.stat-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: .06em;
}
.stat-value { font-size: 15px; font-weight: 700; font-family: var(--font-mono); }

/* Section header（带 §编号，真实对应页面的阅读顺序：行情→简介→数据） */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    gap: 12px;
    flex-wrap: wrap;
}
.section-header h2 { font-size: 16px; font-weight: 700; display: flex; align-items: baseline; gap: 8px; }
.sec-index {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent);
    letter-spacing: .04em;
}

.chart-section,
.intro-section,
.market-detail-section,
.comments-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 20px;
}

.chart-tabs { display: flex; gap: 4px; }
.chart-tab {
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    font-size: 12px;
    cursor: pointer;
    transition: all var(--transition);
}
.chart-tab.active,
.chart-tab:hover { background: var(--accent); color: #000; border-color: var(--accent); font-weight: 600; }

.chart-placeholder { padding: 20px; min-height: 220px; }
.tv-widget { height: 320px; }
.chart-mock {
    background: rgba(255,255,255,.02);
    border-radius: var(--radius-sm);
    padding: 20px;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.chart-tip { font-size: 12px; color: var(--text-muted); text-align: center; }
.chart-tip a { color: var(--link); }

/* Post content — 首段做编辑体字首大写，弱化"AI模板感" */
.post-content {
    padding: 20px;
    color: var(--text-secondary);
    line-height: 1.8;
}
.post-content h2, .post-content h3 { color: var(--text-primary); margin: 20px 0 10px; }
.post-content p  { margin-bottom: 14px; }
.post-content a  { color: var(--link); }
.post-content > p:first-of-type::first-letter {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--accent);
    float: left;
    line-height: .82;
    padding: 4px 8px 0 0;
}

/* 空内容状态：不是一片空白，而是明确告知 + 仍然有价值 */
.empty-content {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
}
.empty-content i { font-size: 22px; margin-bottom: 10px; display: block; color: var(--border); }
.empty-content p { font-size: 13px; }

/* Tags */
.post-tags {
    padding: 16px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    border-top: 1px solid var(--border);
}
.post-tags i { color: var(--text-muted); margin-right: 4px; }
.tag {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid var(--border);
    font-size: 12px;
    color: var(--text-secondary);
}
.tag:hover { border-color: var(--accent); color: var(--accent); }

/* Market data — 收据/凭单式排版，呼应"账本"概念，比通栏表格更克制 */
.receipt { padding: 4px 20px 8px; }
.receipt-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border);
    font-size: 13px;
}
.receipt-row:last-child { border-bottom: none; }
.receipt-row span { color: var(--text-muted); }
.receipt-row strong { font-family: var(--font-mono); font-weight: 700; text-align: right; }

/* Quick info sidebar card */
.quick-info-list { padding: 8px 0; }
.quick-info-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
}
.quick-info-list li:last-child { border-bottom: none; }
.quick-info-list span { color: var(--text-muted); }
.quick-info-list strong { font-family: var(--font-mono); font-weight: 700; }
.price-quick-card .btn-block { margin: 0 16px 16px; width: calc(100% - 32px); }

/* Cat list */
.cat-list li a {
    display: block;
    padding: 10px 16px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    transition: all var(--transition);
}
.cat-list li:last-child a { border-bottom: none; }
.cat-list li a:hover,
.cat-list li.active a { color: var(--accent); background: rgba(247,166,0,.06); }

@media (prefers-reduced-motion: reduce) {
    .ledger-strip::after,
    .ledger-dot.is-live { animation: none; }
}

/* === 11. Disclaimer === */
.disclaimer {
    margin-top: 16px;
    padding: 14px 16px;
    background: rgba(247,166,0,.06);
    border: 1px solid rgba(247,166,0,.2);
    border-radius: var(--radius-md);
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.7;
}
.disclaimer i { color: var(--accent); margin-right: 6px; }

/* === 12. Footer === */
.site-footer {
    background: var(--bg-card);
    border-top: 1px solid var(--border);
    padding: 48px 0 24px;
    margin-top: 60px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 32px;
    margin-bottom: 40px;
}
.footer-col h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--text-primary);
    margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a {
    font-size: 13px;
    color: var(--text-muted);
}
.footer-col ul a:hover { color: var(--accent); }

.social-links { display: flex; gap: 12px; flex-wrap: wrap; }
.social-icon {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 14px;
    transition: all var(--transition);
}
.social-icon:hover { border-color: var(--accent); color: var(--accent); }

.risk-warning {
    padding: 16px;
    background: rgba(255,255,255,.03);
    border-radius: var(--radius-md);
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 24px;
}
.risk-warning strong { color: var(--text-secondary); }

.footer-bottom {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    padding-top: 24px;
    border-top: 1px solid var(--border);
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--accent); }

/* === 13. Error Page === */
.error-page {
    text-align: center;
    padding: 100px 20px;
}
.error-icon { font-size: 60px; color: var(--accent); margin-bottom: 16px; }
.error-page h1 { font-size: 80px; font-weight: 900; color: var(--text-primary); margin-bottom: 16px; }
.error-page p  { color: var(--text-secondary); font-size: 16px; margin-bottom: 32px; }

/* === 14. Nav Toggle (Mobile) === */
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
    background: none;
    border: none;
}
.nav-toggle span {
    width: 20px; height: 2px;
    background: var(--text-secondary);
    border-radius: 2px;
    transition: all .3s;
}

/* === 15. Responsive === */
@media (max-width: 1100px) {
    .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .content-layout { grid-template-columns: 1fr; }
    .sidebar { display: none; }
    .ledger-main { flex-direction: column; gap: 20px; }
    .ledger-readout { text-align: left; width: 100%; }
    .trade-buttons { justify-content: flex-start; }
}

@media (max-width: 768px) {
    :root { --header-h: 56px; }
    .main-nav { display: none; }
    .nav-toggle { display: flex; }
    .main-nav.open {
        display: block;
        position: fixed;
        top: var(--header-h);
        left: 0; right: 0;
        background: var(--bg-card);
        border-bottom: 1px solid var(--border);
        padding: 16px;
        z-index: 99;
    }
    .main-nav.open ul { flex-direction: column; gap: 4px; }
    .page-hero h1 { font-size: 22px; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .ledger-titles h1 { font-size: 18px; }
    .price-usdt { font-size: 22px; }
    .search-box input { width: 140px; }
    .stat-cell { flex-basis: 45%; }
}

@media (max-width: 480px) {
    .container { padding: 0 14px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .filter-tabs { gap: 6px; }
    .search-box { margin-left: 0; width: 100%; }
    .search-box input { width: 100%; }
    .col-action { display: none; }
    .stat-cell { flex-basis: 100%; border-right: none; border-bottom: 1px solid var(--border); }
    .stat-cell:last-child { border-bottom: none; }
}

/* === 16. ZBlog Comments Override === */
#comment { padding: 20px; }
#comment h3 { font-size: 16px; font-weight: 700; margin-bottom: 20px; }
.comment-list { list-style: none; margin-bottom: 24px; }
.comment-list .comment-item {
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
}
.comment-list .comment-meta { color: var(--text-muted); font-size: 12px; margin-bottom: 4px; }
.comment-form input,
.comment-form textarea {
    width: 100%;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 12px;
    outline: none;
    transition: border-color var(--transition);
}
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--accent); }
.comment-form textarea { min-height: 100px; resize: vertical; }
.comment-form .submit-btn {
    background: var(--accent);
    color: #000;
    padding: 8px 24px;
    border-radius: var(--radius-sm);
    border: none;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition);
}
.comment-form .submit-btn:hover { background: var(--accent-hover); }

/* === 补充：模块/侧边栏内部列表 === */
.module-body ul { list-style: none; }
.module-body li {
  border-bottom: 1px solid var(--border);
}
.module-body li:last-child { border-bottom: none; }
.module-body li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.module-body li a:hover { color: var(--accent); background: rgba(247,166,0,.05); }
.cat-count {
  font-size: 11px;
  color: var(--text-muted);
  background: rgba(255,255,255,.05);
  padding: 1px 6px;
  border-radius: 10px;
}
.module-body .tag {
  display: inline-block;
  margin: 4px;
}

/* 评论表单补充 */
.comment-form { padding: 20px; }
.comment-form h4 { margin-bottom: 14px; font-size: 15px; }
.comment-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
.comment-form input,
.comment-form textarea {
  width: 100%;
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 9px 12px;
  font-size: 13px;
  outline: none;
  transition: border-color var(--transition);
  font-family: inherit;
}
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--accent); }
.comment-form textarea {
  width: 100%;
  min-height: 90px;
  resize: vertical;
  margin-bottom: 10px;
}
.captcha-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}
.captcha-row input { max-width: 140px; }
.submit-btn {
  background: var(--accent);
  color: #000;
  padding: 8px 24px;
  border-radius: var(--radius-sm);
  border: none;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: background var(--transition);
}
.submit-btn:hover { background: var(--accent-hover); }
