/*
Theme Name: 博界新闻
Theme URI: 
Author: bojie
Author URI: https://www.bojie.org
Description: 博界新闻主题
Version: 1.0.0
License: GPL v2 or later
Text Domain: mirage
*/

/* ========== 全局样式 ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f5f7;
    color: #1d1d1f;
    line-height: 1.5;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 8px;
}

/* ========== 导航栏 ========== */
.navbar {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 4px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* Logo 红色 - 只保留这一个 */
.logo.site-logo a {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: #ff0000;
}

/* 主菜单 */
.primary-menu {
    display: flex;
    gap: 28px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.primary-menu li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.2s;
}

.primary-menu li a:hover {
    color: #0071e3;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* ========== 双栏布局 ========== */
.home-grid {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 15px;
    margin: 10px 0;
}

/* ========== 文章卡片标题 ========== */
.section-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 32px 0 20px 0;
    padding-bottom: 8px;
    border-bottom: 2px solid #e9ecef;
}

/* ========== 左右布局卡片（博客风格） ========== */
.card-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 40px;
}

.post-card-horizontal {
    display: flex;
    gap: 15px;
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    align-items: flex-start;
}

.post-card-horizontal:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}

/* 左侧缩略图 - PC版 */
.post-thumbnail {
    flex-shrink: 0;
    width: 300px;
    overflow: hidden;
    border-radius: 16px;
    line-height: 0;
    font-size: 0;
}

.post-thumbnail a {
    display: block;
    height: 100%;
}

.post-thumbnail img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

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

/* ========== 右侧内容（PC版） ========== */
.post-content-right {
    flex: 1;
    padding: 15px 15px 15px 25px;
    word-break: break-word;
    overflow: hidden;
}

/* 文章标题 */
.post-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
    word-break: break-word;
}

.post-title a {
    text-decoration: none;
    color: #1d1d1f;
}

.post-title a:hover {
    color: #0071e3;
}

/* 文章页标题大小（单独控制） */
.single .post-title {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

/* 元数据 */
.post-meta-horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
    margin-bottom: 10px;
    font-size: 0.8rem;
    color: #8e8e93;
}

.post-meta-horizontal span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.post-meta-horizontal a {
    text-decoration: none;
    color: #8e8e93;
}

.post-meta-horizontal a:hover {
    color: #0071e3;
    text-decoration: underline;
}

/* 文章页横线样式 */
hr {
    border: none;
    border-top: 1px solid #e9ecef;
    margin: 15px 0;
}

/* 摘要 */
.post-excerpt {
    font-size: 0.85rem;
    color: #6c6c70;
    line-height: 1.5;
    margin-bottom: 12px;
}

/* 标签容器 */
.post-tags-horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

/* 首页标签基础样式 */
.tag-link {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    color: white;
}

/* 5种颜色循环显示 */
.post-tags-horizontal .tag-link:nth-child(5n+1) { background: #e74c3c; }
.post-tags-horizontal .tag-link:nth-child(5n+2) { background: #3498db; }
.post-tags-horizontal .tag-link:nth-child(5n+3) { background: #2ecc71; }
.post-tags-horizontal .tag-link:nth-child(5n+4) { background: #f39c12; }
.post-tags-horizontal .tag-link:nth-child(5n+5) { background: #9b59b6; }

.tag-link:hover {
    transform: translateY(-2px);
    filter: brightness(0.85);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 置顶标签 */
.sticky-badge {
    background: #ffab00;
    color: #1d1d1f;
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
    margin-left: 8px;
}

/* ========== 侧边栏 ========== */
.sidebar {
    position: sticky;
    top: 90px;
    align-self: start;
}

.sidebar-widget {
    background: white;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 28px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.widget-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e9ecef;
}

/* 搜索框 */
.search-form {
    display: flex;
    gap: 8px;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-size: 0.9rem;
}

.search-form button {
    background: #0071e3;
    color: white;
    border: none;
    padding: 0 18px;
    border-radius: 30px;
    cursor: pointer;
}

/* 侧边栏文章列表 */
.sidebar-widget ul {
    list-style: none;
}

.sidebar-widget li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.sidebar-widget li a {
    text-decoration: none;
    color: #333;
}

/* ========== 分页导航 ========== */
.pagination {
    text-align: center;
    margin: 10px 0 0px;
}

.pagination .page-numbers {
    display: inline-block;
    background: white;
    color: #1d1d1f;
    padding: 12px 18px;
    margin: 0 5px;
    border-radius: 16px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid rgba(0,0,0,0.05);
    min-width: 48px;
    text-align: center;
}

.pagination .page-numbers:hover {
    background: #f0f0f5;
    border-color: #ddd;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.pagination .current {
    background: linear-gradient(135deg, #0071e3 0%, #0071e3 100%);
    color: white;
    border: none;
    cursor: default;
    box-shadow: 0 4px 12px rgba(30,60,114,0.3);
}

.pagination .current:hover {
    transform: none;
    background: linear-gradient(135deg, #0071e3 0%, #0071e3 100%);
}

.pagination .prev,
.pagination .next {
    padding: 12px 24px;
    font-weight: 500;
}

.pagination .prev:hover,
.pagination .next:hover {
    background: #0071e3;
    color: white;
    border-color: #0071e3;
}

.pagination .dots {
    background: transparent;
    box-shadow: none;
    border: none;
    cursor: default;
    padding: 12px 8px;
}

.pagination .dots:hover {
    background: transparent;
    transform: none;
    border: none;
}

/* ========== 底部样式 ========== */
.footer {
    background: #111111;
    color: #ffffff;
    padding: 30px 0 20px;
    margin-top: 40px;
    text-align: center;
}

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

.footer-links {
    margin-bottom: 12px;
}

.footer-links a {
    color: #c8d8e8;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ffd700;
}

.footer-divider {
    color: #556677;
    margin: 0 12px;
}

.footer-copyright {
    font-size: 13px;
    color: #8899aa;
    margin: 0;
}

/* 移动端适配 */
@media (max-width: 600px) {
    .footer {
        padding: 20px 0 15px;
    }
    
    .footer-links a {
        font-size: 12px;
    }
    
    .footer-divider {
        margin: 0 6px;
    }
    
    .footer-copyright {
        font-size: 11px;
    }
}
/* ========== 页面专用样式 ========== */
.page-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    margin-bottom: 0;
}

.page-content-wrapper {
    padding: 40px;
}

.page-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: #1d1d1f;
    line-height: 1.3;
}

.page-content {
    font-size: 1rem;
    line-height: 1.8;
    color: #1d1d1f;
}

.page-content p {
    margin-bottom: 1.2em;
}

.page-content h2 {
    font-size: 1.3rem;
    margin: 1.5em 0 0.5em;
}

.page-content h3 {
    font-size: 1.3rem;
    margin: 1.2em 0 0.5em;
}

.page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

/* ========== 上下篇导航 ========== */
.post-nav-cards {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 30px;
    padding-top: 0;
    border-top: none;
}

.nav-card {
    flex: 1;
    background: #f8f9fa;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.nav-card:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.nav-card-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    padding: 15px;
}

.nav-thumb {
    flex-shrink: 0;
    width: 70px;
    height: 70px;
    border-radius: 12px;
    overflow: hidden;
    line-height: 0;
    font-size: 0;
}

.nav-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.nav-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.nav-label {
    font-size: 0.7rem;
    color: #8e8e93;
    letter-spacing: 1px;
}

.nav-title {
    font-size: 0.85rem;
    font-weight: 500;
    color: #1d1d1f;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-card:hover .nav-title {
    color: #0071e3;
}

/* ========== 广告横幅样式 ========== */
.ad-banner-images {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 5px;
}

.ad-image-item {
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    background: #f5f5f7;
}

.ad-image-item a {
    display: block;
    line-height: 0;
}

.ad-image-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.2s ease;
}

.ad-image-item:hover img {
    transform: scale(1.02);
}

/* 超链接小卡片 - 只保留一份 */
.link-ads-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 8px;
    margin-bottom: 10px;
}

.link-ad-card {
    border-radius: 12px;
    padding: 8px 6px;
    transition: all 0.2s ease;
    text-align: center;
    cursor: pointer;
    background: transparent;
    border: 1px dashed #ccc;
    box-shadow: none;
}

.link-ad-card:hover {
    transform: translateY(-3px);
    background: rgba(0, 0, 0, 0.02);
    border: 1px dashed #999;
}

.link-ad-card a {
    text-decoration: none;
    color: #555;
    display: block;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

/* ========== 文章页标签样式 ========== */
.post-tags {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.post-tags .tags-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1d1d1f;
    background: #f0f0f5;
    padding: 6px 14px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.post-tags a {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    color: white;
}

.post-tags a:nth-child(1) { background: #e74c3c; }
.post-tags a:nth-child(2) { background: #3498db; }
.post-tags a:nth-child(3) { background: #2ecc71; }
.post-tags a:nth-child(4) { background: #f39c12; }
.post-tags a:nth-child(5) { background: #9b59b6; }
.post-tags a:nth-child(6) { background: #1abc9c; }
.post-tags a:nth-child(7) { background: #e67e22; }
.post-tags a:nth-child(8) { background: #34495e; }
.post-tags a:nth-child(9) { background: #16a085; }
.post-tags a:nth-child(10) { background: #d35400; }

.post-tags a:hover,
.tag-link:hover {
    transform: translateY(-2px);
    filter: brightness(0.85);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ========== 面包屑导航样式 ========== */
.breadcrumb {
    font-size: 0.8rem;
    color: #8e8e93;
    margin-bottom: 15px;
    padding: 0;
    line-height: 1.4;
}

.breadcrumb a {
    text-decoration: none;
    color: #8e8e93;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: #0071e3;
    text-decoration: underline;
}

/* ========== 评论区域样式 ========== */
.comments-area {
    background: white;
    border-radius: 18px;
    padding: 5px;
    margin-top: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.comments-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e9ecef;
}

.comment-list {
    list-style: none;
    margin: 0 0 30px 0;
    padding: 0;
}

.comment {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.comment:last-child {
    border-bottom: none;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

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

.comment-author .fn {
    font-weight: 600;
    color: #1d1d1f;
    font-size: 0.95rem;
}

.comment-meta {
    font-size: 0.7rem;
    color: #8e8e93;
    margin-left: auto;
}

.comment-content {
    padding-left: 52px;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #6c6c70;
}

.comment-reply-link {
    font-size: 0.7rem;
    text-decoration: none;
    color: #0071e3;
    margin-left: 52px;
    display: inline-block;
    margin-top: 8px;
}

.comment-reply-link:hover {
    text-decoration: underline;
}

.comment-respond {
    margin-top: 25px;
}

.comment-reply-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.comment-form-comment {
    margin-bottom: 20px;
}

.comment-form-comment label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.comment-form-comment textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 12px;
    font-size: 0.9rem;
    font-family: inherit;
    resize: vertical;
}

.comment-form-comment textarea:focus {
    outline: none;
    border-color: #0071e3;
}

.comment-form-author,
.comment-form-email,
.comment-form-url {
    margin-bottom: 15px;
}

.comment-form-author input,
.comment-form-email input,
.comment-form-url input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.85rem;
}

.comment-form-author input:focus,
.comment-form-email input:focus,
.comment-form-url input:focus {
    outline: none;
    border-color: #0071e3;
}

.submit-btn {
    background: #0071e3;
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
    margin-top: 5px;
}

.submit-btn:hover {
    background: #005bb5;
    transform: translateY(-2px);
}

.comment-captcha {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
}

.captcha-image {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.captcha-image img {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: white;
}

.captcha-refresh {
    background: #f0f0f5;
    border: none;
    padding: 5px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.7rem;
    color: #555;
    transition: all 0.2s;
}

.captcha-refresh:hover {
    background: #0071e3;
    color: white;
}

.comment-captcha label {
    display: block;
    font-size: 0.8rem;
    font-weight: 500;
    color: #1d1d1f;
    margin-bottom: 6px;
}

.comment-captcha input {
    width: 150px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
}

/* ========== 返回顶部按钮 ========== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: #0071e3;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 20px;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.back-to-top.show {
    display: flex;
}

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

/* ========== 文章图片边距 ========== */
.wp-block-image img,
.wp-block-image,
.page-content img,
article img {
    margin-top: 5px !important;
    margin-bottom: 5px !important;
}

/* ========== 正文阅读优化 ========== */
.post-content {
    font-size: 16px;
    line-height: 1.9;
    color: #1e1e1e;
}
.post-content p {
    margin-bottom: 1.2em;
}
.post-content h2 {
    font-size: 16px;
    margin: 5px 0 5px;
    padding-left: 12px;
    border-left: 4px solid #3e74f8;
}
.post-content h3 {
    font-size: 15px;
    margin: 24px 0 12px;
}
.post-content a:not(:has(img)) {
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
    text-decoration-style: dashed !important;
    color: #FF0000 !important;
    border: none !important;
    padding: 0 !important;
    display: inline !important;
}

/* ===== 最近10篇文章推荐 ===== */
.post-recent-list {
    margin: 40px 0 20px;
    text-align: left;
}

.recent-title {
    font-size: 18px;
    color: #333;
    margin: 10px 0 20px;
    font-weight: 600;
    text-align: left;
}

.recent-items {
    max-width: 100%;
    margin: 0;
}

.recent-item {
    padding: 10px 0;
    border-bottom: 1px dashed #ddd;
}

.recent-item a {
    text-decoration: none;
    color: #333;
    font-size: 15px;
    transition: color 0.2s;
    display: inline-block;
}

.recent-item a:hover {
    color: #FF0000;
    text-decoration: underline;
}

/* ========== 归档页面标题样式 ========== */
.archive-header {
    margin: 20px 0 30px 0;
}

.archive-tag-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.archive-title {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.archive-tag,
.archive-category,
.archive-author,
.archive-date,
.archive-other {
    display: inline-block;
    padding: 8px 24px;
    border-radius: 50px;
    color: #ffffff !important;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    white-space: nowrap;
}

.archive-tag:hover,
.archive-category:hover,
.archive-author:hover,
.archive-date:hover,
.archive-other:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.archive-count {
    font-size: 16px;
    font-weight: 400;
    color: #6c757d;
    background: #f1f3f5;
    padding: 6px 18px;
    border-radius: 50px;
    border: 2px solid #e9ecef;
    white-space: nowrap;
}

/* ========== 响应式（手机版） ========== */
@media (max-width: 768px) {
    /* 导航栏 */
    .menu-toggle {
        display: block;
    }
    
    .primary-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 16px;
        padding: 20px 0;
        background: white;
    }
    
    .primary-menu.active {
        display: flex;
    }
    
    /* 布局 */
    .home-grid,
    .single-grid {
        grid-template-columns: 1fr;
    }
    
    .home-grid {
        grid-template-columns: 1fr !important;
    }
    
    .content-area,
    .main-content {
        width: 100% !important;
    }
    
    .sidebar {
        display: block !important;
        margin-top: 0px;
        padding-top: 0px;
        border-top: none;
    }
    
    /* 文章卡片 - 手机版 */
    .post-card-horizontal {
        gap: 14px;
        align-items: flex-start;
    }
    
    .card-list {
        gap: 10px;
    }
    
    .post-thumbnail {
        width: 120px;
        border-radius: 12px;
        line-height: 0;
        font-size: 0;
    }
    
    .post-thumbnail img {
        height: 85px;
        width: 120px;
        object-fit: cover;
        display: block;
    }
    
    .post-content-right {
        padding: 8px 8px 8px 8px;
    }
    
    .post-title {
        font-size: 1rem;
        margin-bottom: 6px;
        line-height: 1.4;
        font-weight: 600;
    }
    
    /* 手机版：首页和归档页面隐藏元数据 */
    .home .post-meta-horizontal,
    .archive .post-meta-horizontal,
    .tag .post-meta-horizontal,
    .category .post-meta-horizontal,
    .author .post-meta-horizontal,
    .date .post-meta-horizontal,
    .search .post-meta-horizontal {
        display: none;
    }
    
    /* 手机版：文章页显示元数据 */
    .single .post-meta-horizontal {
        display: flex;
        gap: 12px;
        font-size: 0.75rem;
        margin-top: 8px;
        margin-bottom: 12px;
    }
    
    .post-excerpt {
        display: block;
        font-size: 0.9rem;
        line-height: 1.45;
        margin-top: 5px;
        margin-bottom: 0;
        color: #6c6c70;
    }
    
    .post-tags-horizontal {
        display: none;
    }
    
    /* 分页手机版 */
    .pagination .page-numbers {
        padding: 8px 12px;
        margin: 0 3px;
        font-size: 0.8rem;
        min-width: 38px;
    }
    
    .pagination .prev,
    .pagination .next {
        padding: 8px 14px;
    }
    
    /* 链接卡片 - 手机版 */
    .link-ads-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 4px;
    }
    
    .link-ad-card {
        padding: 8px 3px;
    }
    
    .link-ad-card a {
        font-size: 0.7rem;
    }
    
    .breadcrumb {
        font-size: 0.7rem;
        margin-bottom: 12px;
        white-space: normal;
        word-break: break-word;
    }
    
    /* 评论区域手机版 */
    .comments-area {
        padding: 5px;
        margin-top: 5px;
    }
    
    .comment-content {
        padding-left: 40px;
        font-size: 0.85rem;
    }
    
    .comment-author .avatar {
        width: 32px;
        height: 32px;
    }
    
    .comment-author .fn {
        font-size: 0.85rem;
    }
    
    .comment-meta {
        font-size: 0.65rem;
    }
    
    .comment-form-comment textarea {
        font-size: 0.85rem;
        padding: 10px;
    }
    
    .submit-btn {
        padding: 8px 20px;
        font-size: 0.8rem;
    }
    
    .comment-captcha {
        padding: 12px;
    }
    
    .comment-captcha input {
        width: 120px;
        padding: 6px 10px;
        font-size: 0.8rem;
    }
    
    /* 页面样式手机版 */
    .page-content-wrapper {
        padding: 24px;
    }
    
    .page-title {
        font-size: 1.5rem;
        margin-bottom: 16px;
    }
    
    /* 上下篇导航 */
    .post-nav-cards {
        flex-direction: column;
        gap: 12px;
    }
    
    /* 归档标题手机版 */
    .archive-header {
        margin: 15px 0 20px 0;
    }
    
    .archive-title {
        font-size: 18px;
        flex-wrap: nowrap;
        gap: 10px;
    }
    
    .archive-tag,
    .archive-category,
    .archive-author,
    .archive-date,
    .archive-other {
        font-size: 16px;
        padding: 6px 16px;
        white-space: nowrap;
    }
    
    .archive-count {
        font-size: 13px;
        padding: 4px 12px;
        white-space: nowrap;
    }
}

/* ========== 超小手机 ========== */
@media (max-width: 480px) {
    .link-ads-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 4px;
    }
    
    .link-ad-card {
        padding: 6px 2px;
    }
    
    .link-ad-card a {
        font-size: 0.8rem;
    }
    
    .post-thumbnail {
        width: 130px;
    }
    
    .post-thumbnail img {
        height: 91px;
        width: 130px;
    }
    
    .post-title {
        font-size: 0.95rem;
    }
    
    .post-excerpt {
        font-size: 0.85rem;
    }
}

/* 暗色模式适配（如果使用） */
@media (prefers-color-scheme: dark) {
    .archive-count {
        background: #2d2d2d;
        color: #adb5bd;
        border-color: #404040;
    }
}
/* ========== 移动版侧边栏 - 只显示搜索框 ========== */
@media (max-width: 768px) {
    /* 侧边栏整体样式 */
    .sidebar {
        display: block !important;
        margin-top: 1px;
    }
    
    /* 隐藏所有侧边栏小工具，除了搜索框 */
    .sidebar .sidebar-widget:not(:first-child) {
        display: none !important;
    }
    
    /* 搜索框保留并美化 */
    .sidebar .sidebar-widget:first-child {
        display: block !important;
        background: #fff;
        border-radius: 12px;
        padding: 15px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        margin-bottom: 0;
    }
    
    .sidebar .sidebar-widget:first-child .widget-title {
        font-size: 15px;
        margin-bottom: 12px;
        padding-bottom: 8px;
    }
    
    .sidebar .sidebar-widget:first-child .search-form input[type="search"] {
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .sidebar .sidebar-widget:first-child .search-form button {
        padding: 8px 14px;
        font-size: 13px;
    }
}



/* ========== Logo 图片样式 ========== */
.site-logo-img {
    height: 50px;  /* 根据 360*100 比例，显示高度 */
    width: auto;
    display: block;
    vertical-align: middle;

}

/* ========== 手机版 ========== */
@media (max-width: 768px) {
    .site-logo-img {
        height: 50px;

    }
}

/* ========== 超小手机 ========== */
@media (max-width: 480px) {
    .site-logo-img {
        height: 40px;

    }
}
/* ========== 每日汇率 ========== */
.daily-exchange-rate {
    background: transparent;
    border-radius: 8px;
    padding: 4px 0;
    margin: 10px 0;
    border: 1px dashed #d0d5dd;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.exchange-list {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
}

.exchange-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    flex: 1;
    justify-content: center;
    min-width: 140px;
    border-right: 1px dashed #d0d5dd;
}

.exchange-item:last-child {
    border-right: none;
}

/* 图片样式 - 替换原来的 .exchange-flag */
.exchange-flag-img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: block;
    border-radius: 50%;
    object-fit: contain;
}

.exchange-pair {
    font-size: 13px;
    color: #8899aa;
    white-space: nowrap;
}

.exchange-rate {
    font-size: 15px;
    font-weight: 700;
    color: #e74c3c;
    font-family: 'Courier New', monospace;
    background: transparent;
    padding: 0 6px;
    border-radius: 0;
    flex-shrink: 0;
}

/* 响应式 - 移动端 */
@media (max-width: 600px) {
    .exchange-list {
        flex-direction: column;
        gap: 0;
    }

    .exchange-item {
        width: 100%;
        padding: 6px 12px;
        justify-content: flex-start;
        border-right: none;
        border-bottom: 1px dashed #d0d5dd;
    }

    .exchange-item:last-child {
        border-bottom: none;
    }

    .exchange-pair {
        font-size: 12px;
    }

    .exchange-rate {
        font-size: 14px;
        padding: 0 4px;
    }

    .exchange-flag-img {
        width: 20px;
        height: 20px;
    }
}