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

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

ul,
ol {
    list-style: none;
}

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

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

.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.2rem;
    margin-bottom: 0.5rem;
}

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

h2:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 48px;
    height: 3px;
    background: #2563eb;
    border-radius: 4px;
}

.btn-more {
    display: inline-block;
    background: #f0f4f9;
    padding: 0.5rem 1.2rem;
    border-radius: 40px;
    font-weight: 500;
    transition: all 0.25s ease;
    font-size: 0.9rem;
}

.btn-more:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-2px);
}

.top-banner {
    background: #f0f9ff;
    border-bottom: 1px solid #d9e6f5;
    padding: 0.6rem 0;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 500;
    color: #1e3a8a;
}

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

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

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

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

.logo a {
    font-size: 1.7rem;
    font-weight: 700;
    background: linear-gradient(135deg, #1e293b, #2563eb);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    letter-spacing: -0.02em;
}

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

.nav-menu li a {
    font-weight: 500;
    transition: color 0.2s;
    font-size: 1rem;
}

.nav-menu li a:hover {
    color: #2563eb;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.hamburger span {
    width: 26px;
    height: 2px;
    background-color: #1e293b;
    transition: 0.2s;
}

.breadcrumb-section {
    margin: 1.5rem 0 1rem;
}

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

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

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

.breadcrumb a {
    color: #2563eb;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb li:last-child {
    color: #1f2937;
    font-weight: 500;
}

.two-col-layout {
    display: grid;
    grid-template-columns: 70% 28%;
    gap: 2rem;
    margin: 2rem 0;
}

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

.section {
    margin: 3rem 0;
}

.section-title {
    margin-bottom: 30px;
}

.last-card {
    background: #f9fafb;
    border-radius: 32px;
    padding: 2rem;
}

.last-card-grid {
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr 4fr;
    margin-bottom: 25px;
}

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

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

.last-card-excerpt {
    margin: 1rem 0;
    color: #2d3a4b;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.2, 0, 0, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02), 0 4px 16px rgba(0, 0, 0, 0.02);
    height: 100%;
    display: flex;
    flex-direction: column;
}

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

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

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

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

.card-content {
    padding: 1.2rem;
    flex: 1;
}

.card-category {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: #2563eb;
    margin-bottom: 0.5rem;
    display: inline-block;
}

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

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

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

.card-horizontal {
    display: flex;
    align-items: center;
}

.card-horizontal .card-img {
    flex: 0 0 140px;
    aspect-ratio: 4/3;
}

@media (max-width: 640px) {
    .card-horizontal {
        flex-direction: column;
        align-items: flex-start;
    }

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

.grid-2cols,
.grid-3cols {
    display: grid;
    gap: 2rem;
}

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

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

@media (max-width: 1024px) {
    .grid-3cols {
        grid-template-columns: repeat(2, 1fr);
    }
}

.topic-pill {
    background: #f1f5f9;
    border-radius: 40px;
    padding: 0.3rem 1rem;
    font-size: 0.8rem;
    transition: all 0.2s;
    display: inline-block;
}

.topic-pill:hover {
    background: #2563eb;
    color: white;
}

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

.sidebar-card {
    background: #f9fafb;
    border-radius: 24px;
    padding: 1.5rem;
}

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

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

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

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

.sidebar-list a:hover {
    color: #2563eb;
}

.sidebar-list .post-date {
    font-size: 0.7rem;
    color: #6c757d;
    display: block;
    margin-top: 0.2rem;
}

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

.cat-count {
    background: #eef2ff;
    border-radius: 30px;
    padding: 0.2rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: #2563eb;
}

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

.author-avatar {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1rem;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.author-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.author-bio {
    font-size: 0.85rem;
    color: #4b5563;
    line-height: 1.4;
}

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

.page-item {
    min-width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 40px;
    background: #f1f5f9;
    transition: all 0.2s;
    padding: 0 0.8rem;
    font-weight: 500;
}

.page-item.active {
    background: #2563eb;
    color: white;
}

.page-item:hover:not(.active) {
    background: #e2e8f0;
    transform: translateY(-2px);
}

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

.article-title {
    font-size: 2.2rem;
    margin-bottom: 0.75rem;
}

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

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

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

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

.author-mini img {
    width: 32px;
    height: 32px;
    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;
    margin-bottom: 2rem;
}

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

.article-body h3 {
    margin: 1.5rem 0 0.75rem;
    font-size: 1.3rem;
}

.article-body img {
    margin: 1rem auto;
}

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

.tag {
    background: #f1f5f9;
    padding: 0.2rem 1rem;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 500;
    transition: 0.2s;
}

.tag:hover {
    background: #2563eb;
    color: white;
}

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

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

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

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

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

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

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

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

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

.comment-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 1rem;
}

.comment-avatar {
    width: 44px;
    height: 44px;
    background: #e2e8f0;
    border-radius: 50%;
    flex-shrink: 0;
}

.comment-body strong {
    font-size: 0.9rem;
}

.comment-body p {
    font-size: 0.85rem;
    color: #2d3a4b;
    margin-top: 0.2rem;
}

.comment-form-static {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 24px;
    margin-top: 1rem;
}

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

.comment-form-static button {
    background: #2563eb;
    color: white;
    border: none;
    padding: 0.6rem 1.5rem;
    border-radius: 40px;
    font-weight: 500;
    cursor: pointer;
}

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

.related-card {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: 0.2s;
}

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

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

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

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

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

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

.related-date {
    font-size: 0.7rem;
    color: #6c757d;
    margin-top: 0.4rem;
}

.author-profile {
    background: #f9fafb;
    border-radius: 32px;
    padding: 2rem;
    margin: 1.5rem 0 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    align-items: center;
}

.author-avatar-large {
    flex: 0 0 180px;
}

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

.author-info-large {
    flex: 1;
}

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

.author-bio-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #2d3a4b;
    margin-bottom: 1rem;
}

.author-stats {
    display: flex;
    gap: 1.5rem;
    margin: 1rem 0;
    font-size: 0.85rem;
    color: #4b5563;
}

.author-stats span strong {
    color: #1e293b;
}

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

.social-link {
    background: #ffffff;
    padding: 0.4rem 1rem;
    border-radius: 40px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

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

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

.author-detail-body h3 {
    font-size: 1.5rem;
    margin: 1.5rem 0 0.8rem;
}

.author-detail-body p {
    color: #2c3e4e;
    line-height: 1.65;
    margin-bottom: 1rem;
    font-size: 0.985rem;
    letter-spacing: 0.2px;
}

.achievement-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
    list-style: none;
}

.achievement-list li {
    background: #f8fafc;
    padding: 0.8rem 1rem;
    border-radius: 60px;
    font-size: 0.85rem;
    font-weight: 500;
    display: inline-block;
    text-align: center;
}

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

@media (max-width: 1024px) {
    .article-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.two-col-layout {
    display: grid;
    grid-template-columns: 70% 28%;
    gap: 2rem;
    margin: 2rem 0;
}

@media (max-width: 992px) {
    .two-col-layout {
        grid-template-columns: 100%;
        gap: 2rem;
    }
}

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

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

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.footer-col p,
.footer-col ul {
    color: #4b5563;
    font-size: 0.9rem;
}

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

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

.footer-col ul li a:hover {
    color: #2563eb;
}

.copyright {
    text-align: center;
    font-size: 0.8rem;
    color: #6c757d;
}

.copyright p {
    text-align: center;
}

.copyright a {
    color: #6c757d;
}

.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #2563eb;
    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.3s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 99;
    border: none;
}

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

.back-to-top:hover {
    background: #1e40af;
    transform: translateY(-3px);
}

@media (max-width: 768px) {

    .grid-2cols,
    .grid-3cols {
        grid-template-columns: 1fr;
    }

    .related-grid,
    .main-content-grid {
        grid-template-columns: 100%;
    }

    .article-title {
        font-size: 1.4rem;
    }

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

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

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

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

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

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

    .site-header {
        position: relative;
    }

    .hamburger {
        display: flex;
    }

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

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

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

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

    .container {
        padding: 0 16px;
    }

    h1 {
        font-size: 1.8rem;
    }
}