/**
 * Simple Pro - SEO优化版样式表
 * 设计特点：年轻活力蓝色主题 + 极简美学 + 性能优化
 * 版本：v5.0 SEO优化版
 */

/* ===== CSS变量 ===== */
:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --primary-light: #dbeafe;
    --bg: #f1f5f9;
    --text: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    --border: rgba(0,0,0,.1);
    --shadow-sm: 0 4px 15px rgba(0,0,0,.05);
    --shadow-md: 0 8px 25px rgba(0,0,0,.1);
    --shadow-lg: 0 8px 30px rgba(0,0,0,.15);
    --radius: 16px;
    --radius-sm: 12px;
    --radius-xs: 8px;
}

/* ===== 基础重置 ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color .2s ease;
}

a:hover {
    color: var(--primary-dark);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ===== 布局容器 ===== */
.site-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.main-wrapper {
    flex: 1;
    padding: 16px 0 48px 0;
    background: var(--bg);
}

.content-area {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
}

@media (max-width: 968px) {
    .content-area {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

/* ===== 面包屑导航 ===== */
.breadcrumb {
    padding: 4px 0 12px 0;
    margin-top: 0;
    font-size: .875rem;
    color: var(--text-muted);
}

.breadcrumb ol {
    display: flex;
    list-style: none;
    gap: 8px;
}

.breadcrumb li {
    display: flex;
    align-items: center;
    gap: 8px;
}

.breadcrumb li:not(:last-child)::after {
    content: '/';
    color: var(--text-light);
}

.breadcrumb a {
    color: var(--text-secondary);
}

.breadcrumb a:hover {
    color: var(--primary);
}

/* ===== 头部 - 蓝色渐变 ===== */
.site-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-bottom: none;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(59,130,246,.3);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 48px;
    height: 72px;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.site-logo {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -.02em;
}

.site-logo:hover {
    color: var(--primary-light);
}

.site-description {
    font-size: .875rem;
    color: rgba(255,255,255,.8);
    display: none;
}

@media (min-width: 640px) {
    .site-description {
        display: block;
    }
}

.main-nav {
    flex: 1;
}

.main-nav ul {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.main-nav a {
    font-size: .9375rem;
    font-weight: 500;
    color: rgba(255,255,255,.9);
    padding: 8px 0;
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #fff;
    transition: width .25s ease;
}

.main-nav a:hover {
    color: #fff;
}

.main-nav a:hover::after {
    width: 100%;
}

/* ===== 轮播图 ===== */
.carousel-section {
    margin-bottom: 48px;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 400px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity .6s ease;
    z-index: 1;
}

.carousel-slide.active {
    opacity: 1;
    z-index: 2;
}

.carousel-slide a {
    display: block;
    width: 100%;
    height: 100%;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px;
    background: linear-gradient(to top, rgba(0,0,0,.8) 0%, rgba(0,0,0,.4) 50%, transparent 100%);
    color: #fff;
    z-index: 3;
}

.carousel-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.carousel-content h2 a {
    color: #fff;
}

.carousel-content h2 a:hover {
    color: var(--primary-light);
}

.carousel-content p {
    font-size: 1rem;
    opacity: .9;
    max-width: 600px;
    line-height: 1.6;
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    right: 40px;
    display: flex;
    gap: 8px;
    z-index: 4;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,.4);
    cursor: pointer;
    transition: all .3s ease;
}

.carousel-dot.active {
    background: #fff;
    width: 30px;
    border-radius: 5px;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.2);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    color: #fff;
    transition: all .3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4;
}

.carousel-btn:hover {
    background: rgba(255,255,255,.4);
}

.carousel-btn.prev { left: 20px; }
.carousel-btn.next { right: 20px; }

@media (max-width: 768px) {
    .carousel-container { height: 250px; }
    .carousel-content { padding: 24px; }
    .carousel-content h2 { font-size: 1.25rem; }
}

/* ===== 特色文章区域 ===== */
.featured-section {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    margin-bottom: 48px;
}

@media (max-width: 968px) {
    .featured-section {
        grid-template-columns: 1fr;
    }
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

@media (max-width: 640px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }
}

.featured-card {
    background: rgba(255,255,255,.8);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.5);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease;
}

.featured-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.featured-card-image {
    height: 160px;
    overflow: hidden;
}

.featured-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.featured-card:hover .featured-card-image img {
    transform: scale(1.05);
}

.featured-card-content {
    padding: 20px;
}

.featured-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.featured-card-title a {
    color: inherit;
}

.featured-card-title a:hover {
    color: var(--primary);
}

.featured-card-meta {
    font-size: .8125rem;
    color: var(--text-muted);
}

/* ===== 热门文章 ===== */
.hot-articles {
    background: rgba(255,255,255,.8);
    border-radius: var(--radius);
    padding: 24px;
    border: 1px solid rgba(255,255,255,.5);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.hot-articles-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
}

.hot-article-list {
    list-style: none;
}

.hot-article-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--bg);
}

.hot-article-item:last-child {
    border-bottom: none;
}

.hot-article-rank {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-xs);
    background: var(--bg);
    color: var(--text-muted);
    font-size: .875rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hot-article-rank.top3 {
    background: var(--primary);
    color: #fff;
}

.hot-article-content {
    flex: 1;
}

.hot-article-title {
    font-size: .9375rem;
    font-weight: 500;
    color: var(--text);
    line-height: 1.4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hot-article-title a {
    color: inherit;
}

.hot-article-title a:hover {
    color: var(--primary);
}

.hot-article-views {
    font-size: .75rem;
    color: var(--text-light);
}

/* ===== 文章卡片 ===== */
.article-card {
    background: rgba(255,255,255,.8);
    border-radius: var(--radius);
    padding: 32px;
    margin-bottom: 24px;
    border: 1px solid rgba(255,255,255,.5);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: transform .25s ease, box-shadow .25s ease;
}

.article-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* 横向布局 */
.article-card-horizontal {
    display: flex;
    gap: 24px;
    padding: 0;
    overflow: hidden;
}

.article-card-horizontal .article-card-image {
    flex-shrink: 0;
    width: 280px;
    min-height: 200px;
    overflow: hidden;
}

.article-card-horizontal .article-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.article-card-horizontal:hover .article-card-image img {
    transform: scale(1.05);
}

.article-card-horizontal .article-card-body {
    flex: 1;
    padding: 24px 24px 24px 0;
    display: flex;
    flex-direction: column;
}

.article-card-horizontal .article-header {
    margin-bottom: 12px;
}

.article-card-horizontal .article-title {
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 8px;
}

.article-card-horizontal .article-title a {
    color: var(--text);
}

.article-card-horizontal .article-title a:hover {
    color: var(--primary);
}

.article-card-horizontal .article-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .8125rem;
    color: var(--text-muted);
}

.article-card-horizontal .article-excerpt {
    color: var(--text-secondary);
    font-size: .9375rem;
    line-height: 1.7;
    margin-bottom: 16px;
    flex: 1;
}

.article-card-horizontal .article-card-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: auto;
}

.article-card-horizontal .read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .9375rem;
    font-weight: 600;
    color: var(--primary);
    padding: 8px 16px;
    background: rgba(59,130,246,.1);
    border-radius: var(--radius-xs);
    transition: all .2s ease;
}

.article-card-horizontal .read-more:hover {
    background: var(--primary);
    color: #fff;
}

@media (max-width: 640px) {
    .article-card-horizontal {
        flex-direction: column;
        gap: 0;
    }
    .article-card-horizontal .article-card-image {
        width: 100%;
        height: 180px;
        min-height: auto;
    }
    .article-card-horizontal .article-card-body {
        padding: 20px;
    }
    .article-card-horizontal .article-title {
        font-size: 1.25rem;
    }
}

/* ===== 文章卡片 - 标题在上，下面左图右文 ===== */
.article-card-vertical {
    background: rgba(255,255,255,.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.5);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
    transition: all .3s ease;
}

.article-card-vertical:hover {
    background: rgba(255,255,255,.9);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.article-title-top {
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 12px;
}

.article-title-top a {
    color: var(--text);
}

.article-title-top a:hover {
    color: var(--primary);
}

.article-meta-top {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: .875rem;
    color: var(--text-muted);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0,0,0,.05);
}

.article-card-body-horizontal {
    display: flex;
    gap: 20px;
}

.article-card-image-left {
    flex-shrink: 0;
    width: 240px;
    height: 160px;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.article-card-image-left img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.article-card-image-left img:hover {
    transform: scale(1.05);
}

.article-card-content-right {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-card-content-right .article-excerpt {
    color: var(--text-secondary);
    font-size: .9375rem;
    line-height: 1.7;
    flex: 1;
    margin-bottom: 16px;
}

.article-card-content-right .article-card-footer {
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 640px) {
    .article-card-body-horizontal {
        flex-direction: column;
        gap: 16px;
    }
    .article-card-image-left {
        width: 100%;
        height: 180px;
    }
    .article-title-top {
        font-size: 1.25rem;
    }
}

.article-header {
    margin-bottom: 20px;
}

.article-title {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 16px;
    letter-spacing: -.02em;
}

.article-title a {
    color: var(--text);
}

.article-title a:hover {
    color: var(--primary);
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: .875rem;
    color: var(--text-muted);
}

.article-excerpt {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 20px;
}

/* ===== 文章详情页 ===== */
.article-single {
    background: rgba(255,255,255,.8);
    border-radius: var(--radius);
    padding: 48px;
    border: 1px solid rgba(255,255,255,.5);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.article-single .article-title {
    font-size: 2.25rem;
    margin-bottom: 20px;
}

.article-author-info {
    font-size: .875rem;
    color: var(--text-muted);
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.article-content {
    font-size: 1.0625rem;
    line-height: 1.9;
    color: var(--text);
}

.article-content h2,
.article-content h3,
.article-content h4 {
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 16px;
    color: var(--text);
}

.article-content h2 { font-size: 1.625rem; }
.article-content h3 { font-size: 1.375rem; }

.article-content p {
    margin-bottom: 20px;
}

.article-content ul,
.article-content ol {
    margin-bottom: 20px;
    padding-left: 28px;
}

.article-content li {
    margin-bottom: 8px;
}

.article-content blockquote {
    border-left: 4px solid var(--primary);
    padding-left: 20px;
    margin: 32px 0;
    color: var(--text-secondary);
    font-style: italic;
}

.article-content code {
    background: #e2e8f0;
    padding: .2em .4em;
    border-radius: 6px;
    font-family: Monaco, Consolas, monospace;
    font-size: .875em;
}

.article-content pre {
    background: var(--text);
    color: var(--bg);
    padding: 20px;
    border-radius: var(--radius-sm);
    overflow-x: auto;
    margin: 32px 0;
}

.article-content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

/* 免责声明 */
.article-notice {
    margin-top: 32px;
    padding: 20px;
    background: #fef3c7;
    border: 1px solid #fbbf24;
    border-radius: var(--radius-sm);
    font-size: .9375rem;
    color: #92400e;
}

.article-notice p {
    margin: 0;
}

/* ===== 标签 ===== */
.article-tags {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.tag-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(0,0,0,.05);
    color: var(--text-secondary);
    font-size: .8125rem;
    border-radius: 6px;
    border: 1px solid var(--border);
    transition: all .2s ease;
}

.tag:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ===== 相关文章 ===== */
.related-articles {
    margin-top: 48px;
}

.related-articles .section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 24px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 640px) {
    .related-grid {
        grid-template-columns: 1fr;
    }
}

.related-card {
    background: rgba(255,255,255,.8);
    border-radius: var(--radius-sm);
    padding: 16px;
    border: 1px solid rgba(255,255,255,.5);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease;
}

.related-card:hover {
    transform: translateY(-2px);
}

.related-card img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: var(--radius-xs);
    margin-bottom: 12px;
}

.related-card h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-card h4 a {
    color: inherit;
}

.related-card h4 a:hover {
    color: var(--primary);
}

.related-card time {
    font-size: .75rem;
    color: var(--text-light);
}

/* ===== 文章导航 ===== */
.article-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 32px;
}

@media (max-width: 640px) {
    .article-nav {
        grid-template-columns: 1fr;
    }
}

.article-nav a.article-card {
    padding: 20px;
}

.nav-prev { text-align: left; }
.nav-next { text-align: right; }

.nav-label {
    font-size: .8125rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.nav-title {
    font-weight: 600;
    color: var(--text);
}

/* ===== 评论区 ===== */
.comments-section {
    background: rgba(255,255,255,.8);
    border-radius: var(--radius);
    padding: 32px;
    margin-top: 32px;
    border: 1px solid rgba(255,255,255,.5);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.comments-section h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--text);
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.no-comments {
    text-align: center;
    color: var(--text-muted);
    padding: 32px;
    font-style: italic;
}

.comment-list {
    list-style: none;
}

.comment-item {
    display: flex;
    gap: 16px;
    padding: 24px 0;
    border-bottom: 1px solid rgba(0,0,0,.08);
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-avatar {
    flex-shrink: 0;
}

.comment-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.comment-body {
    flex: 1;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.comment-author {
    font-weight: 600;
    color: var(--text);
}

.comment-time {
    font-size: .8125rem;
    color: var(--text-muted);
}

.comment-content {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.comment-actions {
    font-size: .875rem;
}

.comment-reply-link {
    color: var(--primary);
    font-weight: 500;
}

.comment-reply-link:hover {
    color: var(--primary-dark);
}

.comment-children {
    margin-top: 16px;
    padding-left: 24px;
    border-left: 2px solid var(--border);
}

.comment-children .comment-item {
    padding: 16px 0;
}

.comment-children .comment-avatar img {
    width: 36px;
    height: 36px;
}

/* ===== 评论表单 ===== */
.comment-form-section {
    background: rgba(255,255,255,.8);
    border-radius: var(--radius);
    padding: 32px;
    margin-top: 24px;
    border: 1px solid rgba(255,255,255,.5);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.comment-form-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: var(--radius-sm);
    font-size: .9375rem;
    background: rgba(255,255,255,.8);
    margin-bottom: 16px;
    transition: border-color .2s, box-shadow .2s;
    font-family: inherit;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59,130,246,.1);
}

.comment-form textarea {
    min-height: 120px;
    resize: vertical;
}

.comment-form-row {
    display: flex;
    gap: 16px;
}

@media (max-width: 640px) {
    .comment-form-row {
        flex-direction: column;
        gap: 0;
    }
}

.comment-form-row input {
    flex: 1;
}

.comment-form-submit {
    margin-top: 8px;
}

.comment-form button {
    padding: 12px 24px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: .9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease;
}

.comment-form button:hover {
    background: var(--primary-dark);
}

.comment-pagination {
    margin-top: 24px;
    text-align: center;
}

/* ===== 侧边栏 ===== */
.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.widget {
    background: rgba(255,255,255,.8);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid rgba(255,255,255,.5);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
}

.widget-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

/* 搜索 */
.search-box {
    display: flex;
    gap: 10px;
}

.search-box input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: var(--radius-sm);
    font-size: .9375rem;
    background: rgba(255,255,255,.8);
    transition: border-color .2s, box-shadow .2s;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59,130,246,.1);
}

.search-box button {
    padding: 10px 16px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: .9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background .2s ease;
}

.search-box button:hover {
    background: var(--primary-dark);
}

/* 分类菜单 */
.category-menu {
    list-style: none;
}

.category-menu li {
    margin-bottom: 4px;
}

.category-menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    color: var(--text-secondary);
    border-bottom: 1px solid transparent;
    transition: all .2s ease;
}

.category-menu a:hover {
    color: var(--primary);
    border-bottom-color: var(--border);
}

.category-menu .num {
    font-size: .8125rem;
    color: var(--text-muted);
    background: rgba(0,0,0,.05);
    padding: 2px 8px;
    border-radius: 9999px;
}

/* 最新文章 */
.recent-articles {
    list-style: none;
}

.recent-articles li {
    margin-bottom: 8px;
}

.recent-articles a {
    display: block;
    padding: 10px 0;
    color: var(--text-secondary);
    font-size: .9375rem;
    line-height: 1.5;
    border-bottom: 1px solid transparent;
    transition: all .2s ease;
}

.recent-articles a:hover {
    color: var(--primary);
    border-bottom-color: var(--border);
}

/* 归档 */
.archive-list {
    list-style: none;
}

.archive-list li {
    margin-bottom: 4px;
}

.archive-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    color: var(--text-secondary);
    transition: all .2s ease;
}

.archive-list a:hover {
    color: var(--primary);
}

.archive-list .num {
    font-size: .8125rem;
    color: var(--text-muted);
}

/* ===== 分页 ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: var(--radius-sm);
    font-size: .9375rem;
    font-weight: 500;
    transition: all .2s ease;
}

.pagination a {
    background: rgba(255,255,255,.8);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.pagination a:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.pagination .current {
    background: var(--primary);
    color: #fff;
}

/* ===== 评论区 ===== */
.comments-section {
    margin-top: 48px;
    padding: 32px;
    background: rgba(255,255,255,.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.5);
    border-radius: var(--radius);
}

.comments-section .comment-header {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid var(--primary-light);
}

.comments-section .comment {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(0,0,0,.05);
}

.comments-section .comment:last-child {
    border-bottom: none;
}

.comments-section .avatar {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--primary-light);
}

.comments-section .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comments-section .comment-infos {
    flex: 1;
}

.comments-section .comment-infos b {
    font-weight: 600;
    color: var(--text);
}

.comments-section .comment-time {
    font-size: .875rem;
    color: var(--text-muted);
    margin-left: 8px;
}

.comments-section .comment-content {
    margin-top: 8px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.comments-section .comment-reply {
    margin-top: 12px;
}

.comments-section .com-reply {
    font-size: .875rem;
    color: var(--primary);
    cursor: pointer;
    font-weight: 500;
}

.comments-section .com-reply:hover {
    color: var(--primary-dark);
}

.comments-section .comment-children {
    margin-left: 64px;
    padding-left: 20px;
    border-left: 3px solid var(--primary-light);
}

.comments-section #pagenavi {
    margin-top: 24px;
    text-align: center;
}

/* ===== 评论表单 ===== */
.comment-form-section {
    margin-top: 32px;
    padding: 32px;
    background: rgba(255,255,255,.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.5);
    border-radius: var(--radius);
}

.comment-form-section #comments {
    width: 100%;
}

.comment-form-section .commentform {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comment-form-section textarea {
    width: 100%;
    padding: 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    line-height: 1.7;
    resize: vertical;
    min-height: 120px;
    background: rgba(255,255,255,.8);
    transition: border-color .2s ease;
}

.comment-form-section textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.comment-form-section .comment-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.comment-form-section .comment-info input {
    padding: 12px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: .9375rem;
    background: rgba(255,255,255,.8);
    transition: border-color .2s ease;
}

.comment-form-section .comment-info input:focus {
    outline: none;
    border-color: var(--primary);
}

.comment-form-section .com_submit_p {
    display: flex;
    justify-content: flex-end;
}

.comment-form-section #comment_submit {
    padding: 12px 32px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all .2s ease;
}

.comment-form-section #comment_submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.comment-form-section .captcha-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ===== 空状态 ===== */
.empty-state {
    text-align: center;
    padding: 80px 24px;
    background: rgba(255,255,255,.8);
    border-radius: var(--radius);
}

.empty-state a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: background .2s ease;
}

.empty-state a:hover {
    background: var(--primary-dark);
}

/* ===== 页脚 ===== */
.site-footer {
    background: #1e293b;
    border-top: none;
    padding: 48px 0;
    margin-top: auto;
}

.footer-inner {
    text-align: center;
    color: #cbd5e1;
    font-size: .9375rem;
}

.footer-inner p {
    margin-bottom: 8px;
}

.footer-inner a {
    color: #f8fafc;
    font-weight: 500;
}

.footer-inner a:hover {
    color: #60a5fa;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,.1);
}

.footer-links a {
    color: #94a3b8;
    font-size: .875rem;
}

.footer-links a:hover {
    color: #60a5fa;
}

.footer-icp {
    margin-top: 8px;
}

.footer-icp a {
    color: #94a3b8;
    font-size: .875rem;
}

.footer-powered {
    margin-top: 16px;
    font-size: .875rem;
    color: #64748b;
}

.footer-powered a {
    color: #94a3b8;
}

/* ===== 返回顶部 ===== */
.back-to-top {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 48px;
    height: 48px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all .3s ease;
    box-shadow: 0 4px 15px rgba(59,130,246,.4);
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

/* ===== 404页面 ===== */
.error-404 {
    text-align: center;
    padding: 80px 24px;
}

.error-code {
    font-size: 8rem;
    font-weight: 800;
    color: rgba(0,0,0,.1);
    line-height: 1;
    margin-bottom: 24px;
}

.error-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 12px;
}

.error-desc {
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.error-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--primary);
    color: #fff;
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: background .2s ease;
}

.error-back:hover {
    background: var(--primary-dark);
    color: #fff;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .header-inner {
        height: 64px;
        gap: 24px;
    }
    
    .site-logo {
        font-size: 1.5rem;
    }
    
    .main-nav ul {
        gap: 20px;
    }
    
    .carousel-container {
        height: 250px;
    }
    
    .carousel-content {
        padding: 24px;
    }
    
    .carousel-content h2 {
        font-size: 1.25rem;
    }
    
    .featured-grid {
        grid-template-columns: 1fr;
    }
    
    .article-card {
        padding: 24px;
    }
    
    .article-title {
        font-size: 1.5rem;
    }
    
    .article-single {
        padding: 24px;
    }
    
    .article-single .article-title {
        font-size: 1.75rem;
    }
    
    .error-code {
        font-size: 5rem;
    }
    
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

/* ===== 打印样式 ===== */
@media print {
    .site-header,
    .sidebar,
    .site-footer,
    .pagination,
    .comments-section,
    .comment-form-section,
    .carousel-section,
    .featured-section,
    .back-to-top {
        display: none;
    }
    
    .article-card,
    .article-single {
        box-shadow: none;
        border: none;
        padding: 0;
        background: #fff;
    }
}
