/* 基础头尾样式 */
* {
    box-sizing: border-box;
}
html {
    overflow-x: hidden;
}
body {
    margin: 0;
    overflow-x: hidden;
}
footer {
    position: relative;
    z-index: 10;
}
.copyright  {
    position: relative;
    z-index: 10;
    height: 30px;
    color: #fff;
    background-color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
}
.copyright p {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}
.copyright .container {
    display: flex;
    justify-content: center;
    align-items: center;
}
.copyright img {
    width: 15px;
    margin-right: 6px;
}
.copyright p span {
    margin-right: 10px;
}

/* 首页样式 */
.font-inter {
    font-family: 'Inter', sans-serif;
}
.text-shadow {
    text-shadow: 0 3px 6px rgba(0,0,0,0.5);
}
.text-gradient {
    background-clip: text;
    -webkit-background-clip: text;
    background-image: linear-gradient(135deg, #0f4c81, #3b82f6);
}
.slide-in-left {
    transform: translateX(-100%);
    opacity: 0;
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}
.slide-in-right {
    transform: translateX(100%);
    opacity: 0;
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}
.slide-in-up {
    transform: translateY(50px);
    opacity: 0;
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}
.slide-in-active {
    transform: translateX(0);
    opacity: 1;
}
.slide-in-up.is-visible {
    transform: translateY(0);
    opacity: 1;
}
.carousel-item {
    display: none;
}
.carousel-item.active {
    display: block;
}
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}
.hover-footer:hover {
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.25);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 产品样式 */
@keyframes fadeInShake {
    0% { opacity: 0; transform: translateX(-60px); }
    50% { transform: translateX(60px); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInShakeRight {
    0% { opacity: 0; transform: translateX(60px); }
    50% { transform: translateX(-60px); }
    100% { opacity: 1; transform: translateX(0); }
}

.card-animation {
    opacity: 0;
    transform: translateZ(0);
}
.card-animation.is-visible {
    animation: fadeInShake 1s ease-out forwards;
}

.card-animation-right {
    opacity: 0;
}
.card-animation-right.is-visible {
    animation: fadeInShakeRight 1s ease-out forwards;
}


/* 关于我们 */
@keyframes slideInLeft {
    0% { opacity: 0; transform: translateX(-50px) scale(0.95); }
    70% { opacity: 0.9; transform: translateX(10px) scale(1.02); }
    100% { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes slideInRight {
    0% { opacity: 0; transform: translateX(50px) scale(0.95); }
    70% { opacity: 0.9; transform: translateX(-10px) scale(1.02); }
    100% { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes zoomIn {
    0% { opacity: 0; transform: scale(0.8); }
    70% { opacity: 0.9; transform: scale(1.05); }
    100% { opacity: 1; transform: scale(1); }
}
.animate-slideInLeft {
    animation: slideInLeft 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.animate-slideInRight {
    animation: slideInRight 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.animate-zoomIn {
    animation: zoomIn 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
[data-animation] {
    opacity: 0;
}

/* 新闻资讯 */
@keyframes riseUp {
    from {
        opacity: 0;
        transform: translateY(80px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.card-animation {
    opacity: 0;
    transition: transform 0.6s ease-in-out, box-shadow 0.6s ease-in-out;
}
.card-animation.active {
    animation: riseUp 1s ease forwards;
}

/* 申请试用 */
.trial-body {
    font-family: Arial, sans-serif;
    background-color: #f2f3f5; /* 默认天蓝色 */
    background-image: url('../images/apply_bak.jpg'); /* 添加背景图片 */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: flex-end; /* 修改为靠右侧对齐 */
    align-items: center;
    margin: 0;
}
@keyframes slideInFromLeft {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    80% {
        transform: translateX(15%);
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}
.trial-form {
    background-color: rgba(170, 198, 227, 0.6);
    padding: 30px; /* 增加内边距以调高高度 */
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 400px; /* 保持之前增加的宽度 */
    margin: 180px 10% 150px 0; /* 添加右侧外边距，让表单和右侧有一定间距 */
    animation: slideInFromLeft 1s ease forwards;
}
.trial-form h2 {
    text-align: center;
    height: 40px;
}
.banner-box.trial-form span {
    display: inline-block; /* 确保 span 元素可以设置高度 */
    height: 40px;
    line-height: 40px; /* 垂直居中文字 */
}
.trial-form input {
    width: 100%;
    padding: 12px; /* 增加内边距，让输入框更饱满 */
    margin-bottom: 15px;
    border: 2px solid #ccc; /* 增加边框宽度 */
    border-radius: 5px; /* 增加圆角 */
    background-color: #f8f9fa; /* 设置背景颜色 */
    font-size: 14px; /* 设置字体大小 */
    transition: border-color 0.3s ease-in-out, box-shadow 0.3s ease-in-out; /* 添加过渡效果 */
    box-sizing: border-box; /* 确保内边距和边框包含在宽度内 */
}

.trial-form input:hover {
    border-color: #007BFF; /* 鼠标悬停时改变边框颜色 */
}

.trial-form input:focus {
    border-color: #007BFF; /* 聚焦时改变边框颜色 */
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25); /* 聚焦时添加阴影 */
    outline: none; /* 去除默认的聚焦边框 */
}
.trial-form button {
    width: 100%;
    padding: 10px;
    background-color: #007BFF;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}
.trial-form button:hover {
    background-color: #0056b3;
}

.button-like-text {
    color: rgb(0, 162, 255);
    text-decoration: none;
    cursor: pointer;
}

.button-like-text:hover {
    text-decoration: underline;
}

/* 自定义弹框样式 */
.custom-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: white;
    color: black;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 26%;
    text-align: center;
    border-radius: 15px;
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

.modal-content p {
    /* 确保 p 元素在垂直和水平方向上都居中 */
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    flex-grow: 1; /* 让 p 元素填充剩余空间 */
}

.modal-button {
    background-color: #007BFF;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
}

.modal-button:hover {
    background-color: #0056b3;
}

@media (hover: none) {
     html {
         scroll-behavior: auto;
         -webkit-overflow-scrolling: touch;
     }
     body {
         overflow-y: visible;
         height: 100vh;
         touch-action: pan-y;
     }
     main {
         overflow-y: auto;
         -webkit-overflow-scrolling: touch;
         overscroll-behavior: contain;
     }
 }
/*手机设备处理*/
@media (max-width: 768px) {
    [data-animation],
    .card-animation,
    .card-animation-right,
    .animate-slideInLeft,
    .animate-slideInRight,
    .animate-zoomIn,
    .card-animation.active,
    .trial-form {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Mobile menu */
@media (max-width: 768px) {
  * {
    will-change: transform;
    backface-visibility: hidden;
  }
  
  #mobile-menu {
    transform: translateX(100%);
    transition: transform 0.3s ease-out;
    will-change: transform;
  }
  #mobile-menu:not(.hidden) {
    transform: translateX(0);
  }
  .translate-x-full {
    transform: translateX(100%);
  }
}
