body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
}
a {
    margin: 0;
    padding: 0;
    border: 0;
    vertical-align: baseline;
}
a {
    text-decoration: none;
    outline: none;
}
#mobileOffcanvas{
    width: 80%;
}

html {
    overflow-y: overlay;
    overflow-y: auto;
    scroll-behavior: smooth;
}
@supports (scrollbar-width: thin) {
    html {
        scrollbar-width: thin;
    }
}
html::-webkit-scrollbar {
    width: 6px;
    background: transparent;
}

html::-webkit-scrollbar-track {
    background: transparent;
    margin-block: 2px;
}

html::-webkit-scrollbar-thumb {
    background: rgba(80, 90, 105, 0.4);
    border-radius: 20px;
    transition: background 0.2s ease;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2);
}

html::-webkit-scrollbar-thumb:hover {
    background: rgba(52, 64, 84, 0.7);
}

html::-webkit-scrollbar-thumb:active {
    background: rgba(31, 41, 55, 0.85);
}

html::-webkit-scrollbar-corner {
    background: transparent;
}

html {
    scrollbar-color: rgba(80, 90, 105, 0.5) rgba(220, 230, 245, 0.2);
}

html:hover {
    scrollbar-color: rgba(52, 64, 84, 0.7) rgba(220, 230, 245, 0.2);
}

.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    border-radius: 1rem;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.1) !important;
}

.hero-section {
    background: linear-gradient(135deg, #f8f9fc 0%, #e9ecef 100%);
    border-radius: 1.5rem;
    padding: 2rem 1.5rem;
}

.footer-links a {
    text-decoration: none;
    transition: opacity 0.2s;
}

.footer-links a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

main {
    flex: 1 0 auto;
}

.scrolled {
    background-color: white !important;
    box-shadow: 0 .125rem .25rem rgba(var(--bs-body-color-rgb), .075) !important;
}

.scrolled .nav-link {
    color: black !important;
}

.scrolled .nav-phone {
    color: black !important;
}

.mobile-nav-bg {
    background-color: white !important;
    box-shadow: 0 .125rem .25rem rgba(var(--bs-body-color-rgb), .075) !important;
}

.desktop-nav .nav-link {
    font-weight: 500;
    padding: 0.2rem 0.86rem;
    border-radius: 1rem 0;
    transition: background-color 0.2s;
    color: white;
}

.desktop-nav .nav-phone {
    color: white;
}

.desktop-nav .nav-link.active {
    background-color: #0d6efd;
    color: white !important;
}

.desktop-nav .nav-link:hover {
    background-color: rgba(13, 110, 253, 0.1);
    color: #0d6efd !important;
}

.offcanvas-body .nav-link {
    color: #000;
    padding: 0.75rem 1rem;
    font-weight: 500;
    border-bottom: 1px solid #eee;
}

.offcanvas-body .nav-link:hover,
.offcanvas-body .nav-link.active {
    color: #000;
}

.my-card-t1 {
    font-size: 2.6rem;
    color: #0d6efd;
    font-weight: bold;
    margin-bottom: 0.46rem;
    text-transform: uppercase;
}

.my-card-p1 {
    font-size: 1.32rem;
    line-height: 2rem;
    border-left: 0.26rem #0d6efd solid;
    padding-left: 0.8rem;
    color: #333;
}

#mobile-menu-btn {
    border: none;
}

#mobile-menu-btn:active,
#mobile-menu-btn:hover,
#mobile-menu-btn:focus,
#mobile-menu-btn:target {
    background-color: unset;
}

.bg1 {
    width: 100%;
    padding: 3rem 0;
    background-image: url('assets/bg1.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.div-player {
    margin: 0 auto;
    height: 20rem;
    border: 0.4rem solid white;
    border-radius: 1rem;
    overflow: hidden;
    background: white;
    display: flex;
    align-items: center;
    justify-items: center;
}

.bg2 {
    width: 100%;
    background-image: url('assets/bg2.png');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    padding: 3rem 0;
}

.my-arrow {
    width: 2.4rem;
    height: 2.4rem;
}

.my-btn-tt {
    width: 100%;
    background-image: url('assets/bg3.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    padding: 1.6rem 1.6rem 0 1.6rem;
    border-radius: 1rem;
    min-height: 13rem;
    max-height: 13rem;
}

.my-btn-tt img {
    width: 40%;
    height: auto;
    align-self: flex-end;
    margin-left: 1rem;
}

.my-btn-tt h3 {
    font-size: 0.96rem;
    color: white;
}

.my-btn-tt h3 span {
    font-size: 0.96rem;
    color: white;
}

.my-kecheng {
    overflow: hidden;
    border-radius: 1rem;
}

.my-kecheng img {
    width: 100%;
}

.my-kecheng-b {
    background: #fff;
}

.my-kecheng-b h3 {
    font-size: 1.2rem;
    color: #000;
    font-weight: bold;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    display: inline-block;
}

.my-kecheng-b h3::after {
    content: "";
    background: #4ba0ec;
    height: 0.4rem;
    display: block;
    position: relative;
    top: -0.4rem;
    z-index: -1;
}

.my-kecheng-b p {
    margin-bottom: 0;
    line-height: 1.8rem;
}

.kctx-div {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
}

.kctx-div img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.kctx-div::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(6, 116, 228, 1), rgba(6, 116, 228, 0.7), rgba(6, 116, 228, 0));
    pointer-events: none;
    z-index: 1;
}

.kctx-nr {
    position: absolute;
    top: 2rem;
    left: 2rem;
    z-index: 2;
    color: white;
}
.kctx-div-p{
    display: flex;
    align-items: center;
    border-left: 0.16rem solid #fff;
    padding-left: 1rem;
}

.kctx-nr h3 {
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 2rem;
}

.kctx-div-p p {
    font-size: 1.2rem;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
}

.kctx-div-p p::before {
    content: "";
    background: #fff;
    width: 0.44rem;
    height: 0.44rem;
    border-radius: 50%;
    display: inline-block;
    margin-right: 1rem;
    position: absolute;
    left: -0.1rem;
}

.ly-card {
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}


.square-box {
    position: relative;
    border-radius: 1rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}
.rect-box {
    position: relative;
    border-radius: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}
.rect-box::before,.square-box::before{
    content: "";
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    position: absolute;
    background: rgba(0, 0, 0, 0.6);
}
.rect-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 1rem;
}
.square-box h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}
.rect-box h2 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
}
.lybg1 {
    background-image: url('assets/ly1.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.lybg2 {
    background-image: url('assets/ly2.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.lybg3 {
    background-image: url('assets/ly3.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.ly-box-nr{
    width: 100%;
    padding: 0 3rem;
    z-index: 10;
    color: white;
    text-align: center;
}

.fwtxbg{
    background-image: url('assets/fwtxbg.jpg');
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
}
.fwtx-div{
    cursor: pointer;
    width: 100%;
    position: relative;
    text-align: center;
    z-index: 10;
    padding: 2rem 0;
}
.fwtx-div span {
    font-size: 1.68rem;
    color: #ddd;
    text-transform: uppercase;
    font-weight: bold;
}
.fwtx-div h3 {
    font-size: 1.2rem;
    color: #000;
    padding: 1rem 0;
    font-weight: bold;
}
.fwtx-div p {
    font-size: 0.8rem;
    color: #333;
    margin-bottom: 0.6rem;
}
.fwtx-div em {
    height: 0.08rem;
    padding: 0 1.4rem;
    display: inline-block;
    background: #0d6efd;
    margin-top: 2rem;
}
.fwtx-div:hover h3, .fwtx-div:hover p, .fwtx-div:hover span{
    color: white;
}
.fwtx-div:hover em {
    background: white;
}
.fwtx-div:before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: -1;
    border-radius: 2rem 0 2rem 0;
    background: url('assets/fwtxh.jpg') no-repeat;
    background-size: 100%;
    -webkit-transform: scaleY(0);
    transform: scaleY(0);
    -webkit-transform-origin: 50%;
    transform-origin: 50%;
    -webkit-transition-property: transform;
    transition-property: transform;
    -webkit-transition-duration: 0.3s;
    transition-duration: 0.3s;
    -webkit-transition-timing-function: ease-out;
    transition-timing-function: ease-out;
}
.fwtx-div:hover:before, .fwtx-div:focus:before, .fwtx-div:active:before {
    -webkit-transform: scaleY(1);
    transform: scaleY(1);
}
@keyframes zx-btn-pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

.zx-btn{
    background: #0d6efd;
    color: #fff;
    font-size: 1.12rem;
    padding: 0.46rem 2rem;
    display: inline-block;
    border-radius: 0.6rem;
    transition: 0.3s all;
    margin-top: 1.6rem;
    animation: zx-btn-pulse 1s ease-in-out infinite;
}
.xw-div{
    background: white;
    padding: 1rem;
    border-radius: 1rem;
    cursor: pointer;
}

.xw-div span {
    font-size: 2rem;
    display: block;
    font-weight: bold;
    color: #000;
    padding-bottom: 0;
}
.xw-div em {
    display: block;
    font-size: 0.8rem;
    color: #999;
    margin-bottom: 0.6rem;
}
.xw-div h1 {
    font-size: 1.2rem;
    color: #333;
    line-height: 1.8rem;
    font-weight: bold;
}
.xw-div p {
    font-size: 0.8rem;
    color: #999;
    padding-top: 1rem;
}
.xw-div h2 {
    font-size: 1rem;
    color: #666;
    text-transform: uppercase;
}
.xw-div .news_img {
    overflow: hidden;
}
.xw-div img {
    overflow: hidden;
    -webkit-transition: all .5s linear;
    -moz-transition: all .5s linear;
    -ms-transition: all .5s linear;
    -o-transition: all .5s linear;
    transition: all .5s linear;
    position: relative;
}
.xw-div:hover h1{
    color: #0d6efd;
}

.xw-div:hover img{
    transform: scale(1.2);
}
.bg4{
    width: 100%;
    background-image: url('assets/bg4.jpg');
    background-size: cover;
    background-position: bottom;
    background-repeat: no-repeat;
}
.dzfw-div{
    box-sizing: border-box;
    padding: 2.6rem 1rem;
}
.dzfw-div h1 {
    font-size: 1.8rem;
    font-weight: bold;
    color: #fff;
    padding-bottom: 0.8rem;
}
@keyframes pulse-scale {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}
.dzfw-div a{
    background: #fff;
    font-size: 1rem;
    color: #333;
    line-height: 2.4rem;
    padding: 0 1.4rem;
    display: inline-block;
    border-radius: 0.6rem;
}
.dzfw-div a:hover{
    animation: pulse-scale 0.8s ease-in-out infinite;
    background: #0d6efd;
    color: white;
    border: 0.04rem solid #fff;
}
.saoma-div {
    flex-direction: column;
    display: flex;
    align-items: start;
}
.saoma-div img{
    width: 100%;
    margin-bottom: 0.6rem;
    max-width: 7rem;
}

/* 右下角固定容器 */
.ai-chat-corner {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1050;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* 聊天窗口卡片 */
.chat-card {
    width: 360px;
    height: 500px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-bottom: 12px;
    transition: all 0.2s ease;
}

/* 手机小屏适配 */
@media (max-width: 576px) {
    .chat-card {
        width: calc(100vw - 40px);
        height: 460px;
    }
}

/* 聊天头部 */
.chat-header {
    background: #0d6efd;
    color: white;
    padding: 12px 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* 消息区域 – 可滚动 */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background-color: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overscroll-behavior: contain;
}

/* 消息气泡通用 */
.message {
    max-width: 85%;
    padding: 8px 14px;
    border-radius: 18px;
    word-wrap: break-word;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* 用户消息（蓝色右对齐） */
.message-user {
    background-color: #0d6efd;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

/* 机器人消息（灰色左对齐） */
.message-bot {
    background-color: #e9ecef;
    color: #212529;
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

/* 正在输入指示器 */
.typing-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background-color: #e9ecef;
    border-radius: 18px;
    width: fit-content;
}
.typing-indicator span {
    width: 8px;
    height: 8px;
    background-color: #6c757d;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 1.2s infinite ease-in-out;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes pulse {
    0%, 60%, 100% { transform: scale(0.8); opacity: 0.5; }
    30% { transform: scale(1.2); opacity: 1; }
}

/* 输入区域 */
.chat-input-area {
    border-top: 1px solid #dee2e6;
    padding: 12px;
    background: white;
    display: flex;
    gap: 8px;
    align-items: center;
}
.chat-input {
    flex: 1;
    border: 1px solid #ced4da;
    border-radius: 30px;
    padding: 0 12px;
    height: 36px;
    outline: none;
    transition: 0.2s;
}
.chat-input:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 2px rgba(13,110,253,0.25);
}
.send-btn {
    width: 6rem;
    background-color: #0d6efd;
    border: none;
    color: white;
    border-radius: 30px;
    height: 36px;
    font-weight: 500;
    transition: background 0.2s;
}
.send-btn:hover {
    background-color: #0b5ed7;
}
.send-btn:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

/* 圆形浮动按钮 */
.chat-toggle-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0d6efd, #0a58ca);
    border: none;
    color: white;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.2s;
    cursor: pointer;
}
.chat-toggle-btn:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .my-card-t1 {
        font-size: 1.8rem;
    }

    .my-card-p1 {
        font-size: 1.16rem;
    }

    .fw-semibold {
        font-size: 1.2rem !important;
    }

    .bg1, .bg2 {
        padding: 0;
    }

    .square-box h2 {
        font-size: 1.2rem;
        margin-bottom: 0.6rem;
    }
    .rect-box h2 {
        font-size: 1.2rem;
        margin-bottom: 0.6rem;
    }
    .ly-box-nr{
        padding: 1.4rem;
    }
    .ly-box-nr p{
        font-size: 0.9rem;
    }
    .fwtx-div{
        background: #f1f1f1;
        padding: 1rem 0;
        border-radius: 1rem;
    }
    .fwtx-div h3{
        font-size: 1rem;
        padding: 0;
        margin-top: 0.4rem;
        margin-bottom: 0.6rem;
    }
    .fwtx-div p{
        margin-bottom: 0.4rem;
    }
    .fwtx-div em{
        margin-top: 0.2rem;
    }
    .fwtx-div:before{
        border-radius: 1rem;
    }
    .fwtxbg{
        background-image: url('assets/fwtxbg.jpg');
        background-size: contain;
        background-position: bottom;
        background-repeat: no-repeat;
    }
    .dzfw-div h1 {
        font-size: 1.2rem;
        padding-bottom: 0.4rem;
    }
    .dzfw-div a{
        font-size: 0.8rem;
        line-height: 2rem;
        padding: 0 1.2rem;
        border-radius: 0.6rem;
    }
    .dzfw-div{
        padding: 1.6rem 1rem 1rem 1rem;
    }
}