/* 全局样式 */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

/* 网页容器样式 */
.web {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* 导航栏样式 */
#nav {
    background-color: #333;
}

#nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

#nav li {
    margin: 0 10px;
}

#nav a {
    display: block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    transition: background-color 0.3s;
}

#nav a:hover {
    background-color: #555;
}

#nav a.active {
    background-color: #007BFF;
}

/* 主体内容样式 */
.main {
    padding: 20px;
}

.title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
}

.ibox1 ul {
    list-style-type: none;
    padding: 0;
}

.ibox1 p {
    margin: 10px 0;
}

.ibox1 a {
    color: #007BFF;
    text-decoration: none;
}

.ibox1 a:hover {
    text-decoration: underline;
}

/* 图片样式 */
.index-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.slide h1 {
    font-size: 16px;
    font-weight: normal;
    line-height: 1.2;
    margin-top: 5px;
}

.slider-container {
    position: relative;
    overflow: hidden;
    margin-bottom: 20px;
}

.slider {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 25%;
    box-sizing: border-box;
    padding: 10px;
    text-align: center;
}

.slider-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* 公告栏样式 */
.announcement-board {
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 10px;
    height: 320px; 
}

.announcement-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px dashed #ccc;
    box-sizing: border-box;
    opacity: 1;
    transition: opacity 0.3s ease;
    cursor: pointer; 
}

.announcement-item:hover {
    background-color: #f0f0f0; 
}

.announcement-item:active {
    background-color: #e0e0e0; 
}

.announcement-date {
    display: inline-block;
    background-color: #f0f0f0;
    color: #666;
    padding: 3px 6px;
    margin-right: 10px;
    border-radius: 3px;
}

.announcement-day {
    display: inline-block;
    background-color: #007BFF;
    color: white;
    padding: 8px 12px;
    margin-right: 10px;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
}

.announcement-board a {
    color: #333;
    text-decoration: none;
    flex: 1;
}

.announcement-board a:hover {
    text-decoration: none; 
}

/* 置顶公告样式 */
.announcement-item:first-child {
    background-color: #ffe4b5;
    border-bottom: 2px solid #ff8c00;
}

.announcement-item:first-child a span:last-child {
    color: #ff8c00;
    font-weight: bold;
    margin-left: 5px;
}

/* 翻页按钮样式 */
.pagination {
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pagination button {
    background-color: white;
    color: black;
    border: none;
    padding: 6px 12px;
    margin: 0 5px;
    cursor: pointer;
    border-radius: 5px;
}

.pagination button:hover {
    background-color: white;
}

#page-numbers {
    display: flex;
    margin: 0 10px;
}

#page-numbers span {
    padding: 6px;
    margin: 0 2px;
    cursor: pointer;
    border-radius: 5px;
}

#page-numbers span.active {
    background-color: #007BFF;
    color: white;
}

/* 页脚样式 */
.foot {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 10px;
}

/* 翻页按钮样式2 */
#thought-pagination {
    text-align: center;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

#thought-pagination button {
    background-color: white;
    color: black;
    border: none;
    padding: 6px 12px;
    margin: 0 5px;
    cursor: pointer;
    border-radius: 5px;
}

#thought-pagination button:hover {
    background-color: white;
}

#thought-page-numbers {
    display: flex;
    margin: 0 10px;
}

#thought-page-numbers span {
    padding: 6px;
    margin: 0 2px;
    cursor: pointer;
    border-radius: 5px;
}

#thought-page-numbers span.active {
    background-color: #007BFF;
    color: white;
}
