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

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

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

a {
    text-decoration: none;
    color: #0b3b5c;
    transition: color 0.2s;
}

a:hover {
    color: #c7442c;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 4/3;
}

ul,
li {
    list-style: none;
}


.site-header {
    position: sticky;
    top: 0;
    background: #ffffffdd;
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #eaeef2;
    z-index: 50;
    transition: background 0.2s, box-shadow 0.2s;
}

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

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

.logo a {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 1.5rem;
    color: #0f2b3d;
}

.logo-icon {
    font-size: 2rem;
    line-height: 1;
}

.logo-text span {
    font-weight: 300;
    color: #62778b;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #1a2c3c;
}

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

.nav-list a {
    font-weight: 500;
    color: #2f4858;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
}

.nav-list a.active,
.nav-list a:hover {
    border-bottom-color: #c7442c;
    color: #c7442c;
}


.announcement-bar {
    background: #f2f7fc;
    border-bottom: 1px solid #cbd5e1;
    padding: 12px 0;
    font-size: 0.95rem;
}

.announcement-bar a {
    color: #b13e2b;
    font-weight: 500;
    text-decoration: underline;
}


.section {
    padding: 48px 0;
}

.section-title {
    font-size: 2rem;
    font-weight: 300;
    margin-bottom: 32px;
    letter-spacing: -0.01em;
    border-left: 6px solid #c7442c;
    padding-left: 20px;
}

.section-title span {
    font-weight: 600;
    color: #1f2f3e;
}


.card-grid {
    display: grid;
    gap: 30px;
    margin-bottom: 40px;
}

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

.grid-2-plus1 {
    grid-template-columns: 2fr 1fr;
}

.post-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.25s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
    border: 1px solid #f0f3f7;
}

.post-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 30px -10px rgba(0, 30, 50, 0.15);
}

.card-image {
    overflow: hidden;
}

.card-image img {
    transition: transform 0.4s ease;
}

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

.card-content {
    padding: 20px;
}

.card-tags {
    margin-bottom: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    background: #e9f0f9;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: #244b63;
}

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

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

.card-meta {
    color: #7b8b9c;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-card-horizontal {
    display: flex;
}

.post-card-horizontal .card-image {
    width: 40%;
}

.post-card-horizontal .card-content {
    width: 60%;
}

.post-card-solid {
    background: #fafdff;
    border: 1px solid #dbe6ef;
}


.special-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.special-card {
    display: flex;
    gap: 20px;
    background: #f9fcff;
    border-radius: 24px;
    padding: 20px;
    border: 1px solid #e2eaf2;
    transition: all 0.2s;
}

.special-card:hover {
    background: #fff;
    border-color: #bacddb;
}

.special-image {
    flex: 0 0 130px;
}

.special-image img {
    border-radius: 12px;
}

.special-content h3 {
    font-size: 1.25rem;
    margin: 6px 0 10px;
}

.special-label {
    background: #cdddee;
    font-size: 0.7rem;
    padding: 3px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    font-weight: 600;
}


.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag-large {
    background: #ecf3fa;
    padding: 10px 22px;
    border-radius: 40px;
    font-size: calc(1rem * var(--size, 1));
    font-weight: 500;
    color: #1b3b4f;
    transition: 0.1s;
}

.tag-large:hover {
    background: #c7442c;
    color: white;
}


.site-footer {
    background: #152b39;
    color: #b6cdde;
    padding: 48px 0 32px;
    margin-top: 60px;
}

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

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

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

.footer-col .logo {
    color: white;
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 20px;
    font-weight: 500;
}

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

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

.footer-col a {
    color: #b6cdde;
}

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


.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: #1e3b4b;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 30px;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    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: #c7442c;
}


.main-layout {
    display: flex;
    gap: 40px;
    margin: 40px auto;
}

.content-primary {
    flex: 0 0 70%;
}

.content-secondary {
    flex: 0 0 30%;
}

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

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 8px;
}

.breadcrumb li {
    font-size: 0.9rem;
}

.breadcrumb li+li::before {
    content: "›";
    margin-right: 8px;
    color: #95aec7;
}

.breadcrumb a {
    color: #2f5570;
}

.breadcrumb .active {
    color: #ac3f2b;
    font-weight: 500;
}

.category-h1 {
    font-size: 2.5rem;
    font-weight: 300;
    margin-bottom: 32px;
    letter-spacing: -0.02em;
}


.list-card {
    display: flex;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid #e3ecf3;
}

.list-card:first-of-type {
    padding-top: 0;
}

.list-card-image {
    flex: 0 0 200px;
}

.list-card-image img {
    border-radius: 16px;
}

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

.list-card-content h2 {
    font-size: 1.6rem;
    margin: 8px 0 10px;
}

.list-tags {
    margin-bottom: 5px;
}

.list-meta {
    color: #657e94;
    font-size: 0.9rem;
    margin-top: 12px;
}


.sidebar-card {
    background: #f8fbfe;
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 30px;
    border: 1px solid #e0eaf3;
}

.sidebar-card h4{
    font-size: 1.4rem;
    margin-bottom: 15px;
}

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

.author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin: 0 auto 16px;
    object-fit: cover;
    aspect-ratio: 1;
}

.author-title {
    color: #52748b;
    margin-bottom: 12px;
}

.related-list,
.latest-list,
.category-list {
    list-style: none;
}

.related-list li,
.latest-list li,
.category-list li {
    margin-bottom: 14px;
}

.latest-list span {
    display: inline-block;
    background: #dde9f3;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 20px;
    margin-right: 8px;
}

.category-list li a {
    display: flex;
    justify-content: space-between;
    font-weight: 500;
}

.category-list span {
    color: #6b8ba5;
}


.pagination {
    display: flex;
    gap: 8px;
    margin: 48px 0;
    flex-wrap: wrap;
}

.pagination a {
    padding: 8px 14px;
    border-radius: 30px;
    background: #ecf3f9;
    color: #1d3d53;
    font-weight: 500;
}

.pagination a.active {
    background: #c7442c;
    color: white;
}

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


.article-layout {
    max-width: 900px;
    margin: 40px auto;
}

.article-header {
    margin-bottom: 32px;
}

.article-tags {
    margin-bottom: 16px;
}

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

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

.article-subtitle {
    font-size: 1.3rem;
    font-weight: 300;
    color: #3d556b;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

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

.meta-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

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

.author-name {
    font-size: 1rem;
    color: #1f3a4b;
}

.meta-dates {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    color: #4e6e86;
    font-size: 0.9rem;
}

.update-badge {
    background: #e0edf7;
    padding: 3px 10px;
    border-radius: 20px;
    font-weight: 500;
}

.meta-views {
    color: #54738d;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: auto;
}

@media (max-width: 700px) {
    .meta-views {
        margin-left: 0;
    }
}

.article-image {
    margin: 32px 0;
    border-radius: 24px;
    overflow: hidden;
}

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

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

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

.article-body h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin: 2.2rem 0 1rem;
    color: #0f2a3b;
    letter-spacing: normal;
}

.article-footer-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 2rem 0 1rem;
    border-top: 1px dashed #d0e0ed;
}

.tag-label {
    font-weight: 600;
    color: #2e4e68;
    font-size: 0.95rem;
}

.author-bio-card {
    display: flex;
    gap: 24px;
    background: #f4faff;
    border-radius: 32px;
    padding: 28px;
    margin: 30px 0 20px;
    border: 1px solid #dae6f2;
    transition: 0.15s;
}

.author-bio-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.author-bio-content h4 {
    font-size: 1.4rem;
    margin-bottom: 8px;
    color: #112b39;
}

.author-role {
    color: #5b7a94;
    font-weight: 500;
    margin-bottom: 12px;
}

.author-description {
    color: #2d4a5f;
    line-height: 1.6;
    margin-bottom: 16px;
}

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

.author-social a {
    font-size: 1.4rem;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.author-social a:hover {
    opacity: 1;
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 32px 0;
    padding: 24px 0;
    border-top: 1px solid #e2ecf5;
}

.share-btn {
    background: none;
    border: 1px solid #c0d3e2;
    border-radius: 40px;
    width: 48px;
    height: 48px;
    font-size: 1.4rem;
    cursor: pointer;
    transition: 0.15s;
}

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

.comments-section {
    background: #f8fcff;
    padding: 32px;
    border-radius: 32px;
    margin-top: 40px;
}

.comment-count {
    background: #cfe0ef;
    padding: 2px 12px;
    border-radius: 30px;
    font-size: 0.9rem;
    margin-left: 8px;
}

.comment {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
}

.comment-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.comment-body p {
    margin-top: 4px;
    color: #204458;
}

.comment-meta {
    font-size: 0.9rem;
    color: #476b84;
}

.comment-form textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid #d2e2ef;
    border-radius: 20px;
    margin-bottom: 12px;
    font-family: inherit;
}

.comment-form button {
    background: #1a384b;
    color: white;
    border: none;
    padding: 12px 28px;
    border-radius: 40px;
    cursor: pointer;
}


.related-posts {
    margin: 48px 0 20px;
}

.related-posts h3 {
    font-size: 1.8rem;
    font-weight: 400;
    margin-bottom: 28px;
    border-left: 6px solid #c7442c;
    padding-left: 20px;
}

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

.related-card {
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e2ecf5;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 25px -8px rgba(28, 60, 80, 0.15);
}

.related-image img {
    aspect-ratio: 4/3;
    width: 100%;
    object-fit: cover;
}

.related-content {
    padding: 16px;
}

.related-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    background: #e2eef9;
    padding: 3px 10px;
    border-radius: 30px;
    font-weight: 600;
    color: #24526b;
    display: inline-block;
    margin-bottom: 10px;
}

.related-content h4 {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: #112b39;
}

.related-meta {
    font-size: 0.8rem;
    color: #68869f;
}


.author-full-grid {
    max-width: 1000px;
    margin: 0 auto;
}

.author-profile-card {
    display: flex;
    gap: 48px;
    background: #f6fbff;
    border-radius: 48px;
    padding: 48px;
    margin: 40px 0 32px;
    border: 1px solid #dbe9f5;
    transition: box-shadow 0.2s;
}

.author-profile-card:hover {
    box-shadow: 0 25px 35px -12px rgba(25, 80, 110, 0.15);
}

.author-profile-avatar {
    flex: 0 0 200px;
}

.author-profile-avatar img {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 15px 25px -8px rgba(0, 45, 70, 0.15);
}

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

.author-profile-details h1 {
    font-size: 3.2rem;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.2;
    color: #0b2b3c;
}

.author-profile-title {
    font-size: 1.4rem;
    color: #2f627c;
    font-weight: 400;
    margin-bottom: 20px;
    border-left: 4px solid #c7442c;
    padding-left: 20px;
}

.author-profile-bio {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #264a60;
    margin-bottom: 24px;
}

.author-profile-social {
    display: flex;
    gap: 18px;
}

.author-profile-social a {
    background: #e2effa;
    width: 48px;
    height: 48px;
    border-radius: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: 0.2s;
    color: #1f4b68;
    text-decoration: none;
}

.author-profile-social a:hover {
    background: #c7442c;
    color: white;
}

.author-detailed-bio {
    background: #ffffff;
    border-radius: 32px;
    padding: 48px;
    margin: 40px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.02);
    border: 1px solid #eef4fa;
}

.author-detailed-bio h2 {
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 32px;
    border-left: 6px solid #c7442c;
    padding-left: 20px;
}

.author-detailed-bio p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #1f3b4c;
    margin-bottom: 24px;
}

.author-detailed-bio blockquote {
    margin: 32px 0 32px 40px;
    font-style: italic;
    color: #375f7a;
    border-left: 4px solid #9ebfd9;
    padding-left: 24px;
}

.author-latest-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin: 48px 0 24px;
}

.author-latest-header h2 {
    font-size: 2rem;
    font-weight: 400;
    border-left: 6px solid #c7442c;
    padding-left: 20px;
}

.view-all-link {
    font-weight: 500;
    color: #1d4c6b;
    background: #e3f0fa;
    padding: 8px 20px;
    border-radius: 40px;
    transition: 0.2s;
}

.view-all-link:hover {
    background: #c7442c;
    color: white;
}

.author-latest-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}


@media (max-width: 900px) {

    .grid-3,
    .grid-2-plus1,
    .special-grid,
    .footer-grid,
    .author-latest-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .main-layout {
        flex-direction: column;
    }

    .content-primary,
    .content-secondary {
        width: 100%;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 54px;
        left: 0;
        width: 100%;
        background: white;
        border-top: 1px solid #eee;
        box-shadow: 0 20px 30px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s;
    }

    .main-nav.active {
        max-height: 400px;
    }

    .nav-list {
        flex-direction: column;
        padding: 20px;
        gap: 16px;
    }

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

    .list-card-image {
        width: 100%;
    }

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

    .post-card-horizontal .card-image,
    .post-card-horizontal .card-content {
        width: 100%;
    }

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

    .author-profile-title {
        border-left: none;
        border-top: 4px solid #c7442c;
        padding-top: 16px;
        padding-left: 0;
    }

    .author-detailed-bio blockquote {
        margin-left: 20px;
    }
}

@media (max-width: 800px) {
    .author-profile-avatar {
        flex: 0 0 150px;
    }

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

@media (max-width: 600px) {
    .site-header {
        position: relative;
    }
    .header-container{
        height: 54px;
    }

    .article-meta-bar {
        gap: 0.5rem;
    }

    .author-name,
    .meta-dates,
    .meta-views {
        font-size: 0.7rem;
        margin: 0;
        align-items: center;
        gap: 0.5rem;
    }

    .share-buttons {
        flex-wrap: wrap;
    }

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

    .author-bio-avatar {
        margin-bottom: 16px;
    }

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

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