/* Data+AI 全球日报 - 简洁蓝白风格 */

@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;
    --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: 48px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--blue-100);
}

.back-link {
    margin-top: 12px;
}

.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: 32px;
    font-weight: 700;
    color: var(--blue-700);
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}

header p {
    font-size: 14px;
    color: var(--slate-500);
    font-weight: 400;
}

.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);
}

/* Section Headers */
section {
    margin-bottom: 40px;
}

section h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--blue-600);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    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%);
}

/* Top Changes */
.top-changes {
    background: var(--white);
    border-radius: 16px;
    padding: 28px 32px;
    box-shadow: var(--shadow-md);
    margin-bottom: 40px;
    border: 1px solid var(--blue-100);
}

.top-changes h2 {
    margin-bottom: 24px;
}

.top-changes h2::after {
    display: none;
}

.top-changes ol {
    list-style: none;
    counter-reset: items;
    margin-bottom: 24px;
}

.top-changes li {
    counter-increment: items;
    position: relative;
    padding-left: 36px;
    margin-bottom: 16px;
    line-height: 1.7;
}

.top-changes li::before {
    content: counter(items);
    position: absolute;
    left: 0;
    top: 2px;
    width: 24px;
    height: 24px;
    background: var(--blue-600);
    color: var(--white);
    border-radius: 50%;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-changes li strong {
    color: var(--slate-800);
    font-weight: 600;
}

.judgment {
    background: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-700) 100%);
    color: var(--white);
    padding: 20px 24px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.8;
}

.judgment strong {
    font-weight: 600;
}

/* News Items */
.news-item {
    background: var(--white);
    padding: 24px 28px;
    margin-bottom: 16px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--slate-100);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

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

.news-item h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--slate-800);
    margin-bottom: 10px;
    line-height: 1.5;
}

.sources {
    font-size: 12px;
    color: var(--slate-400);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sources a {
    color: var(--blue-600);
    text-decoration: none;
    padding: 2px 8px;
    background: var(--blue-50);
    border-radius: 4px;
    transition: background 0.15s;
}

.sources a:hover {
    background: var(--blue-100);
}

.date {
    font-size: 12px;
    color: var(--slate-400);
    margin-bottom: 12px;
}

.summary {
    margin-bottom: 16px;
    color: var(--slate-600);
    line-height: 1.8;
}

.impact {
    background: var(--blue-50);
    color: var(--blue-700);
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.7;
    border-left: 3px solid var(--blue-500);
}

/* Analyst Items */
.analyst-item {
    background: var(--white);
    padding: 24px 28px;
    margin-bottom: 16px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--slate-100);
}

.analyst-item h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--slate-800);
    margin-bottom: 8px;
}

.meta {
    font-size: 12px;
    color: var(--slate-400);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--slate-200);
}

.key-data, .implication {
    margin-bottom: 10px;
    line-height: 1.7;
    font-size: 14px;
}

.key-data strong, .implication strong {
    color: var(--blue-600);
    font-weight: 500;
}

/* Watchlist Items */
.watchlist-item {
    background: var(--white);
    padding: 24px 28px;
    margin-bottom: 16px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--slate-100);
}

.watchlist-item h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--slate-800);
    display: inline;
}

.status {
    display: inline-block;
    background: var(--blue-100);
    color: var(--blue-700);
    padding: 3px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 10px;
    vertical-align: middle;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.reason {
    margin-top: 14px;
    margin-bottom: 10px;
    line-height: 1.7;
    color: var(--slate-600);
}

.milestone {
    font-size: 14px;
    line-height: 1.7;
    color: var(--slate-600);
}

.milestone strong {
    color: var(--blue-600);
    font-weight: 500;
}

/* Stock Analysis */
.stock-analysis .disclaimer {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 20px;
    border-left: 3px solid #f59e0b;
}

.stock-item {
    background: var(--white);
    padding: 24px 28px;
    margin-bottom: 16px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    border: 1px solid var(--slate-100);
}

.stock-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.ticker {
    font-size: 18px;
    font-weight: 700;
    color: var(--blue-700);
    font-family: 'SF Mono', 'Menlo', monospace;
}

.company {
    font-size: 14px;
    color: var(--slate-500);
}

.signal {
    margin-left: auto;
    padding: 4px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
}

.signal-bullish {
    background: #dcfce7;
    color: #166534;
}

.signal-bearish {
    background: #fee2e2;
    color: #991b1b;
}

.signal-neutral {
    background: var(--slate-100);
    color: var(--slate-600);
}

.stock-summary {
    color: var(--slate-600);
    line-height: 1.8;
    margin-bottom: 16px;
}

.stock-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.catalysts, .risks {
    background: var(--slate-50);
    padding: 14px 16px;
    border-radius: 8px;
}

.catalysts strong, .risks strong {
    display: block;
    font-size: 13px;
    margin-bottom: 8px;
    color: var(--slate-700);
}

.catalysts ul, .risks ul {
    list-style: none;
    font-size: 13px;
    color: var(--slate-600);
}

.catalysts li, .risks li {
    padding: 4px 0;
    padding-left: 16px;
    position: relative;
}

.catalysts li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #22c55e;
}

.risks li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #ef4444;
}

@media (max-width: 640px) {
    .stock-details {
        grid-template-columns: 1fr;
    }
    
    .signal {
        margin-left: 0;
    }
}

/* Index Page */
.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;
}

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

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

.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);
}

/* Empty State */
.empty {
    color: var(--slate-400);
    font-style: normal;
    padding: 40px 20px;
    text-align: center;
    background: var(--white);
    border-radius: 12px;
    border: 1px dashed var(--slate-200);
}

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

/* Responsive */
@media (max-width: 640px) {
    .container {
        padding: 24px 16px 40px;
    }
    
    header h1 {
        font-size: 24px;
    }
    
    .top-changes {
        padding: 20px;
        border-radius: 12px;
    }
    
    .top-changes li {
        padding-left: 32px;
    }
    
    .news-item, .analyst-item, .watchlist-item, .month {
        padding: 20px;
        border-radius: 10px;
    }
    
    .month ul {
        grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    }
}

/* Smooth animations */
@media (prefers-reduced-motion: no-preference) {
    .news-item, .analyst-item, .watchlist-item {
        animation: fadeInUp 0.4s ease backwards;
    }
    
    .news-item:nth-child(1) { animation-delay: 0.05s; }
    .news-item:nth-child(2) { animation-delay: 0.1s; }
    .news-item:nth-child(3) { animation-delay: 0.15s; }
    .news-item:nth-child(4) { animation-delay: 0.2s; }
    .news-item:nth-child(5) { animation-delay: 0.25s; }
}

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