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

body {
    font-family: -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background-color: #fefefe;
    color: #1a1e2b;
    line-height: 1.5;
    scroll-behavior: smooth;
}

ul,
ol {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
    border-radius: 20px;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

h1,
h2,
h3 {
    font-weight: 600;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

section {
    margin-bottom: 3rem;
}

.tag {
    display: inline-block;
    background: #f0f2f5;
    padding: 0.25rem 0.8rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 500;
    color: #1f2a48;
    transition: all 0.2s ease;
}

.tag:hover {
    background: #e2e6ea;
}

.card {
    background: #ffffff;
    border-radius: 28px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.02), 0 2px 6px rgba(0, 0, 0, 0.03);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.12);
}

.navbar {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    z-index: 1000;
    border-bottom: 1px solid #eef2f6;
    padding: 0.8rem 0;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-bottom-color: transparent;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, #1e2b3c, #2c4b6e);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    font-weight: 500;
}

.nav-menu a {
    transition: color 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #2c6e9e;
}

.hamburger {
    display: none;
    font-size: 1.8rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #1e2b3c;
}

.breadcrumb-wrapper {
    margin: 1.5rem 0 2rem;
    background: #f8fafc;
    padding: 0.8rem 1.2rem;
    border-radius: 60px;
    display: inline-block;
    width: auto;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    font-size: 0.85rem;
    color: #4a5568;
    gap: 0.5rem;
}

.breadcrumb li:not(:last-child)::after {
    content: "›";
    margin-left: 0.5rem;
    color: #94a3b8;
}

.breadcrumb a {
    font-weight: 500;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #2c6e9e;
}

.breadcrumb [aria-current="page"] {
    color: #1e2b3c;
    font-weight: 600;
}

.top-banner {
    background: #eef3fc;
    padding: 12px 20px;
    border-radius: 60px;
    text-align: center;
    margin: 1.5rem 0 2rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.top-banner a {
    font-weight: 600;
    text-decoration: underline;
    color: #1e4663;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.category-block {
    background: #ffffff;
    border-radius: 28px;
    padding: 0 0 1.2rem 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.02);
}

.category-title {
    font-size: 1.5rem;
    border-left: 4px solid #2c6e9e;
    padding-left: 1rem;
    margin-bottom: 1.2rem;
}

.mini-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
    align-items: center;
    background: #fafcfd;
    border-radius: 20px;
    padding: 0.6rem;
    transition: 0.2s;
}

.mini-card:hover {
    background: #f4f9ff;
}

.mini-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    aspect-ratio: 4/3;
}

.mini-card-content h3 {
    font-size: 1.35rem;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 8px;
}

.mini-meta {
    font-size: 0.9rem;
    color: #5f6c80;
    margin-top: 8px;
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.featured-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 28px;
    overflow: hidden;
}

.featured-img {
    width: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
}

.featured-text {
    padding: 1.4rem;
}

.featured-text h3 {
    font-size: 1.35rem;
    margin: 0.5rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-text p,
.excerpt {
    color: #4a5568;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hot-topics {
    background: #f8fafc;
    border-radius: 32px;
    padding: 2rem 1.8rem;
}

.topics-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.topic-chip {
    background: white;
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    font-weight: 500;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: 0.2s;
}

.topic-chip:hover {
    background: #e9edf2;
    transform: translateY(-2px);
}

.two-columns {
    display: flex;
    gap: 2.5rem;
    margin: 2rem 0;
}

.main-content {
    flex: 0 0 70%;
    min-width: 0;
}

.sidebar {
    flex: 0 0 30%;
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.list-article-card {
    display: flex;
    gap: 1.5rem;
    background: white;
    border-radius: 28px;
    overflow: hidden;
    transition: all 0.25s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    padding: 0.8rem;
}

.list-article-card:hover {
    background: #fefefe;
    box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.card-img {
    flex-shrink: 0;
    width: 180px;
    height: 135px;
    object-fit: cover;
    border-radius: 20px;
    aspect-ratio: 4/3;
}

.card-info {
    flex: 1;
}

.card-info h3 {
    font-size: 1.35rem;
    margin: 0.5rem 0 0.4rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-info p,
.excerpt {
    color: #4b5563;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0.5rem 0;
    font-size: 0.9rem;
}

.meta {
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 0.5rem;
    display: flex;
    gap: 1rem;
    align-items: center;
}

.read-link {
    font-weight: 600;
    color: #2c6e9e;
    margin-top: 0.6rem;
    display: inline-block;
    font-size: 0.85rem;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin: 3rem 0 2rem;
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.8rem;
    border-radius: 40px;
    background: white;
    border: 1px solid #e2e8f0;
    font-weight: 500;
    transition: all 0.2s;
}

.pagination a:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.pagination .active-page {
    background: #1f2a48;
    color: white;
    border-color: #1f2a48;
}

.pagination .disabled {
    color: #cbd5e1;
    pointer-events: none;
}

.sidebar-block {
    background: #ffffff;
    border-radius: 28px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.02);
    border: 1px solid #f0f2f5;
}

.author-card {
    text-align: center;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 3px solid #eef2f6;
}

.author-name {
    font-size: 1.2rem;
    font-weight: 700;
}

.author-bio {
    font-size: 0.85rem;
    color: #5b6b8c;
    margin-top: 0.5rem;
}

.sidebar-list {
    list-style: none;
    margin-top: 1rem;
}

.sidebar-list li {
    margin-bottom: 1rem;
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 0.8rem;
}

.sidebar-list a {
    font-weight: 500;
    display: block;
    transition: color 0.2s;
}

.sidebar-list a:hover {
    color: #2c6e9e;
}

.sidebar-list .post-date {
    font-size: 0.7rem;
    color: #8b9ab0;
    margin-top: 0.2rem;
}

.cat-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cat-count {
    background: #eef2fa;
    padding: 0.2rem 0.6rem;
    border-radius: 40px;
    font-size: 0.7rem;
}

.article-header {
    margin-bottom: 2rem;
}

.article-header h1 {
    font-size: 2.2rem;
    line-height: 1.3;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.subhead {
    font-size: 1.2rem;
    color: #4a5568;
    margin-bottom: 1rem;
    font-weight: 400;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.2rem;
    font-size: 0.85rem;
    color: #5f6c80;
    margin-bottom: 1rem;
    border-bottom: 1px solid #eef2f6;
    padding-bottom: 1rem;
}

.author-mini {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.author-mini img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.views {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.article-content {
    font-size: 0.985rem;
    color: #171717;
    letter-spacing: 0.2px;
    line-height: 1.7;
    margin: 1.8rem 0;
}

.article-content img {
    margin: 0 auto;
}

.article-content p {
    margin-bottom: 1.4rem;
}

.article-content h3 {
    font-size: 1.4rem;
    margin: 1.5rem 0 0.8rem;
}

.article-categories {
    margin: 1.5rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    border-top: 1px solid #edf2f7;
    padding-top: 1.5rem;
}

.author-bio-card {
    background: #f9fafc;
    border-radius: 28px;
    padding: 1.5rem;
    margin: 2rem 0;
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.author-bio-card img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
}

.author-bio-info h4 {
    font-size: 1.1rem;
    margin-bottom: 0.3rem;
}

.author-bio-info p {
    font-size: 0.85rem;
    color: #5a6c8a;
}

.share-buttons {
    display: flex;
    gap: 0.8rem;
    margin: 1.5rem 0;
}

.share-btn {
    background: #eef2f6;
    padding: 0.5rem 1rem;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: background 0.2s;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.share-btn:hover {
    background: #e2e8f0;
}

.comment-section {
    background: #ffffff;
    border-radius: 28px;
    padding: 1.5rem;
    margin: 2rem 0;
    border: 1px solid #eef2f6;
}

.comment-list {
    margin: 1.5rem 0;
}

.comment-item {
    border-bottom: 1px solid #edf2f7;
    padding: 1rem 0;
}

.comment-name {
    font-weight: 600;
}

.comment-text {
    margin: 0.3rem 0;
    font-size: 0.9rem;
    color: #2d3748;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 0.8rem;
    margin-bottom: 0.8rem;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    font-family: inherit;
    font-size: 0.9rem;
}

.btn {
    background: #1f2a48;
    color: white;
    border: none;
    padding: 0.6rem 1.4rem;
    border-radius: 40px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}

.btn:hover {
    background: #2c3e66;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.related-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    transition: all 0.2s;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -12px rgba(0, 0, 0, 0.1);
}

.related-card img {
    width: 100%;
    object-fit: cover;
    aspect-ratio: 4/3;
}

.related-card h4 {
    padding: 0.8rem 0.8rem 0.5rem;
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-card .meta-sm {
    padding: 0 0.8rem 0.8rem;
    font-size: 0.7rem;
    color: #6c7a91;
}

.author-hero {
    margin: 2rem 0 3rem;
    background: #fafcff;
    border-radius: 40px;
    padding: 2.5rem 2rem;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.02);
    border: 1px solid #eef2f8;
}

.author-profile {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    align-items: center;
}

.author-avatar-large {
    flex-shrink: 0;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.15);
}

.author-info {
    flex: 1;
}

.author-info h1 {
    font-size: 2.5rem;
    margin-bottom: 0.25rem;
}

.author-title {
    font-size: 1.1rem;
    color: #2c6e9e;
    font-weight: 500;
    margin-bottom: 1rem;
}

.author-bio-large {
    font-size: 1rem;
    line-height: 1.6;
    color: #2d3748;
    margin-bottom: 1.2rem;
    max-width: 85%;
}

.author-stats {
    display: flex;
    gap: 1.5rem;
    margin: 1rem 0;
    font-size: 0.9rem;
    color: #5f6c80;
}

.author-stats span {
    font-weight: 600;
    color: #1f2a48;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icon {
    background: #eef2f6;
    border-radius: 40px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    transition: 0.2s;
}

.social-icon:hover {
    background: #e2e8f0;
}

.author-detailed {
    background: white;
    border-radius: 32px;
    padding: 2rem;
    margin: 2rem 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.02);
    border: 1px solid #f0f2f5;
}

.author-detailed h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.author-detailed p {
    margin-bottom: 1rem;
    color: #2d3748;
    line-height: 1.7;
}

.author-detailed blockquote {
    border-left: 4px solid #2c6e9e;
    padding-left: 1.2rem;
    margin: 1.5rem 0;
    color: #4a5568;
    font-style: italic;
}

.articles-by-author {
    margin: 3rem 0;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.article-card {
    background: white;
    border-radius: 28px;
    overflow: hidden;
    transition: all 0.25s;
}

.article-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    aspect-ratio: 4/3;
}

.article-card-content {
    padding: 1.2rem;
}

.article-card-content h3 {
    font-size: 1.1rem;
    margin: 0.5rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-content p {
    color: #4b5563;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0.5rem 0;
    font-size: 0.85rem;
}

.meta-light {
    font-size: 0.7rem;
    color: #6c7a91;
    margin-top: 0.5rem;
}

.read-more {
    display: inline-block;
    margin-top: 0.6rem;
    font-weight: 600;
    color: #2c6e9e;
    font-size: 0.8rem;
}

.footer {
    background: #11161f;
    color: #ccd6f0;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer p {
    text-align: center;
    margin: 0;
}

.footer a {
    color: #ccd6f0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.footer-col h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.footer-col p,
.footer-col a {
    color: #9aa9c1;
    line-height: 1.6;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-col a:hover {
    color: white;
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 1.8rem;
    background: #1f2a48;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    z-index: 99;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    border: none;
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: 100%;
    }

    .mini-card-img{
        height: auto;
    }

    .mini-card {
        display: flex;
        flex-direction: column;
    }

    .article-meta {
        gap: 0.5rem;
        font-size: 0.75rem;
    }

    .navbar {
        position: relative;
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        background: white;
        padding: 1rem 0;
        gap: 1rem;
    }

    .nav-menu.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

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

    .two-columns {
        flex-direction: column;
    }

    .main-content,
    .sidebar {
        flex: 0 0 100%;
    }

    .list-article-card {
        flex-direction: column;
    }

    .card-img {
        width: 100%;
        height: auto;
    }

    .featured-grid {
        grid-template-columns: 1fr;
    }

    .author-profile {
        flex-direction: column;
        text-align: center;
    }

    .author-bio-large {
        max-width: 100%;
    }

    .author-stats {
        justify-content: center;
    }

    .social-links {
        justify-content: center;
    }

    .author-info h1 {
        font-size: 2rem;
    }

    .article-header h1 {
        font-size: 1.6rem;
    }

    .subhead {
        font-size: 1rem;
    }

    .related-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .container {
        padding: 0 18px;
    }

    .breadcrumb-wrapper {
        width: 100%;
        overflow-x: auto;
    }

    .articles-grid {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .article-header h1 {
        font-size: 1.4rem;
    }
}