/*styles\style-main.css*/
/* 主屏幕区域样式 - 网站主要内容区域 */
.main-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #9370DB 30%, #87CEEB 100%);
    /* 三色渐变背景 */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    z-index: 10;
    /* 在导航栏下方 */
    padding-top: 70px;
    /* 为顶部导航栏留出空间 */
}

/* 主标题样式 */
.main-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    /* 文字阴影 */
    animation: fadeInUp 1.2s ease-out forwards;
    /* 
    animation属性简写:
    - fadeInUp: 使用上面定义的动画
    - 1.2s: 动画持续时间为1.2秒
    - ease-out: 缓动函数，动画结束时减速
    - forwards: 动画完成后保持最后一帧的状态
  */
    opacity: 0;
    /* 初始状态设置为透明，防止动画开始前显示内容 */
}

/* 副标题样式 */
.main-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 1.8s ease-out forwards;
    opacity: 0;
    /* 初始状态设置为透明，防止动画开始前显示内容 */
}

/* 覆盖层容器 - 用于实现滚动效果 */
.cover-container {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0;
    /* 初始高度为0 */
    z-index: 15;
    /* 在主屏幕上方但在导航栏下方 */
    overflow: hidden;
    transition: height 0.5s cubic-bezier(0.33, 1, 0.68, 1);
    /* 自定义缓动函数的过渡 */
    will-change: height;
    /* 性能优化提示 */
}

/*内容块-technical*/
#pic {
    /* 为元素设置内边距，上下为 80px，左右为父元素宽度的 10% */
    padding: 80px 10%;
    background-color: rgba(245, 246, 247);
}

/*内容块-technical*/
#technical {
    /* 设置元素的宽度为其父元素宽度的 100% */
    width: 100%;
    /* 将元素的显示模式设置为 flex 布局，使其成为一个弹性容器 */
    display: flex;
    /* 设置弹性容器内项目的排列方向为垂直方向，即项目从上到下排列 */
    flex-direction: column;
    /* 定义项目在垂直主轴上的对齐方式为居中对齐 */
    justify-content: center;
    /* 定义项目在水平交叉轴上的对齐方式为居中对齐 */
    align-items: center;
    /* 为元素设置内边距，上下为 80px，左右为父元素宽度的 10% */
    padding: 80px 10%;
    background-color: #ffffff;
}

.technical-imgbox {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.technical-img {
    flex: 1;
    min-width: 280px;
    max-width: 350px;
    background: white;
    padding: 30px 25px;
    text-align: center;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.technical-img img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 20px;
}

.technical-img h2 {
    font-size: 22px;
    font-weight: 600;
    color: #2d3748;
    margin-bottom: 15px;
}

.technical-img a {
    display: inline-block;
    font-size: 16px;
    color: #718096;
    line-height: 1.6;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.2s ease;
}

/*内容块-introduce*/
#introduce {
    /* 设置元素的宽度为其父元素宽度的 100% */
    width: 100%;
    /* 将元素的显示模式设置为 flex 布局，使其成为一个弹性容器 */
    display: flex;
    flex-direction: column;
    /* 为元素设置内边距，上下为 80px，左右为父元素宽度的 10% */
    padding: 80px 10%;
    background-color: rgba(245, 246, 247);
}


.introduce-box {
    display: flex;
    gap: 40px;
    align-items: center;
}

.introduce-content {
    flex: 1;
    min-width: 300px;
}

.introduce-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #4a5568;
    margin-bottom: 20px;
    text-align: justify;
}

.introduce-content a {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 30px;
    background: #9370DB;
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(151, 77, 158, 0.3);
}

.introduce-img {
    flex: 1;
    max-width: 500px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    aspect-ratio: 4/3;
    position: relative;
}

.introduce-img img {
    width: 100%;
    height: 100%;
    /*100%填充容器 */
    display: block;
    object-fit: cover;
    /* 保持图片比例并填充容器 */
}

/*内容块-news*/
/* 新闻动态区块样式 */
#news {
    /* 设置元素的宽度为其父元素宽度的 100% */
    width: 100%;
    /* 将元素的显示模式设置为 flex 布局，使其成为一个弹性容器 */
    display: flex;
    /* 设置弹性容器内项目的排列方向为垂直方向，即项目从上到下排列 */
    flex-direction: column;
    /* 定义项目在垂直主轴上的对齐方式为居中对齐 */
    justify-content: center;
    /* 定义项目在水平交叉轴上的对齐方式为居中对齐 */
    align-items: center;
    /* 为元素设置内边距，上下为 80px，左右为父元素宽度的 10% */
    padding: 80px 10%;
    background-color: #ffffff;
}

.choose-box {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    gap: 30px;
}

.choose-box a {
    padding: 10px 25px;
    background: #f1f5f9;
    color: #64748b;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.choose-box a:hover {
    background: #9370DB;
    color: white;
}

.code-box {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.code1 {
    flex: 1;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.code1:hover {
    transform: translateY(-5px);
}

.code1 a {
    text-decoration: none;
    color: inherit;
    display: block;
}

.code1-img {
    height: 200px;
    overflow: hidden;
}

.code1-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.code1:hover .code1-img img {
    transform: scale(1.05);
}

.code1-text {
    padding: 20px;
}

.code1-title {
    font-size: 18px;
    font-weight: 600;
    color: #2d3748;
    line-height: 1.5;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.code1-footer font {
    font-size: 14px;
    color: #64748b;
}

.code2 {
    flex: 1;
}

.code2 ul {
    list-style: none;
}

.code2 li {
    margin-bottom: 15px;
}

.news-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid #e2e8f0;
}

.news-item:hover {
    transform: translateX(5px);
    border-left-color: #9370DB;
    box-shadow: 0 5px 15px rgba(76, 110, 245, 0.15);
}

.news-item a {
    display: flex;
    text-decoration: none;
    color: inherit;
    padding: 15px;
}

.code2-time {
    min-width: 70px;
    text-align: center;
    padding: 10px;
    background: #f8fafc;
    border-radius: 6px;
    margin-right: 15px;
    transition: background-color 0.3s ease;
}

.news-item:hover .code2-time {
    background: #d4c9e9;
}

.code2-time time {
    font-size: 24px;
    font-weight: 700;
    color: #9370DB;
    line-height: 1;
    margin-bottom: 5px;
}

.code2-time:after {
    content: attr(data-month);
    font-size: 14px;
    color: #64748b;
}

.code2-text {
    flex: 1;
}

.code2-title {
    font-size: 16px;
    color: #2d3748;
    line-height: 1.5;
    margin-bottom: 5px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.news-item:hover .code2-title {
    color: #9370DB;
}

#news>a {
    display: block;
    text-align: center;
    padding: 12px 30px;
    background: #f1f5f9;
    color: #64748b;
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    margin: 0 auto;
    width: fit-content;
    transition: all 0.3s ease;
}

#news>a:hover {
    background: #9370DB;
    color: white;
}

/* 轮播容器 - 全屏显示 */
.carousel-container {
    z-index: 10;
    position: relative;
    width: 80vw;
    height: 75vh;
    overflow: hidden;
}

/* 图片容器 */
.carousel-image {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.carousel-image.active {
    opacity: 1;
}

.carousel-image img {
    width: 100%;
    height: 100%;
    object-fit: initial;
}

/* 导航按钮样式 - 矩形边框 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(184, 177, 177, 0.1);
    width: 60px;
    height: 110px;
    font-size: 1.8rem;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 导航按钮悬停效果 - 紫色 */
.carousel-btn:hover {
    background: rgba(106, 27, 154, 0.7);
    border-color: #6a1b9a;
}

/* 上一个按钮位置 */
.carousel-btn.prev {
    left: 30px;
}

/* 下一个按钮位置 */
.carousel-btn.next {
    right: 30px;
}

/* 指示器容器样式 */
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

/* 单个指示器样式 - 矩形 */
.indicator {
    width: 40px;
    height: 8px;
    background: rgba(184, 177, 177, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
}

/* 活动状态指示器样式 */
.indicator.active {
    background: rgba(106, 27, 154, 0.7);
}

/* 指示器悬停效果 - 紫色 */
.indicator:hover {
    background: rgba(106, 27, 154, 0.7);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .carousel-title {
        font-size: 1.8rem;
        bottom: 80px;
    }

    .carousel-btn {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .carousel-btn.prev {
        left: 15px;
    }

    .carousel-btn.next {
        right: 15px;
    }

    .indicator {
        width: 30px;
        height: 6px;
    }
}