/* ============================================================
   ھاكىم سودا سىستېمىسى — ئورتاق ئۇسلۇب ھۆججىتى / 哈基姆商城系统 — 公共样式表
   RTL ئۇيغۇرچە لايىھە سىستېمىسى / RTL 维吾尔语设计系统
   ============================================================ */

/* ئاساسىي ئۆزگەرگۈچىلەر / 基础变量（主题色由 app.js 动态覆盖） */
:root {
  --theme: #c8102e;          /* ئاساسىي رەڭ / 主题色 */
  --accent: #8f0b21;         /* توق رەڭ / 深色 */
  --grad: linear-gradient(135deg, #c8102e, #8f0b21);
  --bg: #f5f6f8;             /* تەگلىك / 页面背景 */
  --card: #ffffff;           /* كارتا تەگلىكى / 卡片背景 */
  --text: #222222;           /* ئاساسىي تېكىست / 主文字 */
  --sub: #888888;            /* قوشۇمچە تېكىست / 次要文字 */
  --line: #ececec;           /* چېگرا سىزىقى / 分割线 */
  --gold: #d4a017;           /* ئالتۇن رەڭ / 金色 */
  --green: #07c160;          /* مۇۋاپىقىيەت / 成功绿 */
  --radius: 14px;            /* بۇلۇڭ يۇمىلاقلىقى / 圆角 */
  --tabbar-h: 62px;          /* تىزىملىك ئېگىزلىكى / 底栏高度 */
  --nav-h: 48px;             /* بەش ئېگىزلىكى / 顶栏高度 */
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: 15px; }
body {
  font-family: "UKIJ Tuz Tom", "Alpida Unicode System", "Noto Naskh Arabic", "Amiri", "Scheherazade New", Tahoma, sans-serif;
  direction: rtl;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, textarea, select { font-family: inherit; font-size: 1rem; outline: none; border: none; background: none; }
button { cursor: pointer; }

/* بەت قاچىسى / 页面容器 */
.page {
  max-width: 520px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 10px);
}
.page.no-tab { padding-bottom: 90px; }
.page.full-tab { padding-bottom: calc(var(--tabbar-h) + 90px); }

/* ============ يۇقىرى بەش / 顶部导航栏 ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; gap: 8px;
  padding: 0 12px;
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.nav .back {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #f2f2f2; flex: 0 0 auto; font-size: 16px; color: #333;
}
.nav .title { flex: 1; text-align: center; font-size: 1.05rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav .act { flex: 0 0 auto; min-width: 30px; text-align: center; color: var(--theme); font-size: .9rem; }

/* باش بەت ئالاھىدە بېشى / 首页渐变头部 */
.home-head {
  background: var(--grad);
  padding: 14px 14px 58px;
  color: #fff;
}
.home-head .shop-row { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.home-head .shop-logo { width: 42px; height: 42px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7); object-fit: cover; background:#fff; }
.home-head .shop-name { font-size: 1.15rem; font-weight: 700; }
.home-head .shop-sub { font-size: .78rem; opacity: .85; }

/* ئىزدەش بالدىقى / 搜索框 */
.search-bar {
  display: flex; align-items: center; gap: 8px;
  background: #fff; border-radius: 999px;
  padding: 9px 14px;
  color: #999; font-size: .9rem;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.search-bar svg { flex: 0 0 auto; }
.search-bar input { flex: 1; border: none; color: #333; direction: rtl; }

/* ============ لايلىما / 轮播图 ============ */
.swiper {
  position: relative; overflow: hidden;
  margin: -46px 12px 0;
  border-radius: var(--radius);
  box-shadow: 0 4px 14px rgba(0,0,0,.10);
  background: #eee;
}
.swiper .track { display: flex; transition: transform .45s ease; }
.swiper .slide { min-width: 100%; }
.swiper .slide img { width: 100%; height: 172px; object-fit: cover; pointer-events: auto; }
.swiper .dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; }
.swiper .dots i { width: 6px; height: 6px; border-radius: 999px; background: rgba(255,255,255,.55); transition: all .3s; }
.swiper .dots i.on { width: 16px; background: #fff; }

/* ============ ئۇقتۇرۇش بالدىقى / 公告栏 ============ */
.notice {
  display: flex; align-items: center; gap: 8px;
  margin: 10px 12px 0; padding: 9px 12px;
  background: #fff8f0; border: 1px solid #ffe3c2; border-radius: 10px;
  color: #a06a1e; font-size: .85rem; overflow: hidden;
}
.notice .txt { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ============ تۈر سىنبەلگىلىرى / 分类宫格 ============ */
.section { margin: 14px 12px 0; }
.sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.sec-head .t { font-size: 1.02rem; font-weight: 700; position: relative; padding-right: 10px; }
.sec-head .t::before { content: ""; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 4px; height: 16px; border-radius: 4px; background: var(--theme); }
.sec-head .more { color: var(--sub); font-size: .8rem; display: flex; align-items: center; gap: 2px; }

.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; background: var(--card); border-radius: var(--radius); padding: 12px 6px; }
.cat-grid .item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 4px 0; }
.cat-grid .item img { width: 50px; height: 50px; border-radius: 50%; object-fit: cover; background: #f6f6f6; border: 1px solid var(--line); }
.cat-grid .item span { font-size: .72rem; color: #444; text-align: center; max-width: 62px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ============ مال كارتىسى / 商品卡片 ============ */
.goods-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.g-card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 6px rgba(0,0,0,.05); }
.g-card .imgwrap { position: relative; }
.g-card img.pic { width: 100%; height: 170px; object-fit: cover; background: #f4f4f4; }
.g-card .name { padding: 8px 10px 4px; font-size: .86rem; line-height: 1.5; height: 2.9em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.g-card .info { display: flex; align-items: center; justify-content: space-between; padding: 4px 10px 10px; }
.g-card .price { color: var(--theme); font-weight: 700; font-size: 1.02rem; }
.g-card .price small { font-size: .72rem; }
.g-card .sales { color: #aaa; font-size: .7rem; }
.g-card .cartbtn {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--grad); color: #fff;
  display: flex; align-items: center; justify-content: center; flex: 0 0 auto;
}

/* ============ تىزىملىك بېتى (تۈرلەر/ئىزدەش) / 列表页 ============ */
.list-wrap { display: flex; min-height: calc(100vh - var(--nav-h)); }
.cat-side {
  width: 96px; flex: 0 0 auto; background: var(--card);
  overflow-y: auto; height: calc(100vh - var(--nav-h));
  position: sticky; top: var(--nav-h);
  border-left: 1px solid var(--line);
}
.cat-side .citem { padding: 14px 8px; text-align: center; font-size: .82rem; color: #555; position: relative; cursor: pointer; }
.cat-side .citem.on { color: var(--theme); font-weight: 700; background: var(--bg); }
.cat-side .citem.on::before { content: ""; position: absolute; right: 0; top: 20%; height: 60%; width: 3px; border-radius: 3px; background: var(--theme); }
.cat-side .citem img { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; margin: 0 auto 4px; background:#f5f5f5; }
.cat-main { flex: 1; padding: 10px; overflow: hidden; }

/* تۈر بەت يۇقىرى تىزمىسى / 分类页横向标签 */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 12px 2px; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; padding: 6px 14px; border-radius: 999px; background: var(--card); color: #555; font-size: .84rem; border: 1px solid var(--line); }
.chip.on { background: var(--grad); color: #fff; border-color: transparent; font-weight: 700; }

/* ============ مال تەپسىلاتى / 商品详情 ============ */
.d-swiper { position: relative; background: #fff; }
.d-swiper .track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
.d-swiper .track::-webkit-scrollbar { display: none; }
.d-swiper .track img { min-width: 100%; height: 340px; object-fit: cover; scroll-snap-align: center; }
.d-swiper .idx { position: absolute; bottom: 10px; left: 12px; background: rgba(0,0,0,.45); color: #fff; font-size: .72rem; padding: 2px 10px; border-radius: 999px; }
.d-info { background: var(--card); margin: 10px 12px 0; border-radius: var(--radius); padding: 12px; }
.d-price-row { display: flex; align-items: baseline; gap: 8px; }
.d-price { color: var(--theme); font-size: 1.45rem; font-weight: 800; }
.d-price small { font-size: .85rem; }
.d-line-price { color: #b0b0b0; text-decoration: line-through; font-size: .82rem; }
.d-sales { margin-right: auto; color: #999; font-size: .75rem; }
.d-name { font-size: 1.02rem; font-weight: 700; line-height: 1.7; margin-top: 6px; }
.d-tags { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.d-tag { font-size: .7rem; color: var(--theme); background: #fdf0f2; border: 1px solid #f7d6db; padding: 2px 8px; border-radius: 6px; }
.d-cell { display: flex; align-items: center; justify-content: space-between; padding: 13px 14px; background: var(--card); margin-top: 10px; font-size: .9rem; }
.d-cell:first-child { border-radius: var(--radius) var(--radius) 0 0; }
.d-cell:last-child { border-radius: 0 0 var(--radius) var(--radius); }
.d-cell .lab { color: var(--sub); }
.d-content { background: var(--card); margin: 10px 12px; border-radius: var(--radius); padding: 4px 0 12px; overflow: hidden; }
.d-content .hd { font-size: .98rem; font-weight: 700; padding: 10px 14px; }
.d-content img { width: 100%; }

/* ئاستى مۇقىم بالداق / 详情底部操作栏 */
.d-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  max-width: 520px; margin: 0 auto;
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px));
  background: var(--card); border-top: 1px solid var(--line);
}
.d-bar .icon-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .65rem; color: #666; width: 44px; flex: 0 0 auto; position: relative; }
.d-bar .icon-btn .bdg { position: absolute; top: -4px; right: 2px; min-width: 16px; height: 16px; border-radius: 999px; background: var(--theme); color: #fff; font-size: .62rem; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.d-bar .btn { flex: 1; height: 42px; border-radius: 999px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: .95rem; font-weight: 700; }
.d-bar .btn.cart { background: linear-gradient(135deg, #ff9f0a, #ff6a00); }
.d-bar .btn.buy { background: var(--grad); }

/* ============ ھارۋا / 购物车 ============ */
.cart-item { display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: var(--radius); padding: 12px; margin: 0 12px 10px; }
.ck { width: 21px; height: 21px; border-radius: 50%; border: 2px solid #ccc; flex: 0 0 auto; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 12px; transition: all .15s; }
.ck.on { background: var(--theme); border-color: var(--theme); }
.cart-item img { width: 84px; height: 84px; border-radius: 10px; object-fit: cover; background: #f4f4f4; flex: 0 0 auto; }
.cart-item .mid { flex: 1; min-width: 0; }
.cart-item .nm { font-size: .88rem; line-height: 1.5; height: 2.6em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.cart-item .pr { color: var(--theme); font-weight: 800; font-size: 1.02rem; margin-top: 4px; }
.numbox { display: flex; align-items: center; gap: 2px; margin-top: 6px; direction: ltr; }
.numbox button { width: 26px; height: 26px; border-radius: 8px; background: #f2f3f5; color: #333; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.numbox button:disabled { color: #ccc; }
.numbox input { width: 38px; height: 26px; text-align: center; background: #f2f3f5; border-radius: 8px; font-size: .85rem; margin: 0 2px; }
.cart-total {
  position: fixed; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); left: 0; right: 0; z-index: 55;
  max-width: 520px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px;
  background: var(--card); padding: 10px 12px;
  border-top: 1px solid var(--line);
}
.cart-total .all { display: flex; align-items: center; gap: 6px; font-size: .85rem; }
.cart-total .sum { margin-right: auto; font-size: .85rem; color: #555; }
.cart-total .sum b { color: var(--theme); font-size: 1.15rem; }
.cart-total .go { background: var(--grad); color: #fff; padding: 10px 24px; border-radius: 999px; font-weight: 700; font-size: .95rem; }
.cart-total .go:disabled { background: #ccc; }

/* ============ ئورتاق كارتا / 单元卡片 ============ */
.panel { background: var(--card); border-radius: var(--radius); margin: 12px 12px 0; padding: 12px 14px; }
.panel .p-title { font-size: .95rem; font-weight: 700; margin-bottom: 10px; }

/* ============ زاكاس بېتى / 订单页 ============ */
.o-tabs { display: flex; background: var(--card); position: sticky; top: var(--nav-h); z-index: 40; border-bottom: 1px solid var(--line); }
.o-tabs .t { flex: 1; text-align: center; padding: 12px 0; font-size: .88rem; color: #666; position: relative; }
.o-tabs .t.on { color: var(--theme); font-weight: 700; }
.o-tabs .t.on::after { content: ""; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 28px; height: 3px; border-radius: 3px; background: var(--theme); }
.o-card { background: var(--card); border-radius: var(--radius); margin: 12px 12px 0; padding: 12px; }
.o-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: .8rem; }
.o-head .st { color: var(--theme); font-weight: 700; }
.o-goods { display: flex; gap: 10px; padding: 10px 0; }
.o-goods img { width: 70px; height: 70px; border-radius: 8px; object-fit: cover; background: #f4f4f4; }
.o-goods .g { flex: 1; min-width: 0; }
.o-goods .g .n { font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.o-goods .g .p { color: var(--theme); font-weight: 700; margin-top: 4px; font-size: .9rem; }
.o-goods .g .q { color: #999; font-size: .78rem; }
.o-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding-top: 8px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.o-foot .total { margin-right: auto; font-size: .8rem; color: #555; }
.o-foot .total b { color: var(--theme); font-size: 1rem; }
.obtn { padding: 6px 14px; border-radius: 999px; border: 1px solid #ddd; font-size: .8rem; color: #444; background: #fff; }
.obtn.pri { background: var(--grad); color: #fff; border-color: transparent; font-weight: 700; }
.obtn.warn { border-color: var(--theme); color: var(--theme); }

/* زاكاس تەپسىلاتى قۇرلىرى / 订单详情行 */
.row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 9px 0; font-size: .88rem; }
.row .k { color: var(--sub); flex: 0 0 auto; }
.row .v { text-align: left; word-break: break-all; }
.hr { height: 1px; background: var(--line); margin: 6px 0; }

/* ============ ئادرېس / 地址 ============ */
.addr-item { background: var(--card); border-radius: var(--radius); margin: 12px 12px 0; padding: 14px; position: relative; }
.addr-item .top { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .95rem; }
.addr-item .def { font-size: .68rem; color: var(--theme); border: 1px solid var(--theme); border-radius: 4px; padding: 0 5px; }
.addr-item .txt { color: #666; font-size: .85rem; margin-top: 6px; line-height: 1.6; }
.addr-item .ops { display: flex; gap: 18px; margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: .82rem; color: #666; }
.addr-item .ops .op { display: flex; align-items: center; gap: 4px; }
.addr-item .sel { position: absolute; top: 14px; left: 14px; }
.form-g { background: var(--card); border-radius: var(--radius); margin: 12px 12px 0; overflow: hidden; }
.form-g .fg { display: flex; align-items: center; gap: 10px; padding: 14px; border-bottom: 1px solid var(--line); }
.form-g .fg:last-child { border-bottom: none; }
.form-g .fl { width: 84px; flex: 0 0 auto; color: #555; font-size: .88rem; }
.form-g input, .form-g textarea { flex: 1; text-align: left; direction: rtl; font-size: .92rem; color: #222; }
.form-g textarea { min-height: 70px; resize: none; line-height: 1.7; }
.form-g .picker { flex: 1; text-align: left; color: #222; font-size: .92rem; }
.form-g .picker.ph { color: #bbb; }
.save-btn { display: block; margin: 20px 12px; width: calc(100% - 24px); height: 46px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 1rem; font-weight: 700; }

/* ============ يېلىم / 优惠券 ============ */
.coupon-item { display: flex; margin: 12px 12px 0; background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 6px rgba(0,0,0,.05); }
.coupon-item.used { opacity: .55; }
.coupon-item .amt { width: 108px; flex: 0 0 auto; background: var(--grad); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 16px 4px; position: relative; }
.coupon-item .amt::after { content: ""; position: absolute; left: -6px; top: 50%; transform: translateY(-50%); width: 12px; height: 12px; border-radius: 50%; background: var(--bg); }
.coupon-item .amt .n { font-size: 1.35rem; font-weight: 800; }
.coupon-item .amt .n small { font-size: .75rem; }
.coupon-item .amt .cond { font-size: .68rem; opacity: .9; }
.coupon-item .mid { flex: 1; padding: 12px; min-width: 0; }
.coupon-item .mid .n2 { font-weight: 700; font-size: .92rem; }
.coupon-item .mid .d1 { color: #999; font-size: .74rem; margin-top: 4px; }
.coupon-item .mid .get { margin-top: 8px; display: inline-block; padding: 4px 16px; border-radius: 999px; background: var(--theme); color: #fff; font-size: .78rem; }
.coupon-item .mid .get.got { background: #eee; color: #999; }

/* ============ ئىمزا بېتى / 签到页 ============ */
.sign-card { background: var(--grad); border-radius: var(--radius); margin: 12px; padding: 20px 16px; color: #fff; text-align: center; }
.sign-card .big { font-size: 1.6rem; font-weight: 800; }
.sign-card .btn { margin-top: 14px; background: #fff; color: var(--theme); padding: 9px 34px; border-radius: 999px; font-weight: 800; font-size: .95rem; display: inline-block; }
.sign-card .btn.off { background: rgba(255,255,255,.35); color: #fff; }
.sign-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 16px; }
.sign-days .d { background: rgba(255,255,255,.16); border-radius: 8px; padding: 7px 0; font-size: .72rem; }
.sign-days .d.on { background: rgba(255,255,255,.85); color: var(--theme); font-weight: 700; }
.int-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .88rem; }
.int-item:last-child { border-bottom: none; }
.int-item .plus { color: var(--green); font-weight: 700; }
.int-item .minus { color: var(--theme); font-weight: 700; }

/* ============ ھەقىيقەت (ھەميان) / 钱包 ============ */
.wallet-head { background: var(--grad); border-radius: var(--radius); margin: 12px; padding: 22px 16px; color: #fff; text-align: center; }
.wallet-head .lab { font-size: .8rem; opacity: .85; }
.wallet-head .money { font-size: 2rem; font-weight: 800; margin-top: 6px; }
.wallet-head .money small { font-size: .9rem; }
.wgrid { display: grid; grid-template-columns: 1fr 1fr 1fr; background: var(--card); border-radius: var(--radius); margin: 0 12px; padding: 14px 0; }
.wgrid .w { text-align: center; }
.wgrid .w .v { font-weight: 800; font-size: 1.05rem; color: var(--theme); }
.wgrid .w .l { font-size: .75rem; color: #888; margin-top: 3px; }

/* ============ ئەزا مەركىزى / 会员中心 ============ */
.u-head { background: var(--grad); padding: 26px 16px 58px; color: #fff; position: relative; }
.u-head .row1 { display: flex; align-items: center; gap: 12px; }
.u-head .ava { width: 62px; height: 62px; border-radius: 50%; border: 2px solid rgba(255,255,255,.75); object-fit: cover; background: #fff; }
.u-head .nm { font-size: 1.12rem; font-weight: 800; }
.u-head .sub { font-size: .76rem; opacity: .85; margin-top: 3px; }
.u-head .edit { margin-right: auto; background: rgba(255,255,255,.22); padding: 5px 12px; border-radius: 999px; font-size: .76rem; }
.u-stats { display: flex; margin: -40px 12px 0; background: var(--card); border-radius: var(--radius); padding: 14px 0; box-shadow: 0 3px 10px rgba(0,0,0,.06); position: relative; z-index: 2; }
.u-stats .s { flex: 1; text-align: center; }
.u-stats .s .v { font-weight: 800; font-size: 1.02rem; }
.u-stats .s .l { font-size: .72rem; color: #888; margin-top: 3px; }
.u-od { display: flex; background: var(--card); border-radius: var(--radius); margin: 10px 12px 0; padding: 14px 6px; }
.u-od .o { flex: 1; text-align: center; position: relative; }
.u-od .o .bdg { position: absolute; top: -6px; right: calc(50% - 22px); min-width: 17px; height: 17px; border-radius: 999px; background: var(--theme); color: #fff; font-size: .62rem; display: flex; align-items: center; justify-content: center; padding: 0 4px; }
.u-od .o svg, .u-od .o .em { display: block; margin: 0 auto 5px; }
.u-menu { background: var(--card); border-radius: var(--radius); margin: 10px 12px 0; overflow: hidden; }
.u-menu .mi { display: flex; align-items: center; gap: 10px; padding: 14px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.u-menu .mi:last-child { border-bottom: none; }
.u-menu .mi .ic { width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: .95rem; flex: 0 0 auto; }
.u-menu .mi .arr { margin-right: auto; color: #c2c2c2; font-size: .8rem; }
.u-menu .mi .cap { margin-right: auto; color: #999; font-size: .8rem; }

/* ============ ئۇچۇر بېتى / 消息页 ============ */
.msg-item { display: flex; gap: 10px; background: var(--card); margin: 12px 12px 0; border-radius: var(--radius); padding: 12px; }
.msg-item img.th { width: 86px; height: 64px; border-radius: 8px; object-fit: cover; background: #f4f4f4; flex: 0 0 auto; }
.msg-item .b { flex: 1; min-width: 0; }
.msg-item .t1 { font-weight: 700; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-item .t2 { color: #888; font-size: .8rem; margin-top: 4px; height: 2.4em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.msg-item .t3 { color: #bbb; font-size: .7rem; margin-top: 4px; }

/* ============ تىزىملىك ئاستى / 底部标签栏 ============ */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 70;
  max-width: 520px; margin: 0 auto;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--card);
  border-top: 1px solid var(--line);
  display: flex;
}
.tabbar .ti { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: .68rem; color: #9a9a9a; position: relative; }
.tabbar .ti.on { color: var(--theme); font-weight: 700; }
.tabbar .ti .bdg { position: absolute; top: 4px; right: calc(50% - 18px); min-width: 16px; height: 16px; border-radius: 999px; background: var(--theme); color: #fff; font-size: .62rem; display: flex; align-items: center; justify-content: center; padding: 0 4px; border: 2px solid #fff; }

/* ============ بوش ھالەت / 空状态 ============ */
.empty { text-align: center; padding: 60px 20px; color: #aaa; }
.empty svg { margin: 0 auto 12px; display: block; }
.empty .t { font-size: .9rem; }
.empty .go { margin: 16px auto 0; display: inline-block; background: var(--grad); color: #fff; padding: 9px 26px; border-radius: 999px; font-size: .88rem; }

/* يۈكلىنىش / 加载中 */
.loading { text-align: center; padding: 18px; color: #b5b5b5; font-size: .82rem; }
.loading .spin { display: inline-block; width: 16px; height: 16px; border: 2px solid #ddd; border-top-color: var(--theme); border-radius: 50%; animation: sp .7s linear infinite; vertical-align: -3px; margin-left: 6px; }
@keyframes sp { to { transform: rotate(360deg); } }

/* ============ كۆزنەكلەر / 弹窗 ============ */
.mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 90; display: none; }
.mask.show { display: block; }
.sheet {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 95;
  max-width: 520px; margin: 0 auto;
  background: var(--card); border-radius: 18px 18px 0 0;
  padding: 16px 14px calc(16px + env(safe-area-inset-bottom, 0px));
  transform: translateY(100%); transition: transform .28s ease;
  max-height: 82vh; overflow-y: auto;
}
.sheet.show { transform: translateY(0); }
.sheet .sh-hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.sheet .sh-hd .t { font-weight: 700; font-size: 1rem; }
.sheet .sh-hd .x { width: 28px; height: 28px; border-radius: 50%; background: #f2f3f5; display: flex; align-items: center; justify-content: center; color: #888; }
.sheet .goods-row { display: flex; gap: 10px; align-items: center; padding-bottom: 10px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.sheet .goods-row img { width: 72px; height: 72px; border-radius: 10px; object-fit: cover; background: #f4f4f4; }
.dialog {
  position: fixed; z-index: 96; top: 50%; left: 50%; transform: translate(-50%,-50%) scale(.9);
  width: 78%; max-width: 320px; background: var(--card); border-radius: 16px; padding: 22px 18px 14px;
  text-align: center; opacity: 0; pointer-events: none; transition: all .2s ease;
}
.dialog.show { opacity: 1; pointer-events: auto; transform: translate(-50%,-50%) scale(1); }
.dialog .dt { font-weight: 800; font-size: 1rem; margin-bottom: 8px; }
.dialog .dm { color: #777; font-size: .86rem; line-height: 1.7; }
.dialog .db { display: flex; gap: 10px; margin-top: 16px; }
.dialog .db button { flex: 1; height: 40px; border-radius: 999px; font-size: .9rem; border: 1px solid #ddd; }
.dialog .db button.pri { background: var(--grad); color: #fff; border: none; font-weight: 700; }

/* ئۇقتۇرۇش (toast) */
#toast {
  position: fixed; z-index: 120; top: 45%; left: 50%; transform: translate(-50%,-50%);
  background: rgba(17,17,17,.82); color: #fff; padding: 11px 20px;
  border-radius: 12px; font-size: .88rem; max-width: 78%; text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .22s; line-height: 1.6;
}
#toast.show { opacity: 1; }

/* سالون كۆزنىكى / 公众号二维码弹窗 */
.salon-mask { position: fixed; inset: 0; z-index: 110; background: rgba(0,0,0,.55); display: none; align-items: center; justify-content: center; }
.salon-mask.show { display: flex; }
.salon-box { width: 76%; max-width: 300px; background: var(--card); border-radius: 18px; padding: 22px 18px; text-align: center; position: relative; }
.salon-box img { width: 200px; height: 200px; margin: 10px auto; object-fit: contain; }
.salon-box .t { font-weight: 800; font-size: 1rem; }
.salon-box .x { position: absolute; top: 10px; left: 10px; width: 26px; height: 26px; border-radius: 50%; background: #f2f3f5; color: #888; display: flex; align-items: center; justify-content: center; font-size: .8rem; }

/* ============ كىرىش بېتى / 登录页 ============ */
.login-hero { background: var(--grad); padding: 54px 20px 74px; color: #fff; text-align: center; border-radius: 0 0 26px 26px; }
.login-hero .lg { width: 74px; height: 74px; border-radius: 22px; background: #fff; margin: 0 auto 12px; display: flex; align-items: center; justify-content: center; font-size: 2rem; color: var(--theme); font-weight: 900; box-shadow: 0 6px 18px rgba(0,0,0,.15); }
.login-hero .n1 { font-size: 1.25rem; font-weight: 800; }
.login-hero .n2 { font-size: .8rem; opacity: .85; margin-top: 4px; }
.login-card { margin: -46px 16px 0; background: var(--card); border-radius: 18px; padding: 22px 18px; box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.login-card h3 { font-size: 1.02rem; margin-bottom: 14px; text-align: center; }
.login-card .tip { background: #fff8f0; border: 1px solid #ffe3c2; color: #a06a1e; font-size: .78rem; line-height: 1.8; border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; }
.wx-btn { width: 100%; height: 46px; border-radius: 999px; background: #07c160; color: #fff; font-size: .98rem; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; }
.divider { display: flex; align-items: center; gap: 10px; color: #bbb; font-size: .78rem; margin: 16px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ============ ياردەم / 帮助 ============ */
.help-item { background: var(--card); border-radius: var(--radius); margin: 12px 12px 0; overflow: hidden; }
.help-item .q { padding: 14px; font-weight: 700; font-size: .92rem; display: flex; justify-content: space-between; align-items: center; }
.help-item .a { padding: 0 14px 14px; color: #666; font-size: .85rem; line-height: 1.9; display: none; }
.help-item.open .a { display: block; }
.help-item .ar { transition: transform .2s; color: #bbb; }
.help-item.open .ar { transform: rotate(180deg); }

/* ئۈنۈملەر / 动画 */
.fade-in { animation: fi .35s ease both; }
@keyframes fi { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.press:active { opacity: .8; transform: scale(.98); }
