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

:root {
    --primary-color: #3498db;
    --secondary-color: #2ecc71;
    --accent-color: #e74c3c;
    --text-color: #2c3e50;
    --light-text: #7f8c8d;
    --background-color: #f8fafc;
    --card-background: #ffffff;
    --border-color: #e2e8f0;
    --header-background: #ffffff;
    --footer-background: #1e293b;
    --shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
    --transition: all 0.3s ease;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-secondary: 'Poppins', 'Segoe UI', Roboto, sans-serif;
}

body {
    font-family: var(--font-primary);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--background-color);
    font-size: 16px;
}

/* 英雄区域 */
.hero-section {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    padding: 80px 0;
    margin-bottom: 50px;
    position: relative;
    overflow: hidden;
    border-radius: 0 0 30px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="rgba(255,255,255,0.05)" /><path d="M0 100 L100 0 M100 100 L0 0" stroke="rgba(255,255,255,0.1)" stroke-width="1" /></svg>');
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 35px;
    opacity: 0.95;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-search {
    display: flex;
    max-width: 650px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    background-color: white;
    position: relative;
    z-index: 10;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-search:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.hero-search-input {
    flex: 1;
    padding: 18px 25px;
    border: none;
    font-size: 1.05rem;
    outline: none;
}

.hero-search-button {
    background: linear-gradient(45deg, var(--primary-color), #6366f1);
    color: white;
    border: none;
    padding: 0 35px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-search-button:hover {
    background: linear-gradient(45deg, #2980b9, #4f46e5);
    transform: translateY(-2px);
}

/* 分类导航 */
.category-nav {
    background-color: var(--card-background);
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    padding: 20px 0;
    margin-bottom: 35px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.category-list {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 15px;
    list-style: none;
    padding: 0 20px;
    margin: 0;
}

.category-item a {
    display: inline-block;
    padding: 10px 20px;
    color: var(--text-color);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
    background-color: rgba(79, 70, 229, 0.05);
    border: 1px solid transparent;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
}

.category-item a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.category-item a:hover::before {
    left: 100%;
}

.category-item a:hover,
.category-item a.active {
    background: linear-gradient(45deg, var(--primary-color), #6366f1);
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.3);
    border-color: transparent;
}

/* 容器 */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* 主要内容布局 */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 40px;
}

/* 优化响应式布局 */
@media (min-width: 768px) {
    .main-content {
        display: flex;
        flex-direction: column;
        gap: 40px;
    }
}

/* 头部样式 */
.header {
    background-color: var(--header-background);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

/* 导航栏 */
.nav {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: var(--transition);
    padding: 5px 10px;
    border-radius: var(--border-radius);
}

.nav-link:hover {
    color: var(--primary-color);
    background-color: rgba(52, 152, 219, 0.1);
}

.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
}

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

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

.btn-primary:hover {
    background-color: #2980b9;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

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

.btn-secondary:hover {
    background-color: #27ae60;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

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

.btn-danger:hover {
    background-color: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

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

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

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

.btn-block {
    display: block;
    width: 100%;
}

/* 表单样式 */
.form {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
    margin: 20px 0;
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-color);
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
    background-color: white;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-textarea {
    min-height: 150px;
    resize: vertical;
    font-family: inherit;
}

.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-check-input {
    width: auto;
}

.form-error {
    color: var(--accent-color);
    font-size: 0.85rem;
    margin-top: 5px;
}

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

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-header {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
}

.card-body {
    padding: 20px;
}

.card-footer {
    padding: 15px 20px;
    border-top: 1px solid var(--border-color);
    background-color: rgba(0, 0, 0, 0.02);
}

.card-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.card-text {
    color: var(--light-text);
    margin-bottom: 15px;
}

/* 文章列表容器 */
.posts-container {
    width: 100%;
}

/* 文章列表网格布局 */
.article-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    margin-top: 30px;
}

@media (min-width: 768px) {
    .article-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .article-list {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* 文章卡片样式 */
.article-card {
    background-color: var(--card-background);
    border-radius: 16px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    transform: translateY(0);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: transparent;
}

.article-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--primary-color);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    z-index: 2;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.article-card:hover .article-badge {
    opacity: 1;
    transform: translateY(0);
}

.article-cover {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
    border-radius: 16px 16px 0 0;
}

.article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.article-card:hover .article-cover img {
    transform: scale(1.08);
}

.article-content {
    padding: 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.article-category-badge {
    background: linear-gradient(45deg, #6366f1, #8b5cf6);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
    align-self: flex-start;
}

.article-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 15px;
    text-decoration: none;
    transition: color 0.3s ease;
    line-height: 1.4;
    position: relative;
    display: block;
    font-family: var(--font-secondary);
    flex: 1;
}

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

.article-title::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), #6366f1);
    transition: width 0.4s ease;
}

.article-title:hover::after {
    width: 50px;
}

.article-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: var(--light-text);
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.article-author {
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

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

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(79, 70, 229, 0.1);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.article-card:hover .author-avatar {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.author-name {
    font-weight: 500;
    transition: color 0.3s ease;
}

.article-date {
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.article-date:hover {
    color: var(--primary-color);
    transform: translateX(2px);
}

.article-excerpt {
    color: var(--light-text);
    line-height: 1.7;
    margin-bottom: 20px;
    flex: 1;
    font-size: 0.95rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

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

.article-stats .stat {
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    position: relative;
    padding: 4px 8px;
    border-radius: 6px;
    background-color: rgba(0, 0, 0, 0.02);
}

.article-stats .stat:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
    background-color: rgba(79, 70, 229, 0.05);
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 8px;
    background-color: rgba(79, 70, 229, 0.05);
    border: 1px solid transparent;
}

.read-more:hover {
    color: white;
    background: linear-gradient(45deg, var(--primary-color), #6366f1);
    transform: translateX(3px);
    box-shadow: 0 5px 15px rgba(79, 70, 229, 0.2);
}

/* 文章详情页面 */
.article-detail {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
    margin-bottom: 30px;
}

.article-detail-title {
    font-size: 2rem;
    margin-bottom: 20px;
    color: var(--text-color);
    line-height: 1.3;
}

.article-detail-content {
    margin-top: 20px;
    line-height: 1.8;
    color: var(--text-color);
}

.article-detail-content p {
    margin-bottom: 15px;
}

.article-detail-content h2 {
    font-size: 1.5rem;
    margin: 25px 0 15px;
    color: var(--text-color);
}

.article-detail-content h3 {
    font-size: 1.3rem;
    margin: 20px 0 10px;
    color: var(--text-color);
}

.article-detail-content img {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    margin: 15px 0;
}

/* 个人资料页面 */
.profile-header {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 30px;
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.profile-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary-color);
    margin-bottom: 20px;
}

.profile-name {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--text-color);
}

.profile-bio {
    color: var(--light-text);
    margin-bottom: 20px;
    max-width: 600px;
}

.profile-stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
}

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

.stat-number {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

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

/* 消息提示样式 */
.message {
    padding: 15px 20px;
    border-radius: var(--border-radius);
    margin-bottom: 20px;
    border-left: 4px solid;
}

.message-success {
    background-color: rgba(46, 204, 113, 0.1);
    border-left-color: var(--secondary-color);
    color: #27ae60;
}

.message-error {
    background-color: rgba(231, 76, 60, 0.1);
    border-left-color: var(--accent-color);
    color: #c0392b;
}

.message-info {
    background-color: rgba(52, 152, 219, 0.1);
    border-left-color: var(--primary-color);
    color: #2980b9;
}

/* 页脚样式 */
.footer {
    background-color: var(--footer-background);
    color: white;
    padding: 30px 0;
    margin-top: 40px;
}

.footer-content {
    margin-bottom: 20px;
}

.footer-info {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 20px;
}

.footer-logo {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: white;
    font-weight: 700;
}

.footer-description {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

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

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 0.95rem;
    transition: var(--transition);
    padding: 5px 10px;
    border-radius: var(--border-radius);
}

.footer-link:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.footer-bottom {
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    text-align: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.admin-link {
    font-weight: 600;
    color: var(--secondary-color) !important;
}

.admin-link:hover {
    color: #27ae60 !important;
    background-color: rgba(46, 204, 113, 0.1);
}

/* 优化页面布局 */
.main-content {
    display: flex;
    gap: 30px;
    margin-top: 30px;
}

.posts-container {
    flex: 1;
    max-width: 100%;
}

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

/* 侧边栏样式 */
.sidebar-section {
    background-color: var(--card-background);
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    padding: 24px;
    margin-bottom: 24px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sidebar-section:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.sidebar-heading {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: var(--text-color);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-secondary);
    position: relative;
    padding-bottom: 12px;
}

.sidebar-heading::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

/* 搜索框样式 */
.search-form {
    display: none;
    gap: 0;
}

.search-input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 0.95rem;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-button {
    padding: 10px 15px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    cursor: pointer;
    transition: var(--transition);
}

.search-button:hover {
    background-color: #2980b9;
}

/* 热门文章样式 */
.hot-post-item {
    display: flex;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
}

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

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

.hot-post-title {
    flex: 1;
    font-size: 0.9rem;
    color: var(--text-color);
    text-decoration: none;
    line-height: 1.4;
    transition: var(--transition);
}

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

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

/* 登录提示样式 */
.login-prompt {
    text-align: center;
}

.login-prompt p {
    margin-bottom: 15px;
    color: var(--light-text);
    font-size: 0.95rem;
}

.login-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* 统计信息样式 */
.stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
}

.stat-item {
    text-align: center;
    padding: 15px 10px;
    background-color: rgba(52, 152, 219, 0.05);
    border-radius: var(--border-radius);
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--light-text);
}

/* 侧边栏更新日志样式 */
.changelog-link-container {
    margin-top: 15px;
    padding: 15px;
    background-color: rgba(52, 152, 219, 0.05);
    border-radius: var(--border-radius);
    text-align: center;
}

.changelog-link-description {
    color: var(--text-color);
    font-size: 0.9rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.btn-block {
    display: block;
    width: 100%;
}

/* 响应式优化 */
@media (max-width: 992px) {
    .main-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .sidebar {
        width: 100%;
        margin-top: 0;
    }
    
    .sidebar-section {
        margin-bottom: 30px;
    }
    
    /* 响应式更新日志卡片 */
    .latest-update-card {
        padding: 20px;
        margin-bottom: 25px;
    }
    
    .update-header h3 {
        font-size: 18px;
    }
    
    .update-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .update-tags {
        gap: 6px;
    }
    
    .update-tag {
        font-size: 12px;
        padding: 4px 10px;
    }
    
    /* 响应式英雄区域 */
    .hero-section {
        padding: 40px 0;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    /* 响应式分类导航 */
    .category-list {
        gap: 10px;
    }
    
    .category-item a {
        padding: 7px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    /* 移动端优化 */
    .main-content {
        padding: 0 15px;
        margin: 15px auto;
    }
    
    .latest-update-card {
        padding: 18px;
        border-radius: 12px;
    }
    
    .update-header i {
        font-size: 20px;
    }
    
    .update-header h3 {
        font-size: 16px;
    }
    
    .article-card {
        border-radius: 14px;
        margin-bottom: 24px;
    }
    
    .article-cover {
        height: 180px;
    }
    
    .article-content {
        padding: 20px;
    }
    
    .article-title {
        font-size: 1.4rem;
    }
    
    .article-meta {
        gap: 12px;
        font-size: 0.85rem;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .article-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .article-stats {
        width: 100%;
        justify-content: space-between;
    }
    
    /* 页脚移动端样式 */
    .footer {
        padding: 20px 0;
    }
    
    .footer-links {
        gap: 10px;
        flex-direction: column;
        align-items: center;
    }
    
    .container {
        width: 95%;
        padding: 0 10px;
    }
    
    /* 移动端英雄区域 */
    .hero-section {
        padding: 30px 0;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-search {
        flex-direction: column;
        border-radius: 12px;
        overflow: hidden;
    }
    
    .hero-search-button {
        padding: 12px 20px;
        margin-top: 10px;
    }
    
    /* 移动端分类导航 */
    .category-nav {
        padding: 15px 10px;
    }
    
    .category-list {
        justify-content: flex-start;
        gap: 8px;
    }
    
    .category-item a {
        padding: 6px 12px;
        font-size: 0.85rem;
    }
    
    /* 移动端侧边栏 */
    .sidebar-section {
        padding: 20px;
        border-radius: 12px;
    }
    
    .sidebar-heading {
        font-size: 1.15rem;
    }
}

/* 更新日志样式 */
.changelog-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.changelog-entry {
    background-color: var(--card-background);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    padding: 25px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s ease;
}

.changelog-entry:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

/* 最新版本特殊样式 */
.changelog-latest {
    border-left-color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.05);
    border-radius: var(--border-radius);
    position: relative;
    overflow: hidden;
}

.changelog-latest::before {
    content: '最新版本';
    position: absolute;
    top: 10px;
    right: -30px;
    background-color: #e74c3c;
    color: white;
    padding: 3px 40px;
    transform: rotate(45deg);
    font-size: 0.7rem;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.changelog-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.changelog-version {
    background-color: var(--primary-color);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* 最新版本标签样式 */
.new-badge {
    background-color: #e74c3c;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.7rem;
    font-weight: bold;
    animation: pulse 1.5s infinite;
}

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

.changelog-title {
    font-size: 1.5rem;
    color: var(--text-color);
    margin: 0;
    flex: 1;
}

.changelog-date {
    color: var(--light-text);
    font-size: 0.9rem;
    background-color: rgba(52, 152, 219, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
}

/* 标签样式 */
.changelog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.tag {
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--primary-color);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid rgba(52, 152, 219, 0.2);
    transition: all 0.2s ease;
}

.tag:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

.changelog-description {
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 20px;
    padding: 12px 15px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 8px;
    font-size: 1rem;
}

.changelog-changes h3 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--text-color);
    background-color: rgba(52, 152, 219, 0.1);
    padding: 8px 12px;
    border-radius: 6px;
    display: inline-block;
}

.changelog-changes ul {
    list-style-type: none;
    padding-left: 5px;
}

.changelog-changes li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
    color: var(--text-color);
    line-height: 1.6;
    padding: 8px 25px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.changelog-changes li:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateX(5px);
}

.changelog-changes li:before {
    content: '✨';
    position: absolute;
    left: 8px;
    font-size: 1rem;
}

/* 侧边栏最新版本样式 */
.latest-version {
    text-align: center;
    padding: 20px 10px;
    background-color: rgba(52, 152, 219, 0.05);
    border-radius: var(--border-radius);
}

.version-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 5px;
}

.version-date {
    font-size: 0.9rem;
    color: var(--light-text);
    margin-bottom: 10px;
}

.version-title {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 500;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.pagination-link {
    padding: 10px 18px;
    border-radius: 8px;
    background-color: var(--card-background);
    color: var(--text-color);
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    font-weight: 500;
    font-size: 0.95rem;
    min-width: 40px;
    text-align: center;
}

.pagination-link:hover:not(.active):not(.disabled) {
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.2);
}

.pagination-link.active {
    background: linear-gradient(135deg, var(--primary-color), #2980b9);
    color: white;
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.pagination-link.disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* 最新更新日志展示 */
.latest-update-card {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: white;
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(79, 70, 229, 0.25);
    padding: 25px 30px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.latest-update-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="rgba(255,255,255,0.05)" /><path d="M0 100 L100 0 M100 100 L0 0" stroke="rgba(255,255,255,0.1)" stroke-width="1" /></svg>');
    opacity: 0.3;
    z-index: 0;
}

.latest-update-card > * {
    position: relative;
    z-index: 1;
}

.sidebar-heading {
    font-size: 1.2rem;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    color: var(--text-color);
}

.sidebar-item {
    margin-bottom: 15px;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
    text-decoration: none;
    transition: var(--transition);
    padding: 8px 10px;
    border-radius: var(--border-radius);
}

.sidebar-link:hover {
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--primary-color);
}

.sidebar-link.active {
    background-color: rgba(52, 152, 219, 0.1);
    color: var(--primary-color);
    font-weight: 500;
}

/* 侧边栏搜索框样式 */
.search-form {
    position: relative;
    margin-bottom: 20px;
    display: flex;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-input {
    flex: 1;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-right: none;
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
}

.search-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 15px;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-button:hover {
    background-color: #2980b9;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 15px;
        padding: 10px 0;
    }
    
    .nav-list {
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }
    
    .article-cover {
        height: 150px;
    }
    
    .article-detail-title {
        font-size: 1.8rem;
    }
    
    .form {
        padding: 20px;
    }
    
    .profile-header {
        padding: 20px;
    }
    
    .profile-avatar {
        width: 100px;
        height: 100px;
    }
    
    .profile-stats {
        gap: 20px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }
    
    .article-card {
        margin-bottom: 20px;
    }
    
    .article-cover {
        height: 120px;
    }
    
    .article-title {
        font-size: 1.3rem;
    }
    
    .article-detail-title {
        font-size: 1.6rem;
    }
    
    .profile-name {
        font-size: 1.5rem;
    }
    
    .profile-stats {
        flex-direction: column;
        gap: 15px;
    }
}

/* 加载动画 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(52, 152, 219, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 隐藏元素 */
.hidden {
    display: none;
}

/* 清除浮动 */
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* 文本对齐 */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

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

/* 辅助类 */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.ml-1 { margin-left: 0.5rem; }
.ml-2 { margin-left: 1rem; }
.mr-1 { margin-right: 0.5rem; }
.mr-2 { margin-right: 1rem; }
.pt-1 { padding-top: 0.5rem; }
.pt-2 { padding-top: 1rem; }
.pb-1 { padding-bottom: 0.5rem; }
.pb-2 { padding-bottom: 1rem; }

/* 灵活的网格布局 */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* 内容区域 */
.content {
    padding: 30px 0;
}

.main-content {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 30px;
    align-items: start;
}

/* 区域标题样式 */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(79, 70, 229, 0.1);
    position: relative;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color), #6366f1);
    border-radius: 2px;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-color);
    margin: 0;
    font-family: var(--font-secondary);
    line-height: 1.2;
    letter-spacing: -0.5px;
}

.section-more {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 8px;
    background-color: rgba(79, 70, 229, 0.05);
    border: 1px solid transparent;
}

.section-more:hover {
        color: #2980b9;
        transform: translateX(3px);
    }

/* 最新更新日志样式 */
.latest-update-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.latest-update-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><rect width="100" height="100" fill="rgba(255,255,255,0.05)" /><path d="M0 100 L100 0 M100 100 L0 0" stroke="rgba(255,255,255,0.1)" stroke-width="1" /></svg>');
    opacity: 0.3;
}

.update-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.update-header i {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
}

.update-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
}

.update-version {
    background-color: rgba(255, 255, 255, 0.2);
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.update-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

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

.update-description {
    margin-bottom: 20px;
    line-height: 1.7;
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.95);
    font-size: 1rem;
}

.update-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
}

.update-tag {
    background-color: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.update-tag:hover {
    background-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.update-more {
    display: inline-block;
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    z-index: 1;
}

.update-more:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 992px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}