/* 产品与服务页面专用样式 */

/* 动画效果定义 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* 初始隐藏状态 */
.reveal {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.reveal-up {
    transform: translateY(50px);
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

.reveal-scale {
    transform: scale(0.9);
}

/* 激活状态 */
.reveal.active {
    opacity: 1;
    transform: translate(0) scale(1);
}

/* Banner 动画 - 改为由 .active 类触发 */
.reveal .banner-title {
    opacity: 0;
}
.reveal.active .banner-title {
    animation: fadeInUp 1s ease forwards 0.3s;
}

.reveal .banner-subtitle {
    opacity: 0;
}
.reveal.active .banner-subtitle {
    animation: fadeInUp 1s ease forwards 0.6s;
}

.reveal .banner-brand-tag {
    opacity: 0;
}
.reveal.active .banner-brand-tag {
    animation: fadeInUp 1s ease forwards 0.8s;
}

.reveal .banner-btn {
    opacity: 0;
}
.reveal.active .banner-btn {
    animation: fadeInUp 1s ease forwards 1s;
}

/* 产品展示大图区域 */
.product-banners {
    display: flex;
    flex-direction: column;
}

.product-banner-section {
    position: relative;
    height: auto;
    display: block;
    overflow: hidden;
    scroll-margin-top: 80px;
}
.banner-bg-img {
    width: 100%;
    height: auto;
    display: block;
}
.product-banner-section .banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0) 100%);
    z-index: 2;
}

.product-banner-section.banner-reverse .banner-overlay {
    background: linear-gradient(-90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0) 100%);
}

.product-banner-section .banner-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    display: flex;
    align-items: center;
}
.banner-content.content-reverse {
    justify-content: flex-end;
}

.banner-text {
    max-width: 900px;
}

.banner-text-centered {
    text-align: center;
}

.banner-title {
    color: #fff;
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 25px;
    line-height: 1.1;
    white-space: nowrap; /* 确保标题不换行 */
}

.banner-subtitle {
    color: #fff;
    font-size: 18px;
    margin-bottom: 35px;
    line-height: 1.6;
    font-weight: 400;
}

.banner-brand-tag {
    color: #fff;
    font-size: 18px;
    margin-bottom: 35px;
    font-weight: 500;
}

.banner-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 35px;
    background: transparent;
    border: 1px solid #fff;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    font-size: 15px;
    font-weight: 500;
}

.banner-btn:hover {
    background: #fff;
    color: #000;
    border-color: #fff;
}

/* 特点区域 */
.features-section {
    position: relative;
    padding: 0;
    background-color: #000;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    color: #fff;
    height: 100vh;
    display: flex;
    align-items: center;
    scroll-margin-top: 80px;
}

.features-container {
    position: relative;
    height: 600px;
}

.features-center-image {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    z-index: 1;
}

.features-center-image img {
    width: 100%;
    height: auto;
}

.feature-item {
    position: absolute;
    width: 320px;
    z-index: 2;
}

.feature-item.item-tl {
    top: 2%;
    left: 8%;
    text-align: left;
}

.feature-item.item-tr {
    top: 2%;
    right: 8%;
    text-align: right;
}

.feature-item.item-bl {
    bottom: 2%;
    left: 8%;
    text-align: left;
}

.feature-item.item-br {
    bottom: 2%;
    right: 8%;
    text-align: right;
}

.feature-line {
    width: 320px;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 20px 0;
}

.feature-item.item-tr .feature-line,
.feature-item.item-br .feature-line {
    margin-left: auto;
}

.feature-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 0;
    color: #fff;
    letter-spacing: 2px;
}

.feature-desc {
    font-size: 16px;
    line-height: 2.2;
    color: rgba(255, 255, 255, 0.85);
}

.feature-desc .highlight {
    color: #f8d186; /* 设计图中的金色/黄色 */
    font-weight: 500;
}

.features-dots {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
}

.features-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
}

.features-dots .dot.active {
    background: #fff;
}

/* 产品详情区域 */
.product-detail-section {
    padding: 100px 0;
    background: #fff;
    scroll-margin-top: 80px;
}

.detail-header {
    text-align: center;
    margin-bottom: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.detail-title {
    font-size: 48px;
    color: #333;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 3px;
    position: relative;
}

.detail-en {
    font-size: 14px;
    color: #999;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 25px;
    font-weight: 500;
}

.detail-line {
    width: 60px;
    height: 3px;
    background: #0051a8;
    margin-bottom: 25px;
}

.detail-subtitle {
    font-size: 20px;
    color: #666;
    font-weight: 400;
    letter-spacing: 1px;
    max-width: 800px;
}

.advantage-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 50px;
}

.advantage-card {
    background: #fff;
    padding: 0;
    text-align: center;
    transition: all 0.4s ease;
}

.advantage-card:hover {
    transform: translateY(-10px);
}

.advantage-card:hover .advantage-icon {
    transform: scale(1.1);
    box-shadow: 0 8px 25px rgba(0, 81, 168, 0.15);
}

.advantage-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 35px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05); /* 添加轻微阴影增加层次感 */
    transition: all 0.4s ease;
}

.advantage-icon img {
    max-width: 65px;
    max-height: 65px;
}

.advantage-title {
    font-size: 24px;
    color: #333;
    font-weight: 700;
    margin-bottom: 10px;
}

.advantage-en {
    font-size: 13px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 30px;
    line-height: 1.4;
}

.advantage-desc {
    font-size: 15px;
    color: #666;
    line-height: 1.8;
    text-align: center;
    max-width: 90%;
    margin: 0 auto;
}

/* 头部右侧图标按钮 */
.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: 40px;
}

.header-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    transition: opacity 0.3s;
}

.header-icon-btn:hover {
    opacity: 0.7;
}

/* 产品区域 */
.products-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.section-heading {
    text-align: center;
    font-size: 32px;
    color: #1a1a1a;
    margin-bottom: 60px;
    font-weight: 600;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.product-card {
    background: #fff;
    border-radius: 12px;
    padding: 40px 30px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 81, 168, 0.15);
}

.product-img {
    width: 180px;
    height: 180px;
    margin: 0 auto 25px;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f4ff 0%, #e6f0ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-title {
    font-size: 18px;
    color: #1a1a1a;
    margin-bottom: 8px;
    font-weight: 600;
}

.product-en {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.product-link {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid #0051a8;
    color: #0051a8;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.product-link:hover {
    background: #0051a8;
    color: #fff;
}

.product-link span {
    margin-left: 5px;
}

.product-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

/* 市场区域 */
.market-section {
    padding: 80px 0;
    background: #fff;
}

.market-heading {
    text-align: center;
    font-size: 32px;
    color: #1a1a1a;
    margin-bottom: 60px;
    font-weight: 600;
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 60px;
}

.market-card {
    text-align: center;
}

.market-chart {
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f0ff 100%);
    border-radius: 12px;
    margin-bottom: 30px;
    overflow: hidden;
    box-shadow: inset 0 0 20px rgba(79, 172, 254, 0.05);
    border: 1px solid rgba(79, 172, 254, 0.1);
}

.market-chart img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.market-title {
    font-size: 18px;
    color: #1a1a1a;
    margin-bottom: 8px;
    font-weight: 600;
}

.market-en {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.market-link {
    display: inline-block;
    padding: 8px 20px;
    border: 1px solid #0051a8;
    color: #0051a8;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.market-link:hover {
    background: #0051a8;
    color: #fff;
}

.market-link span {
    margin-left: 5px;
}

/* 响应式设计 */
@media (max-width: 1400px) {
    .wrapper {
        width: 100%;
        padding: 0 40px;
    }
}

@media (max-width: 1200px) {
    .banner-title {
        font-size: 48px;
    }
    
    .advantage-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    .features-section {
        height: auto;
        padding: 100px 0;
    }

    .features-container {
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 60px;
    }

    .features-center-image {
        position: static;
        transform: none;
        width: 80%;
        max-width: 400px;
        margin-bottom: 20px;
        display: none; /* 在移动端或小屏幕隐藏中间图，避免视觉混乱 */
    }

    .feature-item {
        position: static;
        width: 100%;
        max-width: 600px;
        text-align: center !important;
        background: rgba(0, 0, 0, 0.6);
        padding: 30px;
        border-radius: 12px;
        backdrop-filter: blur(5px);
    }

    .feature-line {
        margin: 15px auto !important;
    }
}

@media (max-width: 768px) {
    .product-banner-section {
        height: auto;
        min-height: 450px;
        display: flex;
        align-items: center;
    }

    .banner-bg-img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .banner-content {
        position: relative;
        padding: 80px 20px;
    }

    .banner-title {
        font-size: 32px;
        white-space: normal;
        word-break: break-all;
    }

    .banner-subtitle {
        font-size: 16px;
        br {
            display: none;
        }
    }

    .banner-brand-tag {
        font-size: 15px;
        margin-bottom: 25px;
    }

    .features-section {
        padding: 60px 0;
    }

    .feature-item {
        padding: 20px;
    }

    .feature-title {
        font-size: 24px;
    }

    .feature-desc {
        font-size: 14px;
        line-height: 1.8;
    }

    .advantage-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .detail-header {
        margin-bottom: 50px;
    }

    .detail-title {
        font-size: 28px;
    }

    .detail-subtitle {
        font-size: 16px;
    }

    .advantage-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 20px;
    }

    .advantage-icon img {
        max-width: 50px;
        max-height: 50px;
    }

    .advantage-title {
        font-size: 20px;
    }

    .market-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}
