/* ===========================================
   youpinmall 商超会员商城 - 淘宝风 UI 样式
   橙 #FF6A00 / 红 #F2270C / 浅灰背景
   =========================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Khmer:wght@400;500;600;700&display=swap');

:root {
  --orange: #FF6A00;
  --orange-light: #FF8A33;
  --red: #F2270C;
  --red-dark: #D02008;
  --bg: #F5F5F5;
  --card: #FFFFFF;
  --text: #222222;
  --text2: #888888;
  --line: #EEEEEE;
  --teal: #00A99D;
  --safe-bottom: 60px;
}

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

body {
  font-family: 'Noto Sans Khmer', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #E9E9E9;
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  overflow-x: hidden;
}

/* 手机容器 */
.phone {
  width: 100%;
  max-width: 430px;
  overflow-x: hidden;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
  padding-bottom: calc(var(--safe-bottom) + 20px);
}
@media (min-width: 500px) {
  .phone { box-shadow: 0 0 40px rgba(0,0,0,.15); margin: 10px auto; min-height: calc(100vh - 20px); }
}

/* 顶部栏 */
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(135deg, var(--orange), var(--red));
  color: #fff;
  padding: 10px 12px;
}
.topbar-row { display: flex; align-items: center; gap: 8px; }
.location { display: flex; align-items: center; gap: 3px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.location .pin { font-size: 15px; }
.searchbox {
  flex: 1; display: flex; align-items: center; background: #fff; border-radius: 20px;
  padding: 7px 12px; gap: 6px; min-width: 0;
}
.searchbox input { flex: 1; border: none; outline: none; font-size: 13px; color: var(--text); background: transparent; min-width: 0; }
.searchbox input::placeholder { color: #bbb; }
.searchbox .icon { font-size: 15px; color: var(--orange); }
.lang-btn {
  background: rgba(255,255,255,.22); border: 1px solid rgba(255,255,255,.5);
  border-radius: 16px; padding: 4px 8px; font-size: 11px; font-weight: 600;
  color: #fff; white-space: nowrap; cursor: pointer;
}

/* 频道 Tab */
.channels {
  display: flex; gap: 18px; background: linear-gradient(135deg, var(--orange), var(--red));
  color: rgba(255,255,255,.85); padding: 6px 14px 10px; overflow-x: auto; font-size: 13px;
  scrollbar-width: none;
}
.channels::-webkit-scrollbar { display: none; }
.channel { white-space: nowrap; padding-bottom: 4px; cursor: pointer; }
.channel.active { color: #fff; font-weight: 700; border-bottom: 3px solid #fff; }

/* 页面容器 */
.page { display: none; }
.page.active { display: block; animation: fadeIn .25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* 区块标题 */
.section { background: var(--card); margin: 8px; border-radius: 12px; padding: 12px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.section-title { font-size: 17px; font-weight: 800; display: flex; align-items: center; gap: 6px; }
.section-title::before { content: ''; width: 4px; height: 18px; background: var(--red); border-radius: 2px; }
.section-sub { font-size: 11px; color: var(--text2); }
.section-more { font-size: 12px; color: var(--text2); }

/* 轮播广告 */
.banner { margin: 8px; border-radius: 12px; overflow: hidden; height: 150px; position: relative; }
.banner-slides { display: flex; height: 100%; transition: transform .4s ease; }
.banner-slide { min-width: 100%; height: 100%; display: flex; align-items: center; padding: 18px 20px; color: #fff; position: relative; }
.banner-slide .b-tag { font-size: 10px; letter-spacing: 1px; background: rgba(255,255,255,.25); padding: 3px 8px; border-radius: 10px; display: inline-block; margin-bottom: 8px; }
.banner-slide .b-title { font-size: 20px; font-weight: 800; line-height: 1.3; margin-bottom: 6px; }
.banner-slide .b-sub { font-size: 11px; opacity: .9; }
.banner-slide .b-emoji { position: absolute; right: 18px; font-size: 74px; opacity: .9; }
.banner-dots { position: absolute; bottom: 10px; left: 50%; transform: translateX(-50%); display: flex; gap: 5px; }
.dot { width: 6px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.5); transition: all .3s; }
.dot.active { width: 16px; background: #fff; }

/* 特价专区 */
.special-scroll { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.special-scroll::-webkit-scrollbar { display: none; }
.special-card {
  min-width: 108px; background: #FFF5F0; border-radius: 10px; padding: 10px; text-align: center;
  border: 1px solid #FFE0D0; position: relative;
}
.special-card .badge {
  position: absolute; top: -6px; left: -4px; background: var(--red); color: #fff;
  font-size: 9px; padding: 2px 6px; border-radius: 8px; font-weight: 700;
}
.special-card .emoji { font-size: 44px; line-height: 1.2; }
.special-card .pname { font-size: 11px; color: var(--text); margin: 4px 0 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.special-card .price { color: var(--red); font-weight: 800; font-size: 15px; }
.special-card .price small { font-size: 10px; }
.special-card .orig { color: #bbb; font-size: 10px; text-decoration: line-through; margin-left: 3px; }
.special-card .progress { height: 4px; background: #FFD9CB; border-radius: 2px; margin-top: 6px; overflow: hidden; }
.special-card .progress i { display: block; height: 100%; background: var(--red); border-radius: 2px; }

/* 分类网格 */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 4px; }
.cat-item { text-align: center; cursor: pointer; }
.cat-item .cat-icon {
  width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 5px;
  display: flex; align-items: center; justify-content: center; font-size: 28px;
}
.cat-item .cat-name { font-size: 11px; color: var(--text); line-height: 1.2; }

/* 商品瀑布流 */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 0 8px 8px; }
.product-card {
  background: var(--card); border-radius: 12px; overflow: hidden; position: relative; cursor: pointer;
}
.product-card .p-img { height: 130px; display: flex; align-items: center; justify-content: center; font-size: 68px; position: relative; }
.product-card .p-tag {
  position: absolute; top: 6px; left: 6px; background: var(--red); color: #fff;
  font-size: 9px; padding: 2px 6px; border-radius: 4px; font-weight: 700;
}
.product-card .p-info { padding: 8px 10px 10px; }
.product-card .p-name { font-size: 12px; line-height: 1.4; height: 34px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.product-card .p-price-row { display: flex; align-items: baseline; gap: 4px; margin-top: 4px; }
.product-card .p-price { color: var(--red); font-weight: 800; font-size: 17px; }
.product-card .p-price .cur { font-size: 11px; }
.product-card .p-orig { color: #bbb; font-size: 10px; text-decoration: line-through; }
.product-card .p-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.product-card .p-sold { font-size: 10px; color: var(--text2); }
.add-btn {
  width: 24px; height: 24px; border-radius: 50%; background: var(--orange); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 300; line-height: 1;
  cursor: pointer;
}

/* 悬浮券条 */
.float-coupon {
  position: fixed; bottom: calc(var(--safe-bottom) + 10px); left: 50%; transform: translateX(-50%);
  width: calc(100% - 24px); max-width: 406px; z-index: 90;
  background: linear-gradient(90deg, #FFF3E0, #FFE0D0); border: 1px solid #FFCCB0;
  border-radius: 24px; padding: 8px 10px 8px 16px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 4px 16px rgba(242,39,12,.15);
}
.float-coupon .fc-text { font-size: 12px; color: #B3541E; }
.float-coupon .fc-text b { color: var(--red); font-size: 15px; }
.float-coupon .fc-btn { background: var(--red); color: #fff; border: none; border-radius: 18px; padding: 7px 16px; font-size: 12px; font-weight: 700; cursor: pointer; }

/* 底部导航 */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 430px; height: var(--safe-bottom);
  background: #fff; border-top: 1px solid var(--line);
  display: flex; z-index: 200;
}
.tab {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: var(--text2); cursor: pointer; position: relative; font-size: 10px;
}
.tab.active { color: var(--orange); }
.tab .tab-icon { font-size: 22px; line-height: 1; }
.tab .badge {
  position: absolute; top: 2px; right: 22%; background: var(--red); color: #fff;
  font-size: 9px; min-width: 15px; height: 15px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; padding: 0 3px;
}

/* 通用头部（子页面） */
.subheader {
  position: sticky; top: 0; z-index: 100; background: #fff;
  display: flex; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line);
  gap: 10px;
}
.subheader .back { font-size: 20px; cursor: pointer; }
.subheader h1 { font-size: 16px; font-weight: 700; flex: 1; }
.subheader .action { font-size: 13px; color: var(--orange); cursor: pointer; }

/* 分类页 */
.cat-layout { display: flex; min-height: calc(100vh - 120px); }
.cat-side { width: 90px; background: #F0F0F0; flex-shrink: 0; }
.cat-side-item { padding: 14px 8px; font-size: 12px; text-align: center; color: var(--text2); cursor: pointer; border-left: 3px solid transparent; }
.cat-side-item.active { background: #fff; color: var(--red); font-weight: 700; border-left-color: var(--red); }
.cat-main { flex: 1; background: #fff; padding: 10px; }
.cat-main-title { font-size: 14px; font-weight: 700; margin-bottom: 10px; padding-left: 6px; border-left: 3px solid var(--orange); }
.cat-prod { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; align-items: center; }
.cat-prod .emoji { font-size: 48px; width: 60px; text-align: center; }
.cat-prod .info { flex: 1; min-width: 0; }
.cat-prod .name { font-size: 13px; font-weight: 600; }
.cat-prod .price { color: var(--red); font-weight: 800; font-size: 16px; margin: 4px 0; }
.cat-prod .sold { font-size: 10px; color: var(--text2); }

/* 商品详情 */
.detail-img { height: 280px; background: linear-gradient(135deg,#FFF5F0,#FFE0D0); display: flex; align-items: center; justify-content: center; font-size: 150px; position: relative; }
.detail-img .back-float { position: absolute; top: 14px; left: 14px; width: 34px; height: 34px; background: rgba(255,255,255,.8); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; cursor: pointer; }
.detail-body { background: #fff; border-radius: 16px 16px 0 0; margin-top: -16px; position: relative; padding: 16px; }
.detail-price { color: var(--red); font-weight: 800; font-size: 30px; }
.detail-price .cur { font-size: 16px; }
.detail-orig { color: #bbb; text-decoration: line-through; font-size: 13px; margin-left: 8px; }
.detail-name { font-size: 17px; font-weight: 700; margin: 8px 0; }
.detail-sold { font-size: 11px; color: var(--text2); }
.detail-desc { font-size: 12px; color: var(--text2); line-height: 1.7; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.detail-bottom { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 430px; background: #fff; padding: 10px 14px; display: flex; gap: 10px; align-items: center; box-shadow: 0 -2px 10px rgba(0,0,0,.06); z-index: 210; }
.detail-bottom .qty-ctrl { display: flex; align-items: center; gap: 10px; }
.detail-bottom .qty-ctrl button { width: 28px; height: 28px; border: 1px solid var(--line); background: #fff; border-radius: 6px; font-size: 18px; cursor: pointer; }
.detail-bottom .qty-ctrl span { min-width: 20px; text-align: center; }
.btn-primary { flex: 1; background: var(--orange); color: #fff; border: none; border-radius: 22px; padding: 12px; font-size: 14px; font-weight: 700; cursor: pointer; }
.btn-danger { flex: 1; background: var(--red); color: #fff; border: none; border-radius: 22px; padding: 12px; font-size: 14px; font-weight: 700; cursor: pointer; }

/* 购物车 */
.cart-item { display: flex; gap: 10px; background: #fff; padding: 12px; border-radius: 10px; margin: 8px; align-items: center; }
.cart-item .check { width: 20px; height: 20px; border-radius: 50%; border: 2px solid #ccc; flex-shrink: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 12px; color: #fff; }
.cart-item .check.checked { background: var(--red); border-color: var(--red); }
.cart-item .emoji { font-size: 44px; width: 54px; text-align: center; }
.cart-item .info { flex: 1; min-width: 0; }
.cart-item .name { font-size: 13px; font-weight: 600; }
.cart-item .price { color: var(--red); font-weight: 800; font-size: 15px; margin: 3px 0; }
.cart-item .qty { display: flex; align-items: center; gap: 8px; }
.cart-item .qty button { width: 24px; height: 24px; border: 1px solid var(--line); border-radius: 5px; background: #fff; cursor: pointer; font-size: 14px; }
.cart-item .qty span { min-width: 18px; text-align: center; font-size: 13px; }
.cart-empty { text-align: center; padding: 80px 20px; color: var(--text2); }
.cart-empty .empty-icon { font-size: 80px; margin-bottom: 16px; }
.cart-empty button { margin-top: 16px; background: var(--orange); color: #fff; border: none; border-radius: 20px; padding: 10px 24px; font-size: 14px; font-weight: 700; cursor: pointer; }

/* 起送进度条 */
.minorder-bar { background: #FFF8E1; border: 1px solid #FFE082; border-radius: 10px; padding: 10px 12px; margin: 8px; font-size: 12px; color: #B8860B; }
.minorder-bar.reached { background: #E8F5E9; border-color: #A5D6A7; color: #2E7D32; }
.minorder-bar .bar-track { height: 6px; background: rgba(0,0,0,.08); border-radius: 3px; margin-top: 8px; overflow: hidden; }
.minorder-bar .bar-fill { height: 100%; background: var(--orange); border-radius: 3px; transition: width .3s; }
.minorder-bar.reached .bar-fill { background: #4CAF50; }

/* 结算页 */
.checkout-block { background: #fff; border-radius: 10px; margin: 8px; padding: 14px; }
.checkout-block .cb-title { font-size: 14px; font-weight: 700; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.checkout-block .cb-title .ico { font-size: 16px; }
.address-card { border: 1px dashed var(--orange); border-radius: 8px; padding: 10px; }
.address-card .addr-name { font-size: 14px; font-weight: 700; }
.address-card .addr-detail { font-size: 12px; color: var(--text2); margin-top: 4px; }
.pay-method { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.pay-method:last-child { border-bottom: none; }
.pay-method .pm-icon { font-size: 22px; }
.pay-method .pm-name { flex: 1; font-size: 13px; }
.pay-method .pm-radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #ccc; }
.pay-method .pm-radio.checked { border-color: var(--red); background: var(--red); box-shadow: inset 0 0 0 3px #fff; }
.fee-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 13px; }
.fee-row.total { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 10px; font-weight: 700; }
.fee-row.total .amount { color: var(--red); font-size: 20px; }
.checkout-footer { padding: 12px 14px; background: #fff; position: sticky; bottom: 0; display: flex; align-items: center; gap: 12px; box-shadow: 0 -2px 10px rgba(0,0,0,.05); }

/* 订单追踪 */
.status-hero { background: linear-gradient(135deg, var(--orange), var(--red)); color: #fff; padding: 24px 16px; text-align: center; }
.status-hero .big-icon { font-size: 50px; }
.status-hero .status-text { font-size: 20px; font-weight: 800; margin: 8px 0 4px; }
.status-hero .eta { font-size: 12px; opacity: .9; }
.timeline { padding: 16px; }
.tl-item { display: flex; gap: 12px; padding-bottom: 20px; position: relative; }
.tl-item::before { content: ''; position: absolute; left: 9px; top: 24px; bottom: 0; width: 2px; background: var(--line); }
.tl-item:last-child::before { display: none; }
.tl-item .tl-dot { width: 20px; height: 20px; border-radius: 50%; background: #ddd; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 10px; color: #fff; z-index: 1; }
.tl-item.done .tl-dot { background: var(--orange); }
.tl-item .tl-content { flex: 1; }
.tl-item .tl-title { font-size: 13px; font-weight: 600; }
.tl-item .tl-time { font-size: 11px; color: var(--text2); margin-top: 2px; }

/* 会员中心 */
.member-hero { background: linear-gradient(135deg, var(--orange), var(--red)); color: #fff; padding: 24px 16px 40px; }
.member-hero .m-top { display: flex; align-items: center; gap: 12px; }
.member-hero .avatar { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.3); display: flex; align-items: center; justify-content: center; font-size: 30px; }
.member-hero .m-name { font-size: 17px; font-weight: 700; }
.member-hero .m-id { font-size: 11px; opacity: .85; margin-top: 3px; }
.member-stats { display: flex; margin-top: 20px; }
.member-stats .stat { flex: 1; text-align: center; }
.member-stats .stat .num { font-size: 18px; font-weight: 800; }
.member-stats .stat .lbl { font-size: 10px; opacity: .85; }
.member-menu { background: #fff; border-radius: 12px; margin: -24px 8px 8px; padding: 8px; position: relative; }
.menu-item { display: flex; align-items: center; gap: 12px; padding: 14px 10px; border-bottom: 1px solid var(--line); cursor: pointer; }
.menu-item:last-child { border-bottom: none; }
.menu-item .mi-icon { font-size: 22px; width: 28px; text-align: center; }
.menu-item .mi-name { flex: 1; font-size: 14px; }
.menu-item .mi-arrow { color: #ccc; font-size: 16px; }

/* 奖池看板 */
.pool-hero { background: linear-gradient(135deg, #FF512F, #DD2476); color: #fff; border-radius: 14px; padding: 20px; text-align: center; margin: 8px; }
.pool-hero .pool-label { font-size: 12px; opacity: .9; }
.pool-hero .pool-amount { font-size: 44px; font-weight: 800; margin: 6px 0; }
.pool-hero .pool-amount .cur { font-size: 22px; }
.pool-hero .pool-note { font-size: 11px; background: rgba(255,255,255,.2); display: inline-block; padding: 3px 10px; border-radius: 10px; }
.pool-countdown { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.pool-countdown .cd-box { background: rgba(0,0,0,.2); border-radius: 6px; padding: 6px 10px; font-size: 16px; font-weight: 800; }
.pool-countdown .cd-label { font-size: 9px; opacity: .8; }
.rule-list { padding: 4px 0; }
.rule-item { display: flex; gap: 10px; padding: 8px 0; font-size: 12px; color: var(--text); line-height: 1.5; }
.rule-item .num { width: 20px; height: 20px; border-radius: 50%; background: var(--orange); color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-weight: 700; }

/* 券包 */
.coupon-card { background: linear-gradient(135deg,#FFF5F0,#FFE8DC); border: 1px solid #FFD0B8; border-radius: 10px; padding: 12px; margin: 8px; display: flex; align-items: center; gap: 12px; position: relative; overflow: hidden; }
.coupon-card::before, .coupon-card::after { content: ''; position: absolute; width: 12px; height: 12px; background: var(--bg); border-radius: 50%; left: -6px; }
.coupon-card::before { top: -6px; } .coupon-card::after { bottom: -6px; }
.coupon-card .c-amount { color: var(--red); font-weight: 800; font-size: 26px; min-width: 70px; }
.coupon-card .c-amount .cur { font-size: 14px; }
.coupon-card .c-info { flex: 1; }
.coupon-card .c-name { font-size: 13px; font-weight: 700; }
.coupon-card .c-valid { font-size: 10px; color: var(--text2); margin-top: 3px; }
.coupon-card .c-tag { font-size: 9px; background: var(--red); color: #fff; padding: 2px 6px; border-radius: 4px; display: inline-block; margin-top: 4px; }
.coupon-card.used { opacity: .5; filter: grayscale(1); }

/* 开奖公示 */
.draw-ball-row { display: flex; justify-content: center; gap: 14px; margin: 16px 0; }
.draw-ball { width: 50px; height: 50px; border-radius: 50%; background: linear-gradient(135deg,#FF7A18,#F2270C); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; font-weight: 800; box-shadow: 0 4px 12px rgba(242,39,12,.3); }
.draw-history-item { padding: 12px; border-bottom: 1px solid var(--line); }
.draw-history-item .dh-date { font-size: 12px; color: var(--text2); }
.draw-history-item .dh-numbers { display: flex; gap: 8px; margin-top: 6px; }
.draw-history-item .dh-num { background: #FFF0E8; color: var(--red); padding: 3px 10px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.draw-history-item .dh-result { font-size: 11px; margin-top: 6px; color: var(--text2); }
.draw-history-item .dh-result.win { color: var(--red); }

/* 管理端 */
.admin-hero { background: linear-gradient(135deg,#2C3E50,#34495E); color: #fff; padding: 20px 16px; }
.admin-hero h1 { font-size: 19px; font-weight: 800; }
.admin-hero p { font-size: 11px; opacity: .8; margin-top: 3px; }
.stat-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; padding: 8px; }
.stat-card { background: #fff; border-radius: 10px; padding: 14px; text-align: center; }
.stat-card .sc-num { font-size: 22px; font-weight: 800; color: var(--orange); }
.stat-card .sc-lbl { font-size: 11px; color: var(--text2); margin-top: 4px; }
.switch-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; }
.switch { width: 46px; height: 26px; border-radius: 13px; background: #ccc; position: relative; cursor: pointer; transition: background .3s; }
.switch.on { background: #4CAF50; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .3s; }
.switch.on::after { left: 23px; }
.time-input { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; }
.order-admin-item { background: #fff; border-radius: 8px; padding: 12px; margin: 8px; border-left: 3px solid var(--orange); }
.order-admin-item .oai-row { display: flex; justify-content: space-between; font-size: 12px; padding: 2px 0; }
.order-admin-item .oai-status { color: var(--orange); font-weight: 700; }

/* 语言选择浮层 */
.lang-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 500; display: none; align-items: flex-end; }
.lang-overlay.show { display: flex; }
.lang-sheet { width: 100%; max-width: 430px; margin: 0 auto; background: #fff; border-radius: 16px 16px 0 0; padding: 16px; animation: slideUp .3s ease; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: none; } }
.lang-sheet h3 { text-align: center; font-size: 15px; margin-bottom: 12px; }
.lang-option { display: flex; align-items: center; gap: 12px; padding: 12px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 15px; }
.lang-option .flag { font-size: 24px; }
.lang-option .check { margin-left: auto; color: var(--red); font-weight: 700; }

/* Toast */
.toast {
  position: fixed; top: 50%; left: 50%; transform: translate(-50%,-50%);
  background: rgba(0,0,0,.8); color: #fff; padding: 12px 24px; border-radius: 8px;
  font-size: 14px; z-index: 999; opacity: 0; pointer-events: none; transition: opacity .3s;
  max-width: 80%; text-align: center;
}
.toast.show { opacity: 1; }

/* 开奖动画 */
.drawing-animation { text-align: center; padding: 30px 20px; }
.drawing-animation .machine { font-size: 80px; animation: shake .5s infinite; }
@keyframes shake { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-10deg); } 75% { transform: rotate(10deg); } }
.drawing-animation .draw-num { font-size: 48px; font-weight: 800; color: var(--red); margin: 10px 0; letter-spacing: 4px; }

/* 隐藏类 */
.hidden { display: none !important; }
