@charset "utf-8";

/* ========================================
   更新公告页面样式
   ======================================== */

/* 头部 */
.update-header {
    background: linear-gradient(90deg, #f7f3e8 0%, #fff9ef 100%);
    border-left: 6px solid #ba231a;
    padding: 20px 28px;
    margin-bottom: 32px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.update-header h1 {
    font-size: 26px;
    font-weight: bold;
    color: #2c2c2c;
    margin: 0 0 8px 0;
    letter-spacing: 1px;
}

.date-badge {
    display: inline-block;
    background: #ba231a;
    color: #fff;
    font-size: 14px;
    padding: 4px 14px;
    border-radius: 20px;
    margin-top: 8px;
}

/* 列表 */
.update-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.update-list li {
    background: #ffffff;
    margin-bottom: 20px;
    border-radius: 12px;
    border: 1px solid #ece8e0;
    transition: all 0.2s;
}

.update-list li:hover {
    border-color: #c9b68b;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

/* 卡片内容 */
.update-card {
    padding: 20px 28px;
    display: flex;
    align-items: flex-start;
    gap: 18px;
}

.update-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: #fef3e6;
    border-radius: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
}

.update-content {
    flex: 1;
}

.update-title {
    font-size: 18px;
    font-weight: bold;
    color: #1e1e1e;
    margin-bottom: 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 10px;
}

.tag {
    background: #efe3d3;
    color: #8b5a2b;
    font-size: 12px;
    font-weight: normal;
    padding: 2px 12px;
    border-radius: 30px;
}

.update-desc {
    color: #5a5a5a;
    line-height: 1.6;
    font-size: 14px;
    margin: 0;
}

.update-desc strong {
    color: #ba231a;
    font-weight: 600;
}

/* 多图展示 */
.update-images {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.update-images img {
    max-width: calc(50% - 5px);
    border-radius: 8px;
    border: 1px solid #eee;
    cursor: pointer;
    transition: transform 0.2s;
}

.update-images img:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 温馨提示面板 */
.notice-board {
    background: #fff7ef;
    border-left: 4px solid #ba231a;
    padding: 18px 24px;
    margin-top: 36px;
    border-radius: 12px;
    display: flex;
    gap: 14px;
    align-items: center;
    flex-wrap: wrap;
}

.notice-board span:first-child {
    font-size: 24px;
}

.notice-board p {
    margin: 0;
    color: #4a3727;
    font-size: 14px;
    flex: 1;
}

/* 落款 */
.update-signature {
    text-align: right;
    margin-top: 20px;
    color: #999;
    font-size: 12px;
}

/* ========================================
   公告列表切换栏
   ======================================== */
.notice-tab {
    background: #fff9ef;
    padding: 12px 20px;
    margin-bottom: 5px;
    border-radius: 12px;
    border: 1px solid #f0e4d4;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.notice-tab-item {
    display: inline-block;
    padding: 6px 16px;
    background: #f5f0e8;
    color: #5a4a3a;
    border-radius: 30px;
    text-decoration: none;
    font-size: 13px;
    transition: all 0.2s;
    cursor: pointer;
}

.notice-tab-item:hover {
    background: #e8dccc;
    color: #ba231a;
    transform: translateY(-2px);
}

.notice-tab-item.active {
    background: #ba231a;
    color: #fff;
    box-shadow: 0 2px 8px rgba(186, 35, 26, 0.3);
}

/* 更多下拉菜单 */
.notice-dropdown {
    position: relative;
    display: inline-block;
}

.notice-dropdown-btn {
    padding: 6px 16px;
    background: #f5f0e8;
    color: #5a4a3a;
    border-radius: 30px;
    cursor: pointer;
    font-size: 13px;
}

.notice-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: #fff;
    min-width: 200px;
    border: 1px solid #f0e4d4;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 100;
    margin-top: 5px;
}

.notice-dropdown-content a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #5a4a3a;
    font-size: 13px;
    border-bottom: 1px solid #f0e4d4;
}

.notice-dropdown-content a:last-child {
    border-bottom: none;
}

.notice-dropdown-content a:hover {
    background: #fef3e6;
    color: #ba231a;
}

.notice-dropdown:hover .notice-dropdown-content {
    display: block;
}

/* ========================================
   新闻列表分页样式
   ======================================== */
.news-pagination {
    text-align: center;
    padding: 20px 0;
    margin-top: 20px;
}

.news-page-number {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 3px;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.news-page-number.active {
    background: #ba231a;
    color: #fff;
    border-color: #ba231a;
    cursor: default;
}

.news-page-number.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.news-page-number:hover:not(.disabled):not(.active) {
    border-color: #ba231a;
    color: #ba231a;
}
.news-new-mark {
    background: #ba231a !important;
    color: #fff !important;
    font-size: 10px !important;
    padding: 2px 5px !important;
    border-radius: 10px !important;
    margin-left: 5px !important;
    display: inline-block !important;
    white-space: nowrap !important;
}

/* ========================================
   移动端响应式
   ======================================== */
@media (max-width: 768px) {
    .update-card {
        flex-direction: column;
        padding: 16px;
    }
    .update-icon {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }
    .update-header {
        padding: 16px;
    }
    .update-header h1 {
        font-size: 22px;
    }
    .notice-tab-item {
        padding: 6px 14px;
        font-size: 12px;
    }
    .notice-tab {
        gap: 8px;
        padding: 12px 15px;
    }
    .update-images img {
        max-width: 100%;
    }
}