/**
 * 华为门店回收换新 App - 样式系统
 * 移动端优先设计，Huawei品牌视觉
 */

/* ======================== 重置 & 变量 ======================== */
:root {
  --hw-red: #C7000B;
  --hw-red-light: #E8141F;
  --hw-red-dark: #A00009;
  --hw-red-soft: #FFF1F2;
  --hw-dark: #1E2430;
  --hw-gold: #D4A857;
  --blue: #2267D5;
  --blue-soft: #EAF2FF;
  --gold-soft: #FFF6E5;
  --bg-page: #F5F6F8;
  --bg-card: #FFFFFF;
  --text-1: #1E2430;
  --text-2: #5A6577;
  --text-3: #9AA5B5;
  --text-white: #FFFFFF;
  --border: #E7EBF0;
  --success: #07C160;
  --warning: #FF9500;
  --error: #C7000B;
  --shadow-sm: 0 4px 14px rgba(30,36,48,0.06);
  --shadow-md: 0 8px 24px rgba(30,36,48,0.09);
  --shadow-lg: 0 18px 42px rgba(30,36,48,0.16);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --space-page: 16px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --tabbar-h: 64px;
}

* { margin:0; padding:0; box-sizing:border-box; -webkit-tap-highlight-color:transparent; }
html, body { height:100%; overflow:hidden; font-family:-apple-system,BlinkMacSystemFont,"HarmonyOS Sans SC","PingFang SC","Microsoft YaHei",sans-serif; background:var(--bg-page); color:var(--text-1); -webkit-font-smoothing:antialiased; }

/* ======================== App 容器 ======================== */
#app {
  position:relative;
  width:100%;
  max-width:430px;
  height:100vh;
  height:100dvh;
  margin:0 auto;
  background:var(--bg-page);
  overflow:hidden;
  box-shadow:0 18px 56px rgba(30,36,48,0.12);
}

@media(min-width:431px) {
  body { background:#E8E8E8; display:flex; align-items:center; justify-content:center; }
  #app { height:100vh; border-radius:0; }
}

/* ======================== 视图系统 ======================== */
.view {
  position:absolute;
  inset:0;
  display:flex;
  flex-direction:column;
  opacity:0;
  pointer-events:none;
  transform:translateX(30px);
  transition:opacity .28s ease, transform .28s ease;
  overflow:hidden;
}
.view.active {
  opacity:1;
  pointer-events:auto;
  transform:translateX(0);
  z-index:1;
}
.view.active.slide-from-left { animation:slideInLeft .28s ease; }

@keyframes slideInLeft { from{opacity:0;transform:translateX(-30px);} to{opacity:1;transform:translateX(0);} }

.view-content {
  flex:1;
  overflow-y:auto;
  overflow-x:hidden;
  -webkit-overflow-scrolling:touch;
  padding-bottom:calc(var(--tabbar-h) + var(--safe-bottom) + 12px);
}
.view-content.no-tab { padding-bottom:calc(var(--tabbar-h) + var(--safe-bottom) + 18px); }

/* ======================== 状态栏 ======================== */
.status-bar {
  height:44px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 22px;
  font-size:15px;
  font-weight:600;
  color:var(--text-1);
  flex-shrink:0;
}
.status-bar.dark { color:#fff; }
.status-bar .sb-right { display:flex; gap:6px; align-items:center; }
.status-bar .sb-icons { display:flex; gap:5px; align-items:center; }
.status-bar svg { width:16px; height:16px; }

/* ======================== 顶部导航栏 ======================== */
.nav-bar {
  height:52px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 16px;
  flex-shrink:0;
  position:relative;
}
.nav-bar .nav-title { font-size:18px; font-weight:700; color:var(--text-1); line-height:1.2; }
.nav-bar .nav-back { width:36px; height:36px; display:flex; align-items:center; justify-content:center; cursor:pointer; border-radius:50%; }
.nav-bar .nav-back:active { background:rgba(0,0,0,0.06); }
.nav-bar .nav-back svg { width:24px; height:24px; }
.nav-bar .nav-right { display:flex; gap:8px; }

/* ======================== 首页 ======================== */
.home-header {
  background:linear-gradient(135deg, var(--hw-red) 0%, var(--hw-red-light) 100%);
  padding-bottom:20px;
  border-radius:0 0 var(--radius-xl) var(--radius-xl);
  position:relative;
  overflow:hidden;
}
.home-header::after, .home-header::before { content:none; }
.home-location {
  display:flex; align-items:center; gap:6px;
  padding:0 20px; color:#fff; font-size:14px; margin-bottom:12px;
}
.home-location .loc-icon { width:16px; height:16px; }
.home-location .loc-text { font-weight:600; }
.home-location .arrow { font-size:10px; opacity:.7; }
.home-search {
  margin:0 20px; background:rgba(255,255,255,0.2);
  border-radius:var(--radius-md); height:40px; display:flex; align-items:center;
  padding:0 14px; gap:8px; backdrop-filter:blur(4px);
}
.home-search .search-icon { width:16px; height:16px; opacity:.8; }
.home-search .search-text { color:rgba(255,255,255,0.7); font-size:14px; }

/* Banner 轮播 */
.banner-wrap { padding:16px 16px 0; }
.banner-scroll { display:flex; gap:12px; overflow-x:auto; scroll-snap-type:x mandatory; padding-bottom:4px; }
.banner-scroll::-webkit-scrollbar { display:none; }
.banner-item {
  flex-shrink:0; width:calc(100% - 12px); height:130px;
  border-radius:var(--radius-lg); padding:20px;
  scroll-snap-align:center; position:relative; overflow:hidden;
  display:flex; flex-direction:column; justify-content:space-between;
  color:#fff; cursor:pointer;
}
.banner-item.gradient-red { background:linear-gradient(135deg,var(--hw-red),var(--hw-red-light)); }
.banner-item.gradient-dark { background:linear-gradient(135deg,var(--hw-dark),#343B49); }
.banner-item.gradient-blue { background:linear-gradient(135deg,#1F5FBF,#3292E8); }
.banner-item .b-title { font-size:18px; font-weight:700; line-height:1.3; }
.banner-item .b-sub { font-size:13px; opacity:.85; }
.banner-item .b-tag { display:inline-block; background:rgba(255,255,255,0.25); padding:2px 10px; border-radius:12px; font-size:11px; }
.banner-item::after { content:none; }
.banner-dots { display:flex; gap:6px; justify-content:center; margin-top:10px; }
.banner-dots .dot { width:6px; height:6px; border-radius:3px; background:#D5D9E0; transition:all .3s; }
.banner-dots .dot.active { width:18px; background:var(--hw-red); }

/* 快捷服务 */
.section { padding:16px; }
.section-title { font-size:17px; font-weight:700; color:var(--text-1); margin-bottom:12px; display:flex; justify-content:space-between; align-items:center; }
.section-title .more { font-size:13px; color:var(--text-3); font-weight:400; }
.service-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }
.service-item { display:flex; flex-direction:column; align-items:center; gap:8px; cursor:pointer; }
.service-icon { width:52px; height:52px; border-radius:16px; display:flex; align-items:center; justify-content:center; font-size:24px; overflow:hidden; }
.service-icon svg { width:26px; height:26px; display:block; flex-shrink:0; }
.service-icon.red { background:var(--hw-red-soft); color:var(--hw-red); }
.service-icon.blue { background:var(--blue-soft); color:var(--blue); }
.service-icon.gold { background:var(--gold-soft); color:var(--hw-gold); }
.service-icon.gray { background:linear-gradient(135deg,#F0F0F0,#E5E5E5); color:var(--text-3); }
.service-name { font-size:13px; color:var(--text-1); font-weight:500; }

/* 亮点卡片 */
.highlight-row { display:flex; gap:10px; overflow-x:auto; }
.highlight-row::-webkit-scrollbar { display:none; }
.highlight-card {
  flex-shrink:0; width:calc(50% - 5px); background:var(--bg-card);
  border-radius:var(--radius-md); padding:14px; box-shadow:var(--shadow-sm);
  display:flex; align-items:center; gap:10px;
}
.highlight-card .hl-icon { width:36px; height:36px; border-radius:10px; background:var(--hw-red-soft); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.hl-icon svg, .highlight-card .hl-icon svg { width:20px; height:20px; color:var(--hw-red); display:block; flex-shrink:0; }
.highlight-card .hl-text .hl-title { font-size:13px; font-weight:600; color:var(--text-1); }
.highlight-card .hl-text .hl-desc { font-size:11px; color:var(--text-3); }

/* 活动卡片 */
.activity-card {
  background:var(--bg-card); border-radius:var(--radius-lg); overflow:hidden;
  margin-bottom:12px; box-shadow:var(--shadow-sm);
}
.activity-card .ac-img { height:100px; background:linear-gradient(135deg,#1A1A2E,#2D2D44); display:flex; align-items:center; padding:0 20px; position:relative; }
.activity-card .ac-img.ac-img-red { background:linear-gradient(135deg,var(--hw-red),var(--hw-red-light)); }
.activity-card .ac-img .ac-title { color:#fff; font-size:16px; font-weight:700; }
.activity-card .ac-img .ac-sub { color:rgba(255,255,255,0.7); font-size:12px; margin-top:4px; }
.activity-card .ac-body { padding:12px 16px; display:flex; justify-content:space-between; align-items:center; }
.activity-card .ac-body .ac-tag { font-size:12px; color:var(--hw-red); font-weight:600; }
.activity-card .ac-body .ac-btn { background:var(--hw-red); color:#fff; height:32px; padding:0 16px; border-radius:16px; font-size:13px; font-weight:600; border:none; cursor:pointer; }

/* ======================== 底部 Tab Bar ======================== */
.tabbar {
  position:absolute; bottom:0; left:0; right:0;
  height:calc(var(--tabbar-h) + var(--safe-bottom));
  padding-bottom:var(--safe-bottom);
  background:rgba(255,255,255,0.96);
  backdrop-filter:blur(20px);
  border-top:0.5px solid var(--border);
  display:flex; z-index:100;
}
.tabbar-item {
  flex:1; display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:3px; cursor:pointer; position:relative;
}
.tabbar-item .tb-icon { width:23px; height:23px; color:var(--text-3); transition:color .2s; }
.tabbar-item .tb-label { font-size:11px; color:var(--text-3); font-weight:500; line-height:1; }
.tabbar-item.active .tb-icon, .tabbar-item.active .tb-label { color:var(--hw-red); }
.tabbar-item .tb-badge {
  position:absolute; top:4px; right:50%; margin-right:-24px;
  min-width:16px; height:16px; border-radius:8px; background:var(--hw-red);
  color:#fff; font-size:10px; display:flex; align-items:center; justify-content:center;
  padding:0 4px;
}

/* ======================== 回收换新流程 ======================== */
.recycle-header {
  background:linear-gradient(135deg, var(--hw-red) 0%, var(--hw-red-light) 100%);
  padding-bottom:24px; border-radius:0 0 var(--radius-xl) var(--radius-xl); position:relative;
}
.recycle-header .rh-title { color:#fff; font-size:20px; font-weight:700; padding:0 20px; }
.recycle-header .rh-sub { color:rgba(255,255,255,0.8); font-size:13px; padding:4px 20px 0; }

/* 步骤进度条 */
.step-bar { padding:16px 20px; display:flex; align-items:center; gap:4px; background:#fff; }
.step-item { display:flex; align-items:center; flex:1; }
.step-dot { width:28px; height:28px; border-radius:50%; background:#E8ECF0; display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:700; color:var(--text-3); flex-shrink:0; transition:all .3s; }
.step-dot svg { width:15px; height:15px; display:block; }
.step-item.done .step-dot { background:var(--hw-red); color:#fff; }
.step-item.active .step-dot { background:var(--hw-red); color:#fff; box-shadow:0 0 0 4px rgba(199,0,11,0.15); }
.step-line { flex:1; height:2px; background:#E8ECF0; margin:0 4px; }
.step-line.done { background:var(--hw-red); }
.step-label { font-size:11px; color:var(--text-3); margin-top:6px; text-align:center; }
.step-item.active .step-label { color:var(--hw-red); font-weight:600; }
.step-item.done .step-label { color:var(--text-1); }
.step-col { display:flex; flex-direction:column; align-items:center; flex-shrink:0; }

/* 品类选择 */
.category-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:12px; padding:16px; }
.category-card {
  background:var(--bg-card); border-radius:var(--radius-lg); padding:20px 16px;
  text-align:center; cursor:pointer; border:2px solid transparent;
  transition:all .2s; box-shadow:var(--shadow-sm); position:relative;
}
.category-card:active { transform:scale(0.97); }
.category-card.selected { border-color:var(--hw-red); background:var(--hw-red-soft); }
.category-card .cat-icon { width:56px; height:56px; margin:0 auto 12px; display:flex; align-items:center; justify-content:center; border-radius:14px; background:var(--hw-red-soft); }
.category-card .cat-icon svg { width:32px; height:32px; color:var(--hw-red); }
.category-card .cat-name { font-size:16px; font-weight:600; color:var(--text-1); }
.category-card .cat-desc { font-size:12px; color:var(--text-3); margin-top:4px; }
.category-card.disabled { opacity:.45; }
.category-card.disabled .cat-icon { background:linear-gradient(135deg,#F0F0F0,#E5E5E5); }
.category-card.disabled .cat-icon svg { color:var(--text-3); }
.category-card .coming-soon { position:absolute; top:8px; right:8px; background:#E8ECF0; color:var(--text-3); font-size:10px; padding:2px 8px; border-radius:8px; }

/* 品牌列表 */
.brand-list { padding:16px; }
.brand-card {
  background:var(--bg-card); border-radius:var(--radius-md); margin-bottom:10px;
  overflow:hidden; box-shadow:var(--shadow-sm);
}
.brand-header { display:flex; align-items:center; gap:12px; padding:14px 16px; cursor:pointer; }
.brand-logo { width:40px; height:40px; border-radius:10px; background:linear-gradient(135deg,var(--hw-dark),#343B49); color:#fff; display:flex; align-items:center; justify-content:center; font-size:13px; font-weight:700; flex-shrink:0; }
.brand-name { font-size:15px; font-weight:600; color:var(--text-1); }
.brand-arrow { margin-left:auto; width:20px; height:20px; color:var(--text-3); transition:transform .3s; }
.brand-arrow svg { width:20px; height:20px; display:block; }
.brand-card.expanded .brand-arrow { transform:rotate(90deg); }
.brand-models { max-height:0; overflow:hidden; transition:max-height .3s ease; }
.brand-card.expanded .brand-models { max-height:500px; }
.model-list { padding:0 16px 14px; }
.model-item {
  display:flex; justify-content:space-between; align-items:center;
  padding:12px 14px; border-radius:var(--radius-sm); cursor:pointer; margin-bottom:6px;
  transition:background .2s;
}
.model-item:active { background:var(--bg-page); }
.model-item.selected { background:var(--hw-red-soft); }
.model-item .mi-name { font-size:14px; color:var(--text-1); font-weight:500; }
.model-item .mi-price { font-size:13px; color:var(--hw-red); font-weight:600; }
.model-item .mi-check { width:20px; height:20px; opacity:0; }
.model-item .mi-check svg { width:20px; height:20px; display:block; color:var(--hw-red); }
.model-item.selected .mi-check { opacity:1; }

/* 状况评估 */
.condition-section { padding:16px; }
.condition-group { background:var(--bg-card); border-radius:var(--radius-lg); padding:16px; margin-bottom:12px; box-shadow:var(--shadow-sm); }
.condition-group .cg-title { font-size:15px; font-weight:600; color:var(--text-1); margin-bottom:12px; display:flex; align-items:center; gap:8px; }
.condition-group .cg-title .cg-icon { width:20px; height:20px; color:var(--hw-red); }
.condition-group .cg-title > svg { width:20px; height:20px; color:var(--hw-red); flex-shrink:0; }
.condition-options { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.cond-option {
  border:1.5px solid var(--border); border-radius:var(--radius-md); padding:12px;
  cursor:pointer; transition:all .2s; text-align:center;
}
.cond-option:active { transform:scale(0.97); }
.cond-option.selected { border-color:var(--hw-red); background:var(--hw-red-soft); }
.cond-option .co-label { font-size:14px; font-weight:600; color:var(--text-1); }
.cond-option .co-desc { font-size:11px; color:var(--text-3); margin-top:2px; }
.cond-option.selected .co-label { color:var(--hw-red); }

/* 价格预估 */
.price-result { padding:16px; }
.price-card {
  background:linear-gradient(135deg,var(--hw-dark),#343B49); border-radius:var(--radius-xl);
  padding:28px 20px; text-align:center; color:#fff; position:relative; overflow:hidden;
}
.price-card::before, .price-card::after { content:none; }
.price-card .pc-label { font-size:14px; opacity:.7; }
.price-card .pc-amount { font-size:36px; font-weight:700; margin:8px 0; }
.price-card .pc-amount .pc-unit { font-size:16px; opacity:.8; }
.price-card .pc-range { font-size:13px; opacity:.6; }
.price-detail { background:var(--bg-card); border-radius:var(--radius-lg); padding:16px; margin-top:12px; box-shadow:var(--shadow-sm); }
.price-detail .pd-row { display:flex; justify-content:space-between; padding:8px 0; font-size:14px; }
.price-detail .pd-row .pd-key { color:var(--text-2); }
.price-detail .pd-row .pd-val { color:var(--text-1); font-weight:500; }
.price-detail .pd-divider { height:1px; background:var(--border); margin:4px 0; }
.price-result svg { width:16px; height:16px; display:inline-block; vertical-align:-3px; flex-shrink:0; }
.price-result span svg { width:14px; height:14px; vertical-align:-2px; }

/* 服务类型选择 */
.service-type-row { display:flex; gap:10px; padding:0 16px 16px; }
.stype-card {
  flex:1; background:var(--bg-card); border-radius:var(--radius-lg); padding:16px;
  border:2px solid transparent; cursor:pointer; text-align:center; box-shadow:var(--shadow-sm);
}
.stype-card.selected { border-color:var(--hw-red); background:var(--hw-red-soft); }
.stype-card .st-icon { font-size:28px; margin-bottom:8px; }
.stype-card .st-name { font-size:15px; font-weight:600; color:var(--text-1); }
.stype-card .st-desc { font-size:12px; color:var(--text-3); margin-top:4px; }

/* 门店选择 */
.store-search { padding:12px 16px; position:sticky; top:0; background:var(--bg-page); z-index:5; }
.store-search .ss-input {
  width:100%; height:40px; background:#fff; border:1px solid var(--border);
  border-radius:var(--radius-md); padding:0 16px 0 38px; font-size:14px; outline:none;
  position:relative;
}
.store-search .ss-wrap { position:relative; }
.store-search .ss-wrap svg { position:absolute; left:12px; top:50%; transform:translateY(-50%); width:16px; height:16px; color:var(--text-3); }
.filter-chips { display:flex; gap:8px; padding:0 16px 12px; overflow-x:auto; }
.filter-chips::-webkit-scrollbar { display:none; }
.chip {
  flex-shrink:0; height:32px; padding:0 14px; border-radius:16px; background:#fff;
  border:1px solid var(--border); font-size:13px; color:var(--text-2); cursor:pointer;
  transition:all .2s; display:flex; align-items:center;
}
.chip.active { background:var(--hw-red); color:#fff; border-color:var(--hw-red); }

.store-list { padding:0 16px; }
.store-card {
  background:var(--bg-card); border-radius:var(--radius-lg); padding:14px;
  margin-bottom:10px; box-shadow:var(--shadow-sm); cursor:pointer;
}
.store-card:active { transform:scale(0.98); }
.store-card .sc-header { display:flex; justify-content:space-between; align-items:flex-start; }
.store-card .sc-name { font-size:15px; font-weight:600; color:var(--text-1); flex:1; }
.store-card .sc-status { font-size:11px; padding:2px 8px; border-radius:8px; flex-shrink:0; margin-left:8px; }
.store-card .sc-status.open { background:#E8F8EE; color:var(--success); }
.store-card .sc-status.closed { background:#FFF0F0; color:var(--hw-red); }
.store-card .sc-address { font-size:13px; color:var(--text-2); margin-top:6px; display:flex; align-items:flex-start; gap:4px; }
.store-card .sc-meta { display:flex; gap:12px; margin-top:8px; align-items:center; }
.store-card .sc-distance { font-size:12px; color:var(--text-3); display:flex; align-items:center; gap:2px; }
.store-card .sc-rating { font-size:12px; color:var(--warning); display:flex; align-items:center; gap:2px; font-weight:600; }
.store-card .sc-hours { font-size:12px; color:var(--text-3); }
.store-card .sc-address svg,
.store-card .sc-distance svg,
.store-card .sc-rating svg,
.store-card .sc-hours svg {
  width:14px;
  height:14px;
  display:block;
  flex:0 0 14px;
}
.store-card > div[style*="text-align:center"] svg { width:16px; height:16px; display:inline-block; vertical-align:-3px; }
.store-card .sc-tags { display:flex; gap:6px; margin-top:8px; flex-wrap:wrap; }
.store-card .sc-tag { font-size:10px; padding:2px 8px; border-radius:8px; background:var(--blue-soft); color:var(--blue); }
.store-card .sc-tag.recycle { background:var(--hw-red-soft); color:var(--hw-red); }

/* 门店详情弹窗 */
.modal-overlay {
  position:absolute; inset:0; background:rgba(0,0,0,0.5); z-index:200;
  opacity:0; pointer-events:none; transition:opacity .25s;
  display:flex; align-items:flex-end;
}
.modal-overlay.show { opacity:1; pointer-events:auto; }
.modal-sheet {
  width:100%; max-height:85%; background:#fff; border-radius:24px 24px 0 0;
  transform:translateY(100%); transition:transform .3s ease; overflow-y:auto;
  padding-bottom:calc(var(--safe-bottom) + 16px);
}
.modal-overlay.show .modal-sheet { transform:translateY(0); }
.modal-handle { width:36px; height:4px; background:#DDD; border-radius:2px; margin:8px auto 0; }
.modal-close { position:absolute; top:16px; right:16px; width:32px; height:32px; background:#F5F5F5; border-radius:50%; display:flex; align-items:center; justify-content:center; cursor:pointer; z-index:1; }
#storeModalContent svg { width:16px; height:16px; display:block; flex-shrink:0; color:currentColor; }
#storeModalContent span svg { display:inline-block; vertical-align:-3px; }

/* 时间选择 */
.date-row { display:flex; gap:10px; overflow-x:auto; padding:16px; }
.date-row::-webkit-scrollbar { display:none; }
.date-card {
  flex-shrink:0; width:72px; background:var(--bg-card); border-radius:var(--radius-md);
  padding:12px 8px; text-align:center; cursor:pointer; border:2px solid transparent; box-shadow:var(--shadow-sm);
}
.date-card.selected { border-color:var(--hw-red); background:var(--hw-red-soft); }
.date-card .dc-week { font-size:12px; color:var(--text-3); }
.date-card .dc-day { font-size:18px; font-weight:700; color:var(--text-1); margin:2px 0; }
.date-card .dc-month { font-size:11px; color:var(--text-3); }
.date-card.disabled { opacity:.4; }
.time-group { padding:0 16px 12px; }
.time-group .tg-title { font-size:13px; color:var(--text-2); font-weight:600; margin-bottom:8px; }
.time-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:8px; }
.time-slot { padding:10px 4px; text-align:center; background:var(--bg-card); border:1.5px solid var(--border); border-radius:var(--radius-sm); font-size:12px; cursor:pointer; transition:all .2s; }
.time-slot:active { transform:scale(0.95); }
.time-slot.selected { background:var(--hw-red); color:#fff; border-color:var(--hw-red); }
.time-slot.disabled { opacity:.35; pointer-events:none; text-decoration:line-through; }

/* 确认页 */
.confirm-card { background:var(--bg-card); border-radius:var(--radius-lg); padding:16px; margin:0 16px 12px; box-shadow:var(--shadow-sm); }
.confirm-card .cc-title { font-size:14px; font-weight:600; color:var(--text-1); margin-bottom:12px; display:flex; align-items:center; gap:6px; }
.confirm-card .cc-title svg { width:16px; height:16px; flex-shrink:0; }
.confirm-card .cc-row { display:flex; justify-content:space-between; padding:8px 0; font-size:14px; }
.confirm-card .cc-key { color:var(--text-2); }
.confirm-card .cc-val { color:var(--text-1); font-weight:500; text-align:right; }
.confirm-card .cc-divider { height:1px; background:var(--border); margin:4px 0; }

/* 按钮 */
.btn-primary {
  width:100%; height:48px; background:linear-gradient(135deg,var(--hw-red),var(--hw-red-light));
  color:#fff; border:none; border-radius:24px; font-size:16px; font-weight:600;
  cursor:pointer; transition:all .2s; display:flex; align-items:center; justify-content:center; gap:6px;
}
.btn-primary:active { transform:scale(0.97); opacity:.9; }
.btn-primary:disabled { background:#DDD; color:#999; cursor:not-allowed; }
.btn-secondary {
  width:100%; height:48px; background:#fff; color:var(--hw-red);
  border:1.5px solid var(--hw-red); border-radius:24px; font-size:16px; font-weight:600;
  cursor:pointer; transition:all .2s;
}
.btn-secondary:active { transform:scale(0.97); }

.action-bar {
  position:absolute; bottom:0; left:0; right:0; padding:12px 16px;
  background:rgba(255,255,255,0.95); backdrop-filter:blur(12px);
  border-top:0.5px solid var(--border); display:flex; gap:10px; z-index:50;
  padding-bottom:calc(12px + var(--safe-bottom));
}
.action-bar .ab-back { flex:0 0 auto; width:48px; height:48px; border:1.5px solid var(--border); background:#fff; border-radius:24px; display:flex; align-items:center; justify-content:center; cursor:pointer; }
.action-bar .ab-back svg { width:22px; height:22px; color:var(--text-2); }
.action-bar .btn-primary { flex:1; }

/* ======================== 我的预约 ======================== */
.appt-card {
  background:var(--bg-card); border-radius:var(--radius-lg); padding:16px;
  margin:0 16px 12px; box-shadow:var(--shadow-sm); position:relative; overflow:hidden;
}
.appt-card::before { content:''; position:absolute; left:0; top:0; bottom:0; width:4px; }
.appt-card.pending::before { background:var(--warning); }
.appt-card.completed::before { background:var(--success); }
.appt-card.cancelled::before { background:var(--text-3); }
.appt-card .ac-top { display:flex; justify-content:space-between; align-items:center; margin-bottom:10px; }
.appt-card .ac-order { font-size:12px; color:var(--text-3); }
.appt-card .ac-status { font-size:12px; font-weight:600; padding:2px 10px; border-radius:10px; }
.appt-card .ac-status.pending { background:#FFF5E5; color:var(--warning); }
.appt-card .ac-status.completed { background:#E8F8EE; color:var(--success); }
.appt-card .ac-status.cancelled { background:#F5F5F5; color:var(--text-3); }
.appt-card .ac-info { display:flex; gap:12px; }
.appt-card .ac-thumb { width:60px; height:60px; border-radius:12px; background:var(--hw-red-soft); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.appt-card .ac-thumb svg { width:32px; height:32px; color:var(--hw-red); }
.appt-card .ac-detail { flex:1; }
.appt-card .ac-model { font-size:15px; font-weight:600; color:var(--text-1); }
.appt-card .ac-store { font-size:13px; color:var(--text-2); margin-top:4px; }
.appt-card .ac-time { font-size:13px; color:var(--text-3); margin-top:2px; }
.appt-card .ac-time svg { width:14px; height:14px; display:inline-block; vertical-align:-2px; color:var(--text-3); }
.appt-card .ac-price { font-size:16px; font-weight:700; color:var(--hw-red); margin-top:4px; }
.appt-card .ac-actions { display:flex; gap:8px; margin-top:12px; padding-top:12px; border-top:1px solid var(--border); }
.appt-card .ac-btn { flex:1; height:36px; border-radius:18px; font-size:13px; border:1px solid var(--border); background:#fff; color:var(--text-2); cursor:pointer; }
.appt-card .ac-btn.primary { background:var(--hw-red); color:#fff; border-color:var(--hw-red); }

/* 空状态 */
.empty-state { display:flex; flex-direction:column; align-items:center; justify-content:center; padding:80px 20px; }
.empty-state .es-icon { width:80px; height:80px; border-radius:50%; background:#F0F2F5; display:flex; align-items:center; justify-content:center; margin-bottom:16px; }
.empty-state .es-icon svg { width:40px; height:40px; color:var(--text-3); }
.empty-state .es-text { font-size:15px; color:var(--text-3); }
.empty-state .es-btn { margin-top:16px; padding:8px 24px; background:var(--hw-red); color:#fff; border:none; border-radius:20px; font-size:14px; cursor:pointer; }

/* ======================== 新品专区 ======================== */
.new-product-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; padding:16px; }
.np-card {
  background:var(--bg-card); border-radius:var(--radius-lg); overflow:hidden;
  box-shadow:var(--shadow-sm); cursor:pointer; position:relative;
}
.np-card .np-img { height:120px; background:linear-gradient(135deg,#FAFBFC,#EEF1F5); display:flex; align-items:center; justify-content:center; }
.np-card .np-img svg { width:48px; height:48px; color:var(--text-3); }
.np-card .np-body { padding:12px; }
.np-card .np-name { font-size:14px; font-weight:600; color:var(--text-1); }
.np-card .np-desc { font-size:12px; color:var(--text-3); margin-top:4px; }
.np-card .np-tag { position:absolute; top:8px; left:8px; background:rgba(0,0,0,0.5); color:#fff; font-size:10px; padding:2px 8px; border-radius:8px; backdrop-filter:blur(4px); }
.np-card.disabled { opacity:.6; }

/* ======================== Toast ======================== */
.toast {
  position:absolute; bottom:80px; left:50%; transform:translateX(-50%) translateY(20px);
  background:rgba(0,0,0,0.8); color:#fff; padding:10px 24px; border-radius:20px;
  font-size:14px; z-index:999; opacity:0; pointer-events:none; transition:all .3s;
  white-space:nowrap;
}
.toast.show { opacity:1; transform:translateX(-50%) translateY(0); }

/* ======================== 成功页 ======================== */
.success-page { display:flex; flex-direction:column; align-items:center; padding:60px 24px; }
.success-icon { width:80px; height:80px; border-radius:50%; background:linear-gradient(135deg,#07C160,#06A050); display:flex; align-items:center; justify-content:center; margin-bottom:20px; animation:popIn .4s ease; }
.success-icon svg { width:44px; height:44px; color:#fff; }
@keyframes popIn { 0%{transform:scale(0);} 60%{transform:scale(1.1);} 100%{transform:scale(1);} }
.success-title { font-size:20px; font-weight:700; color:var(--text-1); }
.success-sub { font-size:14px; color:var(--text-3); margin-top:8px; text-align:center; }
.success-info { width:100%; background:var(--bg-card); border-radius:var(--radius-lg); padding:16px; margin-top:24px; box-shadow:var(--shadow-sm); }

/* ======================== 通用 ======================== */
.fade-in { animation:fadeIn .3s ease; }
@keyframes fadeIn { from{opacity:0;} to{opacity:1;} }
.slide-up { animation:slideUp .35s ease; }
@keyframes slideUp { from{opacity:0;transform:translateY(20px);} to{opacity:1;transform:translateY(0);} }

.no-data-tip { text-align:center; padding:40px 20px; color:var(--text-3); font-size:14px; }

.divider { height:1px; background:var(--border); margin:12px 0; }

.text-red { color:var(--hw-red); }
.text-gray { color:var(--text-3); }
.flex-1 { flex:1; }

button, input, select, textarea { font-family:inherit; }
button { -webkit-appearance:none; appearance:none; }

.product-notice-card {
  background:linear-gradient(135deg,var(--hw-dark),#343B49);
  border-radius:var(--radius-lg);
  padding:20px;
  color:#fff;
  margin-bottom:4px;
  box-shadow:var(--shadow-sm);
}
.product-notice-title { font-size:16px; font-weight:700; line-height:1.3; }
.product-notice-sub { font-size:13px; opacity:.76; margin-top:4px; line-height:1.5; }

.store-card, .appt-card, .confirm-card, .condition-group, .brand-card,
.category-card, .activity-card, .highlight-card, .price-detail, .np-card {
  border:1px solid rgba(231,235,240,0.9);
}

.store-card .sc-name, .appt-card .ac-model, .np-card .np-name,
.brand-name, .section-title {
  line-height:1.35;
}

.sc-address, .cc-val, .pd-val, .ac-store {
  overflow-wrap:anywhere;
}

.btn-primary, .btn-secondary, .activity-card .ac-body .ac-btn,
.appt-card .ac-btn, .empty-state .es-btn {
  box-shadow:none;
}

@media(max-width:360px) {
  .service-grid { gap:10px; }
  .service-name, .tabbar-item .tb-label { font-size:10px; }
  .step-bar { padding:14px 10px; }
  .step-label { font-size:10px; }
  .time-grid { grid-template-columns:repeat(3,1fr); }
}
