/* 全局样式 */
body {
    font-family: 'Arial', sans-serif;
    background-color: #000;
    color: #333;
    margin: 0;
    padding: 0;
}

.container {
    width: 90%;
    max-width: 750px;
    margin: 20px auto;
    background-color: #2c2c2c;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* 标题样式 */
h1, h2 {
    color: #ffcc00;
}

h1 {
    text-align: center;
    margin: 20px 0;
    font-size: 2em;
}

h2 {
    margin: 0 0 10px;
    font-size: 1.2em;
}

/* 新闻列表样式 */
.news-list {
    display: flex;
    flex-direction: column;
    margin: 10px 0;
}

.news-item {
    width: 97%;
    background-color: #686868;
    margin: 5px 0;
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-decoration: none;
    transition: background-color 0.3s;
}

.news-item button, .news-item a {
    background-color: #ffcc00;
    color: #000;
    padding: 5px 10px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    font-size: 0.9em;
}

.news-item button:hover, .news-item a:hover {
    background-color: #ffcc00;
}


.news-item:hover {
    background-color: #3a3a3a;
}

.news-item h2 {
    color: #ffcc00;
    font-size: 1em;
    margin: 0;
}

/* 表单样式 */
form {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 0;
}

form input, form textarea, form button {
    margin: 10px 0;
    padding: 10px;
    width: 100%;
    border: 1px solid #B2DFDB;
    border-radius: 5px;
}

form input, form textarea {
    background-color: #ffffff;
    color: #333;
}

form button {
    background-color: #ffcc00;
    color: #000000;
    cursor: pointer;
    font-weight: bold;
}

form button:hover {
    background-color: #ef8700;
}

/* 文章内容样式 */
.news-content-box {
    margin-top: 20px;
    background-color: #444444;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.news-content-inner {
    padding: 10px;
    background-color: #ffffff;
    border-radius: 10px;
}

.news-content-box p {
    text-align: left;
    color: #333;
}

.news-content .news-image {
    max-width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* 按钮盒子样式 */
.button-box {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.nav-button {
    padding: 10px 20px;
    background-color: #ffcc00;
    color: #000;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
}

.nav-button:hover {
    background-color: #ef8700;
    color: #ffffff;
}

/* 注销按钮样式 */
.logout-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: #ffcc00;
    color: #000;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
}

.logout-button:hover {
    background-color: #ef8700;
}
