        :root {
            --bg: #06060c;
            --bg-elev: #0d0d16;
            --bg-elev-2: #14141f;
            --bg-elev-3: #1a1a28;
            --border: #1f1f2e;
            --border-hover: #2f2f44;
            --fg: #f0f0f5;
            --fg-muted: #9090a0;
            --fg-dim: #5a5a6a;
            --accent: #fbb033;
            --accent-2: #ff8a00;
            --accent-glow: rgba(251, 176, 51, 0.35);
            --accent-dim: rgba(251, 176, 51, 0.1);
            --cyan: #00d4ff;
            --cyan-glow: rgba(0, 212, 255, 0.4);
            --cyan-dim: rgba(0, 212, 255, 0.1);
            --success: #22c55e;
            --danger: #ef4444;
            --magenta: #e93e8a;
        }

        * {
            box-sizing: border-box;
        }

        html {
            scroll-behavior: smooth;
        }

        body {
            font-family: 'Outfit', sans-serif;
            background: var(--bg);
            color: var(--fg);
            min-height: 100vh;
            background-image:
                radial-gradient(circle at 15% 0%, rgba(251, 176, 51, 0.06) 0%, transparent 40%),
                radial-gradient(circle at 85% 30%, rgba(0, 212, 255, 0.04) 0%, transparent 50%);
            background-attachment: fixed;
            overflow-x: hidden;
        }

        .font-display {
            font-family: 'Space Grotesk', sans-serif;
            letter-spacing: -0.02em;
        }

        .font-mono {
            font-family: 'JetBrains Mono', monospace;
        }

        .tabular {
            font-variant-numeric: tabular-nums;
        }

        ::-webkit-scrollbar {
            width: 6px;
            height: 6px;
        }

        ::-webkit-scrollbar-track {
            background: var(--bg);
        }

        ::-webkit-scrollbar-thumb {
            background: var(--border);
            border-radius: 3px;
        }

        ::-webkit-scrollbar-thumb:hover {
            background: var(--accent);
        }

        /* 网格背景 */
        .grid-bg {
            background-image:
                linear-gradient(rgba(251, 176, 51, 0.05) 1px, transparent 1px),
                linear-gradient(90deg, rgba(251, 176, 51, 0.05) 1px, transparent 1px),
                linear-gradient(rgba(0, 212, 255, 0.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(0, 212, 255, 0.03) 1px, transparent 1px);
            background-size: 80px 80px, 80px 80px, 20px 20px, 20px 20px;
            background-position: center center;
            mask-image: radial-gradient(ellipse at center, black 20%, transparent 80%);
        }

        /* 卡片 */
        .card {
            background: linear-gradient(180deg, var(--bg-elev) 0%, rgba(13, 13, 22, 0.7) 100%);
            border: 1px solid var(--border);
            border-radius: 10px;
            transition: border-color 0.3s, box-shadow 0.3s;
            position: relative;
            overflow: hidden;
        }

        .card::before {
            content: '';
            position: absolute;
            inset: 0;
            background: radial-gradient(circle 250px at var(--mx, 50%) var(--my, 0%), rgba(251, 176, 51, 0.06) 0%, transparent 70%);
            opacity: 0;
            transition: opacity 0.4s;
            pointer-events: none;
        }

        .card:hover::before {
            opacity: 1;
        }

        .card:hover {
            border-color: var(--border-hover);
        }

        /* 角标装饰 */
        .corner-deco::after {
            content: '';
            position: absolute;
            top: 8px;
            right: 8px;
            width: 6px;
            height: 6px;
            background: var(--accent);
            border-radius: 50%;
            box-shadow: 0 0 10px var(--accent);
        }

        /* 顶部光带 */
        .stat-card::after {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 1px;
            background: linear-gradient(90deg, transparent, var(--accent), transparent);
            opacity: 0;
            transition: opacity 0.5s;
        }

        .stat-card:hover::after {
            opacity: 1;
        }

        /* 脉冲 */
        @keyframes pulse-dot {

            0%,
            100% {
                transform: scale(1);
                opacity: 1;
            }

            50% {
                transform: scale(1.5);
                opacity: 0.4;
            }
        }

        .pulse-dot {
            animation: pulse-dot 2s ease-in-out infinite;
        }

        @keyframes pulse-ring {
            0% {
                transform: scale(0.8);
                opacity: 1;
            }

            100% {
                transform: scale(2.5);
                opacity: 0;
            }
        }

        .pulse-ring {
            animation: pulse-ring 2s ease-out infinite;
        }

        /* 区块流入 */
        @keyframes block-in {
            0% {
                opacity: 0;
                transform: translateX(-12px);
                background: rgba(251, 176, 51, 0.12);
                border-left: 2px solid var(--accent);
            }

            60% {
                background: rgba(251, 176, 51, 0.04);
            }

            100% {
                opacity: 1;
                transform: translateX(0);
                background: transparent;
                border-left: 2px solid transparent;
            }
        }

        .block-row-new {
            animation: block-in 1.2s ease-out;
        }

        /* Ticker 滚动 */
        @keyframes ticker-scroll {
            0% {
                transform: translateX(0);
            }

            100% {
                transform: translateX(-50%);
            }
        }

        .ticker-track {
            display: flex;
            animation: ticker-scroll 60s linear infinite;
            white-space: nowrap;
            width: max-content;
        }

        .ticker-track:hover {
            animation-play-state: paused;
        }

        /* 按钮 */
        .btn-primary {
            background: var(--accent);
            color: #0a0a0f;
            font-weight: 600;
            padding: 9px 18px;
            border-radius: 6px;
            transition: all 0.2s;
            border: 1px solid var(--accent);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            font-size: 13px;
            letter-spacing: 0.02em;
        }

        .btn-primary:hover {
            background: #ffc857;
            box-shadow: 0 0 24px var(--accent-glow);
            transform: translateY(-1px);
        }

        .btn-ghost {
            background: transparent;
            color: var(--fg);
            border: 1px solid var(--border);
            padding: 9px 18px;
            border-radius: 6px;
            transition: all 0.2s;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            font-size: 13px;
        }

        .btn-ghost:hover {
            border-color: var(--accent);
            color: var(--accent);
        }

        /* 搜索框 */
        .search-box {
            background: var(--bg-elev);
            border: 1px solid var(--border);
            transition: all 0.3s;
        }

        .search-box:focus-within {
            border-color: var(--accent);
            box-shadow: 0 0 0 3px var(--accent-dim), 0 0 24px var(--accent-dim);
        }

        .search-box input::placeholder {
            color: var(--fg-dim);
        }

        /* 标签 */
        .tag {
            display: inline-flex;
            align-items: center;
            padding: 2px 8px;
            border-radius: 3px;
            font-size: 10px;
            font-family: 'JetBrains Mono', monospace;
            font-weight: 600;
            letter-spacing: 0.08em;
            text-transform: uppercase;
        }

        .tag-success {
            background: rgba(34, 197, 94, 0.1);
            color: var(--success);
            border: 1px solid rgba(34, 197, 94, 0.25);
        }

        .tag-accent {
            background: var(--accent-dim);
            color: var(--accent);
            border: 1px solid rgba(251, 176, 51, 0.25);
        }

        .tag-cyan {
            background: var(--cyan-dim);
            color: var(--cyan);
            border: 1px solid rgba(0, 212, 255, 0.25);
        }

        .tag-muted {
            background: var(--bg-elev-2);
            color: var(--fg-muted);
            border: 1px solid var(--border);
        }

        .tag-danger {
            background: rgba(239, 68, 68, 0.1);
            color: var(--danger);
            border: 1px solid rgba(239, 68, 68, 0.25);
        }

        .tag-magenta {
            background: rgba(233, 62, 138, 0.1);
            color: var(--magenta);
            border: 1px solid rgba(233, 62, 138, 0.25);
        }

        /* 渐变文字 */
        .text-gradient {
            background: linear-gradient(135deg, #fbb033 0%, #ffd585 50%, #fbb033 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        .text-gradient-cyan {
            background: linear-gradient(135deg, #00d4ff 0%, #66e6ff 50%, #00d4ff 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }

        /* Hero 光晕 */
        .hero-glow {
            position: absolute;
            width: 900px;
            height: 900px;
            background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
            filter: blur(80px);
            opacity: 0.35;
            pointer-events: none;
        }

        .hero-glow-cyan {
            position: absolute;
            width: 600px;
            height: 600px;
            background: radial-gradient(circle, var(--cyan-glow) 0%, transparent 60%);
            filter: blur(80px);
            opacity: 0.2;
            pointer-events: none;
        }

        /* 浮动方块 */
        @keyframes float-cube {

            0%,
            100% {
                transform: translateY(0) rotate(0deg);
            }

            50% {
                transform: translateY(-20px) rotate(180deg);
            }
        }

        .float-cube {
            position: absolute;
            border: 1px solid rgba(251, 176, 51, 0.15);
            animation: float-cube 8s ease-in-out infinite;
            pointer-events: none;
        }

        /* 行 */
        .tx-row,
        .block-row,
        .validator-row,
        .mempool-row {
            transition: background 0.2s;
            border-bottom: 1px solid var(--border);
            cursor: pointer;
        }

        .tx-row:last-child,
        .block-row:last-child,
        .validator-row:last-child,
        .mempool-row:last-child {
            border-bottom: none;
        }

        .tx-row:hover,
        .block-row:hover,
        .validator-row:hover,
        .mempool-row:hover {
            background: rgba(251, 176, 51, 0.04);
        }

        /* Toast */
        .toast {
            position: fixed;
            bottom: 24px;
            right: 24px;
            background: var(--bg-elev);
            border: 1px solid var(--border);
            border-left: 3px solid var(--accent);
            padding: 12px 20px;
            border-radius: 6px;
            z-index: 1000;
            transform: translateX(400px);
            transition: transform 0.3s;
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
        }

        .toast.show {
            transform: translateX(0);
        }

        /* 全屏详情页：从统一顶栏（h-16 = 64px）下方开始，z-index 低于顶栏 */
        .detail-page {
            position: fixed;
            top: 64px;
            left: 0;
            right: 0;
            bottom: 0;
            z-index: 40;
            background: var(--bg);
            display: flex;
            flex-direction: column;
        }

        .detail-page:not(.open) {
            display: none;
        }

        .detail-body {
            flex: 1;
            overflow-y: auto;
        }

        @keyframes page-in {
            from {
                opacity: 0;
                transform: translateY(10px);
            }
        }

        .detail-body>* {
            animation: page-in 0.25s ease;
        }

        /* 交易流向连线 */
        .flow-line {
            flex: 1;
            height: 2px;
            margin: 0 10px;
            background: linear-gradient(90deg, var(--accent), var(--cyan));
            position: relative;
            border-radius: 1px;
        }

        .flow-line::after {
            content: '';
            position: absolute;
            right: 0;
            top: -3px;
            border-left: 6px solid var(--cyan);
            border-top: 4px solid transparent;
            border-bottom: 4px solid transparent;
        }

        /* 代码块 */
        .code-block {
            font-family: 'JetBrains Mono', monospace;
            font-size: 11px;
            background: var(--bg-elev-2);
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 12px;
            overflow: auto;
        }

        /* 进度条 */
        .progress-bar {
            height: 4px;
            background: var(--bg-elev-2);
            border-radius: 2px;
            overflow: hidden;
        }

        .progress-bar>div {
            height: 100%;
            background: linear-gradient(90deg, var(--accent), var(--accent-2));
            transition: width 0.6s;
        }

        .progress-bar.cyan>div {
            background: linear-gradient(90deg, var(--cyan), #66e6ff);
        }

        /* Nav */
        .nav-link {
            position: relative;
            padding: 6px 12px;
            font-size: 13px;
            color: var(--fg-muted);
            transition: color 0.2s;
            font-weight: 500;
        }

        .nav-link:hover {
            color: var(--fg);
        }

        .nav-link.active {
            color: var(--fg);
        }

        .nav-link.active::after {
            content: '';
            position: absolute;
            bottom: -22px;
            left: 12px;
            right: 12px;
            height: 2px;
            background: var(--accent);
            border-radius: 1px;
            box-shadow: 0 0 8px var(--accent-glow);
        }

        /* 移动端导航 */
        .nav-link-m {
            padding: 10px 12px;
            font-size: 14px;
            color: var(--fg-muted);
            border-radius: 6px;
            font-weight: 500;
        }

        .nav-link-m:hover {
            color: var(--fg);
            background: var(--bg-elev-2);
        }

        .nav-link-m.active {
            color: var(--accent);
            background: var(--accent-dim);
        }

        /* Sparkline */
        .sparkline {
            display: inline-block;
            vertical-align: middle;
        }

        /* Node map */
        .node-dot {
            cursor: pointer;
            transition: all 0.2s;
        }

        .node-dot:hover {
            transform: scale(1.5);
        }

        /* 响应式 */
        @media (max-width: 768px) {
            .hero-title {
                font-size: 2.5rem !important;
            }
        }

        a {
            color: inherit;
            text-decoration: none;
        }

        table {
            border-collapse: collapse;
        }

        /* 选中文本 */
        ::selection {
            background: var(--accent);
            color: var(--bg);
        }

        /* 详情页标签切换 */
        .detail-tab {
            padding: 8px 16px;
            font-size: 13px;
            font-weight: 500;
            color: var(--fg-muted);
            border-bottom: 2px solid transparent;
            transition: color 0.2s, border-color 0.2s;
            cursor: pointer;
        }

        .detail-tab:hover {
            color: var(--fg);
        }

        .detail-tab.active {
            color: var(--accent);
            border-bottom-color: var(--accent);
        }

        /* 减少动效偏好 */
        @media (prefers-reduced-motion: reduce) {

            *,
            *::before,
            *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }

            .ticker-track {
                animation-play-state: paused;
            }
        }

/* ===== 详情页 Tab 切换（账户页 交易记录 / 代币转账） ===== */
.account-tab {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--fg-dim);
    padding: 10px 2px 12px;
    margin-right: 28px;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    background: none;
    transition: color 0.15s;
}

.account-tab:hover { color: var(--fg); }
.account-tab.active { color: var(--accent); border-bottom-color: var(--accent); }
.account-tab .count { opacity: 0.55; margin-left: 6px; }
