/* Fluss GitHub Daily Report - 蓝白简约风格 */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700&display=swap');

:root {
    --blue-50: #eff6ff;
    --blue-100: #dbeafe;
    --blue-200: #bfdbfe;
    --blue-500: #3b82f6;
    --blue-600: #2563eb;
    --blue-700: #1d4ed8;
    --blue-900: #1e3a8a;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-700: #334155;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --white: #ffffff;
    --success: #22c55e;
    --success-light: #dcfce7;
    --warning: #f59e0b;
    --warning-light: #fef3c7;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

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

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(180deg, var(--blue-50) 0%, var(--white) 100%);
    min-height: 100vh;
    color: var(--slate-700);
    line-height: 1.75;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 860px;
    margin: 0 auto;
    padding: 40px 24px 60px;
}

/* Header */
header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--blue-100);
}

.back-link {
    margin-bottom: 16px;
}

.back-link a {
    color: var(--blue-600);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.15s ease;
}

.back-link a:hover {
    color: var(--blue-700);
}

header h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--blue-700);
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

header .date, header .repo {
    font-size: 14px;
    color: var(--slate-500);
    font-weight: 400;
}

header a {
    color: var(--blue-600);
    text-decoration: none;
    transition: color 0.15s ease;
}

header a:hover {
    color: var(--blue-700);
}

.rss-button {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 16px;
    background: var(--blue-50);
    color: var(--blue-600);
    border: 1px solid var(--blue-200);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
}

.rss-button:hover {
    background: var(--blue-100);
    border-color: var(--blue-300);
    color: var(--blue-700);
}

/* Stats */
.stats {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.stat {
    background: var(--white);
    padding: 12px 20px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border: 1px solid var(--slate-100);
    font-size: 14px;
    color: var(--slate-600);
    transition: all 0.15s ease;
}

.stat:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

/* Section */
section {
    margin-bottom: 32px;
    background: var(--white);
    padding: 24px 28px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--slate-100);
}

section h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--blue-600);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--slate-100);
    display: flex;
    align-items: center;
    gap: 12px;
}

section h2::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--blue-200) 0%, transparent 100%);
}

section h3 {
    margin: 16px 0 8px;
    color: var(--slate-700);
    font-size: 14px;
    font-weight: 600;
}

/* Lists */
ul {
    list-style: none;
}

li {
    padding: 10px 0;
    border-bottom: 1px solid var(--slate-100);
    transition: background 0.15s ease;
}

li:last-child {
    border-bottom: none;
}

li:hover {
    background: var(--blue-50);
    margin: 0 -12px;
    padding-left: 12px;
    padding-right: 12px;
    border-radius: 6px;
}

li a {
    color: var(--blue-600);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s ease;
}

li a:hover {
    color: var(--blue-700);
}

.author {
    color: var(--slate-500);
    font-size: 13px;
}

.labels {
    display: inline-block;
    background: var(--blue-50);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: var(--blue-600);
    margin-left: 8px;
    font-weight: 500;
}

/* Critical List */
.critical-list li {
    color: var(--warning);
}

.no-issues {
    color: var(--success);
    font-weight: 500;
}

/* Empty State */
.empty {
    color: var(--slate-400);
    font-style: normal;
    padding: 24px 16px;
    text-align: center;
    background: var(--slate-50);
    border-radius: 8px;
    border: 1px dashed var(--slate-200);
}

/* Activity Item */
.activity-item {
    margin-bottom: 16px;
    padding: 16px;
    background: var(--slate-50);
    border-radius: 10px;
    transition: all 0.2s ease;
}

.activity-item:hover {
    background: var(--white);
    box-shadow: var(--shadow);
}

.activity-item h4 {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--slate-800);
}

.activity-item h4 a {
    color: var(--blue-600);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s ease;
}

.activity-item h4 a:hover {
    color: var(--blue-700);
}

.activity-item ul {
    margin-left: 16px;
}

.activity-item li {
    padding: 4px 0;
    border-bottom: none;
    font-size: 13px;
    color: var(--slate-600);
}

.activity-item li:hover {
    background: transparent;
    margin: 0;
    padding-left: 0;
}

.activity-item li a {
    color: var(--blue-600);
}

/* Footer */
footer {
    text-align: center;
    color: var(--slate-400);
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--slate-100);
    font-size: 12px;
}

footer a {
    color: var(--blue-600);
    text-decoration: none;
}

footer a:hover {
    color: var(--blue-700);
}

/* Index Page - Month Sections */
.month {
    background: var(--white);
    padding: 24px 28px;
    margin-bottom: 16px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--slate-100);
}

.month h2 {
    color: var(--slate-800);
    font-size: 15px;
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
    margin-bottom: 16px;
    padding-bottom: 0;
    border-bottom: none;
    cursor: pointer;
}

.month h2::after {
    display: none;
}

.month ul {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.month li {
    padding: 0;
    border-bottom: none;
}

.month li:hover {
    background: transparent;
    margin: 0;
    padding: 0;
}

.month li a {
    display: block;
    padding: 10px 14px;
    background: var(--slate-50);
    border-radius: 8px;
    color: var(--blue-600);
    text-decoration: none;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.15s ease;
    border: 1px solid transparent;
}

.month li a:hover {
    background: var(--blue-50);
    border-color: var(--blue-200);
}

/* Responsive */
@media (max-width: 640px) {
    .container {
        padding: 24px 16px 40px;
    }
    
    header h1 {
        font-size: 22px;
    }
    
    .stats {
        flex-direction: column;
        align-items: center;
    }
    
    section {
        padding: 20px;
        border-radius: 10px;
    }
    
    .month {
        padding: 20px;
    }
    
    .month ul {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    }
}

/* Smooth animations */
@media (prefers-reduced-motion: no-preference) {
    section {
        animation: fadeInUp 0.4s ease backwards;
    }
    
    section:nth-of-type(1) { animation-delay: 0.05s; }
    section:nth-of-type(2) { animation-delay: 0.1s; }
    section:nth-of-type(3) { animation-delay: 0.15s; }
    section:nth-of-type(4) { animation-delay: 0.2s; }
    section:nth-of-type(5) { animation-delay: 0.25s; }
}

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