/* wta-calculator.css - 简化版图表 + 模态框样式 */
.wta-calculator-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 2rem 1rem;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    color: #1e2a3e;
    background: #f0f4f9;
    border-radius: 32px;
}
.wta-header { text-align: center; margin-bottom: 2.5rem; }
.wta-title { font-size: 2.8rem; font-weight: 800; background: linear-gradient(125deg, #1f2e3f, #0f3a53); background-clip: text; -webkit-background-clip: text; color: transparent; margin-bottom: 0.5rem; }
.wta-subtitle { font-size: 1.2rem; color: #4b6584; }
.wta-grid { display: flex; flex-wrap: wrap; gap: 28px; margin-bottom: 32px; }
.wta-card { flex: 1; min-width: 300px; background: rgba(255,255,255,0.96); border-radius: 40px; padding: 24px 26px 32px; box-shadow: 0 15px 35px rgba(0,0,0,0.05); border: 1px solid rgba(0,0,0,0.03); transition: transform 0.2s; }
.wta-card:hover { transform: translateY(-4px); }
.wta-card-header { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; border-bottom: 2px solid #eef2f9; padding-bottom: 16px; }
.wta-icon-badge { width: 52px; height: 52px; border-radius: 35px; display: flex; align-items: center; justify-content: center; color: white; background: #FF710D; }
.wta-new-icon { background: #008EF2; }
.wta-badge-old, .wta-badge-new { font-size: 0.8rem; padding: 4px 12px; border-radius: 40px; font-weight: 600; }
.wta-badge-old { background: #FF710D20; color: #FF710D; }
.wta-badge-new { background: #008EF220; color: #008EF2; }
.wta-input-group { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.wta-field { display: flex; flex-direction: column; gap: 8px; }
.wta-field label { font-size: 0.85rem; font-weight: 700; text-transform: uppercase; color: #2c3e50; letter-spacing: 0.5px; }
.wta-field input { background: #f8fafd; border: 1px solid #e2e8f0; border-radius: 32px; padding: 12px 16px; font-weight: 500; font-family: monospace; font-size: 1rem; transition: all 0.2s; }
.wta-field input:focus { border-color: #008EF2; outline: none; box-shadow: 0 0 0 3px rgba(0,142,242,0.15); }
.wta-color-picker { width: 100%; height: 48px; padding: 4px !important; border-radius: 32px !important; cursor: pointer; background: #fff; }
.wta-color-picker::-webkit-color-swatch-wrapper { padding: 0; }
.wta-color-picker::-webkit-color-swatch { border: none; border-radius: 28px; }
.wta-actions { display: flex; justify-content: flex-end; gap: 20px; margin-bottom: 40px; flex-wrap: wrap; }
.wta-btn-primary, .wta-btn-ai, .wta-btn-report { border: none; padding: 14px 34px; border-radius: 60px; font-weight: 700; font-size: 1rem; display: inline-flex; align-items: center; gap: 12px; cursor: pointer; transition: all 0.25s;margin-top:10px; }
.wta-btn-primary { background: #1e293b; color: white; }
.wta-btn-primary:hover { background: #0f172a; transform: scale(0.97); }
.wta-btn-ai { background: linear-gradient(105deg, #0b2b3b, #1c4e6e); color: white; box-shadow: 0 6px 14px rgba(0,0,0,0.1); }
.wta-btn-ai:hover { transform: translateY(-3px); filter: brightness(1.03); }
.wta-btn-report { background: #2c3e50; color: white; }
.wta-btn-report:hover { background: #1e2a3a; transform: scale(0.97); }
.wta-results { display: flex; flex-wrap: wrap; gap: 32px; }
.wta-stats, .wta-canvas-card, .wta-ai-card { background: white; border-radius: 36px; padding: 24px 28px; box-shadow: 0 10px 25px rgba(0,0,0,0.04); }
.wta-stats { flex: 2; min-width: 280px; }
.wta-canvas-card { flex: 1.2; min-width: 360px; text-align: center; }
.wta-ai-card { flex: 1.5; min-width: 280px; }
.wta-compare-table { width: 100%; border-collapse: separate; border-spacing: 0 12px; margin-top: 12px; }
.wta-compare-table td { padding: 12px 8px; border-bottom: 1px solid #edf2f7; font-size: 1rem; }
.wta-label { font-weight: 700; color: #2c3e50; }
.wta-old-val { color: #FF710D; font-weight: 800; }
.wta-new-val { color: #008EF2; font-weight: 800; }
.wta-insight { background: #fef6e0; border-radius: 24px; padding: 18px; margin-top: 22px; font-size: 1rem; border-left: 6px solid #FF710D; }
.wta-legend { display: flex; justify-content: center; gap: 28px; margin-top: 20px; font-size: 0.95rem; }
.wta-ai-response { background: #F8FAFF; border-radius: 28px; padding: 22px; min-height: 200px; font-size: 1rem; line-height: 1.55; }
.wta-footer-note { text-align: center; margin-top: 52px; font-size: 0.8rem; color: #6c7f96; }

/* 模态框样式 */
.wta-modal { display: none; position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0,0,0,0.7); }
.wta-modal-content { background-color: #fff; margin: 5% auto; padding: 25px; border-radius: 40px; width: 90%; max-width: 1100px; max-height: 85vh; overflow-y: auto; position: relative; }
.wta-modal-close { position: absolute; right: 25px; top: 15px; font-size: 35px; font-weight: bold; cursor: pointer; color: #aaa; }
.wta-modal-close:hover { color: #000; }
.wta-report-container { background: white; padding: 20px; border-radius: 24px; }
.wta-report-actions { display: flex; justify-content: center; gap: 20px; margin: 20px 0; }
.wta-inquiry-form { background: #f9f9f9; border-radius: 28px; padding: 20px; margin-top: 20px; }

/* 报告内部样式 */
.wta-report-container table { width: 100%; border-collapse: collapse; margin: 15px 0; }
.wta-report-container th, .wta-report-container td { border: 1px solid #ddd; padding: 8px; text-align: center; }
.wta-report-container th { background: #f2f2f2; }
.wta-report-container .footer-note { font-size: 0.75rem; color: #666; text-align: center; margin-top: 25px; border-top: 1px solid #ccc; padding-top: 12px; }

@media (max-width: 680px) {
    .wta-input-group { grid-template-columns: 1fr; }
    .wta-actions { justify-content: center; }
    .wta-title { font-size: 1.8rem; }
    .wta-color-picker { height: 42px; }
}
/* 表格推荐标记样式 */
.wta-ai-response table,
.wta-report-container table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}
.wta-ai-response th, .wta-ai-response td,
.wta-report-container th, .wta-report-container td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}
.wta-ai-response th,
.wta-report-container th {
    background-color: #f2f2f2;
}
.wta-ai-response td strong,
.wta-report-container td strong {
    background-color: #d4edda;
    padding: 2px 6px;
    border-radius: 4px;
    color: #155724;
}
/* 自定义图标图片样式 */
.wta-icon-badge .wta-icon-img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* 确保图片在圆形背景中居中显示 */
.wta-icon-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f4f9; /* 保留背景色以保持视觉一致性 */
}

.wta-current-icon .wta-icon-img {
    filter: brightness(1);
}

.wta-new-icon .wta-icon-img {
    filter: brightness(1);
}