/* New Edisons 商城 — Apple 清新风格 + 响应式 */
@import url('mall-responsive.css');

:root {
  --mall-accent: #0071e3;
  --mall-accent-hover: #0077ed;
  --mall-accent-soft: rgba(0, 113, 227, 0.1);
  --mall-mint: #34c759;
  --mall-price: #1d1d1f;
  --mall-bg: #f5f5f7;
  --mall-bg-subtle: #ebebed;
  --mall-bg-hover: #f0f0f2;
  --mall-bg-elevated: #ffffff;
  --mall-card: #ffffff;
  --mall-theme: #0071e3;
  --mall-theme-light: rgba(0, 113, 227, 0.1);
  --mall-text: #1d1d1f;
  --mall-text-secondary: #6e6e73;
  --mall-text-muted: #86868b;
  --mall-border: rgba(0, 0, 0, 0.08);
  --mall-border-strong: rgba(0, 0, 0, 0.12);
  --mall-radius: 14px;
  --mall-radius-lg: 18px;
  --mall-radius-sm: 10px;
  --mall-radius-pill: 980px;
  --mall-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --mall-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --mall-shadow-hover: 0 8px 32px rgba(0, 0, 0, 0.1);
  --mall-blur: saturate(180%) blur(20px);
  --mall-header-h: 52px;
  --mall-home-top-h: 140px;
  --mall-tabbar-h: 56px;
  --mall-sidebar-w: 240px;
  --mall-safe-bottom: env(safe-area-inset-bottom, 0px);
  --mall-safe-top: env(safe-area-inset-top, 0px);
  --mall-content-max: 1200px;
  --mall-transition: 0.22s cubic-bezier(0.25, 0.1, 0.25, 1);
}

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

html {
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display', 'PingFang SC', 'Helvetica Neue', sans-serif;
  background: var(--mall-bg);
  color: var(--mall-text);
  min-height: 100vh;
  line-height: 1.47059;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button {
  color: inherit;
}

/* ========== 全站顶栏（语言 / 主题 / 登录） ========== */
.mall-sidebar,
.mall-topnav {
  display: none !important;
}

.mall-utility-bar {
  position: sticky;
  top: 0;
  z-index: 400;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: var(--mall-blur);
  -webkit-backdrop-filter: var(--mall-blur);
  border-bottom: 1px solid var(--mall-border);
  padding-top: env(safe-area-inset-top, 0px);
}

.mall-utility-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 920px;
  margin: 0 auto;
  padding: 8px 16px;
}

.mall-utility-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #0b2435;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}

.mall-utility-brand span {
  font-size: 16px;
  font-weight: 760;
  letter-spacing: 0.01em;
}

.mall-utility-brand:hover {
  color: var(--mall-accent);
}

.mall-utility-brand:hover span {
  color: inherit;
}

.mall-utility-spacer {
  display: none;
}

.mall-utility-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mall-icon-btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--mall-border);
  border-radius: 10px;
  background: var(--mall-bg-elevated, #fff);
  color: var(--mall-text);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.mall-icon-btn:hover {
  background: var(--mall-bg-hover, rgba(0, 0, 0, 0.04));
}

.mall-utility-auth {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid var(--mall-border);
  background: var(--mall-bg-elevated, #fff);
  color: var(--mall-text);
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
}

.mall-utility-auth:hover {
  background: var(--mall-bg-hover, rgba(0, 0, 0, 0.04));
}

.mall-utility-auth--in {
  color: var(--mall-accent);
  border-color: rgba(0, 113, 227, 0.25);
}

.mall-utility-auth--icon {
  width: 36px;
  padding: 0;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
}

body.has-utility-bar .profile-page .lang-btn {
  display: none;
}

/* ========== New Edisons homepage ========== */
body.mall-home-page {
  background:
    radial-gradient(circle at 82% 8%, rgba(52, 199, 89, 0.10), transparent 26rem),
    linear-gradient(180deg, #fbfcfd 0%, #f5f7fa 56%, #ffffff 100%);
}

.ne-home-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #0b2435;
  text-decoration: none;
}

.ne-home-logo {
  height: 25px;
  width: auto;
  max-width: 32px;
  object-fit: contain;
  display: block;
}

.ne-home-brand span {
  font-size: 16px;
  font-weight: 760;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

@media (max-width: 899px) {
  .ne-home-brand span {
    font-size: 15px;
  }
}

.mall-home-page .mall-ai-journey-banner,
.mall-home-page .mall-ai-page-prompts,
.mall-ai-journey-banner,
.mall-ai-page-prompts,
.mall-ai-fab,
#mallAiFab {
  display: none !important;
}

.mall-home-composer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 350;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--mall-bg, #f5f5f7) 90%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--mall-border);
  transition:
    box-shadow 0.42s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.42s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.42s ease;
}

.mall-home-composer--has-session {
  cursor: pointer;
}

.mall-home-composer--pending .mall-search--composer {
  border: 1px solid rgba(0, 113, 227, 0.14);
}

.mall-home-composer--has-session .mall-search--composer {
  border: 1px solid rgba(0, 113, 227, 0.18);
  box-shadow: 0 2px 12px rgba(0, 113, 227, 0.08);
}

.mall-home-page,
.mall-ai-composer-page {
  padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
}

body.mall-ai-composer-page:not(.mall-home-page) .mall-page {
  padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
}

.mall-search-wrap--bottom {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
}

.mall-search--composer {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.mall-search-dropdown--up {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 8px);
  margin-top: 0;
  z-index: 20;
}

.mall-home-page .mall-back-top {
  bottom: calc(76px + env(safe-area-inset-bottom, 0px) + 8px);
}

@media (max-width: 767px) {
  .mall-mobile-ai-composer {
    z-index: 360;
  }

  body.mall-ai-composer-page .mall-page,
  body.mall-ai-composer-page.mall-home-page {
    padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }

  body.mall-ai-composer-page.has-sticky-buy .mall-page {
    padding-bottom: calc(148px + env(safe-area-inset-bottom, 0px));
  }

  .mall-ai-dock {
    left: 0;
    right: 0;
    width: 100%;
    max-width: none;
  }

  .mall-ai-dock.is-open .mall-ai-panel {
    height: min(78dvh, calc(100dvh - 120px));
    max-height: calc(100dvh - 96px);
  }

  body.mall-ai-dock-open.has-sticky-buy .mall-ai-dock.is-open .mall-ai-panel {
    height: min(72dvh, calc(100dvh - 168px));
    max-height: calc(100dvh - 152px);
  }
}

@media (min-width: 768px) {
  .mall-mobile-ai-composer {
    display: none !important;
  }
}

.mall-tabbar {
  display: none !important;
}

body.has-tabbar {
  padding-bottom: 0;
}

@media (min-width: 1024px) {
  body.has-tabbar {
    padding-bottom: 0;
    padding-left: 0;
  }

  .mall-tabbar { display: none !important; }
}

[data-theme="dark"] .mall-utility-bar {
  background: rgba(28, 28, 30, 0.92);
}

[data-theme="dark"] .mall-home-composer {
  background: color-mix(in srgb, var(--mall-bg, #1c1c1e) 92%, transparent);
}

[data-theme="dark"] .mall-icon-btn,
[data-theme="dark"] .mall-utility-auth {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  color: #f5f5f7;
}

/* legacy topnav hidden */
.mall-topnav-brand,
.mall-topnav-links {
  display: none !important;
}

.profile-panel--orders {
  padding: 0;
}

.profile-orders-title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 600;
}

.profile-orders-wrap {
  padding: 0;
}

.profile-orders-wrap .mall-orders-filters {
  margin-bottom: 12px;
}

.mall-tabbar {
  display: none !important;
}

body.has-tabbar {
  padding-bottom: 0;
}

@media (min-width: 1024px) {
  body.has-tabbar {
    padding-bottom: 0;
    padding-left: 0;
  }

  .mall-sidebar {
    display: none !important;
  }

  .mall-tabbar { display: none !important; }
}

/* legacy sidebar rules removed — see .mall-topnav above */
.mall-sidebar-legacy-hidden {
  display: none;
}

@media (min-width: 1024px) {
  body.has-sidebar-legacy {
    padding-left: 0;
  }
}

@media (min-width: 1024px) {
  body.has-utility-bar.has-tabbar {
    padding-left: 0;
  }
}

/* ========== 页面壳 ========== */
.mall-shell {
  width: 100%;
  min-height: 100vh;
}

.mall-page {
  width: 100%;
  min-height: 100vh;
  background: var(--mall-bg);
}

@media (min-width: 768px) {
  .mall-page {
    max-width: var(--mall-content-max);
    margin: 0 auto;
    padding: 0 24px 48px;
  }
}

body.has-tabbar {
  padding-bottom: calc(var(--mall-tabbar-h) + var(--mall-safe-bottom));
}

body.has-detail-bar {
  padding-bottom: calc(72px + var(--mall-safe-bottom));
}

@media (min-width: 1024px) {
  body.has-detail-bar { padding-bottom: 48px; }
}

/* ========== 顶栏（内页） ========== */
.mall-navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: calc(var(--mall-header-h) + var(--mall-safe-top));
  padding-top: var(--mall-safe-top);
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 52px;
  padding-right: 52px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: var(--mall-blur);
  -webkit-backdrop-filter: var(--mall-blur);
  border-bottom: 1px solid var(--mall-border);
}

@media (min-width: 768px) {
  .mall-navbar {
    margin: 0 -24px;
    border-radius: 0;
  }
}

.mall-navbar .nav-back {
  position: absolute;
  left: max(12px, env(safe-area-inset-left));
  top: 50%;
  transform: translateY(-50%);
  margin-top: calc(var(--mall-safe-top) / 2);
  width: 36px;
  height: 36px;
  border: none;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  font-size: 20px;
  color: var(--mall-accent);
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--mall-transition);
}

.mall-navbar .nav-back:hover { background: rgba(0, 0, 0, 0.08); }

.mall-navbar .nav-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--mall-text);
}

.mall-navbar .nav-right {
  position: absolute;
  right: max(12px, env(safe-area-inset-right));
  top: 50%;
  transform: translateY(-50%);
  margin-top: calc(var(--mall-safe-top) / 2);
}

.mall-navbar.theme {
  background: rgba(255, 255, 255, 0.85);
  border-bottom: 1px solid var(--mall-border);
}

.mall-navbar.theme .nav-back,
.mall-navbar.theme .nav-title { color: var(--mall-text); }

/* ========== 首页顶栏 ========== */
.mall-home-top {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: var(--mall-blur);
  -webkit-backdrop-filter: var(--mall-blur);
  border-bottom: 1px solid var(--mall-border);
  padding: calc(12px + var(--mall-safe-top)) 16px 16px;
  position: sticky;
  top: 0;
  z-index: 90;
}

@media (min-width: 768px) {
  .mall-home-top {
    margin: 0 -24px 0;
    padding: calc(20px + var(--mall-safe-top)) 0 20px;
    border-radius: 0 0 var(--mall-radius-lg) var(--mall-radius-lg);
  }

  .mall-home-top .top-inner {
    max-width: var(--mall-content-max);
    margin: 0 auto;
    padding: 0 24px;
  }
}

.mall-home-top .top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 12px;
}

.mall-home-top .brand {
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--mall-text);
}

.mall-home-top .top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.mall-btn-ghost {
  font-size: 13px;
  padding: 6px 14px;
  border-radius: var(--mall-radius-pill);
  border: 1px solid var(--mall-border-strong);
  background: var(--mall-bg-elevated);
  color: var(--mall-text);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--mall-transition), border-color var(--mall-transition);
}

.mall-btn-ghost:hover {
  background: var(--mall-bg-hover);
  border-color: var(--mall-border-strong);
}

.mall-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--mall-border);
  border-radius: var(--mall-radius-pill);
  padding: 0 6px 0 16px;
  height: 44px;
  max-width: 100%;
  transition: border-color var(--mall-transition), box-shadow var(--mall-transition);
}

.mall-search:focus-within {
  border-color: var(--mall-accent);
  box-shadow: 0 0 0 4px var(--mall-accent-soft);
  background: #fff;
}

.mall-search .search-icon { color: var(--mall-text-muted); font-size: 15px; flex-shrink: 0; }

.mall-search input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 15px;
  background: transparent;
  min-width: 0;
  color: var(--mall-text);
}

.mall-search .search-btn {
  flex-shrink: 0;
  border: none;
  background: var(--mall-accent);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: var(--mall-radius-pill);
  cursor: pointer;
  transition: background var(--mall-transition), transform 0.15s ease;
}

.mall-search .search-btn:hover { background: var(--mall-accent-hover); }
.mall-search .search-btn:active { transform: scale(0.97); }

.mall-search--composer .search-btn--send {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.mall-search--composer .search-btn--send .search-send-icon {
  width: 18px;
  height: 18px;
  display: block;
  margin-left: 1px;
}

.mall-search-wrap {
  position: relative;
}

.mall-search-history {
  margin-top: 10px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--mall-border);
  border-radius: var(--mall-radius-md);
  box-shadow: var(--mall-shadow-sm);
}

.mall-search-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--mall-text-muted);
}

.mall-search-history-clear {
  border: none;
  background: none;
  color: var(--mall-accent);
  font-size: 13px;
  cursor: pointer;
  padding: 4px 0;
}

.mall-search-history-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mall-search-tag {
  border: 1px solid var(--mall-border);
  background: rgba(0, 0, 0, 0.03);
  color: var(--mall-text);
  font-size: 13px;
  padding: 6px 12px;
  border-radius: var(--mall-radius-pill);
  cursor: pointer;
  transition: background var(--mall-transition), border-color var(--mall-transition);
}

.mall-search-tag:hover {
  background: var(--mall-accent-soft);
  border-color: var(--mall-accent);
}

.mall-search-tag-hot {
  border-color: rgba(0, 113, 227, 0.25);
  background: var(--mall-accent-soft);
}

.mall-search-tag-ai {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-align: left;
  line-height: 1.35;
  border-color: rgba(0, 113, 227, 0.24);
  background: rgba(0, 113, 227, 0.07);
}

.mall-search-tag-ai span,
.goods-ai-mark {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 18px;
  padding: 0 5px;
  border-radius: 5px;
  background: var(--mall-accent);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.mall-search-dropdown {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mall-search-dropdown .mall-search-history {
  margin-top: 0;
}

.mall-search-summary {
  font-size: 14px;
  color: var(--mall-text-muted);
  margin: 0 0 12px;
  padding: 0 4px;
}

.mall-empty-search {
  text-align: center;
  padding: 48px 24px 32px;
  color: var(--mall-text-muted);
}

.mall-empty-search .empty-icon {
  font-size: 48px;
  line-height: 1;
  margin-bottom: 12px;
  opacity: 0.45;
}

.mall-empty-search p {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--mall-text);
  font-weight: 500;
}

.mall-empty-search .empty-hint {
  font-size: 14px;
  color: var(--mall-text-muted);
  margin-bottom: 20px;
}

.mall-empty-search .mall-btn-ghost {
  display: inline-block;
}

.mall-empty-hot-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--mall-text-muted);
  margin: 16px 0 10px;
}

.mall-empty-hot {
  margin-bottom: 20px;
}

.mall-empty-hot.mall-empty-hot-tags {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.mall-empty-hot .mall-search-history-head {
  display: none;
}

.mall-empty-hot .mall-search-history-tags {
  justify-content: center;
  padding: 0 8px;
}

.goods-name .search-hit,
.goods-name mark.search-hit {
  background: #fff3cd;
  color: inherit;
  padding: 0 2px;
  border-radius: 3px;
  font-weight: 600;
}

/* ========== Banner ========== */
.mall-banner {
  margin: 16px 16px 20px;
  border-radius: var(--mall-radius-lg);
  overflow: hidden;
  background: linear-gradient(145deg, #dceefb 0%, #f0e8f4 42%, #d8f0e4 100%);
  border: 1px solid var(--mall-border);
  box-shadow: var(--mall-shadow-sm);
}

@media (min-width: 768px) {
  .mall-banner {
    margin: 24px 0 28px;
  }
}

.mall-banner-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 24px 20px 28px;
  align-items: center;
}

@media (min-width: 900px) {
  .mall-banner-inner {
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
    gap: 28px;
    padding: 32px 36px 36px;
    text-align: left;
  }
}

.mall-banner-copy {
  text-align: center;
}

@media (min-width: 900px) {
  .mall-banner-copy {
    text-align: left;
  }
}

.mall-banner-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mall-accent);
  margin-bottom: 8px;
}

.mall-banner h2 {
  font-size: clamp(22px, 3.2vw, 34px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--mall-text);
  margin-bottom: 10px;
  line-height: 1.15;
}

.mall-banner h1 {
  font-size: clamp(30px, 5vw, 56px);
  font-weight: 750;
  letter-spacing: -0.035em;
  color: var(--mall-text);
  margin: 0 0 14px;
  line-height: 1.06;
  text-wrap: balance;
}

.mall-banner-desc {
  font-size: 15px;
  color: var(--mall-text);
  line-height: 1.5;
  max-width: 520px;
  margin: 0 auto 6px;
}

.mall-banner-note {
  font-size: 13px;
  color: var(--mall-text-secondary);
  max-width: 520px;
  margin: 0 auto;
}

.home-estimate-form {
  max-width: 720px;
  margin: 18px auto 0;
  padding: 14px;
  border: 1px solid rgba(16, 35, 31, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 18px rgba(16, 35, 31, 0.08);
}

.home-estimate-form label {
  display: block;
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--mall-text);
}

.home-estimate-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.home-estimate-row input,
.home-estimate-row select {
  min-height: 44px;
  width: 100%;
  border: 1px solid var(--mall-border);
  border-radius: 10px;
  padding: 0 12px;
  color: var(--mall-text);
  background: var(--mall-bg-elevated);
  font: inherit;
}

.home-estimate-row button {
  min-height: 44px;
}

.home-estimate-help {
  margin: 10px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--mall-text-secondary);
}

.home-ai-recommendation {
  max-width: 720px;
  margin: 12px auto 0;
  padding: 14px;
  border: 1px solid rgba(0, 113, 227, 0.2);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(239, 248, 255, 0.94), rgba(255, 255, 255, 0.9));
  color: var(--mall-text);
}

.home-ai-rec-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.home-ai-rec-mark {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--mall-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.home-ai-rec-head strong {
  display: block;
  font-size: 15px;
  line-height: 1.25;
}

.home-ai-rec-head p {
  margin: 4px 0 0;
  color: var(--mall-text-secondary);
  font-size: 13px;
  line-height: 1.45;
}

.home-ai-rec-reasons {
  display: grid;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.home-ai-rec-reasons li {
  position: relative;
  padding-left: 16px;
  color: var(--mall-text);
  font-size: 13px;
  line-height: 1.42;
}

.home-ai-rec-reasons li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mall-mint);
}

.home-ai-rec-guardrails {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 0;
}

.home-ai-rec-guardrails span {
  padding: 5px 8px;
  border: 1px solid rgba(0, 113, 227, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #24506a;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
}

.home-ai-rec-meta {
  margin: 10px 0 0;
  color: var(--mall-text-secondary);
  font-size: 12px;
  line-height: 1.45;
}

.home-ai-rec-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 0;
}

.home-ai-rec-actions .btn-inline {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mall-ai-panel[hidden],
.mall-ai-bubble[hidden] {
  display: none;
}

@media (min-width: 760px) {
  .home-estimate-form {
    margin-left: 0;
    margin-right: 0;
  }

  .home-ai-recommendation {
    margin-left: 0;
    margin-right: 0;
  }

  .home-estimate-row {
    grid-template-columns: minmax(150px, 0.9fr) minmax(190px, 1fr) auto;
    align-items: center;
  }
}

@media (min-width: 900px) {
  .mall-banner-desc,
  .mall-banner-note {
    margin-left: 0;
    margin-right: 0;
  }
}

.mall-banner-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 16px auto 0;
  max-width: 520px;
}

@media (min-width: 900px) {
  .mall-banner-stats {
    justify-content: flex-start;
    margin-left: 0;
  }
}

.mall-banner-visual {
  position: relative;
  min-height: 200px;
  max-width: 420px;
  margin: 0 auto;
  width: 100%;
}

@media (min-width: 900px) {
  .mall-banner-visual {
    min-height: 240px;
    max-width: none;
    margin: 0;
  }
}

.mall-banner-photo {
  position: absolute;
  border-radius: var(--mall-radius);
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: var(--mall-shadow);
  background: var(--mall-bg-elevated);
}

.mall-banner-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mall-banner-photo--main {
  width: 58%;
  aspect-ratio: 1;
  left: 8%;
  top: 8%;
  z-index: 3;
}

.mall-banner-photo--a {
  width: 38%;
  aspect-ratio: 1;
  right: 4%;
  top: 0;
  z-index: 2;
}

.mall-banner-photo--b {
  width: 36%;
  aspect-ratio: 1;
  right: 12%;
  bottom: 0;
  z-index: 1;
}

.mall-stat-pill {
  display: inline-block;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--mall-text-secondary);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--mall-border, rgba(0, 0, 0, 0.06));
  border-radius: 999px;
  backdrop-filter: blur(8px);
}

.mall-banner-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  font-size: 14px;
  text-decoration: none;
  border-radius: var(--mall-radius-sm, 8px);
}

.brand-trust {
  padding: 12px 16px 4px;
}

.brand-trust-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 1200px;
  margin: 0 auto;
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 6px;
  background: var(--mall-bg-elevated);
  border: 1px solid var(--mall-border);
  color: var(--mall-text);
}

.brand-badge--muted {
  font-weight: 500;
  color: var(--mall-text-secondary);
}

.service-process-section {
  padding-top: 10px;
}

.service-process-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.service-process-list li {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 14px 14px 14px 44px;
  min-height: 72px;
  border: 1px solid var(--mall-border);
  border-radius: 12px;
  background: var(--mall-bg-elevated);
}

.service-process-list li::before {
  content: counter(list-item);
  position: absolute;
  left: 14px;
  top: 14px;
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #0f6b4f;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.service-process-list strong {
  font-size: 14px;
  color: var(--mall-text);
}

.service-process-list span {
  font-size: 13px;
  line-height: 1.45;
  color: var(--mall-text-secondary);
}

@media (min-width: 900px) {
  .service-process-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.brand-section-desc {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--mall-text-secondary);
  line-height: 1.5;
}

.brand-biz-section {
  padding-top: 8px;
  padding-bottom: 4px;
}

.home-ai-guide-section {
  padding-top: 12px;
  padding-bottom: 8px;
}

.home-ai-guide-card {
  display: block;
  padding: 14px 16px;
  border-radius: var(--mall-radius);
  background: var(--mall-bg-elevated);
  border: 1px solid var(--mall-border);
  box-shadow: var(--mall-shadow-sm);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.home-ai-guide-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--mall-shadow-hover);
}

.home-ai-guide-head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
}

.home-ai-guide-text {
  min-width: 0;
  flex: 1;
}

.home-ai-guide-mark {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--mall-accent, #0071e3);
  padding: 4px 7px;
  border-radius: 6px;
  line-height: 1.2;
  margin-top: 2px;
}

.home-ai-guide-title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--mall-text);
  line-height: 1.3;
}

.home-ai-guide-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--mall-text-secondary);
}

.home-ai-guide-cta {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--mall-accent, #0071e3);
  line-height: 1.2;
}

.home-ai-guide-card:hover .home-ai-guide-cta {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.brand-biz-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 12px;
}

body.mall-home-page .brand-biz-grid {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
  .brand-biz-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 960px) {
  .brand-biz-grid { grid-template-columns: repeat(4, 1fr); }
  body.mall-home-page .brand-biz-grid { grid-template-columns: repeat(2, 1fr); }
}

.mall-components-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.mall-components-table th,
.mall-components-table td {
  border-bottom: 1px solid var(--mall-border);
  padding: 10px 8px;
  text-align: left;
}

.mall-prequote-components {
  margin-top: 16px;
}

.home-ai-rec-panel {
  border: 1px solid var(--mall-border);
  border-radius: var(--mall-radius);
  padding: 16px;
}

.brand-biz-card {
  display: flex;
  flex-direction: column;
  background: var(--mall-bg-elevated);
  border: 1px solid var(--mall-border);
  border-radius: var(--mall-radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--mall-shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
  width: 100%;
  text-align: left;
  font: inherit;
  padding: 0;
  appearance: none;
}

.brand-biz-section--top {
  margin-top: 8px;
}

.brand-biz-card:hover {
  box-shadow: var(--mall-shadow-hover);
  transform: translateY(-2px);
}

.brand-biz-img {
  aspect-ratio: 16/10;
  background: #f0f0f2;
  overflow: hidden;
}

.brand-biz-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.brand-biz-body {
  padding: 12px 14px 14px;
}

.brand-biz-body h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-biz-body p {
  margin: 0 0 10px;
  font-size: 13px;
  color: var(--mall-text-secondary);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.brand-biz-cta {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--mall-accent, #0071e3);
}

.brand-biz-meta {
  display: block;
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: #0f6b4f;
}

.brand-reviews-grid {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

@media (min-width: 640px) {
  .brand-reviews-grid { grid-template-columns: 1fr 1fr; }
}

.brand-review-card {
  margin: 0;
  padding: 14px 16px;
  background: var(--mall-bg-elevated);
  border: 1px solid var(--mall-border);
  border-radius: var(--mall-radius);
  font-size: 14px;
  line-height: 1.5;
}

.brand-review-card footer {
  margin-top: 8px;
  font-size: 12px;
  color: var(--mall-text-secondary);
}

.brand-cta-bar {
  margin: 8px 16px 20px;
  padding: 16px;
  background: linear-gradient(135deg, #1d1d1f 0%, #2c2c2e 100%);
  color: #fff;
  border-radius: var(--mall-radius);
}

@media (min-width: 768px) {
  .brand-cta-bar { margin-left: 0; margin-right: 0; }
}

.brand-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  max-width: 1200px;
  margin: 0 auto;
}

.brand-cta-inner p {
  margin: 4px 0 0;
  font-size: 13px;
  opacity: 0.85;
}

.brand-cta-actions {
  display: flex;
  justify-content: center;
  width: 100%;
}

.brand-cta-actions .btn-primary {
  color: #1d1d1f;
  background: #fff;
}

.brand-cta-actions .mall-btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

/* ========== T-016 业务落地页 ========== */
.landing-page {
  padding-bottom: 24px;
}

.landing-hero {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  margin: 0 0 8px;
  background: linear-gradient(160deg, #f5f5f7 0%, #e8e8ed 100%);
}

@media (min-width: 768px) {
  .landing-hero {
    flex-direction: row;
    align-items: center;
    padding: 24px 0;
    margin: 0 0 16px;
  }
}

.landing-hero-copy {
  flex: 1;
}

.landing-eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mall-accent, #0071e3);
}

.landing-hero h1 {
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.2;
}

.landing-lead {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--mall-text-secondary);
  line-height: 1.5;
}

.landing-price-hint {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--mall-text-secondary);
}

.landing-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.landing-hero-visual {
  flex: 0 0 auto;
  border-radius: var(--mall-radius);
  overflow: hidden;
  max-height: 220px;
}

.landing-hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.landing-hero--heat .landing-hero-visual {
  background: linear-gradient(135deg, #e8f4f8 0%, #f0f7fa 100%);
}

@media (min-width: 768px) {
  .landing-hero-visual {
    width: 42%;
    max-height: 280px;
  }
}

.landing-section {
  padding: 16px;
  margin: 0 0 4px;
}

@media (min-width: 768px) {
  .landing-section { padding: 16px 0; }
}

.landing-section h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.landing-list,
.landing-steps {
  margin: 0;
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--mall-text-secondary);
}

.landing-body {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--mall-text-secondary);
}

.landing-cards-row {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}

@media (min-width: 540px) {
  .landing-cards-row { grid-template-columns: repeat(3, 1fr); }
}

.landing-mini-card {
  padding: 12px;
  background: var(--mall-bg-elevated);
  border: 1px solid var(--mall-border);
  border-radius: var(--mall-radius-sm, 8px);
  font-size: 13px;
}

.landing-mini-card p {
  margin: 4px 0 0;
  color: var(--mall-text-secondary);
}

.landing-faq {
  margin-bottom: 8px;
  padding: 10px 12px;
  background: var(--mall-bg-elevated);
  border: 1px solid var(--mall-border);
  border-radius: 8px;
  font-size: 14px;
}

.landing-faq summary {
  cursor: pointer;
  font-weight: 600;
}

.landing-faq p {
  margin: 8px 0 0;
  color: var(--mall-text-secondary);
  line-height: 1.5;
}

.landing-case {
  margin: 0;
  padding: 14px;
  background: var(--mall-bg-elevated);
  border-left: 3px solid var(--mall-accent, #0071e3);
  border-radius: 0 8px 8px 0;
  font-size: 14px;
}

.landing-case footer {
  margin-top: 8px;
  font-size: 12px;
  color: var(--mall-text-secondary);
}

.landing-disclaimer {
  margin: 12px 16px;
  padding: 12px 14px;
  background: #fff8e6;
  border: 1px solid #ffe0a3;
  border-radius: 8px;
  font-size: 13px;
  color: #8a6d3b;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .landing-disclaimer { margin-left: 0; margin-right: 0; }
}

.landing-footer-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px;
  margin: 8px 16px 0;
  background: var(--mall-bg-elevated);
  border: 1px solid var(--mall-border);
  border-radius: var(--mall-radius);
}

@media (min-width: 768px) {
  .landing-footer-cta { margin-left: 0; margin-right: 0; }
}

.contact-page .contact-info-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

@media (min-width: 640px) {
  .contact-page .contact-info-grid { grid-template-columns: repeat(3, 1fr); }
}

.contact-info-card {
  padding: 14px;
  background: var(--mall-bg-elevated);
  border: 1px solid var(--mall-border);
  border-radius: var(--mall-radius);
  font-size: 14px;
}

.contact-info-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--mall-text-secondary);
}

.contact-map-wrap {
  margin-bottom: 16px;
  border-radius: var(--mall-radius);
  overflow: hidden;
  border: 1px solid var(--mall-border);
}

.contact-map-wrap iframe {
  display: block;
  width: 100%;
  height: 220px;
  border: 0;
}

.contact-quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.contact-form .contact-field {
  display: block;
  margin-bottom: 12px;
}

.contact-form .contact-field span {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
}

.contact-privacy {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 0;
  font-size: 13px;
  line-height: 1.5;
}

.brand-cred-grid {
  display: grid;
  gap: 12px;
}

@media (min-width: 640px) {
  .brand-cred-grid { grid-template-columns: repeat(2, 1fr); }
}

.brand-cred-card {
  padding: 14px;
  background: var(--mall-bg-elevated);
  border: 1px solid var(--mall-border);
  border-radius: var(--mall-radius);
}

.brand-cred-card img {
  width: 100%;
  max-height: 120px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 8px;
}

.brand-cred-issuer {
  font-size: 12px;
  color: var(--mall-text-secondary);
  margin: 4px 0;
}

.brand-city-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.brand-city-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px;
  background: var(--mall-bg-elevated);
  border: 1px solid var(--mall-border);
  border-radius: var(--mall-radius);
  text-decoration: none;
  color: inherit;
}

.brand-city-card span {
  font-size: 12px;
  color: var(--mall-text-secondary);
}

.area-check-form {
  max-width: 420px;
  margin-top: 12px;
}

.area-check-result {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 14px;
}

.area-check-ok {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
}

.area-check-warn {
  background: #fff8e6;
  border: 1px solid #ffe0a3;
}

.ai-search-form {
  margin-bottom: 16px;
}

.ai-search-card {
  padding: 16px;
  background: var(--mall-bg-elevated);
  border: 1px solid var(--mall-border);
  border-radius: var(--mall-radius);
  margin-bottom: 16px;
}

.ai-search-intent {
  display: inline-block;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  margin-bottom: 8px;
}

.ai-search-summary {
  font-size: 15px;
  line-height: 1.6;
  margin: 0 0 12px;
}

.ai-search-disclaimer {
  font-size: 12px;
  color: var(--mall-text-secondary);
  margin: 0 0 12px;
}

.ai-search-cta {
  display: inline-block;
  margin-top: 4px;
}

.ai-search-section {
  margin-top: 20px;
}

.ai-search-links {
  display: grid;
  gap: 8px;
}

.ai-search-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--mall-border);
  border-radius: var(--mall-radius);
  text-decoration: none;
  color: inherit;
  background: var(--mall-bg-elevated);
}

.ai-search-link span {
  font-size: 12px;
  color: var(--mall-text-secondary);
}

.subsidy-progress {
  display: flex;
  gap: 8px;
  margin: 12px 0;
  flex-wrap: wrap;
}

.subsidy-progress-step {
  flex: 1;
  min-width: 90px;
  padding: 8px 10px;
  font-size: 12px;
  text-align: center;
  border-radius: 8px;
  background: var(--mall-bg-elevated);
  border: 1px solid var(--mall-border);
  color: var(--mall-text-secondary);
}

.subsidy-progress-step.done {
  border-color: #a7f3d0;
  background: #ecfdf5;
  color: #065f46;
}

.subsidy-progress-step.current {
  border-color: #93c5fd;
  font-weight: 600;
}

.source-cell {
  font-size: 12px;
  color: var(--mall-text-secondary);
}

.mall-wa-fab {
  position: fixed;
  right: 16px;
  bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  z-index: 900;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  text-decoration: none;
}

.mall-wa-fab:hover {
  filter: brightness(1.05);
}

body.has-detail-bar .mall-wa-fab {
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}

.ai-search-foot {
  margin-top: 20px;
  font-size: 14px;
  text-align: center;
}

.mall-install-guide {
  white-space: pre-wrap;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  color: var(--mall-text-secondary);
}

.mall-detail-tagline {
  font-size: 15px;
  color: var(--mall-text-secondary);
  margin: 0 0 12px;
}

.mall-faq-block {
  margin-top: 16px;
}

/* ========== 区块 / Tab ========== */
.mall-section {
  padding: 0 16px 20px;
}

@media (min-width: 768px) {
  .mall-section { padding: 0 0 28px; }
}

.mall-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 4px 14px;
}

body.mall-home-page .mall-section-head {
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

body.mall-home-page .mall-section-head .brand-section-desc {
  margin: 0;
}

.mall-section-link {
  font-size: 14px;
  color: var(--mall-accent, #0071e3);
  text-decoration: none;
  flex-shrink: 0;
}

.mall-featured-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.mall-featured-scroll::-webkit-scrollbar { display: none; }

.mall-featured-card {
  flex: 0 0 168px;
  display: flex;
  flex-direction: column;
  background: var(--mall-bg-elevated);
  border-radius: var(--mall-radius);
  border: 1px solid var(--mall-border);
  box-shadow: var(--mall-shadow-sm);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.mall-featured-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--mall-shadow-hover);
}

.mall-featured-pic {
  aspect-ratio: 1;
  background: #f5f5f7;
  overflow: hidden;
}

.mall-featured-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mall-featured-info {
  padding: 10px 12px 12px;
}

.mall-featured-name {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mall-featured-meta {
  font-size: 12px;
  color: var(--mall-text-secondary);
  margin-top: 4px;
}

.mall-highlight-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 16px;
}

.mall-highlight-tag {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: var(--mall-radius-pill);
  background: rgba(0, 113, 227, 0.1);
  color: #0071e3;
  font-weight: 500;
}

.mall-spec-block {
  margin: 16px 0;
}

.mall-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.mall-spec-table th,
.mall-spec-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--mall-border);
  text-align: left;
}

.mall-spec-table th {
  width: 38%;
  color: var(--mall-text-secondary);
  font-weight: 500;
  background: var(--mall-bg-subtle, #f5f5f7);
}

.mall-service-note {
  font-size: 14px;
  color: var(--mall-text-secondary);
  line-height: 1.5;
  padding: 12px 14px;
  background: var(--mall-bg-subtle, #f5f5f7);
  border-radius: var(--mall-radius);
  margin: 12px 0 0;
}

.mall-section-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--mall-text);
  margin: 0 4px 14px;
}

.mall-section-head .mall-section-title {
  margin: 0;
}

@media (min-width: 768px) {
  .mall-section-title { font-size: 24px; margin-bottom: 16px; }
}

.mall-tabs,
.category-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.mall-tabs::-webkit-scrollbar,
.category-tabs::-webkit-scrollbar { display: none; }

.mall-tabs button,
.mall-tabs .cat-tab,
.category-tabs button {
  flex-shrink: 0;
  padding: 8px 18px;
  border-radius: var(--mall-radius-pill);
  border: 1px solid var(--mall-border);
  background: var(--mall-bg-elevated);
  font-size: 14px;
  color: var(--mall-text-secondary);
  cursor: pointer;
  transition: all var(--mall-transition);
}

.mall-tabs button:hover,
.category-tabs button:hover {
  border-color: var(--mall-border-strong);
  color: var(--mall-text);
}

.mall-tabs button.active,
.mall-tabs .cat-tab.active,
.category-tabs button.active {
  background: var(--mall-text);
  color: #fff;
  border-color: var(--mall-text);
  font-weight: 500;
}

/* ========== 商品网格 ========== */
.goods-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 0 0 8px;
}

@media (min-width: 600px) {
  .goods-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}

@media (min-width: 900px) {
  .goods-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}

.goods-item {
  display: flex;
  flex-direction: column;
  background: var(--mall-bg-elevated);
  border-radius: var(--mall-radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--mall-border);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: transform var(--mall-transition), box-shadow var(--mall-transition);
}

.goods-item .goods-pic {
  aspect-ratio: 1;
  background: linear-gradient(180deg, #f8f8fa 0%, #efeff2 100%);
}

.goods-item .goods-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (hover: hover) {
  .goods-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--mall-shadow-hover);
  }
}

.goods-pic {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: linear-gradient(160deg, #f0f4f8 0%, #e8f2ec 100%);
  overflow: hidden;
}

.goods-pic img { width: 100%; height: 100%; object-fit: cover; }

.goods-pic .pic-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(32px, 8vw, 48px);
  opacity: 0.4;
}

.goods-info { padding: 12px 14px 14px; flex: 1; display: flex; flex-direction: column; }

.goods-name {
  font-size: 14px;
  font-weight: 500;
  color: var(--mall-text);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

@media (min-width: 768px) {
  .goods-name { font-size: 15px; }
}

.goods-price {
  margin-top: 10px;
  color: var(--mall-price);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.02em;
}

.goods-price .num { font-size: 17px; }

.goods-meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--mall-text-muted);
}

/* ========== 卡片通用 ========== */
.product-card,
.order-card {
  background: var(--mall-bg-elevated);
  border-radius: var(--mall-radius);
  border: 1px solid var(--mall-border);
  box-shadow: var(--mall-shadow-sm);
  display: block;
  text-decoration: none;
  color: inherit;
  transition: box-shadow var(--mall-transition);
}

.product-card {
  padding: 16px 18px;
  margin-bottom: 12px;
}

@media (hover: hover) {
  .product-card:hover,
  .order-card:hover { box-shadow: var(--mall-shadow); }
}

.product-card h3 { font-size: 16px; font-weight: 500; margin-bottom: 8px; }
.product-card .price { color: var(--mall-text); font-size: 17px; font-weight: 600; }
.product-card .desc { font-size: 14px; color: var(--mall-text-secondary); margin-top: 6px; line-height: 1.5; }

.product-card .tag {
  display: inline-block;
  font-size: 11px;
  background: var(--mall-accent-soft);
  color: var(--mall-accent);
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: 6px;
  font-weight: 500;
}

.order-card { margin-bottom: 12px; overflow: hidden; }

.order-card-hd {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--mall-border);
  font-size: 13px;
  color: var(--mall-text-muted);
}

.order-card-hd-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}

.order-card-no {
  font-size: 14px;
  font-weight: 500;
  color: var(--mall-text);
  word-break: break-all;
}

.order-card-date {
  font-size: 12px;
  color: var(--mall-text-secondary);
}

.order-card-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 8px 18px 4px;
  border-bottom: 1px solid var(--mall-border);
}

.order-card-tags:empty {
  display: none;
  padding: 0;
}

.order-card-bd {
  padding: 14px 18px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.order-card-thumb {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(160deg, #f0f4f8 0%, #e8f2ec 100%);
}

.order-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.order-card-thumb .pic-placeholder {
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  opacity: 0.4;
}

.order-card-body { flex: 1; min-width: 0; }

.order-card-bd .name { font-size: 16px; font-weight: 500; margin-bottom: 6px; }
.order-card-bd .price { font-size: 17px; font-weight: 600; color: var(--mall-text); }

.confirm-product--compact .confirm-product-pic {
  width: 72px;
  height: 72px;
}

.confirm-product--compact .confirm-product-name {
  font-size: 16px;
}

.payment-order-summary {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--mall-border);
}

.order-status { font-size: 13px; color: var(--mall-accent); font-weight: 500; }
.order-status.paid { color: var(--mall-mint); }
.order-status.cancelled { color: var(--mall-text-muted); }

.order-status.refunded { color: #ff9500; }

/* ========== 移动端底栏 ========== */
.mall-tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(var(--mall-tabbar-h) + var(--mall-safe-bottom));
  padding-bottom: var(--mall-safe-bottom);
  display: flex;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: var(--mall-blur);
  -webkit-backdrop-filter: var(--mall-blur);
  border-top: 1px solid var(--mall-border);
  z-index: 200;
}

.mall-tabbar a {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--mall-text-muted);
  font-size: 10px;
  font-weight: 500;
  gap: 3px;
  padding-top: 6px;
  transition: color var(--mall-transition);
}

.mall-tabbar a.active { color: var(--mall-accent); }
.mall-tabbar .tab-icon { font-size: 22px; line-height: 1; opacity: 0.85; }
.mall-tabbar a.active .tab-icon { opacity: 1; }

/* ========== 个人中心 ========== */
.profile-page .mall-user-header {
  background: linear-gradient(180deg, #e8f4fc 0%, var(--mall-bg) 100%);
  padding: calc(12px + var(--mall-safe-top)) 16px 14px;
  border-bottom: none;
  position: relative;
}

@media (min-width: 768px) {
  .profile-page .mall-user-header {
    padding: calc(16px + var(--mall-safe-top)) 0 16px;
    max-width: var(--mall-content-max);
    margin: 0 auto;
  }
}

.profile-page .mall-user-header .user-row {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: var(--mall-content-max);
  margin: 0 auto;
  padding: 0 12px;
}

@media (min-width: 768px) {
  .profile-page .mall-user-header .user-row { padding: 0 20px; }
}

.mall-user-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--mall-bg-elevated);
  border: 1px solid var(--mall-border);
  box-shadow: var(--mall-shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .mall-user-avatar { width: 56px; height: 56px; font-size: 26px; }
}

.mall-user-header .user-name {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.mall-user-header .user-sub {
  font-size: 13px;
  color: var(--mall-text-secondary);
  margin-top: 2px;
}

/* 个人中心主体：菜单 + 表单，禁止负边距重叠 */
.profile-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 12px calc(20px + var(--mall-safe-bottom));
  max-width: var(--mall-content-max);
  margin: 0 auto;
  width: 100%;
}

.profile-menu-inset {
  padding: 10px 12px;
  border-bottom: 1px solid var(--mall-border);
  background: rgba(0, 0, 0, 0.02);
}

.profile-coupon-inset {
  font-size: 12px;
  line-height: 1.45;
}

.profile-coupon-inset a {
  color: var(--mall-accent);
  text-decoration: none;
  font-weight: 500;
}

@media (min-width: 768px) {
  .profile-body {
    display: grid;
    grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
    grid-template-areas: "menu main";
    gap: 16px 20px;
    align-items: start;
    padding: 0 20px 32px;
  }

  .profile-menu-panel { grid-area: menu; }
  .profile-main { grid-area: main; }
}

.mall-menu-panel {
  margin: 0;
  background: var(--mall-bg-elevated);
  border-radius: var(--mall-radius-lg);
  border: 1px solid var(--mall-border);
  box-shadow: var(--mall-shadow-sm);
  overflow: hidden;
  width: 100%;
  min-width: 0;
}

@media (min-width: 768px) {
  .profile-menu-panel {
    position: sticky;
    top: calc(var(--mall-header-h, 52px) + 12px);
    max-height: calc(100vh - var(--mall-header-h, 52px) - 32px);
    overflow-y: auto;
    scrollbar-width: thin;
  }
}

.profile-main {
  width: 100%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-main .form-card,
.profile-main .profile-section-card {
  margin: 0;
  padding: 16px;
}

@media (min-width: 768px) {
  .profile-main .form-card,
  .profile-main .profile-section-card {
    padding: 18px 20px;
  }
}

.profile-main .form-card h3,
.profile-main .profile-section-card h3 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.profile-panel .form-group {
  margin-bottom: 14px;
  max-width: 480px;
}

.profile-panel .form-group input,
.profile-panel .form-group textarea {
  padding: 10px 12px;
  font-size: 15px;
}

.profile-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 480px;
  margin-top: 4px;
}

.profile-panel-actions .btn-primary {
  flex: 1 1 160px;
  width: auto;
  margin-top: 0;
}

.profile-panel .btn-primary.btn-plain {
  width: auto;
  max-width: 480px;
  margin-top: 0;
}

.profile-form-card .btn-primary,
.profile-form-card .btn-plain {
  width: 100%;
  margin-top: 10px;
}

.profile-form-card .btn-primary + .btn-plain,
.profile-form-card .btn-plain + .btn-primary {
  margin-top: 10px;
}

.profile-save-msg {
  margin-top: 8px;
  font-size: 14px;
  color: var(--mall-mint);
}

.profile-address-form {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--mall-border);
}

.profile-actions-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px 20px;
}

.profile-actions-card .btn-plain {
  width: 100%;
  margin: 0;
}

.profile-logout-btn {
  margin-top: 4px;
}

/* 桌面端有侧栏时个人中心仍占满内容区 */
@media (min-width: 1024px) {
  .profile-page {
    width: 100%;
  }
}

.mall-menu-item {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 11px 14px;
  text-decoration: none;
  color: var(--mall-text);
  border-bottom: 1px solid var(--mall-border);
  font-size: 14px;
  transition: background var(--mall-transition);
  width: 100%;
  box-sizing: border-box;
}

.mall-menu-item[hidden],
#menuInstallerSection[hidden] {
  display: none !important;
}

.mall-menu-item .menu-label {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.mall-menu-item .menu-badge {
  margin-left: auto;
  margin-right: 0;
  flex-shrink: 0;
  min-width: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--mall-theme);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
  line-height: 18px;
}

.mall-menu-item .menu-badge[hidden] {
  display: none !important;
}

.mall-menu-item .menu-badge + .menu-arrow {
  margin-left: 6px;
}

.mall-menu-item .menu-arrow {
  margin-left: auto;
  flex-shrink: 0;
  color: var(--mall-text-muted);
  font-size: 18px;
  font-weight: 300;
  line-height: 1;
}

.mall-menu-item--panel .menu-arrow {
  display: none;
}

.mall-menu-item:last-child { border-bottom: none; }

@media (hover: hover) {
  .mall-menu-item:hover { background: var(--mall-bg-hover, rgba(0, 0, 0, 0.02)); }
  .mall-menu-item--panel:hover { background: var(--mall-bg-hover, rgba(0, 0, 0, 0.02)); }
  .mall-menu-item--panel.active:hover { background: var(--mall-accent-soft); }
}

.mall-menu-item .menu-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--mall-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  font-size: 16px;
  flex-shrink: 0;
}

.mall-menu-section-title {
  padding: 10px 14px 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mall-text-muted);
  background: rgba(0, 0, 0, 0.02);
  border-bottom: 1px solid var(--mall-border);
}

.mall-menu-item--panel {
  width: 100%;
  border: none;
  background: none;
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.mall-menu-item--panel.active {
  background: var(--mall-accent-soft);
  color: var(--mall-accent);
  font-weight: 500;
}

.mall-menu-item--panel.active .menu-icon {
  background: rgba(0, 113, 227, 0.18);
}

.profile-main .profile-panel[hidden] {
  display: none !important;
}

.profile-panel-hint {
  text-align: center;
  padding: 48px 24px;
  color: var(--mall-text-secondary);
  font-size: 15px;
}

.profile-main:has(.profile-panel:not([hidden])) .profile-panel-hint {
  display: none;
}

.profile-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.profile-panel-head h3 {
  margin: 0;
}

.profile-panel.form-card h3:not(.profile-panel-head h3) {
  margin: 0 0 12px;
}

.profile-panel .btn-primary,
.profile-panel .btn-plain {
  width: 100%;
  max-width: 480px;
  margin-top: 8px;
}

.profile-panel .profile-settings-row {
  margin-bottom: 4px;
}

@media (max-width: 767px) {
  .profile-body {
    display: flex;
    flex-direction: column;
  }

  .profile-menu-panel {
    order: 1;
  }

  .profile-main {
    order: 2;
    position: fixed;
    inset: 0;
    z-index: 210;
    display: flex;
    flex-direction: column;
    background: var(--mall-bg);
    transform: translate3d(100%, 0, 0);
    transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
    visibility: hidden;
    pointer-events: none;
    min-height: 0;
    padding: 0;
    gap: 0;
    overflow: hidden;
  }

  .profile-body.profile-panel-open .profile-main {
    transform: translate3d(0, 0, 0);
    visibility: visible;
    pointer-events: auto;
  }

  .profile-panel-backbar {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 4px;
    min-height: 48px;
    padding: max(8px, env(safe-area-inset-top)) 12px 8px;
    background: var(--mall-bg-elevated);
    border-bottom: 1px solid var(--mall-border);
  }

  .profile-panel-back {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 6px 8px 6px 0;
    border: none;
    background: none;
    color: var(--mall-accent);
    font: inherit;
    font-size: 16px;
    line-height: 1.2;
    cursor: pointer;
    flex-shrink: 0;
  }

  .profile-panel-back-icon {
    font-size: 26px;
    font-weight: 300;
    line-height: 1;
    margin-top: -2px;
  }

  .profile-panel-back-title {
    flex: 1;
    min-width: 0;
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .profile-main-inner {
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0 0 calc(12px + var(--mall-safe-bottom));
  }

  .profile-main-inner .profile-panel-hint {
    display: none;
  }

  .profile-body.profile-panel-open .profile-main-inner > .profile-panel > h3:first-child,
  .profile-body.profile-panel-open .profile-panel--settings > h3:first-child,
  .profile-body.profile-panel-open .profile-panel-head h3 {
    display: none;
  }

  .profile-main-inner .form-card,
  .profile-main-inner .profile-panel.form-card {
    margin: 0;
    padding: 16px;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
  }

  body.profile-mobile-panel-open {
    overflow: hidden;
  }
}

@media (min-width: 768px) {
  .profile-panel-backbar {
    display: none !important;
  }

  .profile-main-inner {
    display: contents;
  }

  .profile-panel-hint {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  @media (max-width: 767px) {
    .profile-main {
      transition: none;
    }
  }
}

/* ========== 商品详情 ========== */
.mall-detail-layout {
  width: 100%;
}

.mall-detail-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

@media (min-width: 900px) {
  .mall-detail-layout {
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(360px, 1fr);
    gap: 32px;
    max-width: var(--mall-content-max);
    margin: 0 auto;
    padding: 8px 24px 48px;
    align-items: start;
  }

  body.has-detail-bar { padding-bottom: 48px; }

  .mall-detail-pic {
    border-radius: var(--mall-radius-lg);
    max-height: none;
    position: sticky;
    top: calc(var(--mall-header-h) + 24px);
  }

  .mall-detail-body {
    margin-top: 0;
    border-radius: var(--mall-radius-lg);
    border: 1px solid var(--mall-border);
  }

  .mall-detail-bar {
    position: relative;
    padding: 20px 0 0;
    background: transparent;
    backdrop-filter: none;
    border-top: none;
    margin-top: 0;
  }
}

.mall-detail-pic {
  width: 100%;
  aspect-ratio: 1;
  max-height: min(70vh, 480px);
  background: linear-gradient(160deg, #f0f4f8 0%, #e8f2ec 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  opacity: 0.35;
}

.mall-detail-pic img { width: 100%; height: 100%; object-fit: cover; }

.mall-gallery { width: 100%; }

.mall-gallery-main {
  position: relative;
  display: flex;
  align-items: center;
}

.mall-gallery-main .mall-detail-pic {
  flex: 1;
  max-height: min(70vh, 480px);
}

.mall-gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
  font-size: 22px;
  line-height: 1;
  color: var(--mall-text);
  cursor: pointer;
}

.mall-gallery-nav.prev { left: 10px; }
.mall-gallery-nav.next { right: 10px; }

.mall-gallery-thumbs {
  display: flex;
  gap: 8px;
  padding: 12px 16px 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.mall-gallery-thumb {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  background: #fff;
}

.mall-gallery-thumb.active {
  border-color: var(--mall-accent);
}

.mall-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mall-gallery-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding: 8px 0 4px;
}

.mall-gallery-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.mall-gallery-dot.active {
  background: var(--mall-accent);
  width: 18px;
  border-radius: 3px;
}

.mall-detail-body {
  background: var(--mall-bg-elevated);
  border-radius: var(--mall-radius-lg) var(--mall-radius-lg) 0 0;
  margin-top: -16px;
  position: relative;
  padding: 24px 20px 32px;
  border: 1px solid var(--mall-border);
  border-bottom: none;
}

@media (min-width: 900px) {
  .mall-detail-body {
    border-bottom: 1px solid var(--mall-border);
    padding: 28px;
  }
}

.mall-detail-price {
  color: var(--mall-text);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.mall-detail-price .num { font-size: 32px; font-weight: 600; }

.mall-detail-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-top: 12px;
  line-height: 1.25;
}

.mall-detail-note {
  font-size: 13px;
  color: var(--mall-text-secondary, #666);
  margin: 8px 0 0;
  line-height: 1.45;
}

.mall-detail-desc {
  font-size: 15px;
  color: var(--mall-text-secondary);
  margin-top: 16px;
  line-height: 1.6;
}

.mall-detail-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  padding: 10px 16px calc(10px + var(--mall-safe-bottom));
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: var(--mall-blur);
  -webkit-backdrop-filter: var(--mall-blur);
  border-top: 1px solid var(--mall-border);
  z-index: 100;
  gap: 12px;
}

@media (min-width: 900px) {
  .mall-detail-bar {
    position: relative;
    padding: 16px 0 0;
    background: transparent;
    backdrop-filter: none;
    border-top: 1px solid var(--mall-border);
    margin-top: 20px;
  }
}

.mall-detail-bar .bar-link {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  font-size: 11px;
  color: var(--mall-text-secondary);
  text-decoration: none;
  min-width: 48px;
  transition: color var(--mall-transition);
}

.mall-detail-bar .bar-link:hover { color: var(--mall-accent); }
.mall-detail-bar .bar-link > span:first-child { font-size: 22px; line-height: 1; margin-bottom: 2px; }
.mall-detail-bar .bar-link > span:last-child:not(:only-child) { font-size: 11px; }

/* ========== 表单 / 按钮 ========== */
.mall-content {
  padding: 16px;
  width: 100%;
  max-width: var(--mall-content-max);
  margin: 0 auto;
}

@media (min-width: 768px) {
  .mall-content { padding: 24px 0 48px; }
}

.mall-content.narrow {
  max-width: 520px;
}

.form-card {
  background: var(--mall-bg-elevated);
  border-radius: var(--mall-radius-lg);
  padding: 24px 20px;
  border: 1px solid var(--mall-border);
  box-shadow: var(--mall-shadow-sm);
}

@media (min-width: 768px) {
  .form-card { padding: 32px 28px; }
}

.confirm-section-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--mall-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 12px;
}

.confirm-divider {
  border: none;
  border-top: 1px solid var(--mall-border);
  margin: 20px 0;
}

.confirm-product {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 4px;
}

.confirm-product-pic {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  border-radius: var(--mall-radius-md);
  overflow: hidden;
  background: linear-gradient(160deg, #f0f4f8 0%, #e8f2ec 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.confirm-product-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.confirm-product-pic .pic-placeholder {
  font-size: 32px;
  opacity: 0.4;
}

.confirm-product-name {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--mall-text);
}

.confirm-product-meta {
  margin: 0 0 6px;
  font-size: 14px;
  color: var(--mall-text-muted);
}

.confirm-product-total {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--mall-accent);
}

.confirm-product-total .num {
  font-variant-numeric: tabular-nums;
}

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--mall-text-secondary);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--mall-border-strong);
  border-radius: var(--mall-radius-sm);
  font-size: 16px;
  background: var(--mall-bg);
  outline: none;
  transition: border-color var(--mall-transition), box-shadow var(--mall-transition);
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--mall-accent);
  box-shadow: 0 0 0 4px var(--mall-accent-soft);
  background: #fff;
}

.search-bar { display: flex; gap: 10px; margin-bottom: 12px; }

.search-bar input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--mall-border-strong);
  border-radius: var(--mall-radius-sm);
  font-size: 15px;
  background: var(--mall-bg);
}

.btn-primary {
  width: 100%;
  padding: 14px 24px;
  background: var(--mall-accent);
  color: #fff;
  border: none;
  border-radius: var(--mall-radius-pill);
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--mall-transition), transform 0.15s ease;
  font-family: inherit;
  letter-spacing: -0.02em;
}

.btn-primary:hover { background: var(--mall-accent-hover); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.btn-primary.btn-plain {
  background: transparent;
  color: var(--mall-accent);
  border: 1px solid var(--mall-accent);
}

.btn-primary.btn-plain:hover { background: var(--mall-accent-soft); }

.btn-secondary {
  display: block;
  text-align: center;
  margin-top: 16px;
  color: var(--mall-accent);
  font-size: 15px;
  text-decoration: none;
}

.btn-secondary:hover { text-decoration: underline; }

/* 按钮：链接型 / 并排 / 内联 */
a.btn-primary,
button.btn-primary {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

a.mall-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-sizing: border-box;
}

.btn-primary.btn-inline,
.mall-btn-ghost.btn-inline {
  width: auto;
  flex: 1 1 auto;
  min-width: 0;
}

.search-bar .btn-primary {
  width: auto;
  flex-shrink: 0;
  padding: 10px 16px;
  font-size: 15px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
  align-items: stretch;
}

.form-actions > .btn-primary,
.form-actions > .mall-btn-ghost {
  flex: 1 1 calc(50% - 5px);
  min-width: 120px;
  margin: 0;
}

.form-actions--stack {
  flex-direction: column;
}

.form-actions--stack > .btn-primary,
.form-actions--stack > .mall-btn-ghost {
  flex: 1 1 100%;
  width: 100%;
}

.mall-content-actions {
  margin: 12px 0 16px;
}

.mall-content-actions .btn-primary {
  width: 100%;
}

.mall-content-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mall-content-stack > .form-card {
  margin: 0;
}

/* 统一表单控件 */
.mall-input,
.mall-select,
textarea.mall-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--mall-border-strong);
  border-radius: var(--mall-radius-sm);
  font-size: 15px;
  background: var(--mall-bg);
  color: var(--mall-text);
  font-family: inherit;
  box-sizing: border-box;
  transition: border-color var(--mall-transition), box-shadow var(--mall-transition);
}

.mall-input:focus,
.mall-select:focus,
textarea.mall-input:focus {
  outline: none;
  border-color: var(--mall-accent);
  box-shadow: 0 0 0 4px var(--mall-accent-soft);
  background: var(--mall-bg-elevated);
}

textarea.mall-input {
  resize: vertical;
  min-height: 88px;
}

.mall-select {
  cursor: pointer;
}

/* 落地页 / 联系页水平对齐 */
.landing-hero-actions a.btn-primary,
.landing-hero-actions a.mall-btn-ghost,
.landing-hero-actions button.btn-primary,
.landing-footer-cta a.btn-primary,
.landing-footer-cta a.mall-btn-ghost {
  width: auto;
  flex: 0 1 auto;
  min-width: 140px;
}

.contact-page > .contact-info-grid,
.contact-page > .contact-map-wrap,
.contact-page > .contact-quick-links,
.contact-page > .contact-form {
  padding-left: 16px;
  padding-right: 16px;
}

@media (min-width: 768px) {
  .contact-page > .contact-info-grid,
  .contact-page > .contact-map-wrap,
  .contact-page > .contact-quick-links,
  .contact-page > .contact-form {
    padding-left: 0;
    padding-right: 0;
  }
}

.contact-form {
  margin-bottom: 24px;
}

.coupon-available-actions .btn-primary {
  width: auto;
  flex: 1 1 140px;
}

.coupon-available-actions .mall-btn-ghost {
  flex: 1 1 auto;
}

.mall-status-panel {
  margin-top: 16px;
  padding: 16px;
  background: var(--mall-accent-soft);
  border: 1px solid var(--mall-border);
  border-radius: var(--mall-radius-md);
}

.mall-status-panel--warn {
  background: #fff8f0;
  border-color: #ffe0a3;
}

.mall-status-panel--info {
  background: #f0f7ff;
  border-color: #cce4ff;
}

.mall-status-panel--ok {
  background: #e8f5e9;
  border-color: #c8e6c9;
}

.mall-quote-table {
  width: 100%;
  font-size: 0.9rem;
  border-collapse: collapse;
  margin: 12px 0;
}

.mall-quote-table td {
  padding: 8px 0;
  border-bottom: 1px solid var(--mall-border);
  vertical-align: top;
}

.mall-quote-table td:last-child {
  text-align: right;
  white-space: nowrap;
}

.mall-detail-bar .btn-primary.btn-inline {
  flex: 1;
  max-width: 320px;
  margin: 0;
}

.mall-link-accent {
  color: var(--mall-accent);
  text-decoration: none;
}

.mall-link-accent:hover {
  text-decoration: underline;
}

.form-card > .btn-primary + .mall-btn-ghost {
  width: 100%;
  margin-top: 8px;
}

.mall-content-note {
  margin: 8px 0 12px;
  font-size: 14px;
}

.form-card > a.btn-primary + a.mall-btn-ghost,
.form-card > a.btn-primary + a.btn-primary {
  display: inline-flex;
  margin-top: 8px;
}

.form-card > a.btn-primary {
  margin-top: 12px;
}

.form-field-label {
  display: block;
  margin-top: 16px;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
}

.form-field-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-card .btn-primary.form-field-submit {
  margin-top: 20px;
}

.profile-panel .mall-btn-ghost {
  width: 100%;
  margin-top: 10px;
  justify-content: center;
}

/* ========== 登录 ========== */
.mall-auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: var(--mall-bg);
}

@media (min-width: 768px) {
  .mall-auth-wrap {
    padding: 48px;
    background: linear-gradient(180deg, #e8f4fc 0%, var(--mall-bg) 40%);
  }
}

.mall-auth-wrap .mall-page {
  width: 100%;
  max-width: 440px;
  min-height: auto;
  background: transparent;
  padding: 0;
}

.mall-auth-card {
  background: var(--mall-bg-elevated);
  border-radius: var(--mall-radius-lg);
  padding: 32px 28px;
  border: 1px solid var(--mall-border);
  box-shadow: var(--mall-shadow);
}

.mall-auth-card--wide {
  max-width: 520px;
  margin: 0 auto;
}

.mall-callout {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: var(--mall-radius-sm);
  font-size: 14px;
  line-height: 1.5;
}

.mall-callout--info {
  background: var(--mall-accent-soft);
  color: var(--mall-text);
  border: 1px solid rgba(0, 113, 227, 0.15);
}

.mall-menu-item--static {
  cursor: default;
  opacity: 0.92;
}

.mall-menu-item--static:hover {
  background: transparent;
}

.mall-auth-head {
  text-align: center;
  margin-bottom: 28px;
}

.mall-auth-head h1 {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--mall-text);
}

.mall-auth-head p {
  font-size: 15px;
  color: var(--mall-text-secondary);
  margin-top: 8px;
}

/* ========== 状态 ========== */
.badge {
  display: inline-block;
  min-width: 18px;
  padding: 0 6px;
  background: var(--mall-accent);
  color: #fff;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  vertical-align: top;
  margin-left: 4px;
}

.empty, .loading {
  text-align: center;
  padding: 56px 24px;
  color: var(--mall-text-muted);
  font-size: 15px;
  grid-column: 1 / -1;
}

.error-msg {
  text-align: center;
  padding: 32px 20px;
  color: #ff3b30;
  font-size: 15px;
  grid-column: 1 / -1;
}

.detail-price {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--mall-text);
  margin: 12px 0;
}

.detail-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--mall-text-secondary);
  margin-bottom: 16px;
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
  padding: 16px 0;
  border-top: 1px solid var(--mall-border);
  border-bottom: 1px solid var(--mall-border);
}

.qty-row input {
  width: 80px;
  padding: 10px;
  text-align: center;
  border: 1px solid var(--mall-border-strong);
  border-radius: var(--mall-radius-sm);
  font-size: 16px;
}

.success-box {
  background: rgba(52, 199, 89, 0.1);
  border: 1px solid rgba(52, 199, 89, 0.25);
  border-radius: var(--mall-radius);
  padding: 28px 20px;
  text-align: center;
}

.success-box h2 { color: var(--mall-mint); font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.success-box p { font-size: 14px; color: var(--mall-text-secondary); line-height: 1.5; }

/* 子页面列表 */
.mall-list-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mall-list-stack .product-card { margin-bottom: 0; }

/* AI 导购商品列表复用网格 */
.guide-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 600px) {
  .guide-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .guide-grid { grid-template-columns: repeat(3, 1fr); }
}

/* 客服 iframe 页 */
.mall-chat-frame {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  background: var(--mall-bg);
}

.mall-chat-frame .mall-navbar {
  flex-shrink: 0;
  position: relative;
}

.mall-chat-frame iframe {
  flex: 1;
  border: 0;
  width: 100%;
  min-height: 0;
  background: #fff;
}

.mall-chat-frame--embed {
  height: 100%;
  min-height: 100%;
}

.mall-chat-frame--embed .mall-navbar {
  display: none;
}

.mall-chat-frame--embed .mall-chat-loading {
  font-size: 13px;
}

/* 移动端 AI 客服全页 */
.mall-chat-page {
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #f5f5f7;
}

.mall-chat-page .mall-utility-bar {
  flex-shrink: 0;
  position: relative;
}

.mall-chat-shell {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.mall-chat-page .mall-chat-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--mall-text-muted);
  background: var(--mall-bg);
  z-index: 2;
  transition: opacity 0.2s ease;
}

.mall-chat-page .mall-chat-loading.is-done {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.mall-chat-frame-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #f5f5f7;
}

[data-theme="dark"] .mall-ai-panel-head {
  background: rgba(28, 28, 30, 0.92);
}

/* 兼容旧顶栏（逐步废弃，新页请用 renderNavBar） */
.mall-header {
  display: none;
}

/* Phase 27 骨架屏 */
.mall-skeleton-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 600px) {
  .mall-skeleton-grid { grid-template-columns: repeat(3, 1fr); }
}

.mall-skeleton-card,
.mall-skeleton-order {
  background: var(--mall-card);
  border-radius: var(--mall-radius);
  padding: 12px;
}

.sk-block {
  background: linear-gradient(90deg, #eceff3 25%, #f5f7fa 50%, #eceff3 75%);
  background-size: 200% 100%;
  animation: mall-shimmer 1.2s ease-in-out infinite;
  border-radius: 8px;
}

@keyframes mall-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.sk-pic { height: 120px; margin-bottom: 10px; }
.sk-line { height: 14px; margin-top: 8px; }
.sk-line-lg { width: 85%; }
.sk-line-sm { width: 55%; height: 12px; }
.sk-thumb { width: 56px; height: 56px; flex-shrink: 0; }
.sk-row { display: flex; gap: 12px; margin-top: 10px; }
.sk-col { flex: 1; }
.sk-detail-pic { height: 220px; margin-bottom: 16px; }

.mall-skeleton-orders { display: flex; flex-direction: column; gap: 12px; }

/* Phase 28 下拉刷新 */
.mall-pull-indicator {
  text-align: center;
  font-size: 13px;
  color: var(--mall-text-secondary);
  padding: 8px 0 12px;
}

.mall-pull-indicator.loading { color: var(--mall-mint); }

.mall-load-more-wrap {
  text-align: center;
  padding: 16px 0 8px;
}

.mall-load-more-wrap .mall-btn-ghost {
  min-width: 140px;
}

/* Phase 32 面包屑 */
.mall-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--mall-text-secondary);
  padding: 12px 18px 0;
}

.mall-breadcrumb a {
  color: var(--mall-mint);
  text-decoration: none;
}

.mall-breadcrumb .sep { opacity: 0.45; }

/* ========== 商品详情（对齐首页风格） ========== */
body.mall-detail-page {
  background: var(--mall-bg);
}

body.mall-detail-page .mall-page {
  padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}

body.mall-detail-page .mall-breadcrumb {
  max-width: var(--mall-content-max);
  margin: 0 auto;
  padding: 12px 16px 0;
  font-size: 13px;
}

body.mall-detail-page .mall-detail-layout {
  max-width: var(--mall-content-max);
  margin: 0 auto;
  padding: 8px 16px 0;
}

body.mall-detail-page .mall-detail-pic,
body.mall-detail-page .mall-gallery {
  border-radius: var(--mall-radius);
  border: 1px solid var(--mall-border);
  box-shadow: var(--mall-shadow-sm);
  overflow: hidden;
  background: var(--mall-bg-elevated);
}

body.mall-detail-page .mall-detail-body {
  margin-top: 14px;
  border-radius: var(--mall-radius);
  border: 1px solid var(--mall-border);
  box-shadow: var(--mall-shadow-sm);
  background: var(--mall-bg-elevated);
  padding: 20px 18px 22px;
}

body.mall-detail-page .mall-detail-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

body.mall-detail-page .mall-detail-desc {
  font-size: 14px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

body.mall-detail-page .mall-detail-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

body.mall-detail-page .mall-detail-action-btn {
  justify-content: center;
  min-height: 40px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--mall-radius-pill);
}

body.mall-detail-page .mall-detail-action-btn.active {
  color: var(--mall-accent);
  border-color: rgba(0, 113, 227, 0.28);
  background: rgba(0, 113, 227, 0.06);
}

body.mall-detail-page .mall-detail-action-btn.btn-ai-consult {
  grid-column: 1 / -1;
  color: var(--mall-accent);
  border-color: rgba(0, 113, 227, 0.28);
  background: rgba(0, 113, 227, 0.06);
}

body.mall-detail-page .mall-detail-bar {
  gap: 0;
  justify-content: center;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--mall-bg-elevated) 88%, transparent);
}

body.mall-detail-page .mall-detail-bar-buy {
  flex: 0 1 auto;
  width: min(90%, 440px);
  min-height: 48px;
  margin: 0 auto;
  max-width: 440px;
  border-radius: var(--mall-radius-pill);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
}

body.mall-detail-page .mall-reviews-section,
body.mall-detail-page .mall-related-section {
  max-width: var(--mall-content-max);
  margin: 0 auto;
  padding: 24px 16px 8px;
}

body.mall-detail-page .mall-related-grid .goods-item {
  border-radius: var(--mall-radius);
  box-shadow: var(--mall-shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
}

@media (hover: hover) {
  body.mall-detail-page .mall-related-grid .goods-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--mall-shadow-hover);
  }
}

@media (min-width: 900px) {
  body.mall-detail-page .mall-page {
    padding-bottom: 48px;
  }

  body.mall-detail-page .mall-detail-layout {
    padding: 12px 24px 0;
  }

  body.mall-detail-page .mall-detail-body {
    margin-top: 0;
    padding: 28px;
  }

  body.mall-detail-page .mall-detail-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body.mall-detail-page .mall-detail-action-btn.btn-ai-consult {
    grid-column: auto;
  }

  body.mall-detail-page .mall-detail-bar {
    padding-top: 20px;
    margin-top: 8px;
    border-top: 1px solid var(--mall-border);
    justify-content: center;
  }

  body.mall-detail-page .mall-detail-bar-buy {
    width: min(100%, 380px);
  }
}

/* Phase 31 详情操作栏 */
.mall-detail-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.mall-detail-actions .btn-ghost-icon {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--mall-border);
  border-radius: var(--mall-radius-sm);
  background: var(--mall-card);
  font-size: 14px;
  cursor: pointer;
}

.mall-detail-actions .btn-ghost-icon.active {
  border-color: var(--mall-mint);
  color: var(--mall-mint);
}

.mall-detail-actions .btn-ai-consult {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-color: rgba(0, 113, 227, 0.28);
  color: var(--mall-accent);
  background: rgba(0, 113, 227, 0.06);
}

/* Phase 33 最近浏览 */
#recentSection[hidden] {
  display: none !important;
}

.mall-recent-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 4px 2px 8px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  min-height: 0;
}

.mall-recent-scroll:empty {
  display: none;
  min-height: 0;
  padding: 0;
}

.mall-recent-scroll::-webkit-scrollbar {
  display: none;
}

.mall-recent-item {
  flex: 0 0 132px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--mall-bg-elevated);
  border-radius: var(--mall-radius);
  border: 1px solid var(--mall-border);
  box-shadow: var(--mall-shadow-sm);
  overflow: hidden;
  transition: transform var(--mall-transition), box-shadow var(--mall-transition);
}

@media (hover: hover) {
  .mall-recent-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--mall-shadow-hover);
  }
}

.mall-recent-item .pic {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  background: linear-gradient(160deg, #f0f4f8 0%, #e8f2ec 100%);
}

.mall-recent-item .pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mall-recent-item .name {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  padding: 8px 10px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mall-recent-item .price {
  font-size: 14px;
  font-weight: 600;
  color: var(--mall-price);
  padding: 4px 10px 10px;
}

/* Phase 34 订单时间线 */
.order-timeline {
  margin: 16px 0;
  padding: 12px 0;
  border-top: 1px solid var(--mall-border);
}

.order-timeline-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.order-timeline-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
}

.order-timeline-steps::before {
  content: '';
  position: absolute;
  left: 8%;
  right: 8%;
  top: 10px;
  height: 2px;
  background: var(--mall-border);
  z-index: 0;
}

.order-timeline-step {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
  font-size: 11px;
  color: var(--mall-text-secondary);
  padding: 0 2px;
}

.order-timeline-step .dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--mall-border);
  margin: 0 auto 6px;
  line-height: 20px;
  font-size: 10px;
  color: #fff;
}

.order-timeline-step.done .dot {
  background: var(--mall-mint);
}

.order-timeline-step.done { color: var(--mall-text); }

/* Phase 35 个人中心快捷 */
.profile-shortcuts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 0;
  width: 100%;
}

.profile-shortcut {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--mall-card);
  border-radius: var(--mall-radius);
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--mall-border);
}

.profile-shortcut .sc-icon { font-size: 20px; }
.profile-shortcut .sc-label { font-size: 13px; font-weight: 500; }
.profile-shortcut .sc-meta { font-size: 11px; color: var(--mall-text-secondary); }

/* Phase 36 相关商品 */
.mall-related-section {
  padding: 20px 18px 100px;
  border-top: 8px solid var(--mall-bg);
}

.mall-related-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 12px;
}

@media (min-width: 768px) {
  .mall-related-grid { grid-template-columns: repeat(4, 1fr); }
}

.mall-fav-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--mall-text-secondary);
}

/* Phase 37 排序 */
.mall-sort-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.mall-sort-bar button {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--mall-border);
  background: var(--mall-card);
  font-size: 13px;
  color: var(--mall-text-secondary);
  cursor: pointer;
  transition: border-color var(--mall-transition), color var(--mall-transition), background var(--mall-transition);
}

.mall-sort-bar button.active {
  border-color: var(--mall-mint);
  color: var(--mall-mint);
  font-weight: 600;
}

/* Phase 39 Tab 角标 */
.tab-badge {
  position: absolute;
  top: 2px;
  right: 8px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #ff3b30;
  color: #fff;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
}

.mall-tabbar a { position: relative; }

/* Phase 40 订单搜索 */
.mall-order-search {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.mall-order-search input {
  flex: 1;
  padding: 10px 12px;
  border: 1px solid var(--mall-border);
  border-radius: var(--mall-radius-sm);
  font-size: 15px;
}

.mall-order-date-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--mall-text-secondary);
}

.mall-order-date-filter label {
  display: flex;
  align-items: center;
  gap: 4px;
}

.mall-order-date-filter input[type="date"] {
  padding: 6px 8px;
  border: 1px solid var(--mall-border);
  border-radius: var(--mall-radius-sm);
  font-size: 14px;
  background: var(--mall-card);
  color: var(--mall-text);
}

.feedback-history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.feedback-history-item {
  padding: 10px 12px;
  background: var(--mall-bg);
  border-radius: var(--mall-radius-sm);
  font-size: 14px;
}

.feedback-history-item time {
  display: block;
  font-size: 12px;
  color: var(--mall-text-secondary);
  margin-bottom: 4px;
}

.order-card-meta {
  font-size: 12px;
  color: var(--mall-text-secondary);
  padding: 0 18px 8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.order-coupon-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--mall-theme-light);
  color: var(--mall-theme);
  font-size: 11px;
}

.mall-my-review {
  margin-bottom: 12px;
}

.coupon-history-item {
  padding: 10px 12px;
  margin-bottom: 8px;
  background: var(--mall-bg);
  border-radius: var(--mall-radius-sm);
  font-size: 14px;
}

.mall-coupon-promo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 12px 12px;
  padding: 10px 12px;
  background: var(--mall-theme-light);
  border-radius: var(--mall-radius-sm);
  font-size: 13px;
}

.mall-coupon-promo--product {
  margin: 16px 0 0;
  padding: 12px 14px;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--mall-border);
  background: var(--mall-bg);
}

.mall-coupon-promo--product .mall-coupon-chips {
  width: 100%;
}

.mall-coupon-promo-label {
  color: var(--mall-theme);
  font-weight: 600;
  flex: 0 0 100%;
}

.mall-coupon-promo-body {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  flex: 1 1 100%;
}

.mall-coupon-go {
  flex-shrink: 0;
  font-size: 12px;
  padding: 4px 10px;
}

.mall-coupon-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mall-coupon-chip {
  padding: 4px 10px;
  border: 1px dashed var(--mall-theme);
  border-radius: 999px;
  background: var(--mall-card);
  color: var(--mall-theme);
  font-size: 12px;
  cursor: pointer;
}

.coupon-available-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--mall-border, #eee);
}

.coupon-available-item:last-child {
  border-bottom: none;
}

.coupon-available-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.coupon-landing-card .coupon-available-actions {
  margin-top: 16px;
}

.mall-coupon-chip-wrap {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin: 0 4px 4px 0;
}

.mall-coupon-copy-btn {
  border: none;
  background: transparent;
  color: var(--mall-muted, #86868b);
  font-size: 14px;
  padding: 2px 6px;
  cursor: pointer;
}

.demo-flow-list {
  margin: 12px 0 0;
  padding-left: 20px;
  line-height: 1.6;
}

.demo-flow-list li {
  margin-bottom: 16px;
}

.coupon-available-item .mall-coupon-save-btn {
  margin-top: 8px;
}

.mall-coupon-expiring-banner {
  margin-bottom: 12px;
  padding: 10px 12px;
  border-radius: var(--mall-radius-sm);
  background: #fff7e6;
  color: #ad6800;
  font-size: 13px;
}

.coupon-soon-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #fff7e6;
  color: #ad6800;
  font-size: 11px;
  font-weight: 600;
}

.coupon-available-soon {
  border-left: 3px solid #faad14;
  padding-left: 8px;
}

.mall-order-coupon-filter {
  margin: 0 12px 8px;
  font-size: 14px;
}

.profile-coupon-banner {
  margin: 0 12px 12px;
}

.profile-coupon-banner a {
  color: var(--mall-theme);
  font-weight: 600;
}

.order-coupon-detail {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: var(--mall-radius-sm);
  background: var(--mall-theme-light);
  font-size: 14px;
}

.order-coupon-detail-label {
  display: block;
  font-size: 12px;
  color: #666;
  margin-bottom: 4px;
}

.notify-type-tag {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  vertical-align: middle;
}

.notify-type-coupon {
  background: var(--mall-theme-light);
  color: var(--mall-theme);
}

.notify-card-coupon {
  border-left: 3px solid var(--mall-theme);
}

.notify-type-order {
  background: #e6f4ff;
  color: #1677ff;
}

.notify-card-order {
  border-left: 3px solid #1677ff;
}

.notify-type-subsidy {
  background: #f6ffed;
  color: #52c41a;
}

.notify-card-subsidy {
  border-left: 3px solid #52c41a;
}

.notify-type-work {
  background: #f9f0ff;
  color: #722ed1;
}

.notify-card-work {
  border-left: 3px solid #722ed1;
}

.mall-notify-actions .mall-tabs {
  flex-wrap: wrap;
}

.order-discount-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #e8f5e9;
  color: #2e7d32;
  font-size: 11px;
}

.menu-badge {
  margin-left: auto;
  margin-right: 8px;
  min-width: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--mall-theme);
  color: #fff;
  font-size: 11px;
  text-align: center;
  line-height: 18px;
}

/* Phase 41 消息 */
.mall-notify-actions {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 12px;
}

/* Phase 42 Toast */
.mall-toast {
  position: fixed;
  left: 50%;
  bottom: calc(80px + env(safe-area-inset-bottom));
  transform: translateX(-50%) translateY(12px);
  background: rgba(30, 30, 30, 0.92);
  color: #fff;
  padding: 10px 18px;
  border-radius: 22px;
  font-size: 14px;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
  max-width: 90vw;
  text-align: center;
}

.mall-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Phase 44 回到顶部 */
.mall-back-top {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: calc(72px + env(safe-area-inset-bottom));
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--mall-card);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  font-size: 20px;
  cursor: pointer;
  z-index: 50;
}

/* Phase 46 网络重试 */
.mall-network-retry {
  text-align: center;
  padding: 32px 16px;
}

.mall-network-retry p {
  color: var(--mall-text-secondary);
  margin-bottom: 12px;
}

/* Phase 48 价格筛选 */
.mall-price-filter {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.mall-price-filter button {
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--mall-border);
  background: var(--mall-card);
  font-size: 12px;
  color: var(--mall-text-secondary);
  cursor: pointer;
  transition: border-color var(--mall-transition), color var(--mall-transition);
}

.mall-price-filter button.active {
  border-color: var(--mall-mint);
  color: var(--mall-mint);
}

.mall-sort-sticky {
  position: sticky;
  top: 0;
  z-index: 5;
  background: var(--mall-bg);
  padding: 8px 0;
}

.mall-channel-select {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid var(--mall-border);
  background: var(--mall-card);
  max-width: 88px;
}

/* Phase 50 商品卡片操作 */
.goods-item-wrap {
  position: relative;
}

.goods-item-actions {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.goods-act-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  font-size: 14px;
  cursor: pointer;
  line-height: 1;
}

.goods-act-btn.active {
  color: #ff3b30;
}

.goods-act-btn.goods-cmp-btn.active {
  color: var(--mall-mint);
}

.goods-ai-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 7px 8px;
  border: 1px solid rgba(0, 113, 227, 0.2);
  border-radius: var(--mall-radius-sm);
  background: rgba(0, 113, 227, 0.06);
  color: var(--mall-accent);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.goods-ai-link:hover {
  background: rgba(0, 113, 227, 0.1);
}

.mall-compare-bar {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: calc(var(--mall-tabbar-h) + var(--mall-safe-bottom) + 8px);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: var(--mall-card);
  border: 1px solid var(--mall-border);
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  font-size: 14px;
}

.mall-compare-bar[hidden] {
  display: none !important;
}

@media (min-width: 1024px) {
  body.has-sidebar .mall-compare-bar {
    left: calc(var(--mall-sidebar-w) + 16px);
    bottom: calc(var(--mall-safe-bottom) + 16px);
  }
}

.mall-compare-table {
  overflow-x: auto;
}

.mall-compare-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.mall-compare-table th,
.mall-compare-table td {
  border: 1px solid var(--mall-border);
  padding: 10px;
  text-align: left;
}

.profile-shortcuts-3 {
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 480px) {
  .profile-shortcuts-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.mall-check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--mall-text-secondary);
}

/* Phase 59 自定义价格 */
.mall-price-custom {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.mall-price-custom input {
  width: 88px;
  padding: 8px 10px;
  border: 1px solid var(--mall-border);
  border-radius: var(--mall-radius-sm);
  font-size: 14px;
}

.mall-notify-actions {
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.mall-notify-actions .mall-tabs {
  flex: 1;
  min-width: 160px;
}

.order-card {
  display: block;
  background: var(--mall-card);
  border-radius: var(--mall-radius);
  border: 1px solid var(--mall-border);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.order-card-thumb {
  display: block;
  text-decoration: none;
}

.order-goods-link {
  display: inline-block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--mall-mint);
  text-decoration: none;
}

.mall-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10000;
  padding: 8px 16px;
  background: var(--mall-mint);
  color: #fff;
  border-radius: 8px;
}

.mall-skip-link:focus {
  left: 16px;
  top: 16px;
}

/* Phase 70+ */
.mall-banner-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

@media (min-width: 900px) {
  .mall-banner-actions {
    justify-content: flex-start;
  }
}

.mall-banner-cta {
  background: rgba(255, 255, 255, 0.85);
}

.mall-offline-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9998;
  padding: 8px 16px;
  padding-top: max(8px, env(safe-area-inset-top));
  background: #ff9500;
  color: #fff;
  text-align: center;
  font-size: 13px;
}

.mall-list-toolbar {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.mall-list-toolbar[hidden],
.mall-pending-banner[hidden] {
  display: none !important;
}

.order-card-status-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  max-width: 58%;
}

.order-type-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--mall-accent-soft);
  color: var(--mall-accent);
  white-space: nowrap;
}

.order-action-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  background: rgba(255, 149, 0, 0.12);
  color: #ff9500;
  white-space: nowrap;
}

.order-card-no--muted {
  color: var(--mall-text-muted);
  font-weight: 500;
}

.order-price-muted {
  font-size: 14px;
  color: var(--mall-text-secondary);
}

.mall-orders-back-link {
  display: inline-block;
  margin-bottom: 12px;
}

@media (max-width: 480px) {
  .order-card-status-group {
    max-width: 100%;
    justify-content: flex-start;
    margin-top: 4px;
  }

  .order-card-hd {
    flex-wrap: wrap;
  }
}

.mall-orders-filters {
  background: var(--mall-bg-elevated);
  border: 1px solid var(--mall-border);
  border-radius: var(--mall-radius-lg);
  padding: 14px 16px;
  margin-bottom: 14px;
  box-shadow: var(--mall-shadow-sm);
}

.mall-orders-filters .mall-order-search {
  margin-bottom: 10px;
}

.mall-orders-filters .mall-order-coupon-filter {
  margin-bottom: 10px;
}

.mall-orders-filters .mall-order-date-filter {
  margin-bottom: 12px;
}

.mall-orders-filters .mall-order-tabs {
  padding-bottom: 0;
  margin-bottom: 0;
}

.mall-orders-page .mall-pending-banner {
  margin-bottom: 12px;
}

.mall-orders-page .mall-list-stack:empty {
  display: none;
}

.order-detail-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.mall-chat-loading {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mall-text-secondary);
  font-size: 15px;
}

/* Phase 81+ */
.mall-pending-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
  background: rgba(255, 149, 0, 0.12);
  border: 1px solid rgba(255, 149, 0, 0.35);
  border-radius: var(--mall-radius);
  font-size: 14px;
}

.order-pay-btn {
  display: inline-block;
  margin-top: 8px;
  padding: 6px 14px;
  border: none;
  border-radius: 16px;
  background: var(--mall-mint);
  color: #fff;
  font-size: 13px;
  cursor: pointer;
}

.mall-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--mall-border);
  border-radius: var(--mall-radius-sm);
  font-size: 15px;
  background: var(--mall-card);
}

.address-book-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 12px;
}

.address-book-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--mall-border);
  border-radius: var(--mall-radius-sm);
  font-size: 14px;
}

:focus-visible {
  outline: 2px solid var(--mall-mint);
  outline-offset: 2px;
}

/* ========== PWA 安装条 ========== */
.mall-install-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  margin: 8px 12px 0;
  background: var(--mall-accent-soft);
  border: 1px solid var(--mall-border);
  border-radius: var(--mall-radius-sm);
  font-size: 13px;
}
.mall-install-actions { display: flex; gap: 8px; flex-shrink: 0; }

/* ========== 深浅色主题 ========== */
[data-theme="dark"] {
  --mall-bg: #000000;
  --mall-bg-subtle: #2c2c2e;
  --mall-bg-hover: #2c2c2e;
  --mall-bg-elevated: #1c1c1e;
  --mall-card: #1c1c1e;
  --mall-text: #f5f5f7;
  --mall-text-secondary: #a1a1a6;
  --mall-text-muted: #86868b;
  --mall-price: #f5f5f7;
  --mall-border: rgba(255, 255, 255, 0.1);
  --mall-border-strong: rgba(255, 255, 255, 0.16);
  --mall-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --mall-shadow: 0 4px 24px rgba(0, 0, 0, 0.45);
}
[data-theme="dark"] .mall-utility-bar,
[data-theme="dark"] .mall-sidebar,
[data-theme="dark"] .mall-home-top,
[data-theme="dark"] .mall-navbar {
  background: rgba(28, 28, 30, 0.92);
}
[data-theme="dark"] .goods-item,
[data-theme="dark"] .form-card,
[data-theme="dark"] .order-card {
  background: var(--mall-bg-elevated);
}

[data-theme="dark"] .mall-status-panel--warn {
  background: rgba(255, 152, 0, 0.12);
  border-color: rgba(255, 152, 0, 0.35);
}

[data-theme="dark"] .mall-status-panel--info {
  background: rgba(0, 113, 227, 0.12);
  border-color: rgba(0, 113, 227, 0.35);
}

[data-theme="dark"] .mall-status-panel--ok {
  background: rgba(52, 199, 89, 0.12);
  border-color: rgba(52, 199, 89, 0.35);
}

[data-theme="dark"] .mall-menu-section-title,
[data-theme="dark"] .profile-menu-inset {
  background: rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .profile-panel-backbar {
  background: var(--mall-bg-elevated);
}

[data-theme="dark"] .mall-menu-item--panel.active {
  background: rgba(0, 113, 227, 0.18);
}

[data-theme="dark"] .mall-menu-item--panel.active .menu-icon {
  background: rgba(0, 113, 227, 0.28);
}

[data-theme="dark"] .profile-settings-item:hover {
  background: var(--mall-bg-hover);
}

[data-theme="dark"] .profile-settings-item--danger {
  background: rgba(255, 59, 48, 0.1);
}

[data-theme="dark"] .profile-settings-item--danger:hover {
  background: rgba(255, 59, 48, 0.16);
}

/* ========== 字号 ========== */
html[data-font-size="small"] body { font-size: 14px; }
html[data-font-size="large"] body { font-size: 17px; }

/* ========== 精选商品工具栏 ========== */
.mall-goods-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.mall-goods-head-text {
  flex: 1;
  min-width: 0;
}

.mall-goods-head .mall-section-title {
  margin-bottom: 0;
}

.mall-goods-head .mall-search-summary {
  margin: 6px 0 0;
}

.mall-goods-section .mall-sort-bar,
.mall-goods-section .mall-price-filter,
.mall-goods-section .mall-price-custom {
  margin-bottom: 12px;
}

/* ========== 列表/网格切换 ========== */
.mall-view-toggle {
  display: inline-flex;
  flex-shrink: 0;
  padding: 3px;
  gap: 0;
  margin: 0;
  background: var(--mall-bg-subtle);
  border-radius: var(--mall-radius-pill);
  border: 1px solid var(--mall-border);
}

.mall-view-toggle button {
  padding: 6px 14px;
  border: none;
  border-radius: var(--mall-radius-pill);
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: var(--mall-text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--mall-transition), color var(--mall-transition), box-shadow var(--mall-transition);
}

.mall-view-toggle button.active {
  background: var(--mall-bg-elevated);
  color: var(--mall-text);
  box-shadow: var(--mall-shadow-sm);
}

.mall-view-toggle button:not(.active):hover {
  color: var(--mall-text);
}
.goods-grid.goods-grid--list {
  grid-template-columns: 1fr;
}
.goods-grid--list .goods-item {
  display: flex;
  flex-direction: row;
  align-items: stretch;
}
.goods-grid--list .goods-pic {
  width: 112px;
  min-height: 112px;
  flex-shrink: 0;
  aspect-ratio: auto;
}
.goods-grid--list .goods-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 12px 14px;
}

.mall-help-card section { margin-top: 16px; }
.mall-help-card h3 { font-size: 16px; margin-bottom: 6px; }
.mall-help-card p { color: var(--mall-text-secondary); font-size: 14px; }

.profile-panel--settings {
  max-width: 560px;
}

.profile-panel--settings > h3 {
  margin-bottom: 4px;
}

.profile-settings-group {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--mall-border);
}

.profile-settings-group:first-of-type {
  margin-top: 4px;
  padding-top: 0;
  border-top: none;
}

.profile-settings-group-title {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mall-text-muted);
  margin-bottom: 8px;
}

.profile-settings-hint {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--mall-text-secondary);
}

.profile-settings-list {
  border: 1px solid var(--mall-border);
  border-radius: var(--mall-radius);
  overflow: hidden;
  background: var(--mall-bg);
}

.profile-settings-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 12px 14px;
  border: none;
  border-bottom: 1px solid var(--mall-border);
  background: var(--mall-bg-elevated);
  color: var(--mall-text);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: background var(--mall-transition);
}

.profile-settings-list .profile-settings-item:last-child {
  border-bottom: none;
}

.profile-settings-item:hover {
  background: var(--mall-bg-hover, rgba(0, 0, 0, 0.02));
}

.profile-settings-item-label {
  flex: 1;
  min-width: 0;
}

.profile-settings-item .menu-arrow {
  flex-shrink: 0;
  color: var(--mall-text-muted);
  font-size: 18px;
  font-weight: 300;
  line-height: 1;
}

.profile-settings-item--check {
  cursor: default;
  margin-bottom: 8px;
  padding: 12px 14px;
  border: 1px solid var(--mall-border);
  border-radius: var(--mall-radius);
  background: var(--mall-bg-elevated);
}

.profile-settings-item--check input {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  accent-color: var(--mall-accent);
}

.profile-settings-item--danger {
  border: 1px solid rgba(255, 59, 48, 0.35);
  border-radius: var(--mall-radius);
  color: #ff3b30;
  background: rgba(255, 59, 48, 0.06);
}

.profile-settings-item--danger:hover {
  background: rgba(255, 59, 48, 0.1);
}

.profile-settings-group--danger {
  border-top-color: rgba(255, 59, 48, 0.15);
}

.profile-settings-group--logout {
  margin-top: 20px;
  padding-top: 0;
  border-top: none;
}

.profile-settings-item--logout {
  border: 1px solid var(--mall-border);
  border-radius: var(--mall-radius);
  font-weight: 500;
  color: var(--mall-accent);
  background: var(--mall-bg-elevated);
}

.profile-gdpr-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--mall-text-secondary);
}

.profile-gdpr-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--mall-border);
}

.profile-gdpr-list li:last-child {
  border-bottom: none;
}

.profile-gdpr-empty {
  color: var(--mall-text-muted);
}

.profile-gdpr-hint {
  margin: 0 0 10px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--mall-text-secondary);
}

.profile-settings-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.mall-select-inline {
  min-width: 120px;
  padding: 6px 10px;
  font-size: 14px;
}
.mall-coupon-row {
  display: flex;
  gap: 8px;
}
.mall-coupon-row input { flex: 1; }
.mall-product-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 6px 0 10px;
  font-size: 14px;
  color: var(--mall-text-secondary);
}
.mall-rating .stars { color: #ff9500; letter-spacing: 1px; }
.mall-sticky-buy {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(var(--mall-tabbar-h) + var(--mall-safe-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: var(--mall-blur);
  border-top: 1px solid var(--mall-border);
  z-index: 250;
}
[data-theme="dark"] .mall-sticky-buy {
  background: rgba(28, 28, 30, 0.95);
}
@media (min-width: 1024px) {
  body.has-sticky-buy .mall-sticky-buy {
    left: var(--mall-sidebar-w);
  }
  body.has-sticky-buy.has-detail-bar .mall-detail-bar {
    bottom: 0;
  }
}

.mall-announce-bar {
  margin: 8px 12px 0;
  padding: 10px 14px;
  background: var(--mall-accent-soft);
  border-radius: var(--mall-radius-sm);
  font-size: 13px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mall-review-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--mall-border);
}
.mall-review-meta { font-size: 13px; color: var(--mall-text-secondary); margin-bottom: 4px; }
.mall-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.mall-lightbox[hidden] { display: none !important; }
.mall-lightbox-img { max-width: 100%; max-height: 90vh; border-radius: var(--mall-radius-sm); }
.mall-lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 28px;
  color: #fff;
  background: none;
  border: none;
  cursor: pointer;
}
.mall-legal p, .mall-receipt p { margin-top: 10px; color: var(--mall-text-secondary); font-size: 14px; }
.mall-receipt-amount { font-size: 28px; font-weight: 600; margin: 12px 0; }
.mall-faq-item { margin: 8px 0; font-size: 14px; }
.mall-faq-item summary { cursor: pointer; font-weight: 500; padding: 6px 0; }
.mall-faq-item p { color: var(--mall-text-secondary); padding: 6px 0 10px; }

@media print {
  .mall-navbar, .mall-tabbar, .mall-sidebar, .mall-install-banner, .mall-back-top, .mall-sticky-buy { display: none !important; }
  body { background: #fff; color: #000; }
  .mall-page { overflow: visible !important; height: auto !important; }
}

.mall-cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--mall-bg-elevated, #fff);
  border-top: 1px solid var(--mall-border, #e5e5ea);
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
}
.mall-cookie-inner { max-width: 720px; margin: 0 auto; }
.mall-cookie-text { font-size: 13px; line-height: 1.5; margin: 0 0 10px; }
.mall-cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.mall-cookie-prefs { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }

/* ========== T-032 动效与性能降级 ========== */
.mall-banner--fx {
  position: relative;
  isolation: isolate;
}

.mall-banner-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}

.mall-banner--fx .mall-banner-inner {
  position: relative;
  z-index: 1;
}

html[data-fx-tier="static"] .mall-banner-particles {
  display: none;
}

html[data-fx-tier="static"] .mall-banner--fx {
  background: linear-gradient(145deg, #dceefb 0%, #f0e8f4 42%, #d8f0e4 100%);
}

[data-theme="dark"][data-fx-tier="static"] .mall-banner--fx {
  background: linear-gradient(145deg, #1a2332 0%, #1c1c1e 50%, #152028 100%);
}

.mall-fx-glow {
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}

@media (hover: hover) {
  .mall-fx-glow:hover {
    box-shadow: 0 8px 32px rgba(0, 113, 227, 0.18), 0 2px 8px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
  }

  [data-theme="dark"] .mall-fx-glow:hover {
    box-shadow: 0 8px 28px rgba(100, 160, 255, 0.22), 0 2px 8px rgba(0, 0, 0, 0.35);
  }
}

.brand-badge-flip {
  position: relative;
  perspective: 640px;
  cursor: pointer;
  min-width: 52px;
  min-height: 32px;
  padding: 0;
  border: none;
  background: transparent;
}

.brand-badge-flip .brand-badge-face {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 6px;
  background: var(--mall-bg-elevated);
  border: 1px solid var(--mall-border);
  color: var(--mall-text);
  backface-visibility: hidden;
  transition: transform 0.45s ease;
}

.brand-badge-flip .brand-badge-face--back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
  font-size: 10px;
  font-weight: 500;
  color: var(--mall-accent);
  background: var(--mall-accent-soft);
}

.brand-badge-flip.is-flipped .brand-badge-face--front {
  transform: rotateY(-180deg);
}

.brand-badge-flip.is-flipped .brand-badge-face--back {
  transform: rotateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .mall-fx-glow,
  .brand-badge-flip .brand-badge-face,
  .brand-biz-card,
  .goods-item {
    transition: none !important;
    transform: none !important;
  }

  .brand-badge-flip.is-flipped .brand-badge-face--front,
  .brand-badge-flip.is-flipped .brand-badge-face--back {
    transform: none;
  }

  .brand-badge-flip .brand-badge-face--back {
    position: static;
    transform: none;
    display: none;
  }
}

/* ========== T-033 个性化首页 ========== */
.mall-banner--personalized {
  border-color: rgba(0, 113, 227, 0.35);
  box-shadow: 0 4px 28px rgba(0, 113, 227, 0.12);
}

.mall-banner--personalized .mall-banner-eyebrow::after {
  content: ' · personalised';
  font-weight: 500;
  opacity: 0.85;
}

.mall-personalize-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--mall-accent-soft);
  color: var(--mall-accent);
  margin-left: 8px;
  vertical-align: middle;
}

#personalizedSection[hidden] {
  display: none !important;
}

.mall-search--ai {
  position: relative;
}

.mall-search-ai-badge {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(135deg, var(--mall-accent), #5856d6);
  padding: 3px 6px;
  border-radius: 6px;
  margin-right: 4px;
}

/* ========== Atom 首页增强 ========== */
.home-welcome {
  font-size: 14px;
  font-weight: 600;
  color: var(--mall-accent);
  margin: 0 0 6px;
  text-align: center;
}

@media (min-width: 900px) {
  .home-welcome { text-align: left; }
}

.home-data-viz-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 16px 8px;
}

@media (min-width: 768px) {
  .home-data-viz-inner {
    grid-template-columns: 1fr 1fr 1.4fr;
    padding: 0 0 8px;
  }
}

.home-viz-card {
  background: var(--mall-bg-elevated);
  border: 1px solid var(--mall-border);
  border-radius: var(--mall-radius);
  padding: 14px 16px;
  box-shadow: var(--mall-shadow-sm);
}

.home-viz-card--wide { grid-column: 1 / -1; }

@media (min-width: 768px) {
  .home-viz-card--wide { grid-column: auto; }
}

.home-viz-label {
  font-size: 12px;
  color: var(--mall-text-secondary);
  margin-bottom: 6px;
}

.home-viz-value {
  font-size: clamp(22px, 4vw, 28px);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--mall-text);
}

.home-progress-track {
  height: 8px;
  border-radius: 999px;
  background: var(--mall-border);
  overflow: hidden;
  margin: 8px 0 6px;
}

.home-progress-bar {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--mall-accent), #34c759);
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-progress-meta {
  font-size: 12px;
  color: var(--mall-text-secondary);
}

.home-case-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
}

.home-case-track {
  flex: 1;
  min-height: 140px;
  position: relative;
}

.home-case-slide {
  display: none;
  margin: 0;
}

.home-case-slide.is-active {
  display: block;
  animation: homeCaseIn 0.45s ease;
}

@keyframes homeCaseIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.home-case-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--mall-accent);
  background: var(--mall-accent-soft);
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 8px;
}

.home-carousel-nav {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--mall-border);
  background: var(--mall-bg-elevated);
  color: var(--mall-text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.home-carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
}

.home-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--mall-border);
  padding: 0;
  cursor: pointer;
}

.home-carousel-dot.active {
  background: var(--mall-accent);
  transform: scale(1.15);
}

.home-area-layout {
  display: grid;
  gap: 20px;
  align-items: stretch;
}

@media (min-width: 768px) {
  .home-area-layout {
    grid-template-columns: minmax(220px, 0.88fr) minmax(0, 1.12fr);
    gap: 24px;
    align-items: stretch;
  }
}

@media (min-width: 1024px) {
  .home-area-layout {
    grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  }
}

.home-area-map {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--mall-bg-elevated);
  border: 1px solid var(--mall-border);
  border-radius: var(--mall-radius-lg);
  padding: 20px 16px;
  text-align: center;
  min-height: 220px;
}

.home-uk-map {
  width: 100%;
  max-width: 260px;
  height: auto;
  margin: 0 auto;
  display: block;
}

.home-map-caption {
  font-size: 12px;
  color: var(--mall-text-secondary);
  margin: 10px 0 0;
}

.home-area-side {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.home-area-panel {
  background: var(--mall-bg-elevated);
  border: 1px solid var(--mall-border);
  border-radius: var(--mall-radius-lg);
  padding: 18px 16px;
  box-shadow: var(--mall-shadow-sm);
}

@media (min-width: 768px) {
  .home-area-panel {
    padding: 20px 22px;
  }
}

.home-area-panel-lead {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--mall-text-secondary);
  line-height: 1.55;
}

.home-area-panel-title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--mall-text);
  letter-spacing: -0.01em;
}

.home-area-panel--cities .brand-city-grid {
  margin: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-pc-form {
  margin: 0;
}

.home-pc-field {
  display: block;
  margin: 0;
}

.home-pc-field .form-field-label {
  margin-top: 0;
  margin-bottom: 8px;
}

.home-pc-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

@media (min-width: 480px) {
  .home-pc-row {
    flex-direction: row;
    align-items: stretch;
  }

  .home-pc-row .mall-input {
    flex: 1;
    min-width: 0;
  }

  .home-pc-row .home-pc-submit {
    flex-shrink: 0;
    width: auto;
    margin: 0;
    min-height: 44px;
    padding: 12px 20px;
    font-size: 15px;
    white-space: nowrap;
    align-self: stretch;
  }
}

.home-area-panel .area-check-result {
  margin: 12px 0 0;
}

.home-area-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
}

.home-area-links .mall-btn-ghost {
  flex: 1 1 calc(50% - 5px);
  justify-content: center;
  text-align: center;
  min-height: 40px;
}

@media (min-width: 560px) {
  .home-area-links .mall-btn-ghost {
    flex: 0 1 auto;
  }
}

.home-social-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (min-width: 768px) {
  .home-social-grid { grid-template-columns: repeat(4, 1fr); }
}

.home-social-card {
  display: block;
  text-decoration: none;
  color: inherit;
  background: var(--mall-bg-elevated);
  border: 1px solid var(--mall-border);
  border-radius: var(--mall-radius);
  overflow: hidden;
}

.home-social-pic {
  aspect-ratio: 4/3;
  overflow: hidden;
}

.home-social-pic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-social-body {
  padding: 10px 12px 12px;
}

.home-social-platform {
  font-size: 11px;
  font-weight: 600;
  color: var(--mall-accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.home-social-body p {
  font-size: 13px;
  margin-top: 4px;
  color: var(--mall-text-secondary);
  line-height: 1.4;
}

.mall-ai-fab {
  position: fixed;
  right: 16px;
  bottom: calc(132px + env(safe-area-inset-bottom, 0px));
  z-index: 940;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--mall-accent), #5856d6);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0, 113, 227, 0.35);
}

.mall-ai-fab.is-open {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.mall-ai-fab-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(0, 113, 227, 0.45);
  animation: mallAiBreath 2.4s ease-in-out infinite;
  pointer-events: none;
}

@keyframes mallAiBreath {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.12); opacity: 0.25; }
}

.mall-ai-fab-icon {
  position: relative;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.mall-ai-bubble {
  position: fixed;
  right: 16px;
  bottom: calc(192px + env(safe-area-inset-bottom, 0px));
  z-index: 935;
  max-width: min(280px, calc(100vw - 32px));
  background: var(--mall-bg-elevated);
  border: 1px solid var(--mall-border);
  border-radius: 14px;
  padding: 12px 36px 12px 14px;
  box-shadow: var(--mall-shadow);
  cursor: pointer;
  font-size: 13px;
  line-height: 1.45;
}

.mall-ai-bubble-close {
  position: absolute;
  top: 6px;
  right: 8px;
  border: none;
  background: none;
  font-size: 18px;
  color: var(--mall-text-secondary);
  cursor: pointer;
}

.mall-ai-panel {
  position: relative;
  z-index: 960;
  background: var(--mall-bg-elevated);
  border: 1px solid var(--mall-border);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.16);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mall-ai-panel-resize {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  width: 20px;
  height: 20px;
  cursor: nwse-resize;
  touch-action: none;
}

.mall-ai-panel-resize::after {
  content: '';
  position: absolute;
  inset: 4px;
  border-top: 2px solid rgba(0, 0, 0, 0.12);
  border-left: 2px solid rgba(0, 0, 0, 0.12);
  border-radius: 4px 0 0 0;
}

.mall-ai-panel-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.mall-ai-panel-min {
  border: none;
  background: var(--mall-bg-hover, rgba(0, 0, 0, 0.04));
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: var(--mall-text-secondary);
}

.mall-ai-panel-sound {
  border: none;
  background: var(--mall-bg-hover, rgba(0, 0, 0, 0.04));
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--mall-text-secondary);
  position: relative;
  transition: background 0.2s ease, opacity 0.2s ease;
}

.mall-ai-panel-sound:hover {
  background: rgba(0, 0, 0, 0.08);
}

.mall-ai-panel-sound.is-muted {
  opacity: 0.45;
}

.mall-ai-panel-sound.is-muted::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 22px;
  background: #ff3b30;
  transform: rotate(-45deg);
  border-radius: 1px;
  pointer-events: none;
}

.mall-ai-panel-sound.is-muted svg path:last-child {
  opacity: 0.35;
}

.mall-ai-panel-min:hover {
  background: rgba(0, 0, 0, 0.08);
}

.mall-ai-dock {
  position: fixed;
  z-index: 960;
  right: 16px;
  left: auto;
  bottom: 0;
  width: var(--mall-ai-dock-w, min(420px, calc(100vw - 32px)));
  max-width: calc(100vw - 32px);
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.mall-ai-dock[hidden] {
  display: none !important;
}

.mall-ai-dock.is-background-load {
  position: fixed;
  left: -9999px;
  bottom: 0;
  width: 420px;
  height: 480px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
}

.mall-ai-dock.is-background-load .mall-ai-panel {
  height: 100%;
  min-height: 0;
  max-height: none;
}

.mall-ai-dock #homeComposer.mall-ai-dock-composer,
.mall-ai-dock .mall-ai-dock-composer {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  width: 100%;
  max-width: none;
  margin: 0;
  z-index: 1;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  border-top: none;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.14);
  background: color-mix(in srgb, var(--mall-bg, #f5f5f7) 94%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

[data-theme="dark"] .mall-ai-dock #homeComposer.mall-ai-dock-composer,
[data-theme="dark"] .mall-ai-dock .mall-ai-dock-composer {
  background: color-mix(in srgb, var(--mall-bg, #1c1c1e) 94%, transparent);
}

body.mall-ai-composer-page.mall-ai-dock-open,
body.mall-home-page.mall-ai-dock-open {
  padding-bottom: 0;
}

body.mall-ai-composer-page.mall-ai-dock-open .mall-back-top,
body.mall-home-page.mall-ai-dock-open .mall-back-top {
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
}

.mall-ai-panel-shell {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.mall-ai-dock.is-open .mall-ai-panel-shell {
  grid-template-rows: 1fr;
}

.mall-ai-dock.is-closing .mall-ai-panel-shell {
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s cubic-bezier(0.4, 0, 0.2, 1);
}

.mall-ai-panel-shell > .mall-ai-panel {
  overflow: hidden;
  min-height: 0;
}

.mall-ai-dock .mall-ai-panel {
  display: flex;
  width: 100%;
  height: min(var(--mall-ai-panel-h, 640px), calc(100dvh - 200px));
  min-height: 280px;
  max-height: calc(100dvh - 160px);
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.12);
}

.mall-ai-dock.is-instant,
.mall-ai-dock.is-instant * {
  transition: none !important;
  animation: none !important;
}

@media (min-width: 768px) {
  body.mall-ai-panel-open:not(.mall-home-page)::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.12);
    z-index: 955;
    pointer-events: none;
  }

  .mall-ai-dock .mall-ai-panel {
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
  }

  .mall-ai-panel:not(.mall-ai-dock .mall-ai-panel) {
    top: auto;
    left: auto;
    right: 16px;
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
    width: min(420px, calc(100vw - 32px));
    height: min(640px, calc(100dvh - 120px));
    border-radius: 16px;
  }
}

@media (max-width: 767px) {
  .mall-ai-panel {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    border-radius: 0;
    box-shadow: none;
  }
}

.mall-ai-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--mall-border);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  flex-shrink: 0;
}

.mall-ai-panel-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--mall-text);
}

.mall-ai-panel-title .mall-search-ai-badge {
  margin-right: 0;
}

.mall-ai-panel-close {
  border: none;
  background: var(--mall-bg-hover, rgba(0, 0, 0, 0.04));
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: var(--mall-text-secondary);
}

.mall-ai-panel-close:hover {
  background: rgba(0, 0, 0, 0.08);
}

.mall-ai-panel-frame {
  flex: 1;
  width: 100%;
  min-height: 0;
  border: none;
  background: var(--mall-bg);
}

@media (prefers-reduced-motion: reduce) {
  .mall-ai-fab-ring { animation: none; }
  .home-case-slide.is-active { animation: none; }
  .home-progress-bar { transition: none; }
  .questionnaire-progress-bar { transition: none; }
  .mall-ai-dock,
  .mall-ai-dock .mall-ai-panel,
  .mall-ai-panel-shell {
    transition: none !important;
  }
  .mall-ai-resume-dot { animation: none; }
}

/* ========== 业务问卷页 ========== */
.questionnaire-page .questionnaire-card {
  padding: 0;
  overflow: hidden;
}

.questionnaire-card > .loading,
.questionnaire-card > .error-msg {
  padding: 24px 20px;
}

.questionnaire-shell {
  padding: 0;
}

.questionnaire-demo-badge {
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  color: #8a6d3b;
  background: #fff8e6;
  border-bottom: 1px solid #ffe0a3;
}

.questionnaire-hero {
  display: flex;
  gap: 14px;
  padding: 20px 20px 16px;
  background: linear-gradient(160deg, var(--mall-accent-soft) 0%, transparent 100%);
  border-bottom: 1px solid var(--mall-border);
}

.questionnaire-line-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  background: var(--mall-bg-elevated);
  border-radius: 12px;
  border: 1px solid var(--mall-border);
}

.questionnaire-line-label {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mall-accent);
}

.questionnaire-title {
  margin: 0 0 6px;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.questionnaire-lead {
  margin: 0;
}

.questionnaire-ai-copilot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  margin: 16px 20px 0;
  padding: 14px;
  border: 1px solid rgba(0, 122, 255, 0.22);
  border-radius: 12px;
  background: rgba(239, 248, 255, 0.82);
}

.questionnaire-ai-copilot p {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--mall-text-secondary);
}

.questionnaire-ai-copilot ul {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: flex-start;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  list-style: none;
}

.questionnaire-ai-copilot li {
  padding: 5px 8px;
  border: 1px solid rgba(0, 122, 255, 0.18);
  border-radius: 999px;
  background: var(--mall-bg-elevated);
  color: #24506a;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

@media (max-width: 520px) {
  .questionnaire-ai-copilot {
    grid-template-columns: 1fr;
  }

  .questionnaire-ai-copilot ul {
    justify-content: flex-start;
  }

  .questionnaire-ai-copilot li {
    white-space: normal;
  }
}

.questionnaire-ai-kicker {
  color: var(--mall-accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.questionnaire-ai-completeness {
  margin: 12px 20px 0;
  padding: 14px;
  border: 1px solid rgba(52, 199, 89, 0.24);
  border-radius: 12px;
  background: rgba(243, 252, 246, 0.9);
}

.questionnaire-ai-completeness-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.questionnaire-ai-completeness-mark {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--mall-mint);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.questionnaire-ai-completeness-head strong {
  display: block;
  font-size: 14px;
  line-height: 1.25;
}

.questionnaire-ai-completeness-head p {
  margin: 3px 0 0;
  color: var(--mall-text-secondary);
  font-size: 12px;
}

.questionnaire-ai-completeness-list {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.questionnaire-ai-completeness-list li {
  position: relative;
  padding-left: 16px;
  font-size: 13px;
  line-height: 1.42;
  color: var(--mall-text);
}

.questionnaire-ai-completeness-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mall-mint);
}

.questionnaire-ai-completeness-guards {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 0;
}

.questionnaire-ai-completeness-guards span {
  padding: 5px 8px;
  border: 1px solid rgba(52, 199, 89, 0.22);
  border-radius: 999px;
  background: var(--mall-bg-elevated);
  color: #176332;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
}

.prequote-explanation-contract {
  margin: 12px 0;
  padding: 14px;
  border: 1px solid rgba(0, 113, 227, 0.2);
  border-radius: 12px;
  background: rgba(239, 248, 255, 0.86);
}

.prequote-explanation-head {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.prequote-explanation-head span {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--mall-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.prequote-explanation-head strong {
  display: block;
  font-size: 15px;
  line-height: 1.25;
}

.prequote-explanation-head p,
.prequote-explanation-contract > p {
  margin: 4px 0 0;
  color: var(--mall-text-secondary);
  font-size: 13px;
  line-height: 1.45;
}

.prequote-explanation-grid {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.prequote-explanation-grid h3 {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.3;
}

.prequote-explanation-grid ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.prequote-explanation-grid li {
  position: relative;
  padding-left: 15px;
  color: var(--mall-text);
  font-size: 12px;
  line-height: 1.42;
}

.prequote-explanation-grid li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mall-accent);
}

.prequote-explanation-guards {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.prequote-explanation-guards span {
  padding: 5px 8px;
  border: 1px solid rgba(0, 113, 227, 0.18);
  border-radius: 999px;
  background: var(--mall-bg-elevated);
  color: #24506a;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
}

.prequote-explanation-redline {
  color: #b42318;
  font-weight: 650;
}

@media (min-width: 760px) {
  .prequote-explanation-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.questionnaire-progress {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--mall-bg);
  border-bottom: 1px solid var(--mall-border);
}

.questionnaire-progress-track {
  flex: 1;
  height: 6px;
  background: var(--mall-bg-subtle);
  border-radius: 999px;
  overflow: hidden;
}

.questionnaire-progress-bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--mall-accent), #5856d6);
  border-radius: 999px;
  transition: width 0.35s ease;
}

.questionnaire-progress-text {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--mall-text-secondary);
  min-width: 42px;
  text-align: right;
}

.questionnaire-form {
  padding: 8px 20px 24px;
}

.questionnaire-section {
  padding-top: 16px;
}

.questionnaire-section-title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--mall-text-secondary);
  letter-spacing: 0.02em;
}

.questionnaire-field {
  margin-bottom: 14px;
}

.questionnaire-field label {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
}

.questionnaire-required {
  color: #e5484d;
}

.questionnaire-field-hint {
  margin: -2px 0 6px;
  font-size: 12px;
  color: var(--mall-text-muted);
  line-height: 1.4;
}

.questionnaire-field-error {
  margin: 6px 0 0;
  font-size: 12px;
  color: #e5484d;
}

.questionnaire-field.has-error .mall-input,
.questionnaire-field.has-error .mall-select {
  border-color: #e5484d;
  box-shadow: 0 0 0 3px rgba(229, 72, 77, 0.12);
}

.questionnaire-actions {
  margin-top: 20px;
}

.questionnaire-form .landing-disclaimer {
  margin: 16px 0 0;
  font-size: 12px;
  color: var(--mall-text-muted);
  line-height: 1.5;
}

.questionnaire-success {
  padding: 32px 24px 28px;
  text-align: center;
}

.questionnaire-success-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(52, 199, 89, 0.15);
  color: var(--mall-mint);
  font-size: 28px;
  font-weight: 700;
  line-height: 56px;
}

.questionnaire-success h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.questionnaire-summary {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  text-align: left;
  border: 1px solid var(--mall-border);
  border-radius: var(--mall-radius-md);
  overflow: hidden;
}

.questionnaire-summary li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  font-size: 14px;
  border-bottom: 1px solid var(--mall-border);
}

.questionnaire-summary li:last-child {
  border-bottom: none;
}

.questionnaire-summary span {
  color: var(--mall-text-secondary);
}

.questionnaire-success-actions {
  margin-top: 24px;
}

.questionnaire-demo-note {
  margin-top: 16px;
  font-size: 12px;
  color: var(--mall-text-muted);
  line-height: 1.5;
}

[data-theme="dark"] .questionnaire-demo-badge {
  background: rgba(255, 152, 0, 0.12);
  border-color: rgba(255, 152, 0, 0.35);
  color: #ffb74d;
}

/* Trade flow pages (journey, final quote, survey deposit) */
.trade-page-heading {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
}

.trade-page-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.journey-step {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--mall-border);
  align-items: flex-start;
}

.journey-step:last-child {
  border-bottom: none;
}

.journey-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}

.journey-dot.done {
  background: rgba(52, 199, 89, 0.15);
  color: var(--mall-mint);
}

.journey-dot.active {
  background: rgba(255, 152, 0, 0.12);
  color: #e65100;
  border: 2px solid #ff9800;
}

.journey-dot.pending {
  background: var(--mall-surface-muted, #f5f5f5);
  color: var(--mall-text-muted);
}

.journey-label {
  font-weight: 600;
  margin: 0 0 4px;
}

.journey-meta {
  font-size: 0.85rem;
  color: var(--mall-text-muted);
  margin: 0;
}

.journey-actions {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.deposit-policy {
  background: #fff8e6;
  border: 1px solid #ffe0a3;
  border-radius: var(--mall-radius-md, 8px);
  padding: 12px;
  margin: 12px 0;
  font-size: 13px;
  color: #8a6d3b;
  line-height: 1.5;
}

.deposit-badge {
  display: inline-block;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  margin-right: 6px;
  margin-bottom: 4px;
  background: var(--mall-surface-muted, #f0f0f0);
}

.deposit-badge.warn {
  background: #ffe8e8;
  color: #a33;
}

.deposit-badge.ok {
  background: rgba(52, 199, 89, 0.15);
  color: var(--mall-mint);
}

.final-quote-total {
  font-size: 1.1rem;
  margin: 16px 0 8px;
}

.final-quote-expired {
  color: #c62828;
  font-weight: 600;
  margin: 8px 0;
}

[data-theme="dark"] .deposit-policy {
  background: rgba(255, 193, 7, 0.08);
  border-color: rgba(255, 193, 7, 0.25);
  color: #ffcc80;
}

[data-theme="dark"] .deposit-badge.warn {
  background: rgba(244, 67, 54, 0.15);
  color: #ef9a9a;
}

[data-theme="dark"] .final-quote-expired {
  color: #ef5350;
}

/* Survey appointment picker (date strip + slot cards) */
.survey-appt {
  margin-top: 16px;
}

.survey-appt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.survey-appt-month {
  font-size: 16px;
  font-weight: 600;
  color: var(--mall-text);
}

.survey-appt-refresh {
  border: none;
  background: none;
  padding: 4px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--mall-accent, #0071e3);
  cursor: pointer;
}

.survey-appt-dates {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 14px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.survey-appt-dates::-webkit-scrollbar {
  display: none;
}

.survey-appt-date {
  flex: 0 0 auto;
  min-width: 52px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(0, 113, 227, 0.12);
  background: rgba(0, 113, 227, 0.06);
  color: var(--mall-text-secondary);
  font-size: 13px;
  line-height: 1.2;
  cursor: pointer;
  text-align: center;
}

.survey-appt-date-wd {
  display: block;
  font-size: 12px;
}

.survey-appt-date-num {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-top: 2px;
}

.survey-appt-date.is-active {
  background: var(--mall-accent, #0071e3);
  border-color: var(--mall-accent, #0071e3);
  color: #fff;
}

.survey-appt-group {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(0, 113, 227, 0.14);
  background: var(--mall-bg-elevated, #fff);
}

.survey-appt-group-head {
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  color: #24506a;
  background: linear-gradient(90deg, rgba(0, 113, 227, 0.12), rgba(0, 113, 227, 0.04));
}

.survey-appt-rows {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.survey-appt-row {
  display: grid;
  grid-template-columns: minmax(92px, 1.1fr) repeat(auto-fit, minmax(96px, 1fr));
  gap: 8px;
  align-items: stretch;
}

.survey-appt-day-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 8px;
  border-radius: 10px;
  border: 1px solid rgba(0, 113, 227, 0.18);
  background: #fff;
  text-align: center;
}

.survey-appt-day-card-text {
  font-size: 12px;
  line-height: 1.45;
  font-weight: 600;
  color: var(--mall-text);
}

.survey-appt-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 72px;
  padding: 10px 8px;
  border-radius: 10px;
  border: 1px solid rgba(0, 113, 227, 0.22);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.survey-appt-slot-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--mall-accent, #0071e3);
}

.survey-appt-slot-divider {
  width: 72%;
  border-top: 1px dashed rgba(0, 113, 227, 0.28);
}

.survey-appt-slot-left {
  font-size: 12px;
  color: #4a7ea8;
}

.survey-appt-slot.is-selected {
  border-color: var(--mall-accent, #0071e3);
  background: rgba(0, 113, 227, 0.08);
  box-shadow: 0 0 0 2px rgba(0, 113, 227, 0.12);
}

.survey-appt-hint {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--mall-text-secondary);
}

.survey-appt-empty {
  margin: 0;
  padding: 16px;
  text-align: center;
  font-size: 14px;
  color: var(--mall-text-secondary);
}

@media (max-width: 420px) {
  .survey-appt-row {
    grid-template-columns: 1fr 1fr;
  }

  .survey-appt-day-card {
    grid-column: 1 / -1;
  }
}

.journey-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.journey-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--mall-border);
  border-radius: var(--mall-radius-md, 8px);
  background: var(--mall-surface, #fff);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease;
}

.journey-card:active,
.journey-card:hover {
  border-color: var(--mall-mint, #34c759);
}

.journey-card-main {
  flex: 1;
  min-width: 0;
}

.journey-card-title {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}

.journey-card-meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--mall-text-muted);
  line-height: 1.4;
}

.journey-card-badge {
  flex-shrink: 0;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 152, 0, 0.15);
  color: #e65100;
  font-weight: 600;
}

[data-theme="dark"] .journey-card-badge {
  background: rgba(255, 152, 0, 0.12);
  color: #ffb74d;
}

.mall-ai-page-prompts {
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid var(--mall-border);
  border-radius: var(--mall-radius-md, 8px);
  background: var(--mall-surface, #fff);
}

.mall-ai-page-prompts-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--mall-text-secondary);
  font-size: 13px;
}

.mall-ai-page-prompts-head span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--mall-text-primary, #171717);
  color: var(--mall-surface, #fff);
  font-size: 11px;
  font-weight: 700;
}

.mall-ai-page-prompts-head strong {
  color: var(--mall-text-primary, #171717);
  font-weight: 600;
}

.mall-ai-page-prompt-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mall-ai-page-prompt {
  border: 1px solid var(--mall-border);
  border-radius: 8px;
  background: var(--mall-surface-muted, #f7f7f7);
  color: var(--mall-text-primary, #171717);
  padding: 8px 10px;
  font-size: 13px;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.mall-ai-page-prompt:hover,
.mall-ai-page-prompt:focus {
  border-color: var(--mall-mint, #34c759);
  background: rgba(52, 199, 89, 0.08);
}

.mall-ai-journey-banner {
  margin: 0 0 16px;
  padding: 14px;
  border: 1px solid rgba(0, 113, 227, 0.16);
  border-radius: var(--mall-radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(245,249,255,0.96));
  box-shadow: var(--mall-shadow-sm);
}

.mall-ai-journey-main {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.mall-ai-journey-mark {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 24px;
  padding: 0 8px;
  border-radius: var(--mall-radius-pill);
  background: var(--mall-accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
}

.mall-ai-journey-main strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.mall-ai-journey-main p {
  margin-top: 4px;
  color: var(--mall-text-secondary);
  font-size: 13px;
  line-height: 1.45;
}

.mall-ai-journey-meta,
.mall-ai-journey-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.mall-ai-journey-meta span {
  padding: 5px 9px;
  border-radius: var(--mall-radius-pill);
  background: rgba(0,0,0,0.045);
  color: var(--mall-text-secondary);
  font-size: 12px;
  line-height: 1.25;
}

.mall-ai-journey-question {
  border: 1px solid rgba(0, 113, 227, 0.2);
  border-radius: var(--mall-radius-pill);
  background: #fff;
  color: var(--mall-accent);
  padding: 7px 10px;
  font-size: 12px;
  line-height: 1.3;
  cursor: pointer;
  text-align: left;
}

.mall-ai-journey-question:hover,
.mall-ai-journey-question:focus {
  background: var(--mall-accent-soft);
}

@media (max-width: 640px) {
  .mall-ai-page-prompt-list {
    display: grid;
    grid-template-columns: 1fr;
  }
}
