/* 全屏banner */
.fullscreen-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70vh;
    z-index: 1;
    padding-top: 100px;
    background-size: cover;
    background-position: center center;
}

.fullscreen-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    /*background: rgba(0, 0, 0, 0.2);*/
    z-index: 1;
}

@media (max-width: 768px) {
    .fullscreen-banner {
        position: relative;
        z-index: 1;
        padding-top: 70px !important;
        margin-top: 0 !important;
        min-height: auto !important;
        border-radius: 0 !important; /* 去掉圆角 */
        background-size: cover;
    }

    .banner-inner {
        padding-top: 0.5rem !important;
    }

    .banner-inner h1 {
        font-size: 1.8rem;
        line-height: 1.3;
    }

    .hero-sub {
        font-size: 0.9rem !important;
        margin: 1rem 0 !important;
    }

    .banner-inner .p-1,
    .banner-inner .p-2,
    .banner-inner .p-3 {
        font-size: 1rem !important;
        margin-top: 1.8rem !important;
        line-height: 1.4 !important;
    }

    .btn-group {
        margin-top: 3rem !important;
        flex-wrap: wrap;
        gap: 10px;
    }

    .banner-btn {
        display: inline-block;
        padding: 8px 16px !important;
        font-size: 0.8rem !important;
        white-space: normal !important;
    }

    main {
        /*border-top-left-radius: 30px;*/
        /*border-top-right-radius: 30px;*/
        /*margin-top: 55vh;*/
        /*padding: 1.5rem 2rem 3rem;*/
        margin-top: 0 !important; /* 移动端减小上边距 */
        border-top-left-radius: 0 !important;
        border-top-right-radius: 0 !important;
        padding: 20px 0 40px !important;
    }

    main .container {
        padding-left: 20px;
        padding-right: 20px;
    }

    .float-contact {
        right: 16px;
        bottom: 20px;
        top: auto;
        transform: none;
        flex-direction: row;
        gap: 12px;
    }

    .float-btn {
        width: 46px;
        height: 46px;
        font-size: 20px;
    }

    .custom-go-top {
        left: 16px;
        bottom: 20px;
        width: 42px;
        height: 42px;
    }
}

.banner-inner {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 35px 24px;
    color: white;
}

@media (max-width: 480px) {
    .fullscreen-banner {
        padding-top: 60px !important;
        border-radius: 0 !important;
    }

    .banner-inner h1 {
        font-size: 2rem !important;
    }

    .banner-inner {
        padding: 5px 24px;
        margin-top: 40px;
    }

    .hero-sub {
        font-size: 1rem !important;
    }

    .btn-group {
        flex-direction: column;
        width: 100%;
    }

    .banner-btn {
        width: 100%;
        text-align: center;
    }
}

.banner-inner h1 {
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    max-width: 700px;
    margin-bottom: 16px;
    font-size: 2.4rem;
}

.hero-sub {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 16px;
    opacity: 0.95;
}

.banner-inner .p-1, .banner-inner .p-2, .banner-inner .p-3 {
    font-size: 0.95rem;
    max-width: 600px;
}

/* 主体main区域 */
main {
    position: relative;
    z-index: 10;
    background: #ffffff;
    border-top-left-radius: 48px;
    border-top-right-radius: 48px;
    padding: 32px 0 80px;
    margin-top: 65vh;
    box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.06);
    overflow-x: hidden;
}

/*main .container {*/
/*    max-width: 1400px;*/
/*    margin-left: auto;*/
/*    margin-right: auto;*/
/*    padding-left: 24px;*/
/*    padding-right: 24px;*/
/*}*/

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
    margin-top: 20px;
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
    margin-top: 20px;
}

.banner-btn {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.banner-btn-primary {
    background-color: var(--primary);
    color: white;
}

.banner-btn-primary:hover {
    background-color: #174bc0;
    transform: translateY(-2px);
}

.banner-btn-outline {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
}

.banner-btn-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

@media (max-width: 560px) {
    .banner-btn-group .banner-btn {
        width: 100%;
        text-align: center;
    }
}

/* 悬浮按钮 */
.float-contact {
    position: fixed;
    right: 28px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 16px;
    z-index: 99;
}

.float-btn {
    width: 54px;
    height: 54px;
    background: rgba(0, 82, 204, 0.85);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: 0.2s;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.float-btn:hover {
    transform: scale(1.08);
    background: var(--blue);
}

/* 电话按钮的父容器，设为相对定位，方便提示框定位 */
.float-tel-btn {
    position: relative;
}

/* 电话号码提示框，默认隐藏 */
.float-tel-btn .tel-tip {
    display: none;
    position: absolute;
    /* 提示框的位置，你可以根据按钮位置微调 */
    right: calc(100% + 12px);
    top: 50%;
    transform: translateY(-50%);

    background-color: #333;
    color: #fff;
    padding: 6px 12px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 14px;
    z-index: 9999;
}

/* 鼠标滑过时显示提示框 */
.float-tel-btn:hover .tel-tip {
    display: block;
}


.custom-go-top {
    position: fixed;
    bottom: 25px;
    left: 28px;
    width: 48px;
    height: 48px;
    background: #003366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s;
    z-index: 99;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}

.custom-go-top.show {
    opacity: 1;
    visibility: visible;
}

/* ========= 左侧固定联系栏样式开始 ========= */
.left-contact-sidebar {
    position: fixed;
    left: 0;
    top: 18%;
    width: 150px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    font-family: "Microsoft YaHei", sans-serif;
    z-index: 1000;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    box-shadow: 2px 4px 16px rgba(0, 0, 0, 0.08);
    /*border-radius: 0 12px 12px 0;*/
}

/* 关闭状态 */
.left-contact-sidebar.closed {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none;
}

/* 头部区域 - flex布局支持关闭按钮 */
.contact-header {
    background-color: #222;
    color: #ffffff;
    padding: 10px 8px 8px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
    /*border-radius: 0 8px 0 0;*/
}

.header-text {
    flex: 1;
    text-align: center;
}

.header-text h3 {
    margin: 0 0 2px;
    font-size: 17px;
    font-weight: 500;
}

.header-text p {
    margin: 0;
    font-size: 11px;
    opacity: 0.85;
}

/* 关闭按钮样式 */
.close-sidebar-btn {
    width: 26px;
    height: 26px;
    background: #0052cc;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    font-weight: bold;
    color: white;
    transition: 0.2s;
    flex-shrink: 0;
}

.close-sidebar-btn:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

/* 重新打开按钮 */
.reopen-trigger {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    padding: 12px 8px;
    background: #0052cc;
    border-radius: 0 8px 8px 0;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1001;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    visibility: hidden;
    transition: 0.2s;
}

/* 其余原有样式保持不变 */
.contact-item {
    padding: 8px 8px;
    border-bottom: 1px solid #f0f0f0;
}

.contact-item-gray {
    background-color: #f5f5f5;
}

.item-title {
    margin: 0 0 4px;
    font-size: 15px;
    color: #333333;
    text-align: center;
    font-weight: 500;
}

.item-phone {
    margin: 0;
    font-size: 15px;
    color: #222;
    font-weight: 600;
    text-align: center;
}

.qr-code-section {
    padding: 8px 6px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
}

.qr-code {
    width: 100px;
    height: 100px;
    margin: 0 auto 4px;
    display: block;
}

.qr-text {
    margin: 4px 0 0;
    font-size: 14px;
    color: #2c3e4e;
}

@media (max-width: 768px) {
    .left-contact-sidebar {
        display: none;
    }

    .reopen-trigger {
        display: none !important;
    }
}

/* ========= 左侧固定联系栏样式结束 ========= */

#footer {
    position: relative;
    z-index: 50;
    background: #ffffff !important;
    width: 100%;
}