/* ===== 英雄区域样式 ===== */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: var(--light-gray);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 80%, rgba(74, 108, 247, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(142, 108, 247, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(0, 201, 255, 0.05) 0%, transparent 50%);
    animation: float 20s infinite linear;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    animation: fadeInUp 1s ease-out;
}

.hero h1 {
    font-size: 3.8rem;
    margin-bottom: 20px;
    line-height: 1.1;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: var(--text);
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.hero-btns .btn:last-child {
    background: transparent;
    color: var(--primary);
    box-shadow: inset 0 0 0 2px var(--primary);
}

.hero-btns .btn:last-child:hover {
    background: var(--primary);
    color: white;
}

.hero-visual {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 50%;
    height: 70%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: var(--gradient-light);
    opacity: 0.7;
    filter: blur(40px);
    animation: floatShape 15s infinite ease-in-out;
}

.shape:nth-child(1) {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape:nth-child(2) {
    width: 200px;
    height: 200px;
    top: 50%;
    right: 10%;
    animation-delay: -5s;
}

.shape:nth-child(3) {
    width: 250px;
    height: 250px;
    bottom: 10%;
    left: 20%;
    animation-delay: -10s;
}

@keyframes floatShape {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -50px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* ===== 关于我们样式 ===== */
.about {
    background-color: white;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text {
    animation: fadeInLeft 1s ease-out;
}

.about-image {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    animation: fadeInRight 1s ease-out;
}

.about-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0.1;
    z-index: 1;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.about-image:hover img {
    transform: scale(1.05);
}

/* ===== 服务样式 ===== */
.services {
    background-color: var(--light-gray);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: var(--gradient);
}

.service-card:nth-child(1) { animation-delay: 0s; }
.service-card:nth-child(2) { animation-delay: 0.1s; }
.service-card:nth-child(3) { animation-delay: 0.2s; }
.service-card:nth-child(4) { animation-delay: 0.3s; }
.service-card:nth-child(5) { animation-delay: 0.4s; }
.service-card:nth-child(6) { animation-delay: 0.5s; }

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(74, 108, 247, 0.2);
}

.service-icon {
    width: 90px;
    height: 90px;
    margin: 0 auto 25px;
    background: var(--light-gray);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 2.2rem;
    position: relative;
    transition: var(--transition);
}

.service-card:hover .service-icon {
    background: var(--gradient);
    color: white;
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    color: var(--dark);
    margin-bottom: 15px;
}

/* ===== 产品样式 ===== */
.products {
    background-color: white;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
    position: relative;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.product-card:nth-child(1) { animation-delay: 0s; }
.product-card:nth-child(2) { animation-delay: 0.1s; }
.product-card:nth-child(3) { animation-delay: 0.2s; }
.product-card:nth-child(4) { animation-delay: 0.3s; }
.product-card:nth-child(5) { animation-delay: 0.4s; }
.product-card:nth-child(6) { animation-delay: 0.5s; }

.product-card:hover {
    transform: translateY(-10px);
}

.product-card:hover::before {
    opacity: 0.05;
}

.product-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-content {
    padding: 25px;
    position: relative;
    z-index: 2;
}

.product-content h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

/* ===== 新闻样式 ===== */
.news {
    background-color: var(--light-gray);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.news-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.news-card:nth-child(1) { animation-delay: 0s; }
.news-card:nth-child(2) { animation-delay: 0.2s; }
.news-card:nth-child(3) { animation-delay: 0.4s; }

.news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(74, 108, 247, 0.2);
}

.news-image {
    height: 220px;
    overflow: hidden;
    position: relative;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    padding: 25px;
}

.news-date {
    display: inline-block;
    background: var(--light-gray);
    color: var(--primary);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.news-content h3 {
    color: var(--dark);
    margin-bottom: 15px;
    line-height: 1.4;
}

.news-content p {
    color: var(--text);
    margin-bottom: 20px;
}

.news-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.news-link i {
    margin-left: 8px;
    transition: var(--transition);
}

.news-link:hover {
    color: var(--secondary);
}

.news-link:hover i {
    transform: translateX(5px);
}

/* ===== 资质样式 ===== */
.certifications {
    background-color: white;
}

.certifications-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.cert-card {
    background: white;
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
    flex: 1;
    min-width: 280px;
    max-width: 320px;
    position: relative;
    overflow: hidden;
}

.cert-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient);
    opacity: 0;
    transition: var(--transition);
}

.cert-card:nth-child(2) {
    animation-delay: 0.3s;
}

.cert-card:hover {
    transform: translateY(-10px);
}

.cert-card:hover::before {
    opacity: 0.03;
}

.cert-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.cert-card:hover .cert-icon {
    transform: scale(1.1);
    color: var(--secondary);
}

/* ===== 响应式设计 - 独享部分 ===== */
@media (max-width: 1100px) {
    .hero-visual {
        width: 45%;
    }
    
    .hero h1 {
        font-size: 3.2rem;
    }
}

@media (max-width: 992px) {
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .hero-visual {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.8rem;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    
    .hero-btns {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.4rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-btns {
        flex-direction: column;
        gap: 15px;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .services-grid, .products-grid {
        grid-template-columns: 1fr;
    }
    
    .cert-card {
        min-width: 100%;
    }
}