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

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

ul,
ol {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
    height: auto;
}

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

h1,
h2,
h3 {
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #d43f2b;
    padding-left: 1rem;
}

.navbar {
    position: sticky;
    top: 0;
    background: white;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    z-index: 1000;
    border-bottom: 1px solid #eef2f5;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 0.9rem 0;
}

.logo {
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #1e2a3e, #2c3e50);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    list-style: none;
    transition: all 0.3s;
}

.nav-menu li a {
    font-weight: 500;
    color: #2c3e50;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: #d43f2b;
}

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

.top-banner {
    background: #fef6e0;
    border-bottom: 1px solid #f0e3c2;
    padding: 0.7rem 0;
    font-size: 0.9rem;
    text-align: center;
}

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

.breadcrumb {
    background: #f8fafc;
    padding: 0.8rem 1.2rem;
    border-radius: 40px;
    margin-bottom: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 0.5rem;
    align-items: center;
}

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

.breadcrumb a {
    color: #1e293b;
    font-weight: 500;
}

.breadcrumb a:hover {
    color: #d43f2b;
}

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

.card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.02), 0 2px 6px rgba(0, 0, 0, 0.05);
}

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

.card-img {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f0f2f5;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card:hover .card-img img {
    transform: scale(1.03);
}

.card-content {
    padding: 1.4rem;
}

.card-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    color: #d43f2b;
    margin-bottom: 0.6rem;
    display: inline-block;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-excerpt {
    color: #4a5568;
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 1rem;
}

.meta {
    font-size: 0.75rem;
    color: #6c757d;
    display: flex;
    gap: 0.8rem;
    align-items: center;
    border-top: 1px solid #edf2f7;
    padding-top: 0.8rem;
}

.horizontal-card {
    display: flex;
    flex-wrap: wrap;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.03);
    transition: all 0.25s;
    margin-bottom: 1.8rem;
}

.horizontal-card:hover {
    box-shadow: 0 18px 28px -12px rgba(0, 0, 0, 0.12);
}

.horizontal-card .card-img {
    flex: 0 0 20%;
    min-width: 200px;
    aspect-ratio: 4/3;
}

.horizontal-card .card-content {
    flex: 2;
}

.category-block {
    background: #fafcff;
    border-radius: 28px;
    padding: 1.2rem 1.5rem;
    border: 1px solid #eef2f8;
    transition: 0.2s;
}

.category-block h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    border-left: 3px solid #d43f2b;
    padding-left: 0.75rem;
}

.category-article-list {
    list-style: none;
}

.category-article-list li {
    margin-bottom: 0.9rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px dashed #e2e8f0;
}

.category-article-list li a {
    font-weight: 500;
    display: block;
    font-size: 0.95rem;
    transition: 0.2s;
}

.category-article-list li a:hover {
    color: #d43f2b;
}

.small-date {
    font-size: 0.7rem;
    color: #7f8c8d;
    display: block;
    margin-top: 4px;
}

.hot-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin-top: 0.5rem;
}

.hot-tags a {
    background: #f1f5f9;
    padding: 0.4rem 1rem;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s;
}

.hot-tags a:hover {
    background: #d43f2b;
    color: white;
}

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

.two-columns {
    display: grid;
    grid-template-columns: 70% 28%;
    gap: 3rem;
    margin: 2rem 0 3rem;
    flex-wrap: wrap;
}

.section-header {
    margin-bottom: 25px;
}

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

.sidebar {
    flex: 1;
    min-width: 260px;
}

.sidebar-card {
    background: #fafcff;
    border-radius: 24px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #eef2f8;
}

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

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

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

.author-bio {
    font-size: 0.85rem;
    color: #475569;
    margin-top: 0.5rem;
    line-height: 1.4;
}

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

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

.sidebar-list li a {
    font-weight: 500;
    display: block;
    font-size: 0.9rem;
    transition: 0.2s;
}

.sidebar-list li a:hover {
    color: #d43f2b;
}

.category-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

.category-tag-list a {
    background: #f1f5f9;
    padding: 0.3rem 1rem;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 500;
}

.category-tag-list a:hover {
    background: #d43f2b;
    color: white;
}

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

.pagination a {
    padding: 0.5rem 1rem;
    border-radius: 40px;
    background: #f1f5f9;
    font-weight: 500;
    transition: all 0.2s;
}

.pagination a:hover {
    background: #e2e8f0;
}

.pagination .active-page {
    background: #d43f2b;
    color: white;
}

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

.article-title {
    font-size: 2.5rem;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

@media (max-width: 768px) {
    .article-title {
        font-size: 1.4rem;
    }
}

.article-subtitle {
    font-size: 1.2rem;
    color: #2d3e50;
    font-weight: 400;
    margin-bottom: 1rem;
    border-left: 3px solid #d43f2b;
    padding-left: 1rem;
}

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

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

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

.author-mini span {
    font-weight: 600;
    color: #1e293b;
}

.stats {
    display: flex;
    gap: 1rem;
}

.article-body {
    font-size: 0.985rem;
    letter-spacing: 0.2px;
    color: #171717;
    line-height: 1.7;
    margin-bottom: 2rem;
}

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

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

.article-body h3 {
    font-size: 1.4rem;
    margin: 1.8rem 0 1rem;
}

.article-body img {
    border-radius: 20px;
    margin: 1.5rem 0;
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
}

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

.tag {
    background: #f1f5f9;
    padding: 0.3rem 1rem;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 500;
}

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

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

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

.author-bio-card .bio-info p {
    color: #475569;
    font-size: 0.85rem;
    line-height: 1.5;
}

.share-section {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin: 1.5rem 0 2rem;
    flex-wrap: wrap;
}

.share-btn {
    background: #f1f5f9;
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
}

.share-btn:hover {
    background: #d43f2b;
    color: white;
}

.comments-section {
    margin: 2rem 0;
}

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

.comment {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-bottom: 1px solid #eef2f5;
}

.comment-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #e2e8f0;
}

.comment-content p {
    font-size: 0.9rem;
    color: #2c3e50;
}

.comment-meta {
    font-size: 0.7rem;
    color: #7f8c8d;
    margin-bottom: 0.3rem;
}

.comment-form textarea {
    width: 100%;
    padding: 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 24px;
    font-family: inherit;
    resize: vertical;
    margin-top: 0.5rem;
}

.comment-form button {
    background: #1e293b;
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 40px;
    margin-top: 0.8rem;
    cursor: pointer;
    font-weight: 500;
}

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

.related-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    border: 1px solid #eef2f8;
}

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

.related-card-img {
    aspect-ratio: 4/3;
    overflow: hidden;
}

.related-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-card-content {
    padding: 1rem;
}

.related-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.author-profile {
    max-width: 880px;
    margin: 0 auto 3rem;
}

.author-header {
    text-align: center;
    margin: 2.5rem 0;
}

.author-avatar-large {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.2rem;
    border: 4px solid #d43f2b;
    box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.1);
}

.author-name-large {
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.author-title {
    font-size: 1.1rem;
    color: #d43f2b;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

.author-bio-short {
    max-width: 600px;
    margin: 0 auto 1.2rem;
    color: #475569;
    font-size: 1rem;
}

.author-social {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

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

.social-icon:hover {
    background: #d43f2b;
    color: white;
}

.author-detail {
    background: #fafcff;
    border-radius: 28px;
    padding: 2rem;
    margin: 2rem 0;
    border: 1px solid #eef2f8;
}

.author-detail p {
    font-size: 0.985rem;
    letter-spacing: 0.2px;
    color: #171717;
    line-height: 1.7;
    margin-bottom: 1.2rem;
}

.author-detail h3 {
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem;
}

.latest-articles {
    margin-top: 3rem;
}

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

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

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

.footer {
    background: #f8fafc;
    margin-top: 4rem;
    padding: 2rem 0;
    border-top: 1px solid #e2e8f0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

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

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 0.6rem;
}

.footer-col a {
    color: #475569;
    font-size: 0.85rem;
}

.footer-col a:hover {
    color: #d43f2b;
}

.copyright {
    text-align: center;
    font-size: 0.75rem;
    color: #64748b;
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #1e293b;
    color: white;
    width: 44px;
    height: 44px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s, transform 0.2s;
    z-index: 99;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: none;
}

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

@media (max-width: 768px) {

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

    .author-mini span {
        font-size: 0.75rem;
    }

    .cards-grid {
        grid-template-columns: 100%;
    }

    .container {
        padding: 0 20px;
    }

    .navbar {
        position: relative;
    }

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

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

    .hamburger {
        display: block;
    }

    .two-columns {
        grid-template-columns: 100%;
        gap: 2rem;
    }

    .grid-3 {
        gap: 1.5rem;
    }

    .horizontal-card {
        flex-direction: column;
    }

    .breadcrumb {
        width: 100%;
        justify-content: center;
    }

    .author-name-large {
        font-size: 1.8rem;
    }

    .author-avatar-large {
        width: 120px;
        height: 120px;
    }

    .author-detail {
        padding: 1.5rem;
    }

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

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