@charset "utf-8";
/* ---------- 1. 全局容器 ---------- */
/* 与设计稿一致：容器占屏幕 83.33%，最大宽度 1440px */
.container-fluid {
    width: 98%;
    max-width: 1440px;
}

/* ---------- 2. 全局重置 ---------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font: 15px "Segoe UI", "Helvetica Neue", Arial, Helvetica, "microsoft yahei", sans-serif;
    color: #616161;
    line-height: 1.85;
    background: #fdfbf5;
}

/* 移除列表默认样式 */
ul,
ol,
dl,
dd {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* 链接基础样式 */
a {
    text-decoration: none;
    color: #2b2b2b;
}
a:hover {
    text-decoration: none;
    color: #e34f23; /* 主强调橙 */
}
a:focus {
    text-decoration: none !important;
    outline: none;
}

/* 清除浮动 */
.clearfix::after {
    content: "";
    display: block;
    clear: both;
}

/* ==========================================================================
   3. 头部 header
   固定在顶部，默认透明（叠在 banner 大图上），向下滚动后切换为米色底。
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 998;
    background: transparent;
    transition: all 0.5s;
}

/* 头部内部 flex 布局：左 logo，右（导航 + 语言） */
.header .container-fluid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 90px;
}

/* 滚动后添加 .on：切换米色背景 + 阴影 */
.header.on {
    background: #fdfbf5;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* ---- 3.1 logo 双版本切换 ---- */
/* c = 白色版（透明 header 上、banner 大图上显示）
   m = 深色版（滚动后浅色底上显示） */
.header .logo img {
    display: block;
    height: 23px; /* 保持原图自然尺寸（255x23），避免放大失真 */
}
.header .logo .m {
    display: none;
}
.header.on .logo .m {
    display: block;
}
.header.on .logo .c {
    display: none;
}

/* ---- 3.2 语言切换图标（使用字体图标替代原设计稿图片） ---- */
/* 与导航菜单项保持同一水平线：行高、上下内边距均与 .nav ul li a 对齐 */
.header .head-icon a {
    display: inline-flex;
    align-items: center;
    color: #fff;    
}
.header .head-icon a i {
    margin-right: 5px;
    font-size: 16px;
    line-height: 1;
}
.header.on .head-icon a {
    color: #2b2b2b;
}

/* ---- 3.3 导航 ---- */
.header .nav {
    margin-right: 10px;
}
.header .nav ul {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
}
.header .nav ul li {
    padding: 0 10px;
}
.header .nav ul li a {
    display: block;
    position: relative;
    color: #fff;
    font-size: 16px;
    line-height: 1.5;
    padding: 8px 0;
    white-space: nowrap;
}
/* 导航下划线（金色细条）：默认绕 Y 轴旋转 90° 隐藏，hover / 当前项展开 */
.header .nav ul li b {
    position: absolute;
    left: 0;
    bottom: 4px; /* 下划线紧贴文字下方 */
    width: 100%;
    height: 3px;
    background: #b3936b; /* 主金色 */
    transform: rotateY(90deg);
    transition: all 0.5s;
}
.header .nav ul li a:hover b,
.header .nav ul li.active a b {
    transform: rotateY(0);
}
.header .nav ul li a:hover,
.header .nav ul li.active a {
    color: #b3936b;
}
/* 滚动后（浅色背景）导航文字变深色 */
.header.on .nav ul li a {
    color: #2b2b2b;
}
.header.on .nav ul li a:hover,
.header.on .nav ul li.active a {
    color: #b3936b;
}

/* ---- 3.4 二级导航（悬停下拉） ---- */
.header .nav ul li {
    position: relative;
}
.header .nav ul .sub-nav {
    position: absolute;
    top: 100%;
    right: -10px;
    /* 父级 ul 是 flex，二级菜单必须显式还原成块级竖排 */
    display: block;
    min-width: 186px;
    padding: 4px 0;
    background: #fff;
    border-top: 2px solid #b3936b;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.13);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.28s ease, transform 0.28s ease, visibility 0.28s;
    z-index: 30;
}
/* 没有子栏目的父项不显示空面板 */
.header .nav ul .sub-nav:empty {
    display: none;
}
.header .nav ul .sub-nav li {
    padding: 0;
}
.header .nav ul .sub-nav li a {
    padding: 9px 20px 9px 18px;
    font-size: 14px;
    line-height: 1.5;
    color: #4a4a4a;
    white-space: nowrap;
    border-bottom: 0;
}
.header .nav ul .sub-nav li a:hover {
    color: #b3936b;
    background: #faf7f1;
}
.header .nav ul li:hover > .sub-nav,
.header .nav ul li:focus-within > .sub-nav {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
/* 子项多时自动排成两列（耀春格瑞 11 项） */
.header .nav ul .sub-nav:has(li:nth-child(6)) {
    min-width: 384px;
    column-count: 2;
    column-gap: 0;
}
/* 桌面端不需要展开箭头 */
.header .nav ul li .sub-toggle {
    display: none;
}

/* ---- 3.5 移动端汉堡按钮（三条线，默认隐藏） ---- */
.nav-toggle {
    display: none;
    width: 24px;
    height: 18px;
    position: relative;
    cursor: pointer;
}
.nav-toggle span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background: #fff;
    transition: all 0.3s;
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 8px; }
.nav-toggle span:nth-child(3) { top: 16px; }
.header.on .nav-toggle span {
    background: #2b2b2b;
}

/* ---------- 4. 响应式（移动端 / 平板） ---------- */
@media (max-width: 991px) {
    .header .container-fluid {
        height: 64px;
    }
    .header .logo img {
        height: 20px;
    }
    /* 移动端导航折叠为下拉菜单 */
    .nav-toggle {
        display: block;
        margin-left: 18px;
    }
    .header .nav {
        position: absolute;
        top: 64px;
        left: 0;
        width: 100%;
        margin: 0;
        background: #fdfbf5;
        box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
        display: none;
    }
    .header.menu-open .nav {
        display: block;
    }
    .header .nav ul {
        display: block;
        padding: 10px 0;
    }
    .header .nav ul li {
        padding: 0 20px;
    }
    .header .nav ul li a {
        line-height: 44px;
        padding: 0;
        color: #2b2b2b;
        border-bottom: 1px solid #eee;
    }
    .header .nav ul li b {
        display: none;
    }
    /* 移动端：二级导航改为点击展开，缩进显示 */
    .header .nav ul .sub-nav {
        position: static;
        right: auto;
        min-width: 0;
        padding: 0;
        background: transparent;
        border-top: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
        column-count: 1;
        transition: none;
    }
    .header .nav ul li.open > .sub-nav {
        display: block;
    }
    /* 移动端一律单列，不能被桌面端的两列规则覆盖 */
    .header .nav ul .sub-nav:has(li:nth-child(6)) {
        column-count: 1;
        min-width: 0;
    }
    .header .nav ul li.open .sub-toggle::before {
        transform: rotate(-135deg);
    }
    .header .nav ul .sub-nav li a {
        padding: 0 0 0 18px;
        font-size: 13px;
        line-height: 40px;
        color: #8a8a8a;
    }
    .header .nav ul .sub-nav li a:hover {
        background: transparent;
        color: #b3936b;
    }
    /* 展开箭头 */
    .header .nav ul li .sub-toggle {
        display: block;
        position: absolute;
        right: 8px;
        top: 0;
        width: 44px;
        height: 44px;
        cursor: pointer;
    }
    .header .nav ul li .sub-toggle::before {
        content: "";
        position: absolute;
        left: 50%;
        top: 50%;
        width: 7px;
        height: 7px;
        margin: -5px 0 0 -4px;
        border-right: 1px solid #9a9a9a;
        border-bottom: 1px solid #9a9a9a;
        transform: rotate(45deg);
        transition: transform 0.3s;
    }
    .header .nav ul li:has(.sub-nav:empty) .sub-toggle {
        display: none;
    }
}

@media (max-width: 767px) {
    body {
        font-size: 14px;
    }
}

/* ---- 4.1 桌面窄屏（992–1399）：压缩 logo 与导航，避免导航折行 ---- */
@media (min-width: 992px) and (max-width: 1399px) {
    .header .logo img {
        height: 20px;
    }
    .header .nav ul li {
        padding: 0 6px;
    }
    .header .nav ul li a {
        font-size: 14px;
    }
    .head-icon a,
    .header-right .head-icon {
        font-size: 13px;
    }
}
@media (min-width: 992px) and (max-width: 1119px) {
    .header .logo img {
        height: 18px;
    }
    .header .nav ul li {
        padding: 0 4px;
    }
    .header .nav ul li a {
        font-size: 13px;
    }
}

/* ==========================================================================
   5. 底部 footer（全站公共，按设计稿 foot.jpg 用 HTML 文字重做）
   背景使用去字后的 footer-bg.jpg，叠加暗色遮罩保证白色文字可读性。
   ========================================================================== */
.site-footer {
    position: relative;
    color: #e8e8e8;
    background: url(../img/footer.jpg) no-repeat center top;
    background-size: cover;
    overflow: visible;
}
/* 暗色遮罩层，压住底图残留的设计稿文字 */
.site-footer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(10, 14, 16, 0.52), rgba(10, 14, 16, 0.74));
    pointer-events: none;
}
.footer-inner {
    position: relative;
    z-index: 1;
    min-height: 460px;
    padding: 66px 0 34px;
}

/* ---- 5.1 顶部导航与右侧小图标 ---- */
.footer-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 30px;
}
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0 26px;
}
.footer-nav li a {
    display: block;
    color: #f2f2f2;
    font-size: 14px;
    letter-spacing: normal;
    padding: 4px 0;
    transition: color 0.3s;
}
.footer-nav li a:hover {
    color: #c9a87b;
}
.footer-tools {
    display: flex;
    align-items: center;
    gap: 10px;
}
.footer-tools > a {
    position: relative;     
    color: #fff;
    font-size: 12px;
    transition: color 0.3s;
}
.footer-tools > a:hover {
    color: #b3936b;
}
/* 微信图标 hover 弹出二维码 */
.wechat-pop {
    position: absolute;
    right: 0;
    bottom: 34px;
    width: 120px;
    padding: 6px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.3s;
}
.wechat-pop img {
    display: block;
    width: 100%;
}
.tool-wechat:hover .wechat-pop {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ---- 5.2 水平分隔线 ---- */
.footer-line {
    height: 1px;
    background: rgba(255, 255, 255, 0.16);
    margin: 22px 0 32px;
}

/* ---- 5.3 主体：二维码 / 热线 / 表单 ---- */
.footer-main {
    padding: 6px 0 26px;
}
/* 二维码白色底板 + 板内“微信客服”字样（对齐设计稿） */
.qr-panel {
    display: inline-block;
    padding: 10px 10px 6px;
    background: #ffffff;
}
.footer-qr img {
    display: block;
    width: 100px;
    max-width: 100%;
}
.qr-tip {
    display: block;
    width: 100px;
    padding-top: 5px;
    font-size: 12px;
    color: #7a7a7a;
    text-align: center;
    letter-spacing: normal;
}
/* 热线列：左细线 + 竖排 HOTLINE + 右侧细线，内容再往右 */
.foot-hotline {
    position: relative;
    padding-left: 48px;
}
.hotline-vert {
    position: absolute;
    left: 8px;
    top: 0%;
    writing-mode: vertical-lr;
    font-size: 11px;
    letter-spacing: normal;
    line-height: 1.5;
    color: #9aa0a3;
    text-transform: uppercase;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
    border-right: 1px solid rgba(255, 255, 255, 0.18);
}
.hotline-label {
    display: block;
    font-size: 13px;
    color: #d8d8d8;
    letter-spacing: normal;
}
.hotline-label i {
    margin-right: 6px;
    color: rgba(255, 255, 255, 0.55);
}
.hotline-num {
    display: block;
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.5;
    white-space: nowrap;
    transition: color 0.3s;
}
.hotline-num:hover {
    color: #c9a87b;
}
.hotline-sub {
    display: block;
    font-size: 13px;
    color: #d8d8d8;
}
.foot-info p {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin: 0;
    font-size: 13px;
    line-height: 2.4;
    color: #e2e2e2;
    word-break: break-all;
}
/* 左侧小标签（传真 / 邮箱 / 地址），与内容分色分距 */
.foot-label {
    flex: 0 0 auto;
    white-space: nowrap;
    color: #b9b9b9;
    font-size: 13px;
}
.foot-val {
    color: #ffffff;
    word-break: break-all;
}
.foot-info p i {
    color: rgba(255, 255, 255, 0.55);
    line-height: 2.4;
    flex-shrink: 0;
}
.foot-info p a {
    color: #ffffff;
}
.foot-info p a:hover {
    color: #c9a87b;
}

.cb-tip {
    font-size: 14px;
    color: #f0f0f0;
    letter-spacing: normal;
    margin-bottom: 12px;
}
.cb-form {
    display: flex;
    height: 46px;
}
.cb-form input {
    flex: 1;
    min-width: 0;
    border: none;
    background: rgba(255, 255, 255, 0.82);
    color: #333;
    font-size: 14px;
    padding: 0 14px;
    transition: background 0.3s;
}
.cb-form input:focus {
    outline: none;
    background: #fff;
}
.cb-form button {
    width: 82px;
    flex-shrink: 0;
    border: none;
    background: #bfa079;
    color: #fff;
    font-size: 15px;
    letter-spacing: normal;
    cursor: pointer;
    transition: background 0.3s;
}
.cb-form button:hover {
    background: #a9885a;
}
.cb-msg {
    display: block;
    min-height: 18px;
    margin-top: 8px;
    font-size: 12px;
    color: #e9c68f;
}

/* ---- 5.4 版权与底部金色条 ---- */
.footer-copy {
    font-size: 12px;
    color: #fff;
    letter-spacing: normal;
    line-height: 1.8;
}
.footer-copy a{
    color: #fff;
}
.footer-gold-bar {
    position: relative;
    z-index: 1;
    height: 18px;
    background: #bfa079;
}

/* ---- 5.5 底部响应式 ---- */
@media (min-width: 992px) {
    /* 按设计稿横向点位收窄左列，让热线与联系方式左移贴近二维码；用百分比保证各屏宽等比 */
    .footer-qr { flex: 0 0 11%; max-width: 11%; }
    .footer-contact { flex: 0 0 55%; max-width: 55%; }
    .footer-callback { flex: 1 1 0; max-width: none; }
    .foot-hotline { flex: 0 0 36%; max-width: 36%; }
    .foot-info { flex: 1 1 0; max-width: none; }
}
@media (max-width: 991px) {
    .footer-inner { min-height: 0; padding: 48px 0 28px; }
    .footer-nav { gap: 0 16px; }
    .footer-tools { display: none; }
    .footer-line { margin: 18px 0 24px; }
    .footer-qr { margin-bottom: 22px; }
    .foot-hotline { border-left: none; margin-bottom: 18px; background-image: none; }
    .hotline-vert { display: none; }
    .footer-callback {margin-top: 24px; }
}
@media (max-width: 767px) {
    .footer-nav li a { font-size: 12px;}
    .footer-nav { gap: 0 12px; }
    .hotline-num { font-size: 22px; }
    .footer-copy { font-size: 12px; }

    /* ---- 5.6 手机端：二维码与服务热线并排在同一行 ---- */
    .footer-main > .row {
        display: flex;
        flex-wrap: wrap;
        align-items: flex-start;
    }
    /* 拆掉中间两层容器盒，让热线成为主行的直接子项，才能和二维码同一行 */
    .footer-contact,
    .footer-contact > .row {
        display: contents;
    }
    .footer-qr {
        flex: 0 0 auto;
        width: auto;
        max-width: none;
        margin-bottom: 0;
    }
    .footer-qr img,
    .qr-tip { width: 74px; }
    .foot-hotline {
        flex: 1 1 0;
        min-width: 0;
        padding-left: 0;
        margin-bottom: 0;
    }
    .foot-info {
        flex: 1 1 100%;
        max-width: none;
        margin-top: 16px;
    }
    .footer-callback {
        flex: 1 1 100%;
        margin-top: 22px;
    }
}
@media (max-width: 359px) {
    .hotline-num { font-size: 18px; }
}
/* 576–767：宽度够，二维码保持 100px 原尺寸 */
@media (min-width: 576px) and (max-width: 767px) {
    .footer-qr img,
    .qr-tip { width: 100px; }
    .foot-info { margin-top: 20px; }
}

/* ==========================================================================
   Back to top button (fixed, bottom-right, above the bottom ad bar)
   ========================================================================== */
.back-top {
    position: fixed;
    right: 20px;
    bottom: 140px;
    width: 46px;
    height: 46px;
    border: none;
    border-radius: 50%;
    background: #b3936b; /* primary gold */
    color: #fff;
    font-size: 20px;
    line-height: 46px;
    text-align: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(16px);
    transition: opacity .3s ease, transform .3s ease, background .3s ease, visibility .3s;
    z-index: 9900;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
}
.back-top i {
    font-size: 20px;
    line-height: 1;
}
.back-top:hover {
    background: #8a734c; /* deep gold */
    transform: translateY(-3px);
}
.back-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
