body { font-family: "Microsoft YaHei", sans-serif; background-color: #f8fafc; user-select: none; }        

/* 形状 */
.shape-box { display: flex; align-items: center; justify-content: center; background-color: #334155; color: #fff; font-weight: bold; font-size: 12px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); z-index: 20; }
.shape-circle { border-radius: 50%; width: 26px; height: 26px; }
.shape-inv-triangle { clip-path: polygon(50% 100%, 0 0, 100% 0); width: 30px; height: 26px; padding-bottom: 4px; }
.shape-square { border-radius: 4px; width: 26px; height: 26px; }
.shape-rhombus { clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%); width: 30px; height: 30px; }
.shape-hexagon { clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%); width: 30px; height: 26px; }
.shape-star { clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); width: 30px; height: 30px; padding-top: 2px;}

/* [修改] 邮戳样式：右下角定位 + 导出透明逻辑 */
.postmark { 
    position: absolute; 
    bottom: 4px; /* 定位在右下角 */
    right: 4px; 
    width: 48px; height: 48px; 
    border: 3.5px solid currentColor; /* 加粗边框 */
    border-radius: 50%; 
    display: flex; flex-direction: column; align-items: center; justify-content: center; 
    
    /* 正常模式：95%白色背景，盖住底下的表格线，看起来更清晰 */
    background-color: rgba(255, 255, 255, 0.95); 
    
    pointer-events: none; 
    z-index: 5; /* 层级低于日期数字(z-10) */
    opacity: 1; 
    box-shadow: 2px 2px 5px rgba(0,0,0,0.15); /* 正常模式有阴影 */
    filter: brightness(0.75); /* 加深颜色 */
}

/* [新增] 导出模式专用：当导出图片时，背景变透明 */
.export-mode .postmark {
    /* 背景变全透明，确保不遮挡日期数字的任何像素 */
    background-color: transparent !important; 
    
    /* 稍微降低不透明度，让它看起来像盖在纸上的印泥效果 */
    opacity: 0.8 !important; 
    
    /* 导出时去掉阴影，画面更干净 */
    box-shadow: none !important; 
}

/* 邮戳内的文字 */
.postmark-text { 
    font-size: 13px; 
    font-weight: 900; 
    color: currentColor; 
    letter-spacing: 1.5px; 
    line-height: 1.1; 
    margin-bottom: 1px; 
    text-shadow: 0 0 1px currentColor; /* 增加文字锐利度 */
}

/* 水印 */
.watermark {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-30deg);
    font-size: 80px; color: rgba(0, 0, 0, 0.04); font-weight: 900; pointer-events: none; white-space: nowrap; z-index: 0; user-select: none;
}

/* 滚动条 */
::-webkit-scrollbar { width: 24px; height: 24px; }
::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 12px; border: 6px solid #f8fafc; }
::-webkit-scrollbar-thumb:hover { background: #64748b; }
::-webkit-scrollbar-track { background: #e2e8f0; }

/* 导出样式 */
.export-header { border-bottom: 4px solid currentColor; padding-bottom: 15px; margin-bottom: 25px; text-align: center; }
.export-footer { margin-top: 30px; border-top: 3px dashed #cbd5e1; padding-top: 20px; padding-left: 10px; font-size: 20px; color: #334155; text-align: left; font-weight: bold; background-color: transparent; padding-bottom: 10px; line-height: 1.6; }
.lunar-text { font-size: 12px; margin-top: 4px; color: #94a3b8; display: block; min-height: 24px; line-height: 24px; }   
.lunar-special { font-size: 16px !important; font-weight: 900 !important; color: #ef4444 !important; margin-top: 2px; }
.scheduled-badge { position: absolute; top: 0; left: 0; color: white; font-size: 10px; font-weight: bold; padding: 2px 8px; border-bottom-right-radius: 8px; z-index: 10; box-shadow: 1px 1px 3px rgba(0,0,0,0.2); }

/* 时间轴固定样式 (Fix: 提高 z-index 防止被遮挡，并确保水平滚动时固定在左侧) */
.master-grid-col {
    min-width: 140px;
    flex-shrink: 0;
    position: relative;
    border-right: 1px dashed #cbd5e1;
    user-select: none;
    z-index: 1;
}
.sticky-time-col { 
    position: sticky;
    left: 0;
    right: auto;
    z-index: 200; /* 明确高于所有课表块和拖拽幽灵块 */
    background-color: #f8fafc;
    border-right: 2px solid #94a3b8;
    box-shadow: 4px 0 10px -2px rgba(0, 0, 0, 0.1);
}
.sticky-corner { z-index: 110 !important; background-color: #f8fafc; }

/* [新增] 导出模式专用样式：强制展开所有内容 */
.export-mode .truncate {
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    word-break: break-all;
}
/* [新增] 导出模式：数字垂直居中修正 */
.export-mode .badge-text {
    line-height: 1.2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding-top: 2px; 
}

/* 拖拽时的幽灵方块 (新建排课用) */
.ghost-block {
    position: absolute;
    left: 4px; right: 4px;
    background-color: rgba(59, 130, 246, 0.5); 
    border: 2px dashed #2563eb;
    border-radius: 8px;
    pointer-events: none;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

#billing-export-container { position: absolute; top: -9999px; left: -9999px; width: 800px; background: white; }
.bill-card { border: 2px solid #e2e8f0; border-radius: 12px; margin-bottom: 20px; overflow: hidden; page-break-inside: avoid; position: relative; }
#student-archive-export-container { display: none; position: absolute; top: -9999px; left: -9999px; width: 1200px; background: white; min-height: 400px; }
.bill-header { padding: 15px; border-bottom: 1px solid #e2e8f0; display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 10; }
.bill-body { padding: 20px; position: relative; z-index: 10; }
.bill-section-title { font-size: 14px; font-weight: bold; color: #475569; margin-top: 15px; margin-bottom: 8px; border-left: 4px solid currentColor; padding-left: 8px; }
@keyframes grow-up { from { height: 0; opacity: 0; } to { opacity: 1; } }
.bar-animate { animation: grow-up 0.6s ease-out forwards; }

/* VIP 课程块样式 */
.vip-class-block {
    border: 3px solid #F59E0B !important;
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 10px,
        rgba(245, 158, 11, 0.1) 10px,
        rgba(245, 158, 11, 0.1) 20px
    );
    z-index: 30 !important;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.3) !important;
}

/* 加载动画 */
.loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 淡入动画优化 */
@keyframes fade-in {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.animate-fade-in {
    animation: fade-in 0.2s ease-out;
}

/* 周中抽屉滑入 */
.weekly-hub-slide-enter-active,
.weekly-hub-slide-leave-active {
    transition: opacity 0.2s ease, transform 0.25s ease;
}
.weekly-hub-slide-enter-from,
.weekly-hub-slide-leave-to {
    opacity: 0;
}
.weekly-hub-slide-enter-from > div:last-child,
.weekly-hub-slide-leave-to > div:last-child {
    transform: translateX(100%);
}