/* ==========================================================================
   家装案例页：年度色彩 / 灵感色盘 / 空间案例 / 配色色卡 / 色彩科普
   ========================================================================== */

body.cases-page{
    background:
        radial-gradient(820px 420px at 88% -6%,rgba(167,184,161,.20),transparent 62%),
        radial-gradient(700px 380px at 4% 2%,rgba(247,148,29,.09),transparent 60%),
        var(--cream);
}

/* ---------------- 页头 ---------------- */
.page-title-big{
    font-size:26px;
    font-weight:700;
    color:var(--ink);
    margin-bottom:8px;
    padding-left:14px;
    border-left:5px solid var(--brand);
    line-height:1.4;
}
/* 只作用于正文副标题，避免影响顶栏里的同名 class */
.main-content > .page-title-sub{
    font-size:13.5px;
    color:var(--ink-2);
    margin-bottom:26px;
    padding-left:15px;
}

/* ---------------- 年度色彩主卡片 ---------------- */
.coy-hero{
    background:
        radial-gradient(120% 130% at 88% 0%,rgba(255,255,255,.75),transparent 55%),
        linear-gradient(135deg,#A7B8A1 0%,#C6D2BE 52%,#E7E9DC 100%);
    border-radius:26px;
    padding:44px 44px 40px;
    margin-bottom:30px;
    color:#2F3B2F;
    position:relative;
    overflow:hidden;
    box-shadow:var(--shadow);
}
.coy-hero::after{
    content:"";
    position:absolute;
    right:-70px;
    bottom:-90px;
    width:280px;
    height:280px;
    border-radius:50%;
    border:1px solid rgba(47,59,47,.10);
    background:radial-gradient(circle,rgba(255,255,255,.5),transparent 70%);
}
.coy-hero-badge{
    display:inline-block;
    background:var(--brand);
    color:#fff;
    font-size:12px;
    font-weight:600;
    letter-spacing:1px;
    padding:5px 15px;
    border-radius:var(--r-pill);
    margin-bottom:16px;
    box-shadow:0 6px 16px rgba(247,148,29,.28);
}
.coy-hero h2{
    font-size:clamp(34px,5vw,54px);
    font-weight:800;
    margin:0 0 8px;
    letter-spacing:4px;
    line-height:1.15;
    color:#28331F;
}
.coy-hero-slogan{
    font-size:18px;
    font-weight:600;
    margin:0 0 14px;
    color:#3D4A38;
    letter-spacing:2px;
}
.coy-hero-desc{
    font-size:14.5px;
    line-height:2;
    max-width:660px;
    margin:0 0 20px;
    color:#3F4A3A;
    position:relative;
    z-index:1;
}
.coy-swatch{
    display:inline-flex;
    align-items:center;
    gap:6px;
    background:rgba(255,255,255,.82);
    border:1px solid rgba(0,0,0,.06);
    padding:8px 16px;
    border-radius:var(--r-pill);
    font-size:13px;
    color:#3A4A38;
    position:relative;
    z-index:1;
}
.coy-swatch b{ color:var(--brand-dark); }

/* ---------------- 板块标题 ---------------- */
.main-content > .section-title::before{
    content:none;
    display:none;
}
.section-title{
    font-size:21px;
    font-weight:700;
    color:var(--ink);
    margin:38px 0 18px;
    padding-left:14px;
    border-left:5px solid var(--brand);
    line-height:1.4;
    display:flex;
    align-items:center;
    gap:10px;
}

/* ---------------- 灵感色盘 ---------------- */
.palette-grid{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:18px;
}
.palette-item{
    border-radius:var(--r-lg);
    overflow:hidden;
    border:1px solid var(--line);
    background:#fff;
    box-shadow:var(--shadow-sm);
    transition:transform .28s var(--ease), box-shadow .28s var(--ease);
}
.palette-item:hover{
    transform:translateY(-5px);
    box-shadow:var(--shadow);
}
.palette-item img{
    width:100%;
    height:200px;
    object-fit:cover;
    display:block;
    transition:transform .6s var(--ease);
}
.palette-item:hover img{ transform:scale(1.04); }
.palette-cap{
    padding:12px 14px;
    font-size:13px;
    color:var(--ink-2);
    text-align:center;
    line-height:1.6;
}

/* ---------------- 空间案例 ---------------- */
.case-card{
    display:flex;
    gap:24px;
    align-items:center;
    background:#fff;
    border:1px solid var(--line);
    border-radius:var(--r-lg);
    padding:18px;
    margin-bottom:20px;
    box-shadow:var(--shadow-sm);
    transition:transform .28s var(--ease), box-shadow .28s var(--ease);
}
.case-card:hover{
    transform:translateY(-3px);
    box-shadow:var(--shadow);
}
.case-card:nth-child(even){
    flex-direction:row-reverse;
}
.case-card-img{
    flex:0 0 46%;
}
.case-card-img img{
    width:100%;
    height:240px;
    object-fit:cover;
    border-radius:var(--r-md);
    display:block;
}
.case-card-body{
    flex:1;
    min-width:0;
}
.case-card-body h4{
    font-size:19px;
    font-weight:700;
    color:var(--ink);
    margin:0 0 8px;
    line-height:1.45;
}
.case-space{
    font-size:12px;
    color:var(--brand-dark);
    background:var(--brand-soft);
    display:inline-block;
    padding:3px 12px;
    border-radius:var(--r-pill);
    margin-bottom:10px;
    font-weight:500;
}
.case-card-body p{
    font-size:14px;
    color:var(--ink-2);
    line-height:1.95;
    margin:0 0 14px;
}
.case-colors{
    font-size:13px;
    color:var(--ink-2);
}
.case-colors span{
    display:inline-block;
    margin:4px 8px 0 0;
    padding:5px 12px;
    border-radius:var(--r-pill);
    border:1px solid var(--line);
    background:var(--cream);
    white-space:nowrap;
}

/* ---------------- 配色色卡 ---------------- */
.swatch-row{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:16px;
    margin-bottom:8px;
}
.swatch-card{
    border-radius:var(--r-md);
    overflow:hidden;
    border:1px solid var(--line);
    background:#fff;
    box-shadow:var(--shadow-sm);
    transition:transform .25s var(--ease);
}
.swatch-card:hover{ transform:translateY(-4px); }
.swatch-color{
    height:96px;
}
.swatch-body{
    padding:12px 14px;
}
.swatch-body b{
    display:block;
    font-size:15px;
    color:var(--ink);
    margin-bottom:3px;
}
.swatch-body span{
    font-size:12.5px;
    color:var(--ink-3);
}

/* ---------------- 色彩科普 ---------------- */
.eco-card{
    background:linear-gradient(180deg,var(--green-soft),#F7F4EC);
    border-radius:var(--r-lg);
    padding:24px 26px;
    border-left:4px solid var(--green);
    margin-bottom:26px;
}
.eco-card p{
    font-size:14px;
    color:#525B4C;
    line-height:2.05;
    margin:0;
}

/* ---------------- 更多色彩按钮 ---------------- */
.more-dulux{
    text-align:center;
    margin:30px 0 10px;
}
.more-dulux a{
    display:inline-flex;
    align-items:center;
    gap:8px;
    background:var(--brand);
    color:#fff;
    padding:13px 36px;
    border-radius:var(--r-pill);
    font-size:15px;
    font-weight:600;
    text-decoration:none;
    transition:.22s var(--ease);
    box-shadow:0 10px 24px rgba(247,148,29,.28);
}
.more-dulux a:hover{
    background:var(--brand-dark);
    transform:translateY(-2px);
}

/* ==========================================================================
   平板
   ========================================================================== */
@media (max-width:1024px){
    .coy-hero{ padding:34px 30px 32px; }
    .palette-item img{ height:170px; }
    .case-card-img img{ height:210px; }
}

/* ==========================================================================
   手机端
   ========================================================================== */
@media (max-width:900px){
    .page-title-big{ font-size:21px; padding-left:11px; border-left-width:4px; }
    .page-title-sub{ font-size:12.5px; margin-bottom:18px; padding-left:12px; }

    .coy-hero{ padding:26px 20px 26px; border-radius:var(--r-md); margin-bottom:20px; }
    .coy-hero h2{ font-size:34px; letter-spacing:3px; }
    .coy-hero-slogan{ font-size:15px; margin-bottom:10px; }
    .coy-hero-desc{ font-size:13px; line-height:1.95; margin-bottom:16px; }
    .coy-swatch{ font-size:12px; padding:7px 13px; }

    .section-title{ font-size:17px; margin:26px 0 14px; padding-left:11px; border-left-width:4px; }

    .palette-grid{ grid-template-columns:repeat(2,1fr); gap:10px; }
    .palette-item{ border-radius:var(--r-md); }
    .palette-item img{ height:auto; aspect-ratio:4/3; }
    .palette-cap{ padding:9px 10px; font-size:12px; }

    .case-card{
        flex-direction:column;
        gap:14px;
        padding:12px;
        border-radius:var(--r-md);
        margin-bottom:14px;
    }
    .case-card:nth-child(even){ flex-direction:column; }
    .case-card-img{ flex:none; width:100%; }
    .case-card-img img{ height:auto; aspect-ratio:4/3; border-radius:var(--r-sm); }
    .case-card-body h4{ font-size:16px; }
    .case-card-body p{ font-size:13px; line-height:1.85; }
    .case-colors span{ font-size:11.5px; padding:4px 10px; }

    .swatch-row{ grid-template-columns:repeat(2,1fr); gap:10px; }
    .swatch-color{ height:74px; }
    .swatch-body{ padding:10px 12px; }
    .swatch-body b{ font-size:14px; }
    .swatch-body span{ font-size:11.5px; }

    .eco-card{ padding:18px; border-radius:var(--r-md); }
    .eco-card p{ font-size:13px; line-height:1.95; }
    .more-dulux a{ padding:12px 26px; font-size:14px; }
}
