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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: #fafafc;
    color: #1e1e2f;
    line-height: 1.5;
}

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

ul,
li {
    list-style: none;
}

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

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

.site-header {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #eaeef5;
    position: sticky;
    top: 0;
    z-index: 50;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
    background: white;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    border-bottom-color: #e0e6f0;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.logo a {
    font-size: 1.6rem;
    font-weight: 600;
    letter-spacing: -0.5px;
    color: #0b1a33;
}

.logo span {
    font-weight: 300;
    color: #2c6e9c;
}

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

.main-nav .nav-list a {
    padding: 6px 0;
    border-bottom: 2px solid transparent;
    transition: 0.2s;
}

.main-nav .nav-list a:hover,
.main-nav .nav-list a.active {
    border-bottom-color: #2c6e9c;
    color: #0b1a33;
}

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

@media (max-width: 768px) {
    .main-nav .nav-list {
        display: none;
        position: absolute;
        top: 54px;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
        border-top: 1px solid #eaeef5;
    }

    .main-nav.show .nav-list {
        display: flex;
    }

    .hamburger {
        display: block;
    }
}

.top-banner {
    background: #0b1a33;
    color: white;
    padding: 14px 0;
    font-size: 0.95rem;
}

.banner-content {
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.banner-content .badge {
    background: #ff5e5e;
    padding: 4px 12px;
    border-radius: 30px;
    font-weight: 600;
}

.banner-content a {
    color: #ffd966;
    text-decoration: underline;
}

.mini-form {
    display: flex;
    margin-left: auto;
}

.mini-form input {
    padding: 8px 16px;
    border: none;
    border-radius: 40px 0 0 40px;
    width: 200px;
}

.mini-form button {
    background: #ffd966;
    border: none;
    padding: 8px 18px;
    border-radius: 0 40px 40px 0;
    font-weight: bold;
    cursor: pointer;
}

.section {
    padding: 50px 0;
}

.section-title {
    font-size: 2rem;
    margin-bottom: 36px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #111;
}

.section-title span {
    color: #2c6e9c;
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
}

.cat-card {
    background: white;
    border-radius: 24px;
    padding: 28px 16px;
    text-align: center;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.02);
    border: 1px solid #f0f2f5;
    transition: 0.25s ease;
}

.cat-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 25px -8px rgba(0, 30, 60, 0.15);
}

.cat-emoji {
    font-size: 3.2rem;
    display: block;
    margin-bottom: 12px;
}

.cat-card h3 {
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.cat-card p {
    color: #4f5b68;
    font-size: 0.9rem;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

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

.featured-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.card-horizontal {
    display: flex;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.02);
    border: 1px solid #eaedf2;
    transition: 0.2s;
}

.card-horizontal:hover {
    box-shadow: 0 20px 25px -8px rgba(0, 30, 60, 0.1);
}

.card-horizontal .card-img {
    flex: 0 0 260px;
    background-size: cover;
    background-position: center;
    aspect-ratio: 4/3;
}

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

.card-content {
    padding: 20px;
    flex: 1;
}

.card-tag {
    background: #e6edf6;
    color: #1d4e7c;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 12px;
}

.card-content h3,
.card-vertical h3 {
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-excerpt {
    color: #3e4a5a;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.card-meta {
    color: #6a7a8c;
    font-size: 0.85rem;
}

.card-vertical {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.02);
    border: 1px solid #eaedf2;
    transition: 0.25s;
}

.card-vertical:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 25px -8px rgba(0, 30, 60, 0.1);
}

.card-vertical .card-img {
    width: 100%;
    aspect-ratio: 4/3;
    background-size: cover;
    background-position: center;
}

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

.card-vertical .card-tag {
    align-self: flex-start;
}



.card-vertical .card-meta {
    margin-top: auto;
}

.special-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    justify-content: center;
    background: #f6f9ff;
    border-radius: 60px;
    padding: 36px 24px;
}

.tags-cloud a {
    background: white;
    padding: 8px 20px;
    border-radius: 40px;
    color: #1d2b3f;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    transition: 0.15s;
    border: 1px solid #eef2f8;
}

.tags-cloud a:hover {
    background: #0b1a33;
    color: white;
}

.site-footer {
    background: #0b1a33;
    color: #cdd9e9;
    padding: 20px 0;
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.2fr;
    gap: 40px;
}

.footer-col h3,
.footer-col h4 {
    color: white;
    margin-bottom: 16px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col a {
    color: #b0c4de;
    transition: 0.2s;
}

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

.social-links {
    display: flex;
    gap: 16px;
    font-size: 1.6rem;
}

.footer-bottom {
    text-align: center;
    color: #7c8fa3;
}

#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #0b1a33;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 30px;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    display: none;
    place-items: center;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
    z-index: 90;
    transition: 0.2s;
}

#backToTop:hover {
    background: #1d3557;
}

.breadcrumb {
    display: flex;
    padding: 24px 0 12px;
    margin-bottom: 24px;
    border-bottom: 1px solid #eaeef5;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    font-size: 0.95rem;
    color: #5b6f88;
}

.breadcrumb li:not(:last-child)::after {
    content: "›";
    margin-left: 8px;
    color: #b0c4de;
}

.breadcrumb a {
    color: #2c6e9c;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #0b1a33;
    text-decoration: underline;
}

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

.two-column {
    display: grid;
    grid-template-columns: 70% 28%;
    gap: 2%;
    margin: 30px 0 50px;
}

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

.sidebar {
    min-width: 0;
}

.sidebar-card {
    background: white;
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 30px;
    border: 1px solid #eaeef5;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.02);
}

.sidebar-card h3 {
    font-size: 1.3rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0b1a33;
}

.sidebar-card h3:after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, #cbd5e1, transparent);
}

.author-info {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 16px;
}

.author-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.author-details h4 {
    font-size: 1.2rem;
    margin-bottom: 4px;
}

.author-details p {
    color: #536b7f;
    font-size: 0.9rem;
}

.author-bio {
    font-size: 0.95rem;
    color: #2d4055;
    line-height: 1.6;
}

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

.post-list li {
    padding: 14px 0;
    border-bottom: 1px dashed #e2eaf2;
    display: flex;
    gap: 12px;
    align-items: center;
}

.post-list li:last-child {
    border-bottom: none;
}

.post-list .list-img {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.post-list .list-content {
    flex: 1;
}

.post-list .list-title {
    font-weight: 600;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.post-list .list-title a {
    color: #1e2f40;
    transition: 0.2s;
}

.post-list .list-title a:hover {
    color: #2c6e9c;
}

.post-list .list-meta {
    font-size: 0.8rem;
    color: #778fa5;
}

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

.category-list li {
    padding: 10px 0;
    border-bottom: 1px dashed #e2eaf2;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.category-list li:last-child {
    border-bottom: none;
}

.category-list a {
    color: #2c3e56;
    transition: 0.2s;
    font-weight: 500;
}

.category-list a:hover {
    color: #2c6e9c;
    padding-left: 5px;
}

.category-list .count {
    background: #edf3fa;
    padding: 2px 10px;
    border-radius: 30px;
    font-size: 0.8rem;
    color: #34597a;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin: 50px 0 30px;
}

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

.pagination a:hover {
    background: #e6f0ff;
    border-color: #a0b9d6;
    transform: scale(1.02);
}

.pagination .active {
    background: #0b1a33;
    border-color: #0b1a33;
    color: white;
}

.pagination .disabled {
    opacity: 0.5;
    pointer-events: none;
}


.post-body {
    font-size: 0.985rem;
    letter-spacing: 0.2px;
    color: #171717;
    line-height: 1.75;
    margin-bottom: 1.8em;
}

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

.post-body h2 {
    font-size: 1.8rem;
    margin: 2.2rem 0 1.2rem;
    letter-spacing: -0.3px;
}

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

.post-body blockquote {
    border-left: 4px solid #2c6e9c;
    background: #f5f9ff;
    padding: 1.2rem 1.8rem;
    margin: 2rem 0;
    font-style: italic;
    border-radius: 0 20px 20px 0;
}

.post-body ul,
.post-body ol {
    margin: 1.5rem 0;
    padding-left: 2rem;
}

.post-body li {
    margin-bottom: 0.5rem;
}

.post-body a {
    color: #2c6e9c;
    text-decoration: underline;
}

.post-subhead {
    font-size: 1.3rem;
    font-weight: 400;
    color: #4a5f73;
    margin: 0 0 20px 0;
    line-height: 1.5;
}

.author-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 20px 0 25px;
    flex-wrap: wrap;
}

.author-row .author-avatar-small {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 2px solid white;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

.author-row .author-meta {
    display: flex;
    flex-direction: column;
}

.author-row .author-name {
    font-weight: 600;
    color: #0b1a33;
}

.author-row .post-details {
    display: flex;
    gap: 16px;
    color: #617e9c;
    font-size: 0.9rem;
}

.post-views {
    display: flex;
    align-items: center;
    gap: 4px;
}

.post-categories {
    margin: 30px 0 20px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.category-badge {
    background: #e6edf6;
    color: #1d4e7c;
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
}

.author-card {
    display: flex;
    gap: 24px;
    background: #f4f9ff;
    border-radius: 28px;
    padding: 28px;
    margin: 40px 0;
    align-items: center;
    flex-wrap: wrap;
}

.author-card .author-avatar-large {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 3px solid white;
    box-shadow: 0 8px 16px rgba(0, 30, 60, 0.1);
}

.author-card .author-bio-wrap {
    flex: 1;
}

.author-card h4 {
    font-size: 1.4rem;
    margin-bottom: 8px;
}

.author-card p {
    color: #2e405b;
    font-size: 0.985rem;
    line-height: 1.6;
}

.share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.share-btn {
    background: none;
    border: 1px solid #cbd5e1;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.15s;
    color: #1a1e24;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.share-btn:hover {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 30px 0;
}

.related-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid #eaeef5;
    transition: 0.2s;
}

.related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 20px -8px rgba(0, 30, 60, 0.1);
}

.related-card .related-img {
    width: 100%;
    aspect-ratio: 4/3;
    background-size: cover;
    background-position: center;
}

.related-card .related-content {
    padding: 12px 12px 16px;
}

.related-card h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

.related-card .related-meta {
    font-size: 0.8rem;
    color: #6a7a8c;
}

.comments-section {
    margin-top: 50px;
}

.comment-item {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid #e4ecf5;
}

.comment-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.comment-content {
    flex: 1;
}

.comment-author {
    font-weight: 600;
    margin-bottom: 5px;
}

.comment-time {
    font-size: 0.8rem;
    color: #728aa3;
    margin-left: 12px;
    font-weight: 400;
}

.comment-text {
    color: #1f2f40;
    line-height: 1.6;
}

.comment-form textarea {
    width: 100%;
    padding: 16px;
    border-radius: 24px;
    border: 1px solid #cbd6e4;
    font-family: inherit;
    resize: vertical;
}

.comment-form button {
    background: #0b1a33;
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
    margin-top: 16px;
}

.comment-form button:hover {
    background: #1d3557;
}

.author-page {
    max-width: 1000px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.author-profile {
    background: white;
    border-radius: 36px;
    padding: 40px;
    margin: 40px 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.02);
    border: 1px solid #eaeef5;
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    align-items: center;
}

.author-profile-left {
    flex: 0 0 180px;
}

.author-avatar-large {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    border: 4px solid white;
    box-shadow: 0 12px 24px rgba(0, 30, 60, 0.15);
}

.author-profile-right {
    flex: 1;
    min-width: 280px;
}

.author-profile-right h1 {
    font-size: 2.8rem;
    margin: 0 0 8px;
    letter-spacing: -0.5px;
    color: #0b1a33;
}

.author-title {
    font-size: 1.3rem;
    color: #2c6e9c;
    font-weight: 500;
    margin-bottom: 20px;
}

.author-bio {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #253746;
    margin-bottom: 20px;
}

.author-meta-info {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin: 20px 0;
    color: #3f5a77;
}

.author-meta-info span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.author-social {
    display: flex;
    gap: 16px;
    margin-top: 20px;
}

.author-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #f0f7ff;
    border-radius: 50%;
    color: #0b1a33;
    font-size: 1.4rem;
    transition: 0.2s;
    text-decoration: none;
}

.author-social a:hover {
    background: #0b1a33;
    color: white;
    transform: translateY(-3px);
}

.author-detail-text {
    background: #f9fcff;
    border-radius: 32px;
    padding: 40px;
    margin: 40px 0;
    border: 1px solid #dee9f2;
}

.author-detail-text h2 {
    font-size: 2rem;
    margin-bottom: 24px;
    color: #0b1a33;
}

.author-detail-text p {
    font-size: 1rem;
    line-height: 1.8;
    color: #1f3246;
    margin-bottom: 1.5em;
}

.author-detail-text .highlight {
    background: #e2edfb;
    padding: 2px 8px;
    border-radius: 20px;
    font-weight: 500;
}

.author-articles {
    margin: 60px 0;
}

.author-articles h2 {
    font-size: 2rem;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

@media (max-width: 992px) {

    .featured-grid,
    .special-grid,
    .two-column {
        grid-template-columns: 1fr;
    }

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

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

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

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

@media (max-width: 768px) {
    .site-header {
        position: relative;
    }

    .header-container {
        height: 54px;
    }

    .two-column {
        grid-template-columns: 100%;
    }

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

    .author-profile {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .author-profile-left {
        flex: 0 0 auto;
    }

    .author-avatar-large {
        width: 140px;
        height: 140px;
        margin: 0 auto;
    }

    .author-profile-right h1 {
        font-size: 2.2rem;
    }

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

    .author-detail-text {
        padding: 30px 20px;
    }

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

    .post-header h1 {
        font-size: 1.4rem;
        line-height: 1.3;
    }

    .author-row {
        gap: 0.5rem;
    }

    .author-row .author-meta {
        flex-direction: row;
        font-size: 0.75rem;
    }

    .author-row .post-details {
        font-size: 0.75rem;
    }

    .post-subhead {
        font-size: 1.1rem;
    }

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

@media (max-width: 600px) {
    .article-grid {
        grid-template-columns: 1fr;
    }

    .banner-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .mini-form {
        width: 100%;
        margin-left: 0;
    }
}