/* ==========================================================
   小象汇 H5 移动端全局样式库 (Zero External Dependencies)
   针对微信公众号 Webview 极限性能与首屏加载速度优化
   ========================================================== */

:root {
  --primary-blue: #2563eb;
  --primary-gradient: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  --card-bg: #ffffff;
  --card-border: #eef2f8;
  --bg-page: #f5f7fc;
  --text-main: #1f2937;
  --text-sub: #8c96a8;
  --text-muted: #64748b;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-card: 0 4px 16px rgba(15, 60, 160, 0.04);
  --shadow-glow: 0 8px 20px rgba(37, 99, 235, 0.25);

  /* 语义化业务功能色盘 (Functional Semantics) */
  --color-iot: #2563eb;
  --color-iot-bg: #eff6ff;
  --color-subsidy: #ea580c;
  --color-subsidy-bg: #fff7ed;
  --color-health: #10b981;
  --color-health-bg: #ecfdf5;
  --color-promo: #dc2626;
  --color-promo-bg: #fef2f2;
  --color-points: #7c3aed;
  --color-points-bg: #f5f0ff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* 移动端页面主容器（适配屏幕居中与安全边距） */
.app-container {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  background-color: var(--bg-page);
  position: relative;
  padding-bottom: calc(76px + env(safe-area-inset-bottom));
}

/* 顶部蓝色沉浸区（首页） */
.top-hero-bg {
  background: linear-gradient(180deg, #1d4ed8 0%, #2563eb 55%, #60a5fa 85%, #f5f7fc 100%);
  padding: calc(14px + env(safe-area-inset-top)) 16px 20px 16px;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

/* 页面主标题栏 */
.nav-header {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 48px;
  margin-bottom: 12px;
}

.nav-header .page-title {
  color: #ffffff;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-shadow: 0 2px 10px rgba(12, 54, 138, 0.22);
}

/* 搜索栏卡片 */
.search-box {
  background: #ffffff;
  border-radius: 26px;
  height: 44px;
  display: flex;
  align-items: center;
  padding: 0 16px;
  box-shadow: 0 4px 14px rgba(22, 66, 150, 0.08);
  position: relative;
  cursor: pointer;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 13.5px;
  color: var(--text-main);
  padding-right: 10px;
}

.search-input::placeholder {
  color: #8fa0be;
}

.search-icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

/* 主内容区卡片层叠流 */
.content-area {
  padding: 0 14px;
  margin-top: -8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 2;
}

/* 统一卡片基础样式 (轻浮雕微边框与层次阴影) */
.card-panel {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

/* 1. 动态轮播视觉区 */
.carousel-section {
  padding: 14px 12px 14px 12px;
}

.scroll-row {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}

.scroll-row::-webkit-scrollbar {
  display: none;
}

.product-slide-card {
  flex: 0 0 calc(33.333% - 7px);
  min-width: 108px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.product-slide-card:active {
  transform: scale(0.97);
}

.product-thumb-box {
  width: 100%;
  height: 124px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
}

.thumb-blue {
  background: linear-gradient(180deg, #d8e9ff 0%, #edf4ff 100%);
}

.thumb-green {
  background: linear-gradient(180deg, #d3f5f0 0%, #ebfaf8 100%);
}

.thumb-orange {
  background: linear-gradient(180deg, #ffeacf 0%, #fff7ec 100%);
}

.product-slide-card .p-title {
  font-size: 14px;
  font-weight: 700;
  color: #1a2538;
  margin-bottom: 4px;
}

.product-slide-card .p-desc {
  font-size: 10.5px;
  color: #7b889e;
  line-height: 1.35;
  padding: 0 2px;
}

/* 2. 客服热线 & 公告卡片 */
.notice-card {
  padding: 14px 16px;
}

.hotline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f4f9;
}

.hotline-info {
  display: flex;
  align-items: center;
  gap: 9px;
}

.hotline-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.hotline-label {
  font-size: 15px;
  font-weight: 700;
  color: #17243b;
}

.hotline-number {
  font-size: 16px;
  font-weight: 700;
  color: #17243b;
  letter-spacing: 0.3px;
}

.arrow-right {
  color: #bcc6d5;
  font-size: 15px;
  font-weight: 600;
}

.announcement-row {
  padding-top: 10px;
  font-size: 12px;
  color: #4b586e;
  line-height: 1.5;
}

.announcement-row .announce-tag {
  font-weight: 600;
  color: #1e293b;
}

/* 3. 签到领饮水补贴 CTA 横幅 */
.cta-banner {
  background: var(--primary-gradient);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.cta-banner::after {
  content: "";
  position: absolute;
  right: -25px;
  bottom: -30px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
}

.cta-text-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  z-index: 1;
}

.cta-title {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.5px;
}

.cta-subtitle {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.2px;
}

.cta-btn {
  background: #ffffff;
  color: #2475f2;
  border: none;
  outline: none;
  padding: 10px 18px;
  border-radius: 24px;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(11, 46, 107, 0.16);
  cursor: pointer;
  white-space: nowrap;
  z-index: 1;
  transition: all 0.15s ease;
}

.cta-btn:active {
  transform: scale(0.95);
  background: #f2f7ff;
}

/* 4. 快捷功能 8 宫格区 */
.grid-menu-card {
  padding: 16px 10px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  row-gap: 18px;
  column-gap: 6px;
}

.grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.grid-item:active {
  transform: scale(0.94);
}

.grid-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 7px;
  position: relative;
}

.grid-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #2c3a4f;
}

/* 底部品牌使命标语 */
.page-disclaimer {
  text-align: center;
  font-size: 11.5px;
  color: #94a3b8;
  padding: 16px 0 10px 0;
  letter-spacing: 0.5px;
}

/* 底部固定导航栏 Tab Bar (适配 iPhone 安全底边) */
.bottom-tab-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  height: calc(56px + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: #ffffff;
  border-top: 1px solid #edf1f7;
  box-shadow: 0 -4px 14px rgba(15, 23, 42, 0.05);
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 100;
}

.tab-item {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #748398;
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
}

.tab-item:active {
  transform: scale(0.92);
}

.tab-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tab-label {
  font-size: 11.5px;
  font-weight: 500;
  line-height: 1.2;
}

/* 激活态小象品牌纯净蓝 */
.tab-item.active {
  color: #2563eb;
}

.tab-item.active .tab-label {
  font-weight: 700;
}

/* 提示消息弹窗 (轻量 Toast) */
.toast-tip {
  position: fixed;
  bottom: calc(72px + env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(15, 23, 42, 0.88);
  color: #ffffff;
  padding: 9px 18px;
  border-radius: 20px;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 999;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

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

/* ==========================================================
   二级子页面专用顶部与组件样式
   ========================================================== */
.subpage-header {
  background: linear-gradient(180deg, #1d4ed8 0%, #2563eb 55%, #60a5fa 85%, #f5f7fc 100%);
  padding: calc(16px + env(safe-area-inset-top)) 16px 24px 16px;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  color: #ffffff;
  text-align: center;
  position: relative;
}

.subpage-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.8px;
  margin-bottom: 4px;
}

.subpage-subtitle {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.88);
}

/* 饮水激励页面组件 */
.incentive-pool-card {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.28);
  position: relative;
  overflow: hidden;
}

.pool-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 4px;
}

.pool-amount {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.pool-progress-wrap {
  background: rgba(255, 255, 255, 0.2);
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
}

.pool-progress-bar {
  width: 33.3%;
  height: 100%;
  background: #38bdf8;
  border-radius: 4px;
}

.pool-stats-row {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.85);
}

.streak-days-row {
  display: flex;
  justify-content: space-between;
  margin: 14px 0 16px 0;
}

.streak-day-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.streak-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #64748b;
  font-size: 11.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.streak-circle.done {
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.35);
}

.streak-circle.today {
  border: 2px solid #2563eb;
  background: #eff6ff;
  color: #2563eb;
}

.streak-day-name {
  font-size: 11px;
  color: #64748b;
}

.checkin-btn {
  width: 100%;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border: none;
  padding: 13px;
  border-radius: 24px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
  transition: all 0.15s ease;
}

.checkin-btn:active {
  transform: scale(0.97);
}

.water-gauge-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
}

.water-gauge-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.water-intake-val {
  font-size: 22px;
  font-weight: 800;
  color: #0284c7;
}

/* 邀请页面组件 */
.invite-banner-card {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.25);
}

.invite-code-box {
  background: #ffffff;
  border: 2px dashed #93c5fd;
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  margin: 14px 0;
}

.invite-code-val {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 4px;
  color: #2563eb;
  margin: 6px 0;
}

.invite-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  padding: 16px 8px;
  gap: 8px;
}

.invite-stat-num {
  font-size: 20px;
  font-weight: 800;
  color: #1e3a8a;
}

.invite-stat-lbl {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 3px;
}

/* 售后服务组件 */
.service-tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 16px 8px;
  text-align: center;
}

.service-tool-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.service-tool-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-tool-label {
  font-size: 12px;
  font-weight: 600;
  color: #334155;
}

.device-info-card {
  padding: 16px;
  border-left: 4px solid #2563eb;
}

.device-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #dcfce7;
  color: #15803d;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 10px;
}

/* 我的个人中心组件 */
.user-header-gradient {
  background: linear-gradient(180deg, #1d4ed8 0%, #2563eb 55%, #60a5fa 85%, #f5f7fc 100%);
  padding: calc(14px + env(safe-area-inset-top)) 16px 28px 16px;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  position: relative;
}

.user-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.user-card-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar-box {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  position: relative;
  flex-shrink: 0;
}

.vip-badge-icon {
  position: absolute;
  bottom: -2px;
  right: -2px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 8px;
  border: 1.5px solid #ffffff;
  letter-spacing: 0.3px;
}

.user-info-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: #ffffff;
}

.user-nickname {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.user-uid-tag {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  gap: 6px;
}

.user-status-pill {
  background: rgba(255, 255, 255, 0.2);
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 10.5px;
}

.black-card-vip {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.15);
  margin-top: 14px;
  color: #fde68a;
  cursor: pointer;
}

.black-card-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.black-card-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #fef08a;
}

.black-card-sub {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 2px;
}

.black-card-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 12px;
  white-space: nowrap;
}

.assets-dashboard-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 16px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-card);
}

.assets-head-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 12px;
}

.assets-title-text {
  font-size: 14.5px;
  font-weight: 700;
  color: #1e293b;
}

.assets-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
}

.asset-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.asset-val {
  font-size: 19px;
  font-weight: 800;
  color: #1e293b;
}

.asset-lbl {
  font-size: 11px;
  color: #64748b;
}

.iot-device-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 16px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-card);
}

.iot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.iot-device-name {
  font-size: 14.5px;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.iot-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px 8px;
  text-align: center;
  margin-bottom: 12px;
}

.iot-metric-val {
  font-size: 17px;
  font-weight: 800;
  color: #2563eb;
}

.iot-metric-lbl {
  font-size: 10.5px;
  color: #64748b;
  margin-top: 2px;
}

.iot-filter-bar {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: #475569;
  margin-top: 6px;
}

.order-status-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  text-align: center;
  padding: 14px 4px;
}

.order-status-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  position: relative;
}

.order-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.order-badge-num {
  position: absolute;
  top: -2px;
  right: -3px;
  background: #ef4444;
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
  padding: 0 4px;
  border-radius: 8px;
  line-height: 14px;
  border: 1.5px solid #ffffff;
}

.order-label {
  font-size: 11.5px;
  font-weight: 600;
  color: #334155;
}

.privilege-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  padding: 14px 4px;
  gap: 8px;
}

.privilege-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.privilege-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.privilege-label {
  font-size: 11.5px;
  font-weight: 600;
  color: #1e293b;
}

.user-menu-list {
  padding: 2px 0;
}

.user-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  transition: background 0.15s ease;
}

.user-menu-item:active {
  background: #f8fafc;
}

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

.user-menu-left {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
}

.user-menu-badge {
  font-size: 11px;
  color: #94a3b8;
}

/* ==========================================================
   商品列表页面专用样式 (Product List Page)
   ========================================================== */
.subpage-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  position: relative;
}

.subpage-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease;
}

.subpage-back-btn:active {
  background: rgba(255, 255, 255, 0.4);
}

.category-tabs-wrap {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 2px 0;
  -webkit-overflow-scrolling: touch;
}

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

.category-tab-btn {
  flex-shrink: 0;
  padding: 7px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.2s ease;
}

.category-tab-btn.active {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 3px 10px rgba(37, 99, 235, 0.25);
}

.product-item-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  gap: 13px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--card-border);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  position: relative;
  overflow: hidden;
}

.product-item-card:active {
  transform: scale(0.99);
}

.product-card-thumb-wrap {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.product-card-info-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-width: 0;
}

.product-card-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
}

.product-card-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-card-desc {
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.45;
  margin-top: 3px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}

.product-tag-pill {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.tag-blue {
  background: #eff6ff;
  color: #2563eb;
}

.tag-green {
  background: #f0fdf4;
  color: #16a34a;
}

.tag-orange {
  background: #fff7ed;
  color: #ea580c;
}

.product-bottom-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 8px;
}

.product-price-box {
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.price-symbol {
  font-size: 12px;
  font-weight: 700;
  color: #dc2626;
}

.price-num {
  font-size: 18px;
  font-weight: 800;
  color: #dc2626;
  letter-spacing: -0.3px;
}

.price-original {
  font-size: 11px;
  color: #94a3b8;
  text-decoration: line-through;
  margin-left: 2px;
}

.product-buy-btn {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border: none;
  outline: none;
  padding: 6px 14px;
  border-radius: 18px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 3px 8px rgba(37, 99, 235, 0.28);
  transition: opacity 0.15s ease;
}

.product-buy-btn:active {
  opacity: 0.85;
}

/* ==========================================================
   商城三大专区组件样式 (好物区 / 积分兑换区 / 福利区)
   ========================================================== */
.zone-tabs-nav {
  display: flex;
  background: #ffffff;
  border-radius: 14px;
  padding: 4px;
  box-shadow: 0 4px 14px rgba(22, 66, 150, 0.08);
  border: 1px solid #e2e8f0;
  position: sticky;
  top: 8px;
  z-index: 20;
}

.zone-tab-item {
  flex: 1;
  text-align: center;
  padding: 9px 4px;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  background: transparent;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.zone-tab-item.active {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.26);
}

.zone-tab-item.active-points {
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.26);
}

.zone-tab-item.active-benefit {
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.26);
}

.zone-banner-card {
  padding: 11px 14px;
  border-radius: var(--radius-md);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.zone-banner-goods {
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border: 1px solid #bfdbfe;
  color: #1e3a8a;
}

.zone-banner-points {
  background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 100%);
  border: 1px solid #fed7aa;
  color: #9a3412;
}

.zone-banner-benefit {
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
  border: 1px solid #fecdd3;
  color: #9f1239;
}

.points-price-box {
  display: flex;
  align-items: baseline;
  gap: 2px;
}

.points-num {
  font-size: 18px;
  font-weight: 800;
  color: #ea580c;
  letter-spacing: -0.3px;
}

.points-unit {
  font-size: 11.5px;
  font-weight: 700;
  color: #ea580c;
}

.seckill-price-box {
  display: flex;
  align-items: baseline;
  gap: 3px;
}

.seckill-price-num {
  font-size: 18px;
  font-weight: 800;
  color: #e11d48;
  letter-spacing: -0.3px;
}

.seckill-progress-box {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.seckill-progress-bar {
  flex: 1;
  height: 5px;
  background: #ffe4e6;
  border-radius: 3px;
  overflow: hidden;
}

.seckill-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #f43f5e, #e11d48);
  border-radius: 3px;
}

.seckill-progress-txt {
  font-size: 10px;
  color: #9f1239;
  font-weight: 600;
}

/* 积分商城专属组件 */
.points-user-card {
  background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
  border: 1px solid #fed7aa;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 3px 12px rgba(234, 88, 12, 0.08);
}

.points-user-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.points-user-label {
  font-size: 12px;
  color: #9a3412;
  font-weight: 600;
}

.points-user-value {
  font-size: 22px;
  font-weight: 800;
  color: #ea580c;
  line-height: 1.2;
}

.points-user-sub {
  font-size: 11px;
  color: #c2410c;
  opacity: 0.85;
}

.earn-points-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: linear-gradient(135deg, #ea580c 0%, #c2410c 100%);
  color: #ffffff;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 20px;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(234, 88, 12, 0.3);
  transition: transform 0.15s ease;
}

.earn-points-btn:active {
  transform: scale(0.96);
}

.points-filter-bar,
.benefit-filter-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 2px 0 4px 0;
  scrollbar-width: none;
}
.points-filter-bar::-webkit-scrollbar,
.benefit-filter-bar::-webkit-scrollbar {
  display: none;
}

.points-filter-btn {
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.points-filter-btn.active {
  background: #ea580c;
  color: #ffffff;
  border-color: #ea580c;
  box-shadow: 0 2px 8px rgba(234, 88, 12, 0.28);
}

/* 福利区秒杀场次时间轴 */
.benefit-session-bar {
  display: flex;
  gap: 8px;
  background: #ffffff;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid #fecdd3;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.06);
}

.benefit-session-btn {
  flex: 1;
  text-align: center;
  padding: 6px 4px;
  border-radius: 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  transition: all 0.2s ease;
}

.benefit-session-time {
  font-size: 13px;
  font-weight: 800;
  color: #64748b;
}

.benefit-session-status {
  font-size: 10px;
  font-weight: 600;
  color: #94a3b8;
}

.benefit-session-btn.active {
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  box-shadow: 0 3px 10px rgba(225, 29, 72, 0.28);
}

.benefit-session-btn.active .benefit-session-time {
  color: #ffffff;
}

.benefit-session-btn.active .benefit-session-status {
  color: #ffe4e6;
}

/* 规则提示卡片 */
.mall-rule-tip-card {
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.6;
}



/* ==========================================================
   设备状态与滤芯寿命监测专用页面 (Device Monitoring Page)
   ========================================================== */
.device-hero-card {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.28);
  position: relative;
  overflow: hidden;
}

.device-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.device-hero-title {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.device-hero-sub {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.82);
  margin-top: 3px;
}

.device-status-pill-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(16, 185, 129, 0.2);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: #a7f3d0;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

.device-status-dot-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
}

.device-stats-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  padding: 10px 6px;
  text-align: center;
}

.device-stat-val {
  font-size: 17px;
  font-weight: 800;
  color: #ffffff;
}

.device-stat-lbl {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.78);
  margin-top: 2px;
}

.filter-item-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
  transition: all 0.2s ease;
}

.filter-item-card:last-child {
  margin-bottom: 0;
}

.filter-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.filter-name-box {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-order-badge {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #eff6ff;
  color: #2563eb;
  font-size: 11px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.filter-title {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
}

.filter-life-percent {
  font-size: 16px;
  font-weight: 800;
  color: #2563eb;
}

.filter-progress-track {
  height: 7px;
  background: #f1f5f9;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.filter-progress-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #3b82f6 0%, #1d4ed8 100%);
  transition: width 0.5s ease;
}

.filter-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: #64748b;
}

.device-wash-btn {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}

.device-wash-btn:active {
  background: rgba(255, 255, 255, 0.35);
}



/* ==========================================================
   公司简介页面专用样式 (Company Profile Page)
   ========================================================== */
.company-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: #f8fafc;
  border-radius: 12px;
  padding: 12px 6px;
  border: 1px solid #f1f5f9;
}

.company-stat-cell {
  text-align: center;
}

.company-stat-val {
  font-size: 16px;
  font-weight: 800;
  color: #2563eb;
}

.company-stat-name {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
}

.company-pillar-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.company-pillar-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
}

.company-pillar-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.company-pillar-content {
  flex: 1;
}

.company-pillar-title {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 2px;
}

.company-pillar-desc {
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
}

.cert-tag {
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  font-weight: 600;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 6px;
  padding: 6px 10px;
}

/* ==========================================================
   品牌故事页面专用样式 (Brand Story Page)
   ========================================================== */
.story-hero-icon-box {
  width: 72px;
  height: 72px;
  margin: 0 auto 12px auto;
  border-radius: 20px;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.story-pillar-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 10px;
  border-bottom: 1px solid #f1f5f9;
}

.story-pillar-item:last-child {
  border-bottom: none;
}

.story-pillar-badge {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #ecfdf5;
  color: #059669;
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.story-pillar-text {
  flex: 1;
}

.story-pillar-head {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 3px;
}

.story-pillar-sub {
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
}

/* 时间轴 */
.story-timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-left: 8px;
}

.timeline-step {
  display: flex;
  position: relative;
  padding-bottom: 18px;
}

.timeline-step:last-child {
  padding-bottom: 4px;
}

.timeline-step::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 14px;
  bottom: 0;
  width: 2px;
  background: #e2e8f0;
}

.timeline-step:last-child::before {
  display: none;
}

.timeline-node {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #94a3b8;
  flex-shrink: 0;
  margin-top: 2px;
  z-index: 1;
}

.timeline-node.active-node {
  border-color: #059669;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.timeline-content {
  margin-left: 12px;
  flex: 1;
}

.timeline-year {
  font-size: 11px;
  font-weight: 700;
  color: #059669;
  margin-bottom: 2px;
}

.timeline-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 2px;
}

.timeline-desc {
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
}

/* 寄语卡片 */
.story-quote-box {
  padding: 20px 18px;
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1px solid #bbf7d0;
  position: relative;
}

.story-quote-mark {
  font-size: 38px;
  line-height: 1;
  color: #059669;
  opacity: 0.35;
  font-family: Georgia, serif;
}

.story-quote-text {
  font-size: 13px;
  color: #065f46;
  line-height: 1.8;
  font-weight: 500;
  margin: 4px 0 10px 0;
  text-indent: 1.5em;
}

.story-quote-author {
  text-align: right;
  font-size: 12px;
  color: #047857;
  font-weight: 700;
}

/* ==========================================================
   空状态 / 上线中占位页面组件 (Coming Soon State)
   ========================================================== */
.coming-soon-card {
  padding: 60px 24px 48px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.coming-soon-icon {
  width: 80px;
  height: 80px;
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.coming-soon-title {
  font-size: 20px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 8px;
}

.coming-soon-subtitle {
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
  max-width: 260px;
  margin-bottom: 24px;
}

.coming-soon-back-btn {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border: none;
  border-radius: 22px;
  padding: 10px 28px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
  transition: opacity 0.15s ease;
}

.coming-soon-back-btn:active {
  opacity: 0.85;
}

/* ==========================================================
   收货地址管理组件样式 (Shipping Address Management)
   ========================================================== */
.address-list-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 90px;
}

.address-item-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-card);
  padding: 16px 16px 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all 0.2s ease;
}

.address-user-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.address-name {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
}

.address-phone {
  font-size: 14px;
  font-weight: 600;
  color: #475569;
}

.address-tag-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 6px;
}

.tag-home {
  background: #eff6ff;
  color: #2563eb;
}

.tag-company {
  background: #fff7ed;
  color: #ea580c;
}

.tag-other {
  background: #f1f5f9;
  color: #64748b;
}

.address-default-badge {
  font-size: 11px;
  font-weight: 700;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  padding: 2px 7px;
  border-radius: 6px;
  margin-left: auto;
}

.address-detail-text {
  font-size: 13px;
  color: #475569;
  line-height: 1.55;
}

.address-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #f1f5f9;
  padding-top: 10px;
  margin-top: 2px;
}

.address-set-default-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: #64748b;
  cursor: pointer;
  user-select: none;
}

.address-set-default-btn.active {
  color: #2563eb;
  font-weight: 600;
}

.address-btn-group {
  display: flex;
  gap: 16px;
  align-items: center;
}

.address-act-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  color: #64748b;
  cursor: pointer;
  background: transparent;
  border: none;
  transition: color 0.15s ease;
}

.address-act-btn:hover, .address-act-btn:active {
  color: #2563eb;
}

.address-act-btn.delete:hover, .address-act-btn.delete:active {
  color: #dc2626;
}

/* 底部浮动新增地址按钮栏 */
.address-footer-fixed {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom)) 16px;
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.06);
  z-index: 90;
}

.address-add-primary-btn {
  width: 100%;
  height: 46px;
  border-radius: 23px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border: none;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.32);
  transition: opacity 0.15s ease, transform 0.1s ease;
}

.address-add-primary-btn:active {
  transform: scale(0.98);
  opacity: 0.9;
}

/* 抽屉弹窗 (Drawer Modal) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(3px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal-sheet {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) translateY(100%);
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  z-index: 210;
  max-height: 85vh;
  overflow-y: auto;
  padding: 20px 18px calc(24px + env(safe-area-inset-bottom)) 18px;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.15);
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-sheet.show {
  transform: translateX(-50%) translateY(0);
}

.modal-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}

.modal-title {
  font-size: 17px;
  font-weight: 800;
  color: #1e293b;
}

.modal-close-btn {
  background: #f1f5f9;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  cursor: pointer;
}

.form-item-group {
  margin-bottom: 14px;
}

.form-item-label {
  font-size: 12.5px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.form-input-field, .form-textarea-field, .form-select-field {
  width: 100%;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 13.5px;
  color: #1e293b;
  outline: none;
  transition: border-color 0.15s ease;
  font-family: inherit;
}

.form-input-field:focus, .form-textarea-field:focus, .form-select-field:focus {
  border-color: #2563eb;
  background: #ffffff;
}

.form-textarea-field {
  min-height: 68px;
  resize: none;
}

.tag-selector-row {
  display: flex;
  gap: 10px;
}

.tag-opt-btn {
  flex: 1;
  padding: 7px 0;
  text-align: center;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tag-opt-btn.active {
  background: #eff6ff;
  color: #2563eb;
  border-color: #93c5fd;
}

.switch-toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0 6px 0;
}

.switch-label-text {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
}

.switch-subtext {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 2px;
}

.toggle-switch-box {
  position: relative;
  width: 44px;
  height: 24px;
  background: #cbd5e1;
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.toggle-switch-box.active {
  background: #2563eb;
}

.toggle-circle {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #ffffff;
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggle-switch-box.active .toggle-circle {
  transform: translateX(20px);
}

.form-submit-btn {
  width: 100%;
  height: 44px;
  margin-top: 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border: none;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.28);
}

/* ==========================================================
   邀请好友记录列表与状态徽章 (Invite Records & Status)
   ========================================================== */
.invite-records-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.invite-records-title {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.invite-records-count {
  font-size: 12px;
  color: #2563eb;
  background: #eff6ff;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 700;
}

.invite-filter-bar {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  background: #f8fafc;
  padding: 4px;
  border-radius: 10px;
}

.invite-filter-btn {
  flex: 1;
  text-align: center;
  padding: 6px 4px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  border-radius: 7px;
  border: none;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.invite-filter-btn.active {
  background: #ffffff;
  color: #2563eb;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.invite-member-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.invite-member-card {
  background: #f8fafc;
  border: 1px solid #edf2f7;
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.invite-member-card.hidden {
  display: none;
}

.invite-member-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.invite-member-user {
  display: flex;
  align-items: center;
  gap: 8px;
}

.invite-member-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.invite-member-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.3;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
}

.invite-relation-tag {
  display: inline-flex;
  align-items: center;
  font-size: 10.5px;
  font-weight: 600;
  color: #4f46e5;
  background: #eef2ff;
  border: 1px solid #e0e7ff;
  padding: 1px 6px;
  border-radius: 4px;
}

.invite-member-date {
  font-size: 11px;
  color: #94a3b8;
  margin-top: 1px;
}

.invite-status-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: #ffffff;
  border-radius: 8px;
  padding: 8px 10px;
  border: 1px solid #f1f5f9;
}

.invite-status-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.invite-status-label {
  font-size: 11px;
  color: #64748b;
}

.invite-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 6px;
  width: fit-content;
}

.invite-badge.success {
  background: #ecfdf5;
  color: #059669;
}

.invite-badge.primary {
  background: #eff6ff;
  color: #2563eb;
}

.invite-badge.warning {
  background: #fffbeb;
  color: #d97706;
}

.invite-badge.muted {
  background: #f1f5f9;
  color: #64748b;
}

.invite-member-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: #64748b;
  padding-top: 2px;
}

.invite-action-btn {
  border: none;
  background: #eff6ff;
  color: #2563eb;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.invite-action-btn:active {
  background: #dbeafe;
}

.invite-view-more-box {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
  text-align: center;
}

.invite-view-more-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: #2563eb;
  text-decoration: none;
  padding: 8px 18px;
  border-radius: 20px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  transition: all 0.2s ease;
  width: 100%;
}

.invite-view-more-link:active {
  background: #dbeafe;
  transform: scale(0.99);
}

.invite-fold-hint {
  font-size: 11.5px;
  color: #94a3b8;
  text-align: center;
  margin-top: 8px;
}

/* ==========================================================
   邀请明细独立详情页 (Invite Detail Page)
   ========================================================== */
.invite-detail-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  padding: 16px 8px;
  gap: 6px;
}

.invite-detail-stat-val {
  font-size: 18px;
  font-weight: 800;
  color: #1e3a8a;
}

.invite-detail-stat-lbl {
  font-size: 11px;
  color: #64748b;
  margin-top: 3px;
}

.invite-search-bar {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-card);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.invite-search-input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 13px;
  color: var(--text-main);
  background: transparent;
}

.invite-search-input::placeholder {
  color: #94a3b8;
}

.invite-detail-filter-bar {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.invite-detail-filter-btn {
  flex: 1;
  min-width: 78px;
  text-align: center;
  padding: 8px 6px;
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.invite-detail-filter-btn.active {
  background: #eff6ff;
  color: #2563eb;
  border-color: #93c5fd;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.08);
}

.invite-detail-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.invite-detail-item {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-card);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.invite-detail-item-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.invite-detail-progress-note {
  font-size: 12px;
  line-height: 1.5;
  color: #475569;
  background: #f8fafc;
  padding: 8px 12px;
  border-radius: 8px;
  border-left: 3px solid #2563eb;
}

.invite-detail-item-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 4px;
}

.invite-empty-result {
  text-align: center;
  padding: 40px 16px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
  color: #94a3b8;
  font-size: 13px;
}

/* ==========================================================
   流水明细专用页面 (Statement / Transaction History Page)
   ========================================================== */
.statement-summary-card {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.statement-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  text-align: center;
}

.statement-summary-val {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.statement-summary-lbl {
  font-size: 11.5px;
  opacity: 0.85;
  margin-top: 3px;
}

.statement-summary-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11.5px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
}

.statement-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.statement-item {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 13px 14px;
  border: 1px solid var(--card-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.statement-item-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.statement-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.statement-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.statement-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.statement-desc {
  font-size: 11.5px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.statement-date {
  font-size: 10.5px;
  color: #94a3b8;
  margin-top: 1px;
}

.statement-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex-shrink: 0;
}

.statement-amount-plus {
  font-size: 16px;
  font-weight: 800;
  color: #10b981;
}

.statement-amount-minus {
  font-size: 16px;
  font-weight: 800;
  color: #0f172a;
}

.statement-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
}

.statement-tag.success {
  background: #ecfdf5;
  color: #059669;
}

.statement-tag.info {
  background: #eff6ff;
  color: #2563eb;
}

/* ==========================================================
   订单列表专用页面 (Order List Page)
   ========================================================== */
.order-filter-bar {
  display: flex;
  background: #ffffff;
  border-radius: 12px;
  padding: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  border: 1px solid var(--card-border);
  overflow-x: auto;
  scrollbar-width: none;
}
.order-filter-bar::-webkit-scrollbar {
  display: none;
}

.order-filter-btn {
  flex: 1;
  min-width: 60px;
  text-align: center;
  padding: 7px 4px;
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
  border-radius: 8px;
  cursor: pointer;
  border: none;
  background: transparent;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.order-filter-btn.active {
  background: #2563eb;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}

.order-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f5f9;
}

.order-sn-box {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
}

.order-status-badge {
  font-size: 11.5px;
  font-weight: 700;
}

.order-status-badge.unpaid {
  color: #d97706;
}

.order-status-badge.paid {
  color: #2563eb;
}

.order-status-badge.shipping {
  color: #059669;
}

.order-status-badge.completed {
  color: #64748b;
}

.order-status-badge.refund {
  color: #e11d48;
}

.order-card-body {
  display: flex;
  gap: 12px;
  align-items: center;
}

.order-thumb-wrap {
  width: 68px;
  height: 68px;
  border-radius: 8px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.order-info-wrap {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.order-item-title {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-item-spec {
  font-size: 11.5px;
  color: #64748b;
}

.order-item-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 12px;
  color: #334155;
}

.order-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid #f8fafc;
}

.order-total-price {
  font-size: 12px;
  color: #64748b;
}

.order-total-price strong {
  font-size: 14px;
  color: #1e293b;
  font-weight: 800;
}

.order-actions-row {
  display: flex;
  gap: 8px;
}

.order-action-btn {
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 16px;
  cursor: pointer;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  transition: all 0.15s ease;
}

.order-action-btn.primary {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.25);
}

.order-action-btn:active {
  transform: scale(0.96);
}

/* 个人资料编辑组件 */
.profile-edit-avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 16px 16px;
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.profile-avatar-wrapper {
  position: relative;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.16);
  cursor: pointer;
  border: 3px solid #ffffff;
  transition: transform 0.2s ease;
}

.profile-avatar-wrapper:active {
  transform: scale(0.96);
}

.profile-avatar-camera-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #2563eb;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #ffffff;
  box-shadow: 0 2px 6px rgba(37, 99, 235, 0.35);
}

.profile-avatar-preset-row {
  display: flex;
  gap: 12px;
  margin-top: 14px;
  align-items: center;
}

.profile-avatar-preset-item {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #e2e8f0;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.2s ease;
}

.profile-avatar-preset-item.active {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.profile-form-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 16px 16px 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gender-radio-group {
  display: flex;
  gap: 10px;
}

.gender-radio-btn {
  flex: 1;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.gender-radio-btn.active {
  background: #eff6ff;
  border-color: #2563eb;
  color: #2563eb;
  font-weight: 600;
}











