/* 基础样式 */
body {
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    background-color: #f5f5f5;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部样式 */
.site-header {
    background-color: #2c3e50;
    color: white;
    padding: 20px 0;
    margin-bottom: 30px;
}

.logo {
    margin: 0;
    font-size: 1.8em;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 15px;
}

.main-nav a {
    color: white;
    text-decoration: none;
    font-size: 1.1em;
}

.search-form {
    margin-left: auto;
    display: flex;
}

.search-form input {
    padding: 8px 12px;
    border: none;
    border-radius: 4px 0 0 4px;
}

.search-form button {
    padding: 8px 15px;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
}

/* 主体内容布局 */
.main-content {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

.section-title {
    font-size: 1.5em;
    color: #2c3e50;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

/* 侧边栏样式 */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.widget {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.widget-title {
    font-size: 1.2em;
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* 文章列表样式 */
.latest-articles {
    display: grid;
    gap: 20px;
}

.latest-articles article {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.latest-articles h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.latest-articles h3 a {
    color: #2c3e50;
    text-decoration: none;
}

.latest-articles h3 a:hover {
    color: #e74c3c;
}

.latest-articles p {
    margin: 10px 0;
    color: #666;
}

.latest-articles time {
    font-size: 0.9em;
    color: #999;
}

/* 随机文章列表 */
.random-articles ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.random-articles li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

.random-articles li:last-child {
    border-bottom: none;
}

.random-articles a {
    color: #333;
    text-decoration: none;
    display: block;
}

.random-articles a:hover {
    color: #e74c3c;
}

.random-articles span {
    float: right;
    color: #999;
    font-size: 0.9em;
}
/* 相关搜索 */
.related-keywords ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-keywords li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

.related-keywords li:last-child {
    border-bottom: none;
}

.related-keywords a {
    color: #333;
    text-decoration: none;
    display: block;
}

.related-keywords a:hover {
    color: #e74c3c;
}

.related-keywords span {
    float: right;
    color: #999;
    font-size: 0.9em;
}
/* 相关关键词 */
.baidu-suggestions a.tag {
    display: inline-block;
    background: #eaf7ff;
    border: 1px solid #cce4f2;
    padding: 5px 8px;
    margin: 5px 5px 0 0;
    border-radius: 4px;
    font-size: 14px;
    color: #0073aa;
    text-decoration: none;
}
.baidu-suggestions a.tag:hover {
    background: #d4f0ff;
    border-color: #99d4f2;
    color: #004e75;
}
.baidu-fallback {
    background: #f2f9ff;
    border-left: 4px solid #3090d0;
    padding: 15px;
    margin-top: 20px;
    border-radius: 6px;
}

.baidu-fallback h4 {
    font-size: 16px;
    margin-bottom: 10px;
}

.baidu-fallback a {
    display: block;
    margin-bottom: 6px;
    color: #0073aa;
    text-decoration: none;
}

/* 热门搜索 */
.search-keywords ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-keywords li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

.search-keywords li:last-child {
    border-bottom: none;
}

.search-keywords a {
    color: #333;
    text-decoration: none;
}

.search-keywords a:hover {
    color: #e74c3c;
    text-decoration: underline;
}

/* 页脚样式 */
.site-footer {
    background-color: #2c3e50;
    color: #ecf0f1;
    padding: 20px 0;
    text-align: center;
    font-size: 0.9em;
}

.site-footer p {
    margin: 5px 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }
    
    .main-nav {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .search-form {
        width: 100%;
        margin: 10px 0 0;
    }
}
/* 列表页专用样式 */
.article-list {
    background-color: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.total-count {
    color: #7f8c8d;
    font-size: 0.95em;
}

.pagination {
    display: flex;
    gap: 5px;
}

.pagination a, .pagination span {
    display: inline-block;
    padding: 5px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #3498db;
}

.pagination a:hover {
    background-color: #f8f9fa;
}

.pagination .current {
    background-color: #3498db;
    color: white;
    border-color: #3498db;
}

/* 文章列表项 */
.list-item {
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 20px;
}

.list-item:last-child {
    border-bottom: none;
}

.list-item-thumb {
    width: 100%;
    height: 80px;
    background-color: #f1f1f1;
    border-radius: 4px;
    overflow: hidden;
}

.list-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.list-item-content h3 {
    margin: 0 0 10px;
    font-size: 1.2em;
}

.list-item-content h3 a {
    color: #2c3e50;
    text-decoration: none;
}

.list-item-content h3 a:hover {
    color: #e74c3c;
}

.list-item-meta {
    color: #7f8c8d;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.list-item-excerpt {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .list-item {
        grid-template-columns: 1fr;
    }
    
    .list-item-thumb {
        height: 150px;
    }
    
    .list-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
/* 文章详情页专用样式 */
.article-detail {
    background-color: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.article-header h1 {
    font-size: 1.8em;
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 15px;
    line-height: 1.3;
}

/* 相关推荐样式 */
.related-articles ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-articles li {
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
}

.related-articles li:last-child {
    border-bottom: none;
}

.related-articles a {
    display: block;
    color: #333;
    text-decoration: none;
    padding-left: 15px;
    position: relative;
}

.related-articles a:before {
    content: "•";
    color: #e74c3c;
    position: absolute;
    left: 0;
}

.related-articles a:hover {
    color: #e74c3c;
    text-decoration: underline;
}
/* 相关搜索样式 */
.related-searches ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.related-searches li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

.related-searches li:last-child {
    border-bottom: none;
}

.related-searches a {
    color: #333;
    text-decoration: none;
    display: block;
    padding-left: 15px;
    position: relative;
}

.related-searches a:before {
    content: "🔍";
    position: absolute;
    left: 0;
    font-size: 0.9em;
}

.related-searches a:hover {
    color: #e74c3c;
}
.article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-5px);
}

.excerpt {
    color: #666;
    margin: 10px 0;
}

.meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    font-size: 0.9em;
}

.read-more {
    color: #e74c3c;
    text-decoration: none;
}

.alert {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}
/* 列表页专用样式 */
.list-container {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.list-header h2 {
    margin: 0;
    font-size: 1.5em;
    color: #2c3e50;
}

.total-count {
    color: #7f8c8d;
    font-size: 0.95em;
}

.list-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 20px;
    padding: 25px 0;
    border-bottom: 1px solid #f0f0f0;
}

.list-item:last-child {
    border-bottom: none;
}

.list-item-thumb {
    width: 120px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    background: #f5f5f5;
}

.list-item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.list-item-content h3 {
    margin: 0 0 10px;
    font-size: 1.2em;
}

.list-item-content h3 a {
    color: #2c3e50;
    text-decoration: none;
    transition: color 0.3s;
}

.list-item-content h3 a:hover {
    color: #e74c3c;
}

.list-item-meta {
    display: flex;
    gap: 15px;
    color: #7f8c8d;
    font-size: 0.9em;
    margin-bottom: 10px;
}

.list-item-excerpt {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

.no-articles {
    text-align: center;
    padding: 40px 0;
    color: #95a5a6;
}

/* 分页样式 */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    gap: 5px;
}

.pagination a, 
.pagination span {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #3498db;
}

.pagination a:hover {
    background: #f8f9fa;
}

.pagination .current {
    background: #3498db;
    color: white;
    border-color: #3498db;
}

.pagination .ellipsis {
    padding: 8px 5px;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .list-item {
        grid-template-columns: 1fr;
    }
    
    .list-item-thumb {
        width: 100%;
        height: 160px;
    }
    
    .list-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .pagination {
        flex-wrap: wrap;
    }
}
/* 搜索页专用样式 */
.search-results-container {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.search-header {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.search-header h1 {
    margin: 0 0 10px;
    font-size: 1.5em;
}

.search-keyword {
    color: #e74c3c;
    font-weight: bold;
}

.results-stats {
    color: #7f8c8d;
    font-size: 0.95em;
}

/* 搜索结果项 */
.search-result {
    padding: 25px 0;
    border-bottom: 1px solid #f0f0f0;
}

.search-result:last-child {
    border-bottom: none;
}

.search-result h3 {
    margin: 0 0 5px;
    font-size: 1.2em;
    line-height: 1.4;
}

.result-url {
    color: #27ae60;
    font-size: 0.9em;
    margin-bottom: 8px;
    word-break: break-all;
}

.result-excerpt {
    color: #555;
    line-height: 1.7;
    margin: 10px 0;
}

.result-meta {
    display: flex;
    justify-content: space-between;
    color: #95a5a6;
    font-size: 0.9em;
}

.relevance {
    color: #e67e22;
}

/* 无结果提示 */
.no-results {
    text-align: center;
    padding: 40px 20px;
    color: #555;
}

.no-results-icon {
    font-size: 3em;
    color: #bdc3c7;
    margin-bottom: 20px;
}

.no-results .keyword {
    color: #e74c3c;
    font-weight: bold;
}

.no-results ul {
    text-align: left;
    max-width: 300px;
    margin: 15px auto;
    padding-left: 20px;
}

/* 搜索建议 */
.suggestions {
    margin-top: 30px;
}

.suggestions h4 {
    color: #7f8c8d;
    font-size: 1em;
    margin-bottom: 10px;
}

.suggestion-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.suggestion-tags a {
    display: inline-block;
    padding: 5px 12px;
    background: #f1f1f1;
    border-radius: 15px;
    color: #555;
    text-decoration: none;
    transition: all 0.3s;
}

.suggestion-tags a:hover {
    background: #e74c3c;
    color: white;
}

/* 高亮样式 */
.highlight {
    background-color: #fffde7;
    padding: 0 2px;
    font-style: normal;
    font-weight: bold;
    color: #e74c3c;
}
.article-content a {
    background-color: #f0f8ff; /* 链接底色：淡蓝色 */
    color: #0066cc;            /* 链接文字颜色 */
    text-decoration: none;
    padding: 2px 6px;
    border-radius: 4px;
    transition: all 0.2s ease-in-out;
}

.article-content a:hover {
    background-color: #ffcc00; /* 悬停底色：亮黄色 */
    color: #000000;            /* 悬停文字颜色：黑色 */
}
.article-content a:hover {
    background-color: #ffcc00;
    color: #000000;
    box-shadow: 0 0 5px #ffcc00;
}

