/* ==========================================================================
   好好佳家居生活馆 · 全站基础样式
   风格：温暖样板间生活感（米色底 + 木质调 + 柔和圆角），保留多乐士品牌橙
   ========================================================================== */

:root{
    /* 品牌色 */
    --brand:#F7941D;
    --brand-dark:#E07B0E;
    --brand-soft:#FFF3E3;

    /* 木质 / 大地色 */
    --wood:#A87C4F;
    --wood-dark:#7C5636;
    --wood-soft:#F0E4D6;

    /* 背景与文字 */
    --cream:#FBF7F1;
    --cream-2:#F4EDE2;
    --cream-3:#EFE6D9;
    --card:#FFFFFF;
    --ink:#2E2621;
    --ink-2:#6E6156;
    --ink-3:#9C9187;
    --line:#EADFD1;

    /* 点缀 */
    --green:#7E9B72;
    --green-soft:#EDF3E9;

    /* 圆角 / 阴影 */
    --r-lg:20px;
    --r-md:14px;
    --r-sm:10px;
    --r-pill:999px;
    --shadow-sm:0 4px 14px rgba(94,66,38,.06);
    --shadow:0 12px 32px rgba(94,66,38,.10);
    --shadow-lg:0 22px 50px rgba(94,66,38,.16);

    --maxw:1240px;
    --head-h:112px;
    --dock-h:62px;
    --ease:cubic-bezier(.22,.61,.36,1);
}

*,*::before,*::after{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    -webkit-text-size-adjust:100%;
    scroll-behavior:smooth;
}

body{
    background:var(--cream);
    color:var(--ink);
    font-family:"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans SC","Source Han Sans SC",system-ui,-apple-system,"Segoe UI",sans-serif;
    font-size:16px;
    line-height:1.65;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
    overflow-x:hidden;
}

img{ max-width:100%; display:block; border:0; }
a{ color:inherit; }
button{ font-family:inherit; }
::selection{ background:rgba(247,148,29,.22); }

/* 键盘可达性 */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible{
    outline:2px solid var(--brand);
    outline-offset:3px;
    border-radius:4px;
}
.skip-link{
    position:absolute;
    left:50%;
    top:-60px;
    transform:translateX(-50%);
    z-index:2000;
    background:var(--brand);
    color:#fff;
    text-decoration:none;
    padding:10px 22px;
    border-radius:0 0 12px 12px;
    font-size:14px;
    font-weight:600;
    transition:top .2s var(--ease);
}
.skip-link:focus{ top:0; }
#main:focus{ outline:none; }

/* 通用容器 */
.wrap-max{
    max-width:var(--maxw);
    margin:0 auto;
    padding:0 28px;
}

/* ==========================================================================
   顶部：品牌区 + 搜索
   ========================================================================== */
.site-header{
    position:sticky;
    top:0;
    z-index:900;
    background:rgba(251,247,241,.94);
    -webkit-backdrop-filter:saturate(160%) blur(14px);
    backdrop-filter:saturate(160%) blur(14px);
    border-bottom:1px solid var(--line);
    transition:box-shadow .3s var(--ease);
}
.site-header.is-stuck{ box-shadow:0 6px 24px rgba(94,66,38,.08); }

.top-header{
    display:flex;
    align-items:center;
    gap:20px;
    max-width:var(--maxw);
    margin:0 auto;
    padding:14px 28px 10px;
}

.page-title{
    display:flex;
    align-items:center;
    gap:12px;
    text-decoration:none;
    color:var(--ink);
    flex:0 0 auto;
    min-width:0;
}
.top-logo{
    height:42px;
    width:auto;
    border-radius:12px;
    box-shadow:0 2px 8px rgba(94,66,38,.10);
    flex:0 0 auto;
}
.page-title-text{
    display:flex;
    flex-direction:column;
    line-height:1.25;
    font-size:15px;
    font-weight:700;
    letter-spacing:.2px;
    white-space:nowrap;
}
.page-title-text .page-title-sub{
    font-size:12px;
    font-weight:500;
    color:var(--ink-3);
    letter-spacing:.6px;
}
.site-title{
    font-size:22px;
    font-weight:700;
    color:var(--ink);
}

/* 搜索框 */
.search-box{
    display:flex;
    align-items:center;
    gap:0;
    margin-left:auto;
    background:#fff;
    border:1px solid var(--line);
    border-radius:var(--r-pill);
    padding:4px 4px 4px 16px;
    box-shadow:var(--shadow-sm);
    transition:border-color .2s var(--ease), box-shadow .2s var(--ease);
    max-width:100%;
}
.search-box:focus-within{
    border-color:var(--brand);
    box-shadow:0 0 0 4px rgba(247,148,29,.13);
}
.search-box input{
    width:210px;
    max-width:100%;
    border:none;
    outline:none;
    background:transparent;
    font-size:14px;
    color:var(--ink);
    padding:7px 0;
}
.search-box input::placeholder{ color:var(--ink-3); }
.search-box button{
    flex:0 0 auto;
    border:none;
    cursor:pointer;
    background:var(--brand);
    color:#fff;
    font-size:14px;
    font-weight:600;
    padding:8px 20px;
    border-radius:var(--r-pill);
    transition:background .2s var(--ease), transform .2s var(--ease);
}
.search-box button:hover{ background:var(--brand-dark); }
.search-box button:active{ transform:scale(.97); }

/* 移动端图标按钮 */
.icon-btn{
    display:none;
    align-items:center;
    justify-content:center;
    width:42px;
    height:42px;
    flex:0 0 auto;
    border:1px solid var(--line);
    background:#fff;
    color:var(--ink);
    border-radius:12px;
    cursor:pointer;
    box-shadow:var(--shadow-sm);
    transition:.2s var(--ease);
    padding:0;
}
.icon-btn:hover{ color:var(--brand-dark); border-color:var(--brand); }
.icon-btn svg{ width:20px; height:20px; display:block; }

/* ==========================================================================
   主导航（桌面端）
   ========================================================================== */
.main-nav{
    max-width:var(--maxw);
    margin:0 auto;
    padding:0 28px;
}
.main-nav ul{
    display:flex;
    gap:2px;
    list-style:none;
    padding:0 0 12px;
    overflow-x:auto;
    scrollbar-width:none;
}
.main-nav ul::-webkit-scrollbar{ display:none; }
.main-nav li{ flex:0 0 auto; }
.main-nav li a{
    display:block;
    padding:9px 18px;
    color:var(--ink-2);
    text-decoration:none;
    font-size:15px;
    font-weight:500;
    border-radius:var(--r-pill);
    white-space:nowrap;
    transition:.2s var(--ease);
}
.main-nav li a:hover{
    background:var(--wood-soft);
    color:var(--wood-dark);
}
.main-nav li a.active{
    background:var(--brand);
    color:#fff;
    font-weight:600;
    box-shadow:0 6px 16px rgba(247,148,29,.28);
}

/* ==========================================================================
   移动端抽屉菜单
   ========================================================================== */
.drawer-backdrop{
    position:fixed;
    inset:0;
    background:rgba(38,28,20,.45);
    -webkit-backdrop-filter:blur(2px);
    backdrop-filter:blur(2px);
    opacity:0;
    pointer-events:none;
    transition:opacity .3s var(--ease);
    z-index:1000;
}
body.drawer-open .drawer-backdrop{ opacity:1; pointer-events:auto; }

.drawer{
    position:fixed;
    top:0;
    right:0;
    bottom:0;
    width:min(84vw,340px);
    background:var(--cream);
    z-index:1001;
    transform:translateX(102%);
    transition:transform .34s var(--ease);
    display:flex;
    flex-direction:column;
    box-shadow:-18px 0 48px rgba(60,40,24,.20);
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
}
body.drawer-open .drawer{ transform:translateX(0); }

.drawer-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:18px 20px;
    border-bottom:1px solid var(--line);
    font-weight:700;
    font-size:16px;
    letter-spacing:1px;
    color:var(--ink);
    position:sticky;
    top:0;
    background:var(--cream);
    z-index:2;
}
.drawer-close{
    width:38px;
    height:38px;
    border:none;
    border-radius:50%;
    background:var(--cream-2);
    color:var(--ink-2);
    font-size:20px;
    line-height:1;
    cursor:pointer;
    display:grid;
    place-items:center;
}
.drawer-close:active{ background:var(--line); }

.drawer-nav{
    padding:10px 14px;
    display:flex;
    flex-direction:column;
    gap:2px;
}
.drawer-nav a{
    display:flex;
    align-items:center;
    gap:10px;
    padding:14px 14px;
    border-radius:var(--r-md);
    text-decoration:none;
    color:var(--ink);
    font-size:16px;
    font-weight:500;
    transition:background .2s var(--ease), color .2s var(--ease);
}
.drawer-nav a:active{ background:var(--cream-2); }
.drawer-nav a.active{
    background:var(--brand);
    color:#fff;
    font-weight:600;
}
.drawer-nav a .drawer-cn{
    font-size:11px;
    letter-spacing:1px;
    opacity:.6;
    margin-left:auto;
}
.drawer-nav a .drawer-soon{
    margin-left:auto;
    font-size:11px;
    font-weight:500;
    color:var(--wood);
    background:var(--wood-soft);
    padding:2px 8px;
    border-radius:var(--r-pill);
}

.drawer-foot{
    margin-top:auto;
    padding:18px 20px calc(22px + env(safe-area-inset-bottom));
    border-top:1px solid var(--line);
    background:linear-gradient(180deg,transparent,var(--cream-2));
}
.drawer-foot .drawer-shop{
    font-size:13px;
    color:var(--ink-2);
    line-height:1.9;
}
.drawer-foot .drawer-tel{
    display:inline-flex;
    align-items:center;
    gap:8px;
    margin-top:10px;
    font-size:19px;
    font-weight:700;
    color:var(--wood-dark);
    text-decoration:none;
    letter-spacing:.5px;
}
.drawer-foot .drawer-tel svg{ width:18px; height:18px; }

/* ==========================================================================
   移动端底部快捷栏
   ========================================================================== */
.mobile-dock{
    display:none;
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    z-index:950;
    background:rgba(255,255,255,.96);
    -webkit-backdrop-filter:blur(12px);
    backdrop-filter:blur(12px);
    border-top:1px solid var(--line);
    padding-bottom:env(safe-area-inset-bottom);
    box-shadow:0 -6px 22px rgba(94,66,38,.08);
}
.mobile-dock-inner{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    height:var(--dock-h);
}
.dock-item{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:3px;
    border:none;
    background:none;
    cursor:pointer;
    text-decoration:none;
    color:var(--ink-2);
    font-size:11px;
    font-weight:500;
    letter-spacing:.2px;
    padding:0;
    transition:color .2s var(--ease);
    -webkit-tap-highlight-color:transparent;
}
.dock-item svg{
    width:21px;
    height:21px;
    display:block;
    transition:transform .2s var(--ease);
}
.dock-item:active svg{ transform:scale(.9); }
.dock-item.is-primary{ color:var(--brand-dark); }
.dock-item.is-primary svg{ color:var(--brand); }

/* 回到顶部 */
.to-top{
    position:fixed;
    right:16px;
    bottom:28px;
    width:42px;
    height:42px;
    border:none;
    border-radius:50%;
    background:rgba(46,38,33,.82);
    color:#fff;
    display:grid;
    place-items:center;
    cursor:pointer;
    opacity:0;
    visibility:hidden;
    transform:translateY(10px);
    transition:.28s var(--ease);
    z-index:940;
    box-shadow:0 8px 20px rgba(0,0,0,.18);
    padding:0;
}
.to-top.show{ opacity:1; visibility:visible; transform:translateY(0); }
.to-top svg{ width:18px; height:18px; }

/* ==========================================================================
   通用区块 / 标题
   ========================================================================== */
.section{
    max-width:var(--maxw);
    margin:0 auto;
    padding:64px 28px;
}
.section-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    margin-bottom:28px;
}
.section-title{
    display:flex;
    align-items:center;
    gap:12px;
    font-size:26px;
    font-weight:700;
    color:var(--ink);
    letter-spacing:.5px;
    margin:0;
}
.section-title::before{
    content:"";
    width:6px;
    height:24px;
    border-radius:3px;
    background:linear-gradient(180deg,var(--brand),var(--wood));
}
.section-more{
    font-size:14px;
    font-weight:600;
    color:var(--wood-dark);
    text-decoration:none;
    white-space:nowrap;
    transition:color .2s var(--ease);
}
.section-more:hover{ color:var(--brand-dark); }

.block-title{
    font-size:22px;
    font-weight:700;
    margin-bottom:20px;
    padding-left:14px;
    border-left:4px solid var(--brand);
    line-height:1.4;
}

/* ==========================================================================
   内容布局
   ========================================================================== */
.content-wrap{
    max-width:var(--maxw);
    margin:36px auto;
    display:flex;
    gap:32px;
    padding:0 28px;
    align-items:flex-start;
}
.main-content{ flex:1 1 auto; min-width:0; }
.sidebar{ flex:0 0 300px; position:sticky; top:calc(var(--head-h) + 20px); }

.side-box{
    background:var(--card);
    border:1px solid var(--line);
    border-radius:var(--r-lg);
    padding:22px;
    box-shadow:var(--shadow-sm);
}
.side-box h4{
    font-size:16px;
    font-weight:700;
    color:var(--ink);
    margin-bottom:14px;
    padding-bottom:12px;
    border-bottom:1px dashed var(--line);
}
.side-box ul{ padding-left:0; list-style:none; }
.side-box li{
    margin-bottom:2px;
    font-size:14px;
    border-bottom:1px solid rgba(234,223,209,.6);
}
.side-box li:last-child{ border-bottom:none; }
.side-box li a{
    display:block;
    padding:10px 0 10px 4px;
    color:var(--ink-2);
    text-decoration:none;
    line-height:1.6;
    transition:.2s var(--ease);
}
.side-box li a:hover{ color:var(--brand-dark); padding-left:10px; }

/* ==========================================================================
   通用按钮
   ========================================================================== */
.btn-dulux,.btn-ghost{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:14px 30px;
    border-radius:var(--r-pill);
    font-size:15px;
    font-weight:600;
    text-decoration:none;
    transition:.22s var(--ease);
    white-space:nowrap;
}
.btn-dulux{
    background:var(--brand);
    color:#fff;
    box-shadow:0 10px 24px rgba(247,148,29,.30);
}
.btn-dulux:hover{ background:var(--brand-dark); transform:translateY(-2px); }
.btn-ghost{
    background:rgba(255,255,255,.14);
    color:#fff;
    border:1.5px solid rgba(255,255,255,.6);
    -webkit-backdrop-filter:blur(6px);
    backdrop-filter:blur(6px);
}
.btn-ghost:hover{ background:rgba(255,255,255,.24); border-color:#fff; }

/* ==========================================================================
   轮播
   ========================================================================== */
.banner-wrap{
    position:relative;
    background:var(--cream-2);
    height:380px;
    border-radius:var(--r-lg);
    overflow:hidden;
    box-shadow:var(--shadow);
}
.banner-img{
    width:100%;
    height:100%;
    object-fit:cover;
    display:block;
}
.banner-arrow{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    width:44px;
    height:44px;
    border-radius:50%;
    background:rgba(255,255,255,.82);
    -webkit-backdrop-filter:blur(8px);
    backdrop-filter:blur(8px);
    display:flex;
    align-items:center;
    justify-content:center;
    color:var(--ink);
    font-size:20px;
    cursor:pointer;
    z-index:5;
    user-select:none;
    border:none;
    padding:0;
    transition:.22s var(--ease);
    box-shadow:0 6px 18px rgba(0,0,0,.14);
}
.banner-arrow:hover{ background:#fff; transform:translateY(-50%) scale(1.06); }
.arrow-left{ left:18px; }
.arrow-right{ right:18px; }

.banner-dots{
    position:absolute;
    bottom:18px;
    left:50%;
    transform:translateX(-50%);
    display:flex;
    gap:8px;
    z-index:5;
}
.banner-dot{
    width:8px;
    height:8px;
    border-radius:var(--r-pill);
    background:rgba(255,255,255,.55);
    cursor:pointer;
    border:none;
    padding:0;
    transition:.28s var(--ease);
    box-shadow:0 1px 4px rgba(0,0,0,.2);
}
.banner-dot.active{
    width:26px;
    background:var(--brand);
    box-shadow:0 2px 8px rgba(247,148,29,.5);
}

/* ==========================================================================
   产品卡（首页 / 通用）
   ========================================================================== */
.product-list{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:22px;
}
.product-card{
    background:var(--card);
    border:1px solid var(--line);
    border-radius:var(--r-lg);
    overflow:hidden;
    display:flex;
    flex-direction:column;
    transition:transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.product-card:hover{
    transform:translateY(-6px);
    box-shadow:var(--shadow);
    border-color:#E2D2BE;
}
.product-card .p-img{
    width:100%;
    height:200px;
    object-fit:contain;
    background:linear-gradient(180deg,#FCFAF6,#F1E9DC);
    padding:14px;
    display:block;
}
.product-card .p-body{
    padding:16px 16px 18px;
    display:flex;
    flex-direction:column;
    flex:1 1 auto;
}
.product-card h4{
    color:var(--ink);
    font-size:16px;
    font-weight:600;
    line-height:1.5;
    margin:0 0 6px;
}
.product-card p{
    font-size:13px;
    color:var(--ink-2);
    line-height:1.7;
    margin:0 0 14px;
}
.product-card .price{
    color:var(--brand-dark);
    font-weight:700;
    font-size:17px;
}
.product-card a{ text-decoration:none; }
.product-card .p-btn{
    display:block;
    margin-top:auto;
    text-align:center;
    padding:10px 0;
    border-radius:var(--r-pill);
    font-size:14px;
    font-weight:600;
    color:var(--wood-dark);
    background:var(--wood-soft);
    border:1px solid #E6D6C2;
    transition:.2s var(--ease);
}
.product-card .p-btn:hover{
    background:var(--brand);
    border-color:var(--brand);
    color:#fff;
}

/* ==========================================================================
   服务
   ========================================================================== */
.service-section{
    max-width:var(--maxw);
    margin:48px auto;
    padding:0 28px;
}
.service-items{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:18px;
}
.service-item{
    background:var(--card);
    border:1px solid var(--line);
    border-radius:var(--r-lg);
    padding:26px 20px;
    text-align:center;
    transition:.24s var(--ease);
}
.service-item:hover{
    transform:translateY(-4px);
    box-shadow:var(--shadow-sm);
    border-color:#E2D2BE;
}
.service-item h4{
    font-size:16px;
    font-weight:600;
    color:var(--ink);
    margin-bottom:6px;
}
.service-item p{
    font-size:13px;
    color:var(--ink-2);
    line-height:1.7;
}

/* ==========================================================================
   页脚
   ========================================================================== */
footer{
    width:100%;
    background:var(--ink);
    color:#EFE6D9;
    margin-top:70px;
    padding:0;
    text-align:left;
}
.footer-inner{
    max-width:var(--maxw);
    margin:0 auto;
    padding:48px 28px 26px;
    display:grid;
    grid-template-columns:1.4fr 1fr 1fr;
    gap:36px;
}
.footer-brand{
    display:flex;
    align-items:center;
    gap:12px;
    margin-bottom:14px;
}
.footer-brand img{
    height:44px;
    width:auto;
    border-radius:12px;
    background:#fff;
    padding:3px;
}
.footer-brand strong{
    font-size:17px;
    letter-spacing:.5px;
    color:#fff;
    font-weight:700;
}
.footer-brand span{
    display:block;
    font-size:12px;
    color:#B7A899;
    font-weight:400;
    letter-spacing:1px;
}
.footer-desc{
    font-size:13.5px;
    line-height:1.9;
    color:#B7A899;
    max-width:360px;
}
.footer-col h5{
    font-size:12px;
    letter-spacing:2px;
    color:#8E7F71;
    font-weight:600;
    margin-bottom:14px;
}
.footer-col p,
.footer-col a{
    display:block;
    font-size:14px;
    line-height:1.9;
    color:#DED3C6;
    text-decoration:none;
    margin-bottom:4px;
    transition:color .2s var(--ease);
}
.footer-col a:hover{ color:var(--brand); }
.footer-bottom{
    border-top:1px solid rgba(255,255,255,.10);
    max-width:var(--maxw);
    margin:0 auto;
    padding:18px 28px 26px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:14px;
    font-size:12.5px;
    color:#8E7F71;
    flex-wrap:wrap;
}
.footer-bottom a{ color:#8E7F71; text-decoration:none; }
.footer-bottom a:hover{ color:var(--brand); }

/* 旧版 footer 直接写 <p> 的兜底 */
footer > p{
    max-width:var(--maxw);
    margin:6px auto;
    padding:0 28px;
    font-size:14px;
    color:#DED3C6;
}
footer a{ color:#DED3C6; text-decoration:none; }
footer a:hover{ color:var(--brand); }

/* ==========================================================================
   产品详情弹窗 / 图片放大弹窗
   ========================================================================== */
.detail-popup{
    display:none;
    position:fixed;
    z-index:10000;
    inset:0;
    background:rgba(30,22,16,.66);
    -webkit-backdrop-filter:blur(3px);
    backdrop-filter:blur(3px);
    align-items:center;
    justify-content:center;
    padding:20px;
}
.detail-popup.show{ display:flex; }
.detail-pop-card{
    background:#fff;
    width:100%;
    max-width:560px;
    max-height:88vh;
    border-radius:var(--r-lg);
    box-shadow:var(--shadow-lg);
    overflow:hidden;
    animation:popFadeIn .28s var(--ease);
    display:flex;
    flex-direction:column;
}
@keyframes popFadeIn{
    from{ transform:translateY(14px) scale(.97); opacity:0; }
    to{ transform:translateY(0) scale(1); opacity:1; }
}
.detail-pop-header{
    background:linear-gradient(135deg,var(--brand),#F7A93B);
    color:#fff;
    padding:18px 22px;
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:14px;
}
.detail-pop-header h5{
    margin:0;
    font-size:17px;
    font-weight:600;
    line-height:1.5;
}
.detail-close{
    font-size:22px;
    cursor:pointer;
    color:#fff;
    line-height:1;
    opacity:.85;
    flex:0 0 auto;
    width:32px;
    height:32px;
    display:grid;
    place-items:center;
    border-radius:50%;
    background:rgba(255,255,255,.16);
}
.detail-close:hover{ opacity:1; background:rgba(255,255,255,.3); }
.detail-pop-body{
    padding:22px;
    line-height:1.85;
    overflow-y:auto;
    flex:1 1 auto;
    min-height:0;
    font-size:14.5px;
    color:var(--ink-2);
    -webkit-overflow-scrolling:touch;
}
.detail-pop-body p{ margin:10px 0; color:var(--ink-2); font-size:14.5px; }
.detail-pop-body strong{ color:var(--brand-dark); }
.detail-pop-body li{ margin:4px 0; }
.detail-pop-footer{
    padding:14px 22px;
    background:var(--cream-2);
    text-align:right;
    border-top:1px solid var(--line);
}
.detail-pop-footer .btn{
    display:inline-block;
    padding:10px 22px;
    background:var(--brand);
    color:#fff;
    border-radius:var(--r-pill);
    text-decoration:none;
    font-size:14px;
    font-weight:600;
}
.detail-pop-footer .btn:hover{ background:var(--brand-dark); }

.image-modal{
    display:none;
    position:fixed;
    z-index:9999;
    inset:0;
    background:rgba(20,14,10,.88);
    align-items:center;
    justify-content:center;
    padding:24px;
}
.image-modal.active{ display:flex; }
.modal-img{
    max-width:92%;
    max-height:84vh;
    border-radius:var(--r-md);
    box-shadow:0 0 40px rgba(0,0,0,.5);
}
.modal-close{
    position:absolute;
    top:18px;
    right:18px;
    color:#fff;
    font-size:26px;
    font-weight:bold;
    cursor:pointer;
    width:44px;
    height:44px;
    display:grid;
    place-items:center;
    border-radius:50%;
    background:rgba(255,255,255,.14);
    line-height:1;
}

/* ==========================================================================
   Toast
   ========================================================================== */
#toast{
    position:fixed;
    left:50%;
    bottom:40px;
    transform:translateX(-50%) translateY(12px);
    background:rgba(46,38,33,.94);
    color:#fff;
    padding:11px 24px;
    border-radius:var(--r-pill);
    font-size:14px;
    z-index:99999;
    opacity:0;
    pointer-events:none;
    transition:opacity .24s var(--ease), transform .24s var(--ease);
    max-width:86vw;
    text-align:center;
    box-shadow:0 10px 26px rgba(0,0,0,.22);
}
#toast.toast-show{ opacity:1; transform:translateX(-50%) translateY(0); }

/* ==========================================================================
   联系页地图
   ========================================================================== */
.map-block{ margin:24px 0; }
.map-frame-wrap{ display:flex; justify-content:center; }
.map-frame{
    width:100%;
    max-width:920px;
    height:440px;
    border:0;
    border-radius:var(--r-lg);
    box-shadow:var(--shadow-sm);
}
.map-info{
    margin-top:20px;
    padding:22px;
    border:1px solid var(--line);
    border-radius:var(--r-lg);
    background:var(--card);
    box-shadow:var(--shadow-sm);
}
.map-info h4{ font-size:17px; margin-bottom:10px; color:var(--ink); }
.map-info p{ color:var(--ink-2); margin:5px 0; }
.map-actions{ margin-top:16px; display:flex; gap:12px; flex-wrap:wrap; }
.map-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:11px 22px;
    background:var(--brand);
    color:#fff;
    border-radius:var(--r-pill);
    font-size:15px;
    font-weight:600;
    text-decoration:none;
    transition:background .2s var(--ease);
}
.map-btn:hover{ background:var(--brand-dark); }
.map-tip{ font-size:13px; color:var(--ink-3); margin-top:12px; }

/* ==========================================================================
   平板
   ========================================================================== */
@media (max-width:1024px){
    .section{ padding:48px 22px; }
    .product-list{ grid-template-columns:repeat(3,1fr); }
    .sidebar{ flex:0 0 260px; }
}

/* ==========================================================================
   手机端
   ========================================================================== */
@media (max-width:900px){
    body{ padding-bottom:calc(var(--dock-h) + env(safe-area-inset-bottom)); }

    /* 头部压缩成两行：品牌 + 图标 */
    .top-header{
        padding:10px 16px 8px;
        gap:10px;
        flex-wrap:wrap;
    }
    .page-title{ gap:9px; }
    .top-logo{ height:34px; border-radius:9px; }
    .page-title-text{ font-size:14px; }
    .page-title-text .page-title-sub{ font-size:11px; }

    .search-toggle{ display:flex; margin-left:auto; }
    .menu-toggle{ display:flex; }

    /* 搜索默认收起，点击放大镜展开 */
    .search-box{
        order:5;
        display:none;
        flex:1 1 100%;
        width:100%;
        margin:6px 0 2px;
        padding:3px 3px 3px 14px;
    }
    .site-header.search-open .search-box{ display:flex; animation:slideDown .24s var(--ease); }
    @keyframes slideDown{
        from{ opacity:0; transform:translateY(-6px); }
        to{ opacity:1; transform:translateY(0); }
    }
    .search-box input{ width:100%; flex:1 1 auto; font-size:16px; }
    .search-box button{ padding:8px 18px; }

    /* 主导航收起，走抽屉 */
    .main-nav{ display:none; }

    .mobile-dock{ display:block; }
    .to-top{
        right:14px;
        bottom:calc(var(--dock-h) + 18px + env(safe-area-inset-bottom));
    }

    /* 区块节奏 */
    .section{ padding:36px 16px; }
    .section-title{ font-size:20px; gap:9px; }
    .section-title::before{ width:5px; height:19px; }
    .section-head{ margin-bottom:18px; }
    .section-more{ font-size:13px; }

    .content-wrap{
        flex-direction:column;
        gap:24px;
        margin:22px auto;
        padding:0 16px;
    }
    .sidebar{ position:static; width:100%; flex:none; }
    .block-title{ font-size:18px; padding-left:10px; }

    /* 产品网格 2 列 */
    .product-list{ grid-template-columns:repeat(2,1fr); gap:12px; }
    .product-card .p-img{ height:auto; aspect-ratio:1/1; padding:10px; }
    .product-card .p-body{ padding:12px; }
    .product-card h4{ font-size:14px; margin-bottom:4px; }
    .product-card p{
        font-size:12px;
        line-height:1.6;
        margin-bottom:10px;
        display:-webkit-box;
        -webkit-line-clamp:2;
        -webkit-box-orient:vertical;
        overflow:hidden;
    }
    .product-card .p-btn{ padding:8px 0; font-size:13px; }

    /* 服务 2×2 */
    .service-items{ grid-template-columns:repeat(2,1fr); gap:12px; }
    .service-item{ padding:20px 14px; border-radius:var(--r-md); }
    .service-item h4{ font-size:15px; }
    .service-item p{ font-size:12.5px; }

    .banner-wrap{ height:240px; border-radius:var(--r-md); }
    .banner-arrow{ width:36px; height:36px; font-size:16px; }
    .arrow-left{ left:10px; }
    .arrow-right{ right:10px; }
    .banner-dots{ bottom:12px; }

    .btn-dulux,.btn-ghost{ padding:12px 22px; font-size:14px; }

    /* 页脚堆叠 */
    footer{ margin-top:44px; }
    .footer-inner{
        grid-template-columns:1fr;
        gap:24px;
        padding:32px 18px 20px;
    }
    .footer-desc{ max-width:none; font-size:13px; }
    .footer-bottom{
        flex-direction:column;
        align-items:flex-start;
        gap:6px;
        padding:16px 18px calc(20px + env(safe-area-inset-bottom));
        font-size:12px;
    }
    footer > p{ padding:0 18px; font-size:13px; }

    .map-frame{ height:300px; border-radius:var(--r-md); }
    .map-info{ padding:16px; }
    .map-btn{ flex:1 1 auto; min-width:132px; padding:11px 12px; font-size:14px; }

    .detail-popup{ padding:14px; }
    .detail-pop-card{ max-height:86vh; }
    .detail-pop-header{ padding:16px 18px; }
    .detail-pop-body{ padding:18px; }

    #toast{ bottom:calc(var(--dock-h) + 24px + env(safe-area-inset-bottom)); }
}

@media (max-width:400px){
    .page-title-text{ font-size:13px; }
    .page-title-text .page-title-sub{ display:none; }
    .top-logo{ height:30px; }
}

/* 减少动效偏好 */
@media (prefers-reduced-motion:reduce){
    *,*::before,*::after{
        animation-duration:.01ms !important;
        transition-duration:.01ms !important;
        scroll-behavior:auto !important;
    }
}
