/* ============================================================
   common.css - 温暖风公共样式（query.html / shop2.html 共用）
   ============================================================ */

:root {
    --bg: #F7EFE2;
    --bg-soft: #FAF3E5;
    --card: #FFFFFF;
    --primary: #B45309;
    --primary-deep: #92400E;
    --primary-soft: #FDE68A;
    --text: #4A382A;
    --text-soft: #8C7860;
    --border: #E8D9BF;
    --success: #0F766E;
    --success-soft: #CCFBF1;
    --danger: #B91C1C;
    --gray: #78716C;
    --info-soft: #BFDBFE;
    --info-text: #1E3A8A;
    --warn-soft: #FDE68A;
    --warn-text: #78350F;
    --done-soft: #A7F3D0;
    --done-text: #064E3B;
    --shadow: 0 8px 28px rgba(120, 80, 40, 0.12);
    --shadow-sm: 0 2px 8px rgba(120, 80, 40, 0.08);
    --radius: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
}

/* ===== 卡片 ===== */
.card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}
.card h2 { margin-bottom: 14px; font-size: 1.05em; color: var(--text); }

/* ===== 提示条 ===== */
.alert {
    padding: 12px 16px;
    border-radius: 12px;
    margin-top: 16px;
    font-size: 0.9em;
    display: flex; align-items: center; gap: 8px;
}
.alert-success { background: var(--success-soft); color: #064E3B; }
.alert-error { background: #FEE2E2; color: #991B1B; }
.alert-info { background: var(--info-soft); color: var(--info-text); }
.alert svg { flex-shrink: 0; }

/* ===== 弹窗通用 ===== */
.modal { display: none; position: fixed; inset: 0; background: rgba(74,56,42,0.45); z-index: 1000; justify-content: center; align-items: center; padding: 16px; }
.modal.active, .modal.show { display: flex; }
.modal-box {
    background: #fff;
    border-radius: var(--radius);
    padding: 28px;
    width: 100%; max-width: 460px;
    max-height: 88vh; overflow-y: auto;
    box-shadow: var(--shadow);
}
.modal-title {
    display: flex; align-items: center; gap: 8px;
    font-size: 1.1em; font-weight: 700; color: var(--text);
    margin-bottom: 20px;
}
.modal-title svg { color: var(--primary); }
.modal-actions { display: flex; gap: 10px; margin-top: 22px; }
.modal-actions button {
    flex: 1; padding: 12px;
    border: none; border-radius: 10px;
    font-size: 14px; font-weight: 600; cursor: pointer;
    transition: opacity .2s, transform .1s;
}
.modal-actions button:active { transform: scale(0.98); }
.btn-cancel { background: var(--bg-soft); color: var(--text-soft); }
.btn-cancel:hover { background: var(--border); }
.btn-submit { background: var(--success); color: #fff; }
.btn-submit:hover { background: #0D5E58; }

/* ===== 表单字段 ===== */
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; font-size: 0.85em; font-weight: 600; color: var(--text); }
.field input {
    width: 100%; padding: 11px 14px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    color: var(--text);
    background: var(--bg-soft);
    transition: border-color .2s, background .2s;
}
.field input:focus { outline: none; border-color: var(--primary); background: #fff; }
.field-help { font-size: 0.78em; color: var(--text-soft); margin-top: 5px; }

/* ===== 品牌图 ===== */
.brand-logo {
    background: #fff;
    border-radius: 50%;
    overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 14px rgba(0,0,0,0.20);
}
.brand-logo img { width: 100%; height: 100%; object-fit: cover; }

/* ===== 状态标签（与买家查询页一致） ===== */
.status-未出荷, .tag-yellow { background: var(--warn-soft); color: var(--warn-text); }
.status-可排发, .tag-green { background: var(--done-soft); color: var(--done-text); }
.status-已排发, .tag-blue { background: var(--info-soft); color: var(--info-text); }
.tag-gray { background: #F3F4F6; color: #6B7280; }
