/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Albert Sans', 'Alibaba PuHuiTi 3.0', 'PingFang SC', sans-serif;
}

/* 容器样式 */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 主视觉区域 */
.hero-section {
    height: 100vh;
    background-image: url('../images/solutions/hero_bg.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 20px;
    animation: fadeInUp 1.5s ease;
}

.hero-content h1 {
    font-size: 48px;
    text-transform: uppercase;
    margin-bottom: 20px;
    letter-spacing: 2px;
    font-weight: 900;
    font-family: 'Albert Sans', sans-serif;
}

.hero-content p {
    font-size: 24px;
    line-height: 1.2;
    text-transform: uppercase;
    font-family: 'Albert Sans', sans-serif;
    font-weight: 400;
}

/* 热门解决方案区域 */
.popular-solutions {
    padding: 80px 5%;
    text-align: center;
}

.section-title {
    font-size: 40px;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: #000;
    letter-spacing: 2px;
    font-weight: 800;
    font-family: 'Albert Sans', sans-serif;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--accent-color, #FF6B00);
}

.section-desc {
    font-size: 16px;
    line-height: 1.625;
    text-transform: uppercase;
    color: #000;
    max-width: 706px;
    margin: 0 auto 40px;
    font-family: 'Albert Sans', sans-serif;
}

.solutions-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

/* 第一行 - 三个卡片 */
.solutions-grid .solution-card:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
}

.solutions-grid .solution-card:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
}

.solutions-grid .solution-card:nth-child(3) {
    grid-column: 3;
    grid-row: 1;
}

/* 第二行 - 三个卡片 */
.solutions-grid .solution-card:nth-child(4) {
    grid-column: 1;
    grid-row: 2;
}

.solutions-grid .solution-card:nth-child(5) {
    grid-column: 2;
    grid-row: 2;
}

.solutions-grid .solution-card:nth-child(6) {
    grid-column: 3;
    grid-row: 2;
}

.solution-card {
    position: relative;
    height: 194px;
    overflow: hidden;
    border-radius: 0;
    box-shadow: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.solution-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.solution-card:hover img {
    transform: scale(1.05);
}

.solution-card .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.2));
    color: white;
    text-align: left;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: background 0.3s ease;
}

.solution-card:hover .overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.3));
}

.solution-card h3 {
    text-transform: uppercase;
    margin-bottom: 5px;
    font-size: 24px;
    font-family: 'Albert Sans', sans-serif;
    font-weight: 800;
    position: relative;
    padding-bottom: 8px;
    transition: transform 0.3s ease;
}

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

.solution-card h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color, #FF6B00);
    transition: width 0.3s ease;
}

.solution-card:hover h3::after {
    width: 50px;
}

.solution-card p {
    font-size: 16px;
    line-height: 1.2;
    text-transform: uppercase;
    text-align: left;
    margin: 0;
    font-family: 'Albert Sans', sans-serif;
    font-weight: 400;
    opacity: 1; /* 修改为默认可见 */
    transform: none; /* 移除默认的位移 */
    transition: transform 0.3s ease, opacity 0.3s ease;
}

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

/* 解决方案展示区域 */
.solutions-gallery {
    padding: 80px 5%;
    background-color: #f9f9f9;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.gallery-header h2 {
    font-size: 32px;
    text-transform: uppercase;
    color: #000;
    font-weight: 500;
    letter-spacing: 1px;
    font-family: 'Alibaba PuHuiTi 3.0', sans-serif;
}

.view-more {
    color: #000;
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 20px;
    font-family: 'PingFang SC', sans-serif;
    position: relative;
    transition: color 0.3s ease;
}

.view-more::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color, #FF6B00);
    transition: width 0.3s ease;
}

.view-more:hover {
    color: var(--accent-color, #FF6B00);
}

.view-more:hover::after {
    width: 100%;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 27px;
}

.gallery-item {
    position: relative;
    height: 395px;
    overflow: hidden;
    border-radius: 0;
    animation: fadeIn 0.8s ease forwards;
    opacity: 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.gallery-item:nth-child(1) { animation-delay: 0.1s; }
.gallery-item:nth-child(2) { animation-delay: 0.2s; }
.gallery-item:nth-child(3) { animation-delay: 0.3s; }
.gallery-item:nth-child(4) { animation-delay: 0.4s; }
.gallery-item:nth-child(5) { animation-delay: 0.5s; }
.gallery-item:nth-child(6) { animation-delay: 0.6s; }
.gallery-item:nth-child(7) { animation-delay: 0.7s; }
.gallery-item:nth-child(8) { animation-delay: 0.8s; }

.gallery-item img {
    width: 100%;
    height: 310px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item .caption {
    padding: 10px 0;
    color: #000;
    background-color: transparent;
    transition: transform 0.3s ease;
}

.gallery-item:hover .caption {
    transform: translateY(-5px);
}

.gallery-item h3 {
    font-size: 20px;
    margin-bottom: 8px;
    text-transform: uppercase;
    font-weight: 500;
    font-family: 'PingFang SC', sans-serif;
    position: relative;
    padding-bottom: 5px;
}

.gallery-item h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--accent-color, #FF6B00);
    transition: width 0.3s ease;
}

.gallery-item:hover h3::after {
    width: 30px;
}

.gallery-item p {
    font-size: 16px;
    line-height: 1.2;
    color: rgba(0, 0, 0, 0.6);
    text-transform: uppercase;
    font-family: 'Albert Sans', sans-serif;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

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

.animate-fade-in-up {
    animation: fadeInUp 1s ease forwards;
}

.animate-slide-in-right {
    animation: slideInRight 1s ease forwards;
}

.animate-slide-in-left {
    animation: slideInLeft 1s ease forwards;
}

.animate-zoom-in {
    animation: zoomIn 1s ease forwards;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }
.delay-800 { animation-delay: 0.8s; }

/* 滚动显示动画 */
.scroll-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .footer-content {
        gap: 60px;
    }
}

@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 36px;
    }
    
    .hero-content p {
        font-size: 18px;
    }
    
    .popular-solutions h2 {
        font-size: 32px;
    }
    
    .solutions-grid {
        grid-template-columns: repeat(2, 1fr); /* 平板上显示两列 */
        gap: 15px;
    }
    
    /* 修改卡片顺序 */
    .solutions-grid .solution-card:nth-child(1) {
        grid-column: 1;
        grid-row: 1;
    }
    
    .solutions-grid .solution-card:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
    }
    
    .solutions-grid .solution-card:nth-child(3) {
        grid-column: 1;
        grid-row: 2;
    }
    
    .solutions-grid .solution-card:nth-child(4) {
        grid-column: 2;
        grid-row: 2;
    }
    
    .solutions-grid .solution-card:nth-child(5) {
        grid-column: 1;
        grid-row: 3;
    }
    
    .solutions-grid .solution-card:nth-child(6) {
        grid-column: 2;
        grid-row: 3;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-scroll-indicator {
        bottom: 30px;
    }
}

@media (max-width: 768px) {
    .hero-content {
        max-width: 90%;
    }
    
    .hero-content h1 {
        font-size: 30px;
    }
    
    .popular-solutions h2 {
        font-size: 28px;
    }
    
    .popular-solutions p {
        font-size: 14px;
    }
    
    .gallery-header h2 {
        font-size: 28px;
    }
    
    .view-more {
        font-size: 14px;
    }
    
    .hero-scroll-indicator {
        bottom: 20px;
    }
    
    .scroll-arrow {
        width: 15px;
        height: 15px;
    }
    
    .scroll-text {
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .hero-content h1 {
        font-size: 24px;
    }
    
    .hero-content p {
        font-size: 14px;
    }
    
    .solutions-grid {
        grid-template-columns: 1fr; /* 移动端上显示单列 */
    }
    
    /* 修改卡片顺序为单列 */
    .solutions-grid .solution-card:nth-child(n) {
        grid-column: 1;
    }
    
    .solutions-grid .solution-card:nth-child(1) { grid-row: 1; }
    .solutions-grid .solution-card:nth-child(2) { grid-row: 2; }
    .solutions-grid .solution-card:nth-child(3) { grid-row: 3; }
    .solutions-grid .solution-card:nth-child(4) { grid-row: 4; }
    .solutions-grid .solution-card:nth-child(5) { grid-row: 5; }
    .solutions-grid .solution-card:nth-child(6) { grid-row: 6; }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-header {
        flex-direction: column;
    }
    
    .social-icons {
        flex-wrap: wrap;
    }
} 