/* ==========================================================================
   《花光百亿财力：赛博神豪》赛博黑金视觉设计规范
   官方网站：www.aicaili.com | AI财力实验室出品
   ========================================================================== */

:root {
  --bg-primary: #0a0c10;
  --bg-secondary: #12161f;
  --bg-card: #181d28;
  --bg-card-hover: #1f2533;
  --bg-modal: rgba(10, 12, 16, 0.85);
  
  --gold-primary: #f5c518;
  --gold-light: #ffd700;
  --gold-dark: #b8860b;
  --gold-gradient: linear-gradient(135deg, #ffe066 0%, #f5c518 50%, #d49a00 100%);
  --gold-glow: 0 0 20px rgba(245, 197, 24, 0.35);

  --neon-green: #10b981;
  --neon-green-glow: 0 0 15px rgba(16, 185, 129, 0.4);
  --neon-red: #f43f5e;
  --neon-blue: #38bdf8;
  --neon-purple: #a855f7;

  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dark: #111827;

  --border-color: rgba(245, 197, 24, 0.2);
  --border-subtle: rgba(255, 255, 255, 0.08);

  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
  --radius-lg: 16px;
  --radius-md: 10px;
  --radius-sm: 6px;
  --font-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace;
}

/* 全局重置与基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(245, 197, 24, 0.08) 0%, transparent 60%),
    radial-gradient(circle at 10% 80%, rgba(56, 189, 248, 0.04) 0%, transparent 50%);
  background-attachment: fixed;
}

/* 顶部导航条 */
.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  background: rgba(18, 22, 31, 0.95);
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
  z-index: 100;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  font-size: 26px;
  filter: drop-shadow(0 0 8px var(--gold-primary));
}

.brand-text h1 {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.5px;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-tag {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 1px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-icon {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  transition: all 0.2s ease;
}

.btn-icon:hover {
  background: rgba(245, 197, 24, 0.15);
  border-color: var(--gold-primary);
  color: var(--gold-light);
}

/* 核心黑金粘性仪表盘 (Sticky Header) */
.sticky-dashboard {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(14, 18, 25, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 2px solid rgba(245, 197, 24, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  padding: 16px 24px;
}

.dashboard-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
}

/* 左侧：模式与计时器 */
.dash-left {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mode-selector {
  display: flex;
  gap: 6px;
  background: rgba(0, 0, 0, 0.3);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.mode-pill {
  padding: 4px 10px;
  font-size: 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: transparent;
  border: none;
  color: var(--text-muted);
  transition: all 0.2s;
  white-space: nowrap;
}

.mode-pill.active {
  background: var(--gold-primary);
  color: var(--text-dark);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(245, 197, 24, 0.4);
}

.timer-box {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--neon-red);
  background: rgba(244, 63, 94, 0.1);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(244, 63, 94, 0.3);
  width: fit-content;
}

.timer-box.pulse {
  animation: timerPulse 1s infinite alternate;
}

@keyframes timerPulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.05); opacity: 0.7; }
}

/* 中间：百亿资金大盘数字 */
.dash-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.balance-title {
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--gold-light);
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.balance-number-box {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  position: relative;
}

.currency-sym {
  font-size: 26px;
  font-weight: 800;
  color: var(--gold-primary);
}

.balance-display {
  font-size: 38px;
  font-weight: 900;
  font-family: var(--font-mono);
  letter-spacing: 1px;
  background: var(--gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 12px rgba(245, 197, 24, 0.4));
  transition: transform 0.15s ease;
}

.balance-display.shake {
  animation: shake 0.4s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes shake {
  10%, 90% { transform: translate3d(-2px, 0, 0); }
  20%, 80% { transform: translate3d(4px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-6px, 0, 0); }
  40%, 60% { transform: translate3d(6px, 0, 0); }
}

/* 每秒利息反噬脉冲指示器 */
.interest-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--neon-green);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 3px 10px;
  border-radius: 20px;
  margin-top: 4px;
  transition: all 0.3s ease;
}

.interest-badge.active {
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
  border-color: var(--neon-green);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green);
  animation: blink 1.2s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.7); }
}

/* 右侧：三维属性胶囊与结算按钮 */
.dash-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.attributes-capsule {
  display: flex;
  gap: 12px;
}

.attr-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.04);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.attr-item.face { color: #f59e0b; }
.attr-item.inlaw { color: #f43f5e; }
.attr-item.worker { color: #38bdf8; }

.attr-val {
  font-family: var(--font-mono);
  font-weight: 700;
}

.action-buttons {
  display: flex;
  gap: 8px;
}

.btn-settle {
  background: var(--gold-gradient);
  color: #111;
  font-weight: 800;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(245, 197, 24, 0.3);
  transition: all 0.2s ease;
}

.btn-settle:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 197, 24, 0.5);
}

/* 浮动飘字特效容器 */
#floating-text-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
}

.floating-text {
  position: absolute;
  font-family: var(--font-mono);
  font-weight: 900;
  font-size: 20px;
  pointer-events: none;
  animation: floatUpFade 1.2s forwards cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.floating-text.spend {
  color: var(--gold-light);
  text-shadow: 0 0 10px rgba(245, 197, 24, 0.7);
}

.floating-text.interest {
  color: #10b981;
  text-shadow: 0 0 10px rgba(16, 185, 129, 0.7);
}

.floating-text.refund {
  color: #38bdf8;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.7);
}

@keyframes floatUpFade {
  0% {
    opacity: 0;
    transform: translateY(0) scale(0.7);
  }
  20% {
    opacity: 1;
    transform: translateY(-20px) scale(1.15);
  }
  100% {
    opacity: 0;
    transform: translateY(-80px) scale(1);
  }
}

/* 主内容容器 */
.main-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px;
}

/* 分类与筛选工具栏 */
.toolbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tab-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
  border-color: rgba(245, 197, 24, 0.3);
}

.tab-btn.active {
  background: rgba(245, 197, 24, 0.15);
  border-color: var(--gold-primary);
  color: var(--gold-light);
  box-shadow: 0 0 15px rgba(245, 197, 24, 0.2);
}

.filter-sort-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-input {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  outline: none;
  width: 180px;
  transition: border-color 0.2s;
}

.search-input:focus {
  border-color: var(--gold-primary);
}

.sort-select {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: 13px;
  outline: none;
  cursor: pointer;
}

/* 商品卡片网格系统 */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 20px;
}

/* 单个商品卡片 */
.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 197, 24, 0.4);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.6), 0 0 15px rgba(245, 197, 24, 0.1);
}

/* 高危理财刺客卡片警示红框 */
.product-card.category-trap {
  border-color: rgba(244, 63, 94, 0.3);
  background: linear-gradient(180deg, rgba(244, 63, 94, 0.05) 0%, var(--bg-card) 60%);
}

.product-card.category-trap:hover {
  border-color: var(--neon-red);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.6), 0 0 15px rgba(244, 63, 94, 0.2);
}

/* 卡片顶部：图标与分类标签 */
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.card-icon-badge {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.4);
}

.card-tags {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.category-tag {
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.trap-badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 10px;
  background: rgba(244, 63, 94, 0.2);
  color: var(--neon-red);
  border: 1px solid rgba(244, 63, 94, 0.4);
  font-weight: 700;
}

/* 卡片标题与描述 */
.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-name {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
}

.product-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
  min-height: 40px;
}

/* 属性加成微标签 */
.bonus-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.bonus-pill {
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
}

.bonus-pill.face { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.bonus-pill.inlaw { background: rgba(244, 63, 94, 0.15); color: #fb7185; }
.bonus-pill.worker { background: rgba(56, 189, 248, 0.15); color: #7dd3fc; }
.bonus-pill.passive { background: rgba(16, 185, 129, 0.15); color: #34d399; font-weight: 700; }

/* 价格与库存栏 */
.price-stock-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-subtle);
}

.product-price {
  font-size: 20px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--gold-light);
}

.product-stock {
  font-size: 12px;
  color: var(--text-muted);
}

/* 卡片操作按钮组 */
.card-actions {
  display: grid;
  grid-template-columns: 44px 1fr 44px 76px;
  gap: 8px;
  margin-top: 14px;
  align-items: center;
}

.btn-ctrl {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: #fff;
  height: 38px;
  border-radius: var(--radius-md);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}

.btn-ctrl:hover:not(:disabled) {
  background: rgba(245, 197, 24, 0.2);
  border-color: var(--gold-primary);
  color: var(--gold-light);
}

.btn-ctrl:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.count-display {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.btn-max {
  background: linear-gradient(135deg, rgba(245, 197, 24, 0.2) 0%, rgba(245, 197, 24, 0.05) 100%);
  border: 1px solid rgba(245, 197, 24, 0.4);
  color: var(--gold-light);
  height: 38px;
  border-radius: var(--radius-md);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-max:hover:not(:disabled) {
  background: var(--gold-primary);
  color: var(--text-dark);
  box-shadow: 0 0 12px rgba(245, 197, 24, 0.4);
}

.btn-max:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* 底部实时购物车账单抽屉 */
.cart-drawer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(18, 22, 31, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-color);
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.6);
  z-index: 80;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cart-drawer.collapsed .cart-drawer-content {
  display: none;
}

.cart-drawer-header {
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.cart-summary-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cart-total-badge {
  background: var(--gold-primary);
  color: var(--text-dark);
  font-weight: 800;
  font-size: 13px;
  padding: 3px 10px;
  border-radius: 20px;
}

.cart-total-spent {
  font-size: 15px;
  color: var(--text-muted);
}

.cart-total-spent strong {
  color: var(--gold-light);
  font-family: var(--font-mono);
  font-size: 17px;
}

.cart-toggle-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cart-drawer-content {
  max-height: 280px;
  overflow-y: auto;
  padding: 12px 24px 20px;
  border-top: 1px solid var(--border-subtle);
}

.cart-items-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.cart-items-table th {
  text-align: left;
  color: var(--text-muted);
  padding: 6px 12px;
  font-weight: 500;
  border-bottom: 1px solid var(--border-subtle);
}

.cart-items-table td {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

/* 全屏模态弹窗基础样式 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-modal);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* 随机突发事件弹窗卡片 */
.event-card {
  background: #141822;
  border: 2px solid var(--gold-primary);
  box-shadow: 0 0 40px rgba(245, 197, 24, 0.3);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 28px;
  text-align: center;
  position: relative;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.active .event-card {
  transform: scale(1);
}

.event-icon {
  font-size: 54px;
  margin-bottom: 10px;
}

.event-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--gold-light);
  margin-bottom: 12px;
}

.event-desc {
  font-size: 14px;
  color: #e5e7eb;
  line-height: 1.6;
  margin-bottom: 24px;
  text-align: left;
  background: rgba(0, 0, 0, 0.3);
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

.event-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn-event-option {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  text-align: left;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1.4;
}

.btn-event-option:hover {
  background: rgba(245, 197, 24, 0.15);
  border-color: var(--gold-primary);
  transform: translateY(-2px);
}

/* 结算小票模态弹窗 */
.receipt-modal-card {
  background: transparent;
  max-width: 600px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-height: 94vh;
}

.receipt-scroll-box {
  max-height: 78vh;
  overflow-y: auto;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
  padding: 4px;
}

.receipt-scroll-box canvas {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.receipt-actions {
  display: flex;
  gap: 12px;
  width: 100%;
  justify-content: center;
}

.btn-receipt {
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  border: none;
  transition: all 0.2s ease;
}

.btn-receipt.primary {
  background: var(--gold-gradient);
  color: #111;
  box-shadow: 0 4px 15px rgba(245, 197, 24, 0.35);
}

.btn-receipt.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid var(--border-subtle);
}

.btn-receipt.close {
  background: rgba(244, 63, 94, 0.2);
  color: var(--neon-red);
  border: 1px solid rgba(244, 63, 94, 0.4);
}

/* Toast 浮动轻提示 */
.toast-msg {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: rgba(18, 22, 31, 0.95);
  border: 1px solid var(--gold-primary);
  color: var(--gold-light);
  padding: 10px 24px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.6), 0 0 15px rgba(245, 197, 24, 0.3);
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

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

/* 底部备案与免责版权区 */
.site-footer {
  text-align: center;
  padding: 30px 20px 100px;
  color: var(--text-muted);
  font-size: 13px;
  border-top: 1px solid var(--border-subtle);
  margin-top: 60px;
}

.site-footer a {
  color: var(--gold-primary);
  text-decoration: none;
}

.site-footer p {
  margin-bottom: 6px;
}

/* ==========================================================================
   移动端与响应式适配规则
   ========================================================================== */
@media (max-width: 1024px) {
  .dashboard-inner {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .dash-left {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .dash-right {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
  }
  .balance-display {
    font-size: 32px;
  }
}

@media (max-width: 768px) {
  .site-nav {
    padding: 10px 16px;
  }
  .sticky-dashboard {
    padding: 12px 16px;
  }
  .main-container {
    padding: 16px;
  }
  .toolbar-container {
    flex-direction: column;
    align-items: stretch;
  }
  .search-input {
    width: 100%;
  }
  .products-grid {
    grid-template-columns: 1fr; /* 手机端单列清爽大卡片 */
    gap: 16px;
  }
  .balance-display {
    font-size: 26px;
  }
  .currency-sym {
    font-size: 20px;
  }
  .attributes-capsule {
    gap: 6px;
  }
  .attr-item {
    font-size: 11px;
    padding: 2px 6px;
  }
  .card-actions {
    grid-template-columns: 40px 1fr 40px 68px;
  }
}
