/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "微软雅黑", sans-serif;
    font-size: 13px;
}

html, body {
    height: 100%;
}

body {
    background: #f5f7fa;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    padding: 0;
    overflow-x: hidden;
}

/* 通用样式类（替代内联样式） */
.mt-30 {
    margin-top: 30px;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.mb-15 {
    margin-bottom: 15px;
}

.mb-10 {
    margin-bottom: 10px;
}

.ml-10 {
    margin-left: 10px;
}

.mx-30 {
    margin: 30px 0;
}

.text-center {
    text-align: center;
}

.text-sm {
    font-size: 12px;
}

.text-md {
    font-size: 14px;
}

.text-lg {
    font-size: 18px;
}

.text-xl {
    font-size: 20px;
}

.text-gray {
    color: #666;
}

.text-red {
    color: #ef4444;
}

.text-green {
    color: #10b981;
}

.empty-state {
    text-align: center;
    padding: 20px;
}

.text-yellow {
    color: #f59e0b;
}

.text-white {
    color: white;
}

.font-bold {
    font-weight: bold;
}

.flex {
    display: flex;
}

.flex-wrap {
    flex-wrap: wrap;
}

.flex-1 {
    flex: 1;
}

.justify-between {
    justify-content: space-between;
}

.justify-end {
    justify-content: flex-end;
}

.items-center {
    align-items: center;
}

.gap-10 {
    gap: 10px;
}

.cursor-pointer {
    cursor: pointer;
}

.inline-block {
    display: inline-block;
}

.block {
    display: block;
}

.mt-1 {
    margin-top: 5px;
}

.hidden {
    display: none !important;
}

.nowrap {
    white-space: nowrap;
}

.predicted-price-box {
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 10px;
}

.card {
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 12px 15px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-form {
    display: none;
    background: #f8f9fa;
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.form-group-sm {
    flex: 1;
    min-width: 120px;
}

.form-label-sm {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.form-control-sm {
    padding: 8px 10px;
    font-size: 12px;
    height: 36px;
    box-sizing: border-box;
}

.btn-sm {
    padding: 8px 15px;
    font-size: 12px;
    height: 36px;
    box-sizing: border-box;
    flex: 1;
}

.btn-save {
    font-size: 20px;
    cursor: pointer;
    margin-right: 8px;
    display: inline-block;
    color: #10b981;
}

.btn-delete {
    font-size: 20px;
    cursor: pointer;
    display: inline-block;
    color: #ef4444;
}

.predicted-price-value {
    color: #10b981;
    font-size: 18px;
    font-weight: bold;
}

.predicted-price-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.info-box {
    background: rgba(255,255,255,0.2);
    padding: 20px;
    border-radius: 8px;
}

.btn-icon {
    margin-right: 8px;
}

.form-group-hidden {
    display: none;
}

/* 组件加载失败提示（替代内联 style，符合项目禁止内联样式规范） */
.component-load-error {
    color: #d9363e;
    padding: 20px;
    border: 1px solid #ff4d4f;
    background: #fff1f0;
    border-radius: 4px;
    text-align: center;
    font-size: 13px;
}
