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

:root {
    --bg-primary: #0a0e27;
    --bg-secondary: #16213e;
    --bg-tertiary: #0f3460;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --accent-purple: #8b5cf6;
    --accent-blue: #3b82f6;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --accent-yellow: #f59e0b;
    --border-color: #2d3748;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1a2e 50%, #16213e 100%);
    background-attachment: fixed;
    color: var(--text-primary);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* 粒子背景效果 */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
    animation: backgroundShift 20s ease-in-out infinite;
}

/* 蜡笔小新背景图：只在控制台页面显示（body 上添加 console-body 类时） */
.console-body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* 注意：这里文件名要与你放在 public 目录的图片一致，例如 shinchan.jpg */
    background-image: url('shinchan.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 60% auto; /* 占视口宽度 60%，高度按比例 */
    opacity: 0.3;
    pointer-events: none;
    z-index: 0;
    filter: drop-shadow(0 0 12px rgba(0, 0, 0, 0.4));
}

@keyframes backgroundShift {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.container {
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

/* 顶部导航栏 */
.header {
    background: linear-gradient(135deg, rgba(22, 33, 62, 0.95) 0%, rgba(15, 52, 96, 0.95) 100%);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.bot-icon {
    font-size: 2rem;
    animation: float 3s ease-in-out infinite;
    filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.5));
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(-5deg); }
    75% { transform: translateY(-10px) rotate(5deg); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.header h1 {
    font-size: 1.5rem;
    background: linear-gradient(135deg, #8b5cf6 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    text-shadow: 0 0 30px rgba(139, 92, 246, 0.5);
    letter-spacing: 0.5px;
}

.header-right {
    display: flex;
    gap: 0.5rem;
}

.icon-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    color: var(--text-primary);
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.icon-btn:hover {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* 标签导航 */
.tabs {
    background: linear-gradient(135deg, rgba(22, 33, 62, 0.9) 0%, rgba(15, 52, 96, 0.9) 100%);
    backdrop-filter: blur(10px);
    display: flex;
    gap: 0.5rem;
    padding: 0 1rem;
    border-bottom: 2px solid rgba(139, 92, 246, 0.2);
    overflow-x: auto;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.95rem;
    border-bottom: 3px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    position: relative;
}

.tab::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.tab:hover {
    color: var(--text-primary);
    background: rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
}

.tab:hover::before {
    width: 80%;
}

.tab.active {
    color: var(--accent-blue);
    background: rgba(59, 130, 246, 0.15);
}

.tab.active::before {
    width: 100%;
}

.tab-icon {
    font-size: 1.2rem;
    display: inline-block;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { 
        transform: scale(1);
        filter: drop-shadow(0 0 5px rgba(139, 92, 246, 0.3));
    }
    50% { 
        transform: scale(1.1);
        filter: drop-shadow(0 0 10px rgba(139, 92, 246, 0.6));
    }
}

.tab.active .tab-icon {
    animation: iconActive 1.5s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(139, 92, 246, 0.8));
}

@keyframes iconActive {
    0%, 100% { 
        transform: scale(1.1) rotate(0deg);
    }
    25% { 
        transform: scale(1.15) rotate(-5deg);
    }
    75% { 
        transform: scale(1.15) rotate(5deg);
    }
}

/* 内容区域 */
.content {
    padding: 2rem;
    min-height: calc(100vh - 200px);
}

/* 登录页面布局 */
.login-wrapper {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at top left, rgba(139, 92, 246, 0.4), transparent 60%),
                radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.4), transparent 60%),
                #0b1024;
    z-index: 9999;
}

.login-card {
    display: flex;
    width: 900px;
    max-width: 95%;
    background: #10152e;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(139, 92, 246, 0.6);
}

.login-left {
    flex: 1;
    padding: 3rem 2.5rem;
    background: radial-gradient(circle at top left, #fbbf24, #f97316),
                linear-gradient(135deg, #4f46e5, #7c3aed);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    position: relative;
}

.login-logo-gift {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 18px rgba(0, 0, 0, 0.4));
}

.login-left h1 {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
    letter-spacing: 2px;
}

.login-desc-main {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.login-desc-sub {
    font-size: 0.9rem;
    opacity: 0.85;
}

.login-right {
    flex: 1;
    padding: 3rem 3rem;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.98), rgba(30, 64, 175, 0.9));
    color: #e5e7eb;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-right h2 {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    font-size: 0.9rem;
    color: #9ca3af;
    margin-bottom: 1.5rem;
}

.admin-login-form .form-group input {
    background: rgba(15, 23, 42, 0.9);
}

.login-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.85rem;
    color: #9ca3af;
}

.login-btn {
    width: 100%;
    margin-top: 0.5rem;
}

.login-msg {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #f97373;
}

@media (max-width: 768px) {
    .login-card {
        flex-direction: column;
    }
    .login-left, .login-right {
        padding: 2rem 1.5rem;
    }
}

.tab-content {
    display: none;
}

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

/* 卡片 */
.card {
    background: linear-gradient(135deg, rgba(22, 33, 62, 0.95) 0%, rgba(15, 52, 96, 0.95) 100%);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2rem;
    border: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
    transition: left 0.5s;
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.2);
    border-color: rgba(139, 92, 246, 0.4);
}

/* 卡片标题图标 */
.card-title-icon {
    display: inline-block;
    font-size: 1.5rem;
    margin-right: 0.5rem;
    animation: iconFloat 3s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.5));
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-5px) rotate(-5deg); }
    75% { transform: translateY(-5px) rotate(5deg); }
}

/* 不同卡片的独特样式 */
.card-icon-login {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(15, 52, 96, 0.95) 100%);
    border-color: rgba(139, 92, 246, 0.3);
}

.card-icon-login::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    animation: rotateGradient 10s linear infinite;
    pointer-events: none;
}

.card-icon-group {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(15, 52, 96, 0.95) 100%);
    border-color: rgba(59, 130, 246, 0.3);
}

.card-icon-group::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    animation: rotateGradient 12s linear infinite;
    pointer-events: none;
}

.card-icon-speak {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(15, 52, 96, 0.95) 100%);
    border-color: rgba(16, 185, 129, 0.3);
}

.card-icon-speak::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(16, 185, 129, 0.1) 0%, transparent 70%);
    animation: rotateGradient 14s linear infinite;
    pointer-events: none;
}

.card-icon-stats {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1) 0%, rgba(15, 52, 96, 0.95) 100%);
    border-color: rgba(245, 158, 11, 0.3);
}

.card-icon-stats::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(245, 158, 11, 0.1) 0%, transparent 70%);
    animation: rotateGradient 16s linear infinite;
    pointer-events: none;
}

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

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.card-header h2 {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.card-actions {
    display: flex;
    gap: 0.5rem;
}

/* 表单 */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
}

.form-group input:focus {
    outline: none;
    border-color: var(--accent-blue);
}

/* 按钮 */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

.btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.5);
}

.btn-glow {
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(139, 92, 246, 0.6);
    }
}

.btn-success {
    background: var(--accent-green);
    color: white;
}

.btn-success:hover {
    background: #059669;
}

.btn-danger {
    background: var(--accent-red);
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-secondary {
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-primary);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* 表格 */
.table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
}

.data-table td {
    color: var(--text-primary);
}

.data-table tr:hover {
    background: var(--bg-tertiary);
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

/* 状态标签 */
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
}

.status-connected {
    background: rgba(16, 185, 129, 0.2);
    color: var(--accent-green);
}

.status-disconnected {
    background: rgba(239, 68, 68, 0.2);
    color: var(--accent-red);
}

.status-running {
    background: rgba(59, 130, 246, 0.2);
    color: var(--accent-blue);
}

.status-stopped {
    background: rgba(107, 114, 128, 0.2);
    color: var(--text-secondary);
}

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

.stat-card {
    background: linear-gradient(135deg, rgba(15, 52, 96, 0.8) 0%, rgba(22, 33, 62, 0.8) 100%);
    padding: 1.5rem;
    border-radius: 16px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6 0%, #8b5cf6 100%);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.stat-card:hover::before {
    transform: scaleX(1);
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(139, 92, 246, 0.3);
    border-color: rgba(139, 92, 246, 0.4);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
    animation: numberPulse 2s ease-in-out infinite;
}

@keyframes numberPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* 监控日志 */
.monitor-log {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
    max-height: 400px;
    overflow-y: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
}

.log-entry {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border-left: 3px solid var(--accent-blue);
    padding-left: 1rem;
}

.log-entry.success {
    border-left-color: var(--accent-green);
    color: var(--accent-green);
}

.log-entry.error {
    border-left-color: var(--accent-red);
    color: var(--accent-red);
}

.log-entry.warn {
    border-left-color: var(--accent-yellow);
    color: var(--accent-yellow);
}

/* 登录结果样式 */
.result-item {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    border-left: 4px solid;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-item.success {
    background: rgba(16, 185, 129, 0.1);
    border-left-color: var(--accent-green);
    color: var(--accent-green);
}

.result-item.error {
    background: rgba(239, 68, 68, 0.1);
    border-left-color: var(--accent-red);
    color: var(--accent-red);
}

.result-item.warn {
    background: rgba(245, 158, 11, 0.1);
    border-left-color: var(--accent-yellow);
    color: var(--accent-yellow);
}

/* 文本样式 */
.text-muted {
    color: var(--text-secondary);
    font-style: italic;
}

/* 表单元素 */
.form-select,
.form-textarea {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    font-family: inherit;
}

.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

/* 复选框组 */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 200px;
    overflow-y: auto;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-item label {
    cursor: pointer;
    user-select: none;
}

/* 结果展示 */
.result-box {
    margin-top: 1rem;
    padding: 1rem;
    background: var(--bg-tertiary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.result-item {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    border-radius: 4px;
    border-left: 3px solid var(--accent-blue);
}

.result-item.success {
    border-left-color: var(--accent-green);
    background: rgba(16, 185, 129, 0.1);
}

.result-item.error {
    border-left-color: var(--accent-red);
    background: rgba(239, 68, 68, 0.1);
}

.info-box {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem;
}

.info-box ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

.info-box li {
    margin-bottom: 0.25rem;
}

/* 货币网格 */
.currency-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.currency-item {
    background: linear-gradient(135deg, rgba(15, 52, 96, 0.6) 0%, rgba(22, 33, 62, 0.6) 100%);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.currency-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.1), transparent);
    transition: left 0.5s;
}

.currency-item:hover::before {
    left: 100%;
}

.currency-item:hover {
    transform: translateY(-4px);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.2);
}

.currency-item label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

.currency-icon {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    border-radius: 10px;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.currency-name {
    flex: 1;
}

.currency-input {
    width: 100%;
    padding: 0.75rem;
    background: rgba(15, 52, 96, 0.5);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s;
}

.currency-input:focus {
    outline: none;
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
    background: rgba(15, 52, 96, 0.7);
}

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

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

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: 4px;
}

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

/* 红包记录表格样式 */
.records-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.records-table th {
    background: var(--bg-secondary);
    padding: 0.75rem;
    text-align: left;
    border-bottom: 2px solid var(--border-color);
    font-weight: 600;
    color: var(--text-primary);
}

.records-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.records-table tr:hover {
    background: var(--bg-secondary);
    transition: background 0.2s;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.badge-math {
    background: var(--accent-blue);
    color: white;
}

.badge-captcha {
    background: var(--accent-purple);
    color: white;
}

.badge-letter {
    background: var(--accent-orange);
    color: white;
}

.badge-locked {
    background: var(--accent-yellow);
    color: var(--text-primary);
}

.badge-direct {
    background: var(--accent-green);
    color: white;
}

/* 响应式 */
@media (max-width: 768px) {
    .header {
        padding: 1rem;
    }

    .header h1 {
        font-size: 1.2rem;
    }

    .tabs {
        padding: 0 0.5rem;
    }

    .tab {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }

    .content {
        padding: 1rem;
    }

    .card {
        padding: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }
}

