/* 国风复古主题样式 */
:root {
    --primary-color: #8B008B; /* 深紫色 */
    --secondary-color: #4A0080; /* 紫罗兰 */
    --accent-color: #FFD700; /* 金色 */
    --bg-color: #F5F5F5; /* 浅灰白 */
    --text-color: #333333;
    --border-color: #E0E0E0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "SimSun", serif;
    background: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 20px 0;
    border-bottom: 3px solid var(--accent-color);
}

.logo h1 {
    font-size: 2.5em;
    margin-bottom: 5px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.logo h1 a {
    color: white;
    text-decoration: none;
}

.logo p {
    font-size: 0.9em;
    opacity: 0.9;
}

.search-box {
    margin-top: 15px;
}

.search-box form {
    display: flex;
    max-width: 500px;
}

.search-box input {
    flex: 1;
    padding: 12px 15px;
    border: none;
    border-radius: 5px 0 0 5px;
    font-size: 16px;
}

.search-box button {
    background: var(--accent-color);
    color: var(--secondary-color);
    border: none;
    padding: 12px 25px;
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-weight: bold;
    transition: background 0.3s ease;
}

.search-box button:hover {
    background: #e6c200;
}

/* 导航响应式设计 */
.navigation {
    background: rgba(255,255,255,0.95);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: relative;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    padding: 10px;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
}

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

.nav-menu li {
    margin: 0;
}

.nav-menu a {
    display: block;
    padding: 15px 25px;
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-menu a:hover {
    background: var(--primary-color);
    color: white;
}

/* 幻灯片样式 */
.slideshow {
    background: white;
    padding: 20px 0;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.slide-container {
    position: relative;
    height: 300px;
    overflow: hidden;
    border-radius: 8px;
}

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

.slide:first-child {
    opacity: 1;
}

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

.slide-title {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 20px;
    font-size: 1.2em;
}

/* 主要内容区域 */
.main-content {
    margin: 30px auto;
}

.content-wrapper {
    display: flex;
    gap: 30px;
    margin: 20px 0;
}

.article-list {
    flex: 2;
    min-width: 0;
}

.sidebar {
    flex: 1;
    min-width: 300px;
}

.section-title {
    color: var(--primary-color);
    border-bottom: 2px solid var(--accent-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-size: 1.5em;
}

/* 文章项样式 */
.article-item {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid var(--primary-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.article-item h3 {
    margin-bottom: 10px;
}

.article-item h3 a {
    color: var(--secondary-color);
    text-decoration: none;
    font-size: 1.3em;
    line-height: 1.4;
}

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

.article-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 10px;
    font-size: 0.9em;
    color: #666;
    flex-wrap: wrap;
}

.article-meta .category {
    background: var(--accent-color);
    color: var(--secondary-color);
    padding: 2px 8px;
    border-radius: 3px;
    font-weight: bold;
}

.article-desc {
    color: #555;
    line-height: 1.8;
}

/* 文章详情页样式 */
.article-detail {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.article-detail h1 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 2em;
    line-height: 1.3;
}

.article-image {
    margin: 20px 0;
    text-align: center;
}

.article-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.article-body {
    line-height: 1.8;
    font-size: 1.1em;
    color: #333;
}

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

.article-body h2, .article-body h3 {
    color: var(--primary-color);
    margin: 25px 0 15px 0;
}

/* 文章导航 */
.article-navigation {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.nav-links {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.nav-previous, .nav-next {
    flex: 1;
    min-width: 200px;
}

.nav-previous span, .nav-next span {
    display: block;
    color: #666;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.nav-previous a, .nav-next a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    line-height: 1.4;
}

.nav-previous a:hover, .nav-next a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* 侧边栏样式 */
.sidebar-widget {
    background: white;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.sidebar-widget h3 {
    color: var(--primary-color);
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.hot-list, .category-list, .related-list {
    list-style: none;
}

.hot-list li, .category-list li, .related-list li {
    border-bottom: 1px solid var(--border-color);
    padding: 8px 0;
}

.hot-list li:last-child, .category-list li:last-child, .related-list li:last-child {
    border-bottom: none;
}

.hot-list a, .category-list a, .related-list a {
    color: var(--text-color);
    text-decoration: none;
    transition: color 0.3s ease;
    display: block;
}

.hot-list a:hover, .category-list a:hover, .related-list a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

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

.pagination a, .pagination span {
    padding: 8px 15px;
    border: 1px solid var(--border-color);
    text-decoration: none;
    color: var(--text-color);
    border-radius: 4px;
    transition: all 0.3s ease;
}

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

.pagination .current {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* 底部样式 */
.footer {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: white;
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
}

.footer-links {
    margin-bottom: 15px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    margin: 0 10px;
}

.footer-links a:hover {
    text-decoration: underline;
}

/* 无内容提示 */
.no-articles, .no-results {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

.no-articles p, .no-results p {
    margin-bottom: 10px;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 100%;
        left: 0;
        background: white;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        z-index: 1000;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-menu li {
        width: 100%;
    }
    
    .nav-menu a {
        padding: 15px 20px;
        border-bottom: 1px solid var(--border-color);
    }
    
    .content-wrapper {
        flex-direction: column;
        gap: 20px;
    }
    
    .sidebar {
        min-width: auto;
    }
    
    .article-item {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .article-detail {
        padding: 20px;
    }
    
    .article-detail h1 {
        font-size: 1.6em;
    }
    
    .nav-links {
        flex-direction: column;
    }
    
    .nav-previous, .nav-next {
        min-width: auto;
    }
    
    .logo h1 {
        font-size: 2em;
    }
    
    .slide-container {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .logo h1 {
        font-size: 1.8em;
    }
    
    .search-box form {
        flex-direction: column;
    }
    
    .search-box input {
        border-radius: 5px;
        margin-bottom: 5px;
    }
    
    .search-box button {
        border-radius: 5px;
        width: 100%;
    }
    
    .article-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .pagination {
        gap: 5px;
    }
    
    .pagination a, .pagination span {
        padding: 6px 10px;
        font-size: 0.9em;
    }
}