/* ===== 基础变量 ===== */
/* 主题：浅色系 v2 */
:root {
    --bg-primary: #f5f7fa;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --text-primary: #1a202c;
    --text-secondary: #718096;
    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --red: #ef4444;
    --green: #22c55e;
    --yellow: #eab308;
    --border: #e2e8f0;
    --radius: 10px;
}

/* ===== 重置 & 基础 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
}

/* ===== Header ===== */
header {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-bottom: 1px solid var(--border);
    padding: 2rem 1.5rem;
    text-align: center;
    color: #fff;
}

.header-content h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: #fff;
}

.subtitle {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
}

/* ===== Main ===== */
main {
    max-width: 960px;
    margin: 0 auto;
    padding: 1.5rem;
}

/* ===== Stats Bar ===== */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1rem 1.2rem;
    text-align: center;
    border: 1px solid var(--border);
}

.stat-card .stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent);
}

.stat-card .stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.2rem;
}

/* ===== Filter Bar ===== */
.filter-bar {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.search-input, .type-filter {
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-primary);
    border-radius: var(--radius);
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
    outline: none;
    transition: border-color 0.2s;
}

.search-input { flex: 1; }
.type-filter { min-width: 140px; }

.search-input:focus, .type-filter:focus {
    border-color: var(--accent);
}

/* ===== Report List ===== */
.report-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.report-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 1rem 1.2rem;
    border: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.15s, border-color 0.2s, background 0.2s;
}

.report-card:hover {
    transform: translateY(-1px);
    border-color: var(--accent);
    background: #f0f5ff;
}

.report-card .card-left {
    flex: 1;
}

.report-card .card-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.report-card .card-meta {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.report-card .card-right {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

.tag-早报 { background: rgba(59, 130, 246, 0.12); color: #2563eb; }
.tag-连跌筛选 { background: rgba(239, 68, 68, 0.12); color: #dc2626; }
.tag-个股追踪 { background: rgba(34, 197, 94, 0.12); color: #16a34a; }
.tag-周报 { background: rgba(234, 179, 8, 0.12); color: #ca8a04; }

.card-arrow {
    color: var(--text-secondary);
    font-size: 1.2rem;
}

/* ===== Date Group ===== */
.date-group-header {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 0.5rem 0 0.3rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0.8rem;
    margin-top: 1.2rem;
}

.date-group-header:first-child {
    margin-top: 0;
}

/* ===== Empty State ===== */
.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    color: var(--text-secondary);
}

.empty-state .hint {
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

/* ===== Footer ===== */
footer {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-secondary);
    font-size: 0.8rem;
    border-top: 1px solid var(--border);
    margin-top: 3rem;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
    .header-content h1 { font-size: 1.4rem; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .filter-bar { flex-direction: column; }
    .report-card { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .card-right { align-self: flex-end; }
}
