/**
 * 资源线报数据网盘文本列表分享 - 主样式文件
 * Author: 阿福
 * Version: 1.0
 */

/* ====================
   CSS 变量定义
   ==================== */
:root {
    --primary-color: #1890ff;
    --primary-hover: #40a9ff;
    --primary-light: #e6f7ff;
    --text-primary: #262626;
    --text-secondary: #595959;
    --text-muted: #8c8c8c;
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-tertiary: #fafafa;
    --border-color: #e8e8e8;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --transition: all 0.3s ease;
}

/* 主题配色 */
.theme-green {
    --primary-color: #52c41a;
    --primary-hover: #73d13d;
    --primary-light: #f6ffed;
}

.theme-orange {
    --primary-color: #fa8c16;
    --primary-hover: #ffa940;
    --primary-light: #fff7e6;
}

.theme-purple {
    --primary-color: #722ed1;
    --primary-hover: #9254de;
    --primary-light: #f9f0ff;
}

/* ====================
   基础重置
   ==================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

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

img {
    max-width: 100%;
    height: auto;
    vertical-align: middle;
}

ul, ol {
    list-style: none;
}

input, textarea, button {
    font-family: inherit;
    font-size: inherit;
}

/* ====================
   图标字体
   ==================== */
[class^="icon-"]::before {
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
}

.icon-search::before { content: "🔍"; }
.icon-pin::before { content: "📌"; }
.icon-list::before { content: "📋"; }
.icon-time::before { content: "🕐"; }
.icon-eye::before { content: "👁"; }
.icon-comment::before { content: "💬"; }
.icon-arrow-right::before { content: "→"; }
.icon-arrow-left::before { content: "←"; }
.icon-arrow-up::before { content: "↑"; }
.icon-home::before { content: "🏠"; }
.icon-folder::before { content: "📁"; }
.icon-tag::before { content: "🏷"; }
.icon-link::before { content: "🔗"; }
.icon-user::before { content: "👤"; }
.icon-comments::before { content: "💬"; }
.icon-inbox::before { content: "📥"; }

/* ====================
   布局容器
   ==================== */
.container {
    max-width: 1230px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 全宽内容区 */
.main-content.full-width {
    width: 100%;
    max-width: 1230px;
    margin: 0 auto;
}

/* 文章列表宽度 */
.post-list-section {
    max-width: 900px;
    margin: 0 auto;
}

.main-wrapper {
    padding: 20px 0;
}

.content-wrapper {
    display: flex;
    gap: 20px;
}

.main-content {
    flex: 1;
    min-width: 0;
}

.sidebar {
    width: 320px;
    flex-shrink: 0;
}

/* ====================
   头部导航
   ==================== */
.site-header {
    background: var(--bg-primary);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 15px 0;
}

/* 顶部随页面滚动 */
.site-header.header-scroll {
    position: relative;
    top: auto;
}

.site-header .container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 顶部行：LOGO和搜索框 */
.header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* Logo区域 */
.logo-section {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo-img {
    width: 180px;
    height: 40px;
    object-fit: contain;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

/* LOGO水波特效 - 扩散效果（从中心向外） */
.logo-link.logo-wave-spread {
    position: relative;
    overflow: hidden;
}

.logo-link.logo-wave-spread::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: logoWaveSpread 2.5s ease-out infinite;
}

@keyframes logoWaveSpread {
    0% {
        width: 0;
        height: 0;
        opacity: 0.8;
    }
    100% {
        width: 200%;
        height: 200%;
        opacity: 0;
    }
}

/* LOGO水波特效 - 一侧效果（从一侧到另一侧） */
.logo-link.logo-wave-side {
    position: relative;
    overflow: hidden;
}

.logo-link.logo-wave-side::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        rgba(255, 255, 255, 0.5),
        rgba(255, 255, 255, 0.3),
        transparent
    );
    animation: logoWaveSide 2.5s ease-in-out infinite;
}

@keyframes logoWaveSide {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 200%;
    }
}

/* 搜索框 - 居中显示 */
.header-search {
    flex: 1;
    max-width: 400px;
    margin-left: auto;
    margin-right: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.header-search form {
    display: flex;
    width: 100%;
    align-items: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    overflow: hidden;
    transition: var(--transition);
}

.header-search form:focus-within {
    border-color: #2c3e50;
    background: var(--bg-primary);
}

.header-search input {
    flex: 1;
    width: 100%;
    padding: 12px 15px 12px 20px;
    border: none;
    background: transparent;
    font-size: 14px;
    outline: none;
}

.header-search input::placeholder {
    color: var(--text-secondary);
}

.header-search button {
    background: transparent;
    border: none;
    border-left: 1px solid var(--border-color);
    cursor: pointer;
    padding: 8px 15px;
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-search button:hover {
    color: var(--primary-color);
}

.header-search button svg {
    display: block;
}

/* 导航菜单 */
.main-nav {
    width: 100%;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-list a {
    color: var(--text-primary);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #2c3e50;
    transition: var(--transition);
}

.nav-list a:hover,
.nav-list a.current {
    color: #2c3e50;
}

.nav-list a:hover::after,
.nav-list a.current::after {
    width: 100%;
}

/* 移动端菜单按钮 - 隐藏 */
.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    position: relative;
}

.mobile-menu-btn .menu-icon {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    position: relative;
    transition: all 0.3s;
}

.mobile-menu-btn .menu-icon::before,
.mobile-menu-btn .menu-icon::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s;
}

.mobile-menu-btn .menu-icon::before {
    top: -7px;
}

.mobile-menu-btn .menu-icon::after {
    top: 7px;
}

/* 菜单按钮展开状态 */
.mobile-menu-btn.active .menu-icon {
    background: transparent;
}

.mobile-menu-btn.active .menu-icon::before {
    top: 0;
    transform: rotate(45deg);
}

.mobile-menu-btn.active .menu-icon::after {
    top: 0;
    transform: rotate(-45deg);
}

/* 移动端导航 */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
}

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

.mobile-nav-inner {
    position: absolute;
    top: 110px;
    right: 15px;
    left: auto;
    width: 33.333%;
    min-width: 160px;
    max-width: 220px;
    background: #f5f5f5;
    padding: 15px;
    border-radius: 12px;
    max-height: calc(100vh - 130px);
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 10000;
}

.mobile-search {
    margin-bottom: 15px;
}

.mobile-search form {
    display: flex;
    width: 100%;
    align-items: center;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.mobile-search input {
    flex: 1;
    width: 100%;
    padding: 10px 12px;
    border: none;
    background: transparent;
    font-size: 13px;
    outline: none;
}

.mobile-search button {
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    padding: 8px 15px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 50px;
    margin: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-search button svg {
    display: block;
}

.mobile-nav-blank {
    height: 8px;
    margin-bottom: 7px;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-nav-list li {
    list-style: none;
}

.mobile-nav-list a {
    display: block;
    padding: 10px 12px;
    color: #333;
    background: #fff;
    border-radius: 8px;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.mobile-nav-list a:hover {
    background: #2c3e50;
    color: #fff;
    box-shadow: 0 2px 8px rgba(44, 62, 80, 0.3);
}

/* ====================
   首页TAB导航
   ==================== */
.homepage-tabs {
    margin-bottom: 10px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 0;
}

.tab-nav {
    display: flex;
    gap: 10px;
    flex-wrap: nowrap;
    padding: 1px;
    padding-bottom: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #c1c1c1 transparent;
    -ms-overflow-style: scrollbar;
    cursor: grab;
}

.tab-nav:active {
    cursor: grabbing;
}

/* Webkit滚动条样式 - 始终显示 */
.tab-nav::-webkit-scrollbar {
    display: block;
    height: 6px;
}

.tab-nav::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.tab-nav::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.tab-nav::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

.tab-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    background: var(--bg-primary);
    border: 1px dashed var(--border-color);
    border-radius: var(--radius-md);
    font-size: 14px;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    white-space: nowrap;
    flex: 1 1 auto;
    min-width: 100px;
    max-width: 200px;
    box-sizing: border-box;
}

.tab-item:hover {
    background: var(--bg-tertiary);
    border-color: #2c3e50;
    color: #2c3e50;
}

.tab-item.active {
    background: #2c3e50;
    color: #fff;
    border: 1px solid #2c3e50;
}

/* 电脑端显示桌面文字，隐藏手机文字 */
.tab-text-desktop {
    display: inline;
}

.tab-text-mobile {
    display: none;
}

/* 手机端TAB导航适配 - 五个TAB项一行显示，文字双排，超过5个可滚动 */
@media (max-width: 768px) {
    .homepage-tabs {
        padding: 0;
        margin-bottom: 15px;
        overflow: hidden;
        position: relative;
    }

    /* 滑动指示 - 右侧渐变阴影 */
    .homepage-tabs::after {
        content: '';
        position: absolute;
        right: 0;
        top: 0;
        bottom: 0;
        width: 30px;
        background: linear-gradient(to right, transparent, rgba(255,255,255,0.9));
        pointer-events: none;
        z-index: 2;
    }

    /* 滑动指示图标 */
    .homepage-tabs::before {
        content: '‹';
        position: absolute;
        left: 5px;
        top: 50%;
        transform: translateY(-50%);
        font-size: 18px;
        color: var(--primary-color);
        z-index: 3;
        pointer-events: none;
        animation: slideHint 1.5s ease-in-out infinite;
    }

    @keyframes slideHint {
        0%, 100% { transform: translateY(-50%) translateX(0); opacity: 0.6; }
        50% { transform: translateY(-50%) translateX(-3px); opacity: 1; }
    }

    /* TAB数量少于等于5个时不显示滑动指示且禁用滑动，TAB自适应宽度 */
    .homepage-tabs.tabs-no-scroll::before,
    .homepage-tabs.tabs-no-scroll::after {
        display: none;
    }

    .homepage-tabs.tabs-no-scroll .tab-nav {
        overflow-x: visible;
        -webkit-overflow-scrolling: auto;
    }

    .homepage-tabs.tabs-no-scroll .tab-item {
        flex: 1 1 auto;
        min-width: auto;
        width: auto;
    }

    .tab-nav {
        display: flex;
        flex-direction: row;
        gap: 4px;
        padding: 1px;
        width: 100%;
        box-sizing: border-box;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .tab-nav::-webkit-scrollbar {
        display: none;
    }

    .tab-item {
        padding: 4px 2px;
        font-size: 13px;
        min-width: 20%;
        flex: 0 0 20%;
        width: 20%;
        text-align: center;
        line-height: 1.3;
        white-space: normal;
        box-sizing: border-box;
    }

    /* 手机端显示手机文字，隐藏桌面文字 */
    .tab-text-desktop {
        display: none;
    }

    .tab-text-mobile {
        display: inline;
    }
}

/* ====================
   广告位
   ==================== */
.ad-header {
    background: var(--bg-primary);
    padding: 15px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.ad-post-bottom {
    margin: 30px 0;
    padding: 20px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
}

/* ====================
   区块标题
   ==================== */
.section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title i {
    color: var(--primary-color);
}

/* ====================
   置顶文章区域
   ==================== */
.istop-section {
    background: var(--bg-primary);
    padding: 20px;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

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

.istop-item {
    position: relative;
}

.istop-link {
    display: block;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--bg-tertiary);
    transition: var(--transition);
}

.istop-link:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.istop-thumb {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.istop-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.istop-link:hover .istop-thumb img {
    transform: scale(1.05);
}

.istop-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: linear-gradient(135deg, #ff4d4f, #ff7875);
    color: white;
    padding: 4px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
}

.istop-info {
    padding: 15px;
}

.istop-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    margin-bottom: 10px;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.istop-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--text-muted);
}

/* ====================
   文章列表
   ==================== */
.post-list-section {
    background: var(--bg-primary);
    padding: 15px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

/* 横向排列的文章列表 */
.post-list {
    display: flex;
    flex-direction: column;
}

.post-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.post-item:hover {
    background: var(--bg-tertiary);
    margin: 0 -15px;
    padding-left: 15px;
    padding-right: 15px;
    border-radius: var(--radius-sm);
}

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

/* 缩略图 */
.post-thumb {
    flex-shrink: 0;
    width: 210px;
    height: 140px;
    overflow: hidden;
    border-radius: var(--radius-md);
}

.post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.post-item:hover .post-thumb img {
    transform: scale(1.05);
}

/* 文章内容容器 */
.post-content-wrapper {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* 文章简介 */
.post-content-wrapper .post-excerpt {
    font-size: 12px !important;
    color: #999 !important;
    line-height: 1.8 !important;
    margin: 5px 0 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    max-height: 43px !important;
    white-space: normal !important;
    text-overflow: ellipsis !important;
}

.post-content-wrapper .post-excerpt p {
    font-size: 12px !important;
    color: #999 !important;
    line-height: 1.8 !important;
    margin: 0 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    max-height: 43px !important;
    white-space: normal !important;
    text-overflow: ellipsis !important;
}

/* 文章元信息 */
.post-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: auto;
}

/* 作者信息 */
.author-info {
    display: flex;
    align-items: center;
    gap: 6px;
}

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

.author-name {
    font-size: 12px;
    color: var(--text-secondary);
}

/* 阅读数和点赞数 */
.post-views,
.post-likes {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 手机端适配 */
@media (max-width: 768px) {
    .post-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        padding: 12px 0;
    }
    
    .post-thumb {
        width: 100%;
        height: 180px;
    }
    
    .post-content-wrapper {
        width: 100%;
    }
    
    .post-meta {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .post-excerpt {
        -webkit-line-clamp: 3;
    }
}

/* 小屏幕手机适配 */
@media (max-width: 480px) {
    .post-thumb {
        height: 150px;
    }
    
    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}

/* 分类标签 */
.post-cate-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 500;
}

/* 文章分类和标题容器 */
.post-header {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.post-header .post-title {
    flex: 1;
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
}

.post-cate-badge {
    color: white;
    flex-shrink: 0;
    min-width: 60px;
    text-align: center;
}

.post-list .post-cate-badge a {
    color: white;
    text-decoration: none;
}

.post-cate-badge:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* 置顶图标 */
.sticky-icon {
    display: inline-block;
    vertical-align: -2px;
    margin-right: 2px;
    margin-left: 2px;
    flex-shrink: 0;
    width: 13px;
    height: 13px;
}

/* 文章标题 */
.post-item-row .post-title {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    margin: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.post-item-row .post-title a {
    color: var(--text-primary);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

/* 置顶文章样式 */
.post-item-istop {
    background: linear-gradient(135deg, #fff9f0 0%, #fff5e6 100%);
}

.post-item-istop:hover {
    background: linear-gradient(135deg, #fff0e0 0%, #ffe8d6 100%);
}

.istop-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: #ff4d4f;
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: 4px;
    margin-right: 8px;
    flex-shrink: 0;
}

.istop-badge svg {
    flex-shrink: 0;
}

/* 置顶图标 */
.istop-icon {
    margin-right: 4px;
    vertical-align: text-bottom;
}

/* 日期 */
.post-date {
    font-size: 13px;
    color: var(--text-muted);
    flex-shrink: 0;
    font-family: 'Consolas', monospace;
}

/* 今日更新的文章时间显示为红色 */
.post-date.today {
    color: #ff4d4f;
    font-weight: 600;
}

/* 旧的时间线样式保留（用于其他页面） */
.post-timeline {
    position: relative;
}

.post-timeline::before {
    content: '';
    position: absolute;
    left: 35px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.post-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    position: relative;
}

.post-item:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
}

.post-time-badge {
    width: 70px;
    height: 70px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    border: 2px solid var(--border-color);
}

.post-month {
    font-size: 12px;
    color: var(--text-muted);
}

.post-day {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.post-content {
    flex: 1;
    min-width: 0;
}

.post-header {
    margin-bottom: 10px;
}

.post-category {
    display: inline-block;
    background: #2c3e50;
    color: #fff;
    padding: 2px 10px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    margin-bottom: 8px;
}

.post-category a {
    color: #fff;
}

.post-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

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

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

.post-excerpt {
    color: var(--text-secondary);
    margin-bottom: 12px;
    line-height: 1.8;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    font-size: 13px;
    color: var(--text-muted);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-item a {
    color: var(--text-muted);
}

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

.meta-icon {
    display: inline-block;
    vertical-align: -2px;
    width: 14px;
    height: 14px;
}

.read-more {
    margin-left: auto;
    color: var(--primary-color);
    font-weight: 500;
}

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

/* ====================
   分页
   ==================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.pagination a {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.pagination a:hover {
    background: #2c3e50;
    color: white;
    border-color: #2c3e50;
}

.pagination span.current {
    background: #2c3e50;
    color: white;
    border-color: #2c3e50;
    font-weight: 600;
}

/* 首页、尾页、下一页按钮样式 */
.pagination a.page-first,
.pagination a.page-last,
.pagination a.page-next {
    background: var(--bg-tertiary);
    font-weight: 500;
}

.pagination a.page-first:hover,
.pagination a.page-last:hover,
.pagination a.page-next:hover {
    background: var(--primary-color);
    color: white;
}

/* 省略号样式 */
.pagination span.ellipsis {
    border: none;
    background: transparent;
    color: var(--text-muted);
}

/* ====================
   侧边栏
   ==================== */
.widget {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 标签云 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud a {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 13px;
    transition: var(--transition);
}

.tag-cloud a:hover {
    background: var(--primary-color);
    color: white;
}

/* 文章列表 */
.post-list li {
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-color);
}

.post-list li:last-child {
    border-bottom: none;
}

.post-list a {
    display: block;
    color: var(--text-primary);
    line-height: 1.5;
}

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

.post-time {
    font-size: 12px;
    color: var(--text-muted);
    margin-right: 8px;
}

/* 分类列表 */
.category-list li,
.archive-list li {
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

.category-list li:last-child,
.archive-list li:last-child {
    border-bottom: none;
}

.category-list a,
.archive-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
}

.category-list a:hover,
.archive-list a:hover {
    color: var(--primary-color);
}

.cate-count,
.archive-count {
    font-size: 12px;
    color: var(--text-muted);
}

/* ====================
   文章详情页
   ==================== */
.post-detail,
.page-detail {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 15px 30px 30px;
    box-shadow: var(--shadow-sm);
}

.post-breadcrumb,
.page-breadcrumb {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.post-breadcrumb a,
.page-breadcrumb a {
    color: var(--text-muted);
    font-size: 13px;
    transition: var(--transition);
}

.post-breadcrumb a:hover,
.page-breadcrumb a:hover {
    color: var(--primary-color);
}

.post-breadcrumb .breadcrumb-cate,
.page-breadcrumb .breadcrumb-cate {
    color: var(--primary-color);
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
}

.post-breadcrumb .breadcrumb-cate:hover,
.page-breadcrumb .breadcrumb-cate:hover {
    background: #2c3e50;
    color: white;
}

.separator {
    margin: 0 8px;
}

.post-detail .post-title,
.page-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 15px;
}

.post-detail .post-meta {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 25px;
}

/* 文章分类 */
.post-categories {
    margin-bottom: 15px;
    font-size: 14px;
}

.cate-label {
    color: var(--text-secondary);
    margin-right: 5px;
}

.cate-link {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: var(--radius-sm);
    font-size: 13px;
    transition: var(--transition);
}

.cate-link:hover {
    background: var(--primary-color);
    color: white;
}

.cate-separator {
    margin: 0 8px;
    color: var(--text-muted);
}

.post-content,
.page-content {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-primary);
}

.post-content h2,
.post-content h3,
.post-content h4,
.page-content h2,
.page-content h3,
.page-content h4 {
    margin: 30px 0 15px;
    font-weight: 600;
}

.post-content h2,
.page-content h2 {
    font-size: 22px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.post-content h3,
.page-content h3 {
    font-size: 18px;
}

.post-content p,
.page-content p {
    margin-bottom: 15px;
}

.post-content img,
.page-content img {
    border-radius: var(--radius-md);
    margin: 15px 0;
}

.post-content ul,
.post-content ol,
.page-content ul,
.page-content ol {
    margin: 15px 0;
    padding-left: 25px;
}

.post-content ul li,
.page-content ul li {
    list-style: disc;
    margin-bottom: 8px;
}

.post-content ol li,
.page-content ol li {
    list-style: decimal;
    margin-bottom: 8px;
}

.post-content blockquote,
.page-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 15px 20px;
    margin: 20px 0;
    background: var(--bg-tertiary);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.post-content code,
.page-content code {
    background: var(--bg-tertiary);
    padding: 2px 6px;
    border-radius: var(--radius-sm);
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
}

.post-content pre,
.page-content pre {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 20px;
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin: 20px 0;
}

.post-content pre code,
.page-content pre code {
    background: none;
    padding: 0;
}

/* 文章标签 */
.post-tags {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.tags-label {
    color: var(--text-secondary);
    margin-right: 10px;
}

.tag-link {
    display: inline-block;
    padding: 4px 12px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    margin-right: 8px;
    margin-bottom: 8px;
    font-size: 13px;
}

.tag-link:hover {
    background: var(--primary-color);
    color: white;
}

/* 文章导航 */
.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin: 30px 0;
    padding: 20px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-md);
}

.nav-prev,
.nav-next {
    flex: 1;
}

.nav-next {
    text-align: right;
}

.nav-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 5px;
}

.nav-prev a,
.nav-next a {
    color: var(--text-primary);
    font-weight: 500;
}

.nav-prev a:hover,
.nav-next a:hover {
    background: #2c3e50;
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
}

.nav-empty {
    color: var(--text-muted);
}

/* 相关文章 */
.related-posts {
    margin: 30px 0;
}

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

.related-item a {
    display: block;
}

.related-thumb {
    aspect-ratio: 16/10;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 10px;
}

.related-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.related-item:hover .related-thumb img {
    transform: scale(1.05);
}

.related-title {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--text-primary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ====================
   评论区
   ==================== */
.comments-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.comments-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
}

.comments-count {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: normal;
}

.comments-list {
    margin-bottom: 30px;
}

.comment-item {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-body {
    flex: 1;
}

.comment-header {
    margin-bottom: 8px;
}

.comment-author {
    font-weight: 600;
    color: var(--text-primary);
    margin-right: 10px;
}

.comment-time {
    font-size: 12px;
    color: var(--text-muted);
}

.comment-content {
    color: var(--text-secondary);
    line-height: 1.6;
}

.comment-actions {
    margin-top: 10px;
}

.comment-actions a {
    font-size: 13px;
    color: var(--primary-color);
}

.comments-empty {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

/* 评论表单 */
.comment-form-wrapper {
    background: var(--bg-tertiary);
    padding: 25px;
    border-radius: var(--radius-md);
}

.form-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: #2c3e50;
    color: white;
}

.btn-primary:hover {
    background: #2c3e50;
    color: white;
}

.btn-secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--border-color);
}

/* ====================
   分类页
   ==================== */
.category-header,
.tag-header,
.search-header {
    background: var(--bg-primary);
    padding: 25px 30px;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.category-title,
.tag-title,
.search-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
}

.category-desc {
    color: var(--text-secondary);
    margin-bottom: 10px;
}

.category-meta,
.tag-meta,
.search-info {
    color: var(--text-muted);
    font-size: 14px;
}

.sub-categories {
    background: var(--bg-primary);
    padding: 20px;
    border-radius: var(--radius-lg);
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.sub-cate-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.sub-cate-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sub-cate-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 8px 16px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    transition: var(--transition);
}

.sub-cate-item:hover {
    background: var(--primary-color);
    color: white;
}

.sub-cate-count {
    font-size: 12px;
    opacity: 0.8;
}

/* ====================
   404页面
   ==================== */
.error-404 {
    background: var(--bg-primary);
    padding: 60px 40px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.error-icon {
    margin-bottom: 20px;
}

.error-code {
    font-size: 120px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    opacity: 0.3;
}

.error-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 10px;
}

.error-desc {
    color: var(--text-secondary);
    margin-bottom: 25px;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
}

.search-empty {
    text-align: center;
    padding: 60px 40px;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.3;
}

.search-empty h3 {
    font-size: 20px;
    margin-bottom: 10px;
}

.search-empty p {
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.search-form form {
    display: flex;
    gap: 10px;
    max-width: 400px;
    margin: 0 auto;
}

.search-form input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.search-form button {
    padding: 12px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
}

/* ====================
   页脚
   ==================== */
.site-footer {
    background: var(--bg-primary);
    padding: 40px 0 20px;
    margin-top: 40px;
    border-top: 1px solid var(--border-color);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-info {
    text-align: center;
    color: var(--text-muted);
    font-size: 13px;
}

.footer-info p {
    margin-bottom: 8px;
}

.footer-info p:last-child {
    margin-bottom: 0;
}

.footer-copyright {
    display: inline;
}

.footer-icp {
    display: block;
}

.footer-icp .icp-icon {
    display: inline-block;
    vertical-align: -2px;
    margin-right: 4px;
    fill: currentColor;
    width: 13px;
    height: 13px;
}

.footer-links {
    text-align: center;
}

.footer-links h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-links ul {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-links a {
    color: var(--text-secondary);
}

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

.footer-info a {
    color: var(--text-secondary);
}

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

/* PC端和移动端友情链接切换 */
.footer-links-mobile {
    display: none;
}

/* PC端友情链接样式 - 与移动端一致，单行显示 */
.footer-links-pc {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
}

.footer-links-pc h4 {
    display: inline;
    font-size: 13px;
    font-weight: normal;
    margin: 0 5px 0 0;
    color: var(--text-secondary);
}

.footer-links-pc ul {
    display: inline;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-pc li {
    display: inline;
}

.footer-links-pc a {
    color: var(--text-secondary);
    margin-right: 10px;
}

.footer-links-pc a:hover {
    color: var(--primary-color);
}

/* 移动端友情链接样式 */
.footer-links-mobile {
    font-size: 13px;
    color: var(--text-muted);
    text-align: left;
}

.footer-links-mobile .footer-links-label {
    color: var(--text-secondary);
    margin-right: 5px;
}

.footer-links-mobile ul {
    display: inline;
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-mobile li {
    display: inline;
}

.footer-links-mobile a {
    color: var(--text-secondary);
    margin-right: 10px;
}

.footer-links-mobile a:hover {
    color: var(--primary-color);
}

/* ====================
   返回顶部
   ==================== */
.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 44px;
    height: 44px;
    background: #2c3e50;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #2c3e50;
    transform: translateY(-4px);
}

/* ====================
   响应式设计 - 920px宽度优化
   ==================== */

/* 桌面端：LOGO高出搜索框半个高度 */
@media (min-width: 921px) {
    .logo-section {
        margin-top: -22px;
    }
}

/* 平板和手机端适配 */
@media (max-width: 920px) {
    .container {
        max-width: 100%;
        padding: 0 15px;
    }
    
    .main-content.full-width {
        max-width: 100%;
        padding: 0;
    }
    
    .post-list-section {
        padding: 15px;
        margin: 0 -15px;
    }
    
    /* 手机端文章页内容区域无间距 */
    .post-detail {
        margin: 0 -15px;
        padding: 20px 15px;
    }
    
    /* 手机端文章列表 */
    .post-item-row {
        gap: 10px;
        padding: 12px 0;
    }
    
    .post-item-row:hover {
        margin: 0 -10px;
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .post-cate-badge {
        padding: 3px 8px;
        font-size: 11px;
        min-width: 50px;
    }
    
    .post-item-row .post-title {
        font-size: 14px;
    }
    
    .post-date {
        font-size: 12px;
    }
    
    .post-item {
        flex-direction: column;
        padding: 15px 0;
    }
    
    .post-time-badge {
        width: auto;
        height: auto;
        flex-direction: row;
        gap: 5px;
        padding: 5px 10px;
        margin-bottom: 10px;
    }
    
    .post-day {
        font-size: 14px;
    }
    
    .post-timeline::before {
        display: none;
    }
    
    /* 手机端头部布局 */
    .site-header {
        padding: 10px 0;
    }
    
    .site-header .container {
        padding: 0 15px;
        gap: 10px;
    }
    
    /* 手机端：LOGO和搜索框垂直排列 */
    .header-top {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
        align-items: center;
        justify-content: space-between;
    }

    .logo-section {
        margin-bottom: 0;
        flex: 0 0 auto;
        order: 1;
    }
    
    .logo-img {
        width: 150px;
        height: 35px;
    }
    
    .logo-text {
        font-size: 18px;
    }
    
    /* 手机端搜索框在LOGO下方，宽度100% */
    .header-search {
        width: 100% !important;
        max-width: 100%;
        margin: 0;
        order: 3;
        flex: 0 0 100%;
    }
    
    /* 手机端热词区域固定位置 */
    .hot-search-wrapper {
        order: 3;
        flex-basis: 100%;
        margin-top: 8px;
    }
    
    .header-search input {
        padding: 8px 35px 8px 12px;
    }
    
    /* 手机端导航栏横向排列 */
    .main-nav {
        width: 100%;
        display: block;
        order: 3;
        padding: 4px 0;
    }
    
    .nav-list {
        display: flex;
        flex-direction: row;
        gap: 15px;
        justify-content: flex-start;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        align-items: center;
        min-height: 32px;
    }
    
    .nav-list::-webkit-scrollbar {
        display: none;
    }
    
    .nav-list li {
        flex-shrink: 0;
    }
    
    .nav-list a {
        font-size: 14px;
        padding: 6px 0;
        white-space: nowrap;
        line-height: 1.4;
    }
    
    /* 手机端求资源按钮样式 */
    .nav-item-right a {
        padding: 5px 12px;
        border-radius: 14px;
        font-size: 13px;
        line-height: 1.3;
    }
    
    /* 手机端菜单按钮 */
    .mobile-menu-btn {
        display: block !important;
        flex: 0 0 auto;
        order: 2;
    }

    /* 手机端导航菜单 */
    .main-nav {
        display: none;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 3px;
    }
    
    .pagination a,
    .pagination span {
        min-width: 36px;
        height: 36px;
        padding: 0 10px;
        font-size: 13px;
    }
    
    .footer-inner {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }
    
    /* PC端友情链接隐藏，移动端显示 */
    .footer-links-pc {
        display: none;
    }
    
    .footer-links-mobile {
        display: inline;
        text-align: center;
        font-size: 12px;
    }
    
    .footer-info {
        text-align: center;
        line-height: 1.5;
    }
    
    .footer-info p {
        margin-bottom: 6px;
    }
    
    .footer-links {
        text-align: center;
        margin-top: 4px;
    }
    
    /* 手机端缩小页脚顶部间距 */
    .site-footer {
        margin-top: 15px;
        padding-top: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .main-content.full-width {
        padding: 0;
    }
    
    .post-list-section {
        padding: 10px;
        margin: 0 -10px;
    }
    
    /* 手机端文章页内容区域无间距 */
    .post-detail {
        margin: 0 -10px;
        padding: 15px 10px;
    }
    
    .section-title {
        font-size: 16px;
    }
    
    .post-title {
        font-size: 16px;
    }
    
    .post-excerpt {
        font-size: 13px;
    }
    
    .post-meta {
        flex-wrap: wrap;
        gap: 10px;
        font-size: 12px;
    }
    
    .pagination a,
    .pagination span {
        min-width: 32px;
        height: 32px;
        padding: 0 8px;
        font-size: 12px;
    }
    
    .post-detail .post-title,
    .page-title {
        font-size: 22px;
    }
    
    .error-code {
        font-size: 80px;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
    
    /* 手机端标签间距缩小 */
    .post-tags {
        margin: 15px 0;
        padding: 10px 0;
    }
    
    .tags-label {
        margin-right: 5px;
    }
    
    .tag-link {
        padding: 2px 6px;
        margin-right: 4px;
        margin-bottom: 4px;
        font-size: 12px;
    }
    
    .tag-icon {
        display: inline-block;
        vertical-align: -2px;
        width: 12px;
        height: 12px;
    }
}

/* ====================
   广告位样式
   ==================== */
.ad-banner {
    width: 100%;
    max-width: 100%;
    margin: 15px 0;
    text-align: center;
    overflow: hidden;
}

.ad-banner img,
.ad-banner iframe,
.ad-banner > div {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

/* 电脑端和手机端广告控制 */
.ad-pc {
    display: block !important;
}

.ad-mobile {
    display: none !important;
}

/* 首页广告位 */
.ad-home-top {
    margin-top: 0;
    margin-bottom: 15px;
}

.ad-home-bottom {
    margin-top: 15px;
    margin-bottom: 0;
}

.ad-home-list {
    margin: 10px 0;
    padding: 10px 0;
    border-top: 1px dashed #e8e8e8;
    border-bottom: 1px dashed #e8e8e8;
}

/* 文章页广告位 */
.ad-article-top {
    margin-top: 0;
    margin-bottom: 20px;
}

.ad-article-related {
    margin: 30px 0 20px;
}

/* 手机端广告显示控制 */
@media (max-width: 920px) {
    .ad-pc {
        display: none !important;
    }
    
    .ad-mobile {
        display: block !important;
    }
    
    /* 手机端隐藏侧边栏 */
    .sidebar {
        display: none !important;
    }
    
    /* 手机端主内容区域占据整个宽度 */
    .content-wrapper {
        flex-direction: column;
    }
    
    .main-content {
        width: 100%;
    }
}

/* ====================
   打印样式
   ==================== */
@media print {
    .site-header,
    .sidebar,
    .site-footer,
    .back-to-top,
    .comments-section,
    .post-navigation,
    .related-posts {
        display: none;
    }
    
    .main-content {
        width: 100%;
    }
    
    .post-detail {
        box-shadow: none;
    }
}

/* ====================
   图片灯箱样式
   ==================== */

/* 灯箱遮罩层 */
.flbiao-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.flbiao-lightbox.active {
    display: flex;
    opacity: 1;
    align-items: center;
    justify-content: center;
}

/* 灯箱图片容器 */
.flbiao-lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 灯箱图片 */
.flbiao-lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.flbiao-lightbox.active .flbiao-lightbox-img {
    transform: scale(1);
}

/* 关闭按钮 */
.flbiao-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.flbiao-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.flbiao-lightbox-close svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

/* 左右切换按钮 */
.flbiao-lightbox-prev,
.flbiao-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
}

.flbiao-lightbox-prev {
    left: 20px;
}

.flbiao-lightbox-next {
    right: 20px;
}

.flbiao-lightbox-prev:hover,
.flbiao-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
}

.flbiao-lightbox-prev svg,
.flbiao-lightbox-next svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

/* 图片计数器 */
.flbiao-lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 10001;
}

/* 图片标题 */
.flbiao-lightbox-caption {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    max-width: 80%;
    text-align: center;
    z-index: 10001;
}

/* 文章中的图片添加可点击光标 */
.post-content img {
    cursor: zoom-in;
    transition: opacity 0.3s ease;
}

.post-content img:hover {
    opacity: 0.9;
}

/* 加载动画 */
.flbiao-lightbox-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: lightbox-spin 1s linear infinite;
}

@keyframes lightbox-spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* ====================
   灯箱移动端适配
   ==================== */
@media (max-width: 768px) {
    .flbiao-lightbox-content {
        max-width: 100%;
        max-height: 100%;
    }
    
    .flbiao-lightbox-img {
        max-height: 80vh;
        border-radius: 0;
    }
    
    .flbiao-lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
    
    .flbiao-lightbox-close svg {
        width: 20px;
        height: 20px;
    }
    
    .flbiao-lightbox-prev,
    .flbiao-lightbox-next {
        width: 40px;
        height: 40px;
    }
    
    .flbiao-lightbox-prev {
        left: 10px;
    }
    
    .flbiao-lightbox-next {
        right: 10px;
    }
    
    .flbiao-lightbox-prev svg,
    .flbiao-lightbox-next svg {
        width: 20px;
        height: 20px;
    }
    
    .flbiao-lightbox-counter {
        bottom: 10px;
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .flbiao-lightbox-caption {
        bottom: 50px;
        font-size: 12px;
        padding: 8px 16px;
        max-width: 90%;
    }
}

/* 小屏幕手机适配 */
@media (max-width: 480px) {
    .flbiao-lightbox-prev,
    .flbiao-lightbox-next {
        display: none;
    }
    
    .flbiao-lightbox-img {
        max-height: 75vh;
    }
}


/* ====================
   首页幻灯片样式
   ==================== */

/* 幻灯片外层容器 */
.homepage-slider {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 30px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

/* 幻灯片容器 */
.slider-container {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

/* 单个幻灯片 */
.slider-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slider-item:first-child {
    opacity: 1;
}

.slider-item a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
}

.slider-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 幻灯片标题 */
.slider-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    color: white;
    font-size: 16px;
    font-weight: 500;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    text-align: center;
}

/* 左右切换按钮 */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(0,0,0,0.15);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    z-index: 10;
}

.slider-btn:hover {
    background: rgba(0,0,0,0.3);
}

.slider-btn-left {
    left: 15px;
}

.slider-btn-right {
    right: 15px;
}

.slider-btn svg {
    width: 20px;
    height: 20px;
}

/* 指示点容器 */
.slider-dots {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

/* 单个指示点 */
.slider-dot {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.3);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.slider-dot:hover {
    background: rgba(255,255,255,0.6);
}

.slider-dot.active {
    background: rgba(255,255,255,0.85);
    width: 24px;
    border-radius: 5px;
}

/* ====================
   幻灯片移动端适配
   ==================== */
@media (max-width: 768px) {
    .slider-container {
        height: 180px;
    }
    
    .slider-title {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .slider-btn {
        width: 36px;
        height: 36px;
        background: rgba(0,0,0,0.15);
    }
    
    .slider-btn:hover {
        background: rgba(0,0,0,0.3);
    }
    
    .slider-btn-left {
        left: 10px;
    }
    
    .slider-btn-right {
        right: 10px;
    }
    
    .slider-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .slider-dots {
        bottom: 3px;
    }
    
    .slider-dot {
        width: 8px;
        height: 8px;
    }
    
    .slider-dot.active {
        width: 20px;
    }
}

@media (max-width: 480px) {
    .slider-container {
        height: 150px;
    }
    
    .slider-title {
        padding: 10px 12px;
        font-size: 13px;
    }
}

/* ====================
   评论区样式 - 简洁布局
   ==================== */

/* 评论区整体容器 */
.comments-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

/* 评论区标题 - 左侧显示 */
.comments-header {
    margin-bottom: 25px;
}

.comments-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.comments-title svg {
    color: var(--primary-color);
    width: 20px;
    height: 20px;
}

.comments-count {
    color: var(--text-muted);
    font-weight: 400;
}

/* 评论列表 */
.commentlist {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 单条评论 - 简洁布局 */
.comment-item {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

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

/* 评论头像 */
.comment-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 评论内容区域 */
.comment-body {
    flex: 1;
    min-width: 0;
}

/* 评论头部信息 - 作者和时间在一行 */
.comment-header {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comment-author {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 15px;
}

.comment-time {
    font-size: 13px;
    color: var(--text-muted);
}

/* 评论元信息 - 作者和时间 */
.comment-meta {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 回复按钮 - 按钮样式 */
.comment-reply {
    font-size: 13px;
    color: #fff;
    background: #2c3e50;
    padding: 4px 12px;
    border-radius: 4px;
    margin-left: auto;
    opacity: 0;
    transition: opacity 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

.comment-reply:hover {
    background: #34495e;
    text-decoration: none;
    color: #fff;
}

.comment-item:hover .comment-reply {
    opacity: 1;
}

/* 评论内容 */
.comment-content {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.comment-content p {
    margin-bottom: 8px;
}

.comment-content p:last-child {
    margin-bottom: 0;
}

/* 子评论 */
.comment-children {
    margin-left: 63px;
    margin-top: 15px;
}

.comment-children .comment-item {
    padding: 15px 0;
}

.comment-children .comment-avatar {
    width: 40px;
    height: 40px;
}

/* 评论翻页 */
.commentpagebar {
    margin-top: 30px;
    text-align: center;
}

.commentpagebar a,
.commentpagebar span {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 4px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    font-size: 14px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.commentpagebar a:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    text-decoration: none;
}

.commentpagebar .current {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: var(--primary-light);
}

/* ====================
   评论表单样式 - 简洁布局
   ==================== */

.comment-form-section {
    margin-top: 40px;
}

.comment-form-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

/* 已登录信息 */
.logged-in-info {
    padding: 12px 16px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-secondary);
}

.logged-in-info strong {
    color: var(--primary-color);
    font-weight: 500;
}

/* 表单布局 */
.comment-author-info {
    margin-bottom: 15px;
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.form-group {
    flex: 1;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background: var(--bg-primary);
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: #2c3e50;
}

.form-group input::placeholder {
    color: var(--text-muted);
}

/* 验证码行 */
.verify-row {
    align-items: center;
}

.verify-group {
    flex: 0 0 200px;
}

.verify-image img {
    height: 44px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    border: 1px solid var(--border-color);
}

/* 评论文本框 */
.comment-textarea-wrapper {
    margin-bottom: 15px;
}

.comment-textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 14px;
    line-height: 1.6;
    background: var(--bg-primary);
    resize: vertical;
    font-family: inherit;
}

.comment-textarea:focus {
    outline: none;
    border-color: #2c3e50;
}

.comment-textarea::placeholder {
    color: var(--text-muted);
}

/* 表单底部 - 提交按钮右对齐 */
.comment-form-footer {
    display: flex;
    justify-content: flex-end;
}

.comment-submit-btn {
    padding: 12px 30px;
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.comment-submit-btn:hover {
    background: #34495e;
}

/* ====================
   评论区移动端适配
   ==================== */

@media (max-width: 768px) {
    .comments-section {
        margin-top: 30px;
        padding-top: 20px;
    }
    
    .comment-item {
        gap: 12px;
        padding: 15px 0;
    }
    
    .comment-avatar {
        width: 40px;
        height: 40px;
    }
    
    .comment-author {
        font-size: 14px;
    }
    
    .comment-time {
        font-size: 12px;
    }
    
    .comment-reply {
        opacity: 0;
        font-size: 12px;
        padding: 3px 10px;
    }
    
    .comment-item:hover .comment-reply {
        opacity: 1;
    }
    
    .comment-content {
        font-size: 13px;
    }
    
    .comment-children {
        margin-left: 52px;
    }
    
    .comment-children .comment-avatar {
        width: 32px;
        height: 32px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 12px;
    }
    
    .verify-row {
        flex-direction: row;
    }
    
    .verify-group {
        flex: 1;
    }
    
    .comment-textarea {
        min-height: 100px;
    }
}

@media (max-width: 480px) {
    .comments-title {
        font-size: 16px;
    }
    
    .comment-item {
        gap: 10px;
        padding: 12px 0;
    }
    
    .comment-avatar {
        width: 36px;
        height: 36px;
    }
    
    .comment-content {
        font-size: 12px;
    }
    
    .comment-children {
        margin-left: 46px;
    }
    
    .comment-children .comment-avatar {
        width: 28px;
        height: 28px;
    }
    
    .form-group input {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .comment-textarea {
        min-height: 80px;
        padding: 12px;
        font-size: 13px;
    }
    
    .comment-submit-btn {
        padding: 10px 24px;
        font-size: 13px;
    }
}

/* ====================
   Single.php 文章页样式
   ==================== */

/* 点赞和打赏按钮区域 */
.post-action-section {
    text-align: center;
    margin: 30px 0;
}

.post-action-section .like-btn,
.post-action-section .reward-btn {
    margin: 0 10px;
}

/* 隐藏内容样式 */
.hide-content-wrapper {
    margin: 20px 0;
    border: 1px solid #e0f0e0;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fdf8;
}

.hide-content-mask {
    display: flex;
    padding: 15px;
    gap: 15px;
    align-items: center;
}

.hide-content-left {
    flex: 0 0 100px;
    text-align: center;
}

.hide-content-left img {
    width: 100px;
    height: 100px;
    border-radius: 4px;
}

.hide-content-right {
    flex: 1;
}

.hide-content-title {
    font-size: 14px;
    color: #ff6b6b;
    margin-bottom: 10px;
    font-weight: 500;
}

.hide-content-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.hide-label {
    font-size: 13px;
    color: #ff6b6b;
    font-weight: 600;
}

.hide-password-input {
    padding: 6px 10px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 13px;
    width: 120px;
}

.hide-submit-btn {
    padding: 6px 12px;
    background: #40a9ff;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.hide-submit-btn:hover {
    background: #1890ff;
}

.hide-content-real {
    padding: 20px;
    background: #fff;
    border-top: 1px solid #e8e8e8;
}

@media (max-width: 600px) {
    .hide-content-mask {
        padding: 10px;
        gap: 10px;
    }

    .hide-content-left {
        flex: 0 0 80px;
    }

    .hide-content-left img {
        width: 80px;
        height: 80px;
    }

    .hide-content-title {
        font-size: 12px;
        margin-bottom: 8px;
    }

    .hide-label {
        font-size: 12px;
    }

    .hide-password-input {
        padding: 5px 8px;
        font-size: 12px;
        width: 100px;
    }

    .hide-submit-btn {
        padding: 5px 10px;
        font-size: 12px;
    }
}

/* 点赞按钮样式 */
.like-btn {
    padding: 6px 14px;
    background: transparent;
    color: #2c3e50;
    border: 2px dashed #2c3e50;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.like-btn:hover {
    background: #2c3e50;
    color: white;
    border-style: solid;
    transform: translateY(-2px);
}

.like-btn.liked {
    background: transparent;
    color: #2c3e50;
    border-color: #2c3e50;
}

.like-btn.liked:hover {
    background: #2c3e50;
    color: white;
}

.like-btn:focus,
.like-btn:active,
.like-btn.liked:focus,
.like-btn.liked:active {
    outline: none;
    box-shadow: none;
}

.like-btn .like-count {
    margin-left: 5px;
    font-weight: 600;
}

.like-btn svg {
    display: block;
    flex-shrink: 0;
}

.reward-btn {
    padding: 6px 18px;
    background: transparent;
    color: #ff6b6b;
    border: 2px dashed #ff6b6b;
    border-radius: 25px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.reward-btn:hover {
    background: #ff6b6b;
    color: white;
    border-style: solid;
    transform: translateY(-2px);
}

.reward-btn svg {
    display: block;
    flex-shrink: 0;
}

/* 打赏弹窗样式 */
.reward-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.reward-modal-content {
    background: #fff;
    margin: 10% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 320px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    text-align: center;
}

.reward-modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reward-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.reward-close {
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.reward-close:hover {
    color: #000;
}

.reward-modal-body {
    padding: 20px;
}

.reward-modal-body .reward-text {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.reward-modal-body .reward-qrcode {
    display: inline-block;
    padding: 10px;
    background: #f5f5f5;
    border-radius: 8px;
}

.reward-modal-body .reward-qrcode img {
    width: 130px;
    height: 130px;
    display: block;
    border-radius: 4px;
}

/* 反馈按钮样式 */
.feedback-btn {
    float: right;
    padding: 4px 12px;
    background: #ff4d4f;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.feedback-btn:hover {
    background: #ff7875;
}

.feedback-btn svg {
    display: block;
    flex-shrink: 0;
}

/* 求资源按钮样式 */
.request-btn {
    float: right;
    padding: 4px 12px;
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
    margin-left: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.request-btn:hover {
    background: #2c3e50;
}

.request-btn svg {
    display: block;
    flex-shrink: 0;
}

/* 反馈弹窗样式 */
.feedback-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.feedback-modal-content {
    background: #fff;
    margin: 10% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

.feedback-modal-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.feedback-modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.feedback-close {
    font-size: 28px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.feedback-close:hover {
    color: #000;
}

.feedback-modal-body {
    padding: 20px;
}

.feedback-modal-body .form-group {
    margin-bottom: 15px;
}

.feedback-modal-body label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.feedback-modal-body input,
.feedback-modal-body select,
.feedback-modal-body textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.feedback-modal-body textarea {
    resize: vertical;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.btn-submit {
    padding: 10px 24px;
    background: #2c3e50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-submit:hover {
    background: #2c3e50;
}

.btn-cancel {
    padding: 10px 24px;
    background: #f5f5f5;
    color: #666;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    cursor: pointer;
}

.btn-cancel:hover {
    border-color: #1890ff;
    color: #1890ff;
}

/* 求资源弹窗样式 */
.request-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
}

.request-modal-content {
    background: white;
    margin: 10% auto;
    padding: 0;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.request-modal-header {
    padding: 16px 24px;
    border-bottom: 1px solid #e8e8e8;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.request-modal-header h3 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.request-close {
    font-size: 24px;
    color: #999;
    cursor: pointer;
    line-height: 1;
}

.request-close:hover {
    color: #666;
}

.request-modal-body {
    padding: 24px;
}

/* 网盘资源区域样式 */
.post-pan-links {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e7ed 100%);
    border: 1px solid #dcdfe6;
    border-radius: 8px;
    padding: 20px;
    margin: 20px 0;
}

.post-pan-links {
    position: relative;
    padding-top: 65px;
}

.post-pan-links h4 {
    position: absolute;
    top: -1px;
    left: -1px;
    margin: 0;
    font-size: 16px;
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #2c3e50;
    padding: 10px 20px;
    border-radius: 8px 0 20px 0;
    box-shadow: 2px 2px 8px rgba(44, 62, 80, 0.3);
    border: 1px solid #2c3e50;
    z-index: 1;
}

.pan-links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pan-link-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #1890ff 0%, #40a9ff 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(24, 144, 255, 0.3);
}

.pan-link-item:hover {
    background: linear-gradient(135deg, #40a9ff 0%, #1890ff 100%);
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.4);
    transform: translateY(-2px);
    color: #2c3e50;
}

.pan-link-item .pan-icon {
    font-size: 12px;
}

/* 拓展说明样式 */
.extend-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px dashed #dcdfe6;
}

.extend-link-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 12px;
    background: #fff;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
    font-size: 13px;
    color: #606266;
    text-decoration: none;
    transition: all 0.3s ease;
    flex: 0 0 calc(50% - 5px);
    box-sizing: border-box;
    line-height: 1.4;
}

.extend-link-item:hover {
    background: #f5f7fa;
    border-color: #1890ff;
    color: #1890ff;
}

/* 文章声明样式 */
.post-article-notice {
    margin: 30px 0;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
}

.post-article-notice .notice-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.post-article-notice .notice-line {
    flex: 1;
    height: 1px;
    background: #ccc;
    max-width: 100px;
}

.post-article-notice .notice-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    white-space: nowrap;
}

.post-article-notice .notice-text {
    font-size: 14px;
    line-height: 1.8;
    color: #666;
    text-align: left;
}

.post-article-notice .notice-text p {
    margin: 0 0 10px 0;
}

.post-article-notice .notice-text p:last-child {
    margin-bottom: 0;
}

.post-article-notice .notice-text a {
    color: #1890ff;
    text-decoration: underline;
}

.post-article-notice .notice-text a:hover {
    color: #40a9ff;
}

/* 上一篇/下一篇导航样式 */
.post-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin: 30px 0;
    padding: 0;
}

.nav-prev, .nav-next {
    flex: 1;
}

.nav-next {
    text-align: right;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e7ed 100%);
    border: 1px solid #dcdfe6;
    border-radius: 25px;
    text-decoration: none;
    color: #606266;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-width: 100px;
}

.nav-link:hover {
    background: linear-gradient(135deg, #1890ff 0%, #40a9ff 100%);
    border-color: #1890ff;
    color: #fff;
    box-shadow: 0 4px 12px rgba(24, 144, 255, 0.3);
    transform: translateY(-2px);
}

.nav-link.disabled {
    background: #f5f7fa;
    border-color: #e4e7ed;
    color: #c0c4cc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.nav-icon {
    font-size: 20px;
    font-weight: 300;
    line-height: 1;
}

.nav-text {
    white-space: nowrap;
}

@media (max-width: 768px) {
    .post-navigation {
        gap: 10px;
    }

    .nav-link {
        padding: 10px 18px;
        min-width: 80px;
        font-size: 13px;
    }

    .nav-icon {
        font-size: 18px;
    }

    /* 手机端反馈和求资源按钮内边距缩小 */
    .feedback-btn {
        padding: 4px 8px;
    }

    .request-btn {
        padding: 4px 8px;
    }
}

/* 相关文章样式 - 极简风格 */
.recommend-articles-section {
    margin: 30px 0;
    padding: 0;
    background: none;
    border: none;
}

.recommend-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.recommend-line {
    flex: 1;
    height: 1px;
    background: #ddd;
    max-width: 60px;
}

.recommend-title {
    font-size: 16px;
    font-weight: 700;
    color: #000;
    white-space: nowrap;
}

.recommend-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px 10px;
}

.recommend-item {
    display: block;
    padding: 2px 0;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    transition: color 0.2s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.recommend-item:hover {
    color: #1890ff;
}

@media (max-width: 768px) {
    .recommend-list {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .recommend-item {
        font-size: 15px;
        padding: 6px 0;
    }

    .recommend-line {
        max-width: 40px;
    }
    
    /* 拓展说明手机端样式 - 一排显示1个 */
    .extend-links {
        gap: 8px;
    }
    
    .extend-link-item {
        flex: 0 0 100%;
        padding: 10px 16px;
        font-size: 14px;
    }
    
    /* 网盘资源手机端样式 - 一排显示3个 */
    .pan-links-list {
        gap: 8px;
    }
    
    .pan-link-item {
        flex: 0 0 calc(33.333% - 6px);
        padding: 10px 8px;
        font-size: 13px;
        justify-content: center;
    }
    
    .pan-link-item .pan-icon {
        display: none;
    }
}
