/* 首页样式 - Index Styles */

/* 轮播图样式 */
.hero {
    position: relative;
    height: 600px;
    overflow: hidden;
    background: linear-gradient(135deg, #0078D4 0%, #0063B1 50%, #0078D4 100%);
}

.hero-carousel {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s ease-in-out;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* 第一张：广告牌 - 微软蓝渐变背景 */
.carousel-slide:nth-child(1)::before {
    background-image: linear-gradient(135deg, rgba(0, 120, 212, 0.3) 0%, rgba(0, 99, 177, 0.3) 100%),
        url('https://images.unsplash.com/photo-1556745757-8d76bdb6984b?w=1920&q=80');
}

/* 第二张：LED显示屏 - 渐变紫色背景 */
.carousel-slide:nth-child(2)::before {
    background-image: linear-gradient(135deg, rgba(78, 52, 134, 0.3) 0%, rgba(133, 93, 173, 0.3) 100%),
        url('https://images.unsplash.com/photo-1550751827-4bd374c3f58b?w=1920&q=80');
}

/* 第三张：商业空间 - 渐变绿色背景 */
.carousel-slide:nth-child(3)::before {
    background-image: linear-gradient(135deg, rgba(0, 77, 64, 0.3) 0%, rgba(27, 94, 32, 0.3) 100%),
        url('https://images.unsplash.com/photo-1497366216548-37526070297c?w=1920&q=80');
}

/* 第四张：发光字 - 渐变橙色背景 */
.carousel-slide:nth-child(4)::before {
    background-image: linear-gradient(135deg, rgba(124, 45, 18, 0.3) 0%, rgba(211, 84, 0, 0.3) 100%),
        url('https://images.unsplash.com/photo-1558655146-9f40138edfeb?w=1920&q=80');
}

/* 鼠标悬停时去除遮罩 - 第一张 */
.hero-carousel:hover .carousel-slide:nth-child(1)::before {
    background-image: linear-gradient(135deg, rgba(0, 120, 212, 0) 0%, rgba(0, 99, 177, 0) 100%),
        url('https://images.unsplash.com/photo-1556745757-8d76bdb6984b?w=1920&q=80');
}

/* 鼠标悬停时去除遮罩 - 第二张 */
.hero-carousel:hover .carousel-slide:nth-child(2)::before {
    background-image: linear-gradient(135deg, rgba(78, 52, 134, 0) 0%, rgba(133, 93, 173, 0) 100%),
        url('https://images.unsplash.com/photo-1550751827-4bd374c3f58b?w=1920&q=80');
}

/* 鼠标悬停时去除遮罩 - 第三张 */
.hero-carousel:hover .carousel-slide:nth-child(3)::before {
    background-image: linear-gradient(135deg, rgba(0, 77, 64, 0) 0%, rgba(27, 94, 32, 0) 100%),
        url('https://images.unsplash.com/photo-1497366216548-37526070297c?w=1920&q=80');
}

/* 鼠标悬停时去除遮罩 - 第四张 */
.hero-carousel:hover .carousel-slide:nth-child(4)::before {
    background-image: linear-gradient(135deg, rgba(124, 45, 18, 0) 0%, rgba(211, 84, 0, 0) 100%),
        url('https://images.unsplash.com/photo-1558655146-9f40138edfeb?w=1920&q=80');
}

.carousel-caption {
    position: relative;
    z-index: 10;
    text-align: center;
    color: white;
    padding: 0 20px;
    max-width: 800px;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.carousel-caption h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.carousel-caption h2 span {
    color: #00e5ff;
}

.carousel-caption p {
    font-size: 20px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.carousel-caption .btn {
    display: inline-block;
    padding: 14px 36px;
    background: linear-gradient(135deg, #00e5ff 0%, #00b8d4 100%);
    color: #0078D4;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 229, 255, 0.4);
}

.carousel-caption .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.6);
}

.carousel-caption .btn-secondary {
    background: transparent;
    border: 2px solid #00e5ff;
    color: #00e5ff;
    box-shadow: none;
}

.carousel-caption .btn-secondary:hover {
    background: #00e5ff;
    color: #0078D4;
    box-shadow: 0 6px 20px rgba(0, 229, 255, 0.6);
}

.carousel-caption .hero-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
}

/* 轮播控制按钮 */
.carousel-nav {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    transform: translateY(-50%);
    padding: 0 30px;
    box-sizing: border-box;
    z-index: 20;
}

.carousel-nav button {
    width: 60px;
    height: 60px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 32px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.carousel-nav button:hover {
    background: rgba(0, 229, 255, 0.8);
    transform: scale(1.1);
}

.carousel-nav button:active {
    transform: scale(0.95);
}

/* 轮播指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 20;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicators button.active {
    width: 36px;
    border-radius: 6px;
    background: #00e5ff;
    box-shadow: 0 0 15px rgba(0, 229, 255, 0.8);
}

.carousel-indicators button:hover {
    background: rgba(0, 229, 255, 0.7);
}

/* 轮播图响应式设计 */
@media (max-width: 768px) {
    .hero {
        height: 500px;
    }

    .carousel-caption h2 {
        font-size: 32px;
    }

    .carousel-caption p {
        font-size: 16px;
    }

    .carousel-caption .btn {
        padding: 12px 28px;
        font-size: 16px;
    }

    .carousel-nav button {
        width: 45px;
        height: 45px;
        font-size: 24px;
    }

    .carousel-nav {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 400px;
    }

    .carousel-caption h2 {
        font-size: 24px;
    }

    .carousel-caption p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .carousel-caption .btn {
        padding: 10px 24px;
        font-size: 14px;
    }

    .carousel-caption .hero-btns {
        flex-direction: column;
        gap: 10px;
    }

    .carousel-nav {
        display: none;
    }
}

/* 隐藏原有样式，为兼容性 */
.hero-pattern {
    display: none;
}

.hero-content {
    display: none;
}

/* 核心服务区域 */
.services-section {
    padding: 80px 0;
    background: var(--bg-white);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.service-card {
    background: var(--bg-white);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.service-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #E3F2FD, #BBDEFB);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--secondary-color);
}

.service-card h3 {
    font-size: 18px;
    color: var(--text-main);
    margin-bottom: 10px;
}

.service-card p {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
}

/* 精品案例区域 */
.cases-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #F0F9FF, #E7F3FF);
}

.cases-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.case-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    background: var(--bg-white);
    border: 2px solid #8AB3D0;
}

.case-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.case-img {
    height: 220px;
    background: linear-gradient(135deg, #e0e0e0, #d0d0d0);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.case-img::before {
    content: attr(data-label);
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-color);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
}

.case-info {
    padding: 20px;
}

.case-info h3 {
    font-size: 18px;
    color: var(--text-main);
    margin-bottom: 10px;
}

.case-info p {
    font-size: 14px;
    color: var(--text-gray);
}

/* 核心优势区域 */
.advantages-section {
    padding: 73px 0;
    background: var(--bg-white);
}

/* 业资讯区域 */
.news-section {
    padding: 60px 0;
    background: linear-gradient(135deg, #F0F9FF, #E7F3FF);
}

.news-columns {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.news-column {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 25px;
    box-shadow: var(--shadow);
}

.news-simple-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.news-simple-item:last-child {
    border-bottom: none;
}

.news-simple-item:hover {
    background: #f8f9fa;
    padding-left: 10px;
}

.news-simple-date {
    flex-shrink: 0;
    width: 100px;
    color: var(--text-light);
    font-size: 13px;
}

.news-simple-title {
    flex: 1;
    color: var(--text-main);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
}

.news-simple-title:hover {
    color: var(--primary-color);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.advantage-item {
    text-align: center;
    padding: 40px 25px;
}

.advantage-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 25px;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: #fff;
}

.advantage-item h3 {
    font-size: 20px;
    color: var(--text-main);
    margin-bottom: 15px;
}

.advantage-item p {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.8;
}

/* 客户评价区域 */
.testimonials-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--secondary-color), var(--secondary-dark));
    color: #fff;
}

.testimonials-section .section-title h2 {
    color: #fff;
}

.testimonials-section .section-title h2::after {
    background: var(--primary-color);
}

.testimonials-section .section-title p {
    color: rgba(255, 255, 255, 0.8);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-item {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 30px;
    backdrop-filter: blur(10px);
}

.testimonial-item .quote {
    font-size: 40px;
    color: var(--primary-color);
    line-height: 1;
    margin-bottom: 15px;
}

.testimonial-item p {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
    font-style: italic;
}

.testimonial-item .author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-item .avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.testimonial-item .author-info span {
    display: block;
}

.testimonial-item .author-name {
    font-weight: bold;
    font-size: 16px;
}

.testimonial-item .author-title {
    font-size: 13px;
    opacity: 0.8;
}

/* 底部样式 */
.footer-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1.2fr;
    gap: 40px;
    margin-bottom: 25px;
}

.footer-section {
    color: #fff;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
}

.footer-section .friend-links-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 20px;
}

.footer-section .friend-link,
.footer-section .nav-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    line-height: 1.8;
}

.footer-section .friend-link:hover,
.footer-section .nav-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.footer-section .nav-links-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-section p {
    font-size: 15px;
    margin: 10px 0;
}

.footer-section p a {
    color: var(--primary-color);
    font-weight: bold;
}

.footer-section .online-consult {
    display: inline-block;
    background: var(--primary-color);
    color: #fff;
    padding: 5px 15px;
    border-radius: 4px;
    text-decoration: none;
    margin-top: 5px;
    font-weight: bold;
}

.footer-section .online-consult:hover {
    background: var(--primary-hover);
    text-decoration: none;
}

/* 响应式 */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .advantages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-content h1 {
        font-size: 36px;
    }
}

@media (max-width: 576px) {
    .services-grid,
    .cases-grid,
    .advantages-grid,
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .hero {
        height: 400px;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-btns {
        flex-direction: column;
    }
    
    .hero-btns .btn {
        width: 100%;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-section .friend-links-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .footer-section .nav-links-grid {
        gap: 8px;
    }
}
