/* --- 全局变量与基础重置 --- */
:root {
    --primary-color: #3b82f6;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --bg-body: #f9fafb;
    --bg-card: #ffffff;
    --radius: 12px;
    --content-width: 760px;
    --sidebar-width: 300px;
    /* 侧边栏宽度 */
    --gap: 30px;
    /* 内容与侧边栏的间距 */
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.75;
    font-size: 17px;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--text-main);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--primary-color);
}

/* --- 布局容器 --- */
.container {
    /* 总宽度 = 内容宽度 + 侧边栏宽度 + 间距 */
    max-width: calc(var(--content-width) + var(--sidebar-width) + var(--gap));
    margin: 0 auto;
    padding: 0 20px;
}

/* --- 顶部导航 --- */
.site-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #e5e7eb;
    padding: 15px 0;
}

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

.logo {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.5px;
}

/* --- 核心布局：Flex 左右分栏 --- */
.main-wrapper {
    display: flex;
    gap: var(--gap);
    margin: 40px auto;
}

/* 左侧文章区域 */
.article-wrapper {
    flex: 1;
    /* 自动占据剩余空间 */
    max-width: var(--content-width);
    /* 限制最大阅读宽度 */
    background: var(--bg-card);
    padding: 50px 60px;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

/* 右侧侧边栏区域 */
.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    /* 防止侧边栏被压缩 */
}

/* --- 侧边栏小工具样式 --- */
.widget {
    background: var(--bg-card);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    margin-bottom: var(--gap);
    /* 多个小工具之间的间距 */
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f3f4f6;
    color: #111827;
}

.widget ul {
    list-style: none;
}

.widget ul li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #e5e7eb;
}

.widget ul li:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.widget ul li a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.widget ul li a:hover {
    color: var(--primary-color);
}

/* --- 文章主体内部样式 (保持不变) --- */
.post-header {
    margin-bottom: 40px;
    text-align: center;
}

.post-category {
    display: inline-block;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.post-title {
    font-size: 2.2rem;
    line-height: 1.3;
    font-weight: 800;
    margin-bottom: 20px;
    color: #111827;
}

/* 更新后的元信息容器样式 */
.post-meta {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: flex;
    justify-content: center;
    /* PC端保持居中 */
    align-items: center;
    /* 保证文字和标签垂直居中 */
    gap: 15px;
    /* 各个信息之间的间距 */
    flex-wrap: wrap;
    /* 防止小屏幕下信息挤压换行错位 */
}

/* 新增：元信息中的分类链接样式 */
.post-meta .post-category-link {
    display: inline-block;
    padding: 2px 10px;
    background-color: rgba(59, 130, 246, 0.1);
    /* 极淡的蓝色背景 */
    color: var(--primary-color);
    /* 品牌蓝色文字 */
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 4px;
    text-transform: uppercase;
    transition: all 0.2s;
}

/* 鼠标悬停时，分类标签加深背景色 */
.post-meta .post-category-link:hover {
    background-color: var(--primary-color);
    color: #fff;
}

/* 移动端适配：元信息改为左对齐 */
@media (max-width: 900px) {
    .post-meta {
        justify-content: flex-start;
        /* 手机端靠左对齐，阅读更自然 */
    }
}

.featured-image {
    width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 40px;
    display: block;
}

.post-content {
    font-size: 1.1rem;
    color: #374151;
}

.post-content p {
    margin-bottom: .8em;
}

.post-content h2,
.post-content h3 {
    /* margin-top: 2.5em; */
    margin-bottom: 1em;
    color: #111827;
    font-weight: 700;
    font-size: 1.35rem;
    border-left: 4px solid var(--primary-color);
    padding-left: 12px;
}

/* .post-content h2 {
    font-size: 1.6rem;
    border-left: 4px solid var(--primary-color);
    padding-left: 12px;
}

.post-content h3 {
    font-size: 1.35rem;
    
} */

.post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 20px 0;
}

.post-content blockquote {
    background: #f3f4f6;
    border-left: 4px solid #9ca3af;
    padding: 15px 20px;
    margin: 20px 0;
    color: #4b5563;
    font-style: italic;
}

.post-content code {
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9em;
    color: #d63384;
}

.post-content pre {
    background: #1f2937;
    color: #f3f4f6;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 1.8em;
}

.post-tags {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag {
    background: #f3f4f6;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: all 0.2s;
}

.tag:hover {
    background: var(--primary-color);
    color: #fff;
}

/* --- 响应式适配 (核心修改) --- */
@media (max-width: 900px) {

    /* 在平板和手机端，取消 Flex 左右布局，改为垂直堆叠 */
    .main-wrapper {
        flex-direction: column;
        margin: 0;
    }

    /* 文章区域恢复全屏卡片 */
    .article-wrapper {
        padding: 30px 20px;
        border-radius: 0;
        box-shadow: none;
        max-width: 100%;
    }

    /* 侧边栏在移动端显示在底部 */
    .sidebar {
        width: 100%;
        /* 宽度撑满 */
        padding: 30px 20px;
        /* 增加上下内边距 */
        background-color: var(--bg-body);
        /* 与网页背景同色，区分文章卡片 */
    }

    /* 移动端侧边栏小工具样式微调 */
    .widget {
        box-shadow: none;
        background: transparent;
        padding: 0;
        margin-bottom: 40px;
    }

    .post-title {
        font-size: 1.75rem;
    }

    .post-content {
        font-size: 1rem;
    }

    .post-header {
        text-align: left;
    }

    .post-meta {
        justify-content: flex-start;
    }
}

/* --- 侧边栏标签云样式 --- */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    /* 允许标签自动换行 */
    gap: 10px;
    /* 标签之间的间距 */
}

.tag-cloud .tag-item {
    display: inline-block;
    padding: 5px 14px;
    font-size: 0.85rem;
    /* 稍微调小字号，适配侧边栏 */
    background-color: #f3f4f6;
    color: var(--text-muted);
    border-radius: 20px;
    /* 胶囊型圆角 */
    transition: all 0.2s ease;
}

/* 鼠标悬停时的交互效果 */
.tag-cloud .tag-item:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
    /* 悬停时微微上浮，增加灵动感 */
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}


/* --- 分类页/归档页 专属样式 --- */

/* 左侧内容区域的基础样式 (与文章页的 article-wrapper 保持一致的卡片感) */
.content-wrapper {
    flex: 1;
    max-width: var(--content-width);
    background: var(--bg-card);
    padding: 50px 60px;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
    height: fit-content;
    /* 保证背景高度自适应内容 */
}

/* 分类页头部 */
.archive-header {
    margin-bottom: 50px;
    padding-bottom: 30px;
    border-bottom: 1px solid #e5e7eb;
    text-align: center;
}

.archive-title {
    font-size: 2rem;
    color: #111827;
    margin-bottom: 10px;
}

.archive-description {
    color: var(--text-muted);
    font-size: 1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* 文章列表卡片 */
.post-card {
    padding-bottom: 35px;
    margin-bottom: 35px;
    border-bottom: 1px solid #f3f4f6;
}

.post-card:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.post-card-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.post-card-title a {
    color: #111827;
}

.post-card-title a:hover {
    color: var(--primary-color);
}

.post-card-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 复用之前设计的分类小标签样式 */
.post-card-meta .post-category-link {
    display: inline-block;
    padding: 2px 8px;
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--primary-color);
    font-weight: 600;
    border-radius: 4px;
    font-size: 0.75rem;
}

.post-card-excerpt {
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 15px;
}

.post-card-excerpt p {
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* 限制摘要最多显示3行 */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 阅读全文按钮 */
.read-more {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
}

.read-more:hover {
    text-decoration: underline;
}

/* 分页导航 */
.pagination {
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.page-numbers {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 8px;
    background: #f3f4f6;
    color: var(--text-muted);
    font-size: 0.9rem;
    transition: all 0.2s;
}

.page-numbers:hover {
    background: #e5e7eb;
    color: var(--text-main);
}

.page-numbers.current {
    background: var(--primary-color);
    color: #fff;
}

/* --- 移动端适配 --- */
@media (max-width: 900px) {
    .content-wrapper {
        padding: 30px 20px;
        border-radius: 0;
        box-shadow: none;
        max-width: 100%;
    }

    .archive-title {
        font-size: 1.6rem;
    }

    .post-card-title {
        font-size: 1.3rem;
    }
}

/* --- 首页轮播图 (Hero Slider) --- */
.hero-slider {
    position: relative;
    width: 100%;
    height: 500px;
    /* 轮播图高度 */
    overflow: hidden;
    background: #000;
    margin-bottom: 40px;
}

.slider-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    /* 核心动画：淡入淡出 + 缓慢缩放 */
    animation: slideAnimation 15s infinite;
}

/* 遮罩层：让文字在图片上更清晰 */
.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.7));
}

/* 幻灯片内容文字 */
.slide-content {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: #fff;
    width: 90%;
    max-width: 800px;
    z-index: 2;
}

.slide-category {
    display: inline-block;
    background: var(--primary-color);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.slide-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    line-height: 1.3;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.slide-content h2 a {
    color: #fff;
}

.slide-content h2 a:hover {
    text-decoration: underline;
}

.slide-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

/* 动画关键帧：控制3张幻灯片的显示顺序 */
/* 总时长15秒，每张图显示5秒 */
.slide:nth-child(1) {
    animation-delay: 0s;
}

.slide:nth-child(2) {
    animation-delay: 5s;
}

.slide:nth-child(3) {
    animation-delay: 10s;
}

@keyframes slideAnimation {
    0% {
        opacity: 0;
        transform: scale(1.05);
    }

    10% {
        opacity: 1;
        transform: scale(1);
    }

    33% {
        opacity: 1;
        transform: scale(1);
    }

    43% {
        opacity: 0;
        transform: scale(1.05);
    }

    100% {
        opacity: 0;
    }
}

/* 首页文章列表标题 */
.section-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f3f4f6;
}

.section-title {
    font-size: 1.5rem;
    color: #111827;
    position: relative;
    display: inline-block;
}

/* 标题下方的蓝色小横条 */
.section-title::after {
    content: '';
    position: absolute;
    bottom: -17px;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary-color);
}

/* --- 首页移动端适配 --- */
@media (max-width: 900px) {
    .hero-slider {
        height: 400px;
    }

    /* 手机端降低轮播图高度 */
    .slide-content h2 {
        font-size: 1.6rem;
    }

    .slide-content p {
        font-size: 0.95rem;
    }
}

@media (max-width: 600px) {
    .hero-slider {
        height: 300px;
        margin-bottom: 0;
    }

    .slide-content {
        bottom: 15%;
        width: 85%;
    }

    .slide-content h2 {
        font-size: 1.3rem;
    }
}

/* --- 首页全宽双栏分类展示区 --- */
.full-width-categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* 两列等宽 */
    gap: 30px;
    /* 两个板块之间的间距 */
    margin-top: 40px;
    padding-bottom: 40px;
}

/* 单个分类板块 (加上卡片背景，与上方风格统一) */
.category-block {
    background: var(--bg-card);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

/* 分类板块头部 */
.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f3f4f6;
}

.category-title {
    font-size: 1.25rem;
    color: #111827;
    margin: 0;
    position: relative;
    padding-left: 15px;
    /* 为左侧竖条留出空间 */
}

/* 标题左侧的装饰竖条 */
.category-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 18px;
    background: var(--primary-color);
    border-radius: 2px;
}

.category-more {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: color 0.2s;
}

.category-more:hover {
    color: var(--primary-color);
}

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

.category-post-list li {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed #f3f4f6;
}

.category-post-list li:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.category-post-list li a {
    color: #4b5563;
    font-size: 1rem;
    line-height: 1.6;
    transition: all 0.2s;
    display: block;
}

.category-post-list li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

/* --- 移动端适配 --- */
@media (max-width: 900px) {
    .full-width-categories {
        grid-template-columns: 1fr;
        /* 手机端变为单栏垂直排列 */
        gap: 20px;
        margin-top: 20px;
        padding-bottom: 20px;
    }

    .category-block {
        padding: 20px;
    }
}

/* --- APP 信息卡片样式 (优化版) --- */
.app-info-card {
    display: flex;
    justify-content: space-between;
    align-items: center; /* 保证左侧信息和右侧按钮垂直居中 */
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 20px 25px;
    margin-bottom: 35px;
  }
  
  .app-header {
    display: flex;
    align-items: center; /* 【核心修复】让 Logo 和右侧文字垂直居中 */
    gap: 20px;
  }
  
  .app-logo {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    object-fit: cover;
    flex-shrink: 0; /* 防止 Logo 被挤压变形 */
  }
  
  /* 包裹名称和详情的容器，让它占据剩余空间 */
  .app-meta {
    display: flex;
    flex-direction: column;
    justify-content: center; /* 确保文字块在垂直方向居中 */
    gap: 6px; /* 名称和详情之间的间距 */
  }
  
  .app-name {
    font-size: 1.4rem;
    color: #0f172a;
    margin: 0!important;
    line-height: 1.2;
  }

  
  .app-details {
    display: flex;
    gap: 15px;
    font-size: 0.9rem;
    color: #475569;
  }
  
  /* 给版本和大小中间加个小竖线分隔，更精致 */
  .app-item:not(:last-child)::after {
    content: '|';
    margin-left: 15px;
    color: #cbd5e1;
  }
  
  .app-download-btn {
    background: var(--primary-color);
    color: #fff;
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
    white-space: nowrap;
    flex-shrink: 0; /* 防止按钮在小屏幕下被挤压 */
  }
  
  .app-download-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(59, 130, 246, 0.4);
  }
  
  /* --- 移动端适配 (优化版) --- */
  @media (max-width: 768px) {
    .app-info-card {
      flex-direction: column;
      align-items: center;
      text-align: center;
      gap: 20px;
    }
    .app-header {
      flex-direction: column; /* 手机端 Logo 在上，文字在下 */
      width: 100%;
    }
    .app-details {
      justify-content: center; /* 手机端让版本信息居中 */
    }
    .app-item:not(:last-child)::after {
      content: '|'; /* 手机端保留竖线分隔 */
    }
    .app-download-btn {
      width: 100%;
      text-align: center;
      padding: 14px 0;
    }
  }

/* --- APP 截图预览集样式 --- */
.app-screenshot-gallery {
    margin-bottom: 40px;
}

.gallery-title {
    font-size: 1.2rem;
    color: #111827;
    margin-bottom: 15px;
    padding-left: 12px;
    border-left: 4px solid var(--primary-color);
}

/* 横向滑动容器 */
.gallery-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    /* 允许横向滚动 */
    padding-bottom: 15px;
    /* 为滚动条留出空间 */
    scroll-behavior: smooth;
    /* 隐藏滚动条但保留功能 (兼容主流浏览器) */
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
    /* 保证 iOS 滑动顺滑 */
}

/* 自定义滚动条样式 (Chrome/Safari) */
.gallery-scroll::-webkit-scrollbar {
    height: 6px;
}

.gallery-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.gallery-scroll img {
    height: 280px;
    /* 固定截图高度，保持整齐 */
    width: auto;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
    /* 防止图片被压缩 */
    transition: transform 0.2s;
}

.gallery-scroll img:hover {
    transform: scale(1.02);
}

/* --- 移动端适配 --- */
@media (max-width: 768px) {
    .app-info-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .app-header {
        width: 100%;
    }

    .app-download-btn {
        width: 100%;
        text-align: center;
        padding: 14px 0;
    }

    .gallery-scroll img {
        height: 220px;
        /* 手机端适当降低截图高度 */
    }
}

/* =========================
   Header Menu
========================= */

.site-header nav ul {
    display: flex;
    align-items: center;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-header nav li {
    margin: 0;
    padding: 0;
}

.site-header nav a {
    color: #374151;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all .2s ease;
}

.site-header nav a:hover {
    color: var(--primary-color);
}

.site-header .current-menu-item a {
    color: var(--primary-color);
}

/* 手机端 */

@media (max-width: 768px) {

    .site-header nav ul {
        gap: 16px;
        flex-wrap: wrap;
    }

    .site-header nav a {
        font-size: 0.9rem;
    }

}

/* =========================
   Tag Cloud
========================= */

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-item {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 999px;
    background: #f3f4f6;
    color: #4b5563;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all .2s ease;
}

.tag-item:hover {
    background: var(--primary-color);
    color: #fff;
}

/* =========================
   Archive Post Card
========================= */

.post-card.with-cover {

    display: flex !important;
    flex-direction: row !important;

    align-items: flex-start;
    justify-content: space-between;

    gap: 24px;

}

.post-card-content {

    flex: 1;
    min-width: 0;

}

.post-cover {

    width: 240px;
    height: 150px;

    flex-shrink: 0;

    overflow: hidden;
    border-radius: 16px;

    display: block;

    background: #f3f4f6;

}

.post-cover img {

    width: 100%;
    height: 100%;

    object-fit: cover;

    display: block;

    transition: transform .3s ease;

}

.post-card:hover .post-cover img {

    transform: scale(1.03);

}

.post-card-title {

    line-height: 1.5;
    margin-bottom: 14px;

}

.post-card-excerpt {

    color: #6b7280;
    line-height: 1.9;

}

/* 手机端 */

@media (max-width: 768px) {

    .post-card.with-cover {

        flex-direction: column-reverse !important;

    }

    .post-cover {

        width: 100%;
        height: 210px;

    }

}

/* =========================
   Home Categories
========================= */

.full-width-categories {

    display: grid;
    grid-template-columns: repeat(2, 1fr);

    gap: 24px;

    margin-top: 40px;

}

.category-block {

    background: #fff;

    border-radius: 18px;

    padding: 24px;

    border: 1px solid #f1f5f9;

}

.category-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 20px;

}

.category-title {

    font-size: 1.1rem;

    font-weight: 700;

}

.category-more {

    font-size: 0.9rem;

    color: var(--primary-color);

    text-decoration: none;

}

.category-post-list {

    list-style: none;

    margin: 0;

    padding: 0;

}

.category-post-list li {

    padding: 10px 0;

    border-bottom: 1px solid #f3f4f6;

}

.category-post-list li:last-child {

    border-bottom: none;

}

.category-post-list a {

    color: #374151;

    text-decoration: none;

    line-height: 1.7;

    transition: color .2s ease;

}

.category-post-list a:hover {

    color: var(--primary-color);

}

/* 手机端 */

@media (max-width: 768px) {

    .full-width-categories {

        grid-template-columns: 1fr;

    }

}