/* ========== 全局重置 ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  color: #1f1710;
  background: #e8e4de;
  overflow-x: hidden;
}

/* 模拟手机屏幕宽度 */
.app {
  width: 100%;
  max-width: 420px;
  min-height: 100vh;
  margin: 0 auto;
  background: #f5f2ed;
  position: relative;
  padding-bottom: 60px;
  box-shadow: 0 0 30px rgba(0,0,0,0.1);
}

/* ========== 顶部导航 ========== */
.header {
  width: 100%;
  background: #fff;
  padding: 10px 12px 12px;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.location {
  display: flex;
  align-items: center;
}

.loc-icon { font-size: 14px; }
.loc-text { font-size: 13px; font-weight: 700; color: #1f1710; margin: 0 2px; }
.loc-arrow { font-size: 9px; color: #82715f; }

.header-actions {
  display: flex;
  align-items: center;
}

.header-icon {
  font-size: 18px;
  margin-left: 12px;
  cursor: pointer;
}

.msg-wrap {
  position: relative;
  cursor: pointer;
}

.msg-badge {
  position: absolute;
  top: -4px;
  right: -6px;
  min-width: 14px;
  height: 14px;
  background: #e74c3c;
  border-radius: 7px;
  font-size: 9px;
  color: #fff;
  text-align: center;
  line-height: 14px;
  font-weight: 700;
  padding: 0 3px;
}

.search-box {
  width: 100%;
  height: 32px;
  background: #f5f2ed;
  border-radius: 16px;
  display: flex;
  align-items: center;
  padding: 0 10px;
  cursor: pointer;
}

.search-icon { font-size: 13px; margin-right: 5px; opacity: 0.6; }
.search-text { font-size: 12px; color: #a89888; flex: 1; overflow: hidden; white-space: nowrap; }
.voice-btn {
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, #D9642A, #E8834A);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  margin-left: 5px;
}

/* ========== 热搜 ========== */
.hot-bar {
  width: 100%;
  white-space: nowrap;
  background: #fff;
  padding: 0 12px 10px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.hot-bar::-webkit-scrollbar { display: none; }

.hot-item {
  display: inline-flex;
  align-items: center;
  background: #faf8f5;
  border-radius: 12px;
  padding: 5px 10px;
  margin-right: 6px;
  cursor: pointer;
}

.hot-num {
  width: 14px;
  height: 14px;
  line-height: 14px;
  text-align: center;
  border-radius: 3px;
  font-size: 9px;
  font-weight: 800;
  color: #fff;
  margin-right: 4px;
}

.n1 { background: #e74c3c; }
.n2 { background: #e67e22; }
.n3 { background: #f1c40f; }
.hot-word { font-size: 11px; color: #4a3f34; }

/* ========== Banner ========== */
.banner-section {
  width: 100%;
  background: #fff;
  padding: 0 12px 12px;
}

.banner-container {
  width: 100%;
  height: 140px;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.banner-track {
  display: flex;
  width: 300%;
  height: 100%;
  transition: transform 0.5s ease;
}

.banner-item {
  width: 33.333%;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 16px;
  color: #fff;
  position: relative;
  flex-shrink: 0;
}

.banner-left { flex: 1; position: relative; z-index: 1; }

.banner-tag {
  font-size: 10px;
  background: rgba(255,255,255,0.22);
  padding: 3px 8px;
  border-radius: 10px;
  font-weight: 600;
  display: inline-block;
}

.banner-title {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
  white-space: pre-line;
  margin: 6px 0 4px;
}

.banner-sub { font-size: 11px; opacity: 0.85; display: block; }

.banner-btn {
  margin-top: 8px;
  display: inline-block;
  background: #fff;
  color: #D9642A;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 12px;
  cursor: pointer;
}

.banner-emoji {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 56px;
  opacity: 0.25;
}

.banner-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.4);
  transition: all 0.3s;
}

.dot.active {
  width: 16px;
  background: #fff;
}

/* ========== 分类导航 ========== */
.cat-box {
  width: 100%;
  background: #fff;
  padding: 12px;
  display: flex;
  flex-wrap: wrap;
}

.cat-item {
  width: 20%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 0;
  cursor: pointer;
}

.cat-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px !important;
  background: transparent !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 6px;
  overflow: hidden;
}
.cat-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 8px !important;
  display: block;
}

.ci-orange { background: transparent !important; }
.ci-green { background: transparent !important; }
.ci-purple { background: transparent !important; }
.ci-yellow { background: transparent !important; }

.cat-name { font-size: 11px; color: #4a3f34; text-align: center; }

/* ========== 区块标题 ========== */
.sec-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 12px 10px;
}

.sec-left {
  display: flex;
  align-items: center;
}

.sec-bar {
  width: 4px;
  height: 16px;
  background: linear-gradient(180deg, #D9642A, #E8834A);
  border-radius: 2px;
  margin-right: 6px;
}

.sec-title { font-size: 16px; font-weight: 800; color: #1f1710; }

.sec-tag {
  font-size: 10px;
  color: #a89888;
  background: rgba(217,100,42,0.08);
  padding: 2px 8px;
  border-radius: 10px;
  margin-left: 6px;
}

.sec-more { font-size: 12px; color: #82715f; cursor: pointer; }

/* ========== 限时秒杀 ========== */
.flash-box {
  margin: 8px 12px;
  background: linear-gradient(135deg, #ff6b35, #e8530c);
  border-radius: 12px;
  padding: 12px;
  overflow: hidden;
}

.flash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.flash-left {
  display: flex;
  align-items: center;
}

.flash-logo { font-size: 16px; margin-right: 4px; }
.flash-title { font-size: 15px; font-weight: 800; color: #fff; margin-right: 8px; }

.flash-time {
  display: flex;
  align-items: center;
}

.ft {
  background: #fff;
  color: #e8530c;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 4px;
  min-width: 18px;
  text-align: center;
}

.fc { color: #fff; font-size: 11px; font-weight: 700; margin: 0 2px; }
.flash-more { font-size: 11px; color: rgba(255,255,255,0.8); cursor: pointer; }

.flash-scroll {
  white-space: nowrap;
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

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

.flash-goods {
  display: inline-block;
  width: 90px;
  margin-right: 10px;
  vertical-align: top;
  cursor: pointer;
}

.fg-img {
  width: 90px;
  height: 90px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.fg-emoji { font-size: 38px; }

.fg-discount {
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(135deg, #FF6B35, #E8530C);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 0 0 6px 0;
}

.fg-price-row {
  display: flex;
  align-items: baseline;
  margin-top: 6px;
}

.fg-price { font-size: 15px; font-weight: 800; color: #fff; margin-right: 4px; }
.fg-market { font-size: 10px; color: rgba(255,255,255,0.6); text-decoration: line-through; }

.fg-bar {
  margin-top: 4px;
  height: 14px;
  background: rgba(255,255,255,0.2);
  border-radius: 7px;
  position: relative;
  overflow: hidden;
}

.fg-bar-inner {
  height: 100%;
  background: linear-gradient(90deg, #FFD700, #FFA500);
  border-radius: 7px;
}

.fg-bar-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 8px;
  color: #fff;
  font-weight: 600;
}

/* ========== 商品列表 ========== */
.goods-list {
  display: flex;
  flex-wrap: wrap;
  padding: 0 12px;
}

.goods-card {
  width: calc(50% - 6px);
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(48,32,20,0.06);
  margin-bottom: 10px;
  cursor: pointer;
}

.goods-card:nth-child(odd) { margin-right: 12px; }

.goods-img {
  width: 100%;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 46px;
  position: relative;
}

.goods-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  font-size: 9px;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: 4px;
  color: #fff;
}

.gt-orange { background: linear-gradient(135deg, #D9642A, #E8834A); }
.gt-green { background: linear-gradient(135deg, #2E6B63, #3A8578); }

.goods-fav {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  background: rgba(255,255,255,0.9);
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
}

.goods-info { padding: 10px; }

.goods-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 35px;
  color: #1f1710;
}

.goods-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
}

.goods-shop { font-size: 10px; color: #82715f; }
.goods-sales { font-size: 10px; color: #a89888; }

.goods-rating {
  display: flex;
  align-items: center;
  margin-top: 4px;
}

.gr-star { font-size: 10px; color: #f39c12; font-weight: 600; margin-right: 6px; }
.gr-count { font-size: 9px; color: #a89888; }

.goods-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

.goods-price-col {
  display: flex;
  align-items: baseline;
}

.goods-price { font-size: 17px; font-weight: 800; color: #D9642A; }
.gp-symbol { font-size: 11px; }
.goods-market { font-size: 10px; color: #a89888; text-decoration: line-through; margin-left: 4px; }

.goods-add {
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, #D9642A, #E8834A);
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  cursor: pointer;
}

.ga-plus { font-size: 16px; font-weight: 600; line-height: 1; }

.goods-tags {
  display: flex;
  align-items: center;
  margin-top: 6px;
}

.gt-points {
  font-size: 9px;
  color: #2E6B63;
  background: rgba(46,107,99,0.1);
  padding: 3px 6px;
  border-radius: 4px;
  font-weight: 600;
  margin-right: 4px;
}

.gt-ship {
  font-size: 9px;
  color: #2E6B63;
  background: rgba(46,107,99,0.08);
  padding: 3px 6px;
  border-radius: 4px;
}

/* ========== 商家列表 ========== */
.shop-list { padding: 0 12px; }

.shop-card {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(48,32,20,0.06);
  margin-bottom: 10px;
  cursor: pointer;
}

.shop-top {
  padding: 12px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #faf8f5, #fff);
  border-bottom: 1px solid rgba(48,32,20,0.06);
}

.shop-logo-wrap {
  position: relative;
  flex-shrink: 0;
  margin-right: 10px;
}

.shop-logo {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
}

.sl-orange { background: linear-gradient(135deg, #D9642A, #E8834A); }
.sl-green { background: linear-gradient(135deg, #2E6B63, #3A8578); }
.sl-yellow { background: linear-gradient(135deg, #B77A16, #D9A441); }

.shop-v {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, #3498db, #2980b9);
  border-radius: 8px;
  color: #fff;
  font-size: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border: 2px solid #fff;
}

.shop-info { flex: 1; min-width: 0; }

.shop-name-row {
  display: flex;
  align-items: center;
}

.shop-name { font-size: 14px; font-weight: 700; color: #1f1710; margin-right: 6px; }

.shop-coupon {
  font-size: 9px;
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.shop-stats {
  display: flex;
  align-items: center;
  margin-top: 4px;
}

.ss-rating { font-size: 10px; color: #f39c12; font-weight: 600; margin-right: 8px; }
.ss-sales { font-size: 10px; color: #82715f; margin-right: 8px; }
.ss-ship { font-size: 10px; color: #2E6B63; }

.shop-desc { font-size: 10px; color: #a89888; margin-top: 2px; display: block; }

.shop-enter {
  background: linear-gradient(135deg, #D9642A, #E8834A);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 14px;
  flex-shrink: 0;
  margin-left: 8px;
  cursor: pointer;
}

.shop-goods {
  padding: 10px 12px 12px;
  display: flex;
}

.sg-item {
  flex: 1;
  height: 55px;
  border-radius: 6px;
  background: #faf8f5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 6px;
}

.sg-item:last-child { margin-right: 0; }
.sg-emoji { font-size: 24px; }

.sg-more {
  background: linear-gradient(135deg, rgba(217,100,42,0.08), rgba(232,131,74,0.05));
  flex-direction: column;
}

.sg-more-text {
  font-size: 10px;
  color: #D9642A;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
}

.bottom-pad { height: 20px; }

/* ========== 底部导航 ========== */
.tab-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 420px;
  height: 56px;
  background: #fff;
  display: flex;
  border-top: 1px solid #eee;
  z-index: 100;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
}

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-icon { font-size: 20px; margin-bottom: 2px; }
.tab-text { font-size: 10px; color: #82715f; }

.tab-item.active .tab-text { color: #D9642A; font-weight: 600; }
.tab-item.active .tab-icon { transform: scale(1.1); }

/* ========== Toast ========== */
.toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.75);
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  max-width: 80%;
  text-align: center;
}

.toast.show { opacity: 1; }

/* ========== 页面顶部导航 ========== */
.page-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 0 12px;
}
.back-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #1f1710;
  cursor: pointer;
}
.back-btn-placeholder { width: 32px; }
.page-title {
  font-size: 16px;
  font-weight: 700;
  color: #1f1710;
  flex: 1;
  text-align: center;
}
.header-right { display: flex; align-items: center; }
.header-icon { font-size: 18px; cursor: pointer; }

/* ========== 工作台布局 ========== */
.workbench {
  display: flex;
  min-height: calc(100vh - 48px);
}
.workbench-main {
  flex: 1;
  padding: 12px;
  overflow-y: auto;
}
.workbench-title {
  font-size: 18px;
  font-weight: 800;
  color: #1f1710;
  margin-bottom: 12px;
}

/* ========== 侧边菜单 ========== */
.side-menu {
  width: 140px;
  background: #fff;
  border-right: 1px solid #eee;
  flex-shrink: 0;
  overflow-y: auto;
}
.side-menu-header {
  padding: 16px 12px;
  border-bottom: 1px solid #f5f2ed;
  display: flex;
  align-items: center;
}
.side-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #D9642A, #E8834A);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-right: 8px;
}
.side-info { flex: 1; min-width: 0; }
.side-name { font-size: 12px; font-weight: 700; color: #1f1710; }
.side-desc { font-size: 10px; color: #a89888; margin-top: 2px; }
.side-menu-list { padding: 8px 0; }
.side-menu-item {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: all 0.2s;
}
.side-menu-item:hover { background: #faf8f5; }
.side-menu-item.active {
  background: rgba(217,100,42,0.08);
  border-left-color: #D9642A;
}
.side-menu-icon { font-size: 16px; margin-right: 8px; }
.side-menu-text { font-size: 12px; color: #4a3f34; }
.side-menu-item.active .side-menu-text { color: #D9642A; font-weight: 600; }

/* ========== 统计卡片 ========== */
.stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 16px;
}
.stat-card {
  background: #fff;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  align-items: center;
  box-shadow: 0 2px 8px rgba(48,32,20,0.04);
}
.stat-icon { font-size: 24px; margin-right: 10px; }
.stat-info { flex: 1; }
.stat-value { font-size: 18px; font-weight: 800; color: #1f1710; }
.stat-label { font-size: 11px; color: #82715f; margin-top: 2px; }

/* ========== 功能入口网格 ========== */
.func-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.func-item {
  background: #fff;
  border-radius: 10px;
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(48,32,20,0.04);
  transition: transform 0.2s;
}
.func-item:active { transform: scale(0.96); }
.func-icon { font-size: 24px; margin-bottom: 6px; }
.func-text { font-size: 11px; color: #4a3f34; text-align: center; }

/* ========== 通用卡片 ========== */
.card {
  background: #fff;
  border-radius: 10px;
  padding: 12px;
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(48,32,20,0.04);
}
.card-title {
  font-size: 14px;
  font-weight: 700;
  color: #1f1710;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-more { font-size: 11px; color: #82715f; cursor: pointer; }

/* ========== 列表项 ========== */
.list-item {
  display: flex;
  align-items: center;
  padding: 12px;
  background: #fff;
  border-bottom: 1px solid #f5f2ed;
  cursor: pointer;
}
.list-item:last-child { border-bottom: none; }
.list-icon { font-size: 20px; margin-right: 10px; }
.list-content { flex: 1; min-width: 0; }
.list-title { font-size: 13px; font-weight: 600; color: #1f1710; }
.list-desc { font-size: 11px; color: #82715f; margin-top: 2px; }
.list-arrow { font-size: 16px; color: #ccc; margin-left: 8px; }
.list-badge {
  background: #e74c3c;
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 8px;
  margin-right: 8px;
}

/* ========== 表单 ========== */
.form-group {
  margin-bottom: 16px;
}
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1f1710;
  margin-bottom: 6px;
}
.form-label .required { color: #e74c3c; margin-right: 2px; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #e0d8d0;
  border-radius: 8px;
  font-size: 13px;
  color: #1f1710;
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: #D9642A;
}
.form-textarea {
  height: auto;
  min-height: 80px;
  padding: 10px 12px;
  resize: vertical;
}
.form-hint { font-size: 11px; color: #a89888; margin-top: 4px; }
.form-row {
  display: flex;
  gap: 10px;
}
.form-row .form-group { flex: 1; }

/* ========== 按钮 ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 20px;
  border-radius: 21px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(135deg, #D9642A, #E8834A);
  color: #fff;
}
.btn-secondary {
  background: #f5f2ed;
  color: #4a3f34;
}
.btn-success {
  background: linear-gradient(135deg, #2E6B63, #3A8578);
  color: #fff;
}
.btn-warning {
  background: linear-gradient(135deg, #B77A16, #D9A441);
  color: #fff;
}
.btn-block { width: 100%; }
.btn-sm { height: 32px; padding: 0 14px; font-size: 12px; border-radius: 16px; }

/* ========== 角色选择 ========== */
.role-select {
  padding: 24px 16px;
}
.role-title {
  font-size: 20px;
  font-weight: 800;
  color: #1f1710;
  text-align: center;
  margin-bottom: 8px;
}
.role-subtitle {
  font-size: 13px;
  color: #82715f;
  text-align: center;
  margin-bottom: 24px;
}
.role-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(48,32,20,0.06);
  border: 2px solid transparent;
  transition: all 0.2s;
}
.role-card:active { transform: scale(0.98); }
.role-card:hover { border-color: #D9642A; }
.role-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-right: 14px;
  flex-shrink: 0;
}
.role-info { flex: 1; }
.role-name { font-size: 16px; font-weight: 700; color: #1f1710; }
.role-desc { font-size: 12px; color: #82715f; margin-top: 4px; line-height: 1.4; }
.role-arrow { font-size: 20px; color: #ccc; }

/* ========== 订单卡片 ========== */
.order-card {
  background: #fff;
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(48,32,20,0.04);
}
.order-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid #f5f2ed;
}
.order-no { font-size: 12px; color: #82715f; }
.order-status { font-size: 12px; font-weight: 600; }
.status-pending { color: #e67e22; }
.status-paid { color: #2E6B63; }
.status-shipped { color: #3498db; }
.status-done { color: #82715f; }
.order-body { padding: 12px; display: flex; }
.order-goods-img {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  background: #faf8f5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-right: 10px;
  flex-shrink: 0;
}
.order-goods-info { flex: 1; min-width: 0; }
.order-goods-name { font-size: 13px; font-weight: 600; color: #1f1710; }
.order-goods-spec { font-size: 11px; color: #82715f; margin-top: 4px; }
.order-goods-price { font-size: 13px; font-weight: 700; color: #D9642A; margin-top: 4px; }
.order-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 10px 12px;
  border-top: 1px solid #f5f2ed;
  gap: 8px;
}

/* ========== 空状态 ========== */
.empty-state {
  padding: 60px 20px;
  text-align: center;
}
.empty-icon { font-size: 48px; margin-bottom: 12px; opacity: 0.5; }
.empty-text { font-size: 13px; color: #a89888; }

/* ========== 标签 ========== */
.tag {
  display: inline-block;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
}
.tag-orange { background: rgba(217,100,42,0.1); color: #D9642A; }
.tag-green { background: rgba(46,107,99,0.1); color: #2E6B63; }
.tag-purple { background: rgba(91,75,138,0.1); color: #5B4B8A; }
.tag-red { background: rgba(231,76,60,0.1); color: #e74c3c; }

/* ========== 进度条 ========== */
.progress {
  height: 8px;
  background: #f5f2ed;
  border-radius: 4px;
  overflow: hidden;
}
.progress-inner {
  height: 100%;
  background: linear-gradient(90deg, #D9642A, #E8834A);
  border-radius: 4px;
  transition: width 0.3s;
}

/* ========== 分类页左侧导航 ========== */
.cat-left-item {
  padding: 15px 10px;
  text-align: center;
  font-size: 12px;
  color: #4a3f34;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: all 0.2s;
}
.cat-left-item.active {
  font-weight: 700;
  color: #D9642A;
  background: rgba(217,100,42,0.08);
  border-left-color: #D9642A;
}

/* ========== 食品BANNER ========== */
.food-banner {
  position: relative;
  cursor: pointer;
}
.food-banner:active {
  transform: scale(0.99);
}

/* ========== 分类图标（非圆形） ========== */
.category-grid {
  display: flex;
  flex-wrap: wrap;
  background: #fff;
  padding: 12px 0;
}
.category-item {
  width: 20%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0;
  cursor: pointer;
}
.category-item img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}
.category-item span {
  font-size: 11px;
  color: #4a3f34;
  margin-top: 6px;
}
