/* 钱包数据分析原型 - 黑色主题 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #000000;
    color: #ffffff;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    background: #111111;
    border-radius: 8px;
    border: 1px solid #333333;
    overflow: hidden;
}

.header {
    background: #000000;
    color: #ffffff;
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid #333333;
}

.header h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #ffffff;
}

.header p {
    font-size: 0.9rem;
    color: #888888;
}



.table-container {
    overflow-x: auto;
    background: #111111;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    background: #111111;
    color: #ffffff;
}

.data-table thead {
    background: #000000;
    border-bottom: 2px solid #333333;
}

.data-table th {
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    color: #ffffff;
    border-right: 1px solid #333333;
    position: relative;
    cursor: pointer;
    user-select: none;
    vertical-align: top;
    min-width: 120px;
}

.data-table th:last-child {
    border-right: none;
}

.data-table th:hover {
    background-color: #1a1a1a;
}

.data-table th.sortable::after {
    content: '↕';
    position: absolute;
    right: 8px;
    top: 8px;
    opacity: 0.5;
    font-size: 0.7rem;
    color: #888888;
}

.data-table th.sort-asc::after {
    content: '↑';
    opacity: 1;
    color: #ffffff;
}

.data-table th.sort-desc::after {
    content: '↓';
    opacity: 1;
    color: #ffffff;
}

.column-header-with-filter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.column-header {
    font-weight: 600;
    color: #ffffff;
    flex: 1;
}

.filter-btn {
    background: none;
    border: none;
    color: #888888;
    cursor: pointer;
    padding: 4px;
    border-radius: 3px;
    transition: all 0.2s ease;
    margin-left: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-btn:hover {
    color: #ffffff;
    background: #333333;
}

.filter-btn.active {
    color: #ffffff;
    background: #555555;
}

.filter-btn svg {
    width: 12px;
    height: 12px;
}

.data-table tbody tr {
    border-bottom: 1px solid #222222;
    transition: background-color 0.2s ease;
}

.data-table tbody tr:hover {
    background-color: #1a1a1a;
}

.data-table td {
    padding: 12px;
    font-size: 0.85rem;
    vertical-align: middle;
    border-right: 1px solid #222222;
    color: #ffffff;
}

/* 确保盈亏颜色优先级 */
.data-table td.pnl-positive {
    color: #00d26a !important;
    font-weight: 600;
}

.data-table td.pnl-negative {
    color: #ff4757 !important;
    font-weight: 600;
}

.data-table td.pnl-neutral {
    color: #888888 !important;
    font-weight: 500;
}

.data-table td:last-child {
    border-right: none;
}

.address-cell-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.address-cell {
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    font-size: 0.75rem;
    background: #1a1a1a;
    padding: 6px 8px;
    border-radius: 4px;
    color: #cccccc;
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border: 1px solid #333333;
    flex: 1;
}

.add-to-whitelist-icon {
    background: none;
    border: 1px solid #333333;
    color: #888888;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
}

.add-to-whitelist-icon:hover {
    color: #00d26a;
    border-color: #00d26a;
    background: rgba(0, 210, 106, 0.1);
}

.add-to-whitelist-icon svg {
    width: 14px;
    height: 14px;
}

.positive {
    color: #00d26a;
    font-weight: 600;
}

.negative {
    color: #ff4757;
    font-weight: 600;
}

.neutral {
    color: #888888;
}

/* 更明显的盈亏颜色 */
.pnl-positive {
    color: #00d26a;
    font-weight: 600;
}

.pnl-negative {
    color: #ff4757;
    font-weight: 600;
}

.pnl-neutral {
    color: #888888;
    font-weight: 500;
}

.percentage::after {
    content: '%';
    opacity: 0.7;
}

.currency::before {
    content: '$';
    opacity: 0.7;
}

.position-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid;
}

.position-small {
    background: #1a1a1a;
    color: #00ff88;
    border-color: #00ff88;
}

.position-medium {
    background: #1a1a1a;
    color: #ffaa00;
    border-color: #ffaa00;
}

.position-large {
    background: #1a1a1a;
    color: #ff4444;
    border-color: #ff4444;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    gap: 15px;
    background: #1a1a1a;
    border-top: 1px solid #333333;
}

.pagination button {
    padding: 8px 16px;
    border: 1px solid #333333;
    background: #111111;
    color: #ffffff;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.pagination button:hover:not(:disabled) {
    background: #333333;
    border-color: #555555;
}

.pagination button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination .current-page {
    background: #333333;
    border-color: #555555;
}

.pagination span {
    color: #888888;
    font-size: 0.85rem;
}

.loading {
    text-align: center;
    padding: 60px;
    color: #888888;
    font-size: 1rem;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #333333;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 筛选弹窗样式 */
.filter-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-popup-content {
    background: #111111;
    border: 1px solid #333333;
    border-radius: 8px;
    width: 400px;
    max-width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.filter-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #333333;
}

.filter-popup-header h3 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    color: #888888;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.close-btn:hover {
    color: #ffffff;
    background: #333333;
}

.filter-popup-body {
    padding: 20px;
}

.filter-popup-body h4 {
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.filter-presets {
    margin-bottom: 24px;
}

.preset-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.preset-btn {
    padding: 6px 12px;
    border: 1px solid #333333;
    background: #1a1a1a;
    color: #ffffff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}

.preset-btn:hover {
    background: #333333;
    border-color: #555555;
}

.preset-btn.active {
    background: #555555;
    border-color: #777777;
}

.filter-custom {
    margin-bottom: 24px;
}

.range-inputs {
    display: flex;
    gap: 12px;
}

.range-input-group {
    flex: 1;
}

.range-input-group label {
    display: block;
    color: #888888;
    font-size: 0.8rem;
    margin-bottom: 6px;
}

.range-input-group input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #333333;
    border-radius: 4px;
    background: #1a1a1a;
    color: #ffffff;
    font-size: 0.85rem;
    outline: none;
}

.range-input-group input:focus {
    border-color: #555555;
    background: #222222;
}

.range-input-group input::placeholder {
    color: #666666;
}

.filter-text input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #333333;
    border-radius: 4px;
    background: #1a1a1a;
    color: #ffffff;
    font-size: 0.85rem;
    outline: none;
}

.filter-text input:focus {
    border-color: #555555;
    background: #222222;
}

.filter-text input::placeholder {
    color: #666666;
}

.option-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.option-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
}

.option-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #ffffff;
}

.option-checkbox label {
    color: #ffffff;
    font-size: 0.85rem;
    cursor: pointer;
}

.filter-popup-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px;
    border-top: 1px solid #333333;
}

.btn-secondary {
    padding: 8px 16px;
    border: 1px solid #333333;
    background: #1a1a1a;
    color: #ffffff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #333333;
    border-color: #555555;
}

.btn-primary {
    padding: 8px 16px;
    border: 1px solid #555555;
    background: #333333;
    color: #ffffff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: #555555;
    border-color: #777777;
}

/* 白名单管理样式 */
.whitelist-container {
    background: #1a1a1a;
    border-bottom: 1px solid #333333;
    padding: 20px;
}

.whitelist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.whitelist-header h3 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.whitelist-actions {
    display: flex;
    gap: 12px;
}

.whitelist-filters {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.whitelist-filters .filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.whitelist-filters .filter-group label {
    color: #888888;
    font-size: 0.85rem;
    white-space: nowrap;
}

.whitelist-filters select,
.whitelist-filters input {
    padding: 6px 10px;
    border: 1px solid #333333;
    border-radius: 4px;
    background: #111111;
    color: #ffffff;
    font-size: 0.85rem;
    outline: none;
    min-width: 150px;
}

.whitelist-filters select:focus,
.whitelist-filters input:focus {
    border-color: #555555;
    background: #222222;
}

.whitelist-stats {
    color: #888888;
    font-size: 0.85rem;
    margin-left: auto;
}

/* 白名单弹窗样式 */
.whitelist-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.whitelist-popup-content {
    background: #111111;
    border: 1px solid #333333;
    border-radius: 8px;
    width: 500px;
    max-width: 90vw;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.whitelist-popup-content.large-popup {
    width: 800px;
    max-width: 95vw;
    max-height: 90vh;
}

.whitelist-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #333333;
}

.whitelist-popup-header h3 {
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.whitelist-popup-body {
    padding: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #333333;
    border-radius: 4px;
    background: #1a1a1a;
    color: #ffffff;
    font-size: 0.85rem;
    outline: none;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: #555555;
    background: #222222;
}

.form-group textarea {
    resize: vertical;
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    font-size: 0.8rem;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #666666;
}

.address-display {
    background: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 4px;
    padding: 10px 12px;
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    font-size: 0.8rem;
    color: #cccccc;
    word-break: break-all;
}

.whitelist-popup-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px;
    border-top: 1px solid #333333;
}

/* 文件夹列表样式 */
.folder-list {
    max-height: 400px;
    overflow-y: auto;
}

.folder-item {
    background: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 12px;
}

.folder-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.folder-name {
    color: #ffffff;
    font-weight: 600;
    font-size: 0.9rem;
}

.folder-actions {
    display: flex;
    gap: 8px;
}

.folder-actions button {
    padding: 4px 8px;
    border: 1px solid #333333;
    background: #111111;
    color: #ffffff;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

.folder-actions button:hover {
    background: #333333;
    border-color: #555555;
}

.folder-actions .delete-btn {
    color: #ff4757;
    border-color: #ff4757;
}

.folder-actions .delete-btn:hover {
    background: #ff4757;
    color: #ffffff;
}

.folder-info {
    color: #888888;
    font-size: 0.8rem;
    margin-bottom: 8px;
}

.address-list {
    max-height: 100px;
    overflow-y: auto;
    background: #111111;
    border: 1px solid #333333;
    border-radius: 3px;
    padding: 8px;
}

.address-item {
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    font-size: 0.75rem;
    color: #cccccc;
    padding: 2px 0;
    word-break: break-all;
}

/* 操作按钮样式 */
.action-btn {
    padding: 4px 8px;
    border: 1px solid #333333;
    background: #1a1a1a;
    color: #ffffff;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.75rem;
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: #333333;
    border-color: #555555;
}

.add-to-whitelist-btn {
    color: #00d26a;
    border-color: #00d26a;
}

.add-to-whitelist-btn:hover {
    background: #00d26a;
    color: #000000;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .whitelist-filters {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .whitelist-filters .filter-group {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
    }
    
    .whitelist-stats {
        margin-left: 0;
        text-align: center;
    }
    
    .whitelist-popup-content {
        width: 95vw;
    }
    
    .whitelist-header {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .whitelist-actions {
        justify-content: center;
    }
}

/* 标签页样式 */
.manage-tabs {
    display: flex;
    border-bottom: 1px solid #333333;
    margin-bottom: 20px;
}

.tab-btn {
    padding: 12px 24px;
    border: none;
    background: none;
    color: #888888;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.tab-btn:hover {
    color: #ffffff;
    background: #1a1a1a;
}

.tab-btn.active {
    color: #ffffff;
    border-bottom-color: #555555;
    background: #1a1a1a;
}

.tab-content {
    display: none;
}

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

/* 文件夹操作栏 */
.folder-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 15px;
    background: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 4px;
}

.folder-stats {
    color: #888888;
    font-size: 0.85rem;
}

/* 表单操作按钮 */
.form-actions {
    margin-top: 20px;
    text-align: right;
}

/* 优化文件夹列表 */
.folder-list {
    max-height: 500px;
    overflow-y: auto;
    border: 1px solid #333333;
    border-radius: 4px;
    background: #0a0a0a;
}

.folder-item {
    background: #1a1a1a;
    border: none;
    border-bottom: 1px solid #333333;
    border-radius: 0;
    padding: 20px;
    margin-bottom: 0;
}

.folder-item:last-child {
    border-bottom: none;
}

.folder-item:hover {
    background: #222222;
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    color: #888888;
    padding: 60px 20px;
    font-size: 0.9rem;
}

.empty-state-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* Token详情页样式 */
.token-details-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1002;
    display: flex;
    align-items: center;
    justify-content: center;
}

.token-details-content {
    background: #111111;
    border: 1px solid #333333;
    border-radius: 8px;
    width: 1200px;
    max-width: 95vw;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.token-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #333333;
}

.token-details-header h3 {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.token-details-body {
    padding: 20px;
}

/* Token详情页头部统计 */
.token-stats-overview {
    background: #1a1a1a;
    border: 1px solid #333333;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.stat-card {
    background: #111111;
    border: 1px solid #333333;
    border-radius: 6px;
    padding: 16px;
    text-align: center;
    transition: all 0.2s ease;
}

.stat-card:hover {
    background: #1a1a1a;
    border-color: #555555;
}

.stat-label {
    color: #888888;
    font-size: 0.8rem;
    margin-bottom: 8px;
    font-weight: 500;
}

.stat-value {
    color: #ffffff;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.stat-change {
    font-size: 0.75rem;
    font-weight: 600;
}

.stat-change.positive {
    color: #00d26a;
}

.stat-change.negative {
    color: #ff4757;
}

.stat-change.neutral {
    color: #888888;
}

.token-tabs {
    display: flex;
    border-bottom: 1px solid #333333;
    margin-bottom: 20px;
}

.token-tab-btn {
    padding: 12px 24px;
    border: none;
    background: none;
    color: #888888;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.token-tab-btn:hover {
    color: #ffffff;
    background: #1a1a1a;
}

.token-tab-btn.active {
    color: #ffffff;
    border-bottom-color: #555555;
    background: #1a1a1a;
}

.token-tab-content {
    display: none;
}

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

.token-table-container {
    overflow-x: auto;
    border: 1px solid #333333;
    border-radius: 4px;
    background: #0a0a0a;
}

.token-table {
    width: 100%;
    border-collapse: collapse;
    background: #111111;
    color: #ffffff;
}

.token-table thead {
    background: #1a1a1a;
    border-bottom: 1px solid #333333;
}

.token-table th {
    padding: 12px 10px;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    color: #ffffff;
    border-right: 1px solid #333333;
}

.token-table th:last-child {
    border-right: none;
}

.token-table tbody tr {
    border-bottom: 1px solid #222222;
    transition: background-color 0.2s ease;
}

.token-table tbody tr:hover {
    background-color: #1a1a1a;
}

.token-table tbody tr:last-child {
    border-bottom: none;
}

.token-table td {
    padding: 10px;
    font-size: 0.8rem;
    vertical-align: middle;
    border-right: 1px solid #222222;
    color: #ffffff;
}

/* Token详情页表格中的盈亏颜色 */
.token-table td.pnl-positive {
    color: #00d26a !important;
    font-weight: 600;
}

.token-table td.pnl-negative {
    color: #ff4757 !important;
    font-weight: 600;
}

.token-table td.pnl-neutral {
    color: #888888 !important;
    font-weight: 500;
}

.token-table td:last-child {
    border-right: none;
}

/* Token信息显示 */
.token-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.token-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #333333;
    flex-shrink: 0;
}

.token-icon:error {
    background: #333333;
}

.token-details {
    flex: 1;
    min-width: 0;
}

.token-symbol {
    font-weight: 600;
    font-size: 0.85rem;
    color: #ffffff;
    margin-bottom: 2px;
}

.token-address-container {
    display: flex;
    align-items: center;
    gap: 6px;
}

.token-address {
    font-family: 'Monaco', 'Menlo', 'Courier New', monospace;
    font-size: 0.7rem;
    color: #888888;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.copy-btn {
    background: none;
    border: 1px solid #333333;
    color: #888888;
    cursor: pointer;
    padding: 2px;
    border-radius: 3px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.copy-btn:hover {
    color: #ffffff;
    border-color: #555555;
    background: #333333;
}

.copy-btn svg {
    width: 12px;
    height: 12px;
}

.trade-type {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

.trade-type.buy {
    background: rgba(0, 210, 106, 0.2);
    color: #00d26a;
    border: 1px solid #00d26a;
}

.trade-type.sell {
    background: rgba(255, 71, 87, 0.2);
    color: #ff4757;
    border: 1px solid #ff4757;
}

.token-details-footer {
    display: flex;
    justify-content: flex-end;
    padding: 20px;
    border-top: 1px solid #333333;
}

/* 地址单元格可点击样式 */
.address-cell {
    cursor: pointer;
    transition: all 0.2s ease;
}

.address-cell:hover {
    background: #222222;
    border-color: #555555;
    color: #ffffff;
}

/* 响应式设计 */
@media (max-width: 1024px) {
    .token-details-content {
        width: 95vw;
    }
    
    .token-table th,
    .token-table td {
        padding: 8px 6px;
        font-size: 0.75rem;
    }
    
    .token-address {
        max-width: 100px;
        font-size: 0.7rem;
    }
}

@media (max-width: 768px) {
    .token-tabs {
        flex-direction: column;
    }
    
    .token-tab-btn {
        text-align: left;
        border-bottom: 1px solid #333333;
        border-right: none;
    }
    
    .token-tab-btn.active {
        border-bottom-color: #333333;
        border-left: 3px solid #555555;
    }
    
    .token-table-container {
        overflow-x: scroll;
    }
}

/* 时间筛选特殊样式 */
.time-filter {
    display: flex;
    gap: 8px;
    flex-direction: column;
}

.time-filter input[type="date"] {
    width: 100%;
    padding: 4px 6px;
    border: 1px solid #333333;
    border-radius: 4px;
    font-size: 0.7rem;
    background: #1a1a1a;
    color: #ffffff;
    outline: none;
}

.time-filter input[type="date"]:focus {
    border-color: #555555;
    background: #222222;
}

.time-filter input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(1);
    opacity: 0.7;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .data-table th,
    .data-table td {
        padding: 10px 8px;
        font-size: 0.8rem;
    }
    
    .column-filter {
        font-size: 0.7rem;
        padding: 4px 6px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .header {
        padding: 20px;
    }
    
    .header h1 {
        font-size: 1.5rem;
    }
    
    .stats-bar {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
    }
    
    .stats-item {
        width: 100%;
    }
    
    .data-table th,
    .data-table td {
        padding: 8px 6px;
        font-size: 0.75rem;
    }
    
    .address-cell {
        max-width: 100px;
        font-size: 0.7rem;
    }
    
    .column-filter {
        font-size: 0.65rem;
        padding: 3px 5px;
    }
}

@media (max-width: 480px) {
    .data-table {
        font-size: 0.7rem;
    }
    
    .data-table th,
    .data-table td {
        padding: 6px 4px;
    }
    
    .address-cell {
        max-width: 80px;
        font-size: 0.65rem;
    }
}