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

/* 尺码对照表基础样式 */
.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: #e8e8e8; color: #333; }
.size-tab.active { background: #4a90d9; 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); } }

/* 表格样式 */
.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, #4a90d9 0%, #357abd 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: #f9f9f9; }
.size-table tr:hover { background: #e8f4fd; }
.size-table tr.highlighted { background: #fff3cd !important; font-weight: bold; }

/* 推荐表单样式 */
.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); }

/* 推荐结果样式 */
.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 #4a90d9; 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, #f5f7fa 0%, #c3cfe2 100%); border-radius: 10px; padding: 15px; text-align: center; transition: transform 0.3s ease; cursor: pointer; }
.result-card:hover { transform: translateY(-3px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); }
.result-card .size-type { font-size: 13px; color: #666; margin-bottom: 5px; }
.result-card .size-value { font-size: 28px; font-weight: 700; color: #4a90d9; margin: 8px 0; }
.result-card .size-desc { font-size: 12px; color: #888; 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: #f0f7ff; border-radius: 8px; }
.body-info-item .label { font-size: 12px; color: #666; }
.body-info-item .value { font-size: 20px; font-weight: 600; color: #4a90d9; }

/* 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; }

/* 图例说明 */
.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; }

/* 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 #4a90d9; 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; }

/* 实时BMI显示 */
.realtime-bmi { background: rgba(255,255,255,0.15); 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.8; }
.realtime-bmi-item .value { font-size: 18px; font-weight: 600; }

/* 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: #4caf50; }
.toast.warning { background: #ff9800; }
.toast.error { background: #f44336; }

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

/* 表格横向滚动 */
.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: #4caf50; 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; }
}
@media (max-width: 480px) {
    .form-grid { grid-template-columns: 1fr; }
    .result-grid { grid-template-columns: 1fr; }
    .size-tabs { justify-content: center; }
}
