/* ========================================
   Pure-Blog Theme - 简洁现代博客主题
   ======================================== */

/* CSS Variables */
:root {
    --primary-color: #3b82f6;
    --primary-hover: #2563eb;
    --primary-light: rgba(59, 130, 246, 0.1);
    --text-color: #1f2937;
    --text-muted: #6b7280;
    --text-light: #9ca3af;
    --bg-color: #f3f4f6;
    --card-bg: #ffffff;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);p
    --radius-sm: 10px;
    --radius-md: 10px;
    --radius-lg: 10px;
    --transition: all 0.3s ease;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    --header-height: 70px;
    --sidebar-width: 320px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

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

ul, ol {
    list-style: none;
}

/* Container */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ========================================
   Header
   ======================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    backdrop-filter: blur(10px);
}

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

/* Logo */
.site-logo {
    flex-shrink: 0;
}

.logo-text {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-color);
}

.logo-text:hover {
    color: var(--primary-color);
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
    border-radius: var(--radius-sm);
    color: #fff;
}

.logo-icon i {
    font-size: 1.2rem;
}

.logo-icon.logo-char {
    font-size: 1.25rem;
    font-weight: 800;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.logo-name {
    letter-spacing: -0.5px;
}

.logo-img img {
    height: 40px;
    width: auto;
}

/* Navigation */
.site-nav {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-color);
    background: var(--primary-light);
}

/* Dropdown */
.has-dropdown {
    position: relative;
}

.has-dropdown > .nav-link i {
    margin-left: 4px;
    font-size: 0.8rem;
    transition: var(--transition);
}

.has-dropdown:hover > .nav-link i {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 180px;
    padding: 8px 0;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}

.has-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    color: var(--text-color);
    font-size: 0.9rem;
    transition: var(--transition);
}

.dropdown-menu li a:hover {
    background: var(--bg-color);
    color: var(--primary-color);
}

/* Header Tools */
.header-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tool-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.tool-btn:hover {
    background: var(--bg-color);
    color: var(--primary-color);
}

.tool-btn i {
    font-size: 1.25rem;
}

.menu-toggle {
    display: none;
}

/* Search Panel */
.search-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card-bg);
    border-bottom: 1px solid var(--border-color);
    padding: 0 0 20px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-panel.active {
    max-height: 100px;
    padding: 20px 0;
    opacity: 1;
    visibility: visible;
}

.search-form {
    display: flex;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
    background: var(--bg-color);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.search-input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--text-color);
    outline: none;
}

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

.search-submit {
    padding: 14px 20px;
    border: none;
    background: var(--primary-color);
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
}

.search-submit:hover {
    background: var(--primary-hover);
}

/* ========================================
   Slider - 轮播图
   ======================================== */
.slider-wrapper {
    margin-bottom: 20px;
}

.slider {
    position: relative;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.slider-track {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 7;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

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

/* 轮播按钮 */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-color);
    font-size: 1.5rem;
    transition: var(--transition);
    z-index: 10;
    opacity: 0;
}

.slider:hover .slider-btn {
    opacity: 1;
}

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

.slider-btn.prev {
    left: 16px;
}

.slider-btn.next {
    right: 16px;
}

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

.dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.dot:hover {
    background: rgba(255, 255, 255, 0.8);
}

.dot.active {
    background: #fff;
    width: 24px;
    border-radius: 5px;
}

/* 响应式 */
@media (max-width: 768px) {
    .slider-track {
        aspect-ratio: 16 / 9;
    }
    
    .slider-btn {
        width: 36px;
        height: 36px;
        font-size: 1.2rem;
    }
    
    .slider-btn.prev {
        left: 8px;
    }
    
    .slider-btn.next {
        right: 8px;
    }
}

/* ========================================
   Main Content
   ======================================== */
.site-main {
    padding-top: calc(var(--header-height) + 20px);
    min-height: 100vh;
}

/* Main Layout - 左内容右侧边栏 */
.main-layout {
    display: grid;
    grid-template-columns: 1fr var(--sidebar-width);
    gap: 24px;
    padding: 20px 0;
}

.content-area {
    min-width: 0;
}

.sidebar-area {
    width: var(--sidebar-width);
}

/* ========================================
   Posts List - 文章列表（左图右文）
   ======================================== */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* 列表广告位 */
.list-ad-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.list-ad-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.list-ad-card a {
    display: block;
}

.list-ad-card img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

/* 列表通用广告位 */
.list-ad-code {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    padding: 15px;
    margin-bottom: 20px;
}

/* 文章广告位 */
.article-ad-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.article-ad-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.article-ad-card a {
    display: block;
}

.article-ad-card img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.article-ad-code {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    padding: 20px;
    margin: 25px 0;
}

.post-card {
    display: flex;
    align-items: stretch;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.post-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* 文章缩略图 - 左侧 */
.post-thumbnail {
    position: relative;
    flex-shrink: 0;
    width: 240px;
    height: 213px;
    align-self: flex-start;
    overflow: hidden;
}

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

.post-thumbnail img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s ease;
}

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

.post-thumbnail .post-category {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    background: var(--primary-color);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 5px;
}

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

/* 文章内容 - 右侧 */
.post-card .post-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 20px 24px;
    min-width: 0;
}

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

.text-category {
    display: inline-block;
    padding: 2px 10px;
    background: var(--primary-light);
    border-radius: 5px;
    margin-bottom: 8px;
}

.text-category a {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary-color);
}

.post-title {
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}

.post-title a {
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

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

/* 文章摘要 - 限制2-3行 */
.post-excerpt {
    flex: 1;
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 文章标签 */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.tag-link {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    background: var(--bg-color);
    border-radius: 5px;
    font-size: 0.75rem;
    color: var(--text-muted);
    transition: var(--transition);
}

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

.tag-link i {
    font-size: 0.7rem;
    margin-right: 2px;
}

/* 文章底部信息 */
.post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.post-meta .meta-item.comments {
    display: none;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    font-size: 0.8rem;
    color: var(--text-light);
}

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

.meta-item i {
    font-size: 0.9rem;
}

.meta-item.author {
    gap: 6px;
}

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

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

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

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 5px;
    font-size: 0.8rem;
    font-weight: 500;
    transition: var(--transition);
}

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

/* 无封面文章样式 */
.post-card:has(.post-content:first-child) {
    display: block;
}

.post-card .post-content:only-child {
    padding: 24px;
}

/* ========================================
   Single Post - 文章详情
   ======================================== */
.post-single {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.post-header-single {
    padding: 32px 32px 24px;
}

.post-breadcrumb {
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: var(--text-light);
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-breadcrumb a {
    color: var(--text-muted);
    transition: color 0.2s ease;
}

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

.breadcrumb-list i {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.post-title-single {
    font-size: 1.8rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 16px;
    color: var(--text-color);
}

.post-meta-single {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    font-size: 0.85rem;
    color: var(--text-muted);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-color);
}

.post-cover-single {
    margin: 0 32px 24px;
    border-radius: var(--radius-md);
    overflow: hidden;
}

.post-cover-single img {
    width: 100%;
    height: auto;
}

.post-content-single {
    padding: 0 32px 24px;
    font-size: 1.05rem;
    line-height: 1.9;
    color: var(--text-color);
}

.post-content-single h1,
.post-content-single h2,
.post-content-single h3,
.post-content-single h4,
.post-content-single h5,
.post-content-single h6 {
    margin: 1.5em 0 0.8em;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text-color);
}

.post-content-single h2 {
    font-size: 1.5rem;
    padding-bottom: 0.5em;
    border-bottom: 1px solid var(--border-color);
}

.post-content-single h3 {
    font-size: 1.25rem;
}

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

.post-content-single a {
    color: var(--primary-color);
    border-bottom: 1px solid transparent;
}

.post-content-single a:hover {
    border-bottom-color: var(--primary-color);
}

.post-content-single blockquote {
    margin: 1.5em 0;
    padding: 16px 24px;
    background: var(--bg-color);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    color: var(--text-muted);
}

.post-content-single pre {
    margin: 1.5em 0;
    padding: 20px;
    background: #1e293b;
    border-radius: var(--radius-md);
    overflow-x: auto;
    font-size: 0.9rem;
    line-height: 1.6;
}

.post-content-single code {
    padding: 2px 6px;
    background: var(--bg-color);
    border-radius: 5px;
    font-size: 0.9em;
}

.post-content-single pre code {
    padding: 0;
    background: transparent;
    color: #e2e8f0;
}

.post-content-single img {
    margin: 1.5em 0;
    border-radius: var(--radius-md);
    max-width: 100%;
}

.post-content-single ul,
.post-content-single ol {
    margin: 1em 0;
    padding-left: 2em;
}

.post-content-single ul {
    list-style: disc;
}

.post-content-single ol {
    list-style: decimal;
}

.post-content-single li {
    margin-bottom: 0.5em;
}

/* 文章标签 */
.post-tags-single {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 20px 32px;
    border-top: 1px solid var(--border-color);
}

.tags-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-right: 8px;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tags-list .tag-item {
    padding: 4px 12px;
    background: var(--bg-color);
    border-radius: 5px;
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.tags-list .tag-item:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

/* 版权声明 */
.post-copyright {
    display: flex;
    gap: 16px;
    margin: 0 32px;
    padding: 20px;
    background: var(--bg-color);
    border-radius: var(--radius-md);
    margin-bottom: 24px;
}

.copyright-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    color: var(--primary-color);
    font-size: 1.5rem;
}

.copyright-content {
    flex: 1;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.copyright-content p {
    margin: 0;
}

.copyright-content a {
    color: var(--primary-color);
}

/* 上下篇导航 */
.post-navigation {
    display: flex;
    justify-content: center;
    gap: 16px;
    padding: 0 32px 32px;
}

.post-navigation a {
    display: flex;
    flex-direction: column;
    padding: 16px 24px;
    background: var(--bg-color);
    border-radius: var(--radius-sm);
    transition: var(--transition);
    min-width: 200px;
    max-width: 300px;
    text-align: center;
}

.post-navigation a:hover {
    background: var(--primary-light);
}

.post-navigation .nav-label {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

.post-navigation .nav-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 作者卡片 */
.author-card {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    padding: 24px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.author-card .author-avatar {
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
}

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

.author-card .author-info {
    flex: 1;
}

.author-card .author-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.author-card .author-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ========================================
   Comments
   ======================================== */
.comments-section {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    margin-top: 24px;
}

.comments-header {
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.comments-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comments-header h3 i {
    color: var(--primary-color);
}

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

/* 评论项 */
.comment-item {
    display: flex;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

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

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

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

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

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

.comment-author {
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-color);
}

.comment-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

.comment-content {
    font-size: 0.9rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.comment-actions {
    font-size: 0.85rem;
    margin-top: 8px;
}

.comment-reply {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.2s;
    background: transparent;
}

.comment-reply:hover {
    color: var(--primary-color);
    background: rgba(59, 125, 216, 0.08);
}

.comment-reply i {
    font-size: 14px;
}

/* 回复@某人 样式 */
.comment-content .reply-at {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    margin-right: 6px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 5px;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
}

.comment-content .reply-at:hover {
    background: var(--primary-color);
    color: #fff;
}

/* 评论分页 */
.comments-pagination {
    text-align: center;
    padding-top: 16px;
}

/* 评论表单 */
.comment-form-wrapper {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.form-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

/* 回复提示 */
.reply-hint {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e8f4ff 100%);
    border: 1px solid #d0e8ff;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 0.9rem;
    color: #3b7dd8;
}

.reply-hint .reply-name {
    font-weight: 600;
    color: #2563eb;
}

.reply-hint .cancel-reply {
    margin-left: auto;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    color: #7f8c8d;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.reply-hint .cancel-reply:hover {
    color: #e74c3c;
}

.comment-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.comment-form .form-group {
    margin-bottom: 12px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    background: var(--bg-color);
    transition: var(--transition);
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--card-bg);
}

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

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

.verify-code {
    display: flex;
    align-items: center;
    gap: 8px;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.submit-btn:hover {
    background: var(--primary-hover);
}

.login-tip {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.login-tip a {
    color: var(--primary-color);
}

/* 置顶标志 */
.top-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    background: #fef3c7;
    color: #d97706;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 5px;
}

/* 编辑链接 */
.edit-link {
    display: inline-flex;
    align-items: center;
    padding: 4px 8px;
    color: var(--text-light);
    font-size: 0.85rem;
    transition: var(--transition);
}

.edit-link:hover {
    color: var(--primary-color);
}

/* 上下篇导航 */
.neighbor-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.neighbor-item {
    display: flex;
    flex-direction: column;
    padding: 16px;
    background: var(--bg-color);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.neighbor-item:hover {
    background: var(--primary-light);
}

.neighbor-item.empty {
    color: var(--text-light);
    font-size: 0.9rem;
    justify-content: center;
    align-items: center;
}

.neighbor-label {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 4px;
}

.neighbor-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

@media (max-width: 768px) {
    .neighbor-nav {
        grid-template-columns: 1fr;
    }
    
    .comment-form .form-row {
        grid-template-columns: 1fr;
    }
}

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

.widget:last-child {
    margin-bottom: 0;
}

.widget-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.widget-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

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

/* Widget: Author */
.widget-author .author-card-widget {
    text-align: center;
}

.author-bg {
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), #8b5cf6);
    border-radius: var(--radius-sm);
    margin: -20px -20px 0;
}

.author-main {
    padding-top: 30px;
}

.author-main .author-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 3px solid var(--card-bg);
    margin: -50px auto 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

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

.author-main .author-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.author-main .author-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    line-height: 1.6;
}

.author-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    padding: 16px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 16px;
}

.author-stats .stat-item {
    text-align: center;
}

.author-stats .stat-num {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.author-stats .stat-label {
    font-size: 0.75rem;
    color: var(--text-light);
}

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

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

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

.btn-sm {
    padding: 8px 16px;
    font-size: 0.85rem;
}

/* Widget: Search */
.sidebar-search-form {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: var(--transition);
}

.sidebar-search-form:focus-within {
    border-color: var(--primary-color);
}

.sidebar-search-input {
    flex: 1;
    padding: 10px 14px;
    border: none;
    background: transparent;
    font-size: 0.9rem;
    outline: none;
}

.sidebar-search-btn {
    padding: 10px 14px;
    border: none;
    background: var(--primary-color);
    color: #fff;
    cursor: pointer;
    transition: var(--transition);
}

.sidebar-search-btn:hover {
    background: var(--primary-hover);
}

/* Widget: Posts List */
.posts-widget-list {
    display: flex;
    flex-direction: column;
}

.posts-widget-item {
    border-bottom: 1px solid var(--border-color);
}

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

.posts-widget-item .post-link {
    display: flex;
    flex-direction: column;
    padding: 12px 0;
}

.posts-widget-item .post-title-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: var(--transition);
}

.posts-widget-item:hover .post-title-text {
    color: var(--primary-color);
}

.posts-widget-item .post-date {
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Widget: Hot Posts */
.hot-widget-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hot-widget-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hot-rank {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-color);
    border-radius: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

.hot-rank.rank-1 {
    background: #fbbf24;
    color: #fff;
}

.hot-rank.rank-2 {
    background: #9ca3af;
    color: #fff;
}

.hot-rank.rank-3 {
    background: #cd7f32;
    color: #fff;
}

.hot-thumb {
    flex-shrink: 0;
    width: 60px;
    height: 45px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.hot-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hot-info {
    flex: 1;
    min-width: 0;
}

.hot-title {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-color);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

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

.hot-views {
    font-size: 0.75rem;
    color: var(--text-light);
}

.hot-views i {
    font-size: 0.8rem;
}

/* Widget: Tags Cloud */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-cloud-item {
    padding: 4px 12px;
    background: var(--bg-color);
    border-radius: 5px;
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.tag-cloud-item:hover {
    background: var(--primary-light);
    color: var(--primary-color);
}

/* Widget: Calendar */
.widget-calendar #calendar {
    font-size: 0.85rem;
}

.widget-calendar table {
    width: 100%;
    border-collapse: collapse;
}

.widget-calendar th,
.widget-calendar td {
    padding: 6px 4px;
    text-align: center;
}

.widget-calendar th {
    font-weight: 600;
    color: var(--text-muted);
}

.widget-calendar td a {
    display: block;
    padding: 2px 6px;
    background: var(--primary-light);
    border-radius: 5px;
    color: var(--primary-color);
}

/* ========================================
   Pagination
   ======================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding: 16px 0;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--text-color);
    transition: var(--transition);
}

.pagination a:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* ========================================
   No Content
   ======================================== */
.no-content {
    text-align: center;
    padding: 60px 20px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
}

.no-content-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-color);
    border-radius: 50%;
    color: var(--text-light);
    font-size: 2rem;
}

.no-content h3 {
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.no-content p {
    color: var(--text-muted);
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    margin-top: 40px;
}

.footer-content {
    padding: 32px 0;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 12px;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.copyright {
    font-size: 0.85rem;
    color: var(--text-light);
}

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

.footer-desc {
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--text-light);
}

/* ========================================
   Friend Links
   ======================================== */
.friend-links {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 20px 24px;
    margin-top: 24px;
    border: 1px solid var(--border-color);
}

.friend-links-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

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

.friend-links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.friend-links-list a {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: var(--bg-color);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: all 0.2s ease;
    text-decoration: none;
}

.friend-links-list a:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

/* 侧边栏友情链接 */
.sidebar-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sidebar-link-item {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    background: var(--bg-color);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: all 0.2s ease;
    text-decoration: none;
}

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

/* ========================================
   Calendar Widget
   ======================================== */
#calendar {
    width: 100%;
}

.calendartop {
    width: 100%;
    margin-bottom: 12px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark, #0066cc));
    border-radius: var(--radius-md);
    overflow: hidden;
}

.calendartop tbody,
.calendartop tr {
    display: flex;
    width: 100%;
}

.calendartop td {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    font-weight: 600;
    font-size: 0.9rem;
    color: #fff;
}

.calendartop td:first-child {
    border-right: 1px solid rgba(255,255,255,0.2);
}

.calendartop a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    border-radius: 50%;
    transition: all 0.2s ease;
    font-size: 0.8rem;
}

.calendartop a:hover {
    background: rgba(255,255,255,0.25);
    color: #fff;
    transform: scale(1.1);
}

.calendar {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.calendar td {
    padding: 6px 4px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.calendar td.week,
.calendar td.sun {
    font-weight: 600;
    color: var(--text-color);
    font-size: 0.75rem;
}

.calendar td.sun {
    color: var(--primary-color);
}

.calendar td a {
    display: block;
    width: 28px;
    height: 28px;
    line-height: 28px;
    margin: 0 auto;
    text-decoration: none;
    color: var(--text-muted);
    border-radius: 50%;
    transition: all 0.2s ease;
}

.calendar td a:hover {
    background: var(--bg-color);
    color: var(--primary-color);
}

.calendar td.day {
    background: var(--primary-color);
    border-radius: 50%;
    color: #fff;
    width: 28px;
    height: 28px;
    line-height: 28px;
    margin: 0 auto;
}

.calendar td.day a {
    color: #fff;
}

.calendar td.day2 a {
    background: rgba(var(--primary-rgb), 0.1);
    color: var(--primary-color);
}

/* ========================================
   Back to Top
   ======================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 46px;
    height: 46px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition);
    box-shadow: var(--shadow-md);
    z-index: 999;
}

.back-to-top:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top i {
    font-size: 1.25rem;
}

/* ========================================
   Page
   ======================================== */
.page-single {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.page-header {
    padding: 28px 32px;
    border-bottom: 1px solid var(--border-color);
}

.page-header .page-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    padding: 0;
    border: none;
}

.page-content {
    padding: 24px 32px;
    font-size: 1.05rem;
    line-height: 1.9;
}

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

.page-content h1,
.page-content h2,
.page-content h3 {
    margin: 1.5em 0 0.8em;
    font-weight: 700;
}

.page-content img {
    max-width: 100%;
    border-radius: var(--radius-md);
    margin: 1em 0;
}

.page-content a {
    color: var(--primary-color);
}

.page-content blockquote {
    margin: 1.5em 0;
    padding: 16px 24px;
    background: var(--bg-color);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.page-content pre {
    margin: 1.5em 0;
    padding: 20px;
    background: #1e293b;
    border-radius: var(--radius-md);
    overflow-x: auto;
    color: #e2e8f0;
}

.page-content code {
    padding: 2px 6px;
    background: var(--bg-color);
    border-radius: 5px;
    font-size: 0.9em;
}

.page-content pre code {
    padding: 0;
    background: transparent;
}

/* ========================================
   404 Page
   ======================================== */
.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    text-align: center;
    padding: 40px 20px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
}

.error-page .error-code {
    font-size: 6rem;
    font-weight: 800;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 16px;
}

.error-page .error-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.error-page .error-desc {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.error-page .btn-home {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary-color);
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: var(--transition);
}

.error-page .btn-home:hover {
    background: var(--primary-hover);
    color: #fff;
}

.mobile-search {
    display: none;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .main-layout {
        grid-template-columns: 1fr;
    }

    .sidebar-area {
        width: 100%;
    }

    .post-thumbnail {
        width: 200px;
        height: 150px;
        min-height: 150px;
        max-height: 150px;
        align-self: flex-start;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 56px;
    }

    /* 手机端导航菜单 */
    .site-header {
        z-index: 1002;
    }

    .header-inner {
        height: 56px;
    }

    /* 菜单按钮加强显示 */
    .menu-toggle {
        display: flex !important;
        order: -1;
        width: 44px;
        height: 44px;
        background: var(--primary-color) !important;
        color: #fff !important;
        border-radius: var(--radius-sm);
        margin-right: 8px;
    }

    .menu-toggle i {
        font-size: 1.4rem;
    }

    .menu-toggle:hover {
        background: var(--primary-dark, #2563eb) !important;
        color: #fff !important;
    }

    /* 手机端隐藏搜索按钮 */
    #searchToggle {
        display: none !important;
    }

    .site-nav {
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        width: 100%;
        display: block;
        background: #ffffff;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 0;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.3s ease,
                    padding 0.3s ease;
        z-index: 1001;
        box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    }

    .site-nav.active {
        max-height: calc(100vh - 56px);
        padding: 8px 0;
        opacity: 1;
        overflow-y: auto;
    }

    .nav-list {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 8px 0;
        width: 100%;
    }

    .nav-item {
        width: 100%;
    }

    .nav-link {
        display: flex;
        align-items: center;
        padding: 14px 20px;
        border-bottom: 1px solid #f0f0f0;
        border-radius: 0;
        font-size: 1rem;
        font-weight: 500;
        color: #333;
        background: transparent;
        width: 100%;
    }

    .nav-link:hover,
    .nav-link.active {
        background: #f5f7fa;
        color: #3b82f6;
    }

    .nav-link i {
        margin-left: auto;
        font-size: 1rem;
        transition: transform 0.2s;
    }

    .has-dropdown.active .nav-link i {
        transform: rotate(180deg);
    }

    /* 下拉菜单 - 手机端 */
    ul.dropdown-menu,
    .dropdown-menu {
        position: static !important;
        display: none !important;
        background: #f8f9fa !important;
        margin: 0 !important;
        width: 100% !important;
        border: none !important;
        box-shadow: none !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        padding: 0 !important;
    }

    .dropdown-menu li {
        width: 100%;
        list-style: none;
    }

    .dropdown-menu li a {
        display: block;
        padding: 12px 20px 12px 36px;
        font-size: 0.9rem;
        color: #666;
        width: 100%;
        text-decoration: none;
        transition: background 0.2s ease;
    }

    .dropdown-menu li a:hover {
        color: #3b82f6;
        background: #f0f7ff;
    }

    /* 手机端点击展开下拉菜单 */
    .nav-item.has-dropdown.active ul.dropdown-menu,
    .nav-item.has-dropdown.active .dropdown-menu,
    li.has-dropdown.active ul.dropdown-menu,
    li.has-dropdown.active .dropdown-menu {
        display: block !important;
    }

    /* 手机端搜索框 */
    .mobile-search {
        display: block;
        padding: 12px 16px;
        border-bottom: 1px solid #f0f0f0;
    }

    .mobile-search-form {
        display: flex;
        align-items: center;
        background: #f5f7fa;
        border-radius: 8px;
        overflow: hidden;
        border: 1px solid #e8e8e8;
    }

    .mobile-search-input {
        flex: 1;
        padding: 12px 14px;
        border: none;
        background: transparent;
        font-size: 0.95rem;
        color: #333;
        outline: none;
    }

    .mobile-search-input::placeholder {
        color: #999;
    }

    .mobile-search-btn {
        padding: 12px 16px;
        border: none;
        background: var(--primary-color);
        color: #fff;
        cursor: pointer;
        transition: background 0.2s ease;
    }

    .mobile-search-btn:hover {
        background: var(--primary-hover);
    }

    .mobile-search-btn i {
        font-size: 1.1rem;
    }

    /* 遮罩层 */
    body.nav-open::after {
        content: '';
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.3);
        z-index: 1000;
    }

    /* 文章列表移动端 */
    .main-layout {
        display: block;
        padding: 1px 0;
    }

    .sidebar-area {
        display: none;
    }

    .post-card {
        flex-direction: row;
        align-items: stretch;
        height: 120px;
    }

    .post-thumbnail {
        width: 130px;
        height: 120px;
        min-height: 120px;
        max-height: 120px;
        align-self: flex-start;
        flex-shrink: 0;
    }

    .post-card .post-content {
        padding: 10px 12px;
        flex: 1;
        min-width: 0;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

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

    .post-title {
        font-size: 1.05rem;
        line-height: 1.45;
        margin-bottom: 0;
    }

    .post-title a {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    /* 手机端显示时间和发布人 */
    .post-footer {
        display: block !important;
        margin-top: auto;
    }

    .post-footer .post-meta {
        display: flex;
        gap: 12px;
        font-size: 0.75rem;
        color: var(--text-muted);
    }

    .post-footer .post-meta .meta-item {
        display: flex !important;
        align-items: center;
        gap: 4px;
    }

    .post-footer .post-meta .meta-item.author img {
        width: 18px;
        height: 18px;
    }

    .post-footer .post-meta .meta-item.comments {
        display: none !important;
    }

    .post-footer .read-more {
        display: none !important;
    }

    /* 手机端隐藏多余元素 */
    .post-excerpt,
    .post-tags,
    .text-category {
        display: none !important;
    }

    .post-category {
        top: 6px;
        left: 6px;
        padding: 2px 6px;
        font-size: 0.6rem;
    }

    /* 文章详情 */
    .post-header-single {
        padding: 20px;
    }

    .post-title-single {
        font-size: 1.4rem;
    }

    .post-cover-single {
        margin: 0 20px 20px;
    }

    .post-content-single {
        padding: 0 20px 20px;
    }

    .post-tags-single {
        padding: 16px 20px;
    }

    .post-copyright {
        margin: 0 20px 20px;
        padding: 16px;
    }

    .post-navigation {
        flex-direction: column;
        align-items: center;
        padding: 0 20px 20px;
    }

    .post-navigation a {
        width: 100%;
        max-width: 100%;
    }

    .widget {
        padding: 16px;
    }

    .author-bg {
        margin: -16px -16px 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }

    .logo-name {
        font-size: 1rem;
    }

    .logo-icon {
        width: 32px;
        height: 32px;
    }

    .logo-icon.logo-char {
        font-size: 1.1rem;
    }

    .post-card {
        height: 100px;
    }

    .post-thumbnail {
        width: 110px;
        height: 100px;
        min-height: 100px;
        max-height: 100px;
        align-self: flex-start;
    }

    .post-card .post-content {
        padding: 8px 10px;
    }

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

    .post-title a {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .post-footer .post-meta {
        font-size: 0.7rem;
    }

    .post-category {
        display: none;
    }

    .author-stats {
        gap: 16px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

/* ========================================
   CMS 模块样式
   ======================================== */
.cms-container {
    width: 100%;
    margin: 20px 0;
}

.cms-cat-row {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.cms-cat-card {
    flex: 1;
    min-width: 280px;
    background: var(--card-bg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    padding: 20px;
}

.cms-cat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    font-weight: 600;
    color: var(--text-color);
    font-size: 1rem;
}

.cms-cat-header .more {
    color: var(--text-light);
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
}

.cms-cat-header .more:hover {
    color: var(--primary-color);
}

.cms-article-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cms-article-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.9rem;
}

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

.cms-article-item .num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: var(--primary-light);
    color: var(--primary-color);
    border-radius: 5px;
    margin-right: 10px;
    font-size: 0.75rem;
    font-weight: 600;
    flex-shrink: 0;
}

.cms-article-item .title {
    flex: 1;
    color: var(--text-color);
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: var(--transition);
}

.cms-article-item .title:hover {
    color: var(--primary-color);
}

.cms-article-item .time {
    color: var(--text-light);
    font-size: 0.75rem;
    margin-left: 10px;
    white-space: nowrap;
}

/* ========================================
   横向文章列表
   ======================================== */
.bottom-specified-posts {
    margin: 20px 0;
    padding: 20px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.bottom-specified-posts h3 {
    font-size: 1rem;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-color);
    font-weight: 600;
}

.specified-posts-list {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 8px;
    align-items: flex-start;
    -webkit-overflow-scrolling: touch;
}

.specified-posts-list::-webkit-scrollbar {
    height: 6px;
}

.specified-posts-list::-webkit-scrollbar-track {
    background: var(--bg-color);
    border-radius: 3px;
}

.specified-posts-list::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
    opacity: 0.6;
}

.specified-posts-list {
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--bg-color);
}

.specified-post-item {
    min-width: 180px;
    max-width: 180px;
    background: var(--bg-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    transition: var(--transition);
}

.specified-post-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.specified-post-item a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.specified-post-item .post-thumb {
    height: 120px;
    overflow: hidden;
}

.specified-post-item .post-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.specified-post-item .post-info {
    padding: 12px;
}

.specified-post-item h4 {
    font-size: 0.9rem;
    line-height: 1.4;
    margin-bottom: 8px;
    color: var(--text-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-weight: 500;
}

.specified-post-item .post-info > div:last-child {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* ========================================
   友链申请按钮样式
   ======================================== */
.block.center1 {
    margin: 20px 0;
}

.block.center1 .card.widget {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.block.center1 .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.block.center1 .card-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.block.center1 .apply-link {
    color: var(--primary-color);
    font-size: 0.85rem;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
}

.block.center1 .apply-link:hover {
    color: var(--primary-hover);
}

#blogsort {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

#blogsort .list-li {
    margin: 0;
    padding: 0;
}

#blogsort .list-li a {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: var(--bg-color);
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

#blogsort .list-li a:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

/* ========================================
   Utilities
   ======================================== */
.text-center { text-align: center; }
.hidden { display: none !important; }
