/* static/style.css */
:root { --nju-purple: #601986; --nju-gold: #c6a15b; }
body { background-color: #f4f7f9; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; padding-top: 40px; }

/* 队徽水印 */
body::before {
    content: "";
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 40vw;
    height: 40vw;
    max-width: 520px;
    max-height: 520px;
    background-image: url('/static/logo.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    opacity: 0.06;
    pointer-events: none;
    z-index: 0;
}

/* 卡片与阴影 */
.card { border: none; border-radius: 16px; box-shadow: 0 8px 30px rgba(0, 0, 0, 0.107); transition: transform 0.2s; }
.card-header { background-color: #fff; border-bottom: 1px solid #eee; border-radius: 16px 16px 0 0 !important; }

/* 导航样式 */
.nav-pills .nav-link { color: #666; font-weight: 500; border-radius: 10px; padding: 10px 25px; }
.nav-pills .nav-link.active { background-color: var(--nju-purple); box-shadow: 0 4px 10px rgba(96, 25, 134, 0.3); }

/* 按钮与交互 */
.btn-nju { background-color: var(--nju-purple); color: white; border: none; }
.btn-nju:hover { background-color: #4d146d; color: white; }
.btn-save { background-color: #333; color: white; }

/* 状态标签 */
.status-badge { font-size: 0.75rem; padding: 4px 12px; border-radius: 20px; font-weight: 600; }

/* 文件预览标签 */
.file-tag { font-size: 0.75rem; background: #fff; border: 1px solid #dee2e6; color: #555; padding: 2px 10px; border-radius: 6px; margin: 2px; display: inline-block; }

/* 详情区文字 */
.info-label { color: #999; font-size: 0.8rem; margin-bottom: 2px; }
.info-value { color: #333; font-weight: 500; font-size: 0.95rem; }

/* 透明卡片：让队徽能透出但保持内容可读（更透明以便队徽更明显） */
.card, .bg-white {
    background-color: rgba(255, 255, 255, 0.493) !important;
    backdrop-filter: blur(6px);
}
.card-header {
    background-color: rgba(255,255,255,0.6) !important;
}
.file-tag { background: rgba(255,255,255,0.55) !important; }
.app-container { position: relative; z-index: 1; }

/* 1. 让父容器变成定位基准 */
#dropZone {
    position: relative;
    cursor: pointer;
}

/* 2. 让 input 铺满并隐形 */
#dropZone input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0; /* 关键：彻底透明 */
    cursor: pointer;
    z-index: 10; /* 确保盖在图标和文字上方 */
}

/* 3. 增加鼠标悬停效果（可选，提升体验） */
#dropZone:hover {
    border-color: var(--nju-purple) !important;
    background-color: rgba(96, 25, 134, 0.05) !important;
}

/* 小型拖拽附件区样式 */
.attachment-drop-zone {
    position: relative;
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s;
    background: rgba(255,255,255,0.5);
}
.attachment-drop-zone:hover {
    border-color: var(--nju-purple);
    background: rgba(96, 25, 134, 0.05);
}
.attachment-drop-zone input[type="file"] {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}