/* =========================================================
   Huaxia Journeys — Cookie consent banner
   ========================================================= */

.hxc-banner{
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    z-index:99999;
    background:#fff;
    border-top:3px solid #8f251f;
    box-shadow:0 -8px 32px rgba(20,16,15,.16);
    font-family:inherit;
}

.hxc-banner[hidden]{
    display:none;
}

/* 横幅固定在最底部，未决期间给页面补出等高空白，避免永久遮住页尾内容 */
body.hxc-visible{
    padding-bottom:190px;
}

.hxc-inner{
    max-width:1240px;
    margin:0 auto;
    padding:20px 24px;
    display:flex;
    align-items:flex-start;
    gap:32px;
}

.hxc-text{
    flex:1 1 auto;
    min-width:0;
}

.hxc-text h2{
    font-size:16px;
    font-weight:600;
    color:#1c1c1c;
    margin:0 0 6px;
    line-height:1.4;
}

.hxc-text p{
    font-size:13.5px;
    line-height:1.7;
    color:#5c564f;
    margin:0;
}

.hxc-text a{
    color:#8f251f;
    text-decoration:underline;
    text-underline-offset:2px;
}

.hxc-actions{
    display:flex;
    gap:10px;
    flex:0 0 auto;
    align-items:center;
    padding-top:4px;
}

.hxc-btn{
    font-family:inherit;
    font-size:13.5px;
    font-weight:600;
    line-height:1;
    padding:12px 18px;
    border-radius:3px;
    border:1px solid transparent;
    cursor:pointer;
    white-space:nowrap;
    transition:background .18s ease, color .18s ease, border-color .18s ease;
}

.hxc-btn:focus-visible{
    outline:3px solid #b8d4ff;
    outline-offset:2px;
}

.hxc-btn-primary{
    background:#8f251f;
    color:#fff;
}

.hxc-btn-primary:hover{
    background:#6f1a17;
}

.hxc-btn-ghost{
    background:#fff;
    color:#3a352f;
    border-color:#d9d2c8;
}

.hxc-btn-ghost:hover{
    background:#f6f2ec;
    border-color:#b9b0a3;
}

/* ---------- 偏好面板 ---------- */
.hxc-prefs{
    border-top:1px solid #ece6dd;
    background:#fbf8f4;
}

.hxc-prefs[hidden]{
    display:none;
}

.hxc-row{
    max-width:1240px;
    margin:0 auto;
    padding:13px 24px;
    display:flex;
    align-items:center;
    gap:20px;
    border-bottom:1px solid #ece6dd;
    cursor:pointer;
}

.hxc-row span{
    flex:1 1 auto;
    min-width:0;
}

.hxc-row strong{
    display:block;
    font-size:14px;
    font-weight:600;
    color:#1c1c1c;
    margin-bottom:2px;
}

.hxc-row em{
    display:block;
    font-style:normal;
    font-size:12.5px;
    line-height:1.6;
    color:#7a7268;
}

.hxc-row input[type="checkbox"]{
    flex:0 0 auto;
    width:20px;
    height:20px;
    accent-color:#8f251f;
    cursor:pointer;
}

.hxc-prefs-actions{
    max-width:1240px;
    margin:0 auto;
    padding:14px 24px 18px;
}

/* ---------- 移动端 ---------- */
@media (max-width:860px){
    .hxc-inner{
        flex-direction:column;
        gap:16px;
        padding:18px 18px 16px;
    }
    .hxc-actions{
        width:100%;
        flex-wrap:wrap;
        padding-top:0;
    }
    .hxc-btn{
        flex:1 1 auto;
        text-align:center;
        padding:12px 10px;
    }
    .hxc-row,
    .hxc-prefs-actions{
        padding-left:18px;
        padding-right:18px;
    }
    .hxc-row{
        align-items:flex-start;
        gap:14px;
    }
    /* 给移动端悬浮联系条留出空间 */
    .hxc-banner{
        padding-bottom:env(safe-area-inset-bottom, 0);
    }
    body.hxc-visible{
        padding-bottom:300px;
    }
    body.hxc-visible.hxc-prefs-open{
        padding-bottom:520px;
    }
}
