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

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

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

h1,
h2,
h3,
h4 {
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

h1 {
    font-size: 2.5rem;
}

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

h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

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

ul,
ol {
    list-style: none;
}

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

/* Top bar */
.top-banner {
    background: #f8fafc;
    padding: 0.7rem 0;
    font-size: 0.85rem;
    text-align: center;
    border-bottom: 1px solid #e9eef3;
}

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

/* Header / Nav - with scroll effect */
.site-header {
    background: white;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
    border-bottom: 1px solid #edf2f7;
}

.site-header.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    border-bottom-color: transparent;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 24px;
}

.logo  {
    font-size: 1.8rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1E3C72, #2A5298);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
}

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

.nav-menu a {
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.nav-menu a:hover,
.nav-menu a.active {
    border-bottom-color: #2A5298;
    color: #2A5298;
}

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

/* Cards (base) */
.card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
    border: 1px solid #eff3f8;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 30px -12px rgba(0, 0, 0, 0.1);
    border-color: #e0e8f0;
}

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

.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.25rem;
}

.card-category {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    color: #2A5298;
    margin-bottom: 0.5rem;
    display: inline-block;
}

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

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

.card-meta {
    font-size: 0.75rem;
    color: #718096;
    display: flex;
    gap: 0.75rem;
}

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

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

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

.section {
    margin: 4rem 0;
}

/* Featured special (no hero) */
.featured-special {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    background: #fbfdff;
    border-radius: 28px;
    padding: 1rem;
    border: 1px solid #eef2fa;
}

.horizontal-card {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 0.8rem;
}

.horizontal-card img {
    width: 100px;
    height: 75px;
    object-fit: cover;
    border-radius: 14px;
}

.horizontal-card .card-category {
    font-size: 0.7rem;
}

.horizontal-card h3 {
    font-size: 1rem;
    -webkit-line-clamp: 2;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Topics cloud */
.topics-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1rem;
}

.topic-tag {
    background: #f1f5f9;
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    font-size: 0.85rem;
    font-weight: 500;
    transition: 0.2s;
}

.topic-tag:hover {
    background: #2A5298;
    color: white;
    transform: translateY(-2px);
}

/* Filter & pagination (static only) */
.filter-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.filter-select {
    padding: 0.5rem 1rem;
    border: 1px solid #cbd5e1;
    border-radius: 40px;
    background: white;
    font-size: 0.85rem;
}

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

.pagination a,
.pagination span {
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.pagination .active {
    background: #2A5298;
    color: white;
    border-color: #2A5298;
}

/* Comment section (static) */
.comment-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eef2f8;
}

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

.btn {
    background: #2A5298;
    color: white;
    border: none;
    padding: 0.6rem 1.8rem;
    border-radius: 40px;
    font-weight: 500;
    cursor: pointer;
}

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

.share-btn {
    background: #eef2ff;
    padding: 0.4rem 1rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
}

/* Footer */
.footer {
    background: #11181c;
    color: #e2e8f0;
    margin-top: 4rem;
    padding: 2rem 0;
}

.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 ul {
    font-size: 0.85rem;
    opacity: 0.8;
}

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

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

.copyright p {
    text-align: center;
    font-size: 0.75rem;
}

.copyright a {
    color: #e2e8f0;
}

/* Back to top */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #2A5298;
    width: 44px;
    height: 44px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s;
    border: none;
    z-index: 99;
}

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

.breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    font-size: 0.85rem;
    color: #4b5563;
}

.breadcrumb-list li {
    display: inline-flex;
    align-items: center;
}

.breadcrumb-list a {
    color: #2A5298;
    text-decoration: none;
}

.breadcrumb-list li:not(:last-child)::after {
    content: "/";
    margin: 0 0.5rem;
    color: #9ca3af;
}

/* ========== 详情页特有样式 ========== */
.two-column {
    display: flex;
    gap: 2.5rem;
    margin: 2rem 0;
}

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

.sidebar {
    flex: 0 0 30%;
    max-width: 30%;
}

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

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

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    margin: 1rem 0 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eef2f8;
    font-size: 0.85rem;
    color: #4a5568;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

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

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

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

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

.article-body h2,
.article-body h3 {
    margin: 1.5rem 0 0.75rem;
}

.article-category {
    margin: 1.5rem 0 1rem;
}

.category-badge {
    background: #eef2ff;
    padding: 0.25rem 1rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #2A5298;
    display: inline-block;
    margin-right: 0.5rem;
}

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

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

.author-bio-text h4 {
    margin-bottom: 0.25rem;
}

.author-bio-text p {
    font-size: 0.85rem;
    color: #4a5568;
    margin: 0;
}

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

/* Sidebar widgets */
.sidebar-widget {
    background: #ffffff;
    border-radius: 20px;
    padding: 1.25rem;
    margin-bottom: 2rem;
    border: 1px solid #eff3f8;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

.sidebar-widget h3 {
    font-size: 1.2rem;
    border-left: 3px solid #2A5298;
    padding-left: 0.75rem;
    margin-bottom: 1rem;
}

.author-block {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

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

.author-info h4 {
    font-size: 1.2rem;
}

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

.trending-list {
    list-style: none;
}

.trending-list li {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f0f4f9;
}

.trending-list a {
    font-weight: 500;
    display: block;
    margin-bottom: 0.25rem;
}

.trending-date {
    font-size: 0.7rem;
    color: #7c8b9c;
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag-cloud a {
    background: #f1f5f9;
    padding: 0.3rem 0.9rem;
    border-radius: 30px;
    font-size: 0.75rem;
}

/* ========== 作者页特有样式 ========== */
.author-profile {
    max-width: 900px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 32px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    border: 1px solid #eff3f8;
}

.author-header {
    text-align: center;
    margin-bottom: 2rem;
}

.author-avatar-large {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.5rem;
    border: 4px solid white;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.author-name {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

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

.author-meta {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    color: #6c757d;
    font-size: 0.9rem;
    margin: 1rem 0;
}

.author-bio {
    font-size: 1rem;
    line-height: 1.6;
    color: #2d3748;
    margin: 1.5rem 0;
    text-align:justify;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.social-link:hover {
    background: #2A5298;
    color: white;
    transform: translateY(-2px);
}

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

.author-articles h3 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    border-left: none;
    padding-left: 0;
}

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

/* Responsive */
@media (max-width: 1024px) {

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

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

@media (max-width: 992px) {
    .two-column {
        flex-direction: column;
    }

    .main-content,
    .sidebar {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

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

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

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background: white;
        width: 80%;
        height: calc(100vh - 70px);
        padding: 2rem;
        box-shadow: 2px 0 12px rgba(0, 0, 0, 0.05);
        transition: 0.3s;
        gap: 1.5rem;
        z-index: 99;
    }

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

    .hamburger {
        display: block;
    }

    .grid-2,
    .grid-3,
    .grid-4,
    .featured-special {
        grid-template-columns: 1fr;
    }

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

    h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .article-body {
        font-size: 0.95rem;
    }

    .author-profile {
        padding: 1.5rem;
    }

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

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

    .author-meta {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

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

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