/* 数据导出中心 · 飞鱼风格 */
.de-page { padding: 0 8px 32px; }

.de-tabs { display: flex; align-items: center; gap: 0; border-bottom: 1px solid #eee; margin-bottom: 20px; flex-wrap: wrap; }
.de-tab { border: none; background: none; padding: 12px 20px; font-size: 0.875rem; color: #666; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.de-tab.is-active { color: #7c5cfc; border-bottom-color: #7c5cfc; font-weight: 600; }
.de-contact { margin-left: auto; font-size: 0.75rem; color: #999; text-decoration: none; padding: 8px 12px; }

.de-panel { background: #fff; border: 1px solid #eee; border-radius: 10px; padding: 24px; min-height: 480px; }

.de-hero { text-align: center; margin-bottom: 28px; }
.de-hero-icon { font-size: 2.5rem; margin-bottom: 8px; }
.de-hero h2 { margin: 0 0 8px; font-size: 1.25rem; }
.de-hero p { margin: 0; font-size: 0.8125rem; color: #888; max-width: 520px; margin-inline: auto; line-height: 1.5; }
.de-link { color: #7c5cfc; text-decoration: none; border: none; background: none; cursor: pointer; padding: 0; font-size: inherit; }
.de-link-danger { color: #e8456a; }

.de-section-title { font-size: 0.9375rem; font-weight: 600; margin-bottom: 14px; color: #333; }

.de-type-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }
@media (max-width: 900px) { .de-type-grid { grid-template-columns: repeat(2, 1fr); } }
.de-type-card { text-align: left; border: 1px solid #e8e8e8; border-radius: 12px; padding: 16px; background: #fff; cursor: pointer; position: relative; display: flex; flex-direction: column; gap: 6px; }
.de-type-card.is-active { border-color: #7c5cfc; box-shadow: inset 0 0 0 1px #7c5cfc; }
.de-type-card.is-active::after { content: "✓"; position: absolute; top: 10px; right: 12px; color: #7c5cfc; font-weight: 700; }
.de-type-icon { font-size: 1.5rem; }
.de-type-card strong { font-size: 0.9375rem; }
.de-type-card span { font-size: 0.75rem; color: #999; line-height: 1.4; }
.de-type-sub { display: inline-block; margin-top: 6px; padding: 2px 10px; background: #f3f0ff; color: #7c5cfc; border-radius: 4px; font-size: 0.75rem; font-style: normal; }

.de-form-block { margin-bottom: 22px; }
.de-form-label { font-size: 0.8125rem; font-weight: 600; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.de-form-label i { display: inline-block; width: 3px; height: 14px; background: #7c5cfc; border-radius: 2px; }

.de-target-row, .de-date-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.de-target-row input, .de-date-row input[type="date"] { flex: 1; min-width: 200px; padding: 10px 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 0.8125rem; }
.de-date-row span { color: #999; font-size: 0.8125rem; }

.de-btn-primary { background: #7c5cfc; border: 1px solid #7c5cfc; color: #fff; padding: 8px 16px; border-radius: 8px; font-size: 0.8125rem; cursor: pointer; white-space: nowrap; }
.de-btn-outline { background: #fff; border: 1px solid #7c5cfc; color: #7c5cfc; padding: 8px 14px; border-radius: 8px; font-size: 0.8125rem; cursor: pointer; white-space: nowrap; }
.de-btn-ghost { background: #fff; border: 1px solid #ddd; color: #666; padding: 8px 20px; border-radius: 8px; cursor: pointer; }
.de-btn-lg { padding: 12px 48px; font-size: 0.9375rem; }

.de-fields-box { border: 1px solid #e8e8e8; border-radius: 8px; overflow: hidden; }
.de-fields-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: #fafafa; }
.de-fields-toggle { border: none; background: none; font-size: 0.8125rem; font-weight: 600; cursor: pointer; }
.de-check-all { font-size: 0.8125rem; display: flex; align-items: center; gap: 6px; cursor: pointer; }
.de-check-all input { accent-color: #7c5cfc; }
.de-fields-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 16px; padding: 14px; }
@media (max-width: 800px) { .de-fields-grid { grid-template-columns: repeat(2, 1fr); } }
.de-fields-grid label { font-size: 0.8125rem; display: flex; align-items: center; gap: 6px; cursor: pointer; }
.de-fields-grid input { accent-color: #7c5cfc; }

.de-submit-wrap { text-align: center; margin-top: 32px; }

/* 导出历史 */
.de-history-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.de-history-search { display: flex; gap: 8px; }
.de-history-search input { padding: 8px 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 0.8125rem; width: 220px; }
.de-status-ok { color: #2d9f6f; font-size: 0.8125rem; }
.de-status-pending { color: #e8783a; font-size: 0.8125rem; }
.de-muted { color: #ccc; }

/* 确认弹窗 */
.de-modal .de-modal-panel { width: min(520px, 92vw); padding: 0; }
.de-modal-head { display: flex; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid #f0f0f0; }
.de-modal-head h3 { margin: 0; font-size: 1rem; text-align: center; flex: 1; }
.de-modal-body { padding: 20px; }
.de-modal-label { font-size: 0.8125rem; font-weight: 600; margin-bottom: 8px; display: block; }
.de-name-wrap { position: relative; margin-bottom: 12px; }
.de-name-wrap input { width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 0.8125rem; box-sizing: border-box; }
.de-name-count { position: absolute; right: 10px; bottom: 10px; font-size: 0.75rem; color: #bbb; }
.de-modal-hint { font-size: 0.75rem; color: #999; line-height: 1.5; margin: 0 0 20px; }
.de-quota-calc { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.de-quota-box { text-align: center; padding: 12px 16px; background: #fafafa; border-radius: 8px; min-width: 100px; }
.de-quota-box strong { display: block; font-size: 1rem; margin-bottom: 4px; }
.de-quota-box span { font-size: 0.6875rem; color: #999; }
.de-quota-consume strong { color: #e8456a; }
.de-quota-op { font-size: 1.25rem; color: #ccc; font-weight: 300; }
.de-modal-foot { display: flex; justify-content: center; gap: 16px; padding: 16px 20px 20px; }
