
html {
    font-size: clamp(12px, 1.5vw, 16px);
}

/* 文档2 - 保存为 style.css */

/* 通用样式：设置所有元素的盒模型为 border-box，包括伪元素 */
*,
*::before,
*::after {
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent; /* 移除移动端点击高亮 */
}

/* 页面基础样式 */
body {
    font-family: "Microsoft YaHei", sans-serif;
    margin: clamp(15px, 2vw, 30px);
    /* 使用clamp函数设置动态外边距 */
    /* 优化背景渐变：增加层次感 */
    background: linear-gradient(135deg, #ffffff 0%);
    -webkit-tap-highlight-color: transparent; /* 移除移动端点击高亮 */
}

.outline {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.rect {
    stroke-dashoffset: 5;
    stroke-dasharray: 0 0 10 40 10 40;
    transition: 0.5s;
    stroke: #006aff;
}

.nav {
    position: relative;
    width: 400px;
    height: 60px;
    border-radius: 40px;
}

.nav-container:hover .outline .rect {
    transition: 999999s;
    /* Must specify these values here as something *different* just so that the transition works properly */
    stroke-dashoffset: 1;
    stroke-dasharray: 0;
}

.nav-container {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    padding: 0.5em;
}

.nav-container-btn {
    padding: 0.5em 1.5em;
    color: #000000;
    cursor: pointer;
    transition: 0.1s;
}

.nav-container-btn:hover {
    background: #006aff;
    color: #ffffff;
    border-radius: 10px;
}

.nav-container-btn:nth-child(1):hover~svg .rect {
    stroke-dashoffset: 0;
    stroke-dasharray: 0 2 8 73.3 8 10.7;
}

.nav-container-btn:nth-child(2):hover~svg .rect {
    stroke-dashoffset: 0;
    stroke-dasharray: 0 12.6 9.5 49.3 9.5 31.6;
}

.nav-container-btn:nth-child(3):hover~svg .rect {
    stroke-dashoffset: 0;
    stroke-dasharray: 0 24.5 8.5 27.5 8.5 55.5;
}

.nav-container-btn:nth-child(4):hover~svg .rect {
    stroke-dashoffset: 0;
    stroke-dasharray: 0 34.7 6.9 10.2 6.9 76;
}

.nav-container-btn:hover~.outline .rect {
    stroke-dashoffset: 0;
    stroke-dasharray: 0 0 10 40 10 40;
    transition: 0.5s !important;
}

.web-btn {
  margin: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  border: none;
  font-weight: 600;
  cursor: pointer;
}


.web-btn-primary {
  background: linear-gradient(#1f5afe, #0f4cf5);
  color: white;
  box-shadow: inset 0pt 4pt 3pt -2pt #386fff, 0pt 4pt 5pt -3pt #0009;
  border-bottom: 2pt solid #083acd;
  transition: all 0.5s ease;
}

.web-btn-primary:hover {
  border-bottom: 4pt solid #083acd;
  translate: 0pt -1pt;
}

.web-btn-primary:active {
  box-shadow: inset 0pt 4pt 3pt -2pt #386fff, 0pt 4pt 5pt -3pt #0000;
  border-bottom: 1pt solid #083acd;
  translate: 0pt 0pt;
}

.web-btn-primary kbd {
  background-color: #3e6eff;
  box-shadow: inset 0pt -3pt 3pt -2pt #1f54f0, inset 0pt 3pt 3pt -2pt #658dff,
    0pt 2pt 2pt -2pt #0005, 0pt 0pt 0pt 2pt #0d47f0;
}

.web-btn-base {
  background: #386fff;
}


/* 主标题区域样式 */
.main-header {
    /* 新的渐变背景设计 */
    background: linear-gradient(135deg, #1d37ca, #26d0ce);
    margin: clamp(10px, 1.5vw, 20px) clamp(5px, 1vw, 10px) clamp(12px, 2vw, 25px);
    padding: clamp(25px, 3vw, 40px) clamp(20px, 2.5vw, 40px);
    border-radius: clamp(15px, 2vw, 25px);
    box-shadow:
        0 10px 30px rgba(26, 41, 128, 0.3),
        inset 0 0 15px rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
    text-align: center;
    /* 添加动画效果 */
    animation: headerGlow 4s infinite alternate;
}

/* 标题Logo容器 */
.logo-container {
    /* 修改 height 为合适的值 */
    height: 0rem;
    /* 根据实际需求调整 */
    display: flex;
    justify-content: center;
    align-items: center;
    /* 如果需要进一步下移 logo，可以使用以下属性 */
    margin-top: 10px;
    /* 或者使用 transform */
    transform: translateX(0.5rem);
}

/* 标题Logo样式 */
.header-logo {
    width: 27rem;
    height: 26rem;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

/* 主标题区域的动画效果 */
@keyframes headerGlow {
    0% {
        box-shadow:
            0 10px 30px rgba(26, 41, 128, 0.3),
            inset 0 0 15px rgba(255, 255, 255, 0.2);
    }

    100% {
        box-shadow:
            0 10px 40px rgba(38, 208, 206, 0.4),
            inset 0 0 25px rgba(255, 255, 255, 0.3);
    }
}

/* 主标题区域的装饰元素 */


.main-header::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(90deg, transparent 50%, rgba(255, 255, 255, 0.05) 50%),
        linear-gradient(transparent 50%, rgba(255, 255, 255, 0.05) 50%);
    background-size: 20px 20px;
    z-index: 0;
}

/* 标题容器样式 */
.title-container {
    position: relative;
    z-index: 1;
    text-align: center;

}

/* 应用标题样式 */
.app-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    color: #fff;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    position: relative;
    padding: 15px 0;
}

/* 标题文本样式 */
.title-text {
    color: var(--text-color);
    padding: 15px 30px;
    position: relative;
    letter-spacing: 3px;
    font-weight: 700;
    /* 添加文字发光效果 */
    text-shadow:
        0 0 10px rgba(255, 255, 255, 0.5),
        0 0 20px rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    backdrop-filter: blur(5px);
}

/* 标题前后的装饰元素 */
.title-text::before {
    content: "✦";
    position: absolute;
    left: 19px;
    top: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.5rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    animation: sparkle 2s infinite alternate;
}

.title-text::after {
    content: "✦";
    position: absolute;
    right: 0;
    top: 50%;
    transform: translate(50%, -50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.5rem;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    animation: sparkle 2s infinite alternate-reverse;
}

/* 闪烁动画 */
@keyframes sparkle {
    0% {
        opacity: 0.7;
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* 子标题样式 */
.title-sub {
    color: var(--text-color);
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    margin-top: 10px;
    letter-spacing: 2px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 20px;
    border-radius: 30px;
    backdrop-filter: blur(5px);
}

/* 图标浮动动画 */
.sub-icon {
    animation: float 2s ease-in-out infinite;
    font-size: 1.2em;
}

/* 浮动动画定义 */
@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* 按钮基础样式 */
.btn {
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border-radius: clamp(8px, 1vw, 12px);
    padding: clamp(12px, 1.3vw, 18px) clamp(25px, 3vw, 40px);
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: #3E9EFF;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 clamp(1px, 0.2vw, 2px) clamp(4px, 0.8vw, 8px) rgba(62, 158, 255, 0.2);
    -webkit-tap-highlight-color: transparent; /* 移除移动端点击高亮 */
    -webkit-touch-callout: none; /* 禁止长按弹出菜单 */
    -webkit-user-select: none; /* 禁止选择文本 */
    user-select: none;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(62, 158, 255, 0.4);
}

.btn.active {
    background: #3E9EFF;
    color: white;
    box-shadow: 0 4px 20px rgba(62, 158, 255, 0.4);
}

/* 年级导航样式 */
.grade-tabs {
    display: flex;
    /* 弹性布局 */
    gap: clamp(10px, 1.5vw, 20px);
    /* 使用clamp函数 */
    margin-bottom: clamp(10px, 1.5vw, 20px);
    /* 使用clamp函数 */
}

/* 年级按钮样式 */
.grade-btn {
    padding: clamp(12px, 1.3vw, 18px) clamp(25px, 3vw, 40px);
    /* 使用与年级按钮相同的响应式间距 */
    border: none;
    /* 移除边框 */
    border-radius: clamp(8px, 1vw, 12px);
    /* 统一圆角 */
    background: rgba(255, 255, 255, 0.9);
    /* 半透明背景 */
    color: #3E9EFF;
    /* 蓝色文字 */
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    /* 统一过渡效果 */
    box-shadow: 0 clamp(1px, 0.2vw, 2px) clamp(4px, 0.8vw, 8px) rgba(62, 158, 255, 0.2);
    /* 统一阴影 */
    font-weight: 600;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent; /* 移除移动端点击高亮 */
    -webkit-touch-callout: none; /* 禁止长按弹出菜单 */
    -webkit-user-select: none; /* 禁止选择文本 */
    user-select: none;
}

/* 悬停动画 */
.grade-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(62, 158, 255, 0.4);
}

/* 选中样式 */
.grade-btn.active {
    background: #3E9EFF;
    color: white;
    box-shadow: 0 4px 20px rgba(62, 158, 255, 0.4);
}

/* 班级导航样式 */
.class-tabs {
    display: flex;
    /* 弹性布局 */
    gap: clamp(4px, 0.8vw, 8px);
    /* 使用clamp函数 */
    margin-bottom: clamp(12px, 1.8vw, 25px);
    /* 使用clamp函数 */
}

/* 班级按钮样式 */
.class-btn {
    padding: clamp(12px, 1.3vw, 18px) clamp(25px, 3vw, 40px);
    /* 使用与年级按钮相同的响应式间距 */
    border: none;
    /* 移除边框 */
    border-radius: clamp(8px, 1vw, 12px);
    /* 统一圆角 */
    background: rgba(255, 255, 255, 0.9);
    /* 半透明背景 */
    color: #3E9EFF;
    /* 蓝色文字 */
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    /* 统一过渡效果 */
    box-shadow: 0 clamp(1px, 0.2vw, 2px) clamp(4px, 0.8vw, 8px) rgba(62, 158, 255, 0.2);
    /* 统一阴影 */
    font-weight: 600;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent; /* 移除移动端点击高亮 */
    -webkit-touch-callout: none; /* 禁止长按弹出菜单 */
    -webkit-user-select: none; /* 禁止选择文本 */
    user-select: none;
}

/* 悬停动画 */
.class-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(62, 158, 255, 0.4);
}

/* 选中样式 */
.class-btn.active {
    background: #3E9EFF;
    color: white;
    box-shadow: 0 4px 20px rgba(62, 158, 255, 0.4);
}

/* 提示标记样式 */
.auto-flag {
    color: #ff4400dd;
    /* 红色文字 */
    font-size: 1.2em;
    /* 字号 */
    margin-left: 8px;
    /* 左边距 */
}

/* 内容区域样式 */
.content-box {
    /* 添加微妙的纹理背景 */
    background: rgba(255, 255, 255, 0.9) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40"><path fill="none" stroke="%23ccc" stroke-width="0.5" d="M0 0h40v40H0z"/></svg>') repeat;
    padding: clamp(15px, 1.5vw, 20px);
    /* 使用clamp函数 */
    border-radius: clamp(8px, 1vw, 12px);
    /* 使用clamp函数 */
    margin-bottom: clamp(15px, 1.8vw, 25px);
    /* 使用clamp函数 */
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(235, 235, 235, 0.8);
    backdrop-filter: blur(8px);
    transition: transform 0.3s ease;
}

/* 内容区域悬停效果 */
.content-box:hover {
    transform: translateY(-2px);
    /* 向上移动 */
}

/* 图片容器样式 */
.image-container {
    width: 100%;
    height: clamp(50vh, 70vw, 80vh);
    /* 使用clamp函数设置动态高度 */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    touch-action: none;
    /* 添加硬件加速优化 */
    will-change: transform;
}



/* 操作提示样式 */
.operation-hint {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 10;
    opacity: 0.9;
    transition: opacity 0.3s ease;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .image-container {
        height: 70vh;
    }

    .operation-hint {
        font-size: 12px;
        padding: 6px 12px;
        bottom: 10px;
    }

    .modal-content {
        max-width: 95%;
        max-height: 85vh;
    }
}

/* 可缩放图片样式 */
#zoomable-image {
    max-width: 100%;
    /* 最大宽度 */
    max-height: 100%;
    /* 最大高度 */
    transition: transform 0.2s ease;
    /* 过渡效果 */
    transform-origin: center center;
    /* 缩放中心 */
    user-select: none;
    /* 禁止选择 */
    -webkit-user-select: none;
    -moz-user-select: none;
    position: absolute;
    /* 绝对定位 */
    pointer-events: auto;
}

image {
    pointer-events: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

/* 新增：允许zoomable-image点击 */
#zoomable-image {
    pointer-events: auto;
}

/* 图片盒子样式 */
.image-box {
    width: 100%;
    /* 宽度 */
    aspect-ratio: 4/3;
    /* 宽高比 */
    border: 2px dashed #e0e0e0;
    /* 虚线边框 */
    border-radius: 8px;
    /* 圆角 */
    display: block;
    /* 块级元素 */
    position: relative;
    /* 相对定位 */
    background: #f9f9f9;
    /* 浅灰背景 */
    transition: border-color 0.3s ease;
    /* 过渡效果 */
}

/* 图片盒子内的图片样式 */
.image-box img {
    width: 100%;
    /* 宽度 */
    height: 100%;
    /* 高度 */
    object-fit: contain;
    /* 包含图片 */
    object-position: center;
    /* 居中显示 */
}

/* 加载状态样式 */
.loading::after {
    content: "加载中...";
    display: block;
    /* 块级元素 */
    text-align: center;
    /* 居中 */
    padding-top: 40%;
    /* 上内边距 */
    color: #999;
    /* 灰色文字 */
}

/* 今日作业和历史作业模块加载状态样式 */
.content-box.loading::after,
.grid-container.loading::after {
    content: "正在加载...";
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    color: #666;
    z-index: 10;
    border-radius: 12px;
    /* 添加加载动画 */
    animation: loadingFade 1.5s infinite;
}

/* 加载状态文字动画 */
@keyframes loadingFade {
    0% {
        opacity: 0.6;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    100% {
        opacity: 0.6;
        transform: scale(1);
    }
}

/* 加载状态时的网格容器样式 */
.grid-container.loading {
    pointer-events: none;
    opacity: 0.8;
}

/* 历史作业网格容器样式 */
.grid-container {
    display: grid;
    /* 网格布局 */
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    /* 自动填充列 */
    gap: 15px;
    /* 间距 */
    min-height: 300px;
    /* 确保容器有最小高度 */
    /* 添加相对定位，为.no-history-message提供参考 */
    position: relative;
    /* 添加背景和边框 */
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 15px;
    /* 添加阴影效果 */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    /* 添加过渡效果 */
    transition: all 0.3s ease;
}

/* 网格容器悬停效果 */
.grid-container:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* 网格容器加载状态样式 */
.grid-container.loading::after {
    content: "正在加载历史作业...";
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    font-size: 1.2rem;
    color: #666;
    z-index: 10;
    border-radius: 12px;
}

/* 网格项样式 */
.grid-item {
    aspect-ratio: 4/3;
    /* 宽高比 */
    background: rgb(255, 255, 255);
    /* 白色背景 */
    border-radius: 8px;
    /* 圆角 */
    background-size: contain;
    /* 包含背景图 */
    background-position: center;
    /* 居中 */
    background-repeat: no-repeat;
    /* 不重复 */
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.06);
    /* 阴影 */
    transition: all 0.3s ease;
    /* 过渡效果 */
    cursor: pointer;
    /* 手型光标 */
}

/* 网格项悬停效果 */
.grid-item:hover {
    transform: scale(1.03);
    /* 放大 */
    box-shadow: 0 6px 20px rgba(62, 158, 255, 0.15);
    /* 更强阴影 */
}




/* 弹窗内容样式 */
.modal-content {
    position: relative;
    /* 相对定位 */
    width: 90%;
    /* 宽度 */
    max-width: 800px;
    /* 最大宽度 */
    max-height: 90vh;
    /* 最大高度 */
    margin: auto;
    /* 居中 */
    background-color: #fff;
    /* 白色背景 */
    border-radius: 12px;
    /* 圆角 */
    padding: 10px;
    /* 内边距 */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    /* 阴影 */
    overflow: auto;
    /* 启用自动滚动 */
}

/* 上传表单容器样式 */
.upload-form {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    padding-bottom: 20px;
    flex: 1 1 auto;
}

/* 优化上传模态框样式 */
.modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    margin: auto;
    background-color: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: auto;
    border: none;
}

/* 上传模态框标题 */
.modal-content h3 {
    text-align: center;
    color: #3E9EFF;
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 1.8rem;
    font-weight: 600;
    position: relative;
    padding-bottom: 15px;
}

.modal-content h3::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(to right, #3E9EFF, #26d0ce);
    border-radius: 2px;
}

/* 上传配置警告样式 */
.oss-config-alert {
    background: linear-gradient(135deg, #fff9e6, #fff0b3);
    border: 1px solid #ffd8a7;
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 25px;
    color: #8a6d3b;
    font-size: 1rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.oss-config-alert::before {
    position: absolute;
    top: 10px;
    left: 15px;
    font-size: 1.5rem;
}

.oss-config-alert br {
    margin-bottom: 8px;
}

/* 时间提醒样式 */
.time-reminder {
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    border-radius: 12px;
    padding: 15px 20px;
    margin-bottom: 25px;
    text-align: center;
    font-weight: 500;
    color: #1976d2;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
}

/* 表单组样式 */
.form-group {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 0 10px;
}

.form-group label {
    min-width: 60px;
    font-weight: 600;
    color: #333;
}

/* 表单输入响应式样式 */
.form-select,
.form-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.form-select:focus,
.form-input:focus {
    outline: none;
    border-color: #3E9EFF;
    box-shadow: 0 0 0 3px rgba(62, 158, 255, 0.2);
    background: #fff;
}

/* 拖放区域样式 */
.drop-zone {
    border: 3px dashed #3E9EFF;
    border-radius: 15px;
    padding: 40px 20px;
    text-align: center;
    margin: 25px 0;
    background: linear-gradient(135deg, #f0f8ff, #e6f2ff);
    transition: all 0.3s ease;
    position: relative;
    min-height: 200px;
    -webkit-tap-highlight-color: transparent; /* 移除移动端点击高亮 */
    -webkit-touch-callout: none; /* 禁止长按弹出菜单 */
    -webkit-user-select: none; /* 禁止选择文本 */
    user-select: none;
}

/* 拖放时的样式 */
.drop-zone.dragover {
    background: linear-gradient(135deg, #d0e8ff, #a7d4ff);
    border-color: #1a73e8;
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(62, 158, 255, 0.3);
}

.drop-zone span {
    display: block;
    font-size: 1.2rem;
    color: #3E9EFF;
    margin-bottom: 20px;
    font-weight: 500;
}

.drop-zone input[type="file"] {
    display: none;
}

.drop-zone-button {
    background: #3E9EFF;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(62, 158, 255, 0.3);
}

.drop-zone-button:hover {
    background: #2d8be6;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(62, 158, 255, 0.4);
}

.drop-zone-button:active {
    transform: translateY(0);
}

/* 文件信息样式 */
.file-info {
    margin-top: 20px;
}

.file-meta {
    margin: 15px 0;
    color: #555;
    font-size: 0.95rem;
}

/* 文件预览容器 */
.file-preview-container {
    max-height: 300px;
    overflow-y: auto;
    margin-top: 20px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    border: 1px solid #e0e0e0;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.file-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 5px;
    justify-content: center;
}

.file-preview img {
    max-width: 100%;
    max-height: 200px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 2px solid #fff;
    background-color: #f5f5f5;
    padding: 10px;
    display: block;
}

/* 节日横幅自适应样式 */
.holiday-banner {
    width: 100%;
    overflow: hidden;
    margin: 20px 0;
    position: relative;
}

.holiday-banner > img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    max-height: 80vh;
    box-sizing: border-box;
    padding: 0 5%;
    margin: 0 auto;
}

/* 保持移动端友好 */
@media (max-width: 768px) {
    .holiday-banner > img {
        padding: 0 10%;
    }
}


/* 上传确认按钮样式 */
.upload-confirm {
    background: linear-gradient(135deg, #3E9EFF, #26d0ce);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s;
    width: 100%;
    align-self: flex-end;
    margin-top: 15px;
    cursor: pointer;
    box-shadow: 0 6px 15px rgba(62, 158, 255, 0.4);
    -webkit-tap-highlight-color: transparent; /* 移除移动端点击高亮 */
    -webkit-touch-callout: none; /* 禁止长按弹出菜单 */
    -webkit-user-select: none; /* 禁止选择文本 */
    user-select: none;
}

/* 悬停效果 */
.upload-confirm:hover {
    background: linear-gradient(135deg, #2d8be6, #1fc4c2);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(62, 158, 255, 0.5);
}

/* 禁用状态下的上传按钮 */
.upload-confirm:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 上传状态容器样式 */
.upload-status-container {
    position: sticky;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px 0;
    margin-top: auto;
    border-top: 1px solid #eee;
    box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.05);
    border-radius: 0 0 16px 16px;
    margin: 20px -20px -20px -20px;
}

/* 上传状态文本样式 */
#uploadStatus {
    min-height: 24px;
    text-align: center;
    font-size: 1rem;
    padding: 0 15px;
}

/* 状态加载样式 */
.status-loading {
    color: #1976d2;
    font-weight: 500;
}

/* 成功状态样式 */
.status-success {
    color: #388e3c;
    font-weight: 600;
}

/* 错误状态样式 */
.status-error {
    color: #d32f2f;
    font-weight: 600;
}

/* 上传部分的模态框样式 */
.upload-section .modal {
    background: rgba(0, 0, 0, 0.75);
}

/* 调整模态框布局结构 */
.upload-section .modal-content {
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding-bottom: 0;
}

/* 优化移动端体验 */
@media (max-height: 700px) {
    .modal-content {
        max-height: 98vh;
    }

    .file-preview {
        max-height: 30vh;
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .form-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .form-group label {
        min-width: auto;
    }

    .drop-zone {
        padding: 30px 15px;
        min-height: 150px;
    }

    .modal-content h3 {
        font-size: 1.5rem;
    }

    .oss-config-alert,
    .time-reminder {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
}

/* 公告栏样式修复 */
.announcement-box {
    background: linear-gradient(135deg, #fffef5, #fffbe6);
    /* 渐变背景 */
    border: 2px solid #ffec99;
    /* 边框 */
    border-radius: 16px;
    /* 圆角 */
    padding: 20px;
    /* 内边距 */
    margin: 0 -20px 30px;
    /* 外边距 */
    display: block;
    /* 块级元素 */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    /* 阴影 */
}

/* 公告头部样式 */
.announcement-header {
    display: flex;
    /* 弹性布局 */
    align-items: center;
    /* 垂直居中 */
    margin-bottom: 15px;
    /* 下边距 */
    border-bottom: 1px solid #eee;
    /* 底边框 */
    padding-bottom: 10px;
    /* 下内边距 */
}

/* 公告图标样式 */
.announcement-icon {
    font-size: 24px;
    /* 字号 */
    margin-right: 15px;
    /* 右边距 */
    flex-shrink: 0;
    /* 不收缩 */
    background: #3E9EFF;
    /* 蓝色背景 */
    color: white;
    /* 白色文字 */
    width: 40px;
    /* 宽度 */
    height: 40px;
    /* 高度 */
    border-radius: 50%;
    /* 圆形 */
    display: flex;
    /* 弹性布局 */
    align-items: center;
    /* 垂直居中 */
    justify-content: center;
    /* 水平居中 */
    box-shadow: 0 4px 12px rgba(62, 158, 255, 0.2);
    /* 阴影 */
}

/* 公告文本样式 */
.announcement-text {
    color: #333;
    /* 黑色文字 */
    line-height: 1.6;
    /* 行高 */
    max-height: 300px;
    /* 最大高度 */
    overflow-y: auto;
    /* 垂直滚动 */
    padding-right: 10px;
    /* 右内边距 */
}

/* 新增独立关闭容器样式 */
.close-container {
    position: relative;
    width: clamp(24px, 3vw, 32px);
    /* 动态尺寸适配 */
    height: clamp(24px, 3vw, 32px);
    margin-left: auto;
    /* 保持右侧对齐 */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

/* 公共关闭按钮基础样式 */
.close-btn {
    position: absolute;
    top: clamp(8px, 1vw, 16px);
    right: clamp(8px, 1vw, 16px);
    font-size: 24px;
    color: #666;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    width: clamp(36px, 3vw, 32px);
    height: clamp(36px, 3vw, 32px);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 10;
    flex-wrap: wrap;
    align-content: center;
    flex-direction: column;
    -webkit-tap-highlight-color: transparent; /* 移除移动端点击高亮 */
    -webkit-touch-callout: none; /* 禁止长按弹出菜单 */
    -webkit-user-select: none; /* 禁止选择文本 */
    user-select: none;
}

.class-btn:hover {
    color: #ff4d4f;
    box-shadow: 0px 0px 12px 4px rgba(255, 77, 79, 0.25);
}

/* 公告关闭按钮继承基础样式 */
.announcement-close-btn {
    /* @extend .close-btn; */ /* 注释掉这行，因为原CSS不支持@extend */
    top: clamp(8px, 1vw, 16px);
    right: clamp(8px, 1vw, 16px);
    position: absolute;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    width: clamp(36px, 3vw, 32px);
    height: clamp(36px, 3vw, 32px);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 10;
    flex-wrap: wrap;
    align-content: center;
    flex-direction: column;
    -webkit-tap-highlight-color: transparent; /* 移除移动端点击高亮 */
    -webkit-touch-callout: none; /* 禁止长按弹出菜单 */
    -webkit-user-select: none; /* 禁止选择文本 */
    user-select: none;
}

/* 关闭按钮悬停效果 */
.announcement-close-btn:hover {
    color: #ff4d4f;
    transform: rotate(180deg) scale(1.1);
    box-shadow: 0px 0px 12px 4px rgba(255, 77, 79, 0.25);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .announcement-box {
        padding: 15px;
        /* 内边距 */
        margin: 0 -10px 20px;
        /* 外边距 */
    }

    .announcement-text {
        max-height: 200px;
        /* 最大高度 */
        font-size: 12px;
        /* 字号 */
    }
}

/* 保持原有公告内容样式 */
.announcement-text h2 {
    color: #3E9EFF;
    /* 蓝色标题 */
    font-size: 1.4em;
    /* 字号 */
    margin: 15px 0 10px;
    /* 外边距 */
    padding-bottom: 8px;
    /* 下内边距 */
    border-bottom: 2px solid #eee;
    /* 底边框 */
}

.announcement-text strong {
    color: #f26422;
    /* 橙色文字 */
    font-size: 1.2em;
    /* 字号 */
    margin: 10px 0;
    /* 外边距 */
}

.announcement-text a {
    color: #409eff;
    /* 蓝色链接 */
    text-decoration: underline;
    /* 下划线 */
}

.announcement-text code {
    background: #f5f5f5;
    /* 浅灰背景 */
    padding: 2px 5px;
    /* 内边距 */
    border-radius: 3px;
    /* 圆角 */
}

.announcement-text pre {
    background: #f8f8f8;
    /* 更浅的背景 */
    padding: 10px;
    /* 内边距 */
    border-radius: 5px;
    /* 圆角 */
    overflow-x: auto;
    /* 水平滚动 */
}

/* 新增样式（作业过期、周六日自动跳周五） */
.caption-tips {
    font-size: 1em;
    /* 字号 */
    margin-top: 4px;
    /* 上边距 */
    opacity: 0.8;
    /* 透明度 */
}

/* 周末调整提示样式 */
.weekend-tip {
    display: block;
    /* 块级元素 */
    color: #2196F3;
    /* 蓝色文字 */
    background: rgba(33, 150, 243, 0.1);
    /* 浅蓝背景 */
    padding: 8px 12px;
    /* 内边距 */
    border-radius: 8px;
    /* 圆角 */
    margin-top: 8px;
    /* 上边距 */
    border-left: 3px solid #2196F3;
    /* 左边框 */
}

/* 过期时间特殊样式 */
.weekend-expire {
    color: #FF5722 !important;
    /* 红色文字 */
    background: rgba(255, 87, 34, 0.1);
    /* 浅红背景 */
    padding: 4px 8px;
    /* 内边距 */
    border-radius: 6px;
    /* 圆角 */
}

.weekend-tip::before {
    content: "⇄";
    /* 特殊字符 */
    display: inline-block;
    /* 行内块 */
    margin-right: 6px;
    /* 右边距 */
    font-weight: 700;
    /* 字重 */
    transform: rotate(90deg);
    /* 旋转 */
    animation: swing 2s ease-in-out infinite;
    /* 动画 */
}

/* 动态时间数字样式 */
.expire-info {
    color: #FF5722;
    /* 红色文字 */
    font-weight: 700;
    /* 字重 */
    font-style: normal;
    /* 正常字体 */
    text-shadow: 0 2px 3px rgba(255, 87, 34, 0.2);
    /* 文字阴影 */
}

/* 时间数字动态强调 */
.caption-tips span {
    color: #FF5722;
    /* 红色文字 */
    font-size: 1.1em;
    /* 字号 */
    font-weight: 900;
    /* 字重 */
    text-shadow: 0 2px 4px rgba(255, 87, 34, 0.2);
    /* 文字阴影 */
    position: relative;
    /* 相对定位 */
    padding: 0 2px;
    /* 内边距 */
}

.caption-tips span::after {
    content: "";
    /* 内容 */
    position: absolute;
    /* 绝对定位 */
    bottom: -2px;
    /* 下边距 */
    left: 0;
    /* 左边距 */
    width: 100%;
    /* 宽度 */
    height: 2px;
    /* 高度 */
    background: linear-gradient(90deg, transparent 10%, #FF5722 50%, transparent 90%);
    /* 渐变背景 */
    animation: highlight 2s linear infinite;
    /* 动画 */
}

/* 新增动画效果 */
@keyframes pulseWarning {

    0%,
    100% {
        opacity: 1;
        /* 不透明度 */
    }

    50% {
        opacity: 0.6;
        /* 半透明 */
        text-shadow: 0 0 8px rgba(255, 68, 68, 0.4);
        /* 文字阴影 */
    }
}

@keyframes swing {

    0%,
    100% {
        transform: rotate(90deg) translateX(0);
        /* 旋转和平移 */
    }

    50% {
        transform: rotate(90deg) translateX(3px);
        /* 旋转和移动 */
    }
}

@keyframes highlight {
    0% {
        background-position: -100% 0;
        /* 背景位置 */
    }

    100% {
        background-position: 200% 0;
        /* 背景位置 */
    }
}

/* 添加呼吸动画 */
@keyframes breathing {
    0% {
        opacity: 0.8;
        /* 不透明度 */
        transform: scale(1);
        /* 缩放 */
    }

    50% {
        opacity: 1;
        /* 不透明度 */
        transform: scale(1.02);
        /* 缩放 */
    }

    100% {
        opacity: 0.8;
        /* 不透明度 */
        transform: scale(1);
        /* 缩放 */
    }
}

.weekend-adjust .expire-info {
    animation: breathing 3s ease-in-out infinite;
    /* 动画 */
}

/* 状态容器增强 */
.expired-date .image-box {
    position: relative;
    /* 相对定位 */
    overflow: hidden;
    /* 隐藏溢出 */
}

/* 今日作业图片容器样式 */
.image-box {
    /* 容器最小高度 */
    min-height: 300px;
    /* 背景样式 */
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e7f4 100%);
    /* 圆角 */
    border-radius: 12px;
    /* 内边距 */
    padding: 20px;
    /* 相对定位 */
    position: relative;
    /* 阴影效果 */
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
    /* 盒模型 */
    box-sizing: border-box;
}

/* 指导信息容器样式 */
.guide-message {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    text-align: center;
    color: #5f6368;
    box-sizing: border-box;
}

/* 状态图标样式 */
.status-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #9aa0a6;
}

/* 警告状态样式 */
.status-warn {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 10px;
    color: #d93025;
}

/* 信息状态样式 */
.status-info {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 10px;
    color: #1a73e8;
}

/* 详细信息样式 */
.status-detail {
    font-size: 1.1rem;
    color: #5f6368;
    margin-top: 5px;
}

/* 已部署班级信息样式 */
.deployed-classes {
    font-weight: 500;
    color: #1a73e8;
}

/* 最近上传时间样式 */
#last-upload-time {
    font-weight: 500;
    color: #1a73e8;
}

/* 加载状态样式 */
.image-box.loading::after {
    content: "加载中……";
    font-size: 2rem;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: spin 1s linear infinite;
}



.expired-date .image-box::after {
    content: "作业已过期";
    /* 内容 */
    position: absolute;
    /* 绝对定位 */
    top: 50%;
    /* 上边距 */
    left: 50%;
    /* 左边距 */
    transform: translate(-50%, -50%);
    /* 居中 */
    background: rgba(255, 68, 68, 0.9);
    /* 深红背景 */
    color: white;
    /* 白色文字 */
    padding: 8px 20px;
    /* 内边距 */
    border-radius: 24px;
    /* 圆角 */
    font-weight: bold;
    /* 字重 */
    box-shadow: 0 4px 12px rgba(255, 68, 68, 0.3);
    /* 阴影 */
}

.weekend-adjust .image-box {
    border: 2px solid #2196F3;
    /* 蓝色边框 */
    box-shadow: 0 0 12px rgba(33, 150, 243, 0.2);
    /* 阴影 */
}

/* 上传相关样式 */
.upload-btn {
    font-family: inherit;
    font-size: 18px;
    background: linear-gradient(to bottom, #4dc7d9 0%, #66a6ff 100%);
    color: white;
    padding: 0.8em 1.2em;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 25px;
    box-shadow: 0px 5px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent; /* 移除移动端点击高亮 */
    -webkit-touch-callout: none; /* 禁止长按弹出菜单 */
    -webkit-user-select: none; /* 禁止选择文本 */
    user-select: none;
}

.upload-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0px 8px 15px rgba(0, 0, 0, 0.3);
}

.upload-btn:active {
    transform: scale(0.95);
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

.upload-btn span {
    display: block;
    margin-left: 0.4em;
    transition: all 0.3s;
}

.upload-btn svg {
    width: 18px;
    height: 18px;
    fill: white;
    transition: all 0.3s;
}

.upload-btn .svg-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    margin-right: 0.5em;
    transition: all 0.3s;
}

.upload-btn:hover .svg-wrapper {
    background-color: rgba(255, 255, 255, 0.5);
}

.upload-btn:hover svg {
    transform: rotate(45deg);
}

/* 上传按钮固定定位 */
.upload-section {
    position: fixed;
    /* 固定定位 */
    bottom: 30px;
    right: 30px;
    z-index: 10000;
    /* 提高层级优先级 */
    /* 添加视觉反馈 */
    opacity: 0.95;
    transition: all 0.3s ease;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .upload-section {
        bottom: 20px;
        right: 20px;
    }
}

/* 修改状态提示样式 */
#uploadStatus {
    max-height: 100px;
    /* 最大高度 */
    overflow-y: auto;
    /* 垂直滚动 */
    font-size: 14px;
    /* 字号 */
    line-height: 1.5;
    /* 行高 */
}

/* 新增上传相关样式 */
.oss-config-alert {
    background: #fff4e5;
    /* 浅黄背景 */
    border: 2px solid #ffd8a7;
    /* 橙色边框 */
    border-radius: 8px;
    /* 圆角 */
    padding: 12px;
    /* 内边距 */
    margin-bottom: 20px;
    /* 下边距 */
    color: #663d00;
    /* 深棕色文字 */
    font-size: 0.9em;
    /* 字号 */
}

/* 新增模态框布局修正 */
.modal {
    display: none;
    /* 默认隐藏 */
    position: fixed;
    /* 固定定位 */
    top: 0;
    /* 上边距 */
    left: 0;
    /* 左边距 */
    width: 100%;
    /* 宽度 */
    height: 100%;
    /* 高度 */
    background: rgba(0, 0, 0, 0.8);
    /* 半透明背景 */
    z-index: 999;
    /* 层级 */
    padding: 20px;
    /* 内边距 */
    overflow: hidden;
    /* 禁止外部滚动 */
}

/* 文件元信息样式 */
.file-meta {
    margin: 10px 0;
    /* 外边距 */
    color: #666;
    /* 灰色文字 */
}

/* 文件名样式 */
.file-name {
    font-weight: bold;
    /* 字重 */
    margin-right: 8px;
    /* 右边距 */
}

.file-preview-container {
    max-height: 200px;
    /* 设置最大高度 */
    overflow-y: auto;
    /* 启用垂直滚动 */
    margin-top: 10px;
}

.file-preview {
    display: flex;
    flex-wrap: wrap;
    /* 允许换行 */
    gap: 10px;
    /* 图片之间的间距 */
    padding: 10px;
    /* 内边距 */
}

.file-preview img {
    max-width: 100px;
    /* 设置图片的最大宽度 */
    max-height: 100px;
    /* 设置图片的最大高度 */
    object-fit: cover;
    /* 覆盖模式，保持图片比例 */
    border-radius: 4px;
    /* 圆角 */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    /* 添加阴影效果 */
}

/* 状态加载样式 */
.status-loading {
    position: sticky;
    /* 粘性定位 */
    bottom: 0;
    /* 底部 */
    background: white;
    /* 白色背景 */
    padding: 10px 0;
    /* 内边距 */
}

/* 成功状态样式 */
.status-success {
    color: #52c41a;
    /* 绿色文字 */
    font-weight: bold;
    /* 字重 */
}

/* 错误状态样式 */
.status-error {
    color: #ff4d4f;
    /* 红色文字 */
    font-weight: bold;
    /* 字重 */
}

/* 脉冲动画 */
@keyframes pulse {
    0% {
        opacity: 1;
        /* 不透明度 */
    }

    50% {
        opacity: 0.6;
        /* 半透明 */
    }

    100% {
        opacity: 1;
        /* 不透明度 */
    }
}

/* 拖拽进入样式 */
.dragover {
    background: rgba(62, 158, 255, 0.1) !important;
    /* 浅蓝背景 */
    border-color: #3E9EFF !important;
    /* 蓝色边框 */
    transform: scale(1.02);
    /* 缩放 */
}

/* 上传部分的模态框样式 */
.upload-section .modal {
    background: rgba(0, 0, 0, 0.7);
    /* 半透明背景 */
}

/* 调整模态框布局结构 */
.upload-section .modal-content {
    max-height: 90vh;
    /* 最大高度 */
    display: flex;
    /* 弹性布局 */
    flex-direction: column;
    /* 垂直方向 */
    overflow: hidden;
    /* 禁止外层滚动 */
    padding-bottom: 20px;
    /* 下内边距 */
}

/* 优化移动端体验 */
@media (max-height: 700px) {
    .modal-content {
        max-height: 98vh;
        /* 最大高度 */
    }

    .file-preview {
        max-height: 30vh;
        /* 最大高度 */
    }
}

/* 表单组响应式布局 */
.form-group {
    display: flex;
    /* 弹性布局 */
    align-items: center;
    /* 垂直居中 */
    gap: 10px;
    /* 元素间距 */
}

/* 表单输入响应式样式 */
.form-select,
.form-input {
    flex: 1;
    /* 弹性伸缩 */
    padding: 8px 12px;
    /* 内边距 */
    border: 1px solid #ddd;
    /* 边框 */
    border-radius: 6px;
    /* 圆角 */
    font-size: 14px;
    /* 字号 */
}

/* 调整拖放区域的高度限制 */
.drop-zone {
    border: 2px dashed #ddd;
    /* 虚线边框 */
    border-radius: 8px;
    /* 圆角 */
    padding: 20px;
    /* 内边距 */
    text-align: center;
    /* 文本居中 */
    background-color: #fff;
    /* 白色背景 */
    transition: all 0.3s ease;
    /* 平滑过渡 */
    min-height: 120px;
    /* 最小高度 */
    max-height: 40vh;
    /* 最大高度 */
    overflow: hidden;
    /* 隐藏溢出 */
}

/* 拖拽进入样式 */
.drop-zone.dragover {
    background: rgba(62, 158, 255, 0.1);
    /* 浅蓝背景 */
    border-color: #3E9EFF;
    /* 蓝色边框 */
    transform: scale(1.02);
    /* 缩放 */
}

/* 悬停样式 */
.drop-zone:hover {
    background: rgba(62, 158, 255, 0.05);
    /* 浅蓝背景 */
    cursor: pointer;
    /* 手型光标 */
}

/* 上传确认按钮悬停效果 */
.upload-confirm:hover {
    background: #2d8be6;
    /* 深蓝色背景 */
}

/* 上传状态文本样式 */
#uploadStatus {
    min-height: 24px;
    /* 最小高度 */
    text-align: center;
    /* 居中 */
    font-size: 14px;
    /* 字号 */
}

/* 新增节日主题模块 */
:root {
    --primary-color: #3E9EFF;
    --secondary-color: #26d0ce; /* 第二主题色 */
    --text-color: #000000;
    --primary-gradient-start: #1d37ca;
    --primary-gradient-end: #26d0ce;
    --holiday-primary: #d83911e3; /* 假日主色调 */
    --holiday-secondary: #ff4500; /* 假日第二主题色 */
    --holiday-text: #ffffff; /* 白色文字 */
    --holiday-gradient-start: #e60012;
    --holiday-gradient-end: #ff4500;
}

.holiday-mode {
    --primary-color: var(--holiday-primary);
    /* 主色调变量 */
    --secondary-color: var(--holiday-secondary);
    /* 第二主题色变量 */
    --text-color: var(--holiday-text);
    /* 文字颜色变量 */
    --primary-gradient-start: var(--holiday-gradient-start);
    /* 渐变起始色 */
    --primary-gradient-end: var(--holiday-gradient-end);
    /* 渐变结束色 */
}

/* 假日横幅样式 */
#holiday-banner {
    background: linear-gradient(135deg, var(--holiday-primary), #8e44ad);
    /* 渐变背景 */
    color: var(--holiday-text);
    /* 文字颜色 */
    padding: 8.5em;
    /* 内边距 */
    text-align: center;
    /* 居中 */
    margin: -20px -10px 25px;
}

/* 主标题样式 */
.main-header {
    background: linear-gradient(135deg, var(--primary-gradient-start), var(--primary-gradient-end));
    /* 外边距 */
    border-radius: 0 0 15px 15px;
    /* 圆角 */
    box-shadow: 0 6px 30px rgba(255, 255, 255, 0.856);
    /* 阴影 */
    position: relative;
    /* 相对定位 */
    overflow: hidden;
    /* 隐藏溢出 */
    background-size: cover;
    /* 背景覆盖 */
    background-position: center;
    /* 背景居中 */
    animation: holidayPulse 8s infinite alternate;
    /* 动画 */
}

/* 假日内容样式 */
.holiday-content {
    position: relative;
    /* 相对定位 */
    z-index: 2;
    /* 层级 */
    padding: 15px;
    /* 内边距 */
    background: rgba(255, 0, 0, 0);
    /* 浅绿背景 */
    border-radius: 12px;
    /* 圆角 */
    width: 103%;
    /* 占满父容器宽度 */
    max-width: 1200px;
    /* 最大宽度增大到1200px */
    margin: 0 auto;
    /* 居中 */
}

/* 假日名称样式 */
.holiday-name {
    font-size: 2.2rem;
    /* 字号 */
    font-weight: bold;
    /* 字重 */
    text-shadow: 0 2px 4px rgb(255, 255, 255);
    /* 文字阴影 */
    margin-bottom: 10px;
    /* 下边距 */
    animation: float 3s ease-in-out infinite;
    /* 动画 */
}

/* 假日问候语样式 */
.holiday-greeting {
    font-size: 3rem;
    /* 字号 */
    text-shadow: 0 4px 3px var(--holiday-primary);
    /* 文字阴影 */
}

/* 假日动画 */
@keyframes holidayPulse {
    0% {
        opacity: 0.9;
        /* 不透明度 */
    }

    100% {
        opacity: 1;
        /* 不透明度 */
    }
}

/* 假日作业说明样式 */
.holiday-caption {
    text-align: center;
    /* 居中 */
    color: var(--holiday-primary);
    /* 主色调文字 */
    font-weight: bold;
    /* 字重 */
    padding: 10px;
    /* 内边距 */
    border-radius: 8px;
    /* 圆角 */
    background: rgba(255, 255, 255, 0.1);
    /* 浅白背景 */
}

.holiday-caption .holiday-name {
    font-size: 1.5em;
    /* 字号 */
    color: var(--holiday-primary);
    /* 继承颜色 */
}

.holiday-caption .holiday-date {
    font-size: 1.1em;
    /* 字号 */
    opacity: 0.9;
    /* 透明度 */
}

.holiday-caption .holiday-greeting {
    font-size: 1.2em;
    /* 字号 */
    margin-top: 5px;
    /* 上边距 */
    color: inherit;
    /* 继承颜色 */
}

/* 假日消息样式 */
.holiday-message {
    font-size: 1.8em !important;
    /* 字号 */
    color: var(--holiday-primary) !important;
    /* 主色调文字 */
    text-shadow: 0 0 10px rgba(94, 255, 0, 0.757);
    /* 文字阴影 */
    animation: pulse 2s infinite;
    /* 动画 */
}

/* 调整原有元素在假日模式下的样式 */
.holiday-mode .grade-btn.active {
    background: var(--primary-color);
    /* 主色调背景 */
}

.holiday-mode .class-btn.active {
    border-color: var(--holiday-primary);
    /* 主色调边框 */
    background: var(--holiday-primary);
    /* 主色调背景 */
}

.holiday-mode .upload-btn {
    background: var(--holiday-primary);
    /* 主色调背景 */
}

.holiday-mode .announcement-box {
    background: rgba#c00606e3;
    /* 主色调背景 */
    border-color: var(--holiday-primary);
    /* 主色调边框 */
}

/* 备案号悬浮样式优化 */
#icp-footer {
    /* 改为固定定位保持可见 */
    position: static;
    bottom: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    padding: 10px 20px;
    font-size: 14px;
    color: #000;
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

#icp-footer .icp-icon {
    width: 36px;
    /* 宽度 */
    height: 36px;
    /* 高度 */
    border-radius: 50%;
    /* 圆形 */
    display: flex;
    /* 弹性布局 */
    align-items: center;
    /* 垂直居中 */
    justify-content: center;
    /* 水平居中 */
    margin-right: 12px;
    /* 右边距 */
    flex-shrink: 0;
    /* 不收缩 */
    background: rgb(255, 255, 255);
    /* 白色背景 */
    padding: 4px;
    /* 内边距 */
}

/* 自定义图标样式 */
.icp-custom-icon {
    width: 24px;
    /* 宽度 */
    height: 24px;
    /* 高度 */
    object-fit: contain;
    /* 包含图片 */
    filter: brightness(0) invert(1);
    /* 反色 */
}

.icp-custom-icon {
    filter:
        brightness(1.4) contrast(1.4) drop-shadow(0 0 4px rgba(62, 158, 255, 0.8));
    /* 亮度、对比度、阴影 */
    transform: scale(1.1);
    /* 缩放 */
}

/* 图标加载中状态 */
.icp-custom-icon.loading {
    background:
        linear-gradient(45deg,
            rgba(255, 255, 255, 0.1) 25%,
            rgba(255, 255, 255, 0.3) 50%,
            rgba(255, 255, 255, 0.1) 75%);
    background-size: 200% 100%;
    /* 背景尺寸 */
    animation: loading 1.5s infinite;
    /* 动画 */
    filter: none;
    /* 清除滤镜 */
}

/* 图标加载失败状态 */
.icp-custom-icon.error {
    content: "!";
    /* 内容 */
    display: flex;
    /* 弹性布局 */
    align-items: center;
    /* 垂直居中 */
    justify-content: center;
    /* 水平居中 */
    background: #ff4d4f;
    /* 红色背景 */
    color: white;
    /* 白色文字 */
    font-weight: bold;
    /* 字重 */
    font-size: 18px;
    /* 字号 */
    filter: none;
    /* 清除滤镜 */
}

/* 移动端适配 */
@media (max-width: 768px) {
    #icp-footer {
        left: 15px;
        /* 左边距 */
        right: 15px;
        /* 右边距 */
        max-width: calc(100% - 30px);
        /* 最大宽度 */
        bottom: 10px;
        /* 底部距离 */
        padding: 8px 15px;
        /* 内边距 */
        font-size: 13px;
        /* 字号 */
    }

    #icp-footer .icp-icon {
        width: 32px;
        /* 宽度 */
        height: 32px;
        /* 高度 */
    }

    .icp-custom-icon {
        width: 24px;
        /* 宽度 */
        height: 24px;
        /* 高度 */
    }
}

@media (max-width: 480px) {
    #icp-footer {
        font-size: 12px;
        /* 字号 */
        padding: 6px 12px;
        /* 内边距 */
        border-radius: 40px;
        /* 圆角 */
    }

    #icp-footer .icp-icon {
        width: 28px;
        /* 宽度 */
        height: 28px;
        /* 高度 */
    }

    .icp-custom-icon {
        width: 20px;
        /* 宽度 */
        height: 20px;
        /* 高度 */
    }
}

/* 呼吸动画效果 */
@keyframes icp-pulse {
    0% {
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.35);
        transform: scale(1);
    }

    50% {
        box-shadow: 0 8px 30px rgba(62, 158, 255, 0.6);
        /* 增强高光阴影 */
        transform: scale(1.03);
        /* 添加3%缩放动画 */
    }

    100% {
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.35);
        transform: scale(1);
    }
}

/*
#icp-footer {
    animation: icp-pulse 3s infinite;
}
*/
/* 禁止图片下载 */
img {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    pointer-events: auto;
}

.image-box,
.grid-item {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

/* 新增：小屏幕设备优化 */
@media (max-width: 480px) {
    .app-title {
        flex-direction: column;
        /* 小屏幕时改为垂直布局 */
        gap: 0.5rem;
    }

    .title-before,
    .title-after {
        width: 60px;
        /* 增大装饰条宽度 */
    }

    .grade-tabs {
        flex-direction: column;
        /* 小屏幕时年级按钮垂直排列 */
        gap: 10px;
    }

    .class-tabs {
        flex-wrap: wrap;
        /* 班级按钮换行 */
        justify-content: center;
    }
}


.meting-js {
    max-width: 600px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .meting-js {
        width: 95%;
        margin: 10px auto;
    }
}

/* 公共关闭按钮基础样式 */
.close-btn {
    position: absolute;
    top: clamp(8px, 1vw, 16px);
    right: clamp(8px, 1vw, 16px);
    font-size: 24px;
    color: #666;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    width: clamp(36px, 3vw, 32px);
    height: clamp(36px, 3vw, 32px);
    display: flex;
    align-items: center;
    justify-content: flex-start;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 10;
    flex-wrap: wrap;
    align-content: center;
    flex-direction: column;

}

.class-btn:hover {
    color: #ff4d4f;
    box-shadow: 0px 0px 12px 4px rgba(255, 77, 79, 0.25);
}

/* 公告关闭按钮继承基础样式 */
.announcement-close-btn {
    @extend .close-btn;
    top: clamp(8px, 1vw, 16px);
    right: clamp(8px, 1vw, 16px);

}

/* 公告栏容器添加定位上下文 */
.announcement-box {
    position: relative;

}

.no-history-message{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    /* 铺满父容器 */
    width: 100%;
    height: 100%;
    min-height: 300px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e7f4 100%);
    color: #5f6368;
    border-radius: 12px;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.05);
    font-size: 1.1rem;
    padding: 20px;
    box-sizing: border-box;
    position: relative;
}

.no-history-message::before{
    content: "📚";
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
    color: #9aa0a6;
}

.no-history-message strong {
    display: block;
    font-size: 1.3rem;
    margin-bottom: 10px;
    color: #202124;
}

@media (max-width: 768px) {
    .no-history-message{
        width: 100%;
        height: 100%;
        padding: 15px;
        font-size: 1rem;
        min-height: 200px;
    }
    
    .grid-container {
        min-height: 200px;
    }
}