/* ============================================================
   配色方案 - 6 种主题色系
   通过 body.theme-xxx 类名切换 CSS 变量
   每套配色包含：主色、背景色、标题栏色、房型表头色、斑马纹色
   
   兼容模式设计原则：
   --header-bg 的值必须与 frontend.css 中的回退色一致
   --table-header-bg 的值必须与 frontend.css 中 .price-table thead th 回退色一致
   --header-gradient 的起始色使用 primary-active（比主色深一档）
   ============================================================ */

/* ---- 默认值（:root 兜底 = 经典蓝） ---- */
:root {
    --primary:        #1677ff;
    --primary-hover:  #4096ff;
    --primary-active: #0958d9;
    --success:        #52c41a;
    --error:          #ff4d4f;
    --warning:        #faad14;
    --text:           rgba(0,0,0,0.88);
    --text-secondary: rgba(0,0,0,0.65);
    --text-tertiary:  rgba(0,0,0,0.45);
    --border:         #d9d9d9;
    --border-light:   #f0f0f0;
    --bg:             #f0f7ff;
    --bg-component:   #ffffff;
    --stripe-bg:      rgba(22,119,255,0.08);
    --header-bg:      #0c3d7c;
    --table-header-bg: #0c3d7c;
    --header-gradient: linear-gradient(135deg, #001529 0%, #0c3d7c 100%);
    --tel:            #ffba6b;
    --carousel-bg:    #0c3d7c;
    --dot-active:     #60a5fa;
    --dot-inactive:   rgba(255,255,255,0.4);
}

/* ============================================================
   1. 经典蓝（默认）- 沉稳专业，酒店首选
   ============================================================ */
body.theme-blue {
    --primary:        #1677ff;
    --primary-hover:  #4096ff;
    --primary-active: #0958d9;
    --success:        #52c41a;
    --error:          #ff4d4f;
    --warning:        #faad14;
    --text:           rgba(0,0,0,0.88);
    --text-secondary: rgba(0,0,0,0.65);
    --text-tertiary:  rgba(0,0,0,0.45);
    --border:         #d9d9d9;
    --border-light:   #f0f0f0;
    --bg:             #f0f7ff;
    --bg-component:   #ffffff;
    --stripe-bg:      rgba(22,119,255,0.08);
    --header-bg:      #0c3d7c;
    --table-header-bg: #0c3d7c;
    --header-gradient: linear-gradient(135deg, #001529 0%, #0c3d7c 100%);
    --tel:            #ffba6b;
    --carousel-bg:    #0c3d7c;
    --dot-active:     #60a5fa;
    --dot-inactive:   rgba(255,255,255,0.4);
}

/* ============================================================
   2. 翡翠绿 - 自然清新，生机勃勃
   ============================================================ */
body.theme-emerald {
    --primary:        #10b981;
    --primary-hover:  #34d399;
    --primary-active: #059669;
    --success:        #22c55e;
    --error:          #ef4444;
    --warning:        #f59e0b;
    --text:           rgba(0,0,0,0.88);
    --text-secondary: rgba(0,0,0,0.65);
    --text-tertiary:  rgba(0,0,0,0.45);
    --border:         #d1d5db;
    --border-light:   #e5e7eb;
    --bg:             #f0fdf4;
    --bg-component:   #ffffff;
    --stripe-bg:      rgba(16,185,129,0.08);
    --header-bg:      #064e3b;
    --table-header-bg: #10b981;
    --header-gradient: linear-gradient(135deg, #022c22 0%, #064e3b 100%);
    --tel:            #fde68a;
    --carousel-bg:    #064e3b;
    --dot-active:     #34d399;
    --dot-inactive:   rgba(255,255,255,0.4);
}

/* ============================================================
   3. 暖阳橙 - 热情活力，宾至如归
   ============================================================ */
body.theme-orange {
    --primary:        #f97316;
    --primary-hover:  #fb923c;
    --primary-active: #ea580c;
    --success:        #22c55e;
    --error:          #ef4444;
    --warning:        #eab308;
    --text:           rgba(0,0,0,0.88);
    --text-secondary: rgba(0,0,0,0.65);
    --text-tertiary:  rgba(0,0,0,0.45);
    --border:         #d1d5db;
    --border-light:   #e5e7eb;
    --bg:             #fff7ed;
    --bg-component:   #ffffff;
    --stripe-bg:      rgba(249,115,22,0.08);
    --header-bg:      #7c2d12;
    --table-header-bg: #f97316;
    --header-gradient: linear-gradient(135deg, #431407 0%, #7c2d12 100%);
    --tel:            #fef3c7;
    --carousel-bg:    #7c2d12;
    --dot-active:     #fb923c;
    --dot-inactive:   rgba(255,255,255,0.4);
}

/* ============================================================
   4. 紫罗兰 - 优雅高端，浪漫格调
   ============================================================ */
body.theme-purple {
    --primary:        #8b5cf6;
    --primary-hover:  #a78bfa;
    --primary-active: #7c3aed;
    --success:        #22c55e;
    --error:          #ef4444;
    --warning:        #eab308;
    --text:           rgba(0,0,0,0.88);
    --text-secondary: rgba(0,0,0,0.65);
    --text-tertiary:  rgba(0,0,0,0.45);
    --border:         #d1d5db;
    --border-light:   #e5e7eb;
    --bg:             #faf5ff;
    --bg-component:   #ffffff;
    --stripe-bg:      rgba(139,92,246,0.08);
    --header-bg:      #4c1d95;
    --table-header-bg: #8b5cf6;
    --header-gradient: linear-gradient(135deg, #2e1065 0%, #4c1d95 100%);
    --tel:            #fde68a;
    --carousel-bg:    #4c1d95;
    --dot-active:     #a78bfa;
    --dot-inactive:   rgba(255,255,255,0.4);
}

/* ============================================================
   5. 玫瑰红 - 温馨浪漫，女性首选
   ============================================================ */
body.theme-rose {
    --primary:        #e11d48;
    --primary-hover:  #fb7185;
    --primary-active: #be123c;
    --success:        #22c55e;
    --error:          #ef4444;
    --warning:        #eab308;
    --text:           rgba(0,0,0,0.88);
    --text-secondary: rgba(0,0,0,0.65);
    --text-tertiary:  rgba(0,0,0,0.45);
    --border:         #d1d5db;
    --border-light:   #e5e7eb;
    --bg:             #fff1f2;
    --bg-component:   #ffffff;
    --stripe-bg:      rgba(225,29,72,0.08);
    --header-bg:      #881337;
    --table-header-bg: #e11d48;
    --header-gradient: linear-gradient(135deg, #4c0519 0%, #881337 100%);
    --tel:            #fef3c7;
    --carousel-bg:    #881337;
    --dot-active:     #fb7185;
    --dot-inactive:   rgba(255,255,255,0.4);
}

/* ============================================================
   6. 暗夜黑 - 深色模式，护眼沉浸
   ============================================================ */
body.theme-dark {
    --primary:        #3b82f6;
    --primary-hover:  #60a5fa;
    --primary-active: #2563eb;
    --success:        #22c55e;
    --error:          #ef4444;
    --warning:        #f59e0b;
    --text:           rgba(255,255,255,0.92);
    --text-secondary: rgba(255,255,255,0.70);
    --text-tertiary:  rgba(255,255,255,0.55);
    --border:         #374151;
    --border-light:   #1f2937;
    --bg:             #0f172a;
    --bg-component:   #1e293b;
    --stripe-bg:      rgba(255,255,255,0.04);
    --header-bg:      #1e293b;
    --table-header-bg: #3b82f6;
    --header-gradient: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #1e3a5f 100%);
    --tel:            #60a5fa;
    --carousel-bg:    #1e293b;
    --dot-active:     #60a5fa;
    --dot-inactive:   rgba(255,255,255,0.4);
}
