* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: linear-gradient(135deg, #0a0a0f 0%, #1a1a2e 50%, #0f0f1a 100%);
    min-height: 100vh;
    color: #e0e0e0;
    padding: 2rem 1rem;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(ellipse at 20% 20%, rgba(120, 80, 255, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 80%, rgba(80, 200, 255, 0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(150, 50, 255, 0.08) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(90deg, transparent 49.5%, rgba(102, 126, 234, 0.03) 49.5%, rgba(102, 126, 234, 0.03) 50.5%, transparent 50.5%),
        linear-gradient(0deg, transparent 49.5%, rgba(102, 126, 234, 0.03) 49.5%, rgba(102, 126, 234, 0.03) 50.5%, transparent 50.5%);
    background-size: 60px 60px;
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(102, 126, 234, 0.2);
    position: relative;
}

.header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 120px;
    height: 1px;
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.8), transparent);
}

.left h1 {
    font-size: 1.75rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    letter-spacing: -0.5px;
}

#lastUpdate {
    font-size: 0.75rem;
    color: #6b7280;
    letter-spacing: 0.5px;
}

.refresh-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border: 1px solid rgba(102, 126, 234, 0.3);
    border-radius: 8px;
    background: rgba(102, 126, 234, 0.1);
    color: #a5b4fc;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.refresh-btn:hover {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.2);
}

.refresh-btn svg {
    width: 16px;
    height: 16px;
}

.refresh-btn.loading svg {
    animation: spin 1s linear infinite;
}

.info-bar {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-bar span:first-child {
    color: #a5b4fc;
    font-weight: 600;
}

.news-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.item:hover {
    background: rgba(102, 126, 234, 0.08);
    border-color: rgba(102, 126, 234, 0.2);
    transform: translateX(4px);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.1);
}

.item:hover::before {
    opacity: 1;
}

.item-index {
    font-size: 1.25rem;
    font-weight: 700;
    font-family: 'Inter', sans-serif;
    color: rgba(102, 126, 234, 0.5);
    min-width: 2.5rem;
    text-align: right;
    transition: color 0.3s ease;
}

.item:hover .item-index {
    color: #667eea;
}

.item-body {
    flex: 1;
    min-width: 0;
}

.item-title {
    font-size: 1rem;
    font-weight: 500;
    color: #e5e7eb;
    margin-bottom: 0.5rem;
    line-height: 1.5;
    transition: color 0.3s ease;
}

.item:hover .item-title {
    color: #fff;
}

.item-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.badge {
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.badge-36kr {
    background: rgba(255, 102, 0, 0.15);
    color: #ff8844;
    border: 1px solid rgba(255, 102, 0, 0.2);
}

.badge-jiqizhixin {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.badge-liangziwei {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.badge-aifrontier {
    background: rgba(236, 72, 153, 0.15);
    color: #f472b6;
    border: 1px solid rgba(236, 72, 153, 0.2);
}

.badge-default {
    background: rgba(255, 255, 255, 0.08);
    color: #9ca3af;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.item-time {
    font-size: 0.75rem;
    color: #4b5563;
    transition: color 0.3s ease;
}

.item:hover .item-time {
    color: #6b7280;
}

.error {
    text-align: center;
    padding: 4rem 2rem;
    color: #6b7280;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.loading {
    text-align: center;
    padding: 4rem 2rem;
    color: #6b7280;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 2px solid rgba(102, 126, 234, 0.1);
    border-top-color: #667eea;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 1rem;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.loading p {
    animation: pulse 2s ease-in-out infinite;
}

.footer {
    text-align: center;
    padding: 3rem 1rem 2rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(102, 126, 234, 0.1);
    position: relative;
    z-index: 1;
}

.footer p {
    font-size: 0.8rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.footer-note {
    font-size: 0.7rem;
    color: #4b5563;
}

@media (max-width: 768px) {
    body {
        padding: 1rem;
    }

    .header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .refresh-btn {
        width: 100%;
        justify-content: center;
    }

    .item {
        padding: 1rem;
        gap: 0.75rem;
    }

    .item-index {
        font-size: 1rem;
        min-width: 2rem;
    }

    .item-title {
        font-size: 0.9rem;
    }

    .info-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .footer {
        padding: 2rem 1rem;
    }
}