@charset "utf-8";
/* style.css - 统计看板样式 */

@font-face {
    font-family: 'RadioLand';
    src: url('LCD.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', Roboto, 'Helvetica Neue', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 24px;
}

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

.header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 32px;
    padding: 28px 32px;
    margin-bottom: 28px;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    display: inline-block;
}

.header p {
    color: #64748b;
    margin-top: 8px;
    font-size: 0.9rem;
}

.header-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
}

.nav-links {
    display: flex;
    gap: 20px;
}

.nav-links a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
    padding: 6px 12px;
    border-radius: 20px;
    background: #f1f5f9;
}

.nav-links a:hover {
    background: #667eea;
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.stat-card {
    background: white;
    border-radius: 28px;
    padding: 28px 20px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    border: 1px solid rgba(102, 126, 234, 0.1);
    border-left: 4px solid #FFC107;
    border-right: 4px solid #FFC107;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.12);
}

.stat-number {
    font-size: 2.8rem;
    background: linear-gradient(135deg, #1e293b, #334155);
    -webkit-background-clip: text;
    background-clip: text;
    color: #9C27B0;
    line-height: 1.2;
    font-family: 'RadioLand', fantasy;
	letter-spacing: 5px;
}

.stat-label {
    color: #64748b;
    font-size: 0.85rem;
    margin-top: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 500;
}

.trend-section, .details-section, .day-details-section {
    background: white;
    border-radius: 28px;
    padding: 28px;
    margin-bottom: 28px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    padding-bottom: 12px;
    border-bottom: 3px solid #667eea;
    display: inline-block;
}

.sort-buttons {
    display: flex;
    gap: 10px;
}

.sort-btn {
    background: #f1f5f9;
    border: none;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.sort-btn.active {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.sort-btn:hover:not(.active) {
    background: #e2e8f0;
    color: #1e293b;
}

/* K线图样式 */
.kline-container {
    overflow-x: auto;
    padding: 20px 0;
}

.kline-chart {
    display: flex;
    gap: 20px;
    justify-content: space-around;
    min-width: 700px;
	padding: 0 10px;
}

.kline-item {
    flex: 1;
    text-align: center;
    min-width: 80px;
    cursor: pointer;
    transition: transform 0.2s;
    padding: 10px 5px;
    border-radius: 12px;
}

.kline-item:hover {
    transform: translateY(-4px);
    background: rgba(102, 126, 234, 0.1);
}

.kline-item.active {
    background: #eef7ff;
    box-shadow: 0 0 10px 0px #FFC107;
    transform: translateY(-4px);
}

.kline-candle-wrapper {
    position: relative;
    height: 140px;
    margin-bottom: 12px;
    background: rgba(241, 245, 249, 0.5);
    border-radius: 8px;
}

.kline-shadow {
    position: absolute;
    width: 2px;
    background: rgba(100, 100, 100, 0.4);
    transform: translateX(-50%);
}

.kline-candle {
    position: absolute;
    width: 50px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
    transition: all 0.3s;
    min-height: 2px;
}

.candle-rise {
    background: #26a69a;
    box-shadow: 0 0 6px rgba(38, 166, 154, 0.5);
}

.candle-fall {
    background: #ef5350;
    box-shadow: 0 0 6px rgba(239, 83, 80, 0.5);
}

.kline-date {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    margin-top: 8px;
}

.kline-stats {
    display: flex;
    justify-content: center;
    gap: 8px;
    font-size: 0.7rem;
    margin-top: 6px;
    flex-wrap: wrap;
}

.kline-volume {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 12px;
    color: #475569;
}

.kline-change {
    padding: 2px 6px;
    border-radius: 12px;
    font-weight: 600;
}

.change-rise {
    color: #26a69a;
    background: rgba(38, 166, 154, 0.1);
}

.change-fall {
    color: #ef5350;
    background: rgba(239, 83, 80, 0.1);
}

.table-wrapper {
    overflow-x: auto;
    border-radius: 20px;
}

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

th {
    background: #f8fafc;
    padding: 14px 12px;
    text-align: left;
    font-weight: 600;
    color: #1e293b;
    border-bottom: 2px solid #e2e8f0;
}

td {
    padding: 12px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
}

tr:hover {
    background: #fefce8;
}

.ip-badge {
    font-family: 'SF Mono', 'Menlo', monospace;
    background: #eef2ff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #4338ca;
    display: inline-block;
}

.referer-text {
    max-width: 350px;
    white-space: nowrap;
    font-size: 0.8rem;
    color: #2563eb;
    cursor: pointer;
    scrollbar-width: thin;
    scrollbar-color: #667eea #e2e8f0;
}

.referer-text::-webkit-scrollbar {
    height: 6px;
}

.referer-text::-webkit-scrollbar-track {
    background: #e2e8f0;
    border-radius: 10px;
}

.referer-text::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 10px;
    transition: background 0.2s;
}

.referer-text::-webkit-scrollbar-thumb:hover {
    background: #5a67d8;
}

.referer-link {
    text-decoration: none;
    display: inline-block;
    width: 100%;
}

.referer-link:hover .referer-text {
    text-decoration: underline;
    color: #4338ca;
}

.empty-row td {
    text-align: center;
    color: #94a3b8;
    padding: 40px;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.pagination button {
    background: #f1f5f9;
    border: none;
    padding: 8px 14px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
}

.pagination button:hover:not(:disabled) {
    background: #667eea;
    color: white;
}

.pagination button.active-page {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

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

.day-summary-stats {
    display: inline-flex;
    gap: 20px;
    margin-left: 20px;
    font-size: 0.85rem;
    font-weight: normal;
    color: #64748b;
}

.day-summary-stats span {
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 30px;
}

.day-summary-stats strong {
    color: #667eea;
}

.close-day-details {
    float: right;
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #94a3b8;
    transition: color 0.2s;
}

.close-day-details:hover {
    color: #ef4444;
}

.section-title-wrapper {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 12px;
}

/* 柱状图数字字体 */
.bar-value {
    position: absolute;
    top: 40px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 3.75rem;
    font-family: 'RadioLand', fantasy;
    color: #a07ce170;
}

@media (max-width: 768px) {
    body { padding: 16px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .stat-card { padding: 20px 12px; }
    .stat-number { font-size: 2rem; }
    th, td { font-size: 0.75rem; padding: 8px; }
    .header h1 { font-size: 1.4rem; }
    .section-header { flex-direction: column; align-items: flex-start; }
    .day-summary-stats { margin-left: 0; margin-top: 8px; }
    .section-title-wrapper { flex-direction: column; align-items: flex-start; }
}

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

.stat-card, .trend-section, .details-section, .day-details-section {
    animation: fadeIn 0.4s ease-out;
}

footer {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
}

.hidden {
    display: none;
}