@import "./component/nav.css";
@import "./component/banner.css";
@import "./component/footer.css";
@import "./component/contact.css";

@font-face {
    font-family: 'DINCondensed';
    src: url('../font/DIN-Condensed-Bold-2.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'PingfangR';
    src: url('../font/PingfangR.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

/* 默认隐藏所有设备专属内容 */
.desktop-content,
.mobile-content,
.desktop-content-flex,
.mobile-content-flex {
    display: none !important;
}

.fixed-top-my {
    position: fixed !important;
    width: 100vw;
    max-width: 100vw;
    top: 0;
    left: 0;
    z-index: 1030;
    overflow-x: hidden;
}

/* 手机设备 */
@media (max-width: 767px) {
    body {
        overflow-x: visible;
        max-width: 100vw;
        position: relative;
    }

    .mobile-content {
        display: block !important;
    }

    .mobile-content-flex {
        display: flex !important;
    }

    #back-to-top {
        width: 50px !important;
        height: 50px !important;
        opacity: 1 !important;
    }

    /* 给AOS动画的直接父容器添加专用类，精准限制溢出 */
    section,
    footer,
    header {
        overflow: hidden;
        width: 100%;
        /* 确保容器本身不超出视口 */
        position: relative;
        /* 为绝对定位的动画元素提供参考 */
    }
}

/* 桌面设备 */
@media (min-width: 768px) {
    .desktop-content {
        display: block !important;
    }

    .desktop-content-flex {
        display: flex !important;
    }
}

.font-num {
    font-family: 'DINCondensed';
    letter-spacing: 4px;
}

/* 全局样式 */
:root {
    --primary-color: #19AD5E;
    --secondary-color: #6c757d;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
    --body-color: #f8f9fa;
    --text-color: #212529;
    --border-radius: 0.375rem;
    --transition: all 0.3s ease;
    --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.c-primary {
    color: #19AD5E !important;
}

.pointer {
    cursor: pointer;
}

html {
    font-size: 15px;
}

@media (min-width: 1400px) {
    .container {
        max-width: 1440px !important;
    }
}

body {
    color: var(--text-color);
    background-color: var(--body-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* 通用样式 */
a {
    text-decoration: none;
    transition: var(--transition);
}

img {
    max-width: 100%;
    height: auto;
}

.btn {
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #0b5ed7;
    border-color: #0a58ca;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* 主横幅样式 */
.hero-section {
    background-color: var(--light-color);
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section h1 {
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.hero-section p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--secondary-color);
}

/* 特性图标样式 */
.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    font-size: 2rem;
    border-radius: 50%;
}

/* 卡片样式 */
.card {
    border: none;
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--box-shadow);
}

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

/* 返回顶部按钮 */
#back-to-top {
    width: 3.13rem;
    height: 3.13rem;
    background: #FFFFFF;
    box-shadow: 0rem 0rem 1.25rem 0rem rgba(0, 0, 0, 0.15);
    opacity: 0.7;
    transition: var(--transition);
    border: 0;
}

#back-to-top:hover {
    opacity: 1;
}

/* 响应式样式 */
@media (max-width: 767px) {
    .container {
        padding: 0;
    }

    .hero-section {
        padding: 4rem 0;
        text-align: center;
    }

    .hero-section .btn-group {
        justify-content: center;
    }

    .navbar-nav .nav-link:after {
        display: none;
    }

    .hero-section {
        padding: 3rem 0;
    }

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

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

    .feature-icon {
        width: 3rem;
        height: 3rem;
        font-size: 1.5rem;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeIn {
    animation: fadeIn 1s ease forwards;
}

/* 自定义颜色 */
.bg-primary {
    background-color: var(--primary-color) !important;
}

.text-primary {
    color: var(--primary-color) !important;
}

/* 联系表单样式 */
.form-control {
    border-radius: var(--border-radius);
    border: 1px solid #ced4da;
    font-size: 0.88rem;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

/* 响应式图片 */
.img-fluid {
    max-width: 100%;
    height: auto;
}

/* 自适应视频容器 */
.video-container {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 比例 */
    height: 0;
    overflow: hidden;
}

.video-container iframe,
.video-container object,
.video-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* 面包屑导航 */
.breadcrumb {
    background-color: transparent;
    padding: 0.75rem 0;
}

/* 分页样式 */
.pagination .page-link {
    color: var(--primary-color);
    border-color: #dee2e6;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* 弹窗 */
.modal-content,
.modal-footer,
.modal-header {
    border: 0 !important;
}

.modal-header {
    background-image: url("../images/index/dialog-header-bg.webp");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    padding: 2.19rem 0 !important;
    text-align: center;
}

.modal-title {
    text-align: center;
    width: 100%;
    font-weight: 600;
    font-size: 2.19rem;
    color: #19AD5E;
    line-height: 3.13rem;
    letter-spacing: 1px;
    text-shadow: 3px 3px 0px #FFFFFF;
}

.btn-cancel {
    width: 20%;
    height: 4.38rem;
    background: #E8F6EE !important;
    border-radius: 0.94rem !important;
    font-weight: 600 !important;
    font-size: 1.5rem !important;
    color: #19AD5E !important;
    line-height: 1.88rem !important;
    margin: 0;
}

.btn-submit {
    width: 74%;
    height: 4.38rem;
    background: linear-gradient(90deg, #19AD5E 0%, #06C961 100%) !important;
    border-radius: 0.94rem !important;
    font-weight: 600 !important;
    font-size: 1.5rem !important;
    color: #FFFFFF !important;
    line-height: 1.88rem !important;
    margin: 0;
}

.modal-footer {
    padding: 1.88rem 0 2.5rem !important;
    justify-content: space-between !important;

}

.modal-body {
    padding: 2.5rem 3.13rem 0 !important;

}

.form-lable {
    font-weight: 600;
    font-size: 1rem;
    color: #303133;
    margin-bottom: 0.63rem;
}

.form-control {
    height: 2.5rem !important;
    border-radius: 0.31rem;
    border: 0.06rem solid #DCDFE6;
}

.form-control::placeholder {
    color: #AAAAAA;
}

.radio-wrap {
    display: flex;
    align-items: flex-start !important;
}

.radio-wrap .form-lable {
    white-space: nowrap;
}

.radio-content {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    width: 78%;
}

.icon-required {
    color: #E02020;
}

.custom-g {
    --bs-gutter-x: 1rem !important;
    --bs-gutter-y: 1.88rem !important;
}

.form-check-label {
    font-size: 0.88rem !important;
}

.ml-125 {
    margin-left: 1.25rem;
}

.form-check-input:checked {
    background-color: #19AD5E !important;
    border-color: #19AD5E !important;
}

.alert {
    position: fixed !important;
    top: 7vw !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    padding: 4px 30px;
    text-align: center;
}

@media (max-width: 767px) {
    .alert {
        font-size: 12px;
        top: 150px !important;
    }
}