/* 全局样式 */
:root {
    --primary-color: #339f5e;
    --secondary-color: #4ae378;
    --accent-color: #36b9cc;
    --light-color: #f8f9fc;
    --dark-color: #5a5c69;
    --success-color: #1cc88a;
    --info-color: #36b9cc;
    --warning-color: #f6c23e;
    --danger-color: #e74a3b;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.bg-color {
    background-color: #f3f6f1;
}

a {
    text-decoration: none;
    color: var(--primary-color);
}

a:hover {
    color: var(--secondary-color);
    text-decoration: none;
}

/* 导航栏样式 */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
}

.navbar-brand img {
    max-height: 40px;
}

.navbar-nav .nav-link {
    font-weight: 500;
    margin: 0 10px;
    position: relative;
}

.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--primary-color);
}

/* 页面标题区域 */
.page-header {
    margin-top: 70px;
}

/* 版块标题样式 */
.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 30px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.section-title.text-start::after {
    left: 0;
    transform: none;
}

/* 主视觉区域 */
.hero-section {
    position: relative;
    margin-top: 80px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-section img {
    max-width: 100%;
    height: auto;
    margin: auto;
}

.cst-comp-img {
    margin-top: 100px;
}

.cst-title {
    font-size: 24px;
    margin-bottom: 10px;
    color: #0dc161;
}

.cst-title small {
    font-size: 12px;
}

.cst-content {
    background: #0dc161;
    color: white;
    padding: 30px 20px;
    font-size: 14px;
    position: relative;
    margin-left: -80px;
    margin-right: 80px;
    text-align: justify;
}

.cst-comp p {
    font-size: 14px;
    color: #444;
}

.card-title {
    font-size: 24px;
}

.card-body p {
    font-size: 14px;
    color: #444;
    margin: 0;
}

#team .card-body p {
    color: #000;
}

.unicode-arrow {
    text-align: center;
    display: block;
    font-size: 2rem;
    line-height: 1.4rem;
    color: var(--primary-color);
}

.unicode-title {
    color: var(--primary-color);
}

/* 版块通用样式 */
section {
    padding: 0;
}

.bg-light {
    background-color: var(--light-color) !important;
}

/* 特色图标样式 */
.feature-icon {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

/* 视频容器样式 */
.video-container {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.video-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.video-thumbnail {
    width: 100%;
    height: auto;
    display: block;
    transition: filter 0.3s ease;
}

.video-container:hover .video-thumbnail {
    filter: brightness(0.8);
}

.video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: none;
}

.video-play-btn svg {
    color: white;
    width: 30px;
    height: 30px;
    margin-left: 3px;
}

.video-container:hover .video-play-btn {
    background-color: rgba(0, 0, 0, 0.8);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-container video {
    width: 100%;
    height: auto;
    display: none;
}

/* 视频加载指示器样式 */
.video-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.video-loading .spinner-border {
    width: 3rem;
    height: 3rem;
    border-width: 0.3em;
}

/* 热点地图样式 */
.service-map-container {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.map-hotspot {
    position: absolute;
    width: 20px;
    height: 20px;
    cursor: pointer;
    z-index: 1;
    transform: translate(-50%, -50%);
}

.hotspot-dot {
    width: 16px;
    height: 16px;
    background-color: var(--primary-color);
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px var(--primary-color);
    position: relative;
    animation: pulse 2s infinite;
    z-index: 1;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(26, 115, 232, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(26, 115, 232, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(26, 115, 232, 0);
    }
}

.hotspot-tooltip {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    padding: 15px;
    width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1000;
    pointer-events: none;
}

.hotspot-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: white transparent transparent transparent;
}

.hotspot-tooltip h4 {
    margin: 0 0 10px 0;
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 600;
}

.hotspot-tooltip p {
    margin: 5px 0;
    font-size: 14px;
    color: #555;
}

.map-hotspot:hover .hotspot-tooltip {
    opacity: 1;
    visibility: visible;
}

.map-hotspot:hover .hotspot-dot {
    transform: scale(1.2);
    background-color: #1a5cb8;
}

/* 卡片样式 */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 10px;
    overflow: hidden;
}

.cst-card {
    min-height: 400px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-img-top {
    height: 200px;
    object-fit: fill;
}

/* 服务项目版块 */
.service-card {
    text-align: center;
    padding: 30px 20px;
    height: 100%;
}

.service-card .card-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(78, 115, 223, 0.1);
    border-radius: 50%;
}

.service-card .card-icon img {
    max-width: 60px;
    max-height: 60px;
}

/* 团队成员版块 */
.team-member {
    text-align: center;
    margin-bottom: 30px;
}

.team-member img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 20px;
    border: 5px solid #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* 时间轴版块 */
.timeline {
    position: relative;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    background-color: var(--primary-color);
}

.timeline-item {
    position: relative;
    margin-bottom: 50px;
    width: 100%;
}

.timeline-item:nth-child(odd) {
    padding-right: calc(50% + 40px);
    text-align: right;
}

.timeline-item:nth-child(even) {
    padding-left: calc(50% + 40px);
}

.timeline-dot {
    position: absolute;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: 3px solid white;
    box-shadow: 0 0 0 3px var(--primary-color);
    z-index: 1;
}

.timeline-content {
    background-color: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.timeline-content img {
    max-width: 100%;
    border-radius: 5px;
    margin-top: 15px;
}

.timeline-year {
    font-weight: bold;
    color: var(--primary-color);
    font-size: 1.2rem;
}

/* 合作伙伴版块 */
.partner-logo {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.partner-logo:hover {
    opacity: 1;
}

.partner-logo img {
    max-width: 100%;
    max-height: 50px;
}

/* 联系表单样式 */
.form-control,
.form-select {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: border-color 0.3s ease;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(78, 115, 223, 0.25);
}

/* 常见问题版块 */
.accordion-button:not(.collapsed) {
    background-color: rgba(78, 115, 223, 0.1);
    color: var(--primary-color);
    font-weight: 500;
}


/* 页脚样式 */
footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: #fff !important;
    text-decoration: none;
}

.social-links a {
    margin-bottom: 0;
    font-weight: 300;
    font-size: .9rem;
    transition: transform 0.3s ease;
}

.social-links a:hover {
    transform: translateY(-3px);
}

.list-unstyled li {
    font-weight: 300;
    font-size: .9rem;
}

.course {
    max-height: 100px;
}

.course-1 {
    background: linear-gradient(to bottom, #bffdec, #ffffff);
}

.course-2 {
    background: linear-gradient(to bottom, #fed6e6, #ffffff);
}

.course-3 {
    background: linear-gradient(to bottom, #faefc7, #ffffff);
}

.course-4 {
    background: linear-gradient(to bottom, #cce7fc, #ffffff);
}

.course-5 {
    background: linear-gradient(to bottom, #e3d6fc, #ffffff);
}

.course-6 {
    background: linear-gradient(to bottom, #ddf7eb, #ffffff);
}

.course-7 {
    background: linear-gradient(to bottom, #c4f0ff, #ffffff);
}

.course-8 {
    background: linear-gradient(to bottom, #fddecb, #ffffff);
}

.course-9 {
    background: linear-gradient(to bottom, #ffcac9, #ffffff);
}

.course-10 {
    background: linear-gradient(to bottom, #dafbb4, #ffffff);
}

.course-11 {
    background: linear-gradient(to bottom, #eaccfe, #ffffff);
}

.course-12 {
    background: linear-gradient(to bottom, #b0fea5, #ffffff);
}

.course-13 {
    background: linear-gradient(to bottom, #fcd8bb, #ffffff);
}

.course-14 {
    background: linear-gradient(to bottom, #fbccff, #ffffff);
}

.course-15 {
    background: linear-gradient(to bottom, #baf6ff, #ffffff);
}

.course-16 {
    background: linear-gradient(to bottom, #ffeaaa, #ffffff);
}

.course img {
    width: 74px;
}

.one-money-pic:after {
    display: block;
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: #0000;
    transition: all .6s;
    background-position: 50% 100%
}

.one-money-pic:hover:after {
    transition: all .6s;
    content: "识别二维码体验";
    color: #fff;
    padding-top: 0;
    box-sizing: border-box;
    position: relative;
    left: 0;
    top: -100%;
    width: 100%;
    height: 100%;
    background: #00000080;
    background-image: url(https://video-2.51nst.net/51xxl/image/erweima_1yuan.jpg);
    background-repeat: no-repeat;
    background-size: 30%;
    background-position: 50% 50%
}


/* swiper */
.device {
    margin: 0 auto;
    margin-top: 60px;
}

.swiper-container {
    width: 100%;
    height: 370px;
    color: #fff;
    background: #050505;
    text-align: center;
    border: 3px solid #fff;
    box-shadow: 0px 0px 5px #000;
    border-radius: 10px;
}

.swiper-slide {
    height: 100%;
    opacity: 0.4;
    -webkit-transition: 300ms;
    -moz-transition: 300ms;
    -ms-transition: 300ms;
    -o-transition: 300ms;
    transition: 300ms;
    -webkit-transform: scale(0);
    -moz-transform: scale(0);
    -ms-transform: scale(0);
    -o-transform: scale(0);
    transform: scale(0);
}

.swiper-slide-visible {
    opacity: 0.5;
    -webkit-transform: scale(0.8);
    -moz-transform: scale(0.8);
    -ms-transform: scale(0.8);
    -o-transform: scale(0.8);
    transform: scale(0.8);
}

.swiper-slide-active {
    top: 0;
    opacity: 1;
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    -ms-transform: scale(1);
    -o-transform: scale(1);
    transform: scale(1);
}

.swiper-slide .title {
    font-style: italic;
    font-size: 42px;
    margin-top: 80px;
    margin-bottom: 0;
    line-height: 45px;
}

.swiper-visible-switch {
    opacity: 1;
    top: 0;
    background: #aaa;
}

.swiper-active-switch {
    background: #fff;
}

.h-800 {
    width: 900px;
    height: 600px;
    margin-top: -100px;
}


/* 响应式设计 */

/* 大屏幕 */
@media (min-width: 1200px) {
    .cst-card {
        min-height: 430px;
    }

    .hero-content h1 {
        font-size: 4rem;
    }

    .hero-content p {
        font-size: 1.8rem;
    }
}

/* 中等屏幕 */
@media (max-width: 991.98px) {
    .h-800 {
        width: 100%;
        height: 480px !important;
    }

    .device {
        height: 300px;
    }

    .swiper-container {
        height: 300px;
    }

    .cst-comp-img {
        margin-top: 20px;
        width: 100%;
        box-shadow: none !important;
        border-radius: 0 !important;
    }

    .cst-content {
        margin-left: 0;
        margin-right: 0;
    }

    .hero-content h1 {
        font-size: 3rem;
    }

    .hero-content p {
        font-size: 1.3rem;
    }

    .timeline::before {
        left: 30px;
    }

    .unicode-arrow {
        text-align: left;
        margin-left: 14px;
    }

    .timeline-item {
        padding-left: 70px !important;
        padding-right: 0 !important;
        text-align: left !important;
    }

    .timeline-dot {
        left: 30px;
    }
}

/* 小屏幕 */
@media (max-width: 767.98px) {

    .h-800 {
        width: 100%;
        height: 380px !important;
    }

    .device {
        height: 250px;
    }

    .swiper-container {
        height: 250px;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-content p {
        font-size: 1.1rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .page-header {
        margin-top: 60px;
    }

    .timeline::before {
        left: 20px;
    }

    .unicode-arrow {
        text-align: left;
        margin-left: 4px;
    }

    .timeline-item {
        padding-left: 50px !important;
    }

    .timeline-dot {
        left: 20px;
        width: 15px;
        height: 15px;
    }

    .timeline-content {
        padding: 15px;
    }
}

/* 超小屏幕 */
@media (max-width: 575.98px) {
    #cps-600 .mb-5 {
        margin-bottom: 0 !important;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content .btn {
        padding: 10px 20px;
        font-size: 1rem;
    }

    .feature-icon {
        width: 60px;
        height: 60px;
    }
}

.bg-img-1 {
    background-image: url('https://video-2.51nst.net/www/image/bg-img-1.jpg');
    background-size: cover;
    background-position: center;
}

.bg-img-2 {
    background-image: url('https://video-2.51nst.net/www/image/bg-img-2.jpeg?t=1');
    background-size: cover;
    background-position: center;
}

.bg-img-3 {
    background-image: url('https://video-2.51nst.net/www/image/bg-img-3.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: inherit;
}

.bg-img-4 {
    background-image: url('https://video-2.51nst.net/www/image/bg-img-4.jpeg');
    background-size: cover;
    background-position: center;
    min-height: 600px;
}


.cst-py-5 {
    padding-top: 3rem !important;
    padding-bottom: 1rem !important;
}

.cst-content-600 p {
    padding: 0 !important;
    margin: 0 !important;
    font-size: .9rem;
    text-shadow: 2px 2px #fff, 2px 2px gray;
}

.ai-content {
    font-size: 14px;
    font-weight: 300;
    text-align: justify;
    text-indent: 30px;
}

.cst-anchor p {
    margin-bottom: 0;
}

.pb-150 {
    padding-bottom: 150px !important;
}

.py-5-clear-bottom {
    padding-bottom: 0 !important;
}