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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f0f4f8;
    color: #1e293b;
    line-height: 1.5;
    padding: 16px;
}

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

.header {
    background: linear-gradient(145deg, #0b2b4f, #163a5e);
    color: white;
    padding: 28px 24px;
    border-radius: 28px;
    margin-bottom: 24px;
    box-shadow: 0 12px 24px rgba(0,20,40,0.15);
}

.header h1 {
    font-size: 1.9rem;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.header h1 span {
    font-size: 2.2rem;
}

.stats {
    display: flex;
    justify-content: space-between;
    background: rgba(255,255,255,0.12);
    padding: 14px 20px;
    border-radius: 50px;
    font-size: 0.95rem;
}

.time-range {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.time-btn {
    background: white;
    border: 1px solid #d0dae8;
    border-radius: 30px;
    padding: 8px 16px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
    color: #2a4d6e;
}

.time-btn:hover {
    background: #e3ecf5;
}

.time-btn.active {
    background: #2a6f97;
    color: white;
    border-color: #2a6f97;
}

.search-bar {
    background: white;
    border-radius: 50px;
    padding: 8px 16px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    flex-wrap: wrap;
}

.search-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 0.95rem;
    padding: 8px 0;
    background: transparent;
    min-width: 150px;
}

.search-bar button {
    background: #2a6f97;
    color: white;
    border: none;
    border-radius: 40px;
    padding: 8px 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.2s;
    margin-left: 8px;
}

.search-bar button:hover {
    background: #1e4a6b;
}

.search-clear {
    margin-left: 8px;
    color: #6b7a8f;
    cursor: pointer;
    font-size: 1.2rem;
}

.search-all-label {
    margin-left: 10px;
    font-size: 0.85rem;
    color: #2a4d6e;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    white-space: nowrap;
}

.search-all-label input {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-card {
    background: white;
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
    border-left: 4px solid #2a6f97;
    transition: all 0.2s ease;
}

.news-card:hover {
    box-shadow: 0 8px 18px rgba(0,40,80,0.08);
    transform: translateY(-2px);
}

.news-title {
    font-size: 1rem;
    font-weight: 500;
    color: #0a1c2c;
    line-height: 1.5;
    margin-bottom: 12px;
}

.sources-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-bottom: 10px;
}

.source-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 12px;
    border-radius: 30px;
    background: #f0f4fa;
    color: #2a6f97;
    text-decoration: none;
    font-size: 0.85rem;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.source-icon:hover {
    background: #2a6f97;
    color: white;
    border-color: #2a6f97;
    transform: scale(1.02);
}

.source-icon .emoji {
    margin-right: 4px;
    font-size: 1rem;
}

.news-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: #6b7a8f;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e9ecf2;
}

.news-time .time-icon {
    font-size: 0.9rem;
}

.news-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px dashed #e0e7ef;
}

.tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 400;
    background: #f2f6fc;
    color: #2a4d6e;
    border: 1px solid #d9e2ef;
}

.tag-concept {
    background: #e3f0ff;
    border-color: #b8d3f0;
    color: #1a5a9c;
}

.tag-industry {
    background: #ecf7ef;
    border-color: #b8e0c9;
    color: #1e6f3c;
}

.news-detail {
    font-size: 0.9rem;
    line-height: 1.6;
    color: #2e405b;
    background: #f8fafd;
    border-radius: 12px;
    padding: 12px;
    margin-top: 12px;
    border-left: 3px solid #2a6f97;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.toggle-detail-btn {
    background: white;
    border: 1px solid #d0dae8;
    border-radius: 20px;
    padding: 6px 14px;
    margin-top: 8px;
    color: #2a6f97;
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

.toggle-detail-btn:hover {
    background: #e3ecf5;
    border-color: #2a6f97;
}

.load-more {
    background: white;
    border: 1px solid #d0dae8;
    border-radius: 40px;
    padding: 14px;
    margin: 20px 0;
    text-align: center;
    color: #2a6f97;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.load-more:hover {
    background: #2a6f97;
    color: white;
    border-color: #2a6f97;
}

.load-more.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.loading, .error, .empty {
    background: white;
    border-radius: 24px;
    padding: 48px 24px;
    text-align: center;
    color: #5a6e7e;
    box-shadow: 0 6px 14px rgba(0,0,0,0.02);
}

.loading span {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 16px;
}

.error span {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 16px;
}

.retry-btn {
    background: #1e4a6b;
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 40px;
    font-size: 0.95rem;
    font-weight: 500;
    margin-top: 20px;
    cursor: pointer;
    transition: background 0.2s;
}

.retry-btn:hover {
    background: #0f3a52;
}

.footer {
    text-align: center;
    margin-top: 48px;
    color: #62748c;
    font-size: 0.78rem;
    border-top: 1px solid #dce5ec;
    padding-top: 28px;
}

.update-badge {
    background: #1e4a6b;
    color: white;
    padding: 6px 18px;
    border-radius: 40px;
    font-size: 0.75rem;
    display: inline-block;
    margin-bottom: 16px;
}

/* 搜索加载提示 */
.search-loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 16px 24px;
    border-radius: 40px;
    font-size: 0.95rem;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    backdrop-filter: blur(4px);
}

.search-loading span {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@media (max-width: 640px) {
    .search-bar {
        padding: 12px 16px;
    }
    .search-all-label {
        margin-left: 0;
        width: 100%;
        justify-content: flex-end;
        margin-top: 8px;
    }
}

@media (max-width: 480px) {
    .news-card {
        padding: 14px 16px;
    }
    .news-title {
        font-size: 0.95rem;
    }
    .source-icon {
        padding: 4px 10px;
        font-size: 0.8rem;
    }
    .news-time {
        font-size: 0.75rem;
    }
    .tag {
        padding: 2px 8px;
        font-size: 0.7rem;
    }
    .time-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    .news-detail {
        font-size: 0.85rem;
        padding: 10px;
    }
}