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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #1a1e24;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

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

ul,
li {
    list-style: none;
}

.line-clamp-1 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.line-clamp-2 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.line-clamp-3 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.line-clamp-4 {
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

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


.site-header {
    background: #ffffff;
    border-bottom: 1px solid #eaeef2;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background 0.2s ease, box-shadow 0.2s ease, backdrop-filter 0.2s ease;
}


.site-header.scrolled {
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    backdrop-filter: blur(8px);
}

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

.logo a {
    font-size: 1.8rem;
    font-weight: 600;
    text-decoration: none;
    color: #0b1c2f;
    letter-spacing: -0.02em;
}

.logo span {
    color: #c73b2b;
    font-weight: 400;
}

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

.main-nav a {
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.2s;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {
    color: #c73b2b;
    border-bottom-color: #c73b2b;
}

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


.breadcrumb-wrapper {
    background: #f8fafd;
    border-bottom: 1px solid #e2eaf2;
    padding: 12px 0;
}

.breadcrumb-rich {
    display: flex;
    list-style: none;
    gap: 0.5rem 1rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
}

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

.breadcrumb-rich li:not(:last-child)::after {
    content: "›";
    margin-left: 0.8rem;
    color: #9aabbb;
    font-weight: 400;
}

.breadcrumb-rich a {
    color: #2c3e50;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 30px;
    transition: background 0.1s;
}

.breadcrumb-rich a:hover {
    background: #e3e9f2;
}

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


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


.category-headline {
    font-size: 2.6rem;
    font-weight: 600;
    margin: 0 0 0.25rem;
}

.category-description {
    color: #4f657b;
    font-size: 1.2rem;
    margin-bottom: 2rem;
    border-left: 4px solid #c73b2b;
    padding-left: 1rem;
}

.section-title {
    font-size: 1.8rem;
    margin: 30px 0;
}


.card-grid {
    display: grid;
    gap: 2rem;
}

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


.card-a {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #f0f3f7;
}

.card-a:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.06);
}

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

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

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

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

.tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #c73b2b;
    background: #fdeae7;
    padding: 0.2rem 0.9rem;
    border-radius: 20px;
    margin-bottom: 0.75rem;
}

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

.card h3 a,
.card .card-content h2 a {
    text-decoration: none;
    color: #0b1c2f;
}

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

.meta {
    font-size: 0.85rem;
    color: #687385;
}


.card-b {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    border-radius: 24px;
    background: white;
    border: 1px solid #f0f3f7;
    padding: 10px;
}

.card-b .card-img {
    width: 40%;
    aspect-ratio: 4/3;
}

.card-b .card-content {
    width: 60%;
}


.card-list {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    background: white;
    border-radius: 24px;
    border: 1px solid #f0f3f7;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.card-list:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.04);
}

.card-list .card-img {
    width: 220px;
    flex-shrink: 0;
    aspect-ratio: 4/3;
}

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

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

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

.card-list .card-content h3 {
    font-size: 1.4rem;
    margin: 0.5rem 0 0.75rem;
}

.card-list .excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}


.depth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}


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

.topic-item {
    background: #f9fbfd;
    border: 1px solid #e3e9f0;
    border-radius: 60px;
    padding: 1rem 0.8rem;
    text-decoration: none;
    color: #1a2b3c;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.15s;
}

.topic-item:hover {
    background: #ffffff;
    border-color: #c73b2b;
    box-shadow: 0 4px 12px rgba(199, 59, 43, 0.08);
}

.topic-emoji {
    font-size: 1.7rem;
    line-height: 1;
    margin-left: 0.5rem;
}

.topic-name {
    font-weight: 600;
    flex: 1;
}

.topic-count {
    font-size: 0.8rem;
    background: #eef3f8;
    padding: 0.2rem 0.8rem;
    border-radius: 30px;
    margin-right: 0.5rem;
    color: #3f5569;
}


.list-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin: 2rem 0 4rem;
}

.card-list-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    border-bottom: 1px solid #edf2f7;
    padding-bottom: 1.5rem;
}

.list-number {
    font-size: 2.2rem;
    font-weight: 700;
    color: #c73b2b;
    opacity: 0.3;
    line-height: 1;
    min-width: 50px;
}

.list-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.3rem;
}


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

.sidebar-widget {
    background: #f8fafd;
    border-radius: 28px;
    padding: 1.8rem 1.5rem;
    border: 1px solid #e9eef4;
}

.sidebar-widget h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
    border-left: 4px solid #c73b2b;
    padding-left: 0.8rem;
}


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

.author-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.author-name-title h3 {
    font-size: 1.2rem;
    margin: 0 0 0.2rem;
    border: none;
    padding: 0;
}

.author-name-title p {
    font-size: 0.9rem;
    color: #6b7f94;
}

.author-bio {
    font-size: 0.95rem;
    color: #34495e;
    line-height: 1.5;
}


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

.related-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 0.8rem 0;
    border-bottom: 1px solid #e2eaf2;
    text-decoration: none;
    color: inherit;
    transition: background 0.1s;
}

.related-item:hover {
    background: rgba(199, 59, 43, 0.02);
}

.related-thumb {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    object-fit: cover;
}

.related-content {
    flex: 1;
}

.related-title {
    font-weight: 600;
    display: block;
    margin-bottom: 0.2rem;
    color: #1f2a36;
}

.related-date {
    font-size: 0.75rem;
    color: #7c8b9c;
}


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

.update-list li {
    border-bottom: 1px solid #e4ecf5;
    padding: 0.7rem 0;
}

.update-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    color: #2c3e50;
    font-size: 0.95rem;
}

.update-list a:hover {
    color: #c73b2b;
}

.update-meta {
    font-size: 0.75rem;
    color: #7f95ae;
}


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

.category-list li {
    border-bottom: 1px solid #e2eaf2;
    padding: 0.7rem 0;
}

.category-list a {
    display: flex;
    justify-content: space-between;
    text-decoration: none;
    color: #2c3e50;
    font-weight: 500;
}

.category-list a:hover {
    color: #c73b2b;
}

.cat-count {
    background: #e9f0f8;
    padding: 0.2rem 0.8rem;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 400;
    color: #3f5569;
}


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

.page-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.8rem;
    background: white;
    border: 1px solid #dce5ef;
    border-radius: 40px;
    color: #1f2a36;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.15s;
}

.page-item:hover {
    background: #f2f6fc;
    border-color: #b0c4db;
}

.page-item.active {
    background: #c73b2b;
    color: white;
    border-color: #c73b2b;
}

.page-item.prev,
.page-item.next {
    padding: 0 1.2rem;
}


.full-article {
    max-width: 860px;
}

.article-title {
    font-size: 2.8rem;
    line-height: 1.2;
    margin: 0.5rem 0 0.5rem;
    font-weight: 700;
}

.article-subhead {
    font-size: 1.3rem;
    color: #4f657b;
    margin-bottom: 1rem;
    font-weight: 400;
}

.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 1rem 0 1.5rem;
    border-bottom: 1px solid #e2eaf2;
    margin-bottom: 2rem;
}

.detail-category {
    margin: 0;
}

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

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

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

.time-info {
    font-size: 0.9rem;
    color: #687385;
}

.time-info .updated {
    font-style: italic;
}

.featured-img {
    margin: 2rem 0;
}

.featured-img img {
    width: 100%;
    height: auto;
    border-radius: 24px;
}

.featured-img figcaption {
    font-size: 0.85rem;
    color: #6f7f92;
    margin-top: 0.5rem;
    text-align: right;
}

.article-body p {
    margin: 1.5rem 0;
    font-size: 1.2rem;
    color: #2d3f53;
}

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

.article-categories {
    display: flex;
    gap: 0.8rem;
    margin: 2rem 0;
}


.author-card {
    background: #f4f8fd;
    border-radius: 32px;
    padding: 2rem;
    margin: 3rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    border: 1px solid #e2eaf2;
}

.author-card-header {
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.author-card-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}

.author-card-info h3 {
    font-size: 1.6rem;
    margin: 0;
}

.author-card-info a {
    text-decoration: none;
    color: #0b1c2f;
}

.author-card-title {
    color: #5b738c;
    font-size: 1rem;
    margin-top: 0.2rem;
}

.author-card-bio {
    font-size: 1rem;
    color: #2c3e50;
    line-height: 1.5;
}

.author-card-social {
    display: flex;
    gap: 1rem;
}

.social-icon {
    text-decoration: none;
    font-size: 1.4rem;
    color: #3e5a76;
    transition: color 0.2s;
}

.social-icon:hover {
    color: #c73b2b;
}


.share-block {
    margin: 2rem 0 3rem;
    padding: 1.5rem 0;
    border-top: 1px solid #e2eaf2;
    border-bottom: 1px solid #e2eaf2;
}

.share-label {
    font-weight: 600;
    margin-right: 1rem;
}

.share-btn {
    background: none;
    border: 1px solid #bcc9d6;
    border-radius: 40px;
    padding: 0.5rem 1.2rem;
    margin-right: 10px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.2s;
    color: #c73b2b;
}

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


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

.comments-section h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
}

.comment-list {
    margin-bottom: 2rem;
}

.comment {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 1.8rem;
    padding-bottom: 1.8rem;
    border-bottom: 1px solid #e6edf5;
}

.comment-avatar img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-content {
    flex: 1;
}

.comment-author {
    font-weight: 700;
    display: inline-block;
    margin-right: 1rem;
}

.comment-meta {
    display: inline-block;
    font-size: 0.8rem;
    color: #73879c;
}

.comment p {
    margin-top: 0.5rem;
    color: #2c3e50;
}

.comment-form {
    background: #f8fbfe;
    border-radius: 30px;
    padding: 2rem;
}

.comment-form h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 0.9rem 1.2rem;
    border: 1px solid #d4dee9;
    border-radius: 40px;
    margin: 0.5rem 0 1rem;
    font-family: inherit;
    font-size: 1rem;
}

.comment-form button {
    background: #c73b2b;
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 40px;
    font-weight: 600;
    opacity: 0.6;
    cursor: default;
}

.form-note {
    font-size: 0.9rem;
    color: #6b7f94;
    margin-top: 0.8rem;
}


.author-profile {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
    margin: 3rem 0;
    padding: 2rem;
    background: #f8fafd;
    border-radius: 48px;
    border: 1px solid #e9eef4;
}

.author-profile-avatar {
    flex-shrink: 0;
}

.author-profile-avatar img {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid white;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.author-profile-details {
    flex: 1;
}

.author-profile-name {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 0.25rem;
    color: #0b1c2f;
}

.author-profile-title {
    font-size: 1.2rem;
    color: #c73b2b;
    font-weight: 500;
    margin-bottom: 1rem;
    display: inline-block;
    background: #fdeae7;
    padding: 0.2rem 1.2rem;
    border-radius: 40px;
}

.author-profile-bio-short {
    font-size: 1.2rem;
    color: #2c3e50;
    margin: 1rem 0 1.5rem;
    border-left: 4px solid #c73b2b;
    padding-left: 1.5rem;
}

.author-profile-social {
    display: flex;
    gap: 1.2rem;
}

.author-profile-social a {
    text-decoration: none;
    font-size: 1.5rem;
    color: #3e5a76;
    transition: color 0.2s;
}

.author-profile-social a:hover {
    color: #c73b2b;
}

.author-detailed-bio {
    margin: 3rem 0;
    font-size: 1.2rem;
    color: #2d3f53;
    background: white;
    padding: 2.5rem;
    border-radius: 48px;
    border: 1px solid #edf2f8;
    line-height: 1.7;
}

.author-detailed-bio p {
    margin: 1.5rem 0;
}

.author-detailed-bio h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: #0b1c2f;
}


.site-footer {
    background: #0f1a27;
    color: #cbd5e1;
    margin-top: auto;
    padding: 2rem 0;
}

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

.site-footer a {
    color: #cbd5e1;
}

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

.footer-logo {
    font-size: 1.8rem;
    font-weight: 600;
    color: white;
    margin-bottom: 0.5rem;
}

.footer-logo span {
    color: #c73b2b;
}

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

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

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

.footer-col a {
    color: #9aaebf;
    text-decoration: none;
    font-size: 0.9rem;
}

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


.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #1f2a36;
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 30px;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.2s, background 0.2s;
    pointer-events: none;
    z-index: 99;
}

.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
}

.back-to-top:hover {
    background: #c73b2b;
}


@media (max-width: 1024px) {
    .two-col-layout {
        grid-template-columns: 1fr;
    }

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

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

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

    .header-flex {
        height: 54px;
    }

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

    .card-b {
        display: block;
    }

    .card-b .card-img,
    .card-b .card-content {
        width: 100%;
    }

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

    .author-profile-name {
        font-size: 2rem;
    }

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

    .category-headline {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }

    .hamburger {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 54px;
        left: 0;
        right: 0;
        background: white;
        border-bottom: 1px solid #d9e2ec;
        padding: 1rem;
        box-shadow: 0 20px 30px rgba(0, 0, 0, 0.02);
    }

    .main-nav.active {
        display: block;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 1rem;
    }

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

    .card-list .card-img {
        width: 100%;
        aspect-ratio: 4/3;
    }

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

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

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

    .article-meta {
        gap: 0.8rem;
    }

    .author-mini-avatar {
        display: none;
    }

    .author-name,.time-info ,.meta-item{
        font-size: 0.8rem;
    }

    .comment {
        flex-direction: column;
        gap: 0.5rem;
    }

    .author-profile {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }

    .author-profile-bio-short {
        text-align: left;
    }

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