/* 全局深色主题 */
body {
    background-color: #13151f;
    color: #fff;
}

/* 主容器样式 */
.app-container {
    background-color: #13151f;
}

/* 侧边栏样式 */
.sidebar {
    background: #1a1d2c;
    border-right: 1px solid #2a2e3f;
}

.sidebar .logo {
    color: #fff;
    border-bottom: 1px solid #2a2e3f;
}

.sidebar .nav-links li {
    color: #8b8fa3;
}

.sidebar .nav-links li:hover,
.sidebar .nav-links li.active {
    background: #242837;
    color: #fff;
}

/* 顶部栏样式 */
.top-bar {
    background: #1a1d2c;
    border-bottom: 1px solid #2a2e3f;
}

.search-container {
    background: #242837;
    border: 1px solid #2a2e3f;
}

.search-container input {
    background: transparent;
    color: #fff;
}

.search-container input::placeholder {
    color: #8b8fa3;
}

.search-btn {
    background: #2a2e3f;
    color: #fff;
}

.search-btn:hover {
    background: #3d4257;
}

.network-status {
    color: #8b8fa3;
}

/* 面板通用样式 */
.panel {
    background: #1a1d2c;
    border: 1px solid #2a2e3f;
    border-radius: 12px;
}

/* 钱包卡片样式优化 */
.wallet-card {
    background: #242837;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #2a2e3f;
}

.wallet-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    border-color: #3d4257;
}

/* 卡片头部 */
.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #2a2e3f;
}

.wallet-note {
    font-weight: 500;
    color: #fff;
    font-size: 1.1em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

/* 钱包地址样式 */
.wallet-address {
    background: #1a1d2c;
    padding: 10px 14px;
    border-radius: 8px;
    margin: 15px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    font-family: 'Roboto Mono', monospace;
    font-size: 0.85em;
    border: 1px solid #2a2e3f;
    transition: all 0.2s ease;
}

.address-text {
    color: #8b8fa3;
    letter-spacing: 0.3px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 模态框样式 */
.modal-content {
    background: #1a1d2c;
    border: 1px solid #2a2e3f;
}

.modal-header {
    border-bottom: 1px solid #2a2e3f;
}

.modal-header h3 {
    color: #fff;
}

.input-group input {
    background: #242837;
    border: 1px solid #2a2e3f;
    color: #fff;
}

.input-group input::placeholder {
    color: #8b8fa3;
}

.input-group label {
    color: #8b8fa3;
}

/* 按钮样式统一 */
.primary-btn, .secondary-btn, .monitor-btn, .refresh-btn {
    background: #2a2e3f;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.primary-btn:hover, .secondary-btn:hover, 
.monitor-btn:hover, .refresh-btn:hover {
    background: #3d4257;
}

/* 其他现有样式保持不变... */

/* 下拉框样式 */
select {
    background: #242837;
    border: 1px solid #2a2e3f;
    color: #fff;
    padding: 8px;
    border-radius: 8px;
}

select:hover {
    border-color: #3d4257;
}

select option {
    background: #1a1d2c;
    color: #fff;
}

/* 余额信息样式 */
.balance-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}

.balance-item {
    background: #1a1d2c;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #2a2e3f;
    transition: all 0.2s ease;
}

.balance-item:hover {
    background: #242837;
    border-color: #3d4257;
}

.balance-label {
    display: block;
    color: #8b8fa3;
    font-size: 0.9em;
    margin-bottom: 6px;
}

.balance-value {
    font-weight: 600;
    color: #fff;
    font-size: 1.2em;
}

/* 卡片操作按钮样式 */
.card-actions button {
    background: #2a2e3f;
    border: none;
    padding: 6px;
    cursor: pointer;
    color: #8b8fa3;
    transition: all 0.2s ease;
    border-radius: 6px;
    font-size: 1em;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-actions button:hover {
    background: #3d4257;
}

/* 更新动画 */
.updating {
    animation: pulse 1.5s infinite;
    background: #242837 !important;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* 复制提示样式 */
.copy-tip {
    background: #242837;
    color: #fff;
    border: 1px solid #2a2e3f;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* 无钱包提示 */
.no-wallet-tip {
    color: #8b8fa3;
}

/* 分页按钮样式 */
.page-btn {
    background: #2a2e3f;
    color: #fff;
    border: 1px solid #3d4257;
}

.page-btn:hover:not(:disabled) {
    background: #3d4257;
}

.page-btn:disabled {
    background: #1a1d2c;
    color: #8b8fa3;
    border-color: #2a2e3f;
}

/* 页码信息 */
#pageInfo {
    color: #8b8fa3;
}

/* 加载中状态 */
.loading {
    color: #8b8fa3;
}

/* 确保所有输入框统一样式 */
input[type="text"],
input[type="number"],
input[type="password"] {
    background: #242837;
    border: 1px solid #2a2e3f;
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="password"]:focus {
    border-color: #3d4257;
    outline: none;
}

/* 禁用状态的输入框 */
input:disabled {
    background: #1a1d2c;
    color: #8b8fa3;
    border-color: #2a2e3f;
}

/* 钱包生成页面样式 */
.wallet-tools {
    background: #1a1d2c;
    border: 1px solid #2a2e3f;
    padding: 20px;
    border-radius: 12px;
}

.wallet-tools .input-group {
    background: #242837;
    border: 1px solid #2a2e3f;
    padding: 15px;
    border-radius: 8px;
}

/* 下拉框和选择器统一样式 */
select,
.custom-select {
    background: #242837;
    border: 1px solid #2a2e3f;
    color: #fff;
    padding: 8px 12px;
    border-radius: 8px;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238b8fa3' d='M2 4l4 4 4-4'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

select:hover,
.custom-select:hover {
    border-color: #3d4257;
}

select:focus,
.custom-select:focus {
    outline: none;
    border-color: #3d4257;
}

select option,
.custom-select option {
    background: #1a1d2c;
    color: #fff;
    padding: 8px;
}

/* 监控页面余额显示优化 */
.balance-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 15px;
}

.balance-item {
    background: #1a1d2c !important;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #2a2e3f !important;
    transition: all 0.2s ease;
}

.balance-item:hover {
    background: #242837 !important;
    border-color: #3d4257 !important;
}

.balance-label {
    display: block;
    color: #8b8fa3 !important;
    font-size: 0.9em;
    margin-bottom: 6px;
}

.balance-value {
    font-weight: 600;
    color: #fff !important;
    font-size: 1.2em;
}

/* 生成结果区域样式 */
.result-area {
    background: #1a1d2c;
    border: 1px solid #2a2e3f;
    border-radius: 8px;
    padding: 15px;
    margin-top: 15px;
}

.result-area pre {
    background: #242837;
    border: 1px solid #2a2e3f;
    color: #fff;
    padding: 12px;
    border-radius: 6px;
    margin: 10px 0;
}

/* 表格样式统一 */
table {
    background: #1a1d2c;
    border: 1px solid #2a2e3f;
    border-radius: 8px;
    overflow: hidden;
}

th, td {
    border: 1px solid #2a2e3f;
    color: #fff;
    background: #242837;
}

th {
    background: #1a1d2c;
    color: #8b8fa3;
}

/* 确保所有按钮样式统一 */
button {
    background: #2a2e3f;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

button:hover:not(:disabled) {
    background: #3d4257;
}

button:disabled {
    background: #1a1d2c;
    color: #8b8fa3;
    cursor: not-allowed;
}

/* 确保所有输入框统一样式 */
textarea {
    background: #242837;
    border: 1px solid #2a2e3f;
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    resize: vertical;
}

textarea:focus {
    border-color: #3d4257;
    outline: none;
}

/* 钱包生成页面样式 */
.wallet-panel .panel-content {
    background: #1a1d2c !important;
    border: 1px solid #2a2e3f !important;
}

.wallet-form {
    background: #242837 !important;
    border: 1px solid #2a2e3f !important;
    padding: 20px;
    border-radius: 8px;
}

/* 生成结果区域 */
.wallet-result {
    background: #1a1d2c !important;
    border: 1px solid #2a2e3f !important;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.wallet-info {
    background: #242837 !important;
    border: 1px solid #2a2e3f !important;
    padding: 12px;
    border-radius: 6px;
    margin: 10px 0;
}

/* 区块浏览页面样式 */
.blocks-panel .panel-content {
    background: #1a1d2c !important;
    border: 1px solid #2a2e3f !important;
}

.blocks-container {
    background: #242837 !important;
    border: 1px solid #2a2e3f !important;
    border-radius: 8px;
    padding: 15px;
}

/* 区块信息卡片 */
.block-card {
    background: #1a1d2c !important;
    border: 1px solid #2a2e3f !important;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.block-card:hover {
    border-color: #3d4257 !important;
    background: #242837 !important;
}

/* 交易列表 */
.transaction-list {
    background: #1a1d2c !important;
    border: 1px solid #2a2e3f !important;
    border-radius: 8px;
}

.transaction-item {
    background: #242837 !important;
    border-bottom: 1px solid #2a2e3f !important;
    padding: 12px;
}

.transaction-item:hover {
    background: #2a2e3f !important;
}

/* 计数器和定时器 */
.refresh-timer {
    color: #8b8fa3 !important;
}

#refreshCounter {
    color: #fff !important;
}

/* 搜索结果面板 */
.search-result-panel {
    background: #1a1d2c !important;
    border: 1px solid #2a2e3f !important;
}

.search-result-content {
    background: #242837 !important;
    border: 1px solid #2a2e3f !important;
    border-radius: 8px;
    padding: 15px;
}

/* 标签和信息显示 */
.label {
    color: #8b8fa3 !important;
}

.value {
    color: #fff !important;
}

/* 地址和哈希值显示 */
.hash-text, .address-text {
    font-family: 'Roboto Mono', monospace;
    color: #8b8fa3 !important;
    background: #1a1d2c !important;
    border: 1px solid #2a2e3f !important;
    padding: 4px 8px;
    border-radius: 4px;
}

/* 状态标签 */
.status-tag {
    background: #2a2e3f !important;
    color: #fff !important;
    padding: 4px 8px;
    border-radius: 4px;
}

.status-tag.success {
    background: #2e7d32 !important;
}

.status-tag.pending {
    background: #ed6c02 !important;
}

.status-tag.failed {
    background: #d32f2f !important;
}

/* 分页控件 */
.pagination {
    background: #1a1d2c !important;
    border: 1px solid #2a2e3f !important;
    border-radius: 8px;
    padding: 10px;
    margin-top: 15px;
}

/* 确保所有面板标题统一样式 */
.panel-header h2 {
    color: #fff !important;
}

/* 确保所有面板内容区域统一样式 */
.panel-content {
    background: #1a1d2c !important;
    border: 1px solid #2a2e3f !important;
    border-radius: 8px;
    padding: 20px;
}

/* 确保所有输入组样式统一 */
.input-group {
    background: #242837 !important;
    border: 1px solid #2a2e3f !important;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

/* 钱包生成和恢复面板 */
.content-area .wallet-panel {
    background: #1a1d2c !important;
}

.content-area .wallet-panel .wallet-tools {
    background: #242837 !important;
    border: 1px solid #2a2e3f !important;
    border-radius: 8px;
}

.content-area .wallet-panel .input-group {
    background: #1a1d2c !important;
    border: 1px solid #2a2e3f !important;
}

.content-area .wallet-panel input,
.content-area .wallet-panel select {
    background: #242837 !important;
    border: 1px solid #2a2e3f !important;
    color: #fff !important;
}

/* 区块浏览面板 */
.content-area .blocks-panel {
    background: #1a1d2c !important;
}

.content-area .blocks-panel .blocks-container {
    background: #242837 !important;
    border: 1px solid #2a2e3f !important;
}

.content-area .blocks-panel .block-info {
    background: #1a1d2c !important;
    border: 1px solid #2a2e3f !important;
    color: #fff !important;
}

/* 按钮统一样式 */
.content-area button,
.content-area .btn {
    background: #2a2e3f !important;
    color: #fff !important;
    border: 1px solid #3d4257 !important;
}

.content-area button:hover,
.content-area .btn:hover {
    background: #3d4257 !important;
}

/* 结果显示区域 */
.content-area .result-area {
    background: #1a1d2c !important;
    border: 1px solid #2a2e3f !important;
    color: #fff !important;
}

.content-area .result-area pre {
    background: #242837 !important;
    border: 1px solid #2a2e3f !important;
}

/* 标签和值的显示 */
.content-area .label {
    color: #8b8fa3 !important;
}

.content-area .value {
    color: #fff !important;
}

/* 使用新的类名来增加特异性 */
.dark-theme .dark-content .wallet-panel {
    background: #1a1d2c !important;
}

.dark-theme .dark-content .wallet-tools {
    background: #242837 !important;
    border: 1px solid #2a2e3f !important;
}

/* 其他样式类似... */
 