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

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

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

a:hover {
    text-decoration: underline;
}

ul,
ol {
    list-style: none;
}

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

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

.site-header {
    background: transparent;
    border-bottom: 1px solid rgba(234, 238, 242, 0.5);
    position: sticky;
    top: 0;
    z-index: 100;
    transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
}

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

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

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

.logo span {
    font-weight: 300;
    color: #5a7c91;
}

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

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

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

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

.hamburger span {
    width: 25px;
    height: 3px;
    background: #1e293b;
    border-radius: 3px;
    transition: 0.2s;
}

/* ====== 顶部公告条 ====== */
.top-banner {
    background: #f2f7fb;
    padding: 10px 0;
    border-bottom: 1px solid #d9e2e9;
    font-size: 0.95rem;
}

.top-banner a {
    color: #026b9c;
    font-weight: 500;
    text-decoration: none;
}

/* ====== 通用区块标题 ====== */
.section-title {
    font-size: 1.8rem;
    font-weight: 400;
    border-left: 6px solid #026b9c;
    padding-left: 1rem;
    margin: 2.5rem 0 2rem;
    color: #0f2a38;
}

/* ====== 网格布局 ====== */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

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

/* ====== 卡片通用 ====== */
.card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.02), 0 2px 5px rgba(0, 20, 30, 0.05);
    transition: all 0.25s ease;
    border: 1px solid #f0f3f7;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -10px rgba(0, 50, 70, 0.15);
    border-color: #cbd5e1;
}

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

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

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

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

.card-tag {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #e6edf3;
    padding: 0.2rem 0.8rem;
    border-radius: 30px;
    display: inline-block;
    margin-bottom: 0.7rem;
    color: #1e4b62;
    font-weight: 600;
}

.card h3,
.card h4 {
    font-size: 1.2rem;
    line-height: 1.4;
    margin: 0.4rem 0 0.6rem;
    font-weight: 600;
}

.card h3 a,
.card h4 a {
    text-decoration: none;
    color: #0f2a38;
}

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

.meta {
    color: #687e8f;
    font-size: 0.8rem;
}

/* 卡片变体 */
.card-large .card-content {
    padding: 1.5rem;
}

.card-outline {
    border: 2px solid #e2eaf0;
    box-shadow: none;
}

.card-mini .card-tag {
    background: #fff;
    border: 1px solid #bcd3e0;
}

/* 水平卡片 */
.card-horizontal {
    display: flex;
    gap: 1.2rem;
    background: #fff;
    border-radius: 16px;
    padding: 1rem;
    border: 1px solid #ecf1f5;
    transition: 0.2s;
    align-items: center;
}

.card-horizontal:hover {
    background: #f9fcfd;
    border-color: #b0c7d6;
}

.card-horizontal .card-img {
    flex: 0 0 140px;
    border-radius: 10px;
}

.card-horizontal.reverse {
    flex-direction: row-reverse;
}

.card-horizontal.small {
    padding: 0.8rem;
}

.card-horizontal.small .card-img {
    flex: 0 0 80px;
}

/* ====== 分类聚焦（两列）====== */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 1.5rem 0 3rem;
}

.cat-heading {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 1.2rem;
    color: #1e4b62;
    border-bottom: 1px solid #cbdae3;
    padding-bottom: 0.4rem;
}

.card-stack .stack-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1rem;
}

.stack-item img {
    width: 100px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.stack-item h4 {
    font-size: 1rem;
    margin-bottom: 0.2rem;
}

/* ====== 专题卡片（底部渐变）====== */
.card-feature {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 20, 30, 0.1);
}

.card-feature img {
    width: 100%;
    display: block;
}

.feature-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem 1.5rem;
    background: linear-gradient(0deg, #0b1a24f0, transparent);
    color: white;
}

.feature-label {
    background: #dcab5c;
    color: #0f1c25;
    padding: 0.2rem 1rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    display: inline-block;
}

.feature-content h3 {
    font-size: 1.6rem;
    margin: 0.5rem 0;
}

.feature-content h3 a {
    color: white;
    text-decoration: none;
}

/* ====== 热门标签云 ====== */
.topic-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 1.5rem 0;
}

.topic-item {
    background: #edf3f8;
    padding: 0.4rem 1.2rem 0.4rem 1.5rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid #cbdae3;
    position: relative;
}

.topic-count {
    background: white;
    margin-left: 0.6rem;
    padding: 0.1rem 0.5rem;
    border-radius: 30px;
    font-size: 0.7rem;
    color: #0f2a38;
}

/* ====== 静态筛选/下拉 ====== */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.fake-select {
    border: 1px solid #b8cbd8;
    padding: 0.4rem 1rem;
    border-radius: 40px;
    background: white;
    font-size: 0.9rem;
    cursor: default;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
}

.arrow {
    font-size: 0.7rem;
    color: #5f7d94;
}

/* ====== 面包屑 ====== */
.breadcrumb {
    margin: 1.5rem 0 0.5rem;
}

.breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumb li {
    font-size: 0.9rem;
    color: #4f6b7a;
}

.breadcrumb li:not(:last-child)::after {
    content: "/";
    margin: 0 0.6rem;
    color: #a5bfcf;
}

.breadcrumb a {
    color: #026b9c;
    text-decoration: none;
}

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

/* ====== 两列布局（主内容+侧边栏）====== */
.main-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.8rem;
}

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

/* ====== 侧边栏卡片 ====== */
.sidebar-card {
    background: #f9fbfd;
    border-radius: 24px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    border: 1px solid #e6edf4;
}

.sidebar-title {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 1.2rem;
    border-left: 4px solid #026b9c;
    padding-left: 1rem;
    color: #0f2a38;
}

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

.author-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 4px 10px rgba(0, 30, 40, 0.1);
}

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

.author-info p {
    margin: 0;
    color: #4b6b7c;
    font-size: 0.9rem;
}

/* 相关推荐列表（水平小卡片） */
.related-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.2rem;
    align-items: center;
}

.related-item img {
    width: 70px;
    height: 55px;
    object-fit: cover;
    border-radius: 12px;
}

.related-item h5 {
    font-size: 0.95rem;
    margin: 0 0 0.2rem;
}

.related-item h5 a {
    text-decoration: none;
    color: #0f2a38;
}

.related-item .meta {
    font-size: 0.7rem;
}

/* 最新更新列表 */
.update-list {
    list-style: none;
    padding: 0;
}

.update-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.7rem 0;
    border-bottom: 1px dashed #d0dee9;
}

.update-list li a {
    text-decoration: none;
    color: #1e4b62;
    font-weight: 450;
}

.update-list .meta {
    color: #6e8b9c;
    font-size: 0.75rem;
}

/* 分类列表 */
.category-list {
    list-style: none;
    padding: 0;
}

.category-list li {
    display: flex;
    justify-content: space-between;
    padding: 0.6rem 0;
    border-bottom: 1px dashed #d0dee9;
}

.category-list li a {
    text-decoration: none;
    color: #1e4b62;
}

.category-list .count {
    background: #e2ecf3;
    border-radius: 40px;
    padding: 0.1rem 0.7rem;
    font-size: 0.7rem;
}

/* ====== 文章详情页 ====== */
.article-main {
    max-width: 900px;
    margin: 0 auto;
}

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

.article-header h1 {
    font-size: 2.4rem;
    line-height: 1.2;
    margin: 0 0 0.5rem;
    color: #0b1f2c;
}

.article-subhead {
    font-size: 1.2rem;
    color: #3f5a6b;
    font-weight: 400;
    margin-bottom: 1rem;
    border-left: 3px solid #b0c9db;
    padding-left: 1.2rem;
}

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

.meta-author {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

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

.meta-author span {
    font-weight: 500;
    color: #0f2a38;
}

.meta-date,
.meta-views {
    color: #5e7c8e;
    font-size: 0.9rem;
}

.meta-views::before {
    content: "👁️ ";
}

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

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

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

.article-body h2 {
    font-size: 1.6rem;
    margin: 2rem 0 1rem;
}

.article-body blockquote {
    margin: 2rem 0;
    padding: 1rem 2rem;
    background: #f4f8fc;
    border-left: 6px solid #026b9c;
    font-style: italic;
    color: #1a4052;
}

.article-body figure {
    margin: 2rem 0;
}

.article-body figcaption {
    font-size: 0.8rem;
    color: #5a7c91;
    margin-top: 0.3rem;
    text-align: center;
}

.article-tags {
    margin: 2rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tag {
    background: #e7eef5;
    border-radius: 30px;
    padding: 0.3rem 1rem;
    font-size: 0.75rem;
    color: #1e4b62;
    text-decoration: none;
    border: 1px solid #c7d8e5;
    transition: 0.2s;
}

.tag:hover {
    background: #d1e0eb;
}

.author-bio {
    display: flex;
    gap: 1.5rem;
    background: #f7fafd;
    border-radius: 32px;
    padding: 1.8rem;
    margin: 2.5rem 0;
    border: 1px solid #dae7f0;
}

.author-bio img {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid white;
    box-shadow: 0 5px 15px rgba(0, 40, 60, 0.1);
}

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

.author-bio p {
    color: #2f4a5c;
    margin-bottom: 0;
}

.share-area {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.2rem;
    margin: 2rem 0 1.5rem;
}

.share-btn {
    background: none;
    border: 1px solid #acc4d6;
    border-radius: 40px;
    width: 42px;
    height: 42px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: 0.2s;
}

.share-btn:hover {
    background: #e6f0f7;
    border-color: #7e9fb5;
}

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

.comment {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

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

.comment-content {
    background: #f5f9fd;
    border-radius: 24px;
    padding: 1rem 1.5rem;
    flex: 1;
}

.comment-author {
    font-weight: 600;
    margin-right: 0.5rem;
}

.comment-date {
    color: #6b8b9c;
    font-size: 0.75rem;
}

.comment-form {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
}

.comment-form textarea {
    flex: 1;
    padding: 1rem;
    border-radius: 30px;
    border: 1px solid #c7d8e5;
    font-family: inherit;
    resize: vertical;
}

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

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

.related-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #e1eaf1;
    border-radius: 20px;
    overflow: hidden;
    transition: 0.2s;
    background: white;
}

.related-card:hover {
    box-shadow: 0 10px 20px rgba(0, 30, 40, 0.08);
    transform: translateY(-2px);
}

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

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

.related-card h5 {
    font-size: 1rem;
    margin: 0 0 0.3rem;
}

.related-card .meta {
    font-size: 0.7rem;
}

/* ====== 作者详情页 ====== */
.author-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 20px;
}

.author-header {
    display: flex;
    gap: 3rem;
    align-items: center;
    margin-bottom: 3rem;
    background: #f7fafd;
    border-radius: 48px;
    padding: 2.5rem;
    border: 1px solid #e2eaf0;
}

.author-avatar-large {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 15px 25px -8px rgba(0, 40, 60, 0.2);
}

.author-header h1 {
    font-size: 2.5rem;
    margin: 0 0 0.3rem;
    color: #0f2a38;
}

.author-header .author-tagline {
    font-size: 1.2rem;
    color: #2f5c77;
    margin-bottom: 1rem;
}

.author-header .author-bio-short {
    font-size: 1rem;
    color: #1f4053;
    max-width: 600px;
    margin-bottom: 1.2rem;
}

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

.author-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #e1ecf5;
    color: #1e4b62;
    text-decoration: none;
    font-size: 1.3rem;
    transition: 0.2s;
}

.author-social a:hover {
    background: #cbddee;
    transform: translateY(-2px);
}

.author-detail-body {
    font-size: 1rem;
    line-height: 1.7;
    color: #1d3342;
    margin: 3rem 0;
}

.author-detail-body h2 {
    font-size: 1.8rem;
    margin: 2rem 0 1rem;
    color: #0b2838;
    border-left: 5px solid #026b9c;
    padding-left: 1rem;
}

.author-detail-body p {
    margin-bottom: 1.5rem;
}

.author-detail-body blockquote {
    margin: 2rem 0;
    padding: 1.2rem 2rem;
    background: #f2f6fa;
    border-left: 5px solid #7f9fb5;
    border-radius: 0 30px 30px 0;
}

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

/* ====== 列表页专用 ====== */
.category-header {
    margin: 2rem 0;
}

.list-filter {
    justify-content: flex-end;
}

.list-simple {
    display: flex;
    align-items: baseline;
    padding: 1rem 0;
    border-bottom: 1px dashed #d3e0e8;
    gap: 1rem;
}

.simple-tag {
    background: #e2ecf3;
    border-radius: 20px;
    padding: 0.1rem 0.8rem;
    font-size: 0.7rem;
    font-weight: 600;
}

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

.pagination a {
    padding: 0.5rem 1rem;
    background: #edf3f8;
    border-radius: 8px;
    text-decoration: none;
    color: #1e4b62;
}

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

.site-footer {
    background: #10252f;
    color: #b2c9d6;
    margin-top: 4rem;
    padding: 3rem 0;
}

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

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

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

.footer-col h4 {
    color: white;
    margin-bottom: 1rem;
    font-weight: 400;
    border-bottom: 1px solid #2a4757;
    padding-bottom: 0.5rem;
}

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

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

.footer-col a {
    color: #b2c9d6;
    text-decoration: none;
}

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

.brand p {
    margin-top: 1rem;
    font-size: 0.9rem;
}

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

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

/* ====== 响应式设计 ====== */
@media (max-width: 900px) {
    .grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .split-layout {
        grid-template-columns: 1fr;
    }

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

    .article-main {
        margin:  inherit;
    }

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

@media (max-width: 640px) {
    .main-grid {
        grid-template-columns: 100%;
    }

    .pagination {
        gap: 1.5rem;
    }

    .article-meta {
        gap: 0.5rem;
    }

    .meta-author span,
    .meta-date,
    .meta-views {
        font-size: 0.75rem;
    }

    .site-header {
        position: relative;
    }

    .header-container {
        height: 54px;
    }

    .nav-list {
        display: none;
        position: absolute;
        top: 54px;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 2rem;
        border-bottom: 1px solid #ccc;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
    }

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

    .hamburger {
        display: flex;
    }

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

    .card-horizontal {
        flex-direction: column;
        align-items: start;
    }

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

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

    .back-to-top {
        bottom: 15px;
        right: 15px;
    }

    .article-header h1 {
        font-size: 1.4rem;
    }

    .article-subhead {
        font-size: 1rem;
    }

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

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

    .author-header {
        flex-direction: column;
        text-align: center;
        padding: 2rem 1.5rem;
    }
}

@media (max-width: 520px) {
    .author-posts-grid {
        grid-template-columns: 1fr;
    }
}