/* 茂名生活平台商家端 - 样式表 */
:root {
  /* 🌸 茂名荔枝·暖橙风 — 方案A */
  --primary: #FF6B35;
  --primary-dark: #E85D2A;
  --primary-light: #FF8C42;
  --accent: #FFB800;
  --success: #2ECC71;
  --warning: #FF9500;
  --danger: #FF4757;
  --text: #2D2D2D;
  --text2: #666;
  --text3: #999;
  --bg: #FFF5F0;
  --card: #fff;
  --shadow-sm: 0 1px 4px rgba(255,107,53,0.06);
  --shadow: 0 2px 12px rgba(255,107,53,0.08);
  --shadow-lg: 0 8px 40px rgba(255,107,53,0.15);
  --radius: 12px;
  --radius-sm: 8px;
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; font-family: -apple-system, 'PingFang SC', 'Helvetica Neue', sans-serif; font-size: 14px; color: var(--text); background: var(--bg); }
body { overflow: hidden; }

/*/* ==================== 布局 ==================== */
#app { height: 100%; display: flex; flex-direction: column; }
.page-content { flex: 1; overflow: hidden; position: relative; min-height: 0; }
.page { display: none; height: 100%; opacity: 0; transition: opacity 0.25s, transform 0.25s; transform: translateY(4px); overflow-y: auto; -webkit-overflow-scrolling: touch; }
.page.active-page { display: block; opacity: 1; transform: translateY(0); }
#page-my { display:none; flex-direction:column; }
#page-my.active-page { display:flex; }
#page-my .page-inner { flex:1; overflow-y:auto; min-height:0; }
#page-index { display: none; flex-direction: column; overflow: hidden; opacity: 0; }
#page-index.active-page { display: flex; opacity: 1; }
#page-index .page-inner { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 15px; }
.page-inner { padding: 15px; }

/* 底部导航 */
.tab-bar { display: flex; background: #fff; border-top: 1px solid #f0f0f0; flex-shrink: 0; padding: 5px 0 8px; padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px)); z-index: 100; }
.tab-item { flex: 1; text-align: center; padding: 2px 0; cursor: pointer; color: #999; transition: color 0.2s; position: relative; }
.tab-item.active { color: var(--primary); }
.tab-icon { display: block; font-size: 22px; line-height: 1.3; }
.tab-label { display: block; font-size: 10px; margin-top: 1px; font-weight: 500; }
.tab-badge { position: absolute; top: -2px; right: 50%; margin-right: -22px; background: var(--danger); color: #fff; font-size: 10px; padding: 1px 6px; border-radius: 10px; min-width: 16px; }

/* 子页面 */
.sub-page {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 200;
  background: #fff;
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: fadeIn 0.2s ease;
}
.sub-page.show { display: flex; }
.sub-page .nav-bar { flex-shrink: 0; }
.sub-page .page-inner { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 15px; min-height: 0; }
.sub-page .page-inner::-webkit-scrollbar { width: 3px; }
.sub-page .page-inner::-webkit-scrollbar-thumb { background: #ddd; border-radius: 2px; }

/*/* ==================== 导航栏 ==================== */
.nav-bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; flex-shrink: 0; box-shadow: 0 2px 12px rgba(255, 107, 53,0.25); position: sticky; top: 0; z-index: 10; }
.nav-title { font-size: 17px; font-weight: 600; letter-spacing: 0.5px; }
.nav-back { display: flex; align-items: center; gap: 2px; cursor: pointer; font-size: 14px; }
.nav-back .arrow { font-size: 24px; line-height: 1; }
.nav-placeholder { width: 50px; }

/* 品牌顶栏 */
.app-brand { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); padding: 16px 20px; text-align: center; color: #fff; font-size: 18px; font-weight: 700; flex-shrink: 0; letter-spacing: 3px; box-shadow: 0 3px 16px rgba(255, 107, 53,0.3); }
.app-brand .brand-sub { display: block; font-size: 10px; font-weight: 400; letter-spacing: 2px; opacity: .75; margin-top: 2px; }

/* 卡片 */
.card { background: var(--card); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow); transition: box-shadow .25s, transform .25s; }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.card-title { font-size: 15px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 6px; }
.card-title .accent { display: inline-block; width: 3px; height: 14px; background: var(--primary); border-radius: 2px; flex-shrink: 0; }

/* 指标卡 */
.metrics-cards { display: flex; gap: 10px; }
.metric-card { flex: 1; background: var(--card); border-radius: var(--radius-sm); padding: 16px 8px; text-align: center; box-shadow: var(--shadow-sm); transition: box-shadow .25s, transform .25s; }
.metric-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.metric-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 14px; margin: 0 auto 6px; }
.metric-val { font-size: 18px; font-weight: 700; color: var(--text); display: block; line-height: 1.2; }
.metric-val.green { color: var(--success); }
.metric-val.orange { color: var(--accent); }
.metric-lbl { font-size: 11px; color: var(--text3); margin-top: 2px; display: block; }
.stats-summary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); padding: 14px 12px 16px; flex-shrink: 0; }
.stats-row { display: flex; }
.stats-item { flex: 1; text-align: center; padding: 3px 0; }
.stats-num { font-size: 20px; font-weight: 700; color: #fff; display: block; line-height: 1.2; }
.stats-label { font-size: 11px; color: rgba(255,255,255,.75); margin-top: 2px; }

/* 筛选标签 */
.filter-tabs { background: #fff; border-bottom: 1px solid #f0f0f0; display: flex; overflow-x: auto; padding: 10px 15px; flex-shrink: 0; gap: 8px; }
.filter-tab { flex-shrink: 0; padding: 7px 16px; border-radius: 20px; font-size: 13px; color: var(--text2); background: var(--bg); cursor: pointer; white-space: nowrap; font-weight: 500; transition: all .2s; }
.filter-tab.active { color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); box-shadow: 0 2px 8px rgba(255, 107, 53,.3); }

/*/* ==================== 订单卡片 ==================== */
.order-card { background: var(--card); border-radius: var(--radius); padding: 14px 16px; margin-bottom: 10px; box-shadow: var(--shadow); cursor: pointer; transition: all .2s; border-left: 3px solid transparent; }
.order-card.s-pending_accept { border-left-color: var(--accent); }
.order-card.s-assigned { border-left-color: var(--primary); }
.order-card.s-processing { border-left-color: #9C27B0; }
.order-card.s-completed { border-left-color: var(--success); }
.order-card.s-cancelled { border-left-color: var(--danger); }
.order-card.s-rejected { border-left-color: #9E9E9E; }
.order-card:active { transform: scale(.98); }
.order-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.order-service { font-size: 15px; font-weight: 600; color: var(--text); }
.order-status { font-size: 11px; padding: 3px 10px; border-radius: 12px; font-weight: 500; }
.order-status.s-pending_accept { background: #FFF8E1; color: #F57C00; }
.order-status.s-assigned { background: #E3F2FD; color: #1565C0; }
.order-status.s-processing { background: #F3E5F5; color: #7B1FA2; }
.order-status.s-completed { background: #E8F5E9; color: #2E7D32; }
.order-status.s-cancelled { background: #FFEBEE; color: #C62828; }
.order-status.s-rejected { background: #F5F5F5; color: #9E9E9E; }
.order-body { display: flex; justify-content: space-between; }
.order-info { flex: 1; }
.order-id, .order-addr, .order-time, .order-user { display: block; font-size: 12px; color: var(--text2); margin-bottom: 4px; line-height: 1.4; }
.order-id-row { font-size: 12px; color: var(--text3); margin: 8px 0 4px; padding: 0 16px; }
.order-amount { text-align: right; min-width: 80px; }
.amount-label { font-size: 11px; color: var(--text3); display: block; margin-bottom: 2px; }
.amount-value { font-size: 17px; color: var(--danger); font-weight: 700; }

/*/* ==================== 按钮体系 ==================== */
.btn { display: inline-block; padding: 10px 24px; border-radius: 22px; font-size: 14px; border: none; cursor: pointer; text-align: center; font-weight: 500; transition: all .2s; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; box-shadow: 0 2px 10px rgba(255, 107, 53,.3); }
.btn-primary:active { opacity: .9; transform: scale(.97); }
.btn-success { background: linear-gradient(135deg, var(--success), #28A745); color: #fff; box-shadow: 0 2px 10px rgba(52,199,89,.3); }
.btn-success:active { opacity: .9; transform: scale(.97); }
.btn-info { background: linear-gradient(135deg, #5B86E5, #36D1DC); color: #fff; box-shadow: 0 2px 10px rgba(91,134,229,.3); }
.btn-info:active { opacity: .9; transform: scale(.97); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-block { display: block; width: 100%; }
.btn-sm { padding: 6px 14px; font-size: 12px; border-radius: 16px; }

/* 网格菜单 */
.section-title { font-size: 14px; font-weight: 600; margin: 20px 0 10px; display: flex; align-items: center; gap: 6px; color: var(--text2); text-transform: uppercase; letter-spacing: 1px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-single { grid-template-columns: 1fr; }
.grid-item { background: var(--card); border-radius: var(--radius); padding: 20px 12px; text-align: center; box-shadow: var(--shadow); cursor: pointer; transition: all .2s; }
.grid-item:active { transform: scale(.96); }
.grid-icon { width: 50px; height: 50px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 24px; margin: 0 auto 8px; box-shadow: 0 2px 8px rgba(0,0,0,.06); }
.grid-name { font-size: 14px; font-weight: 600; color: var(--text); }
.grid-desc { font-size: 11px; color: var(--text3); margin-top: 3px; }

/* 登录页 - 小程序风格 */
.login-fullpage {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--bg);
}
.login-header {
  background: var(--primary);
  color: #fff;
  text-align: center;
  padding: 12px 0;
  font-size: 17px;
  font-weight: 500;
  flex-shrink: 0;
}
.login-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 30px 24px 0;
  overflow-y: auto;
}
.login-brand {
  text-align: center;
  margin-bottom: 32px;
}
.brand-title {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}
.brand-sub {
  font-size: 14px;
  color: var(--text3);
  margin-top: 4px;
}
.login-tabs {
  display: flex;
  margin-bottom: 24px;
  border-bottom: 1px solid #eee;
}
.login-tabs .tab-item {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  font-size: 16px;
  color: var(--text3);
  cursor: pointer;
  position: relative;
  transition: color .2s;
}
.login-tabs .tab-item.active {
  color: var(--primary);
  font-weight: 600;
}
.login-tabs .tab-item.active::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 2.5px;
  background: var(--primary);
  border-radius: 2px;
}
.login-form { }
.form-field {
  margin-bottom: 16px;
}
.field-input {
  width: 100%;
  height: 44px;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 0 14px;
  font-size: 15px;
  outline: none;
  background: #fff;
  transition: border-color .2s;
  color: var(--text);
}
.field-input:focus {
  border-color: var(--primary);
}
.field-input::placeholder {
  color: #bbb;
}
.error-tip {
  background: #fff;
  color: var(--danger);
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
  border: 1px solid #ffe0e0;
}
.login-btn {
  width: 100%;
  height: 44px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity .2s;
  margin-top: 4px;
}
.login-btn:active {
  opacity: .85;
}
.login-footer {
  text-align: center;
  padding: 20px 0 30px;
  font-size: 14px;
  color: var(--text3);
}
.login-footer .link {
  color: var(--primary);
  cursor: pointer;
  font-weight: 500;
}
.login-version {
  text-align: center;
  padding: 12px 0;
  font-size: 11px;
  color: var(--text3);
  flex-shrink: 0;
}

/* 我的商家卡片 */
.my-profile-card {
  background: linear-gradient(180deg, #4A90D9 0%, #357ABD 56%, var(--bg) 56%, var(--bg) 100%);
  padding: 22px 18px 18px;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,.04);
  top: 0; z-index: 5;
  position: relative;
}
.my-profile-row { display: flex; align-items: center; gap: 14px; }
.my-avatar { width: 64px; height: 64px; border-radius: 50%; border: 3px solid rgba(255,255,255,.92); box-shadow: 0 4px 16px rgba(0,0,0,.18); flex-shrink: 0; object-fit: cover; }
.my-profile-info { flex: 1; min-width: 0; }
.my-profile-info .my-name { font-size: 19px; font-weight: 700; color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.08); }
.my-profile-info .my-category { font-size: 12px; color: rgba(255,255,255,.7); margin-top: 3px; }
.my-profile-info .my-desc { font-size: 12px; color: var(--text2); margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.my-tags { display: flex; gap: 5px; margin-top: 6px; flex-wrap: wrap; }
.my-tag { font-size: 10px; background: rgba(255,255,255,.92); color: var(--text2); padding: 2px 10px; border-radius: 10px; }
.my-edit-btn { flex-shrink: 0; padding: 7px 18px; background: rgba(255,255,255,.92); border-radius: 16px; color: #357ABD; font-size: 12px; font-weight: 600; cursor: pointer; transition: all .2s; white-space: nowrap; box-shadow: 0 1px 6px rgba(0,0,0,.08); }
.my-edit-btn:active { background: rgba(255,255,255,.35); transform: scale(.94); }



/* 店铺管理入口按钮 */
.my-manage-btn { display: inline-block; padding: 8px 28px; border-radius: 18px; background: rgba(255,255,255,.18); color: #fff; font-size: 13px; font-weight: 500; cursor: pointer; transition: all .2s; }
.my-manage-btn:active { background: rgba(255,255,255,.3); transform: scale(.96); }

/*/* ==================== 表单输入 ==================== */
.form-group { margin-bottom: 16px; }
.form-label { font-size: 13px; font-weight: 500; display: block; margin-bottom: 6px; color: var(--text2); }
.form-input { width: 100%; height: 42px; border: 1px solid #e0e0e0; border-radius: 8px; padding: 0 14px; font-size: 14px; outline: none; transition: border-color .2s; background: #fafbfc; }
.form-input:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(255, 107, 53,.1); background: #fff; }
.form-textarea { width: 100%; min-height: 100px; border: 1px solid #e0e0e0; border-radius: 8px; padding: 10px 14px; font-size: 14px; outline: none; resize: none; background: #fafbfc; transition: border-color .2s; }
.form-textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(255, 107, 53,.1); background: #fff; }
.form-card { background: var(--card); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow); }
.form-row { display: flex; gap: 12px; }
.form-half { flex: 1; }

/* 菜单列表 */
.menu-list { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.menu-item { display: flex; align-items: center; padding: 15px 16px; border-bottom: 1px solid #f5f5f5; cursor: pointer; transition: background .15s; }
.menu-item:last-child { border-bottom: none; }
.menu-item:active { background: #f8f9fa; }
.menu-icon { font-size: 18px; margin-right: 12px; flex-shrink: 0; }
.menu-text { flex: 1; font-size: 14px; color: var(--text); }
.menu-arrow { font-size: 16px; color: #ccc; }

/* 退出 */
.logout-section { padding: 20px 0; }
.logout-btn { width: 100%; height: 48px; background: #fff; color: var(--danger); border: 1.5px solid var(--danger); border-radius: 24px; font-size: 15px; cursor: pointer; font-weight: 500; transition: all .2s; letter-spacing: 1px; }
.logout-btn:active { background: #fff5f5; transform: scale(.98); }
.version { text-align: center; padding: 12px; color: var(--text3); font-size: 11px; }

/* 收入 */
.income-amount { font-size: 32px; font-weight: 700; margin: 0 0 16px; color: var(--text); }
.income-list { }
.income-item { padding: 10px 0; border-bottom: 1px solid var(--border,#f0f0f0); }
.income-item:last-child { border-bottom: none; }
.income-label { font-size: 13px; color: var(--text2,#999); display: block; }
.income-val { font-size: 18px; font-weight: 600; color: var(--text,#333); margin-top: 4px; display: block; }
.income-val.green { color: var(--success,#34C759); }

/* 柱状图 */
.chart { display: flex; align-items: flex-end; gap: 3px; height: 80px; padding: 0 2px; }
.bar-item { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; }
.bar-fill { width: 100%; min-height: 2px; background: linear-gradient(to top, var(--primary), var(--primary-light)); border-radius: 2px 2px 0 0; }
.bar-label { font-size: 9px; color: var(--text3); margin-top: 3px; white-space: nowrap; }

/* 排行 */
.rank-item { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.rank-index { width: 20px; height: 20px; border-radius: 50%; text-align: center; line-height: 20px; font-size: 11px; font-weight: 600; color: #fff; flex-shrink: 0; }
.rank-1 { background: linear-gradient(135deg, #FF6B00, #FF9500); }
.rank-2 { background: linear-gradient(135deg, #607D8B, #78909C); }
.rank-3 { background: linear-gradient(135deg, #8D6E63, #A1887F); }
.rank-name { font-size: 13px; color: var(--text); width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex-shrink: 0; }
.rank-bar-bg { flex: 1; height: 10px; background: #f0f0f0; border-radius: 5px; overflow: hidden; }
.rank-bar { height: 100%; background: linear-gradient(90deg, var(--primary), var(--primary-light)); border-radius: 5px; }
.rank-count { font-size: 12px; color: var(--text3); width: 40px; text-align: right; }

/* 待办 */
.todo-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid #f5f5f5; cursor: pointer; }
.todo-item:last-child { border-bottom: none; }
.todo-icon { font-size: 16px; }
.todo-info { flex: 1; }
.todo-title { font-size: 13px; font-weight: 500; }
.todo-desc { font-size: 11px; color: var(--text3); margin-top: 2px; display: block; }

/* 消息/聊天 */
.chat-header { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 2px 12px rgba(255, 107, 53,.25); border-radius: 0 0 12px 12px; }
.chat-header .title { font-size: 17px; font-weight: 600; color: #fff; letter-spacing: .5px; }
.chat-header .status { font-size: 11px; color: #4ade80; font-weight: 500; }
.chat-layout { display: flex; flex-direction: column; height: 100%; }
.chat-layout .chat-header { flex-shrink: 0; }
.chat-layout .chat-messages { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 12px; min-height: 0; }
.chat-layout .msg-input { flex-shrink: 0; }
.chat-messages { padding: 12px; }
.msg-wrapper { margin-bottom: 12px; display: flex; align-items: flex-end; gap: 8px; }
.msg-wrapper.sent { text-align: right; flex-direction: row-reverse; }
.msg-avatar { width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; color: #fff; }
.msg-avatar.my { background: linear-gradient(135deg, #34C759, #2DB84D); }
.msg-bubble { display: inline-block; padding: 10px 14px; border-radius: 12px; max-width: 72%; font-size: 14px; line-height: 1.5; text-align: left; }
.msg-bubble.sent { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; border-bottom-right-radius: 4px; box-shadow: 0 2px 8px rgba(255, 107, 53,.2); }
.msg-bubble.received { background: #fff; color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.06); border-bottom-left-radius: 4px; }
.msg-time { font-size: 10px; color: var(--text3); margin-top: 4px; display: block; }
.msg-name { font-size: 11px; color: rgba(255,255,255,.6); margin-bottom: 3px; }
.msg-bubble.received .msg-name { color: var(--text3); }

/* 连接状态条 */
.conn-bar { padding: 4px 12px; text-align: center; font-size: 12px; flex-shrink: 0; display: none; }
.conn-bar.on { display: none; }
.conn-bar.off { display: block; background: #f5f5f5; color: #999; }

/* 快捷回复区 */
.quick-reply { padding: 8px 12px; background: #fff; border-top: 1px solid #f0f0f0; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; flex-shrink: 0; }
.quick-reply .quick-item { display: inline-block; padding: 6px 14px; margin-right: 8px; border-radius: 16px; background: var(--bg); color: var(--text2); font-size: 13px; cursor: pointer; white-space: nowrap; flex-shrink: 0; touch-action: manipulation; }
.quick-reply .quick-item:active { opacity: .7; }
.msg-input { display: flex; align-items: center; padding: 10px 12px; background: #fff; border-top: 1px solid #f0f0f0; gap: 8px; }
.msg-input input { flex: 1; height: 38px; border: 1px solid #e8e8e8; border-radius: 19px; padding: 0 14px; font-size: 14px; outline: none; background: var(--bg); }
.msg-input input:focus { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(255, 107, 53,.06); }
.msg-input button { padding: 8px 20px; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; border: none; border-radius: 19px; font-size: 14px; cursor: pointer; font-weight: 500; box-shadow: 0 2px 8px rgba(255, 107, 53,.25); }

/* 图片上传 */
.image-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.image-item { width: 80px; height: 80px; border-radius: 8px; overflow: hidden; position: relative; }
.image-item img { width: 100%; height: 100%; object-fit: cover; }
.img-remove { position: absolute; top: 2px; right: 2px; width: 20px; height: 20px; background: rgba(0,0,0,.5); color: #fff; border-radius: 50%; text-align: center; line-height: 20px; font-size: 12px; cursor: pointer; }
.add-btn { border: 1.5px dashed #ddd; display: flex; align-items: center; justify-content: center; background: #fafafa; cursor: pointer; }
.add-icon { font-size: 28px; color: #ccc; }

/* 空状态 & 加载 */
.loading { text-align: center; padding: 40px 0; color: var(--text3); font-size: 14px; }
.loading::after { content: ''; display: inline-block; width: 14px; height: 14px; margin-left: 6px; border: 2px solid #e0e0e0; border-top-color: var(--primary); border-radius: 50%; animation: spin .7s linear infinite; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-icon { font-size: 40px; display: block; margin-bottom: 8px; }
.empty-text { font-size: 14px; }
.load-more { text-align: center; padding: 12px 0; color: var(--text3); font-size: 12px; }

/* 动画 */

/* 订单详情 */
.order-desc { font-size: 14px; color: #555; margin-bottom: 12px; line-height: 1.6; background: #f8f9fa; padding: 12px; border-radius: 8px; border-left: 3px solid var(--primary); }
.order-info-row { font-size: 14px; color: #444; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 6px 0; border-radius: 6px; }
.order-info-row:hover { background: #f5f7fa; padding: 6px 8px; margin: 0 -8px 10px; }
.selectable { -webkit-user-select: text; user-select: text; cursor: text; color: var(--text); }
.copy-hint { font-size: 11px; color: var(--primary); padding: 2px 8px; border-radius: 10px; background: rgba(255, 107, 53,.08); flex-shrink: 0; cursor: pointer; font-weight: 500; }
.copy-hint:active { background: rgba(255, 107, 53,.18); }
.order-amount { font-size: 18px; color: var(--danger); font-weight: 700; margin-top: 6px; padding-top: 10px; border-top: 1px solid #f0f0f0; }
.order-actions { display: flex; flex-direction: column; gap: 8px; }

/* 轮播图 */
.swiper { position: relative; overflow: hidden; height: 200px; border-radius: var(--radius); box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.swiper-track { display: flex; transition: transform .5s ease; height: 100%; }
.swiper-slide { min-width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; position: relative; background-size: cover; background-position: center; }
.swiper-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.1), rgba(0,0,0,.5)); z-index: 1; border-radius: var(--radius); }
.swiper-title { font-size: 18px; font-weight: 700; position: relative; z-index: 2; }
.swiper-sub { font-size: 13px; margin-top: 6px; opacity: .85; position: relative; z-index: 2; }
.swiper-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 6px; z-index: 3; }
.swiper-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.4); transition: all .3s; }
.swiper-dot.active { background: #fff; width: 20px; border-radius: 4px; }

/* 评价 */
.review-overview { display: flex; gap: 16px; }
.review-score { text-align: center; min-width: 80px; }
.score-num { font-size: 28px; font-weight: 700; color: var(--accent); display: block; }
.score-star { font-size: 14px; display: block; margin: 4px 0; }
.score-total { font-size: 11px; color: var(--text3); }
.review-bars { flex: 1; }
.review-bar-item { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.review-star-label { font-size: 12px; color: var(--text2); width: 30px; }
.review-bar-bg { flex: 1; height: 10px; background: #f0f0f0; border-radius: 5px; overflow: hidden; }
.review-bar-fill { height: 100%; background: linear-gradient(90deg, var(--accent), #FFDA79); border-radius: 5px; }
.review-bar-count { font-size: 11px; color: var(--text3); width: 24px; text-align: right; }

/* 趋势图 */
.trend-scroll { overflow-x: auto; white-space: nowrap; padding-bottom: 4px; }
.trend-chart { display: flex; align-items: flex-end; gap: 4px; height: 70px; }
.trend-bar-wrap { flex-shrink: 0; width: 30px; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; }
.trend-bar { width: 100%; min-height: 2px; background: linear-gradient(to top, var(--success), #66D687); border-radius: 2px 2px 0 0; }
.trend-date { font-size: 10px; color: var(--text3); margin-top: 2px; }

/* 首页Banner & 问候 */
.index-banner { margin-bottom: 12px; }
.banner-placeholder { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); padding: 24px 20px; text-align: center; color: #fff; font-size: 20px; font-weight: 700; border-radius: 10px; }
/* 移动端首屏适配：底部导航栏可见 */
#phoneFrame {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

@media (min-width: 520px) {
  /* 电脑端全屏自适应 — 铺满浏览器，内容居中，左右留白 */
  html, body { width: 100% !important; height: 100% !important; margin: 0 !important; padding: 0 !important; overflow: auto !important; background: #e8eaed !important; }
  #phoneFrame { width: 100vw !important; height: 100vh !important; max-width: none !important; margin: 0 !important; padding: 0 !important; border-radius: 0 !important; box-shadow: none !important; border: none !important; overflow-y: auto !important; display: flex !important; justify-content: center !important; background: #e8eaed !important; }
  #app { width: 100% !important; max-width: 1200px !important; min-width: 0 !important; margin: 0 !important; padding: 0 !important; border-radius: 0 !important; box-shadow: none !important; border: none !important; height: 100% !important; display: flex; flex-direction: column; background: var(--bg); }
  .page-content { overflow: auto !important; min-height: 0 !important; flex: 1 !important; }
  .page-inner { padding: 20px 30px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)) !important; gap: 16px; }
  .grid-item { padding: 24px 16px; }
  .order-card { padding: 16px 20px; }
  .card { padding: 18px 24px; }
  .login-body { max-width: 420px; margin: 0 auto; }
  .app-brand { padding: 18px 24px; }
  .stats-summary { padding: 16px 24px; }
  .metrics-cards { gap: 16px; }
  .filter-tabs { padding: 12px 24px; }
}

/* Toast动画 */


.g-gold { background: linear-gradient(135deg, #FF9500, #FF6B00) !important; }

/* 主题渐变工具类 */

/* 主题渐变工具类 */
.g-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)) !important; }
.g-gold { background: linear-gradient(135deg, #FF9500, #FF6B00) !important; }
.g-success { background: linear-gradient(135deg, #34C759, #2DB84D) !important; }


/* 弹窗动画 */
@keyframes fadeInOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* Toast 淡入动画 */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* 提现方式选择按钮 */.method-option { transition: all 0.2s; user-select: none; }.method-option:hover { transform: scale(1.05); }

/* 充值金额选择 */
.recharge-preset { transition: all 0.2s; user-select: none; }
.recharge-preset:hover { transform: scale(1.05); border-color: var(--primary) !important; }
#rc_custom:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(255,107,53,0.15); }

