/* ============ 文本提取邮箱 - 工具特有样式 ============ */
/* 通用样式（卡片、按钮、分隔线、info-box、form-textarea等）已由 common.css 统一提供 */

/* ---- 容器 ---- */
#et-container {
    margin-bottom: 15px;
}

/* ---- 左右两栏 flex 布局 ---- */
#et-container > .section-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

#et-container > .section-row > .settings-card,
#et-container > .section-row > .preview-card {
    flex: 1;
    margin-top: 0;
    margin-bottom: 0;
}

/* ---- 转换统计 ---- */
.convert-stats {
    display: flex;
    gap: 24px;
    margin-top: 12px;
    padding: 8px 12px;
    background: #f9fafb;
    border-radius: 6px;
    font-size: 13px;
    color: #6b7280;
}

.convert-stats strong {
    color: #374151;
    font-weight: 600;
}

/* ---- 字符计数 ---- */
.char-count {
    float: right;
    font-size: 12px;
    color: #9ca3af;
    font-weight: 400;
}

.char-count-warn {
    color: #ef4444;
    font-weight: 600;
}

/* ---- 设置分组 ---- */
.setting-group {
    margin-bottom: 16px;
}

.setting-group-title {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 12px;
}

/* ---- 复选框选项 ---- */
.checkbox-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    color: #374151;
    transition: all 0.2s;
    user-select: none;
}

.checkbox-item:hover {
    border-color: #a78bfa;
    background: #f5f3ff;
}

.checkbox-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

/* ---- 卡片头部中间统计 ---- */
.card-header-center {
    flex: 1;
    text-align: center;
    font-size: 13px;
    color: #6b7280;
}

.card-header-center strong {
    color: #8b5cf6;
    font-weight: 600;
}

/* ---- 邮箱结果区域 ---- */
.email-result-area {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.email-list {
    flex: 1;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 8px;
}

.email-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

.email-item:last-child {
    border-bottom: none;
}

.email-item:hover {
    background: #f9fafb;
    border-radius: 4px;
}

.email-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    background: #8b5cf6;
    color: white;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    flex-shrink: 0;
}

.email-address {
    color: #374151;
    word-break: break-all;
}

/* ---- 空状态 ---- */
#et-container .empty-state {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #9ca3af;
}

#et-container .empty-state-icon {
    font-size: 48px;
    margin-bottom: 12px;
}

#et-container .empty-state-desc {
    font-size: 14px;
    color: #888;
}

/* ---- 功能说明信息区 ---- */
#app > .info-section {
    margin-top: 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ---- 响应式 ---- */
@media (max-width: 768px) {
    #et-container > .section-row {
        flex-direction: column;
        gap: 12px;
    }

    .convert-stats {
        flex-wrap: wrap;
        gap: 12px;
    }

    .checkbox-options {
        flex-direction: column;
    }

    .email-list {
        max-height: 300px;
    }

    #app > .info-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .email-item {
        font-size: 13px;
    }

    .email-number {
        min-width: 20px;
        height: 20px;
        font-size: 10px;
    }
}
