@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@600;700&family=Poppins:wght@500;600;700&display=swap');
:root{
  --ms255-primary:#b59984;
  --ms255-primary-d:#8d7767;
  --ms255-dark:#060307;
  --ms255-accent:#a6856b;
  --ms255-bg:#dcd5cb;
  --ms255-soft:#d9d1c6;
  --ms255-text:#1f2733;
  --ms255-muted:#6b7585;
  --ms255-line:#c6c0b7;
  --ms255-radius:14px;
  --ms255-radius-sm:10px;
  --ms255-shadow:0 8px 30px rgba(20,30,60,.08);
  --ms255-shadow-h:0 16px 44px rgba(20,30,60,.16);
  --ms255-fh:'Poppins', 'Inter', sans-serif;
  --ms255-fb:'Inter', -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
}
body.theme-ms255{font-family:var(--ms255-fb);color:var(--ms255-text);background:var(--ms255-bg);line-height:1.65;}
body.theme-ms255 h1,body.theme-ms255 h2,body.theme-ms255 h3,body.theme-ms255 h4{font-family:var(--ms255-fh);color:var(--ms255-dark);font-weight:700;line-height:1.22;letter-spacing:-.01em;}
body.theme-ms255 a{color:inherit;text-decoration:none;}
body.theme-ms255 img{max-width:100%;}
body.theme-ms255 .wrap{max-width:1480px;margin:0 auto;padding:0 18px;}
/* 宽屏：外壳 main 不再二次限宽（各 section 内部自带 .wrap），banner 才能通栏 */
body.theme-ms255 main.wrap{max-width:none;padding:0;}

/* 公共外壳主题化 */
body.theme-ms255 .fw-topbar{background:var(--ms255-dark);color:#e8edf4;border-bottom:0;}
body.theme-ms255 .fw-topbar a{color:#cdd6e3;}
body.theme-ms255 .fw-topbar a:hover{color:#fff;}
body.theme-ms255 .site-header{background:#fff;border-bottom:2px solid var(--ms255-primary);box-shadow:0 2px 14px rgba(20,30,60,.05);}
body.theme-ms255 .site-header .logo{color:var(--ms255-dark);font-family:var(--ms255-fh);font-weight:700;font-size:22px;}
body.theme-ms255 .nav-lk{color:var(--ms255-dark);}
body.theme-ms255 .nav-lk:hover,body.theme-ms255 .nav-item.on>.nav-lk{color:var(--ms255-primary);}
body.theme-ms255 .nav-sub{background:#fff;box-shadow:var(--ms255-shadow);}
body.theme-ms255 .site-footer{background:var(--ms255-dark);color:#c2ccda;}
body.theme-ms255 .site-footer h4{color:#fff;}
body.theme-ms255 .site-footer a{color:#c2ccda;}
body.theme-ms255 .site-footer a:hover{color:#fff;}
body.theme-ms255 .fw-fbottom{border-top:1px solid rgba(255,255,255,.12);}

/* 通用按钮 */
.ms255-btn{display:inline-flex;align-items:center;gap:8px;padding:12px 22px;border-radius:var(--ms255-radius-sm);font-weight:600;font-size:15px;cursor:pointer;border:1.5px solid transparent;transition:.18s;font-family:var(--ms255-fb);}
.ms255-btn-primary{background:var(--ms255-primary);color:#fff;}
.ms255-btn-primary:hover{background:var(--ms255-primary-d);box-shadow:var(--ms255-shadow-h);transform:translateY(-1px);}
.ms255-btn-outline{background:transparent;color:var(--ms255-primary);border-color:var(--ms255-primary);}
.ms255-btn-outline:hover{background:var(--ms255-primary);color:#fff;}
.ms255-btn-ghost{background:#fff;color:var(--ms255-dark);border-color:var(--ms255-line);}
.ms255-btn-ghost:hover{border-color:var(--ms255-primary);color:var(--ms255-primary);}

/* Hero —— 通栏宽屏 banner（对齐 bshop：全宽 460px，内容 1480px 居中） */
.ms255-hero{position:relative;overflow:hidden;height:460px;background:linear-gradient(120deg,var(--ms255-dark),var(--ms255-primary-d));background-size:cover;background-position:center;color:#fff;}
.ms255-hero::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(6,3,7,.86),rgba(6,3,7,.42));pointer-events:none;}
.ms255-hero .ms255-wrap{position:relative;z-index:1;width:100%;max-width:1480px;height:100%;margin:0 auto;padding:0 18px;display:flex;align-items:center;}
.ms255-hero-copy{max-width:760px;}
.ms255-hero h1{color:#fff;font-size:clamp(34px,4vw,56px);margin:0 0 14px;text-shadow:0 2px 14px rgba(0,0,0,.42);}
.ms255-hero p{font-size:18px;color:rgba(255,255,255,.9);margin:0 0 26px;max-width:60ch;text-shadow:0 1px 8px rgba(0,0,0,.4);}
.ms255-hero .ms255-btn-primary{border-radius:999px;}
.ms255-hero-dots{position:absolute;bottom:18px;left:50%;transform:translateX(-50%);display:flex;gap:8px;}
.ms255-hero-dots i{width:9px;height:9px;border-radius:50%;background:rgba(255,255,255,.4);display:block;}
.ms255-hero-dots i.on{background:#fff;}

/* 区块 */
.ms255-section{padding:64px 0;}
.ms255-section.ms255-alt{background:var(--ms255-soft);}
.ms255-sec-head{margin:0 0 34px;text-align:center;}
.ms255-sec-head h2{font-size:clamp(24px,3vw,34px);margin:0 0 8px;}
.ms255-sec-head p{color:var(--ms255-muted);margin:0;}
.ms255-sec-head.ms255-row{display:flex;align-items:flex-end;justify-content:space-between;text-align:left;}
.ms255-seeall{color:var(--ms255-primary);font-weight:600;font-size:14px;white-space:nowrap;}

/* 分类网格 */
.ms255-cat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;}
.ms255-cat{display:block;background:#fff;border:1px solid var(--ms255-line);border-radius:var(--ms255-radius);overflow:hidden;transition:.18s;text-align:center;}
.ms255-cat:hover{box-shadow:var(--ms255-shadow);transform:translateY(-3px);border-color:var(--ms255-primary);}
.ms255-cat-img{display:block;aspect-ratio:1/1;background:var(--ms255-soft);}
.ms255-cat-img img{width:100%;height:100%;object-fit:cover;}
.ms255-cat-ph{display:flex;align-items:center;justify-content:center;height:100%;color:var(--ms255-muted);font-weight:600;padding:14px;}
.ms255-cat-name{display:block;padding:12px;font-weight:600;color:var(--ms255-dark);}

/* 产品网格 */
.ms255-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:22px;}
.ms255-pcard{background:#fff;border:1px solid var(--ms255-line);border-radius:var(--ms255-radius);overflow:hidden;transition:.18s;display:flex;flex-direction:column;}
.ms255-pcard:hover{box-shadow:var(--ms255-shadow);transform:translateY(-4px);}
.ms255-pcard-img{position:relative;aspect-ratio:1/1;background:var(--ms255-soft);overflow:hidden;}
.ms255-pcard-img img{width:100%;height:100%;object-fit:cover;transition:.3s;}
.ms255-pcard:hover .ms255-pcard-img img{transform:scale(1.05);}
.ms255-noimg{display:flex;align-items:center;justify-content:center;height:100%;color:var(--ms255-muted);font-weight:600;padding:14px;text-align:center;}
.ms255-tag{position:absolute;top:10px;left:10px;background:var(--ms255-primary);color:#fff;font-size:11px;font-weight:700;padding:3px 8px;border-radius:6px;}
.ms255-tag.accent{background:var(--ms255-accent);}
.ms255-pcard-body{padding:14px 16px 18px;display:flex;flex-direction:column;gap:8px;flex:1;}
.ms255-pcard-body h3{font-size:16px;margin:0;color:var(--ms255-dark);}
.ms255-pcard-price{color:var(--ms255-primary);font-weight:700;margin:0;}
.ms255-pcard-acts{margin-top:auto;display:flex;gap:8px;flex-wrap:wrap;}
.ms255-pcard-acts a{flex:1;text-align:center;font-size:13px;padding:8px 10px;border-radius:8px;}

/* 关于 / 信任 */
.ms255-about-inner{display:grid;grid-template-columns:1fr 1fr;gap:40px;align-items:center;}
.ms255-about-img img{border-radius:var(--ms255-radius);width:100%;}
.ms255-eyebrow{display:inline-block;color:var(--ms255-primary);font-weight:700;letter-spacing:.08em;text-transform:uppercase;font-size:13px;margin-bottom:10px;}
.ms255-trust-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:18px;align-items:center;}
.ms255-trust-item{display:flex;flex-direction:column;align-items:center;gap:8px;color:var(--ms255-muted);font-size:14px;text-align:center;}
.ms255-trust-item img{max-height:46px;width:auto;}

/* CTA */
.ms255-cta{background:linear-gradient(120deg,var(--ms255-primary),var(--ms255-primary-d));color:#fff;text-align:center;padding:64px 18px;}
.ms255-cta h2{color:#fff;margin:0 0 12px;}
.ms255-cta p{color:rgba(255,255,255,.9);margin:0 0 24px;}
.ms255-cta-btns{display:flex;gap:14px;justify-content:center;flex-wrap:wrap;}
.ms255-cta .ms255-btn-outline{color:#fff;border-color:#fff;}
.ms255-cta .ms255-btn-outline:hover{background:#fff;color:var(--ms255-primary);}

/* 产品列表页 */
.ms255-prod-layout{display:grid;grid-template-columns:240px 1fr;gap:30px;padding:40px 0;align-items:start;}
.ms255-prod-side{position:sticky;top:90px;background:#fff;border:1px solid var(--ms255-line);border-radius:var(--ms255-radius);padding:18px;}
.ms255-side-title{font-size:16px;margin:0 0 12px;color:var(--ms255-dark);}
.ms255-cat-filter{list-style:none;margin:0 0 12px;padding:0;}
.ms255-cat-filter li>a{display:block;padding:9px 12px;border-radius:8px;color:var(--ms255-text);font-size:14px;transition:background .16s,color .16s,transform .16s;}
.ms255-cat-filter li>a:hover{background:var(--ms255-soft);color:var(--ms255-primary);transform:translateX(2px);}
.ms255-cat-filter li.on>a{background:var(--ms255-primary);color:#fff;font-weight:600;}
/* 分类树：层级线 + hover 反馈 + 子级默认收起 / 当前类目自动展开 */
.ms255-cat-tree{list-style:none;margin:0;padding:0;}
.ms255-cat-tree .ms255-cat-tree{display:none;margin:2px 0 6px 14px;padding:0 0 0 10px;border-left:1px solid var(--ms255-line);}
.ms255-cat-node.open>.ms255-cat-tree{display:block;}
.ms255-cat-row{display:flex;align-items:center;gap:2px;border-radius:8px;transition:background .16s;}
.ms255-cat-row:hover{background:var(--ms255-soft);}
.ms255-cat-label{flex:1;min-width:0;display:block;padding:8px 10px;border-radius:8px;color:var(--ms255-text);font-size:14px;line-height:1.35;transition:color .16s,transform .16s;}
.ms255-cat-label:hover{color:var(--ms255-primary);transform:translateX(2px);}
.ms255-cat-node.ancestor>.ms255-cat-row>.ms255-cat-label{font-weight:600;color:var(--ms255-dark);}
.ms255-cat-node.on>.ms255-cat-row>.ms255-cat-label{background:var(--ms255-primary);color:#fff;font-weight:600;}
.ms255-cat-node.on>.ms255-cat-row:hover>.ms255-cat-label{background:var(--ms255-primary-d);}
.ms255-cat-toggle{flex:none;width:24px;height:28px;margin-right:4px;display:flex;align-items:center;justify-content:center;border:0;background:transparent;color:var(--ms255-muted);cursor:pointer;border-radius:6px;}
.ms255-cat-toggle:hover{background:rgba(181,153,132,.22);color:var(--ms255-primary-d);}
.ms255-cat-toggle i{display:block;width:6px;height:6px;border-right:1.6px solid currentColor;border-bottom:1.6px solid currentColor;transform:rotate(-45deg);transition:transform .18s;}
.ms255-cat-node.open>.ms255-cat-row>.ms255-cat-toggle i{transform:rotate(45deg);}
.ms255-cat-tree .ms255-cat-tree .ms255-cat-label{font-size:13px;color:var(--ms255-muted);padding:7px 8px;}
.ms255-cat-tree .ms255-cat-tree .ms255-cat-node.on>.ms255-cat-row>.ms255-cat-label{color:#fff;}
.ms255-view-toggle{display:flex;gap:8px;margin-bottom:18px;}
.ms255-view-toggle a{padding:8px 16px;border:1px solid var(--ms255-line);border-radius:8px;font-size:14px;color:var(--ms255-muted);}
.ms255-view-toggle a.on{background:var(--ms255-primary);color:#fff;border-color:var(--ms255-primary);}
.ms255-list-view{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:16px;}
.ms255-list-view li{display:grid;grid-template-columns:160px 1fr auto;gap:18px;background:#fff;border:1px solid var(--ms255-line);border-radius:var(--ms255-radius);padding:16px;align-items:center;}
.ms255-lv-thumb{display:block;aspect-ratio:1/1;background:var(--ms255-soft);border-radius:10px;overflow:hidden;}
.ms255-lv-thumb img{width:100%;height:100%;object-fit:cover;}
.ms255-lv-name{font-size:17px;font-weight:600;color:var(--ms255-dark);}
.ms255-lv-cat{color:var(--ms255-muted);font-size:13px;margin:4px 0;}
.ms255-lv-desc{color:var(--ms255-muted);font-size:14px;margin:6px 0;}
.ms255-lv-acts{display:flex;flex-direction:column;gap:8px;}

/* 产品详情 */
.ms255-pd-layout{display:grid;grid-template-columns:240px 1fr;gap:30px;padding:36px 0;align-items:start;}
.ms255-pd-body{background:#fff;border:1px solid var(--ms255-line);border-radius:var(--ms255-radius);padding:28px;}
.ms255-pd-top{display:grid;grid-template-columns:1fr 1fr;gap:30px;}
.ms255-pd-gallery{display:flex;flex-direction:column;gap:10px;}
.ms255-pd-main-img{aspect-ratio:1/1;background:var(--ms255-soft);border-radius:var(--ms255-radius);overflow:hidden;}
.ms255-pd-main-img img{width:100%;height:100%;object-fit:cover;}
.ms255-pd-thumbs{display:flex;gap:8px;}
.ms255-pd-thumbs span{width:56px;height:56px;border-radius:8px;background:var(--ms255-soft);border:1px solid var(--ms255-line);}
.ms255-pd-title{font-size:26px;margin:0 0 6px;color:var(--ms255-dark);}
.ms255-pd-cat{color:var(--ms255-muted);margin:0 0 14px;}
.ms255-pd-price{font-size:24px;font-weight:700;color:var(--ms255-primary);margin:0 0 16px;}
.ms255-pd-desc{color:var(--ms255-text);line-height:1.7;}
.ms255-pd-attrs{width:100%;border-collapse:collapse;margin-top:18px;}
.ms255-pd-attrs th,.ms255-pd-attrs td{border:1px solid var(--ms255-line);padding:8px 12px;text-align:left;font-size:14px;}
.ms255-pd-attrs th{background:var(--ms255-soft);color:var(--ms255-dark);width:34%;}
.ms255-pd-buy{display:flex;gap:12px;align-items:center;margin-top:22px;flex-wrap:wrap;}
.ms255-pd-related{margin-top:40px;}
.ms255-pd-rel-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;}
/* 详情页左侧浮动分类手柄（共享层组件）：跟随模板主色，hover/展开加深 */
body.theme-ms255 .pd-float-handle{background:var(--ms255-primary);}
body.theme-ms255 .pd-float-handle:hover,body.theme-ms255 .pd-float-handle.open{background:var(--ms255-primary-d);}

/* 博客 / 新闻 */
.ms255-cat-filter-row{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 28px;}
.ms255-cat-filter-row a{padding:7px 16px;border:1px solid var(--ms255-line);border-radius:999px;font-size:14px;color:var(--ms255-muted);}
.ms255-cat-filter-row a.on{background:var(--ms255-primary);color:#fff;border-color:var(--ms255-primary);}
.ms255-tag-cloud{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:0 0 24px;color:var(--ms255-muted);font-size:14px;}
.ms255-tag-cloud .tag{padding:5px 12px;border:1px solid var(--ms255-line);border-radius:999px;}
.ms255-tag-cloud .tag.on{background:var(--ms255-accent);color:#fff;border-color:var(--ms255-accent);}
.ms255-blog-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;}
.ms255-post{background:#fff;border:1px solid var(--ms255-line);border-radius:var(--ms255-radius);overflow:hidden;transition:.18s;display:flex;flex-direction:column;}
.ms255-post:hover{box-shadow:var(--ms255-shadow);transform:translateY(-3px);}
.ms255-post-cover{aspect-ratio:16/9;background:var(--ms255-soft);overflow:hidden;}
.ms255-post-cover img{width:100%;height:100%;object-fit:cover;}
.ms255-post-body{padding:18px;display:flex;flex-direction:column;gap:8px;flex:1;}
.ms255-post-meta{color:var(--ms255-muted);font-size:13px;display:flex;gap:10px;flex-wrap:wrap;}
.ms255-post h3{font-size:18px;margin:0;color:var(--ms255-dark);}
.ms255-post-excerpt{color:var(--ms255-muted);font-size:14px;margin:0;flex:1;}
.ms255-post a.more{color:var(--ms255-primary);font-weight:600;font-size:14px;}

/* 博客详情 */
.ms255-article{max-width:820px;margin:0 auto;padding:40px 18px;}
.ms255-article h1{font-size:clamp(26px,3.4vw,38px);margin:0 0 14px;}
.ms255-article .meta{color:var(--ms255-muted);font-size:14px;display:flex;gap:12px;flex-wrap:wrap;margin-bottom:18px;}
.ms255-article .excerpt{font-size:18px;color:var(--ms255-text);margin:0 0 18px;}
.ms255-article .cover{width:100%;border-radius:var(--ms255-radius);margin:0 0 22px;}
.ms255-article .content{line-height:1.8;color:var(--ms255-text);}
.ms255-article .content img{max-width:100%;border-radius:10px;margin:14px 0;}

.ms255-empty{text-align:center;color:var(--ms255-muted);padding:40px 0;}

/* 响应式 */
@media(max-width:980px){
  .ms255-about-inner,.ms255-pd-top{grid-template-columns:1fr;}
  .ms255-cat-grid,.ms255-grid,.ms255-pd-rel-grid,.ms255-blog-grid{grid-template-columns:repeat(2,1fr);}
  .ms255-trust-grid{grid-template-columns:repeat(3,1fr);}
  .ms255-prod-layout,.ms255-pd-layout{grid-template-columns:1fr;}
  .ms255-prod-side,.ms255-pd-side{position:static;}
  .ms255-list-view li{grid-template-columns:120px 1fr;}
  .ms255-list-view .ms255-lv-acts{grid-column:1/-1;flex-direction:row;}
}
@media(max-width:768px){
  .ms255-hero{height:300px;background-position:center;}
  .ms255-hero h1{font-size:28px;text-shadow:0 2px 10px rgba(0,0,0,.5);}
  .ms255-hero p{font-size:15px;line-height:1.5;margin-bottom:18px;}
}
@media(max-width:560px){
  .ms255-cat-grid,.ms255-grid,.ms255-pd-rel-grid,.ms255-blog-grid,.ms255-trust-grid{grid-template-columns:1fr;}
  .ms255-list-view li{grid-template-columns:1fr;}
}


/* 2026-12-01 热修：产品详情页改用共享图库 + 右栏规格/购买 + 下方参数/相关产品（aivo.hk / md11 布局） */
body.theme-ms255 .md11-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 2px solid transparent; cursor: pointer; transition: .2s; white-space: nowrap;
}
body.theme-ms255 .md11-btn.sm { padding: 9px 18px; font-size: 14px; }
body.theme-ms255 .md11-btn-primary { background: var(--ms255-primary); color: #fff; box-shadow: 0 8px 22px rgba(181,153,132,.32); }
body.theme-ms255 .md11-btn-primary:hover { background: var(--ms255-primary-d); transform: translateY(-1px); }
body.theme-ms255 .md11-btn-outline { background: #fff; color: var(--ms255-dark); border-color: var(--ms255-line); }
body.theme-ms255 .md11-btn-outline:hover { border-color: var(--ms255-primary); color: var(--ms255-primary); }

/* ---------- 产品网格 ---------- */
body.theme-ms255 .md11-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px;
}
body.theme-ms255 .md11-pcard {
  display: block; background: #fff; border: 1px solid var(--ms255-line); border-radius: var(--ms255-radius);
  overflow: hidden; transition: .22s; position: relative;
}
body.theme-ms255 .md11-pcard:hover { transform: translateY(-6px); box-shadow: var(--ms255-shadow-h); border-color: #d9c7b8; }
body.theme-ms255 .md11-pcard-img {
  position: relative; aspect-ratio: 1 / 1; background: var(--ms255-soft);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
body.theme-ms255 .md11-pcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
body.theme-ms255 .md11-pcard:hover .md11-pcard-img img { transform: scale(1.06); }
body.theme-ms255 .md11-noimg { color: var(--ms255-muted); font-size: 14px; padding: 12px; text-align: center; }
body.theme-ms255 .md11-pcard-body { padding: 16px 16px 18px; }
body.theme-ms255 .md11-pcard-body h3 {
  font-size: 15px; font-weight: 600; color: var(--ms255-dark); margin: 0 0 8px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 40px;
}
body.theme-ms255 .md11-pcard-price { color: var(--ms255-primary); font-weight: 700; font-size: 17px; margin: 0; }
body.theme-ms255 .md11-tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; color: #fff; letter-spacing: .03em;
}
body.theme-ms255 .md11-tag-hot { background: var(--ms255-accent); }
body.theme-ms255 .md11-tag-new { background: var(--ms255-primary); }
body.theme-ms255 .md11-section.md11-sec-soft { background: var(--ms255-soft); }

body.theme-ms255 .md11-prod-wrap { padding: 40px 0 56px; }
body.theme-ms255 .md11-prod-layout { display: grid; grid-template-columns: 250px 1fr; gap: 36px; align-items: start; }
body.theme-ms255 .md11-prod-side {
  position: sticky; top: 90px; background: var(--ms255-soft); border: 1px solid var(--ms255-line);
  border-radius: var(--ms255-radius); padding: 22px 18px;
}
body.theme-ms255 .md11-side-title { font-size: 17px; margin: 0 0 16px; }
body.theme-ms255 .md11-cat-filter { list-style: none; margin: 0 0 14px; padding: 0 0 14px; border-bottom: 1px solid var(--ms255-line); }
body.theme-ms255 .md11-cat-filter a { display: block; padding: 8px 10px; border-radius: 8px; font-weight: 600; color: var(--ms255-dark); }
body.theme-ms255 .md11-cat-filter li.on a, body.theme-ms255 .md11-cat-filter a:hover { background: #fff; color: var(--ms255-primary); }
body.theme-ms255 .md11-cat-tree { list-style: none; margin: 0; padding: 0; }
body.theme-ms255 .md11-cat-tree .md11-cat-tree { padding-left: 14px; }
body.theme-ms255 .md11-cat-node { position: relative; }
body.theme-ms255 .md11-cat-node > a {
  display: block; padding: 8px 10px; border-radius: 8px; color: var(--ms255-text); font-size: 14px;
}
body.theme-ms255 .md11-cat-node > a:hover { background: #fff; color: var(--ms255-primary); }
body.theme-ms255 .md11-cat-node.on > a { color: var(--ms255-primary); font-weight: 700; background: #fff; }
body.theme-ms255 .md11-cat-toggle {
  position: absolute; right: 6px; top: 8px; width: 22px; height: 22px; cursor: pointer; border: 0;
  background: transparent; display: none;
}
body.theme-ms255 .md11-cat-node.has-child > .md11-cat-toggle { display: block; }
body.theme-ms255 .md11-cat-toggle::before { content: "+"; font-size: 18px; color: var(--ms255-muted); line-height: 1; }
body.theme-ms255 .md11-cat-node.open > .md11-cat-toggle::before { content: "\2013"; }
body.theme-ms255 .md11-cat-node:not(.open) > .md11-cat-tree { display: none; }

body.theme-ms255 .md11-prod-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
body.theme-ms255 .md11-prod-count { color: var(--ms255-muted); font-size: 14px; }
body.theme-ms255 .md11-view-toggle { display: flex; gap: 6px; }
body.theme-ms255 .md11-view-toggle a {
  width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--ms255-line); border-radius: 10px; color: var(--ms255-muted); background: #fff;
}
body.theme-ms255 .md11-view-toggle a.on { color: var(--ms255-primary); border-color: var(--ms255-primary); background: #f3eee8; }
body.theme-ms255 .md11-empty { color: var(--ms255-muted); padding: 40px 0; text-align: center; }

/* 列表视图 */
body.theme-ms255 .md11-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
body.theme-ms255 .md11-list-item {
  display: grid; grid-template-columns: 150px 1fr auto; gap: 20px; align-items: center;
  background: #fff; border: 1px solid var(--ms255-line); border-radius: var(--ms255-radius); padding: 16px; transition: .2s;
}
body.theme-ms255 .md11-list-item:hover { box-shadow: var(--ms255-shadow); border-color: #d9c7b8; }
body.theme-ms255 .md11-li-thumb { width: 150px; height: 150px; border-radius: 10px; overflow: hidden; background: var(--ms255-soft); flex: 0 0 auto; }
body.theme-ms255 .md11-li-thumb img { width: 100%; height: 100%; object-fit: cover; }
body.theme-ms255 .md11-li-name { font-size: 17px; font-weight: 700; color: var(--ms255-dark); }
body.theme-ms255 .md11-li-cat { color: var(--ms255-primary); font-size: 13px; font-weight: 600; margin: 4px 0; }
body.theme-ms255 .md11-li-desc { color: var(--ms255-muted); font-size: 14px; margin: 6px 0; }
body.theme-ms255 .md11-li-acts { display: flex; flex-direction: column; gap: 8px; }

/* ---------- 产品详情 ---------- */
body.theme-ms255 .md11-detail-layout { grid-template-columns: 250px 1fr; }
body.theme-ms255 .md11-product { background: #fff; }
body.theme-ms255 .md11-pd-main { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
body.theme-ms255 .md11-dp-head { grid-column: 1 / -1; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
body.theme-ms255 .md11-dp-title h1 { font-size: clamp(22px, 2.6vw, 30px); margin: 0 0 6px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
body.theme-ms255 .md11-dp-cat { color: var(--ms255-primary); font-weight: 600; margin: 0; }
body.theme-ms255 .md11-dp-tools { display: flex; gap: 8px; flex-wrap: wrap; }
body.theme-ms255 .md11-dp-tools-variants { margin: 16px 0 2px; }
body.theme-ms255 .md11-dp-tools-head:empty { display: none; }
body.theme-ms255 .md11-dp-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 10px;
  border: 1px solid var(--ms255-line); background: #fff; color: var(--ms255-dark); font-size: 14px; font-weight: 600; cursor: pointer; transition: .18s;
}
body.theme-ms255 .md11-dp-btn:hover { border-color: var(--ms255-primary); color: var(--ms255-primary); }
body.theme-ms255 .md11-dp-price { font-size: 28px; font-weight: 800; color: var(--ms255-primary); margin: 18px 0 0; grid-column: 1 / -1; }
body.theme-ms255 .md11-dp-tools + .md11-dp-price { margin-top: 6px; }
body.theme-ms255 .md11-content { grid-column: 1 / -1; color: var(--ms255-text); font-size: 15px; line-height: 1.8; margin-top: 8px; }
body.theme-ms255 .md11-content img { max-width: 100%; border-radius: 10px; }
body.theme-ms255 .md11-content h1, body.theme-ms255 .md11-content h2, body.theme-ms255 .md11-content h3 { margin: 18px 0 10px; }

body.theme-ms255 .md11-variants { grid-column: 1 / -1; margin-top: 10px; }
body.theme-ms255 .md11-variants h3 { font-size: 17px; margin: 0 0 12px; }
body.theme-ms255 .md11-vrow { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
body.theme-ms255 .md11-vlab { font-weight: 600; color: var(--ms255-dark); min-width: 90px; }
body.theme-ms255 .md11-vopts { display: flex; gap: 8px; flex-wrap: wrap; }
body.theme-ms255 .md11-vopt {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px;
  border: 1px solid var(--ms255-line); background: #fff; color: var(--ms255-dark); cursor: pointer; font-size: 14px; transition: .18s;
}
body.theme-ms255 .md11-vopt.hasimg img { width: 26px; height: 26px; border-radius: 6px; object-fit: cover; }
body.theme-ms255 .md11-vopt.on, body.theme-ms255 .md11-vopt:hover { border-color: var(--ms255-primary); color: var(--ms255-primary); background: #f3eee8; }
body.theme-ms255 .md11-vinfo { color: var(--ms255-muted); font-size: 14px; margin: 6px 0 0; }

body.theme-ms255 .md11-tags { grid-column: 1 / -1; margin-top: 8px; }
body.theme-ms255 .md11-pt-label { color: var(--ms255-muted); }
body.theme-ms255 .md11-ptag { display: inline-block; margin: 0 6px 6px 0; padding: 5px 12px; background: var(--ms255-soft); border-radius: 999px; font-size: 13px; color: var(--ms255-dark); }
body.theme-ms255 .md11-ptag:hover { background: #f3eee8; color: var(--ms255-primary); }
body.theme-ms255 .md11-files { grid-column: 1 / -1; margin-top: 10px; }
body.theme-ms255 .md11-files h3 { font-size: 17px; margin: 0 0 10px; }
body.theme-ms255 .md11-file-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
body.theme-ms255 .md11-file-list a { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border: 1px solid var(--ms255-line); border-radius: 10px; color: var(--ms255-dark); }
body.theme-ms255 .md11-file-list a:hover { border-color: var(--ms255-primary); color: var(--ms255-primary); }

body.theme-ms255 .md11-buy-box { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; margin-top: 18px; flex-wrap: wrap; }
body.theme-ms255 .md11-qty { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ms255-dark); }
body.theme-ms255 .md11-qty input { width: 70px; padding: 10px; border: 1px solid var(--ms255-line); border-radius: 10px; text-align: center; }

body.theme-ms255 .md11-attrs { margin-top: 50px; }
body.theme-ms255 .md11-attrs h2 { font-size: 22px; margin: 0 0 16px; }
body.theme-ms255 .md11-attr-scroll { max-height: none; overflow: hidden; border: 1px solid var(--ms255-line); border-radius: var(--ms255-radius); }
body.theme-ms255 .md11-attr-scroll.open { max-height: 2000px; }
body.theme-ms255 .md11-attr-table { width: 100%; border-collapse: collapse; }
body.theme-ms255 .md11-attr-table th, body.theme-ms255 .md11-attr-table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--ms255-line); font-size: 14px; vertical-align: top; }
body.theme-ms255 .md11-attr-table th { width: 32%; color: var(--ms255-dark); font-weight: 600; background: var(--ms255-soft); }
body.theme-ms255 .md11-attr-table tr:last-child th, body.theme-ms255 .md11-attr-table tr:last-child td { border-bottom: 0; }
body.theme-ms255 .md11-attr-tag { color: var(--ms255-primary); }
body.theme-ms255 .md11-attr-tag:hover { text-decoration: underline; }
body.theme-ms255 .md11-attr-toggle { margin-top: 14px; padding: 10px 20px; border: 1px solid var(--ms255-line); border-radius: 999px; background: #fff; color: var(--ms255-primary); font-weight: 600; cursor: pointer; }
body.theme-ms255 .md11-attr-toggle:hover { background: #f3eee8; }

body.theme-ms255 .md11-rel-block { margin-top: 54px; }
body.theme-ms255 .md11-rel-block h2 { font-size: 22px; margin: 0 0 22px; }

/* ===== 详情页宽屏布局对齐 aivo.hk（md11 风格，主色沿用 ms255） ===== */
body.theme-ms255 .ms255-pd-wrap{padding:40px 0 56px;}
body.theme-ms255 .ms255-detail-layout{grid-template-columns:240px 1fr;gap:30px;align-items:start;}
body.theme-ms255 .ms255-pd-detail-body{background:#fff;border:1px solid var(--ms255-line);border-radius:var(--ms255-radius);padding:22px;}
body.theme-ms255 .md11-dp-title .md11-tag{position:static;display:inline-block;vertical-align:middle;padding:2px 9px;border-radius:999px;font-size:11px;}
body.theme-ms255 .md11-dp-title h1{font-size:clamp(22px,2.4vw,30px);}
body.theme-ms255 .md11-pd-media .pd-gal-main{min-height:320px;background:var(--ms255-soft);}
body.theme-ms255 .md11-pd-media .pd-gal-empty{min-height:320px;display:flex;align-items:center;justify-content:center;color:var(--ms255-muted);}
body.theme-ms255 .md11-pd-tools-media{margin-top:14px;}
@media(max-width:1024px){body.theme-ms255 .md11-pd-main{grid-template-columns:1fr;gap:24px;}}
@media(max-width:900px){body.theme-ms255 .ms255-detail-layout{grid-template-columns:1fr;}body.theme-ms255 .ms255-pd-side{position:static;}}
body.theme-ms255 .md11-pcard-img .md11-noimg{display:flex;align-items:center;justify-content:center;width:100%;height:100%;}
