/* 竹溪日记 - 现代化样式设计 */

/* 全局变量 */
:root {
    --primary-color: #e74c3c;
    --secondary-color: #34495e;
    --success-color: #27ae60;
    --info-color: #3498db;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --light-color: #ecf0f1;
    --dark-color: #2c3e50;
    
    --text-color: #333;
    --text-muted: #666;
    --text-light: #999;
    --bg-color: #fff;
    --bg-light: #f8f9fa;
    --bg-gray: #f5f5f5;
    --border-color: #e8e8e8;
    
    --font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    --font-size-base: 14px;
    --line-height-base: 1.7;
    
    --border-radius: 4px;
    --box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    --box-shadow-hover: 0 4px 16px rgba(0,0,0,0.12);
    --transition: all 0.3s ease;
}

/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height-base);
    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: #c0392b;
    text-decoration: none;
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-color);
    font-weight: 600;
    margin-bottom: 0.8em;
    line-height: 1.4;
}

h1 { font-size: 28px; }
h2 { font-size: 24px; }
h3 { font-size: 20px; }
h4 { font-size: 18px; }
h5 { font-size: 16px; }
h6 { font-size: 14px; }

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 导航栏样式 */
.navbar {
    background-color: var(--bg-color);
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid var(--border-color);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 15px;
}

.navbar-brand {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-color) !important;
    padding: 15px 0;
    display: flex;
    align-items: center;
}

.navbar-brand i {
    margin-right: 8px;
    font-size: 24px;
}

.navbar-nav {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar-nav .nav-item {
    margin: 0;
}

.navbar-nav .nav-link {
    color: var(--text-muted) !important;
    font-weight: 400;
    padding: 15px 20px !important;
    transition: var(--transition);
    position: relative;
    display: block;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background: var(--primary-color);
}

/* Banner区域样式 */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: 18px;
    margin-bottom: 40px;
    opacity: 0.9;
    font-weight: 300;
}

/* 搜索框样式 - 放在Banner中 */
.search-container {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
}

.search-form {
    display: flex;
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

.search-input {
    flex: 1;
    padding: 15px 20px;
    border: none;
    font-size: 16px;
    outline: none;
    background: transparent;
}

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

.search-btn {
    background: var(--primary-color);
    border: none;
    padding: 15px 25px;
    color: white;
    cursor: pointer;
    transition: var(--transition);
}

.search-btn:hover {
    background: #c0392b;
}

.search-btn i {
    font-size: 16px;
}

/* 主要内容区域 */
.main-content {
    padding: 40px 0;
}

/* 栏目导航样式 */
.category-nav {
    background: var(--bg-light);
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}

.category-nav .nav-list {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.category-nav .nav-item {
    margin: 5px 15px;
}

.category-nav .nav-link {
    display: block;
    padding: 12px 24px;
    background: white;
    border-radius: var(--border-radius);
    color: var(--text-color);
    font-weight: 500;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.category-nav .nav-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: var(--box-shadow-hover);
}

.category-nav .nav-link i {
    margin-right: 6px;
}

/* 卡片样式 */
.card {
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    margin-bottom: 20px;
}

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

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
}

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

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

.card-text {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 15px;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-light);
}

.card-meta .meta-item {
    display: flex;
    align-items: center;
}

.card-meta .meta-item i {
    margin-right: 4px;
}

/* 文章列表样式 */
.article-list {
    background: var(--bg-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.article-item {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.article-item:hover {
    background: var(--bg-light);
}

.article-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.5;
}

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

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

.article-excerpt {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 10px;
}

.article-meta {
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 15px;
}

/* 侧边栏样式 */
.sidebar {
    background: var(--bg-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
    margin-bottom: 20px;
}

.sidebar-header {
    background: var(--bg-light);
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
    margin: 0;
}

.sidebar-body {
    padding: 20px;
}

.sidebar ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar ul li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

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

.sidebar ul li a {
    color: var(--text-color);
    display: block;
    transition: var(--transition);
    font-size: 14px;
}

.sidebar ul li a:hover {
    color: var(--primary-color);
    padding-left: 8px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1.4;
}

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

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

.btn-outline-primary {
    background: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    color: white;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 16px;
}

/* 标签样式 */
.badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 12px;
    margin: 2px 4px 2px 0;
}

.badge-primary {
    background: var(--primary-color);
    color: white;
}

.badge-secondary {
    background: var(--secondary-color);
    color: white;
}

.badge-light {
    background: var(--light-color);
    color: var(--text-color);
}

/* 面包屑导航 */
/* 旧的面包屑样式已移除，统一使用新样式 */

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
    list-style: none;
    padding: 0;
}

.page-item {
    margin: 0 2px;
}

.page-link {
    display: block;
    padding: 8px 12px;
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
}

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

.page-item.active .page-link {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-item.disabled .page-link {
    color: var(--text-light);
    pointer-events: none;
}

/* 文章详情页样式 */
.article-detail {
    background: var(--bg-color);
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    overflow: hidden;
}

.article-header {
    padding: 30px;
    border-bottom: 1px solid var(--border-color);
}

.article-detail .article-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1.3;
    color: var(--text-color);
}

.article-detail .article-meta {
    color: var(--text-light);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.article-content {
    padding: 30px;
    line-height: 1.8;
    font-size: 16px;
    color: var(--text-color);
}

.article-content h2,
.article-content h3 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.article-content p {
    margin-bottom: 20px;
    text-indent: 2em;
}

.article-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding-left: 20px;
    margin: 20px 0;
    color: var(--text-muted);
    font-style: italic;
}

/* 相关文章 */
.related-articles {
    background: var(--bg-light);
    padding: 20px;
}

.related-articles h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-color);
}

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

.related-list li {
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

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

.related-list a {
    color: var(--text-color);
    font-size: 14px;
    line-height: 1.5;
}

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

/* 工具栏 */
.article-toolbar {
    padding: 20px 30px;
    background: var(--bg-light);
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.article-tags .badge {
    margin-right: 5px;
}

.article-actions {
    display: flex;
    gap: 10px;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: var(--box-shadow);
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
}

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

.back-to-top:hover {
    background: #c0392b;
    transform: translateY(-3px);
    box-shadow: var(--box-shadow-hover);
}

/* 阅读进度条 */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: rgba(231, 76, 60, 0.1);
    z-index: 9999;
}

.reading-progress-bar {
    height: 100%;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .search-form {
        margin: 0 20px;
    }
    
    .navbar .container {
        flex-direction: column;
        padding: 10px 15px;
    }
    
    .navbar-nav {
        margin-top: 10px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .navbar-nav .nav-link {
        padding: 10px 15px !important;
    }
    
    .category-nav .nav-list {
        flex-direction: column;
        align-items: center;
    }
    
    .category-nav .nav-item {
        margin: 5px 0;
    }
    
    .article-detail .article-title {
        font-size: 22px;
    }
    
    .article-header,
    .article-content {
        padding: 20px;
    }
    
    .article-toolbar {
        padding: 15px 20px;
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

@media (max-width: 576px) {
    .container {
        padding: 0 10px;
    }
    
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .search-form {
        margin: 0 10px;
    }
    
    .search-input {
        padding: 12px 15px;
        font-size: 14px;
    }
    
    .search-btn {
        padding: 12px 20px;
    }
    
    .card-body {
        padding: 15px;
    }
    
    .sidebar-body {
        padding: 15px;
    }
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

.pulse {
    animation: pulse 2s infinite;
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.loading i {
    font-size: 24px;
    margin-bottom: 10px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 错误页面 */
.error-page {
    text-align: center;
    padding: 60px 20px;
}

.error-code {
    font-size: 72px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.error-message {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 30px;
}

/* 特殊样式 */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted) !important; }
.text-primary { color: var(--primary-color) !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }

.p-0 { padding: 0 !important; }
.p-1 { padding: 0.25rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }

.d-none { display: none !important; }
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.d-inline { display: inline !important; }
.d-inline-block { display: inline-block !important; }

.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.align-items-center { align-items: center !important; }

.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }

/* 新版首页样式 */
/* 顶部栏目导航 */
.category-nav-bar {
    background: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 0.5rem 0;
}

.category-nav {
    gap: 2rem;
}

.category-nav-item {
    color: #495057;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: all 0.3s;
}

.category-nav-item:hover {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
}

/* 紧凑的Hero区域 */
.compact-hero {
    background: linear-gradient(135deg, var(--primary-color), #2980b9);
    color: white;
    padding: 2rem 0;
}

.compact-hero .hero-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.compact-hero .hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 0;
}

/* 左侧栏目边栏 */
.category-sidebar {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.category-sidebar .widget-title {
    font-size: 1.1rem;
    color: var(--text-color);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.category-list .category-group {
    margin-bottom: 1.5rem;
}

.category-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    color: var(--text-color);
    font-weight: 500;
    transition: all 0.3s;
    margin-bottom: 0.5rem;
}

.category-link:hover {
    background: var(--primary-color);
    color: white;
    text-decoration: none;
}

.category-link i {
    margin-right: 0.5rem;
}

.article-count {
    font-size: 0.85rem;
    color: #6c757d;
}

.category-link:hover .article-count {
    color: rgba(255,255,255,0.8);
}

.subcategory-list {
    margin-left: 1rem;
    padding-left: 1rem;
    border-left: 2px solid #e9ecef;
}

.subcategory-link {
    display: block;
    padding: 0.4rem 0.5rem;
    color: #6c757d;
    font-size: 0.9rem;
    transition: all 0.3s;
    border-radius: 4px;
    margin-bottom: 0.2rem;
}

.subcategory-link:hover {
    background: #e9ecef;
    color: var(--primary-color);
    text-decoration: none;
}

/* 内容区域 */
.main-content {
    padding: 2rem 0;
    background: #f8f9fa;
}

.content-section {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e9ecef;
}

.section-header h2 {
    font-size: 1.25rem;
    margin: 0;
    color: var(--text-color);
}

.more-link {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
}

.more-link:hover {
    color: #c0392b;
    text-decoration: none;
}

/* 文章卡片 */
.article-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    height: 100%;
}

.article-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.article-image {
    position: relative;
    overflow: hidden;
    height: 120px;
}

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

.placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
}

.article-category {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
}

.article-content {
    padding: 1rem;
}

.article-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

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

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

.article-excerpt {
    color: #6c757d;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #6c757d;
}

/* 三栏展示 */
.category-showcase {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.showcase-column {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 1.25rem;
}

.showcase-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

.showcase-title a {
    color: var(--text-color);
    font-weight: 600;
}

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

.showcase-list {
    space-y: 0.5rem;
}

.showcase-item {
    border-bottom: 1px solid #e9ecef;
}

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

.showcase-item-link {
    display: block;
    padding: 0.75rem 0;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s ease;
}

.showcase-item-link:hover {
    background-color: #f8f9fa;
    border-radius: 4px;
    text-decoration: none;
    color: inherit;
}

.showcase-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

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

.showcase-item-link:hover .showcase-title-link {
    color: var(--primary-color);
}

.showcase-excerpt {
    color: #6c757d;
    font-size: 0.8rem;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.showcase-date {
    color: #6c757d;
    font-size: 0.75rem;
    white-space: nowrap;
    align-self: flex-end;
    margin-top: 0.25rem;
}

/* 右侧边栏 */
.sidebar {
    padding-left: 1rem;
}

.widget {
    background: white;
    border-radius: 8px;
    margin-bottom: 2rem;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.widget-title {
    background: var(--primary-color);
    color: white;
    padding: 1rem 1.25rem;
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.widget-content {
    padding: 1.25rem;
}

/* 推荐文章 */
.recommended-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.recommended-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.item-rank {
    background: var(--primary-color);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.item-info h4 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.item-info h4 a {
    color: var(--text-color);
}

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

.item-meta {
    font-size: 0.75rem;
    color: #6c757d;
}

.item-meta span {
    margin-right: 0.5rem;
}

/* 最新作文推荐 */
.latest-item {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e9ecef;
}

.latest-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.latest-item h4 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.latest-item h4 a {
    color: var(--text-color);
}

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

.latest-item .item-meta {
    font-size: 0.75rem;
    color: #6c757d;
}

/* 作文点评 */
.review-section {
    space-y: 1rem;
}

.review-item {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.review-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.review-item h4 {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
    color: var(--text-color);
}

.review-text {
    font-size: 0.85rem;
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.review-meta {
    display: flex;
    align-items: center;
}

.review-tag {
    background: #28a745;
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: 500;
}

/* 标签云 */
.tag-cloud {
    line-height: 2;
}

.tag-item {
    display: inline-block;
    background: #f8f9fa;
    color: var(--text-color);
    padding: 0.25rem 0.6rem;
    margin: 0.2rem;
    border-radius: 4px;
    font-size: 0.8rem;
    border: 1px solid #e9ecef;
    transition: all 0.3s;
}

.tag-item:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    text-decoration: none;
}

/* 新版响应式设计 */
@media (max-width: 768px) {
    .category-showcase {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .category-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .compact-hero {
        padding: 1.5rem 0;
    }
    
    .compact-hero .hero-title {
        font-size: 1.75rem;
    }
    
    .sidebar {
        padding-left: 0;
        margin-top: 2rem;
    }
}

/* 栏目页面样式 */
.category-nav-item.active {
    background: var(--primary-color);
    color: white !important;
}

.breadcrumb-section {
    background: #f8f9fa;
    padding: 0.5rem 0;
    border-bottom: 1px solid #dee2e6;
}

.breadcrumb {
    margin: 0;
    background: none;
    padding: 0;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.breadcrumb-item {
    color: #6c757d;
    text-decoration: none;
    display: inline-block;
}

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

.breadcrumb-separator {
    margin: 0 0.5rem;
    color: #6c757d;
    display: inline-block;
}

.breadcrumb-current {
    color: var(--text-color);
    font-weight: 500;
    display: inline-block;
}

.category-header {
    background: white;
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.category-title {
    font-size: 1.75rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.category-stats {
    color: #6c757d;
    font-size: 0.9rem;
}

.stats-item {
    margin-right: 1rem;
}

.latest-articles {
    margin-bottom: 2rem;
}

.featured-article {
    position: relative;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.article-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: #28a745;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
}

.featured-article .article-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.featured-article .article-title a {
    color: var(--text-color);
}

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

.featured-article .article-excerpt {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.read-more {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
}

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

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.article-item {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    transition: all 0.3s;
    overflow: hidden;
}

.article-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.article-item .article-link {
    display: flex;
    align-items: center;
    padding: 1rem;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
}

.article-item .article-link:hover {
    text-decoration: none;
    color: inherit;
}

.article-icon {
    margin-right: 0.75rem;
    color: var(--primary-color);
    font-size: 1.1rem;
}

.article-info {
    flex: 1;
}

.article-item .article-title {
    font-size: 0.95rem;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.article-item .article-title a {
    color: var(--text-color);
}

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

.article-preview {
    font-size: 0.85rem;
    color: #8a8a8a;
    margin: 0.4rem 0;
    line-height: 1.4;
}

.article-item .article-meta {
    font-size: 0.8rem;
    color: #6c757d;
}

.article-item .article-meta span {
    margin-right: 0.5rem;
}

/* 右侧边栏 */
/* 广告位样式 - 已隐藏，后续可自行调整 */
/*
.ad-widget {
    margin-bottom: 2rem;
}

.ad-placeholder {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-content {
    text-align: center;
    color: #6c757d;
}

.ad-content i {
    margin-bottom: 0.5rem;
}
*/

.hot-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.hot-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.hot-item .item-rank {
    background: #dc3545;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.hot-item .item-rank:nth-child(1) {
    background: #dc3545;
}

.hot-item:nth-child(2) .item-rank {
    background: #fd7e14;
}

.hot-item:nth-child(3) .item-rank {
    background: #ffc107;
}

.hot-item:nth-child(n+4) .item-rank {
    background: #6c757d;
}

.related-item {
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e9ecef;
}

.related-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.related-item h4 {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    line-height: 1.4;
}

.related-item h4 a {
    color: var(--text-color);
}

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

.related-item .item-meta {
    font-size: 0.75rem;
    color: #6c757d;
}

/* 栏目页响应式设计 */
@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
    
    .category-header {
        padding: 1.5rem;
    }
    
    .category-title {
        font-size: 1.5rem;
    }
    
    .featured-article {
        padding: 1rem;
    }
}

/* ===== 文学风格样式 ===== */

/* 文学风格Hero区域 */
.literary-hero {
    min-height: 60vh;
    background: linear-gradient(135deg, 
        rgba(139, 69, 19, 0.9) 0%,
        rgba(160, 82, 45, 0.8) 25%,
        rgba(205, 133, 63, 0.7) 50%,
        rgba(222, 184, 135, 0.6) 100%
    ),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 800"><defs><radialGradient id="bg" cx="50%" cy="50%"><stop offset="0%" stop-color="%23f4f1e8"/><stop offset="100%" stop-color="%23e8dcc0"/></radialGradient></defs><rect width="1200" height="800" fill="url(%23bg)"/><g opacity="0.1"><path d="M100 200 Q300 100 500 200 T900 200" stroke="%23d4af37" stroke-width="2" fill="none"/><path d="M200 400 Q400 300 600 400 T1000 400" stroke="%23daa520" stroke-width="1.5" fill="none"/><path d="M50 600 Q250 500 450 600 T850 600" stroke="%23b8860b" stroke-width="1" fill="none"/></g></svg>');
    background-size: cover;
    background-position: center;
    color: #2c1810;
    position: relative;
    display: flex;
    align-items: center;
}

.literary-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="paper" width="20" height="20" patternUnits="userSpaceOnUse"><rect width="20" height="20" fill="none"/><circle cx="2" cy="2" r="0.5" fill="rgba(218,165,32,0.1)"/><circle cx="18" cy="18" r="0.5" fill="rgba(218,165,32,0.1)"/><circle cx="10" cy="15" r="0.3" fill="rgba(139,69,19,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23paper)"/></svg>') repeat;
    pointer-events: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, 
        rgba(255,248,220,0.1) 0%, 
        rgba(139,69,19,0.2) 100%
    );
}

.title-main {
    display: block;
    font-size: 3.5rem;
    font-weight: 300;
    font-family: 'STKaiti', 'KaiTi', 'SimKai', serif;
    color: #8b4513;
    text-shadow: 2px 2px 4px rgba(139,69,19,0.3);
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
}

.title-subtitle {
    display: block;
    font-size: 1.2rem;
    color: #a0522d;
    font-weight: 400;
    opacity: 0.9;
    font-style: italic;
}

.hero-poem {
    font-size: 1.3rem;
    line-height: 1.8;
    color: #654321;
    font-family: 'STKaiti', 'KaiTi', 'SimKai', serif;
    margin: 2rem 0;
    padding: 1.5rem;
    background: rgba(255,248,220,0.3);
    border-radius: 15px;
    border: 1px solid rgba(218,165,32,0.3);
    box-shadow: 0 4px 15px rgba(139,69,19,0.1);
    backdrop-filter: blur(5px);
}

.poem-author {
    font-size: 0.9rem;
    color: #8b4513;
    font-style: italic;
    margin-top: 0.5rem;
    display: block;
}

/* 搜索框重新设计 */
.search-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-wrapper .search-input {
    width: 100%;
    padding: 15px 60px 15px 20px;
    border: 2px solid rgba(139,69,19,0.3);
    border-radius: 30px;
    background: rgba(255,248,220,0.9);
    color: #654321;
    font-size: 16px;
    font-family: 'Microsoft YaHei', sans-serif;
    box-shadow: 0 4px 15px rgba(139,69,19,0.1);
    transition: all 0.3s ease;
}

.search-wrapper .search-input:focus {
    border-color: #daa520;
    box-shadow: 0 6px 20px rgba(218,165,32,0.2);
    outline: none;
}

.search-wrapper .btn-search {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: linear-gradient(45deg, #daa520, #b8860b);
    border: none;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    color: white;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-wrapper .btn-search:hover {
    background: linear-gradient(45deg, #b8860b, #daa520);
    transform: translateY(-50%) scale(1.05);
}

.tags-label {
    color: #8b4513;
    font-weight: 500;
    margin-right: 10px;
}

.search-tag {
    display: inline-block;
    padding: 6px 15px;
    margin: 0 8px 8px 0;
    background: rgba(218,165,32,0.1);
    color: #8b4513;
    text-decoration: none;
    border-radius: 20px;
    border: 1px solid rgba(218,165,32,0.3);
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-tag:hover {
    background: rgba(218,165,32,0.2);
    color: #654321;
    transform: translateY(-2px);
}

/* 栏目导航样式 */
.category-navigation {
    background: rgba(255,248,220,0.8);
    padding: 40px 0;
    border-bottom: 1px solid rgba(218,165,32,0.2);
}

.nav-wrapper {
    text-align: center;
}

.category-nav {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.category-nav .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 25px 30px;
    background: rgba(255,255,255,0.8);
    border-radius: 20px;
    text-decoration: none;
    color: #654321;
    transition: all 0.3s ease;
    border: 2px solid rgba(218,165,32,0.2);
    box-shadow: 0 4px 15px rgba(139,69,19,0.1);
    min-width: 150px;
}

.category-nav .nav-item:hover {
    background: rgba(218,165,32,0.1);
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(139,69,19,0.2);
    color: #8b4513;
}

.category-nav .nav-item i {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #daa520;
}

.category-nav .nav-item span {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.category-nav .nav-item small {
    font-size: 0.85rem;
    opacity: 0.8;
    font-style: italic;
}

/* 主要内容区域 */
.main-content {
    padding: 60px 0;
    background: linear-gradient(to bottom, #faf8f1, #f5f2e8);
}

/* 今日推荐区域 */
.featured-section {
    margin-bottom: 50px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    color: #8b4513;
    font-family: 'STKaiti', 'KaiTi', 'SimKai', serif;
}

.section-title i {
    color: #daa520;
    font-size: 1.5rem;
}

.section-title span {
    font-size: 2rem;
    font-weight: 300;
}

.section-title small {
    color: #a0522d;
    font-style: italic;
    font-size: 1rem;
}

.featured-article {
    background: rgba(255,255,255,0.9);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(139,69,19,0.1);
    border: 1px solid rgba(218,165,32,0.2);
}

.article-image-large {
    position: relative;
    height: 250px;
    border-radius: 15px;
    overflow: hidden;
    background: linear-gradient(45deg, rgba(218,165,32,0.1), rgba(139,69,19,0.1));
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-placeholder {
    color: rgba(139,69,19,0.3);
}

.article-overlay {
    position: absolute;
    top: 15px;
    right: 15px;
}

.category-badge {
    background: rgba(218,165,32,0.9);
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.article-title-large {
    font-size: 1.8rem;
    color: #654321;
    margin-bottom: 15px;
    font-family: 'STKaiti', 'KaiTi', 'SimKai', serif;
    line-height: 1.4;
}

.article-title-large a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-title-large a:hover {
    color: #8b4513;
}

.article-excerpt-large {
    color: #8b4513;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 1rem;
}

.article-meta-large {
    display: flex;
    gap: 20px;
    color: #a0522d;
    font-size: 14px;
}

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

/* 分类文章展示 */
.category-articles {
    margin-top: 40px;
}

.category-box {
    background: rgba(255,255,255,0.9);
    border-radius: 12px;
    padding: 20px;
    height: 100%;
    box-shadow: 0 4px 16px rgba(139,69,19,0.06);
    border: 1px solid rgba(218,165,32,0.15);
    transition: all 0.3s ease;
}

.category-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(139,69,19,0.12);
}

.category-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(218,165,32,0.2);
}

.category-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
    color: #654321;
    font-family: 'STKaiti', 'KaiTi', 'SimKai', serif;
}

.category-title i {
    color: #daa520;
}

.category-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.category-title a:hover {
    color: #8b4513;
}

.category-desc {
    color: #a0522d;
    font-style: italic;
    font-size: 0.9rem;
}

.article-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.article-item {
    padding: 15px 0;
    border-bottom: 1px solid rgba(218,165,32,0.1);
}

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

.article-item h4 {
    margin-bottom: 8px;
    font-size: 1rem;
}

.article-item h4 a {
    color: #654321;
    text-decoration: none;
    transition: color 0.3s ease;
}

.article-item h4 a:hover {
    color: #8b4513;
}

.article-summary {
    color: #8b4513;
    font-size: 0.85rem;
    line-height: 1.5;
    margin-bottom: 8px;
    opacity: 0.9;
}

.article-meta-small {
    display: flex;
    gap: 15px;
    color: #a0522d;
    font-size: 0.75rem;
}

/* 侧边栏样式 */
.sidebar {
    padding-left: 30px;
}

.widget {
    background: rgba(255,255,255,0.9);
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 6px 20px rgba(139,69,19,0.08);
    border: 1px solid rgba(218,165,32,0.15);
    overflow: hidden;
}

.widget-title {
    background: linear-gradient(45deg, rgba(218,165,32,0.1), rgba(139,69,19,0.1));
    padding: 20px 25px;
    margin: 0;
    color: #654321;
    font-size: 1.1rem;
    font-weight: 500;
    border-bottom: 1px solid rgba(218,165,32,0.2);
    display: flex;
    align-items: center;
    gap: 10px;
}

.widget-title i {
    color: #daa520;
}

.widget-content {
    padding: 25px;
}

/* 每日一诗样式 */
.poem-widget {
    background: linear-gradient(135deg, rgba(218,165,32,0.05), rgba(139,69,19,0.05));
}

.daily-poem {
    text-align: center;
}

.poem-content {
    padding: 20px;
    background: rgba(255,248,220,0.5);
    border-radius: 10px;
    border: 1px solid rgba(218,165,32,0.2);
}

.poem-text {
    font-family: 'STKaiti', 'KaiTi', 'SimKai', serif;
    font-size: 1.1rem;
    line-height: 1.8;
    color: #654321;
    margin-bottom: 15px;
}

.poem-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #8b4513;
}

.poem-title {
    font-weight: 600;
}

.poem-author {
    font-style: italic;
    opacity: 0.8;
}

/* 热门文章样式 */
.hot-articles {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.hot-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid rgba(218,165,32,0.1);
}

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

.hot-rank {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #daa520;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    flex-shrink: 0;
}

.hot-rank.rank-1 {
    background: linear-gradient(45deg, #ff6b6b, #ee5a24);
}

.hot-rank.rank-2 {
    background: linear-gradient(45deg, #ffa726, #ff9800);
}

.hot-rank.rank-3 {
    background: linear-gradient(45deg, #ffca28, #ffc107);
}

.hot-info h4 {
    margin-bottom: 5px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.hot-info h4 a {
    color: #654321;
    text-decoration: none;
    transition: color 0.3s ease;
}

.hot-info h4 a:hover {
    color: #8b4513;
}

.hot-meta {
    display: flex;
    gap: 10px;
    font-size: 0.75rem;
    color: #a0522d;
}

/* 分类链接样式 */
.category-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.category-link-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: rgba(255,248,220,0.3);
    border-radius: 8px;
    text-decoration: none;
    color: #654321;
    transition: all 0.3s ease;
    border: 1px solid rgba(218,165,32,0.1);
}

.category-link-item:hover {
    background: rgba(218,165,32,0.1);
    color: #8b4513;
    transform: translateX(5px);
}

.category-link-item i {
    color: #daa520;
    font-size: 1.1rem;
}

.category-link-item span {
    flex: 1;
    font-weight: 500;
}

.category-link-item small {
    color: #a0522d;
    font-size: 0.8rem;
}

/* 文学标签样式 */
.literary-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.literary-tags .tag-item {
    display: inline-block;
    padding: 8px 15px;
    background: rgba(218,165,32,0.1);
    color: #654321;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.85rem;
    border: 1px solid rgba(218,165,32,0.2);
    transition: all 0.3s ease;
}

.literary-tags .tag-item:hover {
    background: rgba(218,165,32,0.2);
    color: #8b4513;
    transform: translateY(-2px);
}

/* 名言警句样式 */
.quote-widget {
    background: linear-gradient(135deg, rgba(139,69,19,0.05), rgba(218,165,32,0.05));
}

.quote-box {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(255,248,220,0.5);
    border-radius: 10px;
    border-left: 4px solid #daa520;
}

.quote-box:last-child {
    margin-bottom: 0;
}

.quote-text {
    font-family: 'STKaiti', 'KaiTi', 'SimKai', serif;
    font-size: 1rem;
    color: #654321;
    margin-bottom: 8px;
    line-height: 1.6;
    font-style: italic;
}

.quote-author {
    color: #8b4513;
    font-size: 0.85rem;
    text-align: right;
    margin: 0;
    opacity: 0.8;
}

/* 文学风格响应式设计 */
@media (max-width: 768px) {
    .title-main {
        font-size: 2.5rem;
    }
    
    .hero-poem {
        font-size: 1.1rem;
        padding: 1rem;
    }
    
    .category-nav {
        gap: 20px;
    }
    
    .category-nav .nav-item {
        min-width: 120px;
        padding: 20px 25px;
    }
    
    .sidebar {
        padding-left: 0;
        margin-top: 40px;
    }
    
    .article-image-large {
        height: 200px;
    }
    
    .article-title-large {
        font-size: 1.5rem;
    }
}

/* 文章详情页信息网格 */
.article-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 20px 0;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.info-item-compact {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e3e3e3;
    transition: all 0.2s ease;
    font-size: 13px;
}

.info-item-compact:hover {
    background: #f0f8ff;
    border-color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.1);
}

.info-item-compact i {
    color: var(--primary-color);
    font-size: 14px;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.info-text {
    color: var(--text-color);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 响应式：移动端改为单列 */
@media (max-width: 768px) {
    .article-info-grid {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 12px;
    }
    
    .info-item-compact {
        padding: 10px 12px;
        font-size: 14px;
    }
}

/* 文章列表横向布局样式 */
.article-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.article-link:hover {
    text-decoration: none;
    color: inherit;
}

.article-item {
    margin-bottom: 1rem;
    padding: 0.8rem 1.2rem 1.2rem 1.2rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: var(--transition);
    min-height: 130px;
    position: relative;
}

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

.article-content {
    width: 100%;
}

.article-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    gap: 1rem;
    position: relative;
    padding-top: 0;
}

.article-title-horizontal {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
    margin: 0 0 0.3rem 0;
    flex: 1;
    line-height: 1.3;
    padding-right: 1rem;
}

.article-meta-horizontal {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
    flex-shrink: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    position: absolute;
    top: -0.2rem;
    right: 0;
}

.article-date {
    font-weight: 500;
    color: var(--primary-color);
}

.article-views {
    color: var(--text-light);
}

.article-summary {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 4.5rem;
    text-align: justify;
    word-wrap: break-word;
}

/* 相关推荐点击样式 - 保持原有样式，只添加点击功能 */
.widget-content .article-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.widget-content .article-link:hover {
    text-decoration: none;
    color: inherit;
}

.related-articles .article-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.related-articles .article-link:hover {
    text-decoration: none;
    color: inherit;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .article-item {
        padding: 1rem;
        min-height: 100px;
    }
    
    .article-header {
        flex-direction: column;
        gap: 0.5rem;
        margin-bottom: 0.6rem;
    }
    
    .article-meta-horizontal {
        position: static;
        flex-direction: row;
        align-items: center;
        align-self: flex-start;
        gap: 0.5rem;
        font-size: 0.75rem;
        top: auto;
    }
    
    .article-title-horizontal {
        font-size: 1rem;
        margin-bottom: 0.5rem;
        padding-right: 0;
    }
    
    .article-summary {
        font-size: 0.85rem;
        min-height: 3.6rem;
        -webkit-line-clamp: 2;
    }
}