/* 3Friends Crypto Scanner - Professional Financial Dashboard Styles */

/* 全局变量 */
:root {
    --primary-color: #1a1a2e;
    --secondary-color: #16213e;
    --accent-color: #0f3460;
    --success-color: #00d4aa;
    --warning-color: #ffa726;
    --danger-color: #ef5350;
    --info-color: #42a5f5;
    --text-primary: #ffffff;
    --text-secondary: #b0bec5;
    --text-muted: #78909c;
    --border-color: #37474f;
    --card-bg: rgba(26, 26, 46, 0.95);
    --card-border: rgba(255, 255, 255, 0.1);
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
    --shadow-heavy: 0 8px 30px rgba(0, 0, 0, 0.2);
    --gradient-primary: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    --gradient-accent: linear-gradient(135deg, #00d4aa 0%, #00bcd4 100%);
    --gradient-success: linear-gradient(135deg, #00d4aa 0%, #00b894 100%);
    --gradient-warning: linear-gradient(135deg, #ffa726 0%, #ff9800 100%);
    --gradient-danger: linear-gradient(135deg, #ef5350 0%, #f44336 100%);
}

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    background: var(--primary-color);
    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: 
        radial-gradient(circle at 20% 80%, rgba(0, 212, 170, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(66, 165, 245, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 167, 38, 0.05) 0%, transparent 50%);
    z-index: -1;
    animation: backgroundShift 30s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(-20px, -20px) rotate(1deg); }
    50% { transform: translate(20px, -10px) rotate(-1deg); }
    75% { transform: translate(-10px, 20px) rotate(0.5deg); }
}

/* 容器样式 */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* 头部样式 */
.header-section {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 30px;
    background: var(--gradient-primary);
    border-radius: 20px;
    box-shadow: var(--shadow-heavy);
    position: relative;
    overflow: hidden;
    border: 1px solid var(--card-border);
}

.header-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.05) 50%, transparent 70%);
    animation: shimmer 4s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.header-section h1 {
    color: var(--text-primary);
    margin: 0;
    font-size: 3em;
    font-weight: 700;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
    position: relative;
    z-index: 1;
    letter-spacing: -0.02em;
}

.header-section .subtitle {
    color: var(--text-secondary);
    font-size: 1.3em;
    margin-top: 15px;
    position: relative;
    z-index: 1;
    font-weight: 400;
}

.data-source {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    font-size: 0.95em;
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
    backdrop-filter: blur(10px);
}

/* 卡片样式 */
.card {
    background: var(--card-bg);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: var(--shadow-medium);
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-heavy);
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    font-size: 1.4em;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.card-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-accent);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 1.2em;
}

/* 表单样式 */
.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.95em;
}

/* 表单分区样式 */
.form-section {
    margin-bottom: 35px;
    padding: 25px;
    background: rgba(26, 26, 46, 0.3);
    border-radius: 15px;
    border: 1px solid var(--card-border);
    backdrop-filter: blur(10px);
}

.form-section h3 {
    color: var(--text-primary);
    font-size: 1.2em;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section h3::before {
    content: '';
    width: 3px;
    height: 20px;
    background: var(--gradient-accent);
    border-radius: 2px;
}

/* 表单提示样式 */
.form-hint {
    margin-top: 8px;
    font-size: 0.85em;
    color: var(--text-muted);
    font-style: italic;
    padding: 8px 12px;
    background: rgba(66, 165, 245, 0.1);
    border-radius: 8px;
    border-left: 3px solid var(--info-color);
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.95em;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.form-control:focus {
    outline: none;
    border-color: var(--success-color);
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
    background: rgba(255, 255, 255, 0.08);
}

.form-control option {
    background: var(--secondary-color);
    color: var(--text-primary);
}

/* 复选框样式 */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 10px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.checkbox-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--success-color);
}

.checkbox-item input[type="checkbox"] {
    margin-right: 12px;
    width: 18px;
    height: 18px;
    accent-color: var(--success-color);
}

.checkbox-item label {
    color: var(--text-primary);
    font-weight: 500;
    cursor: pointer;
}

/* 按钮样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border: none;
    border-radius: 10px;
    font-size: 1em;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-success);
    color: var(--text-primary);
    box-shadow: var(--shadow-light);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.btn-secondary {
    background: var(--gradient-accent);
    color: var(--text-primary);
}

.btn-warning {
    background: var(--gradient-warning);
    color: var(--text-primary);
}

.btn-danger {
    background: var(--gradient-danger);
    color: var(--text-primary);
}

/* 进度条样式 */
.progress-section {
    background: var(--card-bg);
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 25px;
    border: 1px solid var(--card-border);
    box-shadow: var(--shadow-medium);
}

.progress-title {
    font-size: 1.3em;
    color: var(--text-primary);
    margin-bottom: 20px;
    font-weight: 600;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    overflow: hidden;
    margin: 20px 0;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.2);
}

.progress-fill {
    height: 100%;
    background: var(--gradient-success);
    border-radius: 6px;
    transition: width 0.3s ease;
    position: relative;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.3) 50%, transparent 100%);
    animation: progressShimmer 2s infinite;
}

@keyframes progressShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* 状态指示器 */
.status-indicator {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
    margin: 5px;
}

.status-processing {
    background: var(--gradient-accent);
    color: var(--text-primary);
}

.status-success {
    background: var(--gradient-success);
    color: var(--text-primary);
}

.status-warning {
    background: var(--gradient-warning);
    color: var(--text-primary);
}

.status-error {
    background: var(--gradient-danger);
    color: var(--text-primary);
}

/* 结果表格样式 */
.results-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background: var(--card-bg);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.results-table th,
.results-table td {
    padding: 15px 20px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.results-table th {
    background: var(--secondary-color);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95em;
}

.results-table td {
    color: var(--text-secondary);
    font-size: 0.9em;
}

.results-table tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--card-bg);
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--card-border);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-heavy);
}

.stat-value {
    font-size: 2.5em;
    font-weight: 700;
    color: var(--success-color);
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9em;
    font-weight: 500;
}

/* 页脚样式 */
.footer {
    background: var(--secondary-color);
    color: var(--text-secondary);
    text-align: center;
    padding: 30px 20px;
    margin-top: 60px;
    border-top: 1px solid var(--border-color);
    position: relative;
    z-index: 1;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-text {
    font-size: 0.95em;
    margin: 0;
}

.footer-links {
    margin-top: 15px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--success-color);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .header-section {
        padding: 30px 20px;
    }
    
    .header-section h1 {
        font-size: 2.2em;
    }
    
    .card {
        padding: 20px;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .results-table {
        font-size: 0.85em;
    }
    
    .results-table th,
    .results-table td {
        padding: 10px 15px;
    }
}

@media (max-width: 480px) {
    .header-section h1 {
        font-size: 1.8em;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 0.9em;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* 加载动画 */
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top: 3px solid var(--success-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 错误消息样式 */
.error-message {
    background: var(--gradient-danger);
    color: var(--text-primary);
    padding: 15px 20px;
    border-radius: 8px;
    margin: 15px 0;
    font-weight: 500;
}

/* 成功消息样式 */
.success-message {
    background: var(--gradient-success);
    color: var(--text-primary);
    padding: 15px 20px;
    border-radius: 8px;
    margin: 15px 0;
    font-weight: 500;
}

/* 时间显示样式 */
.time-display {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    flex-wrap: wrap;
    gap: 15px;
}

.time-item {
    background: var(--card-bg);
    padding: 15px 20px;
    border-radius: 10px;
    border: 1px solid var(--card-border);
    text-align: center;
    flex: 1;
    min-width: 200px;
}

.time-label {
    font-size: 0.9em;
    color: var(--text-secondary);
    margin-bottom: 5px;
}

.time-value {
    font-size: 1.1em;
    color: var(--text-primary);
    font-weight: 600;
}

/* 导航样式 */
.nav-tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 30px;
    overflow-x: auto;
}

.nav-tab {
    padding: 15px 25px;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}

.nav-tab:hover {
    color: var(--text-primary);
}

.nav-tab.active {
    color: var(--success-color);
    border-bottom-color: var(--success-color);
}

/* 工具提示 */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: var(--secondary-color);
    color: var(--text-primary);
    text-align: center;
    border-radius: 6px;
    padding: 8px 12px;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.85em;
    box-shadow: var(--shadow-medium);
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
} 