/* ============================================================
   案例详情页 - 两栏图文 + 侧边栏
   风格：布艺配饰风 · 缝线分割 · 编号章节
   ============================================================ */

/* ---------- 详情 Banner（精简大图） ---------- */
.case-hero {
    position: relative;
    margin-top: 78px;            /* 避开固定 header */
    height: 460px;
    overflow: hidden;
}
.case-hero > img {
    width: 100%; height: 100%;
    object-fit: cover;
}
/* 渐变蒙层确保标题可读 */
.case-hero::before {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(to top, rgba(61,57,52,.88) 0%, rgba(61,57,52,.25) 55%, rgba(61,57,52,.15) 100%);
}
.ch-inner {
    position: absolute; left: 0; right: 0; bottom: 48px; z-index: 2;
}
.ch-tag {
    background: rgba(250,245,238,.92);
    margin-bottom: 18px;
}
.case-hero h1 {
    color: var(--cream);
    margin-bottom: 12px;
    text-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.ch-sub {
    color: rgba(250,245,238,.88);
    font-size: 1.05rem;
    max-width: 580px;
}
/* 右下角布艺色块装饰 */
.ch-rect {
    position: absolute; right: 6%; bottom: -28px; z-index: 3;
    width: 64px; height: 64px; border-radius: 14px;
    background: linear-gradient(135deg, var(--lotus), var(--sage));
    box-shadow: var(--shadow);
    border: 4px solid var(--cream);
}

/* ---------- 面包屑 ---------- */
.case-crumb {
    padding: 24px 0;
    border-bottom: 1px dashed var(--line);
    background: var(--cream);
}
.case-crumb ul {
    display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
    font-size: .88rem; color: var(--ink-mute);
}
.case-crumb a:hover { color: var(--lotus-deep); }
.case-crumb .sep { color: var(--line); }
.case-crumb .cur { color: var(--ink); font-weight: 500; }

/* ---------- 主体两栏 ---------- */
.case-body {
    padding: 60px 0 70px;
}
.case-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 50px;
    align-items: start;
}

/* ===== 左侧主内容 ===== */
.case-main { min-width: 0; }
.section-block {
    margin-bottom: 52px;
}
.section-block:last-child { margin-bottom: 0; }

/* 章节标题：编号 + 缝线 */
.sb-head {
    display: flex; align-items: center; gap: 16px; margin-bottom: 22px;
}
.sb-num {
    font-family: var(--f-serif); font-size: 1.3rem; color: var(--lotus-deep);
    font-weight: 600; width: 46px; height: 46px; border-radius: 50%;
    background: var(--lotus-soft); display: grid; place-items: center;
    flex-shrink: 0; border: 2px dashed var(--lotus);
}
.sb-head h2 {
    font-size: 1.45rem; margin: 0; white-space: nowrap;
}
.sb-line {
    flex: 1; height: 1px;
    background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 16px);
}

.case-main p {
    font-size: 1rem; line-height: 1.95; margin-bottom: 16px;
}

/* 内嵌图片（带布艺标签说明） */
.inline-pic {
    margin: 26px 0; border-radius: var(--radius); overflow: hidden;
    box-shadow: var(--shadow-sm); background: var(--white);
}
.inline-pic img { width: 100%; display: block; }
.inline-pic .cap {
    padding: 11px 18px; background: var(--cream-2); font-size: .84rem;
    color: var(--ink-mute); border-top: 1px dashed var(--line);
    position: relative; padding-left: 32px;
}
.inline-pic .cap::before {
    content: "▸"; position: absolute; left: 14px; color: var(--lotus-deep);
}

/* 双图并列 */
.pic-pair {
    display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 26px 0;
}
.pic-pair .inline-pic { margin: 0; }

/* 上线效果数据网格 */
.effect-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
    margin-top: 24px;
}
.ef-item {
    text-align: center; padding: 24px 12px;
    background: var(--cream-2); border-radius: var(--radius);
    border: 1px solid var(--line);
}
.ef-num {
    font-family: var(--f-serif); font-size: 2rem; color: var(--lotus-deep);
    font-weight: 600; line-height: 1;
}
.ef-num span {
    font-size: 1rem; color: var(--ink-soft); margin-left: 2px;
}
.ef-lbl {
    font-size: .82rem; color: var(--ink-mute); margin-top: 10px;
}

/* ===== 右侧边栏 ===== */
.case-side {
    position: sticky; top: 96px;   /* 滚动时吸附 */
}
.side-card {
    background: var(--white); border-radius: var(--radius); padding: 26px 24px;
    border: 1px solid var(--line); box-shadow: var(--shadow-sm);
    margin-bottom: 22px;
}
.side-card h4 {
    font-size: 1.08rem; margin-bottom: 18px; padding-bottom: 14px;
    border-bottom: 1px dashed var(--line);
    display: flex; align-items: center; gap: 10px;
}
.side-card h4 .ic {
    width: 30px; height: 30px; border-radius: 8px; background: var(--lotus-soft);
    display: grid; place-items: center; color: var(--lotus-deep); flex-shrink: 0;
}
.side-card h4 .ic svg { width: 17px; height: 17px; }

/* 项目信息列表 */
.info-list li {
    display: flex; justify-content: space-between; gap: 14px;
    padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: .92rem;
}
.info-list li:last-child { border-bottom: none; padding-bottom: 0; }
.info-list .k { color: var(--ink-mute); flex-shrink: 0; }
.info-list .v { color: var(--ink); text-align: right; font-weight: 500; }
.info-list .v a { color: var(--lotus-deep); }
.info-list .v a:hover { text-decoration: underline; }

/* 相关案例列表 */
.rel-list a {
    display: flex; gap: 12px; padding: 12px 0;
    border-bottom: 1px dashed var(--line);
    transition: padding-left .3s;
}
.rel-list a:last-child { border-bottom: none; padding-bottom: 0; }
.rel-list a:hover { padding-left: 6px; }
.rel-list .rp {
    width: 80px; height: 64px; border-radius: 8px; overflow: hidden; flex-shrink: 0;
}
.rel-list .rp img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.rel-list a:hover .rp img { transform: scale(1.08); }
.rel-list .rt { flex: 1; min-width: 0; }
.rel-list .rt h5 {
    font-size: .95rem; margin-bottom: 4px; color: var(--ink);
    font-family: var(--f-serif); font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rel-list a:hover .rt h5 { color: var(--lotus-deep); }
.rel-list .rt span { font-size: .8rem; color: var(--ink-mute); }

/* 联系咨询卡 */
.contact-card {
    background: linear-gradient(135deg, var(--lotus-soft), var(--sage-soft));
    border: none; text-align: center;
}
.contact-card .cc-ic {
    width: 56px; height: 56px; border-radius: 50%; background: var(--white);
    display: grid; place-items: center; margin: 0 auto 16px; box-shadow: var(--shadow-sm);
    color: var(--lotus-deep);
}
.contact-card .cc-ic svg { width: 26px; height: 26px; }
.contact-card p { font-size: .92rem; margin-bottom: 12px; color: var(--ink-soft); }
.contact-card .phone-big {
    font-family: var(--f-serif); font-size: 1.55rem; color: var(--lotus-deep);
    font-weight: 600; display: block; margin-bottom: 18px; letter-spacing: 1px;
}

/* ---------- 上一案例 / 下一案例 ---------- */
.case-pager {
    border-top: 1px dashed var(--line);
    padding: 40px 0 60px;
}
.case-pager .wrap {
    display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.pager-link {
    display: flex; align-items: center; gap: 16px; padding: 20px 26px;
    background: var(--white); border-radius: var(--radius); border: 1px solid var(--line);
    transition: all .35s; flex: 1; min-width: 240px;
    box-shadow: var(--shadow-sm);
}
.pager-link:hover {
    background: var(--lotus-soft); border-color: var(--lotus);
    box-shadow: var(--shadow);
}
.pager-link.prev:hover { transform: translateX(-6px); }
.pager-link.next:hover { transform: translateX(6px); }
.pager-link .arrow {
    font-size: 1.4rem; color: var(--lotus-deep); font-weight: 600;
}
.pager-link .pl-txt { display: flex; flex-direction: column; gap: 2px; }
.pager-link .pl-dir {
    font-size: .76rem; color: var(--ink-mute); letter-spacing: 2px;
}
.pager-link .pl-title {
    font-size: .98rem; color: var(--ink); font-weight: 500;
    font-family: var(--f-serif);
}
.pager-link.next { text-align: right; justify-content: flex-end; }
.pager-link.next .pl-txt { align-items: flex-end; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
    .case-layout { grid-template-columns: 1fr; }
    .case-side { position: static; }
    .effect-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
    .case-hero { height: 380px; margin-top: 72px; }
    .ch-inner { bottom: 36px; }
    .case-hero h1 { font-size: 1.8rem; }
}
@media (max-width: 560px) {
    .case-hero { height: 320px; }
    .case-hero h1 { font-size: 1.5rem; }
    .ch-sub { font-size: .92rem; }
    .ch-rect { width: 48px; height: 48px; }
    .sb-head h2 { font-size: 1.2rem; white-space: normal; }
    .sb-num { width: 40px; height: 40px; font-size: 1.1rem; }
    .pic-pair { grid-template-columns: 1fr; }
    .effect-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .ef-num { font-size: 1.6rem; }
    .case-body { padding: 40px 0 50px; }
    .pager-link { min-width: 100%; }
    .pager-link .pl-title { font-size: .9rem; }
    .case-pager .wrap { flex-direction: column; }
}
