/* 黄阿公·壮瑶健康 手机端 全站样式 */
/* ===== 全站配色：想换金色系，只改这一段 ===== */
:root {
  --c-price: #A9752B;      /* 价格数字：琥珀金 */
  --c-price-yen: #BF9552;  /* ¥ 符号：浅一号的金，做层次 */
  --c-buy-a: #A9772B;      /* 主按钮渐变起色 */
  --c-buy-b: #8A5D1E;      /* 主按钮渐变止色 */
  --c-buy-grad: linear-gradient(135deg, #C79A4E 0%, #A9772B 48%, #8A5D1E 100%); /* 金属金光 */
  --c-buy-line: #C79A4E;   /* 次要按钮描边 */
  --c-brand: #8A5D1E;      /* 主金色：导航、标题、链接、信息提示都用它 */
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { max-width: 480px; margin: 0 auto; overflow-x: hidden; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f4f6f5; color: #222; font-size: 15px;
  padding-bottom: 58px; /* tabbar 高度 */
}
a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* 顶部栏（按设计稿：上方留白 67%，标题靠下） */
.header {
  position: sticky; top: 0; z-index: 100;
  background: linear-gradient(90deg, #498966, #498966);
  color: #fff; text-align: center;
  height: 65px;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 8px; box-sizing: border-box;
  font-size: 16px; font-weight: 600; letter-spacing: 1px;
  box-shadow: 0 3px 12px rgba(0,0,0,.3);
  gap: 8px;
}

/* 顶栏右侧「分享给好友」按钮 */
.hdr-share {
  position: absolute; right: 0; top: 0;
  width: 58px; height: 100%;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 9px; box-sizing: border-box;
  color: #fff; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.hdr-share svg { width: 22px; height: 22px; display: block; }
.hdr-share:active { opacity: .7; }
.header img.logo { height: 34px; max-width: 64%; object-fit: contain; }

/* 全站图片动感效果：进入视口时明显淡入上浮（app.js 自动加类，失败时 2.5 秒兜底显示） */
img.rv { opacity: 0; transform: translateY(32px) scale(.93); transition: opacity .65s cubic-bezier(.22,.61,.36,1), transform .65s cubic-bezier(.22,.61,.36,1); will-change: opacity, transform; }
img.rv.in { opacity: 1; transform: none; }
.pcard .pic img, .excard .pic img { transition: transform .45s ease, opacity .55s ease; }
.pcard:active .pic img, .excard:active .pic img { transform: scale(1.05); }

/* 轮播：固定 4:3 宽高比，任何图片/任何设备高度都一致（不随原图比例跳动） */
.swiper { position: relative; overflow: hidden; aspect-ratio: 4 / 3; }
/* 轮播图还没拿到后台数据时：浅灰占位，避免先闪一下底图、也避免页面跳动 */
.swiper.is-loading { background: #e9edec; }
.swiper .slides { display: flex; height: 100%; transition: transform .45s ease; }
/* object-fit:cover 等比裁切填满，图片绝不拉伸变形；主体居中不易被裁 */
.swiper .slides img { width: 100%; height: 100%; flex-shrink: 0; object-fit: cover; object-position: center; display: block; }
.swiper .dots {
  position: absolute; bottom: 10px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 6px;
}
.swiper .dots i {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,.55); transition: all .3s;
}
.swiper .dots i.on { background: #fff; width: 18px; border-radius: 4px; }

/* 用户信息条 */
.userbar {
  display: flex; align-items: center; background: #fff;
  padding: 10px 14px; margin-bottom: 8px;
}
.userbar .avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: #e8e8e8 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23999"><circle cx="12" cy="8" r="4"/><path d="M4 21c0-4.4 3.6-8 8-8s8 3.6 8 8"/></svg>') center/100% no-repeat;
  margin-right: 8px;
}
.userbar .who { flex: 1; color: #555; font-size: 14px; }
.userbar .stat { text-align: center; padding: 0 12px; }
.userbar .stat .num { font-size: 22px; font-weight: 700; color: #222; }
.userbar .stat .lbl { font-size: 12px; color: #888; }
.userbar .stat .num em { font-style: normal; font-size: 13px; color: #666; margin-right: 2px; }

/* 金刚区图标：5 列 2 行 = 10 格，全站统一（首页/积分/拍照/促销/说明/直播/分享/分销页一致） */
.grid-icons {
  display: grid; grid-template-columns: repeat(5, 1fr);
  background: #fff; padding: 14px 2px 6px; margin-bottom: 8px;
}
.grid-icons a { text-align: center; padding-bottom: 12px; }
.grid-icons .gic {
  height: 40px; width: auto; max-width: 70px; object-fit: contain;
  display: block; margin: 4px auto 8px;
}
.grid-icons .t { font-size: 12px; color: #333; white-space: nowrap; }

/* 宫格线描图标（与首页第 9、10 格同一套风格：24 网格、1.5 线宽、圆头圆角） */
.grid-icons .g-ico {
  width: 40px; height: 40px; margin: 4px auto 8px;
  display: flex; align-items: center; justify-content: center;
}
.grid-icons .g-ico svg { display: block; width: 100%; height: 100%; }
.grid-icons .gi-1 { color: #2f86c9; }  /* 全部商品 · 购物袋 */
.grid-icons .gi-2 { color: #d9a520; }  /* 积分兑换 · 积分币 */
.grid-icons .gi-3 { color: #8a5bb8; }  /* 拍照积分 · 相机 */
.grid-icons .gi-4 { color: #e2622c; }  /* 促销活动 · 喇叭 */
.grid-icons .gi-5 { color: #647f8c; }  /* 使用说明 · 文档 */
.grid-icons .gi-6 { color: #2f9e6e; }  /* 互动分享 · 留言气泡 */
.grid-icons .gi-7 { color: #d8497a; }  /* 直播视频 · 手机播放 */
.grid-icons .gi-8 { color: #7A5118; }  /* 我要分销 · 分销网络 */

/* 经销商 / 直销员入口：已审核通过时右上角一个金色小对勾 */
.grid-icons a.dist-agent .g-ico { color: #8A5D1E; }
.grid-icons a.dist-direct .g-ico { color: #c08a1e; }
.grid-icons a.dist-agent, .grid-icons a.dist-direct { position: relative; }
.grid-icons a.on::after {
  content: '✓'; position: absolute; top: 1px; left: 50%; margin-left: 11px;
  width: 14px; height: 14px; line-height: 14px; text-align: center;
  font-size: 9px; font-weight: 700; color: #fff; background: #C79A4E;
  border-radius: 50%; box-shadow: 0 0 0 2px #fff;
}
.grid-icons a.on.dist-direct::after { background: #c08a1e; }

/* 小屏（iPhone SE 一代等 320px）：5 列容易挤，字号和图标略收 */
@media (max-width: 350px) {
  .grid-icons { padding: 12px 0 6px; }
  .grid-icons .t { font-size: 11px; letter-spacing: -.2px; }
  .grid-icons .g-ico { width: 36px; height: 36px; margin: 4px auto 7px; }
}

/* 区块标题条 */
.sec-bar {
  background: #f2f2f2; color: #8A5D1E; font-weight: 600;
  padding: 14px 16px; font-size: 16px;
  display: flex; align-items: baseline; gap: 10px;
}
.sec-bar .sub { font-size: 12px; font-weight: 400; color: #888888; }
.sec-bar.green { background: #f2f2f2; }
.sec-bar.yellow { background: #FBF3E4; color: #8A5D1E; }
.sec-bar.red { background: #B03A2E; color: #F7E3D6; }
.sec-bar.red .sub { color: #ffd9d9; }

/* 商品卡片 */
.plist { background: #fff; }
.pcard {
  display: flex; padding: 12px 14px; gap: 12px;
  border-bottom: 1px solid #f0f0f0;
}
.pcard .pic {
  width: 112px; height: 112px; flex-shrink: 0;
  border-radius: 8px; overflow: hidden; background: #f5f5f5;
}
.pcard .pic img { width: 100%; height: 100%; object-fit: cover; }
.pcard .info { flex: 1; display: flex; flex-direction: column; }
.pcard .name { font-size: 15px; font-weight: 500; line-height: 1.45; }
.pcard .feat { font-size: 14px; color: #555; margin-top: 5px; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard .price-row { margin-top: auto; display: flex; align-items: flex-end; gap: 8px; justify-content: flex-end; }
.pcard .price { color: var(--c-price, #A9752B); font-size: 20px; font-weight: 700; letter-spacing: .2px; }
.pcard .price em { font-style: normal; font-size: 13px; color: var(--c-price-yen, #BF9552); margin-right: 1px; }
.pcard .origin { font-size: 12px; color: #bbb; text-decoration: line-through; }
.pcard .sold { font-size: 12px; color: #888; margin-top: 2px; }
.pcard .cart {
  margin-left: 6px; width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  background: #fff; border: 1.5px solid var(--c-buy-line,#C79A4E); color: var(--c-buy-a,#A9772B);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(169,119,43,.25);
}
.pcard .cart svg { width: 21px; height: 21px; }
.promo-line { font-size: 13px; color: #b06a00; margin-top: 3px; }

/* 积分兑换卡片 */
.excard { display: flex; gap: 12px; padding: 12px 14px; background: #fff; border-bottom: 1px solid #f0f0f0; }
.excard .pic { width: 118px; height: 118px; flex-shrink: 0; border-radius: 8px; overflow: hidden; background: #f5f5f5; }
.excard .pic img { width: 100%; height: 100%; object-fit: cover; }
.excard .info { flex: 1; display: flex; flex-direction: column; }
.excard .n { font-size: 15px; font-weight: 500; line-height: 1.45; }
.excard .spec { font-size: 13px; color: #888; margin-top: 4px; }
.excard .pt { color: #8A5D1E; font-size: 14px; margin-top: 4px; }
.excard .pt b { font-size: 22px; margin: 0 2px; font-weight: 700; }
.excard .btn-ex {
  margin-top: auto; align-self: flex-end;
  background: var(--c-buy-grad); color: #fff;
  font-size: 14px; font-weight: 600; padding: 8px 26px; border-radius: 18px; border: none;
  letter-spacing: 1px;
}

/* 滚动通知 */
.notice { background: #FAF3E4; color: #7A5118; overflow: hidden; white-space: nowrap; font-size: 13px; padding: 9px 0; }
.notice .inner { display: inline-block; padding-left: 100%; animation: marq 16s linear infinite; }
@keyframes marq { to { transform: translateX(-100%); } }

/* 拍照积分上传 */
.up-form { background: #fff; padding: 14px; margin-bottom: 8px; }
.up-form .tip { font-size: 13px; color: #999; line-height: 1.8; margin-bottom: 10px; }
.up-form .preview { max-width: 160px; border-radius: 6px; margin-top: 10px; display: none; }

/* 视频播放遮罩 */
.vmask { position: fixed; top:0;right:0;bottom:0;left:0; background: rgba(0,0,0,.85); z-index: 200; display: none; align-items: center; justify-content: center; }
.vmask video, .vmask img { width: 100%; max-width: 480px; max-height: 80vh; }
.vmask .close { position: absolute; top: 18px; right: 22px; color: #fff; font-size: 30px; }

/* 积分标签 */
.pts { color: #8A5D1E; font-size: 13px; margin-top: 4px; }
.pts b { font-size: 16px; }

/* 活动规则卡 */
.rule-card { display: flex; gap: 10px; background: #fff; padding: 12px; margin-bottom: 8px; }
.rule-card .pic { width: 120px; height: 150px; flex-shrink: 0; border-radius: 6px; overflow: hidden; }
.rule-card .pic img { width: 100%; height: 100%; object-fit: cover; }
.rule-card h4 { font-size: 14px; margin-bottom: 6px; }
.rule-card p { font-size: 12px; color: #777; line-height: 1.7; }
.btn-up {
  display: block; margin: 10px 0 0 auto;
  background: var(--c-buy-grad); color: #fff;
  border: none; font-size: 13px; padding: 7px 22px; border-radius: 16px;
}

/* 九宫格用户秀 */
.show-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: #fff; }
.show-grid .cell { background: #fff; }
.show-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.show-grid .meta { padding: 6px 8px 10px; font-size: 11px; color: #888; line-height: 1.6; }
.show-grid .meta b { color: #444; font-size: 12px; }

/* 表单 */
.form { background: #fff; }
.form .row {
  display: flex; align-items: center; padding: 13px 14px;
  border-bottom: 1px solid #f2f2f2; gap: 10px;
}
.form label { width: 72px; color: #333; font-size: 14px; flex-shrink: 0; }
.form input[type=text], .form textarea {
  flex: 1; min-width: 0; border: none; outline: none; font-size: 14px; background: transparent;
  font-family: inherit;
}
.form textarea { height: 110px; resize: none; padding: 13px 14px; width: 100%; display: block; }
.form .radio-group { display: flex; gap: 18px; font-size: 14px; color: #555; align-items: center; flex-wrap: wrap; row-gap: 8px; }
.upload-box {
  width: 72px; height: 72px; border: 1px dashed #ccc; border-radius: 4px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #999; font-size: 11px; gap: 4px; background: #fafafa;
}
.upload-box .plus { font-size: 26px; color: #bbb; line-height: 1; }
.btn-submit {
  display: block; width: 70%; margin: 24px auto 10px;
  background: var(--c-buy-grad); color: #fff;
  border: none; font-size: 16px; padding: 11px 0; border-radius: 22px;
  box-shadow: 0 4px 10px rgba(0,154,150,.35);
}
.form-tip { text-align: center; font-size: 12px; color: #999; padding: 0 20px 16px; line-height: 1.7; }

/* 直播 */
.live-card {
  margin: 12px 14px; background: linear-gradient(135deg,#f5f5f5,#e8e8e8);
  border-radius: 10px; padding: 34px 16px; text-align: center; color: #555;
  font-size: 13px; line-height: 2;
}
.live-card .t { font-size: 16px; font-weight: 600; color: #333; margin-bottom: 6px; }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: #fff; }
.video-grid .v img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.video-grid .v .play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(0,0,0,.45); color: #fff; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
.video-grid .v { position: relative; }
.video-grid .meta { padding: 6px 8px 10px; font-size: 11px; color: #888; line-height: 1.6; }

/* 商品详情页 */
.detail-banner { background: #e9edec; }
.detail-banner img { width: 100%; display: block; }
.detail-head { background: #fff; padding: 14px; margin-bottom: 8px; }
.detail-head .name { font-size: 17px; font-weight: 700; line-height: 1.45; }
.detail-head .feat { font-size: 13px; color: #999; margin-top: 6px; line-height: 1.6; }
.detail-head .price-row { display: flex; align-items: baseline; gap: 10px; margin-top: 10px; }
.detail-head .price { color: var(--c-price, #A9752B); font-size: 26px; font-weight: 700; letter-spacing: .3px; }
.detail-head .price em { font-style: normal; font-size: 15px; color: var(--c-price-yen, #BF9552); margin-right: 2px; }
.detail-head .origin { color: #bbb; font-size: 13px; text-decoration: line-through; }
.detail-head .sold { margin-left: auto; color: #888; font-size: 13px; }
.detail-sec { background: #fff; margin-bottom: 8px; padding: 14px; }
.detail-sec h3 { text-align: center; font-size: 15px; margin-bottom: 12px; }
.detail-sec p { font-size: 13px; color: #666; line-height: 1.9; }
.detail-sec p b { color: #333; }
.detail-actions {
  position: fixed; bottom: 58px; left: 0; right: 0; max-width: 480px; margin: 0 auto;
  display: flex; background: #fff; border-top: 1px solid #eee; z-index: 90;
}
.detail-actions a, .detail-actions button {
  flex: 1; text-align: center; padding: 12px 0; font-size: 14px; border: none; background: none;
}
.detail-actions .add { color: #8A5D1E; border-right: 1px solid #eee; }
.detail-actions .buy {
  background: var(--c-buy-grad); color: #fff; font-weight: 600;
}
body.has-actions { padding-bottom: 108px; }

/* 关于我们 */
.about-body { background: #fff; padding: 18px 16px; margin-bottom: 8px; }
.about-body h3 { text-align: center; font-size: 16px; margin-bottom: 14px; }
.about-body p { font-size: 14px; color: #555; line-height: 2; text-indent: 2em; }
.about-body h4 { font-size: 14px; font-weight: 700; color: #8A5D1E; margin: 16px 0 8px; padding-left: 9px; border-left: 3px solid #8A5D1E; line-height: 1.4; }
.about-photo { padding: 0 14px 18px; background: #fff; margin-bottom: 8px; }
.about-photo img { border-radius: 6px; width: 100%; display: block; }
/* 客服联系方式条（分销页等） */
.contact-bar { background: #fff; padding: 14px 16px; margin-bottom: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; border-left: 4px solid #8A5D1E; }
.contact-bar .cb-l { font-size: 13px; color: #888; }
.contact-bar .cb-tel { font-size: 19px; font-weight: 700; color: #8A5D1E; letter-spacing: .5px; }
.contact-bar .cb-tip { flex-basis: 100%; font-size: 12px; color: #aaa; }

/* 品牌引导页 */
.splash {
  min-height: 100vh; position: relative;
}
.splash img.bg { width: 100%; }
.splash .enter {
  position: absolute; bottom: 9%; left: 50%; transform: translateX(-50%);
  background: rgba(0,138,134,.92); color: #fff; font-size: 16px;
  padding: 11px 42px; border-radius: 4px; letter-spacing: 2px;
}

/* 底部 Tab */
.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; max-width: 480px; margin: 0 auto;
  background: #fff; border-top: 1px solid #e8e8e8;
  display: flex; z-index: 100; padding-bottom: env(safe-area-inset-bottom);
}
.tabbar a {
  flex: 1; text-align: center; padding: 7px 0 8px;
  font-size: 11px; color: #888;
}
.tabbar a .ico { font-size: 21px; display: block; line-height: 1.2; }
.tabbar a .ico svg { width: 24px; height: 24px; display: block; margin: 0 auto; }
.tabbar a.on { color: #8A5D1E; font-weight: 600; }

/* 购物车空态 */
.empty { text-align: center; padding: 90px 0 60px; background: #fff; }
.empty .ico { font-size: 56px; margin-bottom: 14px; }
.empty p { color: #999; font-size: 14px; margin-bottom: 20px; }
.empty a {
  display: inline-block; border: 1px solid #111111; color: #8A5D1E;
  font-size: 14px; padding: 8px 28px; border-radius: 18px;
}

/* 我的页面 */
.me-head {
  background: linear-gradient(135deg,#211B12 0%,#0B0B0B 72%); color: #EBD3A4;
  padding: 26px 18px; display: flex; align-items: center; gap: 14px;
}
.me-head .avatar {
  width: 58px; height: 58px; border-radius: 50%; background: rgba(255,255,255,.85);
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23999"><circle cx="12" cy="8" r="4"/><path d="M4 21c0-4.4 3.6-8 8-8s8 3.6 8 8"/></svg>');
  background-size: 100%; background-position: center;
}
.me-head .name { font-size: 17px; font-weight: 600; }
.me-head .sub { font-size: 12px; opacity: .85; margin-top: 4px; }
.me-stats { display: flex; background: #fff; padding: 14px 0; margin-bottom: 8px; }
.me-stats a { flex: 1; text-align: center; }
.me-stats .num { font-size: 20px; font-weight: 700; }
.me-stats .lbl { font-size: 12px; color: #888; }
.me-menu { background: #fff; }
.me-menu a {
  display: flex; align-items: center; padding: 14px 16px;
  border-bottom: 1px solid #f4f4f4; font-size: 14px;
}
.me-menu a .ico { width: 30px; font-size: 19px; }
.me-menu a .arr { margin-left: auto; color: #ccc; }
.toast {
  position: fixed; left: 50%; top: 46%; transform: translate(-50%,-50%);
  background: rgba(0,0,0,.75); color: #fff; font-size: 14px;
  padding: 10px 22px; border-radius: 8px; z-index: 999; display: none;
}

/* ================= 登录 / 注册 ================= */
.auth-wrap { padding: 18px 16px 30px; }
.auth-card { background: #fff; border-radius: 12px; padding: 20px 18px 22px; box-shadow: 0 2px 10px rgba(0,0,0,.05); }
.auth-logo { text-align: center; padding: 8px 0 16px; }
.auth-logo .bn { font-size: 20px; font-weight: 700; color: #8A5D1E; letter-spacing: 2px; }
.auth-logo .bs { font-size: 12px; color: #999; margin-top: 6px; letter-spacing: 1px; }
.auth-tabs { display: flex; border-bottom: 1px solid #eee; margin-bottom: 18px; }
.auth-tabs button {
  flex: 1; background: none; border: none; padding: 12px 0 11px;
  font-size: 16px; color: #888; position: relative; font-weight: 500;
}
.auth-tabs button.on { color: #8A5D1E; font-weight: 700; }
.auth-tabs button.on::after {
  content: ''; position: absolute; left: 50%; bottom: -1px; transform: translateX(-50%);
  width: 46px; height: 3px; border-radius: 2px; background: #8A5D1E;
}
.auth-card label.fl { display: block; font-size: 14px; color: #555; margin: 0 0 7px 2px; }
.auth-card .finput {
  display: flex; align-items: center; border: 1px solid #e2e2e2; border-radius: 10px;
  padding: 0 12px; margin-bottom: 16px; background: #fafafa;
}
.auth-card .finput .pre { font-size: 14px; color: #888; margin-right: 8px; }
.auth-card .finput input {
  flex: 1; border: none; background: none; outline: none;
  font-size: 17px; padding: 14px 0; color: #222; letter-spacing: 1px;
}
.auth-card .finput input::placeholder { color: #bbb; font-size: 15px; letter-spacing: 0; }
.auth-card .finput:focus-within { border-color: #8A5D1E; background: #fff; box-shadow: 0 0 0 3px rgba(169,119,43,.12); }
.auth-card .eye { font-size: 13px; color: #8A5D1E; padding: 6px 2px 6px 10px; }
.auth-btn {
  width: 100%; border: none; border-radius: 24px; color: #fff; font-size: 17px;
  font-weight: 600; letter-spacing: 2px; padding: 15px 0; margin-top: 4px;
  background: var(--c-buy-grad);
  box-shadow: 0 6px 16px rgba(0,154,150,.28);
}
.auth-btn:disabled { opacity: .6; }
.auth-err { color: #d8452f; font-size: 14px; text-align: center; min-height: 20px; margin: -4px 0 8px; line-height: 1.5; }
.auth-msg { color: #8A5D1E; font-size: 14px; text-align: center; min-height: 20px; margin: -4px 0 8px; }
.auth-tip { font-size: 13px; color: #999; line-height: 1.9; margin-top: 16px; padding-top: 14px; border-top: 1px dashed #eee; }
.auth-tip b { color: #8A5D1E; font-weight: 600; }
.auth-alt { text-align: center; font-size: 14px; color: #888; margin-top: 18px; }
.auth-alt a { color: #8A5D1E; font-weight: 600; }
.auth-hide { display: none !important; }

/* 我的：已登录态 */
.me-head .avatar.has { background: linear-gradient(135deg,#8A5D1E,#7A5118); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 17px; font-weight: 600; }
.me-head .login-btn {
  margin-left: auto; align-self: center; background: rgba(255,255,255,.22);
  border: 1px solid rgba(255,255,255,.6); color: #fff; font-size: 14px;
  padding: 8px 18px; border-radius: 20px;
}
.me-stats a.on { color: #8A5D1E; }

/* 我的订单 */
.ord-item { background: #fff; margin-bottom: 8px; padding: 14px; }
.ord-item .top { display: flex; justify-content: space-between; font-size: 13px; color: #999; margin-bottom: 8px; }
.ord-item .st { color: #8A5D1E; font-weight: 600; }
.ord-item .goods { font-size: 14px; color: #333; line-height: 1.7; }
.ord-item .bot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid #f5f5f5; }
.ord-item .amt { font-size: 17px; font-weight: 700; color: var(--c-price, #A9752B); }
.ord-item .amt small { font-size: 12px; font-weight: 400; color: #999; margin-left: 6px; }
.ord-item .pt { font-size: 12px; color: #8A5D1E; background: #FAF3E4; padding: 3px 8px; border-radius: 10px; }

/* 结算页登录提示 */
.login-tip {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: #fffdf5; border-bottom: 1px solid #f2e9d8;
  padding: 11px 14px; font-size: 13px; color: #8a6a2f;
}
.login-tip.ok { background: #FAF3E4; border-bottom-color: #EADFC7; color: #7A5118; }
.login-tip b { color: #8A5D1E; }
.login-tip a { color: #8A5D1E; font-weight: 600; white-space: nowrap; }

/* 详情页会员引导条 */
.join-bar {
  display: flex; align-items: center; gap: 12px;
  margin: 10px 12px 0; background: #FAF3E4;
  border: 1px dashed #8A5D1E; border-radius: 10px;
  padding: 11px 14px; font-size: 13px; color: #7A5118; line-height: 1.7;
}
.join-bar b { color: #d8452f; font-weight: 600; }
.join-bar .btn {
  flex-shrink: 0; background: var(--c-buy-grad);
  color: #fff; padding: 8px 15px; border-radius: 16px;
  font-size: 13px; font-weight: 600; white-space: nowrap;
  box-shadow: 0 3px 8px rgba(0,154,150,.25);
}

/* 详情页多图 */
#d-imgs img { display: block; width: 100%; margin-bottom: 10px; border-radius: 6px; }

/* ===== 商品分类筛选（一级 / 二级）v1111a ===== */
.cat-filter { background: #fff; padding: 14px 0; border-bottom: 1px solid #e8e8e8; }
.cf-row {
  display: flex; align-items: center; gap: 8px;
  padding: 0 14px; overflow-x: auto; overflow-y: hidden;
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.cf-row::-webkit-scrollbar { display: none; }
.cf-row.sub { margin-top: 9px; }
.chip {
  flex: 0 0 auto; display: inline-flex; align-items: center;
  height: 30px; padding: 0 13px;
  border: 1px solid #ddd; border-radius: 15px;
  background: #fff; color: #666;
  font-size: 13px; font-family: inherit; line-height: 1; letter-spacing: .02em;
  cursor: pointer;
}
.chip.on {
  border-color: #8A5D1E; color: #8A5D1E;
  background: #FBF6EC; font-weight: 600;
}
.cf-row.sub .chip { height: 26px; border-radius: 13px; padding: 0 11px; font-size: 12px; color: #8C877D; }
.cf-row.sub .chip.on { border-color: #CDB389; font-weight: 600; }
.cf-sum { margin-left: auto; font-size: 11.5px; font-weight: 400; color: #999; letter-spacing: 0; }
.cat-empty { padding: 52px 16px 64px; text-align: center; color: #A8A29A; font-size: 13px; }
/* 首页「查看该分类全部 N 件」 */
.more-link { background: #fff; margin-top: -8px; padding: 0 16px 20px; text-align: center; }
.more-link a {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 12.5px; color: #8A5D1E; letter-spacing: .02em;
  border-bottom: 1px solid #E7DFCF; padding-bottom: 2px;
}
.more-link a span { font-size: 14px; line-height: 1; margin-top: -1px; }
