/* 轮播图样式 */
.hero {
    position: relative;
    height: 100vh;
    background-size: cover;
    background-position: center;
    color: white;
    margin-top: 60px;
    width: 100%;
    overflow: hidden;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    text-align: center;
    width: 90%;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.hero-content h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2em;
    margin-bottom: 15px;
    line-height: 1.6;
}

/* 服务特点部分 */
.features {
    padding: 80px 0;
    background: white;
    position: relative;
    overflow: hidden;
    width: 100%;
    display: block;
}

.features::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(135deg, rgba(0,123,255,0.03) 25%, transparent 25%, transparent 75%, rgba(0,123,255,0.03) 75%);
    background-size: 60px 60px;
    opacity: 0.3;
    z-index: 0;
    animation: backgroundMove 30s linear infinite;
}

.features .container {
    position: relative;
    z-index: 1;
    max-width: 1400px;
}

.features-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    margin-top: 40px;
    padding: 30px;
    width: 100%;
}

.feature-box {
    text-align: center;
    padding: 50px 40px;
    transition: all 0.3s ease;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    position: relative;
    z-index: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 350px;
    width: 100%;
}

.feature-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,123,255,0.15);
}

.feature-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, #007bff, #00a0ff);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.feature-box:hover::before {
    opacity: 0.05;
}

.feature-icon {
    font-size: 2.5em;
    color: #007bff;
    height: 120px;
    width: 120px;
    line-height: 120px;
    border-radius: 50%;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, rgba(0,123,255,0.1) 0%, rgba(0,160,255,0.1) 100%);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: linear-gradient(135deg, #007bff, #00a0ff) border-box;
    -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: destination-out;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.feature-box:hover .feature-icon::after {
    opacity: 1;
}

.feature-box h3 {
    font-size: 1.6em;
    margin: 25px 0;
    color: #333;
    transition: color 0.3s ease;
    font-weight: 600;
}

.feature-box:hover h3 {
    color: #007bff;
}

.feature-box p {
    color: #666;
    line-height: 1.8;
    margin: 0 auto;
    max-width: 320px;
    transition: color 0.3s ease;
    font-size: 1.1em;
}

/* 添加背景移动动画 */
@keyframes backgroundMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(-60px, -60px);
    }
}

/* 解决方案部分 */
.solutions {
    padding: 80px 0;
    background-color: #f8f9fa;
    position: relative;
    width: 100%;
    display: block;
}

.solutions::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/solution-bg.jpg') center/cover fixed;
    opacity: 0.1;
    z-index: 0;
}

.solutions .container {
    position: relative;
    z-index: 1;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 40px;
    width: 100%;
    padding: 0 30px;
}

.solution-card {
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    position: relative;
}

.solution-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, #007bff, #00a0ff);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.solution-card:hover::after {
    opacity: 0.2;
}

/* ... (继续添加其他解决方案相关样式) ... */

/* 新闻预览模块样式 */
.news-preview {
    padding: 80px 0;
    background-color: #fff;
    width: 100%;
    display: block;
}

.news-preview-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 40px;
    width: 100%;
    padding: 0 30px;
}

/* ... (继续添加其他新闻模块相关样式) ... */

/* 最新产品展示 */
.latest-products {
    padding: 80px 0;
    background-color: #f8f9fa;
    width: 100%;
    display: block;
}

.product-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
    width: 100%;
    padding: 0 30px;
}

/* ... (继续添加其他产品展示相关样式) ... */

/* 动画 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 响应式样式 */
@media screen and (max-width: 1200px) {
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-container {
        gap: 30px;
        padding: 20px;
    }

    .feature-box {
        padding: 40px 30px;
        min-height: 320px;
    }
}

@media screen and (max-width: 768px) {
    .hero {
        height: 50vh;
    }

    .hero .el-carousel,
    .hero .el-carousel__container {
        height: 100% !important;
    }

    .hero .el-carousel-item {
        height: 100% !important;
    }

    .hero-content {
        width: 95%;
    }

    .hero-content h1 {
        font-size: 20px;
        margin-bottom: 0;
    }

    .hero-content p,
    .hero-content .cta-button,
    .hero-content div:last-child {
        display: none !important;
    }

    .solutions-grid {
        grid-template-columns: 1fr;
    }

    .news-preview-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .news-preview-image {
        height: 250px;
    }

    .features-container {
        grid-template-columns: 1fr;
        padding: 20px 10px;
        gap: 40px;
    }

    .feature-box {
        max-width: 500px;
        margin: 0 auto;
        min-height: 300px;
        padding: 40px 30px;
    }

    .feature-icon {
        height: 100px;
        width: 100px;
        line-height: 100px;
    }

    .features-container,
    .solutions-grid,
    .news-preview-grid,
    .product-slider {
        grid-template-columns: 1fr;
        gap: 30px;
        padding: 0 20px;
    }

    .container {
        padding: 0;
    }

    .feature-box,
    .solution-card,
    .news-preview-card,
    .product-card {
        margin: 0 auto;
        width: 100%;
    }

    /* 隐藏 PC 端时间轴 */
    .pc-timeline {
        display: none !important;
    }

    .h5-timeline {
        display: block;
        margin: 20px 0;
        position: relative;
    }

    /* 卡片样式 */
    .h5-timeline__card {
        background: #fff;
        border-radius: 12px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
        margin: 0 20px;
        height: 100%;
        display: flex;
        align-items: center;
        padding: 25px 20px;
    }

    .h5-timeline__content {
        width: 100%;
        text-align: center;
    }

    .h5-timeline__year {
        color: #007bff;
        font-size: 26px;
        font-weight: bold;
        margin-top: 10px;
        margin-bottom: 10px;
        position: relative;
        display: inline-block;
    }

    .h5-timeline__text {
        color: #666;
        font-size: 15px;
        line-height: 1.6;
        padding: 0 10px;
    }

    /* Element UI 轮播组件样式覆盖 */
    .h5-timeline .el-carousel__container {
        height: 100%;
    }

    .h5-timeline .el-carousel__arrow {
        width: 32px;
        height: 32px;
        background: #fff;
        border-radius: 50%;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        border: none;
    }

    .h5-timeline .el-carousel__arrow i {
        color: #007bff;
        font-size: 14px;
        font-weight: bold;
    }

    .h5-timeline .el-carousel__arrow--left {
        left: 5px;
    }

    .h5-timeline .el-carousel__arrow--right {
        right: 5px;
    }
}

@media screen and (max-width: 480px) {
    .hero {
        height: 40vh;
    }
}

/* 通用样式 */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    width: 100%;
    position: relative;
}

/* 标题通用样式 */
h2 {
    text-align: center;
    margin-bottom: 40px;
    color: #333;
    position: relative;
}

h2:after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background-color: #007bff;
    margin: 15px auto;
}

/* 按钮样式 */
.cta-button {
    display: inline-block;
    padding: 12px 30px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

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

/* 特性部分补充样式 */
.features-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

/* 解决方案补充样式 */
.solution-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    position: relative;
}

.solution-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.8));
    color: white;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: all 0.3s ease;
}

.solution-overlay h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.solution-content {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.solution-features {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.solution-features li {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.solution-features li::before {
    content: '✓';
    margin-right: 8px;
    color: #00ff7f;
}

.solution-btn {
    display: inline-block;
    padding: 8px 20px;
    background-color: transparent;
    border: 2px solid white;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.solution-btn:hover {
    background-color: white;
    color: #333;
}

.solution-card:hover .solution-overlay {
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), rgba(0,0,0,0.9));
}

.solution-card:hover .solution-overlay h3 {
    transform: translateY(-20px);
}

.solution-card:hover .solution-content {
    opacity: 1;
    transform: translateY(0);
}

/* 新闻预览补充样式 */
.news-preview-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    position: relative;
}

.news-preview-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,123,255,0.2);
}

.news-preview-image {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.news-preview-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-preview-card:hover .news-preview-image img {
    transform: scale(1.1) rotate(2deg);
}

.news-preview-date {
    position: absolute;
    top: 20px;
    left: 20px;
    background: #007bff;
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-align: center;
    transition: all 0.3s ease;
    z-index: 1;
}

.news-preview-card:hover .news-preview-date {
    transform: translateY(-5px) rotate(-5deg);
    background: #0056b3;
}

.news-preview-content {
    padding: 30px;
    position: relative;
    background: #fff;
    transition: transform 0.3s ease;
}

.news-preview-content h3 {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: #333;
    transition: color 0.3s ease;
}

.news-preview-card:hover .news-preview-content h3 {
    color: #007bff;
}

.news-preview-content p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
    transition: opacity 0.3s ease;
}

.news-preview-link {
    color: #007bff;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 2px;
}

.news-preview-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #007bff;
    transition: width 0.3s ease;
}

.news-preview-link:hover {
    color: #0056b3;
}

.news-preview-link:hover::after {
    width: 100%;
}

.news-preview-link i {
    margin-left: 8px;
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.news-preview-link:hover i {
    transform: translateX(8px);
}

/* 添加新闻卡片的入场动画 */
@keyframes newsCardIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.news-preview-card[data-aos] {
    animation: newsCardIn 0.8s ease forwards;
    opacity: 0;
}

.news-preview-card[data-aos="fade-right"] {
    animation-delay: 0.2s;
}

.news-preview-card[data-aos="fade-left"] {
    animation-delay: 0.4s;
}

/* 产品展示补充样式 */
.product-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.product-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.product-info {
    padding: 20px;
    text-align: center;
}

/* 响应式补充 */
@media screen and (max-width: 768px) {
    .features-container {
        grid-template-columns: 1fr;
    }

    .product-slider {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .container {
        padding: 0;
    }

    .solution-card {
        height: 300px;
    }
}

/* 防止页面水平滚动 */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    min-height: 100vh;
}

/* 确保所有section容器不会溢出 */
section {
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* 修复头部导航在移动端的padding */
@media screen and (max-width: 768px) {
    header .container {
        padding: 0 15px;
    }
}

/* 修改AOS动画的初始状态 */
[data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}

/* 添加新的渐入动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease forwards;
}

/* 修改其他板块的动画 */
.feature-box,
.solution-card,
.news-preview-card,
.product-card {
    opacity: 1;
    transform: none;
}

/* 新闻资讯板块样式 */
.news-info {
    padding: 80px 0;
    background: #f8f9fa;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.2em;
    color: #333;
    margin-bottom: 10px;
}

.en-title {
    color: #666;
    font-size: 1.1em;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.news-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding: 0 30px;
}

.news-info-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.news-info-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0,123,255,0.15);
}

.news-info-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.news-info-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.news-info-card:hover .news-info-image img {
    transform: scale(1.1);
}

.news-date {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0,123,255,0.9);
    color: #fff;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.news-info-card:hover .news-date {
    background: #0056b3;
    transform: translateY(-3px);
}

.news-info-content {
    padding: 25px;
}

.news-info-content h3 {
    font-size: 1.2em;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.4;
    transition: color 0.3s ease;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.8em;
}

.news-info-card:hover .news-info-content h3 {
    color: #007bff;
}

.read-more {
    color: #007bff;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

.read-more i {
    margin-left: 8px;
    transition: transform 0.3s ease;
}

.read-more:hover {
    color: #0056b3;
}

.read-more:hover i {
    transform: translateX(5px);
}

/* 响应式调整 */
@media screen and (max-width: 768px) {
    .news-info-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px;
    }

    .news-info-image {
        height: 200px;
    }

    .section-header h2 {
        font-size: 1.8em;
    }
}

/* 小屏幕适配 */
@media screen and (max-width: 360px) {
    .h5-timeline__card {
        margin: 0 15px;
        padding: 20px 15px;
    }

    .h5-timeline__year {
        font-size: 24px;
    }

    .h5-timeline__text {
        font-size: 14px;
    }
} 