

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", SimHei, sans-serif;
}

/* 全局深蓝色背景（和效果图一致） */
body {
    background: #192945;
    color: #fff;
}

/* 全局金色文字类 */
.text-gold {
    color: #d4af66;
}

/* 金色按钮 */
.btn-gold {
    background: #d4af66;
    color: #192945;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.btn-gold:hover {
    background: #c49f56;
    color: #192945;
}

/* 导航栏 */
header {
    background-color: #192945 !important;
    width: 100%;
    border-bottom: 1px solid rgba(212, 175, 102, 0.2);
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-wrap img {
    height: 52px;
    width: auto;
    border-radius: 8px;
}

.logo-text {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
}

/* 右侧导航 */
.nav-menu {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.2s;
}

.nav-menu a.active {
    background: #d4af66;
    color: #192945;
    border-radius: 28px;
    padding: 10px 26px;
}

/* 汉堡菜单按钮样式 */
.navbar-toggler {
    border-color: #d4af66;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28212, 175, 102, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* 首屏轮播（容器比例和你的图片1920x750完全一致，零留白） */
/* 首屏轮播（直接填满，零留白） */
.banner {
    width: 100% !important;
    aspect-ratio: 1920 / 750 !important; /* 保持你原来的容器比例 */
    position: relative !important;
    overflow: hidden !important;
}





.banner-slide {
    width: 100% !important;
    height: 100% !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    opacity: 0 !important;
    transition: opacity 0.6s ease !important;
}

.banner-slide.active {
    opacity: 1 !important;
    z-index: 1 !important;
}


/* 图片强制填满容器，不留任何空白 */
.banner-slide img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important; /* 核心：填满容器，多余部分裁剪 */
    object-position: center center !important; /* 以图片中心为基准裁剪 */
    max-width: none !important; /* 彻底干掉Bootstrap限制 */
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}

.banner::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.45) !important;
    z-index: 2 !important;
}

.banner-text {
    position: absolute !important;
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%) !important;
    color: #fff !important;
    text-align: center !important;
    z-index: 3 !important;
    width: 90% !important;
}

.banner-text h1 {
    font-size: 42px !important;
    letter-spacing: 1px !important;
    color: #d4af66 !important;
    font-weight: 900 !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8), 0 4px 8px rgba(0,0,0,0.6) !important;
    background: rgba(0,0,0,0.5) !important;
    padding: 15px 50px !important;
    border-radius: 10px !important;
    border: 2px solid rgba(212, 175, 102, 0.7) !important;
    letter-spacing: 2px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* 轮播小圆点指示器 */
.banner-dots {
    position: absolute !important;
    bottom: 55px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    display: flex !important;
    gap: 10px !important;
    z-index: 4 !important;
}

.banner-dots .dot {
    width: 10px !important;
    height: 10px !important;
    border-radius: 50% !important;
    background: rgba(255,255,255,0.5) !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
}

.banner-dots .dot.active {
    background: #d4af66 !important;
    width: 20px !important;
    border-radius: 5px !important;
}

/* 通用板块容器 */
.section-wrap {
    max-width: 1000px;
    margin: 0 auto;
    padding: 50px 30px;
}

.sec-title {
    text-align: center;
    font-size: 24px;
    margin-bottom: 35px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

/* 标题左右金线+圆点装饰（和效果图完全一致） */
.sec-title::before,
.sec-title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #d4af66;
    position: relative;
}

.sec-title::before::after,
.sec-title::after::after {
    content: "";
    width: 8px;
    height: 8px;
    border: 1px solid #d4af66;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.sec-title::before::after {
    right: 0;
}

.sec-title::after::after {
    left: 0;
}

/* 服务项目板块 */
.service-wrap {
    max-width: 850px;
    margin: -50px auto 60px;
    background: #192945;
    padding: 45px 50px;
    border-radius: 8px;
    position: relative;
    z-index: 10;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 102, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    color: #fff;
    text-align: center;
    height: 140px;
}

.service-item:hover {
    transform: scale(1.08);
    background: rgba(212, 175, 102, 0.15);
    border-color: rgba(212, 175, 102, 0.5);
    box-shadow: 0 0 15px rgba(212, 175, 102, 0.3);
}

.service-item .icon {
    font-size: 42px;
    margin-bottom: 12px;
    color: #d4af66;
    transition: all 0.3s ease;
}

.service-item:hover .icon {
    transform: scale(1.15);
    color: #fff;
    text-shadow: 0 0 10px #d4af66;
}

.service-item p {
    font-size: 15px;
    margin: 0;
    transition: all 0.3s ease;
}

.service-item:hover p {
    color: #d4af66;
    font-weight: 600;
}

/* 维修案例网格布局 */
.case-group {
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
    overflow: hidden;
    padding-bottom: 15px;
    border: 1px solid rgba(212, 175, 102, 0.15);
    transition: transform 0.2s;
}

.case-group:hover {
    transform: translateY(-3px);
}

.case-pair {
    display: flex;
}

.case-img {
    width: 50%;
    cursor: pointer;
}

.case-img img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    transition: opacity 0.2s;
}

.case-img img:hover {
    opacity: 0.9;
}

.case-img p {
    text-align: center;
    padding: 8px 0;
    background: rgba(0,0,0,0.3);
    color: #fff;
    font-size: 14px;
}

.case-title {
    text-align: center;
    margin-top: 12px;
    font-size: 15px;
    color: #fff;
    padding: 0 10px;
}

.case-category {
    text-align: center;
    font-size: 12px;
    color: #d4af66;
    margin-top: 5px;
}

/* 分页按钮 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.page-btn {
    background: #d4af66;
    color: #192945;
    text-decoration: none;
    padding: 10px 25px;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.2s;
    cursor: pointer;
}

.page-btn:hover {
    background: #c49f56;
}

.page-info {
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

/* 图片放大模态框 */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}



#modal-img {
    /* 图片多大就显示多大，最大不超屏幕 */
    max-width: calc(100vw - 30px);
    max-height: calc(100vh - 30px);
    width: auto;
    height: auto;
    object-fit: contain;
    /* 关闭强制拉伸、消除白边 */
}

.close-btn {
    position:fixed;
    top:15px;
    right:25px;
    color:#fff;
    font-size:36px;
    cursor:pointer;
}

.close-btn:hover {
    color: #d4af66;
}

/* 关于我们 */
.about-content {
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255,255,255,0.85);
}

.about-right p {
    margin-bottom: 12px;
}

/* 联系我们 */
.contact-wrap {
    max-width: 850px;
    margin: 0 auto 60px;
    background: rgba(0,0,0,0.2);
    color: #fff;
    text-align: center;
    padding: 40px 30px;
    border-radius: 8px;
    border: 1px solid rgba(212, 175, 102, 0.2);
}

.tel {
    font-size: 24px;
    color: #d4af66;
    font-weight: bold;
    margin-top: 15px;
}

/* 底部 */
footer {
    background: rgba(0,0,0,0.3);
    color: rgba(255,255,255,0.7);
    text-align: center;
    padding: 30px;
    font-size: 14px;
    border-top: 1px solid rgba(212, 175, 102, 0.2);
}

footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}

footer a:hover {
    color: #d4af66;
}

/* -------------------------- 导航栏最终版（已解决Bootstrap冲突） -------------------------- */
header {
    background-color: #192945 !important;
    width: 100%;
    border-bottom: 1px solid rgba(212, 175, 102, 0.2);
    position: sticky;
    top: 0;
    z-index: 1000;
    position: relative !important;
}

.header-inner {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between !important;
    align-items: center;
    padding: 14px 30px;
}

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-wrap img {
    height: 52px;
    width: auto;
    border-radius: 8px;
}

.logo-text {
    color: #fff;
    font-size: 24px;
    font-weight: bold;
}

/* 电脑端导航 */
.desktop-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.desktop-nav a {
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.2s;
}

.desktop-nav a.active {
    background: #d4af66;
    color: #192945;
    border-radius: 28px;
    padding: 10px 26px;
}

/* 手机端汉堡按钮 */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    width: 36px;
    height: 36px;
    position: relative;
}

.menu-toggle .hamburger {
    display: block;
    width: 28px;
    height: 3px;
    background: #d4af66;
    border-radius: 2px;
    margin: 5px 0;
    transition: all 0.3s ease;
}

.menu-toggle .close {
    display: none;
    color: #fff;
    font-size: 32px;
    font-weight: bold;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.menu-toggle.active .hamburger {
    opacity: 0;
}

.menu-toggle.active .close {
    display: block;
}

/* 手机端下拉菜单（金色背景） */
.mobile-menu {
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    width: 35% !important;
    background: #d4af66 !important;
    border-left: 1px solid rgba(25, 41, 69, 0.2);
    border-bottom: 1px solid rgba(25, 41, 69, 0.2);
    border-bottom-left-radius: 8px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 9999 !important;
}

/* 手机端菜单文字颜色（已修复为深蓝色） */
.mobile-menu a {
    display: block;
    color: #192945 !important;
    text-decoration: none;
    font-size: 18px;
    padding: 18px 20px;
    border-bottom: 1px solid rgba(25, 41, 69, 0.2);
    text-align: center;
}

.mobile-menu a:last-child {
    border-bottom: none;
}

.mobile-menu a:hover {
    background: rgba(25, 41, 69, 0.15);
    color: #192945 !important;
}

/* 激活状态：平滑展开 */
.mobile-menu.active {
    max-height: 500px !important;
    opacity: 1 !important;
}

/* 右侧悬浮咨询按钮（金色圆形，点击直接拨号） */
.float-consult-btn {
    position: fixed;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: #d4af66;
    color: #192945;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.float-consult-btn .icon {
    font-size: 24px;
    line-height: 1;
    margin-bottom: 2px;
}

.float-consult-btn .text {
    font-size: 18px;
    line-height: 1;
}

/* 电脑端完全隐藏悬浮按钮 */
@media (min-width: 769px) {
    .float-consult-btn {
        display: none !important;
    }
}

/* 手机端响应式调整（唯一媒体查询块，无冲突） */
@media (max-width: 768px) {
    .banner {
        height: 280px !important; /* 手机端轮播图高度 */
    }

    .banner-text h1 {
        font-size: 22px !important;
        padding: 10px 20px !important;
        white-space: normal !important;
        line-height: 1.4 !important;
    }

    .banner-dots {
        bottom: 50px !important; /* 手机端圆点位置上移 */
    }

    .desktop-nav {
        display: none !important;
    }

    .menu-toggle {
        display: block !important;
    }

    .header-inner {
        padding: 14px 20px !important;
    }

    .service-wrap {
        padding: 30px 20px;
        margin: -30px auto 40px;
    }

    .section-wrap {
        padding: 30px 20px;
    }

    .case-img img {
        height: 120px;
    }

    .nav-menu {
        flex-direction: column;
        gap: 20px;
        padding: 20px 0;
    }

    .nav-menu a {
        width: 100%;
        text-align: center;
        padding: 10px;
    }
}