/* 女装综合尺码对照表样式 */

/* 尺码对照表基础样式 */
.size-chart-container { margin: 20px 0; }
.size-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 15px; border-bottom: 2px solid #e0e0e0; padding-bottom: 10px; }
.size-tab { padding: 10px 20px; background: #f5f5f5; border: none; border-radius: 8px 8px 0 0; cursor: pointer; font-size: 14px; font-weight: 500; transition: all 0.3s ease; color: #666; }
.size-tab:hover { background: #ffe4ec; color: #c71585; }
.size-tab.active { background: linear-gradient(135deg, #ff69b4 0%, #ff1493 100%); color: white; }
.size-table-wrapper { display: none; animation: fadeIn 0.3s ease; }
.size-table-wrapper.active { display: block; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

/* 女装主题色调标签页 */
.female-tabs .size-tab:hover { background: #ffe4ec; color: #c71585; }
.female-tabs .size-tab.active { background: linear-gradient(135deg, #ff69b4 0%, #ff1493 100%); }

/* 表格样式 */
.size-table { width: 100%; border-collapse: collapse; margin: 15px 0; font-size: 14px; background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.size-table th { background: linear-gradient(135deg, #ff69b4 0%, #db7093 100%); color: white; padding: 12px 8px; text-align: center; font-weight: 600; }
.size-table td { padding: 10px 8px; text-align: center; border-bottom: 1px solid #eee; }
.size-table tr:nth-child(even) { background: #fff5f8; }
.size-table tr:hover { background: #ffe4ec; }
.size-table tr.highlighted { background: #ffebf0 !important; font-weight: bold; box-shadow: inset 0 0 0 2px #ff69b4; }

/* 女装表格主题 */
.female-table th { background: linear-gradient(135deg, #ff69b4 0%, #db7093 100%); }
.female-table tr:nth-child(even) { background: #fff5f8; }
.female-table tr:hover { background: #ffe4ec; }

/* 推荐表单样式 */
.recommend-form { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-radius: 12px; padding: 25px; margin: 20px 0; color: white; }
.recommend-form h3 { margin: 0 0 20px 0; font-size: 18px; display: flex; align-items: center; gap: 10px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 15px; }
.form-group { display: flex; flex-direction: column; }
.form-group label { margin-bottom: 6px; font-size: 13px; opacity: 0.9; }
.form-group input, .form-group select { padding: 10px 12px; border: none; border-radius: 6px; font-size: 14px; background: rgba(255,255,255,0.95); }
.form-group input:focus, .form-group select:focus { outline: 2px solid #ffd700; }
.form-group input::placeholder { color: #999; }
.form-actions { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.btn-recommend { padding: 12px 24px; border: none; border-radius: 6px; font-size: 14px; font-weight: 600; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; gap: 8px; }
.btn-recommend.primary { background: #ffd700; color: #333; }
.btn-recommend.primary:hover { background: #ffed4a; transform: translateY(-2px); }
.btn-recommend.secondary { background: rgba(255,255,255,0.2); color: white; border: 1px solid rgba(255,255,255,0.3); }
.btn-recommend.secondary:hover { background: rgba(255,255,255,0.3); }

/* 女装主题表单 */
.female-theme { background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #fecfef 100%); }
.female-theme h3 { color: #8b008b; }
.female-theme .form-group label { color: #8b008b; opacity: 1; }
.female-theme .btn-recommend.primary { background: linear-gradient(135deg, #ff69b4 0%, #ff1493 100%); color: white; }
.female-theme .btn-recommend.primary:hover { background: linear-gradient(135deg, #ff1493 0%, #c71585 100%); box-shadow: 0 4px 15px rgba(255, 105, 180, 0.4); }
.female-theme .btn-recommend.secondary { background: rgba(139, 0, 139, 0.2); color: #8b008b; border: 1px solid rgba(139, 0, 139, 0.3); }
.female-theme .btn-recommend.secondary:hover { background: rgba(139, 0, 139, 0.3); }

/* 推荐结果样式 */
.recommend-result { background: white; border-radius: 12px; padding: 20px; margin: 20px 0; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.recommend-result h3 { color: #333; margin: 0 0 20px 0; padding-bottom: 10px; border-bottom: 2px solid #ff69b4; display: flex; align-items: center; gap: 10px; }
.result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 15px; }
.result-card { background: linear-gradient(135deg, #fff5f8 0%, #ffe4ec 100%); border-radius: 10px; padding: 15px; text-align: center; transition: transform 0.3s ease; cursor: pointer; border: 1px solid #ffb6c1; }
.result-card:hover { transform: translateY(-3px); box-shadow: 0 4px 12px rgba(255, 105, 180, 0.3); }
.result-card .size-type { font-size: 13px; color: #c71585; margin-bottom: 5px; }
.result-card .size-value { font-size: 28px; font-weight: 700; color: #ff1493; margin: 8px 0; }
.result-card .size-desc { font-size: 12px; color: #db7093; line-height: 1.4; }
.body-info { display: flex; justify-content: center; gap: 30px; margin-bottom: 20px; flex-wrap: wrap; }
.body-info-item { text-align: center; padding: 10px 20px; background: #fff5f8; border-radius: 8px; border: 1px solid #ffb6c1; }
.body-info-item .label { font-size: 12px; color: #c71585; }
.body-info-item .value { font-size: 20px; font-weight: 600; color: #ff1493; }

/* 女装结果主题 */
.female-result h3 { border-bottom-color: #ff69b4; }
.female-result .result-card { background: linear-gradient(135deg, #fff5f8 0%, #ffe4ec 100%); border-color: #ffb6c1; }
.female-result .result-card:hover { box-shadow: 0 4px 12px rgba(255, 105, 180, 0.3); }

/* AI结果样式 */
.ai-result { background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%); border-radius: 12px; padding: 20px; margin: 20px 0; color: white; }
.ai-result h3 { margin: 0 0 15px 0; display: flex; align-items: center; gap: 10px; }
.ai-content { background: rgba(255,255,255,0.95); color: #333; border-radius: 8px; padding: 15px; line-height: 1.8; white-space: pre-wrap; }

/* 女装AI结果主题 */
.female-ai { background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 50%, #ff69b4 100%); }
.female-ai h3 { color: #8b008b; }

/* 图例说明 */
.size-legend { background: #f8f9fa; border-radius: 8px; padding: 15px; margin: 15px 0; }
.size-legend h4 { margin: 0 0 10px 0; color: #333; font-size: 14px; }
.legend-items { display: flex; flex-wrap: wrap; gap: 15px; font-size: 13px; color: #666; }
.legend-item { display: flex; align-items: center; gap: 5px; }
.legend-color { width: 16px; height: 16px; border-radius: 4px; }

/* 测量指南 */
.measure-guide { background: #fff3cd; border-radius: 8px; padding: 15px; margin: 15px 0; border-left: 4px solid #ffc107; }
.measure-guide h4 { margin: 0 0 10px 0; color: #856404; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.measure-guide ul { margin: 0; padding-left: 20px; color: #856404; font-size: 13px; line-height: 1.8; }

/* 女装测量指南 */
.female-guide { background: #fff0f5; border-left-color: #ff69b4; }
.female-guide h4 { color: #c71585; }
.female-guide ul { color: #8b008b; }

/* 女装选购建议 */
.female-tips { background: #fff0f5 !important; border-left-color: #ff69b4 !important; }
.female-tips h4 { color: #c71585 !important; }
.female-tips ul { color: #8b008b !important; }

/* 内衣尺码指南 */
.bra-guide { background: #fff0f5; border-radius: 8px; padding: 12px 15px; margin: 10px 0 15px 0; font-size: 13px; color: #c71585; border: 1px dashed #ffb6c1; }
.bra-guide p { margin: 5px 0; }

/* Loading状态 */
.loading-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.5); display: flex; justify-content: center; align-items: center; z-index: 9999; }
.loading-spinner { background: white; padding: 30px 50px; border-radius: 12px; text-align: center; box-shadow: 0 4px 20px rgba(0,0,0,0.3); }
.loading-spinner .spinner { width: 40px; height: 40px; border: 4px solid #f3f3f3; border-top: 4px solid #ff69b4; border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 15px; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }
.loading-spinner p { margin: 0; color: #333; font-size: 14px; }

/* 女装Loading主题 */
.female-spinner .spinner { border-top-color: #ff69b4; }

/* 实时BMI显示 */
.realtime-bmi { background: rgba(255,255,255,0.25); border-radius: 8px; padding: 10px 15px; margin-top: 15px; display: none; }
.realtime-bmi.show { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.realtime-bmi-item { text-align: center; }
.realtime-bmi-item .label { font-size: 12px; opacity: 0.9; color: #8b008b; }
.realtime-bmi-item .value { font-size: 18px; font-weight: 600; color: #8b008b; }

/* Toast提示 */
.toast { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); background: #333; color: white; padding: 12px 24px; border-radius: 8px; z-index: 10000; opacity: 0; transition: opacity 0.3s ease; font-size: 14px; }
.toast.show { opacity: 1; }
.toast.success { background: #ff69b4; }
.toast.warning { background: #ff9800; }
.toast.error { background: #f44336; }

/* 快捷键提示 */
.shortcut-tips { margin-top: 15px; font-size: 12px; opacity: 0.9; display: flex; gap: 15px; flex-wrap: wrap; color: #8b008b; }
.shortcut-tips kbd { background: rgba(139, 0, 139, 0.2); padding: 2px 6px; border-radius: 4px; font-family: monospace; color: #8b008b; }

/* 表格横向滚动 */
.size-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* 输入错误提示 */
.form-group input.input-error { outline: 2px solid #f44336 !important; background: #fff0f0 !important; }
.input-error-tip { font-size: 11px; color: #f44336; margin-top: 4px; display: none; }
.input-error-tip.show { display: block; }

/* 按钮禁用状态 */
.btn-recommend.disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }

/* 复制成功提示 */
.copy-hint { font-size: 11px; color: #ff69b4; margin-left: 8px; opacity: 0; transition: opacity 0.3s; }
.copy-hint.show { opacity: 1; }

/* 响应式 */
@media (max-width: 768px) {
    .form-grid { grid-template-columns: 1fr 1fr; }
    .result-grid { grid-template-columns: 1fr 1fr; }
    .size-table { font-size: 12px; }
    .size-table th, .size-table td { padding: 8px 4px; }
    .bra-guide { font-size: 12px; }
}
@media (max-width: 480px) {
    .form-grid { grid-template-columns: 1fr; }
    .result-grid { grid-template-columns: 1fr; }
    .size-tabs { justify-content: center; }
    .size-tab { padding: 8px 12px; font-size: 12px; }
}
