/* ========================================
   拓冰建站 - 首页专用样式
   对角线分割对称布局
   ======================================== */

/* Hero Section - 对角线布局 */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f4f8 100%);
}

.hero-diagonal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, transparent 45%, var(--light-blue) 45.5%, var(--light-blue) 54.5%, transparent 54.5%);
    opacity: 0.3;
}

.hero-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 120px 40px 80px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 80px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-text {
    text-align: right;
}

.hero-title {
    font-size: 64px;
    font-weight: 800;
    color: var(--dark-gray);
    line-height: 1.2;
    margin-bottom: 25px;
    animation: fadeInUp 1s ease;
}

.hero-subtitle {
    font-size: 22px;
    color: var(--medium-gray);
    margin-bottom: 40px;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: flex-end;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-image-wrapper {
    position: relative;
    animation: fadeInRight 1s ease 0.3s both;
}

.hero-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    transform: rotate(-3deg);
    transition: transform 0.5s ease;
}

.hero-image:hover {
    transform: rotate(0deg) scale(1.02);
}

/* Services Section - 六边形网格 */
.services-section {
    background: var(--white);
    position: relative;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.service-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    position: relative;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 60px rgba(173, 216, 230, 0.3);
}

.service-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.service-content {
    padding: 30px;
}

.service-content h3 {
    font-size: 22px;
    color: var(--dark-gray);
    margin-bottom: 15px;
}

.service-content p {
    color: var(--medium-gray);
    font-size: 15px;
    line-height: 1.7;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--light-blue-dark);
    font-weight: 600;
    margin-top: 20px;
    transition: gap 0.3s ease;
}

.service-link:hover {
    gap: 15px;
}

/* About Section - 交错布局 */
.about-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #f0f8ff 100%);
}

.about-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 100px;
    align-items: center;
}

.about-image-group {
    position: relative;
}

.about-main-image {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
}

.about-stats {
    position: absolute;
    bottom: -30px;
    right: -30px;
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.stat-item {
    text-align: center;
    padding: 0 20px;
}

.stat-number {
    font-size: 36px;
    font-weight: 800;
    color: var(--light-blue-dark);
    display: block;
}

.stat-label {
    font-size: 14px;
    color: var(--medium-gray);
}

.about-text h2 {
    font-size: 42px;
    color: var(--dark-gray);
    margin-bottom: 25px;
}

.about-text p {
    color: var(--medium-gray);
    font-size: 17px;
    line-height: 1.8;
    margin-bottom: 30px;
}

.about-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-secondary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* Cases Section */
.cases-section {
    background: var(--white);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.case-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
}

.case-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.case-card:hover .case-image {
    transform: scale(1.1);
}

.case-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--white);
}

.case-overlay h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.case-overlay p {
    font-size: 14px;
    opacity: 0.9;
}

/* News Section */
.news-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e8f4f8 100%);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.news-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
}

.news-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(173, 216, 230, 0.25);
}

.news-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.news-content {
    padding: 25px;
}

.news-date {
    font-size: 13px;
    color: var(--light-blue-dark);
    margin-bottom: 10px;
}

.news-content h3 {
    font-size: 18px;
    color: var(--dark-gray);
    margin-bottom: 12px;
    line-height: 1.5;
}

.news-content p {
    font-size: 14px;
    color: var(--medium-gray);
    line-height: 1.6;
}

/* CTA Section */
.cta-section {
    background: var(--gradient-primary);
    padding: 100px 0;
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 40px;
}

.cta-content h2 {
    font-size: 48px;
    color: var(--dark-gray);
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 20px;
    color: var(--dark-gray);
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive */
@media (max-width: 992px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 50px;
        padding-top: 100px;
    }
    
    .hero-text {
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-title {
        font-size: 48px;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .cases-grid,
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .services-grid,
    .cases-grid,
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 30px;
    }
    
    .stat-item {
        display: inline-block;
    }
}
