@charset "utf-8";
/* =====================================================================
   昇辉远达 · 家居日用 —— 前台骨架样式（shy 命名空间，独立于旧 app.css）
   版式：固定搜索胶囊顶栏 + 金刚区五宫格 + 横向特惠带 + 品类楼层
   ===================================================================== */

:root {
    --shy-ink: #1c2a26;
    --shy-deep: #134f45;
    --shy-deep2: #0d3a33;
    --shy-clay: #b4633a;
    --shy-sand: #f4efe6;
    --shy-line: #e2ded5;
    --shy-gray: #6d7268;
}

html { -webkit-text-size-adjust: 100%; }
body.shy-body {
    margin: 0;
    padding: 0;
    max-width: none;
    width: 100%;
    min-height: 100vh;
    background: var(--shy-sand);
    color: var(--shy-ink);
    font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    font-size: 14px;
    line-height: 1.6;
}
body.shy-body a { color: inherit; text-decoration: none; }
body.shy-body img { display: block; max-width: 100%; }

/* ---------- 顶栏：站名 + 搜索胶囊 + 支付标识 ---------- */
.shy-top {
    position: sticky; top: 0; z-index: 60;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid var(--shy-line);
    backdrop-filter: saturate(1.2) blur(6px);
}
.shy-top-in {
    max-width: 1220px; margin: 0 auto;
    display: flex; align-items: center; gap: 14px;
    padding: 10px 16px;
}
.shy-brand { display: flex; flex-direction: column; line-height: 1.2; flex: 0 0 auto; }
.shy-brand b { font-size: 17px; letter-spacing: .5px; color: var(--shy-deep2); }
.shy-brand span { font-size: 11px; color: var(--shy-gray); letter-spacing: 2px; }
.shy-cap {
    flex: 1 1 auto; display: flex; align-items: center; gap: 8px;
    background: #f2f0ea; border: 1px solid var(--shy-line);
    border-radius: 999px; padding: 7px 16px; max-width: 520px;
}
.shy-cap i { font-style: normal; color: var(--shy-gray); font-size: 13px; }
.shy-cap input {
    flex: 1; border: 0; outline: 0; background: transparent;
    font-size: 13px; color: var(--shy-ink);
}
.shy-paytag {
    display: inline-flex; align-items: center; gap: 5px;
    background: #1677ff; color: #fff; border-radius: 4px;
    font-size: 11px; padding: 4px 8px; white-space: nowrap; flex: 0 0 auto;
}
.shy-paytag em {
    font-style: normal; width: 15px; height: 15px; line-height: 15px;
    text-align: center; background: #fff; color: #1677ff;
    border-radius: 50%; font-size: 10px; font-weight: 700;
}

/* ---------- 分类带（吸顶横滑） ---------- */
.shy-strip { background: var(--shy-deep); color: #e7f2ee; }
.shy-strip-in {
    max-width: 1220px; margin: 0 auto;
    display: flex; gap: 20px; overflow-x: auto;
    padding: 0 16px; font-size: 13px; line-height: 44px;
    scrollbar-width: none;
}
.shy-strip-in::-webkit-scrollbar { display: none; }
.shy-strip-in a { white-space: nowrap; opacity: .82; }
.shy-strip-in a.on { opacity: 1; font-weight: 700; border-bottom: 2px solid #f2c79c; }

/* ---------- 通用容器 ---------- */
.shy-shell { max-width: 1220px; margin: 0 auto; padding: 0 16px; }
.shy-sec { margin: 26px 0; }
.shy-sec-h { display: flex; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.shy-sec-h h2 { font-size: 20px; margin: 0; color: var(--shy-deep2); letter-spacing: .5px; }
.shy-sec-h em {
    font-style: normal; font-size: 12px; color: var(--shy-gray);
    border-left: 2px solid var(--shy-clay); padding-left: 10px;
}
.shy-sec-h a { margin-left: auto; font-size: 12px; color: var(--shy-gray); }

/* ---------- 刊头 ---------- */
.shy-mast {
    background: linear-gradient(180deg, #fbf8f2, var(--shy-sand));
    border-bottom: 1px solid var(--shy-line);
}
.shy-mast-in { max-width: 1220px; margin: 0 auto; padding: 26px 16px 22px; }
.shy-mast h1 { font-size: 27px; margin: 0 0 8px; letter-spacing: 1px; color: var(--shy-deep2); }
.shy-mast p { margin: 0; color: var(--shy-gray); font-size: 13px; max-width: 760px; }
.shy-mast .shy-keys { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.shy-mast .shy-keys span {
    font-size: 12px; color: var(--shy-deep); background: #fff;
    border: 1px solid var(--shy-line); border-radius: 3px; padding: 3px 10px;
}

/* ---------- 金刚区五宫格 ---------- */
.shy-king { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.shy-king a {
    background: #fff; border: 1px solid var(--shy-line); border-radius: 10px;
    padding: 16px 10px; text-align: center; transition: transform .15s, box-shadow .15s;
}
.shy-king a:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(19, 79, 69, .1); }
.shy-king .d {
    width: 42px; height: 42px; line-height: 42px; margin: 0 auto 8px;
    border-radius: 50%; background: var(--shy-deep); color: #fff; font-size: 17px;
}
.shy-king b { display: block; font-size: 14px; color: var(--shy-deep2); }
.shy-king span { font-size: 11px; color: var(--shy-gray); }

/* ---------- 横向特惠带 ---------- */
.shy-rail { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.shy-rail .p {
    flex: 0 0 168px; background: #fff; border: 1px solid var(--shy-line);
    border-radius: 10px; overflow: hidden;
}
.shy-rail .p img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #eee; }
.shy-rail .p .t {
    padding: 8px 10px 12px; font-size: 12px; line-height: 1.4;
    height: 56px; overflow: hidden; color: #3c463f;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.shy-rail .p .m { padding: 0 10px 12px; display: flex; align-items: baseline; gap: 6px; }
.shy-rail .p .m b { color: var(--shy-clay); font-size: 16px; }
.shy-rail .p .m b i { font-style: normal; font-size: 11px; margin-right: 1px; }
.shy-rail .p .m s { color: #a9aca3; font-size: 11px; }

/* ---------- 品类楼层 ---------- */
.shy-floor { background: #fff; border: 1px solid var(--shy-line); border-radius: 12px; overflow: hidden; margin-bottom: 18px; }
.shy-floor-h {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 18px; border-bottom: 1px solid var(--shy-line);
    background: #fdfcf9;
}
.shy-floor-h b { font-size: 16px; color: var(--shy-deep2); }
.shy-floor-h i {
    font-style: normal; font-size: 11px; color: #fff; background: var(--shy-clay);
    border-radius: 2px; padding: 1px 6px;
}
.shy-floor-h span { margin-left: auto; font-size: 12px; color: var(--shy-gray); }
.shy-floor-g { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--shy-line); }
.shy-floor-g .p { background: #fff; padding: 12px; display: block; }
.shy-floor-g .p img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 6px; background: #eee; }
.shy-floor-g .p .t {
    font-size: 12px; line-height: 1.45; margin-top: 8px; height: 35px; overflow: hidden;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
}
.shy-floor-g .p .m { margin-top: 6px; display: flex; align-items: baseline; gap: 6px; }
.shy-floor-g .p .m b { color: var(--shy-clay); font-size: 15px; }
.shy-floor-g .p .m b i { font-style: normal; font-size: 10px; }
.shy-floor-g .p .m s { color: #a9aca3; font-size: 11px; }
.shy-floor-g .p .m em { margin-left: auto; font-style: normal; font-size: 11px; color: var(--shy-gray); }

/* ---------- 服务承诺条 ---------- */
.shy-promise { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.shy-promise div {
    background: #fff; border: 1px solid var(--shy-line); border-radius: 8px;
    padding: 14px; font-size: 12px; color: var(--shy-gray);
}
.shy-promise b { display: block; font-size: 14px; color: var(--shy-deep2); margin-bottom: 2px; }

/* ---------- 楼层导语 / 选购指南长文 ---------- */
.shy-lead {
    margin: -4px 0 12px; padding: 10px 12px; background: #fff;
    border-left: 3px solid var(--shy-clay); border-radius: 0 6px 6px 0;
    font-size: 13px; line-height: 1.85; color: #5d6560;
}
.shy-guide { background: #fff; border: 1px solid var(--shy-line); border-radius: 10px; padding: 20px 22px; }
.shy-guide h3 { margin: 0 0 8px; font-size: 15px; color: var(--shy-deep2); }
.shy-guide p { margin: 0 0 16px; font-size: 13px; line-height: 2; color: #5d6560; }
.shy-guide p:last-child { margin-bottom: 0; }

/* ---------- 分类页 ---------- */
.shy-cate-nav { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 6px; }
.shy-cate-nav a {
    background: #fff; border: 1px solid var(--shy-line); border-radius: 999px;
    padding: 6px 16px; font-size: 13px; color: var(--shy-deep);
}
.shy-cate-nav a.on { background: var(--shy-deep); border-color: var(--shy-deep); color: #fff; }
.shy-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.shy-list .p { background: #fff; border: 1px solid var(--shy-line); border-radius: 10px; overflow: hidden; }
.shy-list .p img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #eee; }
.shy-list .p .t { font-size: 13px; line-height: 1.45; padding: 9px 10px 0; color: #3c463f; min-height: 46px; }
.shy-list .p .m { padding: 6px 10px 12px; display: flex; align-items: baseline; gap: 6px; }
.shy-list .p .m b { color: var(--shy-clay); font-size: 16px; }
.shy-list .p .m b i { font-style: normal; font-size: 11px; }
.shy-list .p .m s { font-size: 11px; color: #a9aca3; }
.shy-list .p .m em { margin-left: auto; font-style: normal; font-size: 11px; color: var(--shy-gray); }

/* ---------- 商品详情（上下式） ---------- */
.shy-gallery { background: #0f1513; }
.shy-gallery-in { max-width: 760px; margin: 0 auto; position: relative; }
.shy-gallery .swiper { background: #0f1513; }
.shy-gallery .swiper .swiper-slide img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.shy-gallery .swiper .counter {
    position: absolute; right: 14px; bottom: 14px; background: rgba(0,0,0,.55);
    color: #fff; font-size: 12px; border-radius: 12px; padding: 2px 10px; pointer-events: none;
}
.shy-gallery .swiper .arrow-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 32px; height: 32px; line-height: 30px; text-align: center;
    background: rgba(255,255,255,.18); color: #fff; border-radius: 50%;
    font-size: 15px; cursor: pointer;
}
.shy-gallery .swiper .arrow-btn.prev { left: 10px; }
.shy-gallery .swiper .arrow-btn.next { right: 10px; }
.shy-gallery .swiper .dots {
    position: absolute; left: 0; right: 0; bottom: 12px; display: flex;
    justify-content: center; gap: 6px; pointer-events: none;
}
.shy-gallery .swiper .dots i {
    width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.4);
}
.shy-gallery .swiper .dots i.on { background: #fff; width: 15px; border-radius: 3px; }
.shy-thumbs { display: flex; gap: 8px; max-width: 760px; margin: 10px auto 0; padding: 0 16px; }
.shy-thumbs img { width: 76px; height: 76px; object-fit: cover; border-radius: 6px; border: 2px solid transparent; }
.shy-thumbs img.on { border-color: #f2c79c; }

.shy-buy { max-width: 760px; margin: -22px auto 0; padding: 0 16px; position: relative; }
.shy-pricecard {
    background: var(--shy-deep2); color: #fff; border-radius: 12px;
    padding: 16px 18px; display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap;
}
.shy-pricecard .p { font-size: 30px; font-weight: 700; color: #f7d3a8; line-height: 1; }
.shy-pricecard .p i { font-style: normal; font-size: 15px; margin-right: 2px; }
.shy-pricecard s { font-size: 12px; color: #9fbdb4; }
.shy-pricecard .tag {
    background: #f7d3a8; color: var(--shy-deep2); font-size: 11px;
    border-radius: 3px; padding: 2px 7px; font-weight: 700;
}
.shy-pricecard .meta { margin-left: auto; font-size: 12px; color: #b7cec7; }
.shy-h1 { max-width: 760px; margin: 16px auto 0; padding: 0 16px; }
.shy-h1 h1 { font-size: 19px; line-height: 1.45; margin: 0 0 6px; color: var(--shy-ink); }
.shy-h1 .sub { font-size: 12px; color: var(--shy-gray); }
.shy-block { max-width: 760px; margin: 14px auto 0; padding: 0 16px; }
.shy-card {
    background: #fff; border: 1px solid var(--shy-line); border-radius: 10px;
    padding: 14px 16px; margin-bottom: 12px;
}
.shy-card h3 { font-size: 15px; margin: 0 0 8px; color: var(--shy-deep2); }
.shy-card .row {
    display: flex; align-items: center; gap: 10px; padding: 9px 0;
    border-bottom: 1px dashed var(--shy-line); font-size: 13px;
}
.shy-card .row:last-child { border-bottom: 0; }
.shy-card .row span:first-child { color: var(--shy-gray); width: 70px; flex: 0 0 auto; }
.shy-card .row .val { color: var(--shy-ink); }
.shy-desc { font-size: 14px; line-height: 1.85; color: #333b34; }
.shy-desc p { margin: 0 0 10px; }
.shy-serv { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.shy-serv div { background: #fff; border: 1px solid var(--shy-line); border-radius: 8px; padding: 12px; font-size: 12px; color: var(--shy-gray); }
.shy-serv b { display: block; color: var(--shy-deep2); font-size: 13px; }

/* 详情页底部操作条 */
.shy-act {
    position: sticky; bottom: 0; z-index: 70;
    background: #fff; border-top: 1px solid var(--shy-line);
}
.shy-act-in { max-width: 760px; margin: 0 auto; display: flex; align-items: center; gap: 10px; padding: 10px 16px; }
.shy-act .ic { text-align: center; font-size: 11px; color: var(--shy-gray); width: 46px; }
.shy-act .ic b { display: block; font-size: 17px; font-weight: 400; }
.shy-act .to-cart, .shy-act .to-buy {
    flex: 1; border: 0; border-radius: 999px; padding: 12px; font-size: 15px; cursor: pointer;
}
.shy-act .to-cart { background: #d9e5e0; color: var(--shy-deep2); }
.shy-act .to-buy { background: var(--shy-clay); color: #fff; }

/* 规格弹层（沿用 js 接口 id） */
.shy-mask { position: fixed; inset: 0; background: rgba(0,0,0,.45); display: none; z-index: 98; }
.shy-panel {
    position: fixed; left: 0; right: 0; bottom: 0; max-width: 760px; margin: 0 auto;
    background: #fff; border-radius: 14px 14px 0 0; padding: 16px; display: none;
    z-index: 99; max-height: 74vh; overflow: auto;
}
.shy-panel .close { text-align: right; cursor: pointer; color: var(--shy-gray); }
.shy-panel .spec-item {
    display: inline-block; border: 1px solid var(--shy-deep); color: var(--shy-deep);
    border-radius: 999px; padding: 6px 14px; font-size: 13px; margin: 4px 8px 4px 0; cursor: pointer;
}
.shy-panel .spec-item.on { background: var(--shy-deep); color: #fff; }
.shy-panel .num-ctrl { display: inline-flex; align-items: center; gap: 12px; }
.shy-panel .num-ctrl button { width: 30px; height: 30px; border: 1px solid var(--shy-line); background: #fff; border-radius: 6px; }

/* ---------- 内容页 ---------- */
.shy-doc { background: #fff; border: 1px solid var(--shy-line); border-radius: 12px; padding: 26px 30px; margin: 22px 0 30px; }
.shy-doc h1 { font-size: 22px; margin: 0 0 6px; color: var(--shy-deep2); }
.shy-doc .upd { font-size: 12px; color: var(--shy-gray); margin-bottom: 18px; }
.shy-doc h2 { font-size: 16px; margin: 22px 0 8px; color: var(--shy-deep2); }
.shy-doc p { margin: 0 0 12px; color: #37403a; font-size: 14px; line-height: 1.9; }
.shy-doc ul { margin: 0 0 12px; padding-left: 20px; color: #37403a; font-size: 14px; line-height: 1.9; }
.shy-doc .k { background: #f7f4ec; border-left: 3px solid var(--shy-clay); padding: 10px 14px; font-size: 13px; color: #4a5248; margin: 0 0 16px; }

/* ---------- 空态 / 404 ---------- */
.shy-empty { text-align: center; padding: 60px 16px; color: var(--shy-gray); }
.shy-empty b { display: block; font-size: 40px; color: var(--shy-deep); letter-spacing: 3px; margin-bottom: 10px; }
.shy-empty a { display: inline-block; margin-top: 16px; background: var(--shy-deep); color: #fff; border-radius: 999px; padding: 9px 22px; font-size: 13px; }

/* ---------- 页脚五件套 ---------- */
.shy-foot { background: #12211d; color: #b9c7c1; margin-top: 40px; }
.shy-foot-in {
    max-width: 1220px; margin: 0 auto; padding: 30px 16px 34px;
    display: grid; grid-template-columns: 1.1fr 1fr .8fr; gap: 26px;
}
.shy-foot b.n { display: block; font-size: 16px; color: #eef4f1; margin-bottom: 10px; }
.shy-foot p { margin: 0 0 6px; font-size: 12px; line-height: 1.8; }
.shy-foot a { color: #b9c7c1; }
.shy-foot .links { display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: 12px; }
.shy-foot .pay { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.shy-foot .pay span {
    background: #1677ff; color: #fff; border-radius: 4px;
    font-size: 11px; padding: 4px 9px; display: inline-flex; align-items: center; gap: 5px;
}
.shy-foot .pay span em {
    font-style: normal; width: 14px; height: 14px; line-height: 14px;
    text-align: center; background: #fff; color: #1677ff; border-radius: 50%;
    font-size: 10px; font-weight: 700;
}
.shy-foot .note { margin-top: 10px; font-size: 11px; color: #7f8f89; }
.shy-cr { border-top: 1px solid #26352f; }
.shy-cr p {
    max-width: 1220px; margin: 0 auto; padding: 12px 16px;
    font-size: 11px; color: #7f8f89;
}

/* ---------- 移动端 ---------- */
@media (max-width: 900px) {
    .shy-brand span { display: none; }
    .shy-brand b { font-size: 15px; }
    .shy-top-in { gap: 8px; padding: 8px 12px; }
    .shy-cap { padding: 6px 12px; min-width: 0; }
    .shy-cap input { min-width: 0; width: 100%; }
    .shy-paytag { padding: 3px 6px; font-size: 10px; }
    .shy-mast-in { padding: 18px 16px 16px; }
    .shy-mast h1 { font-size: 20px; }
    .shy-king { grid-template-columns: repeat(5, 1fr); gap: 6px; }
    .shy-king a { padding: 10px 4px; border-radius: 8px; }
    .shy-king .d { width: 32px; height: 32px; line-height: 32px; font-size: 14px; }
    .shy-king b { font-size: 12px; }
    .shy-king span { font-size: 10px; }
    .shy-floor-g { grid-template-columns: repeat(2, 1fr); }
    .shy-list { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .shy-promise { grid-template-columns: repeat(2, 1fr); }
    .shy-foot-in { grid-template-columns: 1fr; gap: 18px; padding: 24px 16px 28px; }
    .shy-doc { padding: 20px 18px; }
    .shy-rail .p { flex: 0 0 140px; }
    .shy-serv { grid-template-columns: 1fr; }
    .shy-pricecard .meta { margin-left: 0; width: 100%; }
}
