﻿:root {
    --bg: #071019;
    --bg-soft: #0c1828;
    --panel: #0d1b2b;
    --panel-2: #112338;
    --line: rgba(255, 255, 255, 0.1);
    --line-soft: rgba(255, 255, 255, 0.07);
    --text: #ecf5ff;
    --muted: #9db4cc;
    --blue: #2491ff;
    --blue-2: #64c9ff;
    --shadow-lg: 0 22px 54px rgba(0, 0, 0, 0.35);
    --shadow-md: 0 14px 34px rgba(0, 0, 0, 0.27);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Plus Jakarta Sans", "Geist", "Poppins", Arial, sans-serif;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(circle at 10% 6%, rgba(36, 145, 255, 0.18), transparent 30%),
        radial-gradient(circle at 90% 14%, rgba(100, 201, 255, 0.14), transparent 28%),
        radial-gradient(circle at 48% 100%, rgba(22, 71, 118, 0.22), transparent 38%);
}

.blog-shell {
    position: relative;
    z-index: 1;
    width: min(1160px, calc(100% - 28px));
    margin: 14px auto 48px;
}

.site-nav {
    position: sticky;
    top: 10px;
    z-index: 30;
}

.site-nav-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 56px;
    padding: 8px 10px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(180deg, rgba(9, 16, 27, 0.82), rgba(8, 14, 24, 0.74));
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.32);
}

.site-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.site-brand-logo {
    width: 184px;
    height: auto;
    display: block;
}

.site-links {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 4px;
}

.site-link-btn {
    border: 0;
    background: transparent;
    color: #d9e7f7;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 10px;
    border-radius: 10px;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.site-link-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    transform: translateY(-1px);
}

.site-link-btn.active {
    color: #ffffff;
    border: 1px solid rgba(98, 190, 255, 0.4);
    background: linear-gradient(135deg, rgba(36, 145, 255, 0.32), rgba(100, 201, 255, 0.18));
}

.site-auth-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 6px;
}

.site-auth-btn {
    border: 0;
    border-radius: 11px;
    padding: 8px 12px;
    font-size: 12.5px;
    font-weight: 700;
    text-decoration: none;
    color: #eef6ff;
    white-space: nowrap;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.site-auth-btn:hover {
    transform: translateY(-1px);
}

.site-auth-btn-ghost {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.site-auth-btn-primary {
    background: linear-gradient(135deg, #0f7dff 0%, #42b5ff 100%);
    box-shadow: 0 10px 22px rgba(15, 125, 255, 0.29);
}

.site-nav-hamburger {
    display: none;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.05);
    color: #e7f3ff;
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex-direction: column;
}

.site-nav-hamburger span {
    display: block;
    width: 16px;
    height: 2px;
    border-radius: 3px;
    background: currentColor;
}

.site-nav-mobile-panel {
    margin-top: 8px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(180deg, rgba(9, 16, 27, 0.95), rgba(7, 14, 24, 0.95));
    box-shadow: var(--shadow-md);
    padding: 10px;
}

.site-nav-mobile-links,
.site-nav-mobile-auth {
    display: grid;
    gap: 6px;
}

.site-nav-mobile-auth {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.blog-hero {
    margin-top: 14px;
    border-radius: 20px;
    border: 1px solid var(--line-soft);
    background: linear-gradient(135deg, rgba(12, 25, 40, 0.94), rgba(7, 15, 25, 0.94));
    box-shadow: var(--shadow-lg);
    padding: 24px;
}

.blog-badge {
    display: inline-flex;
    padding: 7px 11px;
    border-radius: 999px;
    border: 1px solid rgba(100, 201, 255, 0.4);
    background: rgba(40, 137, 217, 0.16);
    color: #d7efff;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 11px;
    font-weight: 700;
}

.blog-hero h1 {
    margin: 12px 0 10px;
    font-size: clamp(24px, 3.4vw, 38px);
    line-height: 1.08;
    letter-spacing: -0.02em;
}

.blog-hero p {
    margin: 0;
    max-width: 840px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.72;
}

.blog-latest {
    margin-top: 14px;
    border-radius: 18px;
    border: 1px solid var(--line-soft);
    background: linear-gradient(180deg, rgba(10, 20, 33, 0.94), rgba(8, 17, 29, 0.92));
    box-shadow: var(--shadow-md);
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
    gap: 14px;
    padding: 14px;
}

.blog-feature {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    min-height: 300px;
}

.blog-feature img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.blog-feature::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 28%, rgba(3, 8, 15, 0.92) 100%);
}

.blog-feature-body {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 14px;
    z-index: 2;
}

.blog-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    color: #bfd4ed;
    font-size: 11px;
    font-weight: 600;
}

.blog-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 8px;
    border-radius: 999px;
    border: 1px solid rgba(100, 201, 255, 0.34);
    background: rgba(36, 145, 255, 0.18);
}

.blog-feature-title {
    margin: 10px 0 8px;
    font-size: clamp(20px, 3vw, 30px);
    line-height: 1.22;
}

.blog-feature-title a {
    color: #ffffff;
    text-decoration: none;
}

.blog-feature-title a:hover {
    color: #d7eeff;
}

.blog-feature-excerpt {
    margin: 0;
    color: #c2d5eb;
    font-size: 14px;
    line-height: 1.6;
}

.blog-side-list {
    display: grid;
    gap: 9px;
}

.blog-side-item {
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
    padding: 12px;
}

.blog-side-item a {
    text-decoration: none;
    color: #eff6ff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.blog-side-item a:hover {
    color: #8ed0ff;
}

.blog-side-item p {
    margin: 7px 0 0;
    color: #9bb1ca;
    font-size: 12.5px;
    line-height: 1.55;
}

.blog-grid {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.blog-card {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: linear-gradient(180deg, rgba(13, 27, 43, 0.93), rgba(10, 21, 35, 0.93));
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.blog-card-cover {
    display: block;
    aspect-ratio: 16 / 9;
    width: 100%;
    object-fit: cover;
}

.blog-card-body {
    padding: 12px;
}

.blog-card h3 {
    margin: 8px 0 7px;
    font-size: 16px;
    line-height: 1.34;
}

.blog-card h3 a {
    color: #f0f7ff;
    text-decoration: none;
}

.blog-card h3 a:hover {
    color: #96d5ff;
}

.blog-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.blog-empty {
    margin-top: 14px;
    border-radius: 14px;
    padding: 22px;
    border: 1px dashed rgba(173, 206, 243, 0.26);
    background: rgba(255, 255, 255, 0.02);
    color: #b8cae0;
    text-align: center;
}

.blog-pagination {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

.blog-pagination a,
.blog-pagination span {
    min-width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: 11px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    color: #d4e8ff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
}

.blog-pagination a:hover {
    background: rgba(255, 255, 255, 0.08);
}

.blog-pagination .active {
    color: #ffffff;
    border-color: rgba(81, 170, 255, 0.52);
    background: linear-gradient(135deg, rgba(36, 145, 255, 0.36), rgba(94, 197, 255, 0.22));
}

.blog-footer {
    margin: 24px 0 6px;
    text-align: center;
    color: #8ea5c0;
    font-size: 12px;
}

.blog-article {
    margin-top: 14px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 14px;
}

.blog-article-main {
    border-radius: 18px;
    border: 1px solid var(--line-soft);
    background: linear-gradient(180deg, rgba(10, 21, 33, 0.95), rgba(8, 17, 28, 0.95));
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.blog-article-cover {
    width: 100%;
    aspect-ratio: 16 / 8;
    object-fit: cover;
    display: block;
}

.blog-article-inner {
    padding: 20px;
}

.blog-article h1 {
    margin: 12px 0;
    font-size: clamp(22px, 3vw, 32px);
    line-height: 1.18;
}

.blog-content {
    margin-top: 12px;
    color: #cedeef;
    line-height: 1.8;
    font-size: 15px;
}

.blog-content h2,
.blog-content h3 {
    color: #f2f9ff;
    margin: 20px 0 10px;
}

.blog-content h2 {
    font-size: clamp(20px, 2.4vw, 28px);
    line-height: 1.28;
}

.blog-content h3 {
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.3;
}

.blog-content a {
    color: #8fd4ff;
}

.blog-aside {
    border-radius: 16px;
    border: 1px solid var(--line-soft);
    background: linear-gradient(180deg, rgba(10, 20, 33, 0.94), rgba(8, 17, 29, 0.92));
    box-shadow: var(--shadow-md);
    padding: 12px;
    align-self: start;
    position: sticky;
    top: 86px;
}

.blog-aside h3 {
    margin: 4px 0 10px;
    font-size: 16px;
}

@media (max-width: 1080px) {
    .blog-shell {
        width: min(1160px, calc(100% - 18px));
    }

    .blog-latest {
        grid-template-columns: 1fr;
    }

    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .blog-article {
        grid-template-columns: 1fr;
    }

    .blog-aside {
        position: static;
    }
}

@media (max-width: 960px) {
    .site-links,
    .site-auth-actions {
        display: none;
    }

    .site-nav-hamburger {
        display: inline-flex;
    }

    .site-nav.mobile-open .site-nav-hamburger {
        background: rgba(36, 145, 255, 0.2);
        border-color: rgba(81, 170, 255, 0.5);
    }
}

@media (max-width: 700px) {
    .blog-shell {
        width: calc(100% - 12px);
        margin-top: 8px;
        margin-bottom: 34px;
    }

    .site-nav {
        top: 6px;
    }

    .site-nav-inner {
        min-height: 52px;
        padding: 7px 9px;
        border-radius: 14px;
    }

    .site-brand-logo {
        width: 156px;
    }

    .blog-hero {
        border-radius: 16px;
        padding: 16px;
        margin-top: 10px;
    }

    .blog-hero p {
        font-size: 13px;
        line-height: 1.62;
    }

    .blog-latest,
    .blog-grid,
    .blog-article,
    .blog-pagination {
        margin-top: 10px;
    }

    .blog-feature {
        min-height: 232px;
    }

    .blog-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .blog-article-inner {
        padding: 14px;
    }

    .blog-content {
        font-size: 14px;
        line-height: 1.72;
    }

    .blog-pagination a,
    .blog-pagination span {
        min-width: 34px;
        height: 34px;
    }
}
