/* 全局样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #F0F8FF; /* 淡蓝色背景 */
    color: #333;
    margin: 0;
    padding: 0;
}

.container {
    width: 90%;
    max-width: 600px;
    margin: 40px auto;
    background-color: #FFFFFF; /* 白色容器 */
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

/* 标题样式 */
h1, h2 {
    color: #007BFF; /* 柔和的蓝色标题 */
    font-weight: 600;
}

h1 {
    text-align: center;
    margin: 30px 0;
    font-size: 1.8em;
}

h2 {
    margin: 0;
    font-size: 1.4em;
    font-weight: 500;
}

/* 新闻列表样式 */
.news-list {
    display: flex;
    flex-direction: column;
    margin: 20px 0;
}

.news-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    margin: 8px 0;
    background-color: #E6F2FF; /* 淡蓝色列表背景 */
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    text-decoration: none;
    transition: background-color 0.3s, box-shadow 0.3s;
}

.news-item:hover {
    background-color: #D9ECFF; /* 浅蓝色悬停效果 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.news-item h2 {
    color: #333;
    margin: 0;
    font-size: 1.2em;
    font-weight: 500;
}

.news-item p {
    margin: 0;
    color: #999;
    font-size: 0.9em;
}

/* 按钮样式 */
.news-item button, .news-item a {
    background-color: #5FA8FF; /* 柔和的蓝色按钮 */
    color: #fff;
    padding: 8px 12px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    font-size: 0.95em;
    transition: background-color 0.3s;
}

.news-item button:hover, .news-item a:hover {
    background-color: #4A90E2; /* 按钮悬停效果 */
}

/* 表单样式 */
form {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 30px 0;
}

form input, form textarea, form button {
    margin: 10px 0;
    padding: 12px;
    width: 100%;
    border: 1px solid #CCE6FF; /* 淡蓝色边框 */
    border-radius: 10px;
    background-color: #F0F8FF; /* 淡蓝色输入框背景 */
}

form input, form textarea {
    color: #333;
}

form button {
    background-color: #5FA8FF; /* 柔和的蓝色按钮 */
    color: #fff;
    cursor: pointer;
    font-weight: bold;
    transition: background-color 0.3s;
}

form button:hover {
    background-color: #4A90E2;
}

/* 文章内容样式 */
.news-content-box {
    margin-top: 30px;
    background-color: #E6F2FF; /* 淡蓝色内容框背景 */
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.news-content-inner {
    padding: 15px;
    background-color: #FFFFFF; /* 内容内部为白色 */
    border-radius: 12px;
}

.news-content-box p {
    text-align: left;
    color: #555;
    line-height: 1.6em;
}

.news-content .news-image {
    max-width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* 按钮盒子样式 */
.button-box {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.nav-button {
    padding: 10px 20px;
    background-color: #5FA8FF;
    color: #ffffff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s;
}

.nav-button:hover {
    background-color: #4A90E2;
}

/* 注销按钮样式 */
.logout-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #FF4D4D; /* 柔和的红色按钮 */
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    cursor: pointer;
}

.logout-button:hover {
    background-color: #E04141;
}

/* 简洁新闻列表 */
.simple-news-list {
    width: 400px;
    height: 230px;
    background-color: #ffffff;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    padding: 10px;
    overflow-y: auto;
}

.simple-news-item {
    display: block;
    margin: 5px 0;
    padding: 5px;
    text-decoration: none;
    color: #000000; /* 黑色字体 */
    transition: color 0.2s, text-decoration 0.2s;
}

.simple-news-item:hover {
    color: #007BFF; /* 悬停时蓝色字体 */
    text-decoration: underline; /* 悬停时下划线 */
}

.simple-news-item p {
    margin: 0;
    font-size: 1em;
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
    .news-content-box {
        max-height: 400px; /* 设置最大高度，内容超过时会出现滚动条 */
        overflow-y: auto; /* 垂直方向启用滚动条 */
        background-color: #fff;
        padding: 20px;
        border-radius: 10px;
        box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
    }