/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

/* 头部样式 */
header {
    background-color: #333;
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    color: white;
}

.search-form {
    display: flex;
    align-items: center;
}

.search-input {
    padding: 8px 12px;
    border: none;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
    width: 300px;
}

.search-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 0 4px 4px 0;
    background-color: #4CAF50;
    color: white;
    cursor: pointer;
}

.search-btn:hover {
    background-color: #45a049;
}

/* 导航样式 */
nav {
    background-color: #444;
    padding: 10px 0;
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-right: 20px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
}

.nav-links a:hover {
    color: #4CAF50;
}

/* 主要内容样式 */
main {
    padding: 20px 0;
}

/* 文章列表样式 */
.article-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.article-item {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
    transition: transform 0.3s ease;
}

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

.article-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.article-title a {
    color: #333;
    text-decoration: none;
}

.article-title a:hover {
    color: #4CAF50;
}

.article-meta {
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.article-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.article-link {
    display: inline-block;
    background-color: #4CAF50;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}

.article-link:hover {
    background-color: #45a049;
}

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

.article-detail h1 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #333;
}

.article-detail-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

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

.article-detail-link {
    background-color: #f0f0f0;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 30px;
}

.article-detail-link h3 {
    margin-bottom: 10px;
    color: #333;
}

.article-detail-link a {
    color: #4CAF50;
    text-decoration: none;
    word-break: break-all;
}

.article-detail-link a:hover {
    text-decoration: underline;
}

.feedback-section {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.feedback-btn {
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.feedback-btn:hover {
    background-color: #e0e0e0;
}

.feedback-form {
    margin-top: 20px;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
}

.feedback-form h3 {
    margin-bottom: 15px;
    color: #333;
}

.feedback-form select,
.feedback-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
    font-size: 14px;
}

.feedback-form textarea {
    height: 100px;
    resize: vertical;
}

.feedback-form button {
    background-color: #4CAF50;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.feedback-form button:hover {
    background-color: #45a049;
}

/* 分页样式 */
.pagination {
    margin-top: 30px;
    text-align: center;
}

.pagination a {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 5px;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

.pagination a:hover {
    background-color: #f0f0f0;
}

.pagination a.active {
    background-color: #4CAF50;
    color: white;
    border-color: #4CAF50;
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: white;
    padding: 20px 0;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links {
    display: flex;
    list-style: none;
}

.footer-links li {
    margin-right: 20px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    color: #4CAF50;
}

.footer-copyright {
    font-size: 14px;
    color: #999;
}

.footer-icp {
    font-size: 14px;
    color: #999;
    margin-top: 10px;
    text-align: center;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .search-form {
        margin-top: 15px;
        width: 100%;
    }
    
    .search-input {
        width: 100%;
    }
    
    .nav-links {
        flex-wrap: wrap;
    }
    
    .nav-links li {
        margin-bottom: 10px;
    }
    
    .article-list {
        grid-template-columns: 1fr;
    }
    
    .article-detail {
        padding: 20px;
    }
    
    .footer-content {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .footer-links {
        margin-top: 15px;
        flex-wrap: wrap;
    }
    
    .footer-links li {
        margin-bottom: 10px;
    }
}