/* date_check.css - 页面专属样式 */
.subtitle { font-size: 13.5px; color: #8b8694; margin-top: 8px; }

/* ── 上传区 ── */
.drop-zone {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px dashed #c9bdf0;
    border-radius: 16px;
    padding: 36px 24px;
    text-align: center;
    background: #faf8ff;
    cursor: pointer;
    transition: all 0.3s ease;
}
.drop-zone:hover,
.drop-zone:focus-within { border-color: #7c4fd0; background: #f3eefe; }
.drop-zone.drag-over { border-color: #7c4fd0; background: #ede5fb; transform: scale(1.005); }

.drop-zone .dz-icon { font-size: 2.8rem; margin-bottom: 10px; line-height: 1; }
.drop-zone .hint { display: block; font-size: 1.02rem; color: #333; font-weight: 600; margin-bottom: 5px; }
.drop-zone .sub  { display: block; font-size: 0.83rem; color: #999; margin-bottom: 20px; }
.drop-zone .pick-btn {
    display: inline-block;
    padding: 11px 30px;
    background: linear-gradient(135deg, #5b6ee0 0%, #7c4fd0 55%, #8d44c4 100%);
    color: #fff;
    border-radius: 9px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 4px 14px rgba(124, 79, 208, 0.3);
    transition: all 0.25s ease;
    pointer-events: none;
}
.drop-zone:hover .pick-btn { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(124, 79, 208, 0.42); }
.drop-zone input[type="file"] {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── 已选文件 ── */
.file-selected {
    display: none;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
    padding: 14px 18px;
    background: #f3eefe;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #5b3aa8;
}
.file-selected .name {
    font-weight: 500; flex: 1; text-align: left;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.file-selected .remove {
    background: none; border: none; color: #7c4fd0;
    cursor: pointer; font-size: 20px; line-height: 1;
    padding: 4px 8px; border-radius: 6px; transition: all 0.2s;
}
.file-selected .remove:hover { background: #e6dbfb; }

/* ── 提交按钮 ── */
#submitBtn { display: none; width: 100%; margin-top: 18px; }

/* ── 加载 ── */
.loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
    color: #888;
    font-size: 0.95rem;
}
.spinner {
    width: 22px; height: 22px;
    border: 3px solid #e0dcef;
    border-top-color: #7c4fd0;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── 错误 ── */
.error {
    display: none;
    margin-top: 16px;
    padding: 12px 16px;
    background: #ffebee;
    color: #c62828;
    border: 1px solid #ffcdd2;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
}

/* ── 结果面板 ── */
.result {
    display: none;
    margin-top: 22px;
    padding: 26px 24px;
    background: #f3eefe;
    border-radius: 14px;
    text-align: center;
    animation: fadeIn 0.35s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.result .check { font-size: 44px; margin-bottom: 8px; }
.result h2 { font-size: 1.15rem; font-weight: 600; color: #5b3aa8; margin-bottom: 14px; }

.result-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    color: #444;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(124, 79, 208, 0.08);
}
.result-table td { padding: 11px 16px; border-bottom: 1px solid #f0ecf8; }
.result-table tr:last-child td { border-bottom: none; }
.result-table .label { text-align: left; display: flex; align-items: center; }
.result-table .num { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }

.color-swatch {
    display: inline-block;
    width: 16px; height: 16px;
    border-radius: 4px;
    margin-right: 10px;
    flex-shrink: 0;
}
.color-swatch.green  { background: #4CAF50; border: 1.5px solid #388E3C; }
.color-swatch.red    { background: #EF4444; border: 1.5px solid #DC2626; }
.color-swatch.purple { background: #A855F7; border: 1.5px solid #9333EA; }
.color-swatch.orange { background: #FFFF00; border: 1.5px solid #E6E600; }

.result .joke {
    margin-top: 16px;
    font-size: 0.85rem;
    color: #7c4fd0;
    opacity: 0.8;
    font-style: italic;
}

.reset-link {
    display: none;
    margin: 18px auto 0;
    background: none; border: none;
    color: #7c4fd0;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: underline;
}

/* ── 配色图例 ── */
.legend {
    margin-top: 30px;
    padding-top: 26px;
    border-top: 1px solid #eee;
}
.legend-title {
    font-size: 0.95rem;
    color: #555;
    font-weight: 600;
    margin-bottom: 16px;
    text-align: center;
}
.legend-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 10px;
    background: #faf9fc;
    border: 1px solid #f0eef6;
}
.legend-dot {
    width: 22px; height: 22px;
    border-radius: 6px;
    flex-shrink: 0;
}
.legend-dot.green  { background: #4CAF50; border: 1.5px solid #388E3C; }
.legend-dot.purple { background: #A855F7; border: 1.5px solid #9333EA; }
.legend-dot.orange { background: #FFFF00; border: 1.5px solid #E6E600; }
.legend-dot.red    { background: #EF4444; border: 1.5px solid #DC2626; }
.legend-text .lt-name { font-size: 0.9rem; color: #333; font-weight: 500; }
.legend-text .lt-desc { font-size: 0.78rem; color: #999; margin-top: 2px; }
