/*
Theme Name: YIA
Theme URI: https://demo.themebetter.com/yia/
Author: ThemeBetter
Author URI: https://themebetter.com/
Description: 一个现代化的WordPress博客主题，具有精美的卡片式布局和流畅的用户体验
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: yia
Tags: blog, two-columns, custom-menu, featured-images, threaded-comments, translation-ready
*/

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

:root {
    --primary-color: #0bb27a;
    --primary-dark: #099d6a;
    --secondary-color: #f5f7fa;
    --text-dark: #333;
    --text-medium: #666;
    --text-light: #999;
    --border-color: #e5e5e5;
    --card-bg: #fff;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --transition: all 0.3s ease;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-medium);
    background-color: var(--secondary-color);
}

/* 移动端菜单打开时防止页面滚动 */
body.menu-open {
    overflow: hidden;
}

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

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

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

/* ========================================
   Header 顶部导航
======================================== */
.site-header {
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    overflow: hidden;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.site-title {
    font-size: 1.4em;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

/* 主导航 */
.main-navigation {
    flex: 1;
    margin: 0 40px;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.main-navigation li {
    position: relative;
}

.main-navigation a {
    color: var(--text-dark);
    font-size: 0.95em;
    font-weight: 500;
    padding: 5px 0;
    position: relative;
}

.main-navigation a:hover,
.main-navigation a.active {
    color: var(--primary-color);
}

/* 一级菜单项下划线效果 */
.main-navigation > ul > li > a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.main-navigation > ul > li > a:hover::before,
.main-navigation > ul > li > a.active::before {
    width: 100%;
}

/* 二级菜单 */
.main-navigation .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px 0;
    margin-top: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
    display: block;
    flex-direction: column;
    gap: 0;
}

/* 鼠标悬停时显示二级菜单 */
.main-navigation li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    margin-top: 10px;
}

/* 二级菜单项 */
.main-navigation .sub-menu li {
    width: 100%;
    display: block;
    position: relative;
}

.main-navigation .sub-menu a {
    display: block;
    padding: 10px 20px;
    font-size: 0.9em;
    color: var(--text-medium);
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.main-navigation .sub-menu a:hover {
    background: var(--secondary-color);
    border-left-color: var(--primary-color);
    padding-left: 25px;
}

/* 三级菜单 */
.main-navigation .sub-menu .sub-menu {
    top: 0;
    left: 100%;
    margin-top: 0;
    margin-left: 10px;
    transform: translateX(-10px);
}

.main-navigation .sub-menu li:hover > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
    margin-left: 5px;
}

/* 三级菜单项 */
.main-navigation .sub-menu .sub-menu a {
    padding: 10px 20px;
    font-size: 0.85em;
}

.main-navigation .sub-menu .sub-menu a:hover {
    background: var(--secondary-color);
    border-left-color: var(--primary-color);
    padding-left: 25px;
}

/* 有子菜单的菜单项样式 */
.main-navigation .menu-item-has-children > a {
    position: relative;
}

/* 一级菜单下拉箭头（向下，在文字右侧） */
.main-navigation > ul > .menu-item-has-children > a::after {
    content: '\f107';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: 6px;
    font-size: 0.75em;
    transition: transform 0.3s ease;
    display: inline-block;
    vertical-align: middle;
    background: none;
    color: inherit;
}

.main-navigation > ul > .menu-item-has-children:hover > a::after {
    transform: rotate(180deg);
}

/* 二级和三级菜单项需要右侧留空间给箭头 */
.main-navigation .sub-menu .menu-item-has-children > a {
    padding-right: 35px;
}

/* 二级和三级菜单下拉箭头（向右，在右侧） */
.main-navigation .sub-menu .menu-item-has-children > a::after {
    content: '\f105';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8em;
    transition: transform 0.3s ease;
    margin-left: 0;
    background: none;
    color: inherit;
}

.main-navigation .sub-menu .menu-item-has-children:hover > a::after {
    transform: translateY(-50%) rotate(90deg);
}

/* 用户中心 */
.header-user {
    margin-left: 20px;
    display: flex;
    align-items: center;
    position: relative;
}

/* 用户菜单包装器 */
.user-menu-wrapper {
    position: relative;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    display: block;
    border: 2px solid transparent;
    transition: var(--transition);
    cursor: pointer;
}

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

.user-avatar:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(11, 178, 122, 0.3);
}

/* 用户下拉菜单 */
.user-dropdown {
    position: absolute;
    top: calc(100% + 15px);
    right: 0;
    width: 260px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.user-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    right: 15px;
    width: 16px;
    height: 16px;
    background: #fff;
    transform: rotate(45deg);
    border-radius: 2px;
}

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

/* 下拉菜单头部 */
.user-dropdown-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-dropdown-header img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

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

.user-dropdown-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 15px;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-dropdown-email {
    font-size: 13px;
    color: var(--text-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 下拉菜单项 */
.user-dropdown-menu {
    padding: 8px;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    border-radius: 8px;
    color: var(--text-medium);
    transition: var(--transition);
    font-size: 14px;
}

.user-dropdown-item i {
    width: 20px;
    text-align: center;
    font-size: 16px;
}

.user-dropdown-item:hover {
    background: var(--secondary-color);
    color: var(--primary-color);
}

.user-dropdown-item.logout {
    color: #dc3545;
}

.user-dropdown-item.logout:hover {
    background: #fff5f5;
    color: #dc3545;
}

/* 登录链接 */
.user-login-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-medium);
    font-size: 1.1em;
    transition: var(--transition);
}

.user-login-link:hover {
    background: var(--primary-color);
    color: #fff;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(11, 178, 122, 0.3);
}

/* 搜索框 */
.header-search {
    position: relative;
}

.search-form {
    display: flex;
    align-items: center;
    background: var(--secondary-color);
    border-radius: 20px;
    padding: 8px 20px;
    width: 240px;
}

.search-form input[type="search"] {
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.9em;
    width: 100%;
    color: var(--text-dark);
}

.search-form input[type="search"]::placeholder {
    color: var(--text-light);
}

.search-form button {
    border: none;
    background: transparent;
    cursor: pointer;
    color: var(--text-light);
    padding: 0;
    margin-left: 10px;
}

/* ========================================
   Swiper轮播图
======================================== */
.hero-swiper-container {
    margin-bottom: 30px;
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
}

.hero-swiper {
    height: 280px;
    position: relative;
    width: 100%;
    overflow: hidden;
}

.swiper-wrapper {
    box-sizing: border-box;
}

.swiper-slide {
    position: relative;
    overflow: hidden;
}

.slide-content {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.slide-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

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

.slide-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.3) 100%);
    z-index: 2;
}

.slide-info {
    position: relative;
    z-index: 3;
    color: #fff;
    padding: 40px;
    max-width: 600px;
}

.slide-category .category-tag {
    background: var(--primary-color);
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: 600;
    margin-bottom: 15px;
    display: inline-block;
}

.slide-title {
    font-size: 2.2em;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 15px;
}

.slide-title a {
    color: #fff;
    text-decoration: none;
    transition: var(--transition);
}

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

.slide-excerpt {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.9;
}

.slide-meta {
    display: flex;
    gap: 20px;
    font-size: 0.9em;
    opacity: 0.8;
}

.slide-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.slide-meta i {
    font-size: 0.9em;
}

.slide-action {
    margin-top: 20px;
}

.slide-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary-color);
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9em;
    transition: var(--transition);
}

.slide-button:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(11, 178, 122, 0.3);
}

.slide-button i {
    font-size: 0.8em;
    transition: transform 0.3s ease;
}

.slide-button:hover i {
    transform: translateX(4px);
}

/* Swiper导航按钮 */
.hero-swiper .swiper-button-next,
.hero-swiper .swiper-button-prev {
    color: #fff;
    background: rgba(255, 255, 255, 0.2);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    backdrop-filter: blur(10px);
    transition: var(--transition);
}

.hero-swiper .swiper-button-next:hover,
.hero-swiper .swiper-button-prev:hover {
    background: var(--primary-color);
    transform: scale(1.1);
}

.hero-swiper .swiper-button-next::after,
.hero-swiper .swiper-button-prev::after {
    font-size: 18px;
    font-weight: 700;
}

/* Swiper分页器 */
.hero-swiper .swiper-pagination {
    bottom: 20px;
}

.hero-swiper .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    transition: var(--transition);
}

.hero-swiper .swiper-pagination-bullet-active {
    background: var(--primary-color);
    transform: scale(1.2);
}

/* ========================================
   Main Content 主内容区
======================================== */
.site-main {
    max-width: 1200px;
    margin: 90px auto 40px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 30px;
}

.main-content {
    min-width: 0;
    overflow: hidden;
}


/* ========================================
   点赞最多列表
======================================== */
.liked-posts-list {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 40px;
    overflow: hidden;
}

.liked-post-item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

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

.liked-post-item:hover {
    background-color: #fafafa;
}

.post-rank {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a52);
    color: #fff;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9em;
    margin-right: 15px;
    flex-shrink: 0;
}

.post-rank:nth-child(1) {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
}

.liked-post-item:nth-child(2) .post-rank {
    background: linear-gradient(135deg, #c0c0c0, #e8e8e8);
    color: #333;
}

.liked-post-item:nth-child(3) .post-rank {
    background: linear-gradient(135deg, #cd7f32, #d4af37);
    color: #fff;
}

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

.liked-post-title {
    font-size: 1.05em;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 6px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.liked-post-title a {
    color: inherit;
    transition: color 0.2s ease;
}

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

.liked-post-meta {
    display: flex;
    gap: 15px;
    font-size: 0.8em;
    color: var(--text-light);
}

.liked-post-meta .post-likes {
    color: #ff6b6b;
    font-weight: 500;
}

/* ========================================
   文章列表卡片
======================================== */
.posts-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.post-item {
    background: var(--card-bg);
    border-radius: 0;
    box-shadow: none;
    border-bottom: 1px solid #ebebeb;
    overflow: hidden;
    transition: background 0.2s ease;
    display: flex;
    flex-direction: row;
    padding: 20px 0;
    margin-bottom: 0;
}

.post-item:hover {
    background: #fafafa;
}

/* 文章缩略图 */
.post-thumbnail {
    position: relative;
    width: 280px;
    min-width: 280px;
    height: 180px;
    overflow: hidden;
    flex-shrink: 0;
    margin-left: 20px;
    margin-right: 20px;
    border-radius: 6px;
}

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

.post-item:hover .post-thumbnail img {
    transform: scale(1.08);
}

/* 无图片占位样式 */
.post-thumbnail.no-image {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.post-item:hover .post-thumbnail.no-image {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    border-color: var(--primary-color);
    transform: scale(1.02);
}

.no-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: #6c757d;
    font-size: 2.5em;
    transition: color 0.3s ease;
}

.post-item:hover .no-image-placeholder {
    color: var(--primary-color);
}

.post-item:hover .no-image-placeholder i {
    animation: bounce 0.6s ease;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.category-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 12px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 3px;
    font-size: 0.75em;
    font-weight: 600;
    z-index: 2;
    transition: var(--transition);
}

.category-badge:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

/* 文章内容区 */
.post-content {
    padding: 8px 20px 8px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
    min-height: 180px;
}

.post-content > div:first-child {
    flex: 1;
}

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

.post-badge {
    display: none;
}

.post-badge.sticky {
    display: inline-block;
    padding: 2px 8px;
    background: #ff6b6b;
    color: #fff;
    font-size: 0.7em;
    font-weight: 600;
    margin-right: 6px;
    border-radius: 2px;
    vertical-align: middle;
}

.post-title {
    font-size: 1.15em;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.6;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.post-title-left {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.post-title a {
    color: inherit;
    transition: color 0.2s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

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

/* 文章元信息 */
.post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 12px;
    font-size: 0.8em;
    color: #999;
}

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

.post-meta svg,
.post-meta i {
    font-size: 14px;
    color: #bbb;
}

/* 文章价格样式 */
.post-price {
    color: #ff6b6b;
    font-weight: 600;
    background: rgba(255, 107, 107, 0.1);
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75em;
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 4px;
}

.post-price i {
    color: #ff6b6b;
    font-size: 12px;
}

/* 文章摘要 */
.post-excerpt {
    color: #666;
    line-height: 1.8;
    margin-bottom: 12px;
    font-size: 0.9em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-wrap: break-word;
    word-break: break-word;
}

/* 文章底部 */
.post-footer {
    display: flex;
    align-items: center;
    margin-top: auto;
    padding-top: 8px;
}

/* 文章标签 */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.post-tags a {
    color: #666;
    font-size: 0.8em;
    background: #f5f5f5;
    padding: 4px 10px;
    border-radius: 4px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

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

/* 多图文章 - 移除多图布局，统一为单图 */

/* ========================================
   Sidebar 侧边栏
======================================== */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.widget-title {
    font-size: 1.1em;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--secondary-color);
    position: relative;
}

.widget-title::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

/* 热门标签 */
.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-cloud a {
    padding: 6px 14px;
    background: var(--secondary-color);
    color: var(--text-medium);
    border-radius: 4px;
    font-size: 0.85em;
    transition: var(--transition);
}

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

/* 热门排行 */
.popular-posts-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.popular-posts-list li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
    position: relative;
}

.popular-posts-list li:hover {
    background: rgba(11, 178, 122, 0.05);
    border-radius: 8px;
    padding-left: 8px;
    padding-right: 8px;
}

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

.post-number {
    width: 28px;
    height: 28px;
    background: var(--secondary-color);
    color: var(--text-medium);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85em;
    font-weight: 700;
    flex-shrink: 0;
    transition: var(--transition);
}

/* 前三名特殊样式 */
.popular-posts-list li:nth-child(1) .post-number {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #333;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.3);
}

.popular-posts-list li:nth-child(2) .post-number {
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
    color: #333;
    box-shadow: 0 2px 8px rgba(192, 192, 192, 0.3);
}

.popular-posts-list li:nth-child(3) .post-number {
    background: linear-gradient(135deg, #cd7f32 0%, #d4af37 100%);
    color: #fff;
    box-shadow: 0 2px 8px rgba(205, 127, 50, 0.3);
}

/* 其他排名 */
.popular-posts-list li:nth-child(n+4) .post-number {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
}

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

.popular-post-title {
    font-size: 0.9em;
    line-height: 1.4;
    margin-bottom: 4px;
    color: var(--text-dark);
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.popular-post-title a {
    color: inherit;
    text-decoration: none;
}

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

.popular-post-meta {
    font-size: 0.75em;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.popular-post-meta .post-date {
    color: var(--text-light);
}

.popular-post-meta .post-stats {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-left: auto;
}

.popular-post-meta span {
    display: flex;
    align-items: center;
    gap: 3px;
}

/* 不同排序类型的图标颜色 */
.popular-posts-list[data-orderby="likes"] .post-number {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: #fff;
}

.popular-posts-list[data-orderby="comments"] .post-number {
    background: linear-gradient(135deg, #4ecdc4 0%, #44a08d 100%);
    color: #fff;
}

.popular-posts-list[data-orderby="random"] .post-number {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #333;
}

.popular-posts-list[data-orderby="views"] .post-number {
    background: var(--secondary-color);
    color: var(--text-medium);
}

/* 小工具标题和刷新按钮容器 */
.widget-title-wrapper {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    margin: 0 !important;
}

.widget-title-wrapper span {
    flex: 1;
    margin: 0;
    padding: 0;
    font-weight: inherit;
    font-size: inherit;
    color: inherit;
    line-height: inherit;
}

/* 小工具刷新按钮 */
.widget-refresh-btn {
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 0.85em;
    padding: 2px 6px;
    border-radius: 4px;
    transition: var(--transition);
    margin: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.widget-refresh-btn:hover {
    color: var(--primary-color);
    background: rgba(11, 178, 122, 0.1);
}

.widget-refresh-btn i {
    transition: transform 0.3s ease;
    font-size: 0.9em;
}

.widget-refresh-btn:hover i {
    transform: rotate(180deg);
}

/* 网站统计 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

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

.stat-label {
    font-size: 0.85em;
    color: var(--text-light);
    margin-bottom: 5px;
}

.stat-value {
    font-size: 1.3em;
    font-weight: 700;
    color: var(--primary-color);
}

/* 推荐网站 */
.recommended-sites {
    list-style: none;
}

.recommended-sites li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}

.recommended-sites li:last-child {
    border-bottom: none;
}

.recommended-sites a {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9em;
}

.site-favicon {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

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

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.footer-text {
    color: var(--text-light);
    font-size: 0.9em;
    margin-bottom: 10px;
}

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

.footer-links a {
    color: var(--text-light);
    font-size: 0.85em;
}

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

/* ========================================
   移动端菜单按钮
======================================== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 36px;
    height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 1001;
    position: relative;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.mobile-menu-toggle:hover {
    background: var(--secondary-color);
}

.mobile-menu-toggle:active {
    background: rgba(11, 178, 122, 0.1);
}

.mobile-menu-toggle span {
    width: 100%;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform-origin: center;
}

.mobile-menu-toggle.active span {
    background: var(--primary-color);
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* 移动端菜单遮罩 */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(2px);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 移动端菜单滚动条样式 */
.main-navigation::-webkit-scrollbar {
    width: 6px;
}

.main-navigation::-webkit-scrollbar-track {
    background: #f5f5f5;
}

.main-navigation::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.main-navigation::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* ========================================
   响应式设计
======================================== */
@media (max-width: 992px) {
    .site-main {
        grid-template-columns: 1fr;
    }
    
    /* 显示移动端菜单按钮 */
    .mobile-menu-toggle {
        display: flex;
        margin-left: 12px;
    }
    
    /* 移动端导航样式 */
    .main-navigation {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 320px;
        max-width: 85%;
        height: calc(100vh - 70px);
        background: #fff;
        box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15);
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 999;
        overflow-y: auto;
        padding: 20px 0;
    }
    
    .main-navigation.active {
        right: 0;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0;
        margin: 0;
        padding: 0;
    }
    
    .main-navigation li {
        width: 100%;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .main-navigation li:last-child {
        border-bottom: none;
    }
    
    .main-navigation a {
        display: block;
        padding: 16px 24px;
        font-size: 1.05em;
        font-weight: 500;
        position: relative;
        transition: all 0.2s ease;
    }
    
    /* 移动端隐藏一级菜单的下划线和下拉箭头 */
    .main-navigation > ul > li > a::before,
    .main-navigation > ul > li > a::after {
        display: none;
    }
    
    /* 移动端一级菜单项左侧指示条 */
    .main-navigation > ul > li > a {
        position: relative;
    }
    
    .main-navigation > ul > li > a::before {
        content: '';
        position: absolute;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 0;
        height: 60%;
        background: var(--primary-color);
        transition: width 0.2s ease;
        display: block;
    }
    
    .main-navigation a:hover,
    .main-navigation a.active {
        background: rgba(11, 178, 122, 0.05);
        color: var(--primary-color);
        padding-left: 28px;
    }
    
    .main-navigation > ul > li > a:hover::before,
    .main-navigation > ul > li > a.active::before {
        width: 4px;
    }
    
    /* 移动端二级菜单 */
    .main-navigation .sub-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-radius: 0;
        padding: 0;
        margin: 0;
        background: #f8f9fa;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .main-navigation .menu-item-has-children.active > .sub-menu {
        max-height: 800px;
    }
    
    .main-navigation .sub-menu li {
        border-bottom: 1px solid #e5e5e5;
    }
    
    .main-navigation .sub-menu li:last-child {
        border-bottom: none;
    }
    
    .main-navigation .sub-menu a {
        padding-left: 40px;
        font-size: 0.95em;
        background: transparent;
    }
    
    .main-navigation .sub-menu a:hover {
        background: rgba(11, 178, 122, 0.05);
        padding-left: 44px;
    }
    
    /* 移动端三级菜单 */
    .main-navigation .sub-menu .sub-menu {
        background: #eff1f3;
    }
    
    .main-navigation .sub-menu .sub-menu a {
        padding-left: 60px;
        font-size: 0.9em;
    }
    
    .main-navigation .sub-menu .sub-menu a:hover {
        padding-left: 64px;
    }
    
    /* 移动端下拉箭头 */
    .main-navigation .menu-item-has-children > a::after {
        content: '\f105';
        position: absolute;
        right: 20px;
        left: auto;
        top: 50%;
        transform: translateY(-50%);
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        transition: transform 0.3s ease;
        width: auto;
        height: auto;
        background: none !important;
        margin-left: 0;
        font-size: 0.8em;
        color: var(--text-medium);
    }
    
    .main-navigation .menu-item-has-children.active > a::after {
        transform: translateY(-50%) rotate(90deg);
        color: var(--primary-color);
    }
    
    /* 显示遮罩 */
    .mobile-menu-overlay {
        display: block;
    }
}

@media (max-width: 768px) {
    .header-inner {
        height: 60px;
        padding: 0 15px;
    }
    
    .site-main {
        margin-top: 80px;
    }
    
    /* 移动端用户头像 */
    .header-user {
        margin-left: 10px;
    }
    
    .user-avatar,
    .user-login-link {
        width: 36px;
        height: 36px;
    }
    
    .user-login-link {
        font-size: 1em;
    }
    
    /* 移动端用户下拉菜单 */
    .user-dropdown {
        width: 240px;
        right: -10px;
    }
    
    .user-dropdown::before {
        right: 20px;
    }
    
    .user-dropdown-header {
        padding: 15px;
    }
    
    .user-dropdown-header img {
        width: 45px;
        height: 45px;
    }
    
    .user-dropdown-name {
        font-size: 14px;
    }
    
    .user-dropdown-email {
        font-size: 12px;
    }
    
    .user-dropdown-item {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    /* 移动端导航调整 */
    .main-navigation {
        top: 60px;
        height: calc(100vh - 60px);
        width: 70%;
        max-width: 300px;
        right: -100%;
    }
    
    .main-navigation.active {
        right: 0;
    }
    
    /* 搜索框优化 */
    .header-search {
        flex: 1;
        max-width: 200px;
        margin: 0 12px;
    }
    
    .search-form {
        width: 100%;
        padding: 7px 16px;
    }
    
    .search-form input[type="search"] {
        font-size: 0.88em;
    }
    
    .liked-post-item {
        padding: 12px 15px;
    }
    
    .post-rank {
        width: 28px;
        height: 28px;
        font-size: 0.8em;
        margin-right: 12px;
    }
    
    .liked-post-title {
        font-size: 1em;
    }
    
    .liked-post-meta {
        font-size: 0.75em;
        gap: 10px;
    }
    
    .popular-posts-list li {
        padding: 10px 0;
    }
    
    .post-number {
        width: 24px;
        height: 24px;
        font-size: 0.8em;
    }
    
    .popular-post-title {
        font-size: 0.85em;
    }
    
    .popular-post-meta {
        font-size: 0.7em;
        gap: 6px;
    }
    
    .breadcrumbs {
        padding: 10px 15px;
        font-size: 0.8em;
        margin-bottom: 15px;
    }
    
    .breadcrumbs .separator {
        margin: 0 6px;
    }
    
    .category-info {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
    
    .category-icon {
        width: 50px;
        height: 50px;
    }
    
    .category-icon i {
        font-size: 1.3em;
    }
    
    .category-title {
        font-size: 1.8em;
    }
    
    .category-description {
        font-size: 1em;
    }
    
    .category-tags {
        justify-content: center;
        padding-top: 15px;
    }
    
    .category-tag {
        font-size: 0.8em;
        padding: 5px 12px;
    }
    
    .hero-swiper-container {
        margin-bottom: 20px;
    }
    
    .hero-swiper {
        height: 220px;
    }
    
    .slide-info {
        padding: 20px;
        max-width: 100%;
        width: 100%;
    }
    
    .slide-title {
        font-size: 1.6em;
    }
    
    .slide-excerpt {
        font-size: 1em;
        margin-bottom: 15px;
    }
    
    .slide-meta {
        gap: 15px;
        font-size: 0.8em;
    }
    
    .hero-swiper .swiper-button-next,
    .hero-swiper .swiper-button-prev {
        width: 36px;
        height: 36px;
    }
    
    .hero-swiper .swiper-button-next::after,
    .hero-swiper .swiper-button-prev::after {
        font-size: 14px;
    }
    
    .post-item {
        flex-direction: column;
    }
    
    .post-thumbnail {
        width: 100%;
        height: 220px;
        margin-left: 0;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .post-thumbnail.no-image {
        height: 140px;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    }
    
    .no-image-placeholder {
        font-size: 2em;
    }
    
    .post-title {
        font-size: 1.1em;
    }
    
    .entry-title {
        font-size: 1.5em;
        gap: 10px;
        line-height: 1.4;
    }
    
    .entry-title i {
        font-size: 0.8em;
    }
    
    .post-content {
        padding: 15px 20px;
    }
}

@media (max-width: 576px) {
    .site-title {
        font-size: 1em;
    }
    
    .logo-icon {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }
    
    /* 小屏幕用户头像 */
    .header-user {
        margin-left: 8px;
    }
    
    .user-avatar,
    .user-login-link {
        width: 32px;
        height: 32px;
    }
    
    .user-login-link {
        font-size: 0.9em;
    }
    
    /* 小屏幕搜索框优化 */
    .header-search {
        flex: 1;
        max-width: 150px;
        margin: 0 8px;
    }
    
    .search-form {
        width: 100%;
        padding: 6px 12px;
    }
    
    .search-form input[type="search"] {
        font-size: 0.85em;
    }
    
    .search-form button {
        font-size: 0.9em;
    }
    
    /* 移动端菜单调整 */
    .main-navigation {
        width: 75%;
        max-width: 280px;
        right: -100%;
    }
    
    .main-navigation.active {
        right: 0;
    }
    
    .mobile-menu-toggle {
        width: 28px;
        height: 28px;
    }
    
    .mobile-menu-toggle span {
        height: 2px;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
    
    .post-content {
        padding: 12px 15px;
    }
    
    .post-thumbnail {
        height: 180px;
    }
    
    .post-meta {
        font-size: 0.75em;
        gap: 8px;
    }
    
    .post-excerpt {
        font-size: 0.9em;
    }
    
    /* 移动端网站统计保持水平显示 */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .stat-item {
        padding: 8px;
    }
    
    .stat-label {
        font-size: 0.8em;
        margin-bottom: 4px;
    }
    
    .stat-value {
        font-size: 1.2em;
    }
    
    .pagination {
        padding: 15px;
        gap: 4px;
        flex-wrap: wrap;
    }
    
    .pagination a,
    .pagination span {
        padding: 6px 10px;
        font-size: 0.8em;
        min-width: 32px;
    }
    
    .pagination .prev,
    .pagination .next {
        padding: 6px 12px;
        font-size: 0.8em;
    }
}

/* ========================================
   面包屑导航
======================================== */
.breadcrumbs {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 12px 20px;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
    font-size: 0.9em;
    color: var(--text-medium);
}

.breadcrumbs a {
    color: var(--text-medium);
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

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

.breadcrumbs .separator {
    margin: 0 8px;
    color: var(--text-light);
    font-weight: 300;
}

.breadcrumbs i {
    font-size: 0.9em;
    color: var(--primary-color);
}

/* ========================================
   单篇文章页面卡片式布局
======================================== */
.single-post-cards,
.single-page-cards {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* 基础卡片样式 */
.post-header-card,
.post-content-card,
.post-footer-card,
.post-navigation-card,
.post-comments-card,
.page-header-card,
.page-thumbnail-card,
.page-content-card,
.page-comments-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.post-header-card:hover,
.post-content-card:hover,
.post-footer-card:hover,
.post-navigation-card:hover,
.post-comments-card:hover,
.page-header-card:hover,
.page-thumbnail-card:hover,
.page-content-card:hover,
.page-comments-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* 文章头部卡片 */
.post-header-card {
    padding: 25px 30px;
    text-align: center;
    background: #fff;
}

/* 页面头部卡片 */
.page-header-card {
    padding: 25px 30px;
    text-align: center;
    background: #fff;
}

/* 文章内容卡片 */
.post-content-card {
    padding: 25px 30px;
}

/* 页面内容卡片 */
.page-content-card {
    padding: 25px 30px;
}

/* 页面特色图片卡片 */
.page-thumbnail-card {
    padding: 0;
    overflow: hidden;
}

.page-thumbnail-card .entry-thumbnail {
    margin: 0;
}

.page-thumbnail-card img {
    width: 100%;
    height: auto;
    border-radius: 0;
    margin: 0;
    transition: transform 0.3s ease;
}

.page-thumbnail-card:hover img {
    transform: scale(1.02);
}

/* 文章内容卡片中的居中按钮 */
.entry-actions-center {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

/* 文章底部卡片 */
.post-footer-card {
    padding: 20px 30px;
    background: #fff;
}

/* 文章导航卡片 */
.post-navigation-card {
    padding: 20px 30px;
}

/* 评论区卡片 */
.post-comments-card {
    padding: 25px 30px;
}

/* 页面评论区卡片 */
.page-comments-card {
    padding: 25px 30px;
}

/* 卡片间距和动画效果 */
.single-post-cards,
.single-page-cards {
    gap: 12px;
}

.single-post-cards > *,
.single-page-cards > * {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.single-post-cards > *:nth-child(1),
.single-page-cards > *:nth-child(1) { animation-delay: 0.1s; }
.single-post-cards > *:nth-child(2),
.single-page-cards > *:nth-child(2) { animation-delay: 0.2s; }
.single-post-cards > *:nth-child(3),
.single-page-cards > *:nth-child(3) { animation-delay: 0.3s; }
.single-post-cards > *:nth-child(4),
.single-page-cards > *:nth-child(4) { animation-delay: 0.4s; }
.single-post-cards > *:nth-child(5),
.single-page-cards > *:nth-child(5) { animation-delay: 0.5s; }
.single-post-cards > *:nth-child(6),
.single-page-cards > *:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 卡片式布局响应式设计 */
@media (max-width: 768px) {
    .single-post-cards,
    .single-page-cards {
        gap: 12px;
    }
    
    .post-header-card,
    .post-content-card,
    .post-footer-card,
    .post-navigation-card,
    .post-comments-card,
    .page-header-card,
    .page-content-card,
    .page-comments-card {
        padding: 20px;
    }
    
    .entry-actions-center {
        margin-top: 20px;
        padding-top: 15px;
    }
    
    /* 移动端取消悬停效果 */
    .post-header-card:hover,
    .post-content-card:hover,
    .post-footer-card:hover,
    .post-navigation-card:hover,
    .post-comments-card:hover,
    .page-header-card:hover,
    .page-thumbnail-card:hover,
    .page-content-card:hover,
    .page-comments-card:hover {
        transform: none;
    }
}

/* 兼容旧样式 */
.single-post,
.single-page {
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 30px;
}

/* 卡片式布局中的头部样式 */
.post-header-card .entry-header,
.entry-header {
    text-align: center;
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

/* 兼容旧布局的头部样式 */
.single-post .entry-header,
.single-page .entry-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.entry-categories {
    margin-bottom: 12px;
}

.entry-title {
    font-size: 1.8em;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.entry-title i {
    color: var(--primary-color);
    font-size: 0.85em;
    opacity: 0.8;
}

.entry-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 0.9em;
    color: var(--text-light);
}

.entry-thumbnail {
    margin-bottom: 25px;
    border-radius: var(--radius);
    overflow: hidden;
}

.entry-content {
    font-size: 1.1em;
    line-height: 1.9;
    color: var(--text-medium);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: var(--text-dark);
    margin-top: 25px;
    margin-bottom: 12px;
    font-weight: 600;
}

.entry-content h2 {
    font-size: 1.5em;
}

.entry-content h3 {
    font-size: 1.3em;
}

.entry-content h4 {
    font-size: 1.15em;
}

.entry-content p {
    margin-bottom: 16px;
}

.entry-content img {
    border-radius: 8px;
    margin: 16px 0;
}

.entry-content a {
    color: var(--primary-color);
    text-decoration: underline;
}

.entry-content ul,
.entry-content ol {
    margin: 20px 0;
    padding-left: 30px;
}

.entry-content li {
    margin-bottom: 10px;
}

.entry-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 15px 20px;
    margin: 20px 0;
    background: var(--secondary-color);
    border-radius: 4px;
    font-style: italic;
}

.entry-content pre {
    background: #f6f8fa;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 20px 0;
}

.entry-content code {
    background: #f6f8fa;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

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

.entry-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.entry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
}

.entry-tags i {
    color: var(--text-light);
}

.entry-tags a {
    padding: 6px 14px;
    background: var(--secondary-color);
    color: var(--text-medium);
    border-radius: 4px;
    font-size: 0.9em;
    transition: var(--transition);
}

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

.entry-actions {
    display: flex;
    gap: 15px;
}

.like-button,
.share-button {
    padding: 12px 24px;
    border: 2px solid var(--border-color);
    background: #fff;
    color: var(--text-medium);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.like-button:hover,
.share-button:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.like-button.liked {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.like-button.liked i {
    animation: heartbeat 0.6s;
}

@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1.1); }
}

/* 文章导航 */
.post-navigation {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.post-navigation a {
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.post-navigation a:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.nav-subtitle {
    font-size: 0.85em;
    color: var(--text-light);
    margin-bottom: 8px;
}

.nav-title {
    color: var(--text-dark);
    font-weight: 600;
}

.nav-previous a {
    align-items: flex-start;
}

.nav-next a {
    align-items: flex-end;
    text-align: right;
}

/* ========================================
   评论区样式 - 极简风格
======================================== */
.comments-area {
    margin-top: 10px;
}

/* 评论数量 */
.comments-count {
    font-size: 14px;
    color: #999;
    margin: 30px 0 20px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

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

.comment-list li {
    margin-bottom: 0;
}

/* 极简评论项 */
.simple-comment {
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
    position: relative;
}

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

.comment-wrapper {
    display: flex;
    gap: 12px;
    align-items: center;
}

/* 头像 */
.comment-avatar {
    flex-shrink: 0;
    position: relative;
}

.comment-avatar img {
    border-radius: 50%;
    width: 40px;
    height: 40px;
    background: #f5f5f5;
}

/* 头像徽章 */
.avatar-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.avatar-badge.admin-badge {
    background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
    color: #fff;
}

.avatar-badge.registered-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.avatar-badge.qq-badge {
    background: linear-gradient(135deg, #12b7f5 0%, #0e9de6 100%);
    color: #fff;
}

/* 评论主体 */
.comment-main {
    flex: 1;
    min-width: 0;
    position: relative;
    background: #fafafa;
    border-radius: 8px;
    padding: 12px 15px;
    transition: all 0.2s ease;
}

.simple-comment:hover .comment-main {
    background: #f5f5f5;
}

/* 管理员评论特殊样式 */
.comment-main.admin-comment {
    background: linear-gradient(135deg, #fff9e6 0%, #fff5d6 100%);
    border: 1px solid #ffe4a3;
}

.simple-comment:hover .comment-main.admin-comment {
    background: linear-gradient(135deg, #fff5d6 0%, #fff0c6 100%);
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.2);
}

/* 评论内容 */
.comment-content {
    font-size: 14px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 10px;
}

.comment-content p {
    margin: 0;
    word-wrap: break-word;
}

/* 评论底部信息 */
.comment-meta-bottom {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #999;
}

.comment-author-name {
    color: var(--text-dark);
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.comment-author-name:hover {
    color: var(--primary-color);
}

/* 用户身份徽章 */
.user-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s ease;
}

/* 管理员徽章 */
.admin-badge-inline {
    background: linear-gradient(135deg, #ffd700 0%, #ffa500 100%);
    color: #fff;
    box-shadow: 0 2px 4px rgba(255, 165, 0, 0.3);
}

.admin-badge-inline:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 6px rgba(255, 165, 0, 0.4);
}

.admin-badge-inline i {
    font-size: 10px;
}

/* 注册用户徽章 */
.registered-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.registered-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 6px rgba(102, 126, 234, 0.4);
}

.registered-badge i {
    font-size: 10px;
}

/* QQ用户徽章 */
.qq-badge {
    background: linear-gradient(135deg, #12b7f5 0%, #0e9de6 100%);
    color: #fff;
    box-shadow: 0 2px 4px rgba(18, 183, 245, 0.3);
}

.qq-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 6px rgba(18, 183, 245, 0.4);
}

.qq-badge i {
    font-size: 11px;
}

.comment-time {
    color: #999;
    font-size: 12px;
}

.comment-author {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 600;
}

.comment-author:hover {
    color: var(--primary-color);
}

.comment-awaiting {
    display: inline-block;
    padding: 2px 8px;
    background: #fff3cd;
    color: #856404;
    border-radius: 4px;
    font-size: 12px;
    margin-bottom: 8px;
}

/* 评论回复链接 */
.comment-reply-link-inline a {
    color: #999;
    text-decoration: none;
    transition: color 0.2s ease;
}

.comment-reply-link-inline a:hover {
    color: var(--primary-color);
}

/* 楼层编号 */
.comment-number {
    color: #999;
    font-size: 12px;
    position: absolute;
    top: 20px;
    right: 15px;
    opacity: 0.6;
}

/* 子评论缩进 */
.comment-list .children {
    list-style: none;
    margin-left: 40px;
    margin-top: 8px;
    margin-bottom: 0;
    padding-left: 0;
    border-left: none;
}

/* 子评论内的评论项 */
.comment-list .children .simple-comment {
    padding: 10px 0;
}

/* 最后一个子评论 */
.comment-list .children .simple-comment:last-child {
    padding-bottom: 0;
}

/* 旧版评论样式兼容 */
.comment-body {
    background: transparent;
    padding: 0;
    border-radius: 0;
}

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

.comment-author img {
    border-radius: 50%;
}

.comment-author .fn {
    font-weight: 600;
    color: var(--text-dark);
}

.comment-metadata {
    font-size: 0.85em;
    color: var(--text-light);
    margin-bottom: 15px;
}

.comment-metadata a {
    color: var(--text-light);
}

.comment-content {
    line-height: 1.8;
}

.reply {
    margin-top: 10px;
}

.reply a {
    padding: 6px 16px;
    background: #fff;
    color: var(--text-medium);
    border-radius: 4px;
    font-size: 0.85em;
    transition: var(--transition);
}

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

.children {
    list-style: none;
    margin-left: 40px;
    margin-top: 25px;
}

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

.comment-reply-title {
    font-size: 1.3em;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

/* 极简评论表单 */
#commentform {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* 隐藏昵称和邮箱字段 */
#commentform p:has(#author),
#commentform p:has(#email) {
    display: none;
}

/* 隐藏Cookie同意选项 */
#commentform .comment-form-cookies-consent {
    display: none !important;
}

#commentform p.comment-form-cookies-consent {
    display: none !important;
}

/* 回复标题 - 默认隐藏 */
.comment-reply-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    display: none !important;
    align-items: center;
    justify-content: space-between;
}

/* 当是回复状态时显示 */
.comment-reply-title.show {
    display: flex !important;
}

/* 取消回复链接 */
.cancel-comment-reply {
    margin-left: auto;
}

.cancel-comment-reply a {
    color: #999 !important;
    font-size: 13px;
    text-decoration: none;
    padding: 4px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-weight: normal;
    display: inline-block !important;
}

.cancel-comment-reply a:hover {
    color: var(--primary-color) !important;
    background: rgba(11, 178, 122, 0.1);
}

/* 取消回复链接的small标签 */
#reply-title small {
    display: inline !important;
}

/* 隐藏必填项提示 */
.comment-form .comment-notes,
.comment-form .required-field-message {
    display: none !important;
}

/* 用户信息标识栏 */
.comment-user-info {
    margin-bottom: 12px;
    display: none;
}

/* 已登录用户信息样式 */
.logged-in-user-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 16px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
    margin-bottom: 12px;
    animation: slideInDown 0.3s ease;
}

.logged-in-content {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.logged-in-content i {
    font-size: 18px;
}

.logged-in-content strong {
    font-weight: 600;
    margin-left: 4px;
}

.logged-in-actions {
    display: flex;
    gap: 12px;
}

.edit-profile-link,
.logout-link {
    color: white;
    text-decoration: none;
    font-size: 13px;
    padding: 4px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.15);
}

.edit-profile-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.logout-link:hover {
    background: rgba(255, 100, 100, 0.4);
    transform: translateY(-1px);
}

/* 响应式:已登录用户信息 */
@media (max-width: 768px) {
    .logged-in-user-info {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .logged-in-content {
        justify-content: center;
    }
    
    .logged-in-actions {
        justify-content: center;
    }
    
    .edit-profile-link,
    .logout-link {
        flex: 1;
        justify-content: center;
    }
}

.user-info-bar {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    animation: slideInDown 0.3s ease;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.user-info-content {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}

.user-info-content i {
    font-size: 20px;
    color: var(--primary-color);
}

.user-nickname {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
}

.user-email {
    color: #999;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.comment-logout-btn {
    background: #fff;
    border: 1px solid #e0e0e0;
    color: #666;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    flex-shrink: 0;
}

.comment-logout-btn:hover {
    background: #ff4757;
    border-color: #ff4757;
    color: #fff;
    transform: translateX(2px);
}

.comment-logout-btn i {
    font-size: 12px;
}

/* 评论输入框容器 */
.comment-input-wrapper {
    position: relative;
    width: 100%;
}

/* 评论输入框 */
#commentform textarea {
    width: 100%;
    padding: 16px 60px 16px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    transition: all 0.3s ease;
    background: #fafafa;
    line-height: 1.6;
}

#commentform textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(11, 178, 122, 0.08);
}

#commentform textarea::placeholder {
    color: #999;
}

/* 内嵌发送按钮 */
.submit-button-inline {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(11, 178, 122, 0.3);
}

.submit-button-inline:hover {
    background: var(--primary-dark);
    transform: scale(1.1) rotate(-10deg);
    box-shadow: 0 4px 16px rgba(11, 178, 122, 0.5);
}

.submit-button-inline:active {
    transform: scale(0.95) rotate(-10deg);
}

.submit-button-inline i {
    transform: translateX(1px);
}

/* 隐藏原提交按钮 */
.submit-button-hidden {
    display: none !important;
}

/* 信息字段 */
#commentform input[type="text"],
#commentform input[type="email"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fafafa;
}

#commentform input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(11, 178, 122, 0.08);
}

#commentform input::placeholder {
    color: #999;
}

/* QQ快速填充按钮 */
.qq-quick-fill-btn {
    width: 100%;
    padding: 14px 16px;
    background: linear-gradient(135deg, #12b7f5 0%, #0e9de6 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.qq-quick-fill-btn:hover {
    background: linear-gradient(135deg, #0e9de6 0%, #0a8dd6 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(18, 183, 245, 0.4);
}

.qq-quick-fill-btn i {
    font-size: 18px;
}

/* 表单提交区域 */
.form-submit {
    margin: 0;
    display: none;
}

/* 评论区移动端响应式 */
@media (max-width: 576px) {
    .comment-wrapper {
        gap: 8px;
    }
    
    .comment-avatar img {
        width: 36px;
        height: 36px;
    }
    
    .comment-main {
        padding: 10px 12px;
    }
    
    .comment-content {
        font-size: 13px;
    }
    
    .comment-number {
        font-size: 11px;
        top: 15px;
        right: 12px;
    }
    
    .comment-list .children {
        margin-left: 36px;
    }
    
    .submit-button-inline {
        width: 38px;
        height: 38px;
        font-size: 14px;
        bottom: 10px;
        right: 10px;
    }
    
    /* 用户信息栏移动端 */
    .user-info-bar {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 10px 12px;
    }
    
    .user-info-content {
        justify-content: center;
    }
    
    .user-email {
        display: none;
    }
    
    .comment-logout-btn {
        width: 100%;
        justify-content: center;
    }
}

/* 旧版提交按钮样式兼容 */
.form-submit input[type="submit"] {
    padding: 12px 30px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.form-submit input[type="submit"]:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(11, 178, 122, 0.3);
}

.required {
    color: #f5576c;
}

/* ========================================
   分页样式
======================================== */
.pagination {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.pagination a,
.pagination span {
    padding: 8px 12px;
    background: transparent;
    color: var(--text-medium);
    border-radius: 6px;
    transition: var(--transition);
    font-weight: 500;
    font-size: 0.9em;
    min-width: 36px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination a:hover {
    background: var(--secondary-color);
    color: var(--text-dark);
}

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

.pagination .dots {
    background: transparent;
    color: var(--text-light);
    cursor: default;
}

.pagination .prev,
.pagination .next {
    padding: 8px 16px;
    background: var(--secondary-color);
    color: var(--text-medium);
    border-radius: 6px;
    font-size: 0.85em;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pagination .prev:hover,
.pagination .next:hover {
    background: var(--primary-color);
    color: #fff;
}

/* ========================================
   归档页面样式
======================================== */
.archive-header,
.search-header {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: var(--shadow-sm);
}

.archive-title,
.search-title {
    font-size: 2em;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.archive-description {
    color: var(--text-medium);
    line-height: 1.8;
}

/* 分类页面特殊样式 */
.category-header {
    text-align: left;
}

.category-info {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 30px;
}

.category-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(11, 178, 122, 0.3);
}

.category-icon i {
    font-size: 1.5em;
    color: #fff;
}

.category-content {
    flex: 1;
}

.category-title {
    font-size: 2.2em;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    line-height: 1.2;
}

.category-description {
    color: var(--text-medium);
    font-size: 1.1em;
    line-height: 1.8;
    margin-bottom: 0;
}

.category-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.category-tag {
    padding: 6px 14px;
    background: var(--secondary-color);
    color: var(--text-medium);
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
}

.category-tag:hover {
    background: var(--primary-color);
    color: #fff;
    transform: translateY(-2px);
}

.search-query {
    color: var(--primary-color);
}

.search-results-count {
    color: var(--text-light);
    margin-top: 10px;
}

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

.error-404-title {
    font-size: 8em;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 20px;
}

.error-404-subtitle {
    font-size: 2em;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.error-404-text {
    color: var(--text-medium);
    font-size: 1.1em;
    margin-bottom: 30px;
}

.error-404-search {
    max-width: 500px;
    margin: 0 auto 30px;
}

.error-404-search p {
    margin-bottom: 15px;
    color: var(--text-medium);
}

.error-404-actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.button {
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

.button-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(11, 178, 122, 0.3);
}

.button-secondary {
    background: #fff;
    color: var(--text-medium);
    border: 2px solid var(--border-color);
}

.button-secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* ========================================
   无结果页面
======================================== */
.no-posts,
.no-results {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 60px 40px;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.no-posts i,
.no-results i {
    font-size: 4em;
    color: var(--text-light);
    margin-bottom: 20px;
}

.no-results h2 {
    font-size: 1.8em;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.no-results p {
    color: var(--text-medium);
    margin-bottom: 15px;
}

.no-results ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.no-results li {
    color: var(--text-medium);
    margin-bottom: 10px;
}

.search-again {
    max-width: 500px;
    margin: 30px auto 0;
}

/* ========================================
   返回顶部按钮
======================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2em;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

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

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

/* ========================================
   通知提示
======================================== */
.notification {
    position: fixed;
    top: 90px;
    right: 20px;
    background: #fff;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    opacity: 0;
    transform: translateX(400px);
    transition: all 0.3s ease;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-info {
    border-left: 4px solid var(--primary-color);
}

.notification-success {
    border-left: 4px solid #4caf50;
}

.notification-error {
    border-left: 4px solid #f44336;
}

/* ========================================
   QQ号输入弹窗
======================================== */
.qq-input-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.qq-input-modal.show {
    opacity: 1;
    visibility: visible;
}

.qq-input-modal.show .qq-input-modal-content {
    transform: scale(1);
}

.qq-input-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.qq-input-modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.qq-input-header {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.qq-input-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.qq-input-header h3 i {
    color: #12b7f5;
    font-size: 20px;
}

.qq-input-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.qq-input-close:hover {
    background: #f5f5f5;
    color: var(--text-dark);
}

.qq-input-body {
    padding: 30px 20px;
}

.qq-input-tip {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: #666;
    text-align: center;
}

.qq-number-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    text-align: center;
    transition: all 0.3s ease;
    background: #fafafa;
    letter-spacing: 1px;
}

.qq-number-input:focus {
    outline: none;
    border-color: #12b7f5;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(18, 183, 245, 0.1);
}

.qq-input-error {
    margin-top: 10px;
    padding: 8px 12px;
    background: #fff3f3;
    color: #f44336;
    border-radius: 6px;
    font-size: 13px;
    text-align: center;
}

.qq-input-footer {
    padding: 15px 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.qq-input-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qq-input-cancel {
    background: #f5f5f5;
    color: var(--text-medium);
}

.qq-input-cancel:hover {
    background: #e5e5e5;
}

.qq-input-submit {
    background: #12b7f5;
    color: #fff;
}

.qq-input-submit:hover:not(:disabled) {
    background: #0e9de6;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(18, 183, 245, 0.3);
}

.qq-input-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ========================================
   QQ信息确认弹窗
======================================== */
.qq-info-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.qq-info-modal.show {
    opacity: 1;
    visibility: visible;
}

.qq-info-modal.show .qq-info-modal-content {
    transform: scale(1);
}

.qq-info-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.qq-info-modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.qq-info-header {
    padding: 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.qq-info-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
}

.qq-info-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.qq-info-close:hover {
    background: #f5f5f5;
    color: var(--text-dark);
}

.qq-info-body {
    padding: 30px 20px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.qq-info-avatar {
    flex-shrink: 0;
}

.qq-info-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--primary-color);
    box-shadow: 0 2px 8px rgba(11, 178, 122, 0.2);
}

.qq-info-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.qq-info-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qq-info-item label {
    font-size: 14px;
    color: #999;
    min-width: 60px;
    font-weight: 500;
}

.qq-info-item span {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 600;
}

.qq-info-footer {
    padding: 15px 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.qq-info-btn {
    padding: 10px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.qq-info-cancel {
    background: #f5f5f5;
    color: var(--text-medium);
}

.qq-info-cancel:hover {
    background: #e5e5e5;
}

.qq-info-confirm {
    background: var(--primary-color);
    color: #fff;
}

.qq-info-confirm:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(11, 178, 122, 0.3);
}

/* 移动端响应式 */
@media (max-width: 576px) {
    .qq-info-modal-content {
        max-width: 90%;
        margin: 20px;
    }
    
    .qq-info-body {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 20px;
    }
    
    .qq-info-avatar img {
        width: 100px;
        height: 100px;
    }
    
    .qq-info-details {
        width: 100%;
    }
    
    .qq-info-item {
        justify-content: center;
    }
    
    .qq-info-footer {
        flex-direction: column-reverse;
    }
    
    .qq-info-btn {
        width: 100%;
    }
}

/* ========================================
   加载动画
======================================== */
.loading {
    pointer-events: none;
    opacity: 0.6;
}

.fa-beat {
    animation: fa-beat 1s ease-in-out;
}

@keyframes fa-beat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ========================================
   章节标题
======================================== */
.section-header {
    margin-bottom: 25px;
}

.section-title {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

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

/* ========================================
   工具类
======================================== */
.text-gradient {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* ========================================
   最新评论小工具样式
======================================== */
.recent-comments-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.recent-comment-item {
    display: flex;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.recent-comment-item:first-child {
    padding-top: 0;
}

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

.recent-comment-item:hover {
    background: var(--bg-light);
    padding-left: 10px;
    padding-right: 10px;
    margin-left: -10px;
    margin-right: -10px;
    border-radius: 8px;
}

.comment-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
}

.comment-avatar-wrapper img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}

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

.recent-comment-item .comment-meta {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 2px;
    line-height: 1;
}

.recent-comment-item .comment-author {
    font-size: 0.9em;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1;
}

.recent-comment-item .comment-time {
    font-size: 0.75em;
    color: var(--text-light);
    flex-shrink: 0;
    margin-left: 8px;
    line-height: 1;
}

.comment-excerpt {
    font-size: 0.85em;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 4px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.comment-post-link {
    font-size: 0.8em;
}

.comment-post-link i {
    color: var(--primary-color);
    margin-right: 3px;
}

.comment-post-link a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

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

.no-comments {
    text-align: center;
    color: var(--text-light);
    padding: 20px;
    font-size: 0.9em;
}

/* 用户徽章样式 - 与评论区保持一致 */
.recent-comment-item .avatar-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    border: 2px solid #fff;
    z-index: 1;
}

.recent-comment-item .admin-badge {
    background: linear-gradient(135deg, #ffd700, #ffed4e);
    color: #333;
}

.recent-comment-item .registered-badge {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
}

.recent-comment-item .qq-badge {
    background: linear-gradient(135deg, #12b7f5, #0e9cd9);
    color: #fff;
}

/* ========================================
   文章目录小工具样式
======================================== */
.toc-navigation {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
}

.toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    counter-reset: toc-counter;
}

.toc-list.no-numbers {
    counter-reset: none;
}

.toc-list.no-numbers .toc-item::before {
    display: none;
}

.toc-list.no-numbers .toc-link {
    padding-left: 0;
}

.toc-item {
    margin: 0;
    padding: 0;
    counter-increment: toc-counter;
}

.toc-item {
    position: relative;
}

.toc-item::before {
    content: counters(toc-counter, ".") ". ";
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9em;
    position: absolute;
    left: 0;
    top: 6px;
}

.toc-link {
    display: block;
    padding: 6px 0 6px 30px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9em;
    line-height: 1.5;
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
    padding-left: 38px;
    margin-left: -8px;
}

.toc-link:hover {
    color: var(--primary-color);
    background: rgba(11, 178, 122, 0.05);
    border-left-color: var(--primary-color);
}

.toc-link.active {
    color: var(--primary-color);
    font-weight: 600;
    background: rgba(11, 178, 122, 0.08);
    border-left-color: var(--primary-color);
}

.toc-sublist {
    list-style: none;
    margin: 4px 0 4px 20px;
    padding: 0;
    counter-reset: toc-counter;
}

.toc-level-2 {
    font-size: 0.95em;
}

.toc-level-3 {
    font-size: 0.9em;
    margin-left: 15px;
}

.toc-level-4 {
    font-size: 0.85em;
    margin-left: 30px;
    opacity: 0.9;
}

.toc-level-5,
.toc-level-6 {
    font-size: 0.8em;
    margin-left: 45px;
    opacity: 0.85;
}

/* 目录动画效果 */
.toc-item {
    animation: fadeInUp 0.3s ease forwards;
    opacity: 0;
}

.toc-item:nth-child(1) { animation-delay: 0.05s; }
.toc-item:nth-child(2) { animation-delay: 0.1s; }
.toc-item:nth-child(3) { animation-delay: 0.15s; }
.toc-item:nth-child(4) { animation-delay: 0.2s; }
.toc-item:nth-child(5) { animation-delay: 0.25s; }
.toc-item:nth-child(n+6) { animation-delay: 0.3s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .toc-navigation {
        padding: 12px;
    }
    
    .toc-link {
        font-size: 0.85em;
    }
    
    .toc-sublist {
        margin-left: 15px;
    }
    
    .toc-level-3 {
        margin-left: 10px;
    }
    
    .toc-level-4 {
        margin-left: 20px;
    }
    
    .toc-level-5,
    .toc-level-6 {
        margin-left: 30px;
    }
    
    .recent-comment-item {
        gap: 10px;
    }
    
    .comment-avatar-wrapper {
        width: 35px;
        height: 35px;
    }
    
    .comment-avatar-wrapper img {
        width: 35px;
        height: 35px;
    }
    
    .comment-excerpt {
        font-size: 0.8em;
    }
}










