/* 首页样式修复 - 解决样式变形问题 */

/* 基础布局修复 */
.indexFirst {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #000;
}

.indexFirstWord {
    position: absolute;
    left: 20%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99;
    color: #fff;
    max-width: 60%;
}

.indexFirstWord h1 {
    font-size: 3.5em;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.indexFirstWord span {
    color: #c01639;
    font-size: 1.4em;
    font-weight: 600;
    margin-top: 20px;
    display: block;
}

/* 视频播放器修复 */
.video-js {
    width: 100% !important;
    height: 100vh !important;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 8;
}

.indexFirstBgBox {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9;
    overflow: hidden;
}

/* 背景图片修复 */
.indexFirstBg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://anesita-oss.oss-cn-qingdao.aliyuncs.com/gaoding/index/bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 9;
}

/* Swiper轮播图修复 */
.swiper-container {
    position: absolute;
    bottom: 0;
    left: 20%;
    width: 500px;
    z-index: 99;
    height: auto;
}

.swiper-slide {
    background-color: #fff;
    padding: 8% 20% 5% 8%;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
}

.swiperSlideWord h3 {
    color: #595757;
    margin-bottom: 15px;
    font-size: 1.8em;
    font-weight: 600;
}

.swiperSlideWord p {
    color: #595757;
    font-size: 1.4em;
    line-height: 1.6;
}

.swiper-pagination {
    right: 5%;
    bottom: 12%;
}

.swiper-pagination-bullet {
    margin-right: 5px;
    background: #ccc;
    opacity: 0.7;
}

.swiper-pagination-bullet-active {
    background: #c01639;
    opacity: 1;
}

/* 滚动按钮修复 */
#downBtn {
    position: absolute;
    right: 15%;
    bottom: 20%;
    z-index: 100;
    width: 35px;
    cursor: pointer;
}

#downBtn img {
    width: 100%;
    opacity: 0.8;
    transition: opacity 0.3s, transform 0.3s;
}

#downBtn:hover img {
    opacity: 1;
    transform: translateY(5px);
}

/* 产品展示区域修复 */
.indexSec {
    padding: 5% 0;
    background: url('https://anesita-oss.oss-cn-qingdao.aliyuncs.com/gaoding/index/bg.jpg');
    background-size: 50px 50px;
    background-attachment: fixed;
}

.indexSecRow {
    margin-top: 40px;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch; /* 确保所有列高度一致 */
}

.indexSecCol {
    margin-bottom: 30px;
    transition: transform 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.indexSecCol:hover {
    transform: translateY(-5px);
}

.indexSecCol a {
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.indexSecColTop {
    position: relative;
    overflow: hidden;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    height: 200px; /* 固定高度确保一致性 */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.indexSecColTop span {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #c01639;
    color: #fff;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8em;
    z-index: 2;
}

.indexSecColTopImg {
    width: 80%; /* 统一图片宽度百分比 */
    height: auto;
    max-height: 160px; /* 限制最大高度 */
    object-fit: contain; /* 保持图片比例 */
    transition: transform 0.3s;
}

.indexSecCol:hover .indexSecColTopImg {
    transform: scale(1.05);
}

.indexSecColBot {
    padding: 25px 20px;
    text-align: center;
    background: #fff;
    border-radius: 0 0 8px 8px;
    min-height: 180px; /* 确保文字区域高度一致 */
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1; /* 填充剩余空间 */
}

.indexSecColBot h4 {
    color: #c01639;
    font-size: 1.6em;
    margin-bottom: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.indexSecColBot p {
    color: #595757;
    font-size: 1.2em;
    line-height: 1.5;
    text-align: left; /* 左对齐小文字 */
    margin: 0;
    flex-grow: 1;
}

/* 响应式设计修复 */
@media (max-width: 1200px) {
    .indexFirstWord {
        left: 15%;
        max-width: 70%;
    }
    
    .swiper-container {
        left: 15%;
        width: 450px;
    }
}

@media (max-width: 992px) {
    .indexFirstWord {
        left: 10%;
        max-width: 80%;
    }
    
    .indexFirstWord h1 {
        font-size: 3em;
    }
    
    .swiper-container {
        left: 10%;
        width: 400px;
    }
}

@media (max-width: 768px) {
    .indexFirstWord {
        left: 10%;
        right: 10%;
        text-align: center;
        max-width: none;
    }
    
    .indexFirstWord h1 {
        font-size: 2.5em;
    }
    
    .swiper-container {
        left: 10%;
        right: 10%;
        width: auto;
    }
    
    .swiper-slide {
        padding: 5%;
    }
    
    #downBtn {
        right: 50%;
        transform: translateX(50%);
    }
    
    .indexSecCol {
        margin-bottom: 20px;
    }
    
    /* 移动端产品展示区域调整 */
    .indexSecColTop {
        height: 180px;
    }
    
    .indexSecColTopImg {
        width: 70%;
        max-height: 140px;
    }
    
    .indexSecColBot {
        min-height: 160px;
        padding: 20px 15px;
    }
    
    .indexSecColBot h4 {
        font-size: 1.4em;
        margin-bottom: 12px;
    }
    
    .indexSecColBot p {
        font-size: 1.1em;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .indexFirstWord h1 {
        font-size: 2em;
    }
    
    .indexFirstWord span {
        font-size: 1.2em;
    }
    
    .swiperSlideWord h3 {
        font-size: 1.5em;
    }
    
    .swiperSlideWord p {
        font-size: 1.2em;
    }
    
    /* 小屏幕产品展示区域调整 */
    .indexSecColTop {
        height: 160px;
    }
    
    .indexSecColTopImg {
        width: 65%;
        max-height: 120px;
    }
    
    .indexSecColBot {
        min-height: 140px;
        padding: 15px 10px;
    }
    
    .indexSecColBot h4 {
        font-size: 1.3em;
        margin-bottom: 10px;
    }
    
    .indexSecColBot p {
        font-size: 1em;
        line-height: 1.3;
    }
}

/* 动画效果优化 */
.indexSca {
    animation: scaleIn 1s ease-out forwards;
}

@keyframes scaleIn {
    from {
        transform: scale(1.1);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.show .enter-y,
.show .enter-x,
.show .enter-x-r {
    opacity: 1;
    transform: translate(0);
    transition: all 0.8s ease-out;
}

/* 加载状态优化 */
.indexFirstWord {
    opacity: 0;
    transition: opacity 1s ease-out;
}

.indexFirstWord.show {
    opacity: 1;
}

/* 修复Bootstrap类名错误 */
.visible-xs {
    display: block !important;
}

.visible-sm {
    display: block !important;
}

.visible-md {
    display: block !important;
}

.visible-lg {
    display: block !important;
}

@media (max-width: 767px) {
    .visible-xs {
        display: block !important;
    }
    .hidden-xs {
        display: none !important;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .visible-sm {
        display: block !important;
    }
    .hidden-sm {
        display: none !important;
    }
}

@media (min-width: 992px) and (max-width: 1199px) {
    .visible-md {
        display: block !important;
    }
    .hidden-md {
        display: none !important;
    }
}

@media (min-width: 1200px) {
    .visible-lg {
        display: block !important;
    }
    .hidden-lg {
        display: none !important;
    }
}
