/* 导入通用样式 */
@import url('/static/css/index.css');


/* 更新公告容器 */
.update-container {
    max-width: 1200px;
    margin: 80px auto 0;
    padding: 2rem;
    padding-bottom: calc(2rem + 200px);
    /* 为页脚预留空间 */
    animation: fadeIn 0.8s ease-out;
}

.update-container h1 {
    text-align: center;
    color: #333;
    margin: 1rem 0 2.5rem;
    font-size: clamp(1.5rem, 4vw, 2rem);
    line-height: 1.2;
}

/* 更新列表样式 */
.update-list {
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 3vw, 2rem);
    margin-bottom: 4rem;
    width: 100%;
}

/* 更新项样式 */
.update-item {
    background: #fff;
    border-radius: clamp(8px, 2vw, 12px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: clamp(1rem, 3vw, 1.5rem);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    width: 100%;
    box-sizing: border-box;
}

.update-item.fade-in {
    opacity: 1;
    transform: translateY(0);
}

.update-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* 更新头部样式 */
.update-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.update-header h2 {
    color: #333;
    font-size: clamp(1.2rem, 3vw, 1.5rem);
    margin: 0;
    line-height: 1.3;
}

.update-date {
    color: #666;
    font-size: clamp(0.8rem, 2vw, 0.9rem);
}

/* 更新内容样式 */
.update-content h3 {
    color: #444;
    font-size: clamp(1.1rem, 2.5vw, 1.2rem);
    margin: 1.5rem 0 1rem;
    line-height: 1.4;
}

.update-content h3:first-child {
    margin-top: 0;
}

.update-content ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.update-content li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: #555;
    line-height: 1.6;
    font-size: clamp(0.9rem, 2vw, 1rem);
}

.update-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 6px;
    height: 6px;
    background-color: #4a90e2;
    border-radius: 50%;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #1890ff;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: #40a9ff;
    transform: translateY(-3px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* 页脚样式 */
.footer {
    background: #001529;
    color: white;
    padding: 2rem 1rem 1rem;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    z-index: 999;
}

.footer.visible {
    transform: translateY(0);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.footer-section h4 {
    color: #1890ff;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-section a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #1890ff;
}

.footer-bottom {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 学院选择下拉框样式 */
.college-select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background-color: rgba(0, 0, 0, 0.2);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='rgba(255, 255, 255, 0.8)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
}

.college-select:hover {
    border-color: #1890ff;
    background-color: rgba(0, 0, 0, 0.3);
}

.college-select:focus {
    outline: none;
    border-color: #1890ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.college-select option {
    background-color: #001529;
    color: rgba(255, 255, 255, 0.8);
    padding: 8px;
}


/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding-top: 50px;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 1rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        gap: 1rem;
    }

    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .update-container {
        margin: 1rem auto;
        padding: 0 1rem;
    }

    .update-container h1 {
        margin: 0.5rem 0 1.5rem;
    }

    .update-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .update-item {
        padding: 1rem;
    }

    .update-content li {
        padding-left: 1.2rem;
    }

    .update-content li::before {
        width: 5px;
        height: 5px;
        top: 0.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }

    .back-to-top svg {
        width: 20px;
        height: 20px;
    }
}

/* 平板设备适配 */
@media (min-width: 769px) and (max-width: 1024px) {
    .update-container {
        padding: 0 2rem;
    }

    .update-item {
        padding: 1.25rem;
    }

    .footer-content {
        padding: 0 2rem;
    }
}

/* 打印样式优化 */
@media print {
    body {
        padding-top: 0;
    }

    .update-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .navbar,
    .footer,
    .back-to-top {
        display: none;
    }
}