/* ========================================
   铃音软件建站 - 首页专用样式
   ======================================== */

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: linear-gradient(135deg, var(--color-nude-pink) 0%, var(--color-cream-white) 50%, var(--color-light-coffee) 100%);
    overflow: hidden;
    padding-top: 80px;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 80%;
    height: 200%;
    background: radial-gradient(circle, rgba(245, 230, 224, 0.6) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    50% { transform: translate(-30px, 30px) rotate(10deg); }
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: slideInLeft 1s ease;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(139, 115, 85, 0.1);
    border-radius: var(--border-radius-btn);
    font-size: 14px;
    color: var(--color-deep-coffee);
    margin-bottom: 20px;
    font-weight: 500;
}

.hero h1 {
    font-size: 56px;
    line-height: 1.2;
    color: var(--color-deep-coffee);
    margin-bottom: 25px;
    font-weight: 800;
}

.hero-text {
    font-size: 18px;
    color: var(--color-text-secondary);
    margin-bottom: 35px;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.hero-image {
    position: relative;
    animation: slideInRight 1s ease;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero-image img {
    width: 100%;
    height: auto;
    border-radius: 30px;
    box-shadow: var(--shadow-hover);
}

/* Features Section */
.features {
    background: var(--color-cream-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: var(--border-radius-card);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    text-align: center;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.feature-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--color-nude-pink) 0%, var(--color-light-coffee) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon img {
    width: 35px;
    height: 35px;
}

.feature-card h3 {
    font-size: 22px;
    color: var(--color-deep-coffee);
    margin-bottom: 15px;
}

.feature-card p {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.7;
}

/* Services Section */
.services {
    background: linear-gradient(180deg, var(--color-nude-pink) 0%, var(--color-cream-white) 100%);
}

.services-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.service-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--border-radius-card);
    background: white;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.service-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-hover);
}

.service-image {
    width: 100%;
    height: 280px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.service-item:hover .service-image img {
    transform: scale(1.1);
}

.service-content {
    padding: 30px;
}

.service-content h3 {
    font-size: 24px;
    color: var(--color-deep-coffee);
    margin-bottom: 12px;
}

.service-content p {
    font-size: 15px;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
    line-height: 1.7;
}

.service-link {
    color: var(--color-deep-coffee);
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.service-link:hover {
    gap: 12px;
}

/* Products Section */
.products {
    background: var(--color-cream-white);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.product-card {
    background: white;
    border-radius: var(--border-radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.product-image {
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-info {
    padding: 25px;
}

.product-info h3 {
    font-size: 20px;
    color: var(--color-deep-coffee);
    margin-bottom: 10px;
}

.product-info p {
    font-size: 14px;
    color: var(--color-text-secondary);
    margin-bottom: 15px;
    line-height: 1.6;
}

.product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-deep-coffee);
}

/* Cases Section */
.cases {
    background: linear-gradient(135deg, var(--color-nude-pink) 0%, var(--color-light-coffee) 100%);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.case-card {
    background: white;
    border-radius: var(--border-radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.case-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.case-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.case-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.case-card:hover .case-image img {
    transform: scale(1.1);
}

.case-content {
    padding: 25px;
}

.case-content h3 {
    font-size: 20px;
    color: var(--color-deep-coffee);
    margin-bottom: 10px;
}

.case-content p {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* News Section - Homepage */
.news-home {
    background: var(--color-cream-white);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.news-card {
    background: white;
    border-radius: var(--border-radius-card);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.news-image {
    width: 100%;
    height: 160px;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.news-card:hover .news-image img {
    transform: scale(1.1);
}

.news-content {
    padding: 20px;
}

.news-content h3 {
    font-size: 16px;
    color: var(--color-deep-coffee);
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta {
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-bottom: 8px;
}

.news-excerpt {
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* CTA Section */
.cta {
    background: linear-gradient(135deg, var(--color-deep-coffee) 0%, var(--color-soft-brown) 100%);
    padding: 80px 0;
    text-align: center;
}

.cta h2 {
    font-size: 38px;
    color: white;
    margin-bottom: 20px;
}

.cta p {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta .btn {
    background: white;
    color: var(--color-deep-coffee);
}

.cta .btn:hover {
    background: var(--color-cream-white);
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 42px;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-wrapper {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        padding-top: 100px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero-text {
        font-size: 16px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .cases-grid {
        grid-template-columns: 1fr;
    }
    
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .cta h2 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .hero-container {
        padding: 0 20px;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
}
