:root {
    --bg: #0f0f14;
    --bg-surface: #16161e;
    --bg-elevated: #1c1c27;
    --bg-hover: #22222f;
    --text: #eaeaf0;
    --text-secondary: #a0a0b8;
    --text-muted: #6b6b82;
    --accent: #e63946;
    --accent-light: #ff4d5a;
    --accent-blue: #4ea8de;
    --border: rgba(255, 255, 255, 0.06);
    --border-strong: rgba(255, 255, 255, 0.1);
    --font-sans: 'Inter', -apple-system, system-ui, sans-serif;
    --font-serif: 'Georgia', 'Times New Roman', serif;
    --max-width: 1200px;
    --radius: 10px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.header {
    border-bottom: 1px solid var(--border);
    background: rgba(15, 15, 20, 0.95);
    backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.logo {
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}

.logo span {
    color: var(--accent);
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    flex: 1;
}

.header-nav::-webkit-scrollbar {
    display: none;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    margin-left: auto;
}

.header-date {
    font-size: 13px;
    color: var(--text-muted);
}

.header-divider {
    width: 100%;
    height: 3px;
    background: var(--accent);
}

.header-rss {
    font-size: 13px;
    color: var(--accent);
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-link {
    padding: 10px 14px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    white-space: nowrap;
    transition: color 0.2s;
    border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text);
    border-bottom-color: var(--accent);
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.section-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--accent);
    display: inline-block;
}

.hero-section {
    padding: 32px 0;
    border-bottom: 1px solid var(--border);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
}

.hero-main {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-surface);
}

.hero-main a {
    display: block;
}

.hero-main-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.hero-main-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px 28px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
}

.hero-main-tag {
    display: inline-block;
    padding: 3px 10px;
    background: var(--accent);
    color: white;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 3px;
    margin-bottom: 10px;
}

.hero-main-title {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 8px;
    color: white;
}

.hero-main-excerpt {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.5;
}

.hero-main-no-img {
    width: 100%;
    height: 400px;
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
}

.hero-main-no-img .hero-main-overlay {
    background: linear-gradient(transparent 40%, rgba(0, 0, 0, 0.7));
}

.hero-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-side-card {
    flex: 1;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    display: flex;
    gap: 14px;
    padding: 14px;
    transition: background 0.2s;
}

.hero-side-card:hover {
    background: var(--bg-hover);
}

.hero-side-img {
    width: 110px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}

.hero-side-body {
    flex: 1;
    min-width: 0;
}

.hero-side-tag {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--accent);
    margin-bottom: 4px;
}

.hero-side-title {
    font-family: var(--font-serif);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-side-meta {
    font-size: 11px;
    color: var(--text-muted);
}

.articles-section {
    padding: 40px 0 60px;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: all 0.25s;
}

.card:hover {
    transform: translateY(-3px);
    border-color: var(--border-strong);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.card a {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-img {
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.card-no-img {
    width: 100%;
    height: 190px;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    position: relative;
}

.card-no-img::after {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(255, 255, 255, 0.015) 20px, rgba(255, 255, 255, 0.015) 40px);
}

.card-body {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.card-tag {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--accent);
    margin-bottom: 8px;
}

.card-title {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-excerpt {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    font-size: 11px;
    color: var(--text-muted);
}

.article-page {
    padding: 32px 0 60px;
}

.article-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.article-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 24px;
    transition: color 0.2s;
}

.article-back:hover {
    color: var(--accent);
}

.article-tag-top {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    margin-bottom: 12px;
    text-align: center;
    width: 100%;
}

.article-title {
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 16px;
    text-align: center;
}

.article-meta-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 13px;
    color: var(--text-muted);
    padding-bottom: 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.article-hero-img {
    width: 100%;
    border-radius: var(--radius);
    margin-bottom: 28px;
    max-height: 440px;
    object-fit: cover;
}

.article-body {
    font-family: var(--font-serif);
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-secondary);
    text-align: center;
}

.article-body h1 {
    display: none;
}

.article-body h2 {
    font-family: var(--font-sans);
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    margin: 36px 0 14px;
    line-height: 1.3;
    text-align: center;
}

.article-body h3 {
    font-family: var(--font-sans);
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin: 28px 0 10px;
}

.article-body p {
    margin-bottom: 18px;
}

.article-body img {
    border-radius: var(--radius);
    margin: 24px 0;
}

.article-body blockquote {
    border-left: 3px solid var(--accent);
    padding: 14px 22px;
    margin: 24px 0;
    background: rgba(230, 57, 70, 0.04);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
}

.article-body ul,
.article-body ol {
    margin: 20px auto;
    padding-left: 24px;
    text-align: left;
    max-width: 800px;
}

.article-body li {
    margin-bottom: 6px;
    padding-left: 4px;
    line-height: 1.6;
}

.article-body a {
    color: var(--accent-blue);
    border-bottom: 1px solid transparent;
}

.article-body a:hover {
    border-bottom-color: var(--accent-blue);
}

.article-body strong {
    color: var(--text);
}

.article-sources {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.article-sources-title {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.article-sources ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-sources li {
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}

.article-sources a {
    font-size: 13px;
    color: var(--accent-blue);
}

.related-section {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

.related-title {
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    margin-bottom: 20px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.category-page {
    padding: 32px 0 60px;
}

.category-header {
    margin-bottom: 32px;
}

.category-header h1 {
    font-family: var(--font-serif);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
}

.category-header p {
    font-size: 14px;
    color: var(--text-muted);
}

.footer {
    border-top: 3px solid var(--accent);
    background: var(--bg-surface);
    padding: 40px 0 24px;
    margin-top: 40px;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    text-align: center;
}

.footer-logo {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 8px;
}

.footer-logo span {
    color: var(--accent);
}

.footer-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.footer-bottom {
    font-size: 11px;
    color: var(--text-muted);
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.empty-hero {
    text-align: center;
    padding: 80px 20px;
}

.empty-hero h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
}

.empty-hero p {
    color: var(--text-muted);
    font-size: 16px;
}

@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }

    .hero-main-img,
    .hero-main-no-img {
        height: auto;
        min-height: 280px;
        aspect-ratio: 16 / 10;
    }

    .hero-main-title {
        font-size: 20px;
    }

    .hero-main-excerpt {
        font-size: 12px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .hero-main-overlay {
        padding: 20px 16px;
    }

    .hero-side-card {
        flex-direction: row;
    }

    .hero-side-img {
        width: 90px;
        height: 70px;
    }

    .article-grid {
        grid-template-columns: 1fr;
    }

    .card-img {
        height: 160px;
        object-position: top;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .article-title {
        font-size: 24px;
    }

    .article-body {
        font-size: 16px;
    }

    .header-right {
        display: none;
    }

    .nav-link {
        padding: 8px 10px;
        font-size: 10px;
    }

    .header-top {
        padding: 8px 12px;
        gap: 8px;
    }

    .logo img {
        height: 40px !important;
    }
}