/* ===== 大番薯主题 - 卡通动漫风格 ===== */
* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
:root {
  --primary: #f97316;
  --primary-dark: #ea580c;
  --primary-light: #fff7ed;
  --secondary: #fbbf24;
  --accent: #84cc16;
  --success: #22c55e;
  --warn: #f59e0b;
  --danger: #ef4444;
  --text: #422006;
  --text-light: #78350f;
  --text-muted: #a8a29e;
  --bg: #fffbeb;
  --bg-soft: #fef3c7;
  --card: #ffffff;
  --border: #fde68a;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow: 0 4px 12px rgba(249,115,22,.12);
  --shadow-lg: 0 8px 30px rgba(249,115,22,.18);
  --sidebar-w: 220px;
}
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  min-height: 100vh;
  background-image:
    radial-gradient(circle at 20% 80%, rgba(251,191,36,.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(249,115,22,.1) 0%, transparent 50%);
  background-attachment: fixed;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
h1,h2,h3,h4 { font-weight: 700; color: var(--text); }

/* ===== 左侧导航栏 ===== */
.sidebar {
  position: fixed; top: 0; left: 0; bottom: 0; width: var(--sidebar-w);
  background: linear-gradient(180deg, #f97316 0%, #ea580c 100%);
  z-index: 100; display: flex; flex-direction: column;
  box-shadow: 4px 0 20px rgba(249,115,22,.2);
}
.sidebar-brand {
  padding: 20px 16px; text-align: center; color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.2);
}
.sidebar-logo {
  width: 56px; height: 56px; margin: 0 auto 8px;
  background: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.sidebar-brand h2 { color: #fff; font-size: 16px; margin: 0; }
.sidebar-brand p { color: rgba(255,255,255,.8); font-size: 11px; margin: 2px 0 0; }
.sidebar-nav { flex: 1; padding: 12px 10px; overflow-y: auto; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; margin-bottom: 4px;
  border-radius: var(--radius-sm); color: rgba(255,255,255,.9);
  font-size: 14px; font-weight: 600; transition: all .2s;
}
.sidebar-nav a:hover { background: rgba(255,255,255,.2); color: #fff; }
.sidebar-nav a.active { background: #fff; color: var(--primary-dark); box-shadow: 0 2px 8px rgba(0,0,0,.1); }
.sidebar-nav a .nav-icon { font-size: 20px; }
.sidebar-footer { padding: 14px; border-top: 1px solid rgba(255,255,255,.2); }
.sidebar-balance {
  background: rgba(255,255,255,.2); border-radius: var(--radius-sm);
  padding: 10px 14px; color: #fff; text-align: center; margin-bottom: 8px;
}
.sidebar-balance .bal-label { font-size: 11px; opacity: .8; }
.sidebar-balance .bal-amount { font-size: 18px; font-weight: 700; }
.sidebar-user { color: rgba(255,255,255,.9); font-size: 12px; text-align: center; margin-bottom: 8px; }
.sidebar-logout {
  display: block; text-align: center; padding: 8px;
  background: rgba(255,255,255,.15); border-radius: var(--radius-sm);
  color: #fff; font-size: 13px; transition: all .2s;
}
.sidebar-logout:hover { background: rgba(255,255,255,.3); }

/* ===== 主内容区 ===== */
.main-content { margin-left: var(--sidebar-w); min-height: 100vh; padding: 20px; }

/* ===== 通用按钮（卡通风格） ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  padding: 10px 20px; border: 2px solid var(--border); background: #fff;
  color: var(--text); border-radius: var(--radius-sm); cursor: pointer; font-size: 14px;
  font-weight: 600; transition: all .2s; line-height: 1.4; white-space: nowrap;
  font-family: inherit;
}
.btn:hover { background: var(--bg-soft); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn-primary { background: var(--primary); border-color: var(--primary-dark); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-success { background: var(--success); border-color: var(--success); color: #fff; }
.btn-warn { background: var(--warn); border-color: var(--warn); color: #fff; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-lg { padding: 14px 28px; font-size: 16px; }
.btn-block { display: flex; width: 100%; }

/* ===== 表单 ===== */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; color: var(--text); font-size: 14px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 10px 14px; border: 2px solid var(--border);
  border-radius: var(--radius-sm); font-size: 14px; font-family: inherit; background: #fff;
  transition: border-color .2s; -webkit-appearance: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(249,115,22,.15);
}
.form-row { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; }
.required { color: var(--danger); }
.muted { color: var(--text-muted); font-size: 12px; }

/* ===== 提示框 ===== */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: 14px; }
.alert-error { background: #fef2f2; color: #b91c1c; border: 2px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #15803d; border: 2px solid #bbf7d0; }
.alert-info { background: #fff7ed; color: #c2410c; border: 2px solid #fed7aa; }

/* ===== 登录注册页 ===== */
.auth-body { background: linear-gradient(135deg, #f97316 0%, #fbbf24 100%); min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.auth-container { width: 100%; max-width: 400px; }
.auth-card { background: #fff; border-radius: var(--radius-lg); padding: 40px 32px; box-shadow: 0 20px 60px rgba(0,0,0,.2); }
.auth-brand { text-align: center; margin-bottom: 28px; }
.auth-logo { width: 72px; height: 72px; margin: 0 auto 16px; background: linear-gradient(135deg, #f97316, #fbbf24); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 36px; box-shadow: 0 8px 24px rgba(249,115,22,.4); }
.auth-brand h1 { font-size: 22px; margin-bottom: 6px; color: var(--text); }
.auth-subtitle { color: var(--text-light); font-size: 13px; }
.auth-footer { margin-top: 20px; text-align: center; color: var(--text-light); font-size: 13px; }
.auth-copy { text-align: center; margin-top: 20px; color: rgba(255,255,255,.8); font-size: 12px; }

/* ===== 页面头部 ===== */
.page-header { margin-bottom: 20px; }
.page-header h2 { font-size: 24px; margin-bottom: 4px; color: var(--text); }
.page-header p { color: var(--text-light); font-size: 14px; }
.back-link { display: inline-block; margin-bottom: 12px; color: var(--text-light); font-size: 14px; }

/* ===== 卡片 ===== */
.card { background: var(--card); border-radius: var(--radius); padding: 20px; border: 2px solid var(--border); box-shadow: var(--shadow); margin-bottom: 16px; }

/* ===== 首页统计卡片 ===== */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat-card { background: var(--card); border-radius: var(--radius); padding: 20px; border: 2px solid var(--border); box-shadow: var(--shadow); position: relative; overflow: hidden; transition: all .2s; }
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--primary); }
.stat-card.green::before { background: var(--success); }
.stat-card.blue::before { background: #3b82f6; }
.stat-card.purple::before { background: #14b8a6; }
.stat-card.yellow::before { background: var(--secondary); }
.stat-icon { font-size: 32px; margin-bottom: 8px; }
.stat-value { font-size: 28px; font-weight: 700; color: var(--text); }
.stat-label { font-size: 13px; color: var(--text-light); margin-top: 4px; }

/* ===== 地区分布 ===== */
.region-list { background: var(--card); border-radius: var(--radius); padding: 20px; border: 2px solid var(--border); box-shadow: var(--shadow); }
.region-bar-item { margin-bottom: 12px; }
.region-bar-header { display: flex; justify-content: space-between; margin-bottom: 4px; font-size: 13px; }
.region-bar-name { font-weight: 600; color: var(--text); }
.region-bar-count { color: var(--text-light); }
.region-bar-track { height: 10px; background: var(--bg-soft); border-radius: 5px; overflow: hidden; }
.region-bar-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--secondary)); border-radius: 5px; transition: width .5s; }

/* ===== 商品列表（卡片风格） ===== */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.product-card { background: var(--card); border-radius: var(--radius); padding: 24px 20px; border: 2px solid var(--border); position: relative; transition: all .2s; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.product-card:hover { border-color: var(--primary); box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.product-tag { position: absolute; top: 12px; right: 12px; background: linear-gradient(135deg, #f87171, #ef4444); color: #fff; font-size: 11px; padding: 3px 10px; border-radius: 12px; font-weight: 600; }
.product-name { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.product-cat { color: var(--text-muted); font-size: 12px; margin-bottom: 8px; }
.product-specs { display: inline-block; background: var(--primary-light); color: var(--primary-dark); font-size: 12px; padding: 3px 10px; border-radius: 8px; margin-bottom: 10px; font-weight: 600; }
.product-desc { color: var(--text-light); font-size: 13px; flex: 1; margin-bottom: 14px; min-height: 36px; }
.product-price { margin-bottom: 14px; display: flex; align-items: baseline; gap: 6px; }
.price { color: var(--primary-dark); font-size: 24px; font-weight: 700; }
.price-old { color: var(--text-muted); text-decoration: line-through; font-size: 14px; }
.price-unit { color: var(--text-light); font-size: 13px; }

/* ===== 商品详情 ===== */
.detail-wrap { display: grid; grid-template-columns: 1fr 380px; gap: 20px; }
.detail-main { background: var(--card); border-radius: var(--radius); padding: 28px; border: 2px solid var(--border); box-shadow: var(--shadow); }
.detail-main h2 { margin-bottom: 8px; font-size: 24px; }
.badge { display: inline-block; background: var(--primary-light); color: var(--primary-dark); font-size: 12px; padding: 3px 10px; border-radius: 8px; margin-bottom: 16px; font-weight: 600; }
.detail-price-box { background: linear-gradient(135deg, #fff7ed, #fef3c7); border-radius: var(--radius-sm); padding: 18px; margin: 16px 0; border: 2px solid var(--border); }
.price-big { color: var(--primary-dark); font-size: 28px; font-weight: 700; }
.detail-section { margin-top: 20px; }
.detail-section h3 { font-size: 16px; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 2px solid var(--border); }
.detail-section p { color: var(--text-light); line-height: 1.8; }
.detail-side { background: var(--card); border-radius: var(--radius); padding: 24px; border: 2px solid var(--border); height: fit-content; box-shadow: var(--shadow); }
.order-form .order-total { display: flex; justify-content: space-between; align-items: center; padding: 14px; background: var(--primary-light); border-radius: var(--radius-sm); margin: 16px 0; border: 2px solid var(--border); }

/* ===== 表格 ===== */
.table-card { background: var(--card); border-radius: var(--radius); border: 2px solid var(--border); overflow: hidden; box-shadow: var(--shadow); }
.table-card-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 2px solid var(--border); }
.table-card-header h3 { font-size: 16px; }
.table { width: 100%; border-collapse: collapse; }
.table th { background: var(--bg-soft); text-align: left; padding: 12px 16px; font-weight: 700; color: var(--text-light); font-size: 13px; border-bottom: 2px solid var(--border); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: middle; }
.table tr:hover td { background: var(--primary-light); }
.table small { color: var(--text-muted); }
.empty { text-align: center; color: var(--text-muted); padding: 40px 0 !important; }

/* ===== 状态标签 ===== */
.status { display: inline-block; padding: 3px 10px; border-radius: 8px; font-size: 12px; font-weight: 600; background: var(--bg-soft); color: var(--text-light); }
.status-pending { background: #fef3c7; color: #92400e; }
.status-paid { background: #d1fae5; color: #065f46; }
.status-opened { background: #dbeafe; color: #1e40af; }
.status-cancelled { background: #fee2e2; color: #991b1b; }
.status-expired { background: #f1f5f9; color: var(--text-light); }

/* ===== 支付页 ===== */
.pay-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pay-order, .pay-methods { background: var(--card); border-radius: var(--radius); padding: 28px; border: 2px solid var(--border); box-shadow: var(--shadow); }
.pay-method { display: block; padding: 16px; border: 2px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 12px; cursor: pointer; transition: all .2s; }
.pay-method:hover { border-color: var(--primary); }
.pay-method.disabled { opacity: .55; cursor: not-allowed; }
.pay-method.disabled:hover { border-color: var(--border); }
.pay-method input { display: none; }
.pay-method:has(input:checked) { border-color: var(--primary); background: var(--primary-light); }
.pay-method-body { display: flex; align-items: center; gap: 14px; }
.pay-method-icon { font-size: 28px; }
.pay-method-name { font-weight: 700; font-size: 15px; }
.pay-method-desc { color: var(--text-light); font-size: 12px; margin-left: auto; }
.pay-tip { margin-top: 16px; padding: 12px; background: #fffbeb; border: 2px solid #fde68a; color: #92400e; border-radius: var(--radius-sm); font-size: 12px; }

/* ===== 支付成功页 ===== */
.success-wrap { background: var(--card); border-radius: var(--radius-lg); padding: 48px 32px; text-align: center; border: 2px solid var(--border); max-width: 560px; margin: 24px auto; box-shadow: var(--shadow-lg); }
.success-icon { width: 80px; height: 80px; background: #d1fae5; color: #065f46; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 40px; margin: 0 auto 20px; }
.success-wrap h2 { margin-bottom: 12px; }
.success-wrap p { color: var(--text-light); margin-bottom: 6px; }
.success-actions { margin-top: 24px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ===== 信息表格 ===== */
.info-table { width: 100%; border-collapse: collapse; margin-top: 12px; }
.info-table th { text-align: left; padding: 12px 14px; background: var(--bg-soft); color: var(--text-light); font-weight: 600; font-size: 14px; border: 2px solid var(--border); width: 130px; }
.info-table td { padding: 12px 14px; border: 2px solid var(--border); }

/* ===== 分页 ===== */
.pagination-wrap { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 20px; padding: 14px 16px; background: #fff; border: 2px solid var(--border); border-radius: var(--radius-sm); }
.pagination-info { font-size: 13px; color: var(--text-light); }
.pagination-info strong { color: var(--primary-dark); font-weight: 700; }
.pagination-controls { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.page-btn { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px; border: 2px solid var(--border); border-radius: 8px; font-size: 14px; color: var(--text-light); background: #fff; transition: all .2s; text-decoration: none; cursor: pointer; font-weight: 600; }
.page-btn:hover:not(.disabled):not(.active) { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }
.page-btn.active { background: var(--primary); border-color: var(--primary-dark); color: #fff; }
.page-btn.disabled { color: var(--text-muted); background: var(--bg-soft); cursor: not-allowed; }
.page-ellipsis { color: var(--text-muted); padding: 0 4px; }
.page-size-selector { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-light); }
.page-size-selector select { padding: 6px 10px; border: 2px solid var(--border); border-radius: 8px; font-size: 13px; background: #fff; cursor: pointer; }
.page-size-selector select:focus { outline: none; border-color: var(--primary); }
.page-info { text-align: center; color: var(--text-muted); font-size: 13px; margin-top: 8px; }
.pagination-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 16px; padding: 12px 16px; background: #fff; border: 2px solid var(--border); border-radius: var(--radius-sm); }

/* ===== 页脚 ===== */
.footer { text-align: center; padding: 24px 16px; color: var(--text-muted); font-size: 12px; }

/* ===== 空状态 ===== */
.empty-state { text-align: center; padding: 60px 20px; background: #fff; border-radius: var(--radius); border: 2px solid var(--border); }
.empty-icon { font-size: 64px; margin-bottom: 16px; opacity: .5; }
.empty-state p { color: var(--text-light); margin-bottom: 6px; }

/* ===== 云电脑用户卡片 ===== */
.end-user-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.end-user-card { background: #fff; border-radius: var(--radius); border: 2px solid var(--border); overflow: hidden; transition: all .2s; box-shadow: var(--shadow); }
.end-user-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.eu-card-header { display: flex; align-items: center; gap: 12px; padding: 16px; background: linear-gradient(135deg, #fff7ed, #fef3c7); border-bottom: 2px solid var(--border); }
.eu-avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, #f97316, #fbbf24); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; flex-shrink: 0; }
.eu-info { flex: 1; min-width: 0; }
.eu-name { font-weight: 700; font-size: 15px; color: var(--text); }
.eu-oid { color: var(--text-muted); font-size: 11px; word-break: break-all; }
.eu-card-body { padding: 14px 16px; }
.eu-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 13px; border-bottom: 1px solid var(--bg-soft); }
.eu-row:last-child { border-bottom: none; }
.eu-label { color: var(--text-muted); flex-shrink: 0; }
.eu-value { color: var(--text); text-align: right; word-break: break-all; }

/* ===== 筛选栏 ===== */
.filter-bar { background: #fff; border: 2px solid var(--border); border-radius: var(--radius-sm); padding: 14px; margin-bottom: 16px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.filter-bar input, .filter-bar select { padding: 8px 12px; border: 2px solid var(--border); border-radius: 8px; font-size: 14px; }

/* ===== 首页布局 ===== */
.home-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.card-header h3 { font-size: 16px; }

/* ===== 首页最近云电脑卡片 ===== */
.desktop-mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.desktop-mini-card { background: var(--bg-soft); border: 2px solid var(--border); border-radius: var(--radius-sm); padding: 12px; transition: all .2s; }
.desktop-mini-card:hover { border-color: var(--primary); transform: translateY(-2px); }
.dm-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.dm-name { font-weight: 700; font-size: 13px; color: var(--text); max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-body { font-size: 12px; color: var(--text-light); line-height: 1.7; }

/* ===== 快捷操作 ===== */
.quick-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-top: 20px; }
.qa-item { background: #fff; border: 2px solid var(--border); border-radius: var(--radius); padding: 20px 12px; text-align: center; transition: all .2s; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--text); font-weight: 600; font-size: 13px; }
.qa-item:hover { border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--primary-dark); }
.qa-icon { font-size: 32px; }

/* ===== 系统设置表单 ===== */
.settings-form { max-width: 600px; }
.sms-row { display: flex; gap: 6px; }
.sms-row input { flex: 1; }

/* ===== 我的页面 ===== */
.profile-wrap { max-width: 800px; display: flex; flex-direction: column; gap: 16px; }
.profile-card { padding: 24px; }
.profile-avatar-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.profile-avatar { width: 72px; height: 72px; border-radius: 50%; background: linear-gradient(135deg, #f97316, #fbbf24); display: flex; align-items: center; justify-content: center; font-size: 36px; box-shadow: 0 4px 12px rgba(249,115,22,.3); }
.profile-info { flex: 1; min-width: 200px; }
.profile-info h3 { font-size: 20px; margin-bottom: 6px; color: var(--text); }
.profile-info p { font-size: 14px; color: var(--text-light); margin: 2px 0; }
.profile-balance-box { text-align: center; padding: 16px 24px; background: var(--primary-light); border-radius: var(--radius); border: 2px dashed var(--primary); }
.profile-balance-box .bal-label { font-size: 12px; color: var(--text-muted); }
.profile-balance-box .bal-amount { font-size: 28px; font-weight: 800; color: var(--primary); margin: 4px 0 8px; }
.profile-quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.quick-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 20px 12px; background: var(--card); border-radius: var(--radius); text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; border: 2px solid var(--border); }
.quick-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.quick-card .quick-icon { font-size: 32px; }
.quick-card .quick-label { font-size: 14px; font-weight: 700; }
.recharge-amounts { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.recharge-amount-btn { padding: 10px 20px; border: 2px solid var(--border); border-radius: var(--radius-sm); background: var(--card); font-size: 16px; font-weight: 700; cursor: pointer; transition: all .2s; color: var(--text); font-family: inherit; }
.recharge-amount-btn:hover { border-color: var(--primary); }
.recharge-amount-btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pay-method-row { display: flex; gap: 12px; }
.pay-method-row .pay-method { flex: 1; }
.redeem-form { max-width: 400px; }
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.contact-item { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--primary-light); border-radius: var(--radius); border: 2px solid var(--border); }
.contact-icon { font-size: 32px; }
.contact-info h4 { font-size: 14px; color: var(--text-muted); margin-bottom: 4px; }
.contact-info p { font-size: 16px; font-weight: 700; color: var(--text); }
.contact-info a { color: var(--primary); text-decoration: none; }
.group-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.group-item { text-align: center; padding: 20px; background: var(--primary-light); border-radius: var(--radius); border: 2px solid var(--border); }
.group-qr { width: 80px; height: 80px; margin: 0 auto 12px; background: var(--card); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 40px; border: 2px solid var(--border); }
.group-item h4 { font-size: 16px; margin-bottom: 6px; }
.group-item p { font-size: 13px; color: var(--text-light); margin: 2px 0; }
.group-id { font-weight: 700; color: var(--primary) !important; }

/* ===== 支付收银台（模拟） ===== */
.cashier-wrap { max-width: 480px; margin: 0 auto; }
.cashier-header { text-align: center; padding: 24px 0 16px; }
.cashier-header .cashier-logo { font-size: 48px; margin-bottom: 8px; }
.cashier-header h2 { font-size: 20px; color: var(--text); }
.cashier-amount { text-align: center; padding: 20px; margin: 16px 0; background: var(--primary-light); border-radius: var(--radius); border: 2px dashed var(--primary); }
.cashier-amount .amt-label { font-size: 14px; color: var(--text-muted); }
.cashier-amount .amt-value { font-size: 36px; font-weight: 800; color: var(--primary); }
.cashier-qr-box { text-align: center; padding: 24px; background: var(--card); border-radius: var(--radius); border: 2px solid var(--border); margin: 16px 0; }
.cashier-qr { width: 200px; height: 200px; margin: 0 auto 16px; background: #fff; border: 3px solid var(--primary); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.cashier-qr-pattern { width: 100%; height: 100%; background-image:
  linear-gradient(45deg, #000 25%, transparent 25%),
  linear-gradient(-45deg, #000 25%, transparent 25%),
  linear-gradient(45deg, transparent 75%, #000 75%),
  linear-gradient(-45deg, transparent 75%, #000 75%);
  background-size: 20px 20px; background-position: 0 0, 0 10px, 10px -10px, -10px 0px; opacity: .85; }
.cashier-qr-logo { position: absolute; width: 40px; height: 40px; background: #fff; border: 3px solid var(--primary); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.cashier-tip { font-size: 14px; color: var(--text-muted); margin-top: 12px; }
.cashier-tip .countdown { color: var(--danger); font-weight: 700; font-size: 18px; }
.cashier-btn-row { display: flex; gap: 12px; margin-top: 20px; }
.cashier-btn-row .btn { flex: 1; }
.cashier-info { padding: 16px; background: var(--bg-soft); border-radius: var(--radius-sm); margin-top: 16px; }
.cashier-info table { width: 100%; }
.cashier-info th { text-align: left; color: var(--text-muted); font-size: 13px; padding: 4px 0; width: 100px; }
.cashier-info td { font-size: 14px; font-weight: 600; padding: 4px 0; }

/* ===== 移动端顶部栏（H5） ===== */
.mobile-header { display: none; }

/* ===== H5 响应式 ===== */
@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }
  html { font-size: 15px; }
  .sidebar { transform: translateX(-100%); transition: transform .3s; width: 240px; }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; padding: 12px; padding-top: 60px; padding-bottom: 70px; }
  .mobile-header {
    display: flex; position: fixed; top: 0; left: 0; right: 0;
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff; padding: 0 12px; height: 50px; align-items: center;
    justify-content: space-between; z-index: 100; box-shadow: 0 2px 10px rgba(0,0,0,.15);
  }
  .mobile-menu-btn { font-size: 24px; cursor: pointer; background: none; border: none; color: #fff; }
  .mobile-title { font-size: 16px; font-weight: 700; }
  .mobile-balance { font-size: 12px; background: rgba(255,255,255,.2); padding: 3px 10px; border-radius: 12px; }
  .form-row { flex-direction: column; gap: 0; }
  .detail-wrap, .pay-wrap { grid-template-columns: 1fr; }
  .detail-main, .detail-side { padding: 20px 16px; }
  .product-grid { grid-template-columns: 1fr; gap: 12px; }
  .product-card { padding: 18px 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .home-grid { grid-template-columns: 1fr; }
  .table-card-header { padding: 12px 16px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .table { font-size: 13px; }
  .table th, .table td { padding: 8px 10px; }
  .auth-card { padding: 32px 24px; }
  .pagination-wrap { flex-direction: column; align-items: stretch; }
  .pagination-controls { justify-content: center; }
  .page-size-selector { justify-content: center; }
  .page-btn { min-width: 32px; height: 32px; font-size: 13px; }
  .table-card { overflow-x: auto; }
  .table { min-width: 600px; }
  .end-user-grid { grid-template-columns: 1fr; }
  .desktop-mini-grid { grid-template-columns: 1fr; }
  .quick-actions { grid-template-columns: repeat(2, 1fr); }
  .profile-quick-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .group-grid { grid-template-columns: 1fr; }
  .profile-avatar-row { flex-direction: column; text-align: center; }
  .profile-balance-box { width: 100%; }
  .mobile-tabbar {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0;
    background: #fff; border-top: 2px solid var(--border);
    z-index: 100; height: 56px; box-shadow: 0 -2px 10px rgba(0,0,0,.06);
  }
  .mobile-tabbar a {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    font-size: 11px; color: var(--text-muted); text-decoration: none; gap: 2px; font-weight: 600;
  }
  .mobile-tabbar a.active { color: var(--primary); }
  .mobile-tabbar a .tab-icon { font-size: 20px; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .price { font-size: 20px; }
  .price-big { font-size: 24px; }
  .page-header h2 { font-size: 18px; }
  .duration-grid { grid-template-columns: repeat(3, 1fr) !important; }
  .profile-quick-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .recharge-amounts { grid-template-columns: repeat(3, 1fr) !important; }
  .profile-card { padding: 16px; }
  .profile-avatar { width: 56px; height: 56px; font-size: 28px; }
  .contact-item { flex-direction: row; align-items: center; gap: 12px; }
  .group-item { padding: 16px 12px; }
}

/* ===== 悬浮联系客服按钮 ===== */
.float-contact-btn {
  position: fixed;
  right: 20px;
  bottom: 80px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0d9488, #0d9488);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(13, 148, 136, 0.4);
  z-index: 90;
  transition: transform 0.2s, box-shadow 0.2s;
  animation: float-pulse 2s ease-in-out infinite;
}
.float-contact-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.5);
}
@keyframes float-pulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(13, 148, 136, 0.4); }
  50% { box-shadow: 0 4px 24px rgba(13, 148, 136, 0.6); }
}
@media (max-width: 768px) {
  .float-contact-btn { right: 16px; bottom: 72px; width: 48px; height: 48px; font-size: 22px; }
}

/* ===== 充值金额按钮自适应 ===== */
.recharge-amounts {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
@media (max-width: 768px) {
  .recharge-amounts { grid-template-columns: repeat(3, 1fr); }
}
