:root {
    --bg-color: #f4f7fa;
    --card-bg: #ffffff;
    --text-main: #1d1d1f;
    --text-sec: #86868b;
    --accent: #2563eb;
    --radius: 28px;
    --shadow: 0 10px 30px rgba(0,0,0,0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: -apple-system, sans-serif; }
body { background: var(--bg-color); color: var(--text-main); padding: 40px; }
.app-container { max-width: 1200px; margin: 0 auto; }

.header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 40px; }
.logo { font-size: 24px; font-weight: 800; color: var(--accent); }
.header-slogan { font-size: 14px; color: var(--text-sec); }

.bento-grid { 
    display: grid; 
    grid-template-columns: 1.5fr 1fr; 
    grid-auto-rows: minmax(350px, auto); 
    gap: 24px; 
}

.card { background: var(--card-bg); border-radius: var(--radius); padding: 35px; box-shadow: var(--shadow); position: relative; }

/* 修复拖拽的关键区域 */
.drop-zone { 
    grid-row: span 2; 
    border: 2px dashed #e2e8f0; 
    cursor: pointer; 
    overflow: hidden; 
    background: #fff; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    min-height: 724px;
    transition: 0.3s;
}

.inline-preview { 
    position: absolute; inset: 0; z-index: 1; 
    background: #000; display: none; align-items: center; justify-content: center; 
    pointer-events: none; /* 预览图不响应点击，防止干扰 */
}
.inline-preview video, .inline-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }

.drop-content { 
    position: absolute; inset: 0; z-index: 10; 
    display: flex; flex-direction: column; align-items: center; justify-content: center; 
    text-align: center; 
    pointer-events: none; /* 重要：让子元素点击穿透，确保父级 drop-zone 接收事件 */
}

/* 允许操作按钮点击 */
.after-action { display: none; margin-top: 10px; pointer-events: auto; }

.drop-info i { font-size: 64px; color: var(--accent); opacity: 0.5; margin-bottom: 20px; display: block; }
.drop-info h2 { font-size: 24px; font-weight: 700; margin-bottom: 10px; }

.drop-zone.has-preview .inline-preview { display: flex; }
.drop-zone.has-preview .drop-content {
    justify-content: flex-end; padding-bottom: 50px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 40%, rgba(0,0,0,0) 100%);
    color: white;
}
.drop-zone.has-preview .drop-info i { display: none; }

.primary-btn { background: var(--accent); color: white; padding: 14px 30px; border-radius: 14px; border: none; font-weight: 700; cursor: pointer; }

/* 设置区 */
.setting-group { margin-bottom: 35px; }
.setting-group.highlight label { font-size: 18px; font-weight: 800; color: #000; margin-bottom: 15px; display: block; }
.big-select, .big-input { width: 100%; padding: 16px; border-radius: 16px; border: 2px solid #eef1f6; font-size: 16px; font-weight: 700; color: var(--accent); outline: none; }
.preset-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tag-btn { background: #f2f2f7; border: none; padding: 8px 14px; border-radius: 10px; cursor: pointer; font-size: 13px; font-weight: 600; }
.tag-btn.active { background: #000; color: #fff; }

/* 队列 & 便签 */
.file-list { max-height: 250px; overflow-y: auto; }
.file-item { padding: 14px; background: #fdfdfd; border-radius: 14px; margin-bottom: 10px; border: 1px solid #f1f1f1; display: flex; justify-content: space-between; font-size: 14px; }
.notes-section { margin-top: 100px; padding-bottom: 80px; }
.notes-header { margin-bottom: 45px; }
.notes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; }
.note-card { background: linear-gradient(135deg, #fff 85%, #fffef0 100%); padding: 30px; border-radius: 4px; box-shadow: 2px 2px 10px rgba(0,0,0,0.03), -5px 8px 15px rgba(0,0,0,0.06); min-height: 210px; display: flex; flex-direction: column; justify-content: space-between; position: relative; }
.note-card::after { content: ""; position: absolute; bottom: 0; right: 0; width: 0; height: 0; border-style: solid; border-width: 0 0 22px 22px; border-color: transparent transparent var(--bg-color) transparent; }
.add-note-trigger { border: 2.5px dashed #d1d1d6; background: transparent; cursor: pointer; align-items: center; justify-content: center; gap: 10px; box-shadow: none; }
.note-status { font-size: 12px; background: #f2f2f7; padding: 5px 12px; border-radius: 8px; font-weight: 700; width: fit-content; }

.modal { position: fixed; inset: 0; background: rgba(0,0,0,0.4); display: none; align-items: center; justify-content: center; backdrop-filter: blur(10px); z-index: 1000; }
.modal-content { background: #fff; padding: 45px; border-radius: 35px; width: 480px; box-shadow: 0 30px 60px rgba(0,0,0,0.2); }
textarea { width: 100%; height: 160px; border-radius: 20px; padding: 20px; border: 2px solid #f2f2f7; margin: 20px 0; font-size: 16px; outline: none; }
.modal-actions { display: flex; justify-content: flex-end; gap: 15px; }
#submitNote { background: var(--accent); color: #fff; border: none; padding: 12px 25px; border-radius: 12px; cursor: pointer; font-weight: 700; }
#cancelNote { background: #f2f2f7; border: none; padding: 12px 25px; border-radius: 12px; cursor: pointer; font-weight: 700; }