/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

header {
    background-color: #2c3e50;
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

header h1 {
    text-align: center;
    margin-top: 10px;
}

nav ul {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
}

nav ul li {
    margin: 0 15px;
}

nav ul li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #3498db;
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 20px;
}

/* 首页样式 */
.hero {
    text-align: center;
    padding: 2rem 0;
    background: linear-gradient(to right, #3498db, #2c3e50);
    color: white;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.feature-item {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.news-preview {
    text-align: center;
    padding: 1.5rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* 登录页面样式 */
.login-container {
    max-width: 400px;
    margin: 2rem auto;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.login-form h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: bold;
}

.form-group input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

button {
    width: 100%;
    padding: 0.8rem;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

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

.register-link, .back-to-home {
    text-align: center;
    margin-top: 1rem;
}

/* 新闻列表样式 */
.news-list h2 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.news-item {
    background: white;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.news-item h3 {
    margin-bottom: 0.5rem;
}

.news-item h3 a {
    color: #2c3e50;
    text-decoration: none;
}

.news-item h3 a:hover {
    color: #3498db;
}

.news-meta {
    color: #7f8c8d;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.read-more {
    display: inline-block;
    margin-top: 0.5rem;
    color: #3498db;
    text-decoration: none;
    font-weight: bold;
}

.read-more:hover {
    text-decoration: underline;
}

/* 新闻详情样式 */
.news-detail {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.news-detail h1 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.news-meta-detail {
    color: #7f8c8d;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.news-content h2 {
    color: #2c3e50;
    margin: 1.5rem 0 1rem 0;
}

.news-content ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.news-content li {
    margin-bottom: 0.5rem;
}

blockquote {
    background-color: #ecf0f1;
    border-left: 4px solid #3498db;
    padding: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
}

blockquote span {
    display: block;
    margin-top: 0.5rem;
    font-style: normal;
    font-weight: bold;
}

.news-navigation {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.news-navigation a {
    color: #3498db;
    text-decoration: none;
    margin: 0 10px;
}

.news-navigation a:hover {
    text-decoration: underline;
}

/* 通用链接样式 */
a {
    color: #3498db;
}

a:hover {
    text-decoration: underline;
}

/* 页脚样式 */
footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 1.5rem 0;
    margin-top: 2rem;
}