/* YS 商城模板：仅作用于首页（body.page-home），下单页保持原样 */
body.page-home{
  background:#f4f2f9 !important;
  color:#1f1a33;
  font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;
}
body.page-home .header-navbar{display:none !important;}
body.page-home .container{max-width:100% !important;padding:0 !important;margin:0 !important;}
body.page-home .dp-footer{
  max-width:1400px;margin:26px auto 0;padding:22px 16px 18px !important;
  background:#fff;border-radius:8px;color:#8a869c;border:1px solid #ece9f4;
}
body.page-home .dp-footer a{color:#6450c8 !important;}

.ys-page{
  --ys:#2d1b69;--ys-deep:#1b1040;--ys-2:#3b247f;--ys-light:#f1edff;
  --ys-line:#ebe7f4;--ys-muted:#8b86a1;--ys-red:#ef3d3d;--ys-orange:#ff7a2f;
  color:#1f1a33;
}
.ys-head{
  background:
    radial-gradient(circle at 18% 25%,rgba(255,255,255,.16) 0 2px,transparent 2.5px) 0 0/18px 18px,
    radial-gradient(circle at 72% 65%,rgba(255,255,255,.1) 0 1.5px,transparent 2px) 0 0/22px 22px,
    linear-gradient(100deg,#1a0f3d 0%,#2c1a62 38%,#3c247e 72%,#241251 100%);
  border-bottom:1px solid rgba(255,255,255,.18);
}
.ys-head-wrap{
  max-width:1400px;margin:0 auto;padding:0 16px;height:92px;
  display:flex;align-items:center;gap:24px;
}
.ys-logo{display:flex;align-items:center;gap:9px;text-decoration:none;flex:0 0 auto;min-width:176px;}
.ys-logo-icon{
  width:38px;height:38px;border-radius:9px;display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,#ff9b45,#ff6a1f);color:#fff;font-size:19px;
  box-shadow:0 5px 14px rgba(255,107,35,.32);
}
.ys-logo-icon svg{width:22px;height:22px;}
.ys-logo-txt{color:#fff;font-size:21px;font-weight:800;letter-spacing:.4px;max-width:150px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.ys-menu{display:flex;align-items:center;gap:6px;flex:0 0 auto;}
.ys-menu a{
  color:rgba(255,255,255,.82);text-decoration:none;font-size:14px;line-height:30px;
  padding:0 12px;border-radius:4px;white-space:nowrap;transition:.2s;
}
.ys-menu a:hover{color:#fff;background:rgba(255,255,255,.1);}
.ys-menu a.on{color:#fff;font-weight:700;background:rgba(124,92,230,.45);}
.ys-search{
  margin-left:auto;position:relative;display:flex;align-items:center;
  width:360px;max-width:34vw;height:38px;border-radius:19px;overflow:hidden;
  background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.25);
}
.ys-search svg{width:18px;height:18px;color:rgba(255,255,255,.7);margin-left:14px;flex:0 0 auto;}
.ys-search input{
  flex:1;min-width:0;height:100%;border:0;outline:0;background:transparent;
  color:#fff;font-size:13px;padding:0 10px;
}
.ys-search input::placeholder{color:rgba(255,255,255,.55);}
.ys-search button{
  height:100%;border:0;padding:0 17px;background:linear-gradient(135deg,#8b70ff,#6a4ae0);
  color:#fff;font-size:13px;font-weight:700;cursor:pointer;
}
.ys-head-tools{display:flex;align-items:center;gap:14px;flex:0 0 auto;}
.ys-tool{display:flex;flex-direction:column;align-items:center;gap:2px;color:rgba(255,255,255,.8);text-decoration:none;font-size:11px;line-height:1.1;}
.ys-tool svg{width:22px;height:22px;}
.ys-tool i{font-style:normal;}
.ys-tool:hover{color:#fff;}

.ys-main{max-width:1400px;margin:0 auto;padding:18px 16px 0;}
.ys-top-grid{display:grid;grid-template-columns:222px minmax(0,1fr) 292px;gap:14px;height:330px;}

/* 左侧分类 */
.ys-cats{
  background:linear-gradient(165deg,#2b165f 0%,#211047 62%,#1a0c3b 100%);
  border-radius:8px;overflow:hidden;display:flex;flex-direction:column;
  box-shadow:0 8px 24px rgba(38,21,83,.16);scroll-margin-top:100px;
}
.ys-cats-head{
  height:52px;flex:0 0 52px;display:flex;align-items:center;padding:0 18px;
  color:#fff;font-size:17px;font-weight:800;letter-spacing:.5px;
  border-bottom:1px solid rgba(255,255,255,.1);
}
.ys-cats-body{overflow-y:auto;padding:4px 8px 10px;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.22) transparent;}
.ys-cats-body::-webkit-scrollbar{width:4px;}
.ys-cats-body::-webkit-scrollbar-thumb{background:rgba(255,255,255,.2);border-radius:2px;}
.ys-cat{
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  min-height:34px;padding:2px 10px;border-radius:4px;text-decoration:none;
  color:rgba(255,255,255,.72);font-size:13px;line-height:1.35;transition:.18s;
}
.ys-cat span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.ys-cat em{font-style:normal;font-size:12px;color:rgba(255,255,255,.38);}
.ys-cat:hover{background:rgba(255,255,255,.09);color:#fff;}
.ys-cat.on{background:rgba(255,255,255,.16);color:#fff;font-weight:700;}
.ys-cat.on em{color:#ffd27a;}

/* 横幅 */
.ys-banner{
  position:relative;height:330px;border-radius:8px;overflow:hidden;background:#ffcb22;
  box-shadow:0 8px 24px rgba(255,170,20,.18);
}
.ys-banner img{width:100%;height:100%;object-fit:cover;display:block;}
.ys-banner-copy{
  position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;
  text-align:center;padding:16px 88px 12px;pointer-events:none;
}
.ys-banner-badge{
  display:inline-block;margin-bottom:9px;padding:4px 12px;border-radius:13px;
  background:#3b1d62;color:#ffe07a;font-size:12px;font-weight:700;letter-spacing:.4px;
  box-shadow:0 4px 10px rgba(78,35,0,.18);
}
.ys-banner-copy h1{
  margin:0;font-size:40px;line-height:1.12;font-weight:900;letter-spacing:1px;
  color:#5a2700;text-shadow:0 2px 0 rgba(255,255,255,.65),0 5px 14px rgba(255,120,0,.18);
}
.ys-banner-copy p{
  margin:10px 0 0;font-size:15px;font-weight:700;color:#7a3700;letter-spacing:.3px;
  text-shadow:0 1px 0 rgba(255,255,255,.5);
}
.ys-banner-chips{display:flex;gap:8px;flex-wrap:wrap;justify-content:center;margin-top:15px;}
.ys-banner-chips span{
  padding:5px 13px;border-radius:14px;background:rgba(255,255,255,.82);
  color:#8a3b00;font-size:12px;font-weight:700;border:1px solid rgba(255,255,255,.9);
}

/* 右侧会员卡 */
.ys-user-card{
  background:#fff;border-radius:8px;border:1px solid #efeaf8;padding:16px 16px 12px;
  box-shadow:0 8px 24px rgba(40,24,87,.07);display:flex;flex-direction:column;
}
.ys-user-top{display:flex;align-items:center;gap:11px;padding-bottom:14px;border-bottom:1px solid #f1edf8;}
.ys-avatar{
  width:46px;height:46px;border-radius:50%;flex:0 0 46px;display:flex;align-items:center;justify-content:center;
  background:linear-gradient(135deg,#9b83ff,#6c4be1);color:#fff;font-size:18px;font-weight:800;
}
.ys-user-hello{min-width:0;flex:1;}
.ys-user-hello b{display:block;font-size:15px;color:#241b3f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.ys-user-hello small{display:block;margin-top:4px;font-size:11px;color:#9a94ae;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.ys-user-btn{
  flex:0 0 auto;padding:6px 10px;border-radius:12px;background:#f3eeff;color:#6c4be1;
  text-decoration:none;font-size:11px;font-weight:700;white-space:nowrap;
}
.ys-quick{display:grid;grid-template-columns:repeat(4,1fr);gap:6px 2px;margin-top:12px;flex:1;align-content:center;}
.ys-quick-item{display:flex;flex-direction:column;align-items:center;gap:5px;text-decoration:none;color:#6f6a84;padding:5px 0;border-radius:6px;transition:.18s;min-width:0;}
.ys-quick-item span{
  width:32px;height:32px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  background:#f5f1ff;color:#7b61e8;
}
.ys-quick-item svg{width:17px;height:17px;}
.ys-quick-item em{font-style:normal;font-size:11px;color:#716b85;white-space:nowrap;transform:scale(.96);}
.ys-quick-item:hover{background:#faf8ff;}
.ys-quick-item:hover span{background:#eae2ff;}

/* 公告 */
.ys-notice{
  display:none !important;margin-top:14px;height:42px;display:flex;align-items:center;gap:12px;padding:0 14px;
  background:#fff;border:1px solid #ece8f5;border-radius:6px;overflow:hidden;scroll-margin-top:100px;
}
.ys-notice-tag{flex:0 0 auto;background:#2d1b69;color:#fff;font-size:12px;font-weight:700;border-radius:3px;padding:4px 13px;letter-spacing:1px;}
.ys-notice-txt{flex:1;min-width:0;font-size:13px;color:#6e6884;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.5;}
.ys-notice-more{flex:0 0 auto;color:#8b80ba;text-decoration:none;font-size:12px;}
.ys-notice-toggle{
  flex:0 0 auto;width:28px;height:28px;border:0;border-radius:50%;background:#f5f2ff;color:#7c6ba9;
  display:flex;align-items:center;justify-content:center;cursor:pointer;padding:0;transition:.2s;
}
.ys-notice-toggle svg{width:14px;height:14px;transition:transform .25s;}
.ys-notice.open{height:auto;min-height:42px;align-items:flex-start;padding-top:10px;padding-bottom:10px;}
.ys-notice.open .ys-notice-tag{margin-top:1px;}
.ys-notice.open .ys-notice-txt{white-space:normal;line-height:1.7;max-height:140px;overflow-y:auto;}
.ys-notice.open .ys-notice-toggle svg{transform:rotate(180deg);}

/* 分类胶囊 */
.ys-filter{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 14px;}
.ys-chip{
  display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 14px;border-radius:15px;
  background:#fff;border:1px solid #eae5f4;color:#5e5872;font-size:12px;text-decoration:none;
  transition:.16s;white-space:nowrap;
}
.ys-chip:hover{border-color:#cabdf5;color:#5b40c9;}
.ys-chip.on{background:#2d1b69;border-color:#2d1b69;color:#fff;font-weight:700;}
.ys-chip-dot{width:6px;height:6px;border-radius:50%;background:#b9a9ff;}
.ys-chip.on .ys-chip-dot{background:#ffd27a;}

.ys-goods-head{display:flex;align-items:baseline;justify-content:space-between;margin:0 2px 10px;}
.ys-goods-head h2{margin:0;font-size:18px;font-weight:800;color:#211735;letter-spacing:.5px;}
.ys-goods-head h2::after{content:"";display:inline-block;width:24px;height:4px;border-radius:3px;background:linear-gradient(90deg,#7b5cf0,#c3b4ff);margin-left:9px;vertical-align:3px;}
.ys-goods-head span{font-size:12px;color:#9b95ac;}
.ys-goods-head b{color:#6c4be1;font-weight:700;}

/* 商品格 */
.ys-goods{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px;scroll-margin-top:100px;}
.ys-goods-card{
  display:block;background:#fff;border:1px solid #ece8f4;border-radius:7px;overflow:hidden;
  text-decoration:none;transition:transform .18s,box-shadow .18s,border-color .18s;
}
.ys-goods-card:hover{transform:translateY(-3px);box-shadow:0 12px 24px rgba(51,31,99,.12);border-color:#d8cff7;}
.ys-goods-img{position:relative;width:100%;aspect-ratio:4/3;background:#f7f5fb;overflow:hidden;}
.ys-goods-img img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s;}
.ys-goods-card:hover .ys-goods-img img{transform:scale(1.035);}
.ys-buy{
  position:absolute;right:10px;bottom:10px;width:30px;height:30px;border-radius:50%;
  background:rgba(255,255,255,.96);color:#ff6a12;display:flex;align-items:center;justify-content:center;
  box-shadow:0 4px 12px rgba(30,45,90,.18);border:1px solid rgba(255,201,175,.9);
}
.ys-buy svg{width:16px;height:16px;}
.ys-ribbon{
  position:absolute;left:10px;top:10px;padding:3px 9px;border-radius:3px;
  background:linear-gradient(135deg,#ff8a45,#f0522f);color:#fff;font-size:11px;font-weight:700;
  box-shadow:0 3px 8px rgba(230,70,30,.28);
}
.ys-goods-body{padding:12px 13px 13px;}
.ys-goods-body h3{
  margin:0;font-size:13px;line-height:1.45;color:#2d2742;font-weight:500;
  height:38px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;
}
.ys-goods-meta{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-top:10px;}
.ys-price{color:var(--ys-red);font-size:19px;font-weight:800;line-height:1;letter-spacing:-.4px;}
.ys-price i{font-style:normal;font-size:12px;font-weight:700;margin-right:1px;}
.ys-stock{font-size:11px;color:#9c96ab;white-space:nowrap;}
.ys-empty{grid-column:1/-1;padding:50px 0;text-align:center;color:#9a94ae;font-size:14px;background:#fff;border:1px dashed #ded7f0;border-radius:8px;}

/* 右侧悬浮 */
.ys-dock{
  position:fixed;right:18px;top:50%;transform:translateY(-50%);z-index:60;
  width:72px;background:#fff;border:1px solid #e8e3f3;border-radius:6px;overflow:hidden;
  box-shadow:0 10px 26px rgba(43,26,88,.14);
}
.ys-dock-btn{
  display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;
  min-height:74px;padding:8px 2px;border:0;border-bottom:1px solid #f0ecf7;background:#fff;
  color:#625a7b;text-decoration:none;font-size:12px;line-height:1.35;cursor:pointer;width:100%;
}
.ys-dock-btn:last-child{border-bottom:0;}
.ys-dock-btn span{width:30px;height:30px;border-radius:50%;background:#f4f0ff;color:#7157dd;display:flex;align-items:center;justify-content:center;}
.ys-dock-btn svg{width:18px;height:18px;}
.ys-dock-btn i{font-style:normal;text-align:center;}
.ys-dock-btn:hover{background:#faf7ff;}
.ys-dock-cs{background:#2d1b69;color:#fff;border-bottom-color:#2d1b69;}
.ys-dock-cs span{background:rgba(255,255,255,.15);color:#fff;}
.ys-dock-cs:hover{background:#241253;}

@media (max-width:1500px){
  .ys-main{max-width:calc(100% - 190px);}
}
@media (max-width:1240px){
  .ys-main{max-width:calc(100% - 48px);}
  .ys-dock{display:none;}
  .ys-menu a{padding:0 8px;font-size:13px;}
  .ys-search{width:270px;}
  .ys-logo{min-width:150px;}
  .ys-logo-txt{font-size:19px;max-width:120px;}
}
@media (max-width:1060px){
  .ys-menu{display:none;}
  .ys-search{width:auto;flex:1;max-width:none;}
  .ys-head-wrap{height:76px;gap:14px;}
  .ys-top-grid{grid-template-columns:200px minmax(0,1fr);}
  .ys-user-card{display:none;}
}
@media (max-width:820px){
  .ys-head-wrap{height:auto;min-height:64px;flex-wrap:wrap;padding:10px 12px;gap:10px;}
  .ys-logo{min-width:0;flex:1;}
  .ys-logo-icon{width:32px;height:32px;}
  .ys-logo-txt{font-size:18px;}
  .ys-head-tools{gap:10px;}
  .ys-tool{font-size:10px;}
  .ys-tool svg{width:19px;height:19px;}
  .ys-search{order:3;flex:0 0 100%;width:100%;height:36px;margin:0;}
  .ys-main{padding:10px 12px 0;}
  .ys-top-grid{display:block;height:auto;}
  .ys-cats{display:none;}
  .ys-banner{height:195px;border-radius:7px;}
  .ys-banner-copy{padding:12px 14px;background:radial-gradient(ellipse at center,rgba(255,255,255,.5) 0%,rgba(255,255,255,.16) 55%,transparent 74%);}
  .ys-banner-copy h1{font-size:23px;letter-spacing:.5px;text-shadow:0 1px 0 #fff,0 3px 10px rgba(255,255,255,.85);}
  .ys-banner-copy p{font-size:12px;margin-top:7px;max-width:94%;text-shadow:0 1px 0 rgba(255,255,255,.8);}
  .ys-banner-badge{font-size:10px;margin-bottom:6px;padding:3px 9px;}
  .ys-banner-chips{margin-top:10px;gap:5px;}
  .ys-banner-chips span{font-size:10px;padding:3px 9px;}
  .ys-notice{margin-top:10px;height:auto;min-height:38px;padding:6px 10px;gap:8px;}
  .ys-notice-txt{white-space:normal;font-size:12px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;}
  .ys-notice-more{display:none;}
  .ys-filter{gap:6px;margin:12px 0 10px;}
  .ys-chip{height:28px;padding:0 11px;font-size:11px;}
  .ys-goods-head h2{font-size:16px;}
  .ys-goods{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;}
  .ys-goods-body{padding:10px;}
  .ys-goods-body h3{font-size:12px;height:35px;}
  .ys-price{font-size:17px;}
  .ys-stock{font-size:10px;}
  .ys-dock{display:none;}
  body.page-home .dp-footer{margin:18px 12px 0;border-radius:7px;}
}
@media (max-width:360px){
  .ys-banner-copy h1{font-size:21px;}
  .ys-banner-copy p{font-size:11px;}
  .ys-goods{gap:8px;}
}

/* ===== 手机端专用：仿 App 首页 ===== */
.ys-m{display:none;}

@media (max-width:820px){
  body.page-home{background:#f2f3f8 !important;}
  body.page-home .ys-head,
  body.page-home .ys-main,
  body.page-home .dp-footer{display:none !important;}
  .ys-m{display:block;padding-bottom:calc(64px + env(safe-area-inset-bottom,0px));}

  .ys-m-head{background:#f4f5f9;}
  .ys-m-titlebar{
    height:46px;padding:0 18px;display:flex;align-items:center;gap:8px;
    background:linear-gradient(180deg,#f7f8fb,#f2f3f7);color:#171722;
  }
  .ys-m-shield{width:18px;height:18px;color:#8fd2b4;display:flex;align-items:center;flex:0 0 18px;}
  .ys-m-shield svg{width:18px;height:18px;}
  .ys-m-titlebar b{font-size:18px;font-weight:700;letter-spacing:.3px;}
  .ys-m-refresh{margin-left:auto;width:34px;height:34px;display:flex;align-items:center;justify-content:center;color:#8f94a3;text-decoration:none;}
  .ys-m-refresh svg{width:20px;height:20px;}

  .ys-m-searchrow{
    display:flex;align-items:center;gap:12px;padding:2px 16px 18px;
    background:linear-gradient(160deg,#6f9dfb 0%,#5b8dfa 52%,#4d83f8 100%);
  }
  .ys-m-search{
    flex:1;min-width:0;height:48px;border-radius:24px;background:#fff;
    display:flex;align-items:center;gap:10px;padding:0 18px;
    box-shadow:0 4px 14px rgba(38,84,190,.12);
  }
  .ys-m-search svg{width:19px;height:19px;color:#aeb6c8;flex:0 0 19px;}
  .ys-m-search input{flex:1;min-width:0;border:0;outline:0;background:transparent;font-size:15px;color:#333a4a;}
  .ys-m-search input::placeholder{color:#b5bdcc;}
  .ys-m-user{
    width:32px;height:44px;flex:0 0 32px;color:#fff;text-decoration:none;
    display:flex;align-items:center;justify-content:center;
  }
  .ys-m-user svg{width:26px;height:26px;}

  .ys-m-banner{
    position:relative;margin:16px 16px 0;height:202px;border-radius:18px;overflow:hidden;
    background:#7ea6fb;box-shadow:0 6px 18px rgba(74,113,203,.14);
  }
  .ys-m-banner img{width:100%;height:100%;object-fit:cover;display:block;}
  .ys-m-banner-copy{position:absolute;inset:0;padding:24px 22px;color:#fff;}
  .ys-m-banner-copy small{display:block;font-size:12px;letter-spacing:.5px;color:rgba(255,255,255,.95);font-weight:700;text-shadow:0 1px 5px rgba(48,83,178,.45);}
  .ys-m-banner-copy h2{
    margin:7px 0 0;font-size:27px;line-height:1.15;font-weight:900;font-style:italic;
    letter-spacing:.5px;text-shadow:0 3px 10px rgba(50,85,190,.3);
  }
  .ys-m-banner-copy p{margin:8px 0 0;font-size:13px;color:rgba(255,255,255,.88);font-weight:600;letter-spacing:.2px;}
  .ys-m-banner-copy a{
    display:inline-flex;align-items:center;justify-content:center;margin-top:11px;height:30px;padding:0 16px;
    border-radius:15px;background:rgba(255,255,255,.86);color:#4169d8;font-size:12px;font-weight:800;text-decoration:none;
    box-shadow:0 4px 12px rgba(30,70,180,.12);
  }
  .ys-m-banner-copy em{
    position:absolute;right:22px;bottom:28px;font-style:italic;font-size:21px;font-weight:900;
    color:#fff;text-shadow:0 3px 10px rgba(40,75,170,.35);letter-spacing:1px;opacity:.96;
  }
  .ys-m-dots{position:absolute;left:50%;bottom:11px;transform:translateX(-50%);display:flex;gap:5px;}
  .ys-m-dots i{width:12px;height:3px;border-radius:2px;background:rgba(255,255,255,.5);}
  .ys-m-dots i.on{background:#fff;width:16px;}

  .ys-m-notice{
    display:none !important;margin:12px 16px 0;height:54px;border-radius:16px;background:#fff;
    display:flex;align-items:center;gap:12px;padding:0 8px 0 7px;overflow:hidden;
    box-shadow:0 4px 14px rgba(29,43,80,.05);
  }
  .ys-m-notice>span{
    flex:0 0 auto;width:46px;height:29px;border-radius:15px;background:#3f7cf5;color:#fff;
    display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:700;letter-spacing:1px;
  }
  .ys-m-notice>div{flex:1;min-width:0;font-size:15px;color:#303038;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.6;}
  .ys-m-notice-toggle{
    flex:0 0 auto;width:28px;height:28px;border:0;border-radius:50%;background:#f2f5fb;color:#7f8ba5;
    display:flex;align-items:center;justify-content:center;padding:0;cursor:pointer;
  }
  .ys-m-notice-toggle svg{width:14px;height:14px;transition:transform .25s;}
  .ys-m-notice.open{height:auto;align-items:flex-start;padding-top:9px;padding-bottom:9px;}
  .ys-m-notice.open>span{margin-top:1px;}
  .ys-m-notice.open>div{white-space:normal;max-height:128px;overflow-y:auto;font-size:14px;}
  .ys-m-notice.open .ys-m-notice-toggle svg{transform:rotate(180deg);}

  .ys-m-shop{display:flex;align-items:flex-start;margin-top:12px;background:#fff;}
  .ys-m-cats{
    flex:0 0 106px;width:106px;background:#fff;position:sticky;top:0;z-index:20;
    max-height:100vh;overflow-y:auto;padding-bottom:10px;border-right:1px solid #f1f1f4;
    scrollbar-width:none;align-self:flex-start;
  }
  .ys-m-cats::-webkit-scrollbar{display:none;}
  .ys-m-cats a{
    position:relative;display:flex;align-items:center;min-height:64px;padding:10px 12px;
    color:#555560;font-size:15px;text-decoration:none;line-height:1.3;
  }
  .ys-m-cats a:first-child{font-weight:700;color:#2f333d;margin-top:2px;}
  .ys-m-cats a.on{color:#3f7cf5;font-weight:700;background:#fff;}
  .ys-m-cats a.on:first-child{color:#3f7cf5;}
  .ys-m-cats a.on::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:#3f7cf5;}
  .ys-m-list{flex:1;min-width:0;background:#fff;}

  .ys-m-item{
    position:relative;display:flex;align-items:center;gap:10px;padding:6px 10px;
    border-bottom:1px solid #f0f0f3;text-decoration:none;background:#fff;
  }
  .ys-m-thumb{width:64px;height:64px;flex:0 0 64px;border-radius:6px;overflow:hidden;background:#f5f6f9;}
  .ys-m-thumb img{width:100%;height:100%;object-fit:cover;display:block;}
  .ys-m-info{flex:1;min-width:0;padding-right:34px;display:flex;flex-direction:column;}
  .ys-m-info h3{
    margin:0;font-size:14px;line-height:1.25;font-weight:700;color:#26262b;
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
  }
  .ys-m-stock{margin-top:2px;font-size:12px;color:#a0a0aa;line-height:1.3;}
  .ys-m-price{margin-top:2px;padding-top:0;color:#ff6a12;font-size:18px;font-weight:900;line-height:1.1;letter-spacing:-.3px;}
  .ys-m-price i{font-style:normal;font-size:13px;font-weight:800;margin-right:1px;}
  .ys-m-buy{
    position:absolute;right:10px;bottom:8px;width:29px;height:29px;border-radius:50%;
    background:linear-gradient(135deg,#ff914d,#ff6a12);color:#fff;
    display:flex;align-items:center;justify-content:center;pointer-events:none;
    box-shadow:0 5px 12px rgba(255,106,18,.28);
  }
  .ys-m-buy svg{width:17px;height:17px;}
  .ys-m-empty{padding:60px 12px;text-align:center;color:#9a9aa5;font-size:14px;}

  .ys-m-nav{
    position:fixed;left:0;right:0;bottom:0;z-index:98;height:calc(60px + env(safe-area-inset-bottom,0px));
    padding-bottom:env(safe-area-inset-bottom,0px);background:#fff;border-top:1px solid #ececf0;
    display:flex;align-items:center;box-shadow:0 -4px 16px rgba(25,35,60,.04);
  }
  .ys-m-nav a{
    flex:1;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;
    color:#8f929e;text-decoration:none;font-size:12px;
  }
  .ys-m-nav svg{width:22px;height:22px;}
  .ys-m-nav em{font-style:normal;line-height:1.2;}
  .ys-m-nav a.on{color:#3f7cf5;font-weight:700;}

  body.page-home .cs-widget{bottom:calc(76px + env(safe-area-inset-bottom,0px)) !important;}
  body.page-home .cs-fab{width:46px;height:46px;box-shadow:0 8px 20px rgba(47,111,224,.28);}
  body.page-home .cs-fab svg{width:22px;height:22px;}
}
