
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@300;400;500;700&display=swap');

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

body {
    font-family: 'Fira Code', 'Consolas', monospace;
    background: #0a0a0a;
    color: #00ff00;
    overflow-x: hidden;
    min-height: 100vh;
}

/* 矩阵背景效果 */
.matrix-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    opacity: 0.1;
}

.matrix-bg canvas {
    display: block;
}

/* 导航栏 */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.9);
    border-bottom: 2px solid #00ff00;
    padding: 1rem 2rem;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: #00ff00;
    text-decoration: none;
}

.navbar .nav-links {
    display: flex;
    gap: 2rem;
}

.navbar .nav-links a {
    color: #00ff00;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

.navbar .nav-links a:hover {
    border-color: #00ff00;
    background: rgba(0, 255, 0, 0.1);
}

/* 主容器 */
.container {
    margin-top: 80px;
    padding: 2rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

/* 页面标题 */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 0 10px #00ff00;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { text-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00, 0 0 30px #00ff00; }
    to { text-shadow: 0 0 5px #00ff00, 0 0 10px #00ff00, 0 0 15px #00ff00; }
}

.page-subtitle {
    font-size: 1.2rem;
    color: #00cc00;
    opacity: 0.8;
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-card {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #00ff00;
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    transform: translateY(-5px);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #00ff00;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 1rem;
    color: #00cc00;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* 数据表格 */
.data-section {
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #00ff00;
    border-radius: 10px;
    padding: 2rem;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.5rem;
    color: #00ff00;
    margin-bottom: 1.5rem;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0, 20, 0, 0.3);
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #003300;
}

.data-table th {
    background: rgba(0, 255, 0, 0.1);
    color: #00ff00;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.data-table tr:hover {
    background: rgba(0, 255, 0, 0.05);
}

.data-table td {
    color: #00cc00;
}

/* 终端样式 */
.terminal {
    background: #000;
    border: 2px solid #00ff00;
    border-radius: 10px;
    padding: 1.5rem;
    margin: 2rem 0;
    font-family: 'Fira Code', monospace;
}

.terminal-header {
    color: #00ff00;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #003300;
    font-weight: 600;
}

.terminal-line {
    color: #00cc00;
    margin: 0.5rem 0;
    line-height: 1.4;
}

.terminal-line::before {
    content: '> ';
    color: #00ff00;
    font-weight: bold;
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #003300;
    border-radius: 50%;
    border-top-color: #00ff00;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 标签导航样式 */
.tab-navigation {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #00ff00;
    border-radius: 10px;
    padding: 1rem;
    gap: 2rem;
}

.tab-item {
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid #003300;
    border-radius: 5px;
    color: #00cc00;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tab-item:hover {
    border-color: #00ff00;
    background: rgba(0, 255, 0, 0.1);
    color: #00ff00;
}

.tab-item.active {
    border-color: #00ff00;
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

/* 内容区域 */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar {
        padding: 1rem;
    }
    
    .navbar .nav-links {
        gap: 1rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 1rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .data-table {
        font-size: 0.9rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 0.5rem;
        min-width: 80px;
        font-size: 0.8rem;
    }
    
    .amount-large {
        font-size: 0.75rem;
    }
    
    .tab-navigation {
        flex-direction: column;
        gap: 1rem;
    }
    
    .tab-item {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #00ff00;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00cc00;
}

/* 大额交易表格中的金额列样式 */
.amount-large {
    font-weight: 600;
    color: #00ff00;
    font-size: 1.1em;
}

/* 输入框样式优化 */
#min-amount {
    border-radius: 5px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .data-table th,
    .data-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.85rem;
    }
    
    .amount-large {
        font-size: 0.9em;
    }
}

/* 浏览器链接样式 */
.explorer-link {
    color: #00ff00;
    text-decoration: none;
    border-bottom: 1px dotted #00ff00;
    transition: all 0.3s ease;
}

.explorer-link:hover {
    color: #00ff00;
    border-bottom: 1px solid #00ff00;
    background: rgba(0, 255, 0, 0.1);
    text-shadow: 0 0 5px #00ff00;
}

.explorer-link:active {
    color: #00cc00;
}

/* OKB价值显示样式 */
.usd-value {
    font-size: 0.8em;
    color: #00cc00;
    margin-top: 2px;
}

.usd-value-inline {
    color: #00cc00;
    margin-left: 1rem;
}

#okb-price-display {
    margin-top: 1rem;
    font-size: 1.2rem;
    color: #00ff00;
    font-weight: 500;
    text-align: center;
    padding: 0.5rem;
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid #00ff00;
    border-radius: 5px;
}

#refresh-price {
    margin-left: 1rem;
    background: transparent;
    border: 1px solid #00ff00;
    color: #00ff00;
    padding: 0.2rem 0.5rem;
    cursor: pointer;
    font-size: 0.8rem;
    border-radius: 3px;
    transition: all 0.3s ease;
}

#refresh-price:hover {
    background: rgba(0, 255, 0, 0.1);
    box-shadow: 0 0 5px rgba(0, 255, 0, 0.3);
}

/* 确保价值显示的一致性 */
.usd-value {
    font-size: 0.8em;
    color: #00cc00;
    margin-top: 2px;
    white-space: nowrap;
}

/* 大额交易表格中的金额列特殊样式 */
.whale-amount {
    position: relative;
}

/* 价值显示样式优化 */
.usd-value {
    font-size: 0.85em;
    color: #00cc00;
    margin-top: 3px;
    padding: 2px 6px;
    background: rgba(0, 50, 0, 0.3);
    border-radius: 3px;
    display: inline-block;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* 净流入列的价值显示 */
.net-flow .usd-value {
    background: rgba(0, 30, 0, 0.5);
}

/* 大额交易的价值显示 */
.whale-amount .usd-value {
    background: rgba(0, 40, 0, 0.4);
    font-size: 0.9em;
}

/* 价值显示样式 - 恢复到下一行显示 */
.usd-value {
    font-size: 0.8em;
    color: #00cc00;
    margin-top: 2px;
    display: block; /* 改为block显示在下一行 */
    white-space: nowrap;
}

/* 保持原有的基础样式 */
.amount-large {
    font-weight: 600;
    color: #00ff00;
    font-size: 1.1em;
}

.net-flow {
    font-weight: 600;
}
/* 价值显示样式优化 */
.usd-value {
    font-size: 0.8em;
    color: #00cc00;
    margin-top: 2px;
    display: block;
    white-space: nowrap;
    padding: 1px 4px;
    background: rgba(0, 30, 0, 0.3);
    border-radius: 2px;
    font-weight: 500;
}

/* 鼠标悬停时显示完整金额 */
.usd-value:hover {
    background: rgba(0, 50, 0, 0.5);
}

/* 净流入列的特殊样式 */
.net-flow .usd-value {
    background: rgba(0, 20, 0, 0.4);
}