/* ============================================================
   home.css — 首页专用样式
   版本: 2.0
   说明: 首页中间所有模块样式
   ============================================================ */

/* ===== 1. Banner 轮播 ===== */
.banner {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    max-height: 900px;
    overflow: hidden;
    background: var(--bg-white);
    border-radius: 0;
}
.banner-slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.25,0.46,0.45,0.94);
}
.banner-slide {
    flex: 0 0 100%;
    height: 100%;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
.banner-slide .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.1) 60%, rgba(0,0,0,0.05) 100%);
    z-index: 1;
}
.banner-slide .content {
    position: relative;
    z-index: 2;
    max-width: 820px;
    padding: 0 40px;
}
.banner-slide .content .tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #fff;
    background: rgba(255,255,255,0.2);
    padding: 6px 20px;
    border-radius: 50px;
    margin-bottom: 16px;
    border: 1px solid rgba(255,255,255,0.2);
}
.banner-slide .content h1 {
    font-size: clamp(32px,5vw,56px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 16px;
    color: #fff;
}
.banner-slide .content h1 .highlight { color: #FFD700; }
.banner-slide .content p {
    font-size: clamp(15px,1.2vw,18px);
    color: rgba(255,255,255,0.9);
    max-width: 820px;
    line-height: 1.8;
    margin-bottom: 28px;
}
.banner-slide .content .btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}
.banner-slide .content .btn-primary {
    background: #fff;
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.banner-slide .content .btn-primary:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
}
.banner-slide .content .btn-outline {
    border-color: #fff;
    color: #fff;
}
.banner-slide .content .btn-outline:hover {
    background: #fff;
    color: var(--primary);
}
.banner-controls {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 12px;
    align-items: center;
}
.banner-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
}
.banner-dot.active {
    background: #fff;
    border-color: #fff;
    box-shadow: 0 0 20px rgba(255,255,255,0.3);
    transform: scale(1.15);
}
.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
}
.banner-arrow:hover { background: rgba(255,255,255,0.4); }
.banner-arrow.prev { left: 30px; }
.banner-arrow.next { right: 30px; }

/* ===== 2. 关于迈驰 ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-text .desc {
    color: var(--text-gray);
    font-size: 16px;
    line-height: 1.9;
    margin-bottom: 20px;
}
.about-stats {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
    margin-top: 32px;
}
.about-stats .stat {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 20px 16px;
    text-align: center;
    transition: all var(--transition);
}
.about-stats .stat:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}
.about-stats .stat .number {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary);
}
.about-stats .stat .label {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 4px;
}
.about-image img {
    width: 100%;
    height: 360px;
    object-fit: cover;
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow);
}
.about-more { margin-top: 12px; }

/* ===== 3. 产品中心（深色背景卡片） ===== */
.product-grid-new {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 30px;
}
.product-card-dark {
    background: rgba(255,255,255,0.06);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: var(--radius);
    padding: 36px 28px 32px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25,0.46,0.45,0.94);
    position: relative;
    overflow: hidden;
}
.product-card-dark::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(0,82,217,0.15), rgba(0,212,255,0.05));
    opacity: 0;
    transition: opacity 0.5s ease;
    border-radius: var(--radius);
}
.product-card-dark:hover {
    transform: translateY(-8px);
    border-color: rgba(0,82,217,0.4);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
    background: rgba(255,255,255,0.1);
}
.product-card-dark:hover::before { opacity: 1; }
.product-card-dark .icon {
    font-size: 52px;
    margin-bottom: 18px;
    display: block;
    position: relative;
    z-index: 1;
}
.product-card-dark h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #fff;
    position: relative;
    z-index: 1;
}
.product-card-dark p {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 18px;
    position: relative;
    z-index: 1;
}
.product-card-dark .product-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    position: relative;
    z-index: 1;
}
.product-card-dark .product-list .pill {
    background: rgba(255,255,255,0.08);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 13px;
    color: rgba(255,255,255,0.8);
    border: 1px solid rgba(255,255,255,0.06);
    transition: all var(--transition);
    cursor: pointer;
}
.product-card-dark .product-list .pill:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}
.product-card-dark .glow-spot {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0,82,217,0.2), transparent 70%);
    top: -60px;
    right: -60px;
    z-index: 0;
    pointer-events: none;
}

/* ===== 解决方案 ===== */
        .solution-grid {
            display: grid;
            grid-template-columns: repeat(3,1fr);
            gap: 30px;
        }
        .solution-card {
            background: var(--bg-white);
            border: 1px solid var(--border-color);
            border-radius: var(--radius);
            overflow: hidden;
            transition: all var(--transition);
            box-shadow: var(--shadow);
        }
        .solution-card:hover {
            transform: translateY(-6px);
            box-shadow: 0 20px 50px rgba(0,0,0,0.08);
        }
        .solution-card a.img-link {
            display: block;
            overflow: hidden;
        }
        .solution-card a.img-link img {
            width: 100%;
            height: 180px;
            object-fit: cover;
            border-bottom: 1px solid var(--border-color);
            transition: transform 0.4s ease;
        }
        .solution-card:hover a.img-link img { transform: scale(1.03); }
        .solution-card .card-body {
            padding: 24px 20px 28px;
        }
        .solution-card .card-body a.title-link {
            display: block;
            transition: color var(--transition);
        }
        .solution-card .card-body a.title-link h4 {
            font-size: 18px;
            font-weight: 700;
            margin-bottom: 8px;
        }
        .solution-card .card-body a.title-link:hover h4 { color: var(--primary); }
        .solution-card .card-body p {
            color: var(--text-gray);
            font-size: 14px;
            line-height: 1.7;
            margin-bottom: 12px;
        }
        .solution-card .card-body .link {
            color: var(--primary);
            font-weight: 600;
            font-size: 14px;
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }
/* ===== 5. 场景应用（折叠） ===== */
.scene-fold {
    display: flex;
    gap: 8px;
    height: 360px;
    border-radius: var(--radius);
    overflow: hidden;
}
.scene-fold-item {
    flex: 1;
    position: relative;
    background-size: cover;
    background-position: center;
    border-radius: var(--radius);
    transition: flex 0.6s cubic-bezier(0.25,0.46,0.45,0.94), box-shadow 0.4s ease;
    cursor: pointer;
    min-width: 0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.scene-fold-item .fold-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 80%, rgba(0,0,0,0.75) 100%);
    transition: background 0.6s ease;
    z-index: 1;
    border-radius: var(--radius);
}
.scene-fold-item:hover .fold-overlay,
.scene-fold-item.active .fold-overlay {
    background: linear-gradient(180deg, rgba(0,82,217,0.30) 0%, rgba(0,82,217,0.60) 70%, rgba(0,0,0,0.80) 100%);
}
.scene-fold-item .fold-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px 18px 24px;
    z-index: 2;
    color: #fff;
    transition: all 0.5s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.scene-fold-item .fold-icon {
    font-size: 28px;
    margin-bottom: 6px;
    transition: all 0.4s ease;
    opacity: 0.9;
}
.scene-fold-item h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
    white-space: nowrap;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
    transition: all 0.4s ease;
}
.scene-fold-item p {
    font-size: 13px;
    color: rgba(255,255,255,0.85);
    line-height: 1.6;
    margin: 0;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.5s ease 0.1s, max-height 0.6s ease, margin 0.4s ease;
    text-shadow: 0 1px 8px rgba(0,0,0,0.2);
}
.scene-fold-item .fold-link {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: #FFD700;
    margin-top: 0;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease 0.2s, transform 0.4s ease 0.2s, margin 0.4s ease;
    letter-spacing: 0.5px;
}
.scene-fold-item .fold-link::after {
    content: ' →';
    transition: transform 0.3s ease;
    display: inline-block;
}
.scene-fold-item:hover .fold-link::after,
.scene-fold-item.active .fold-link::after { transform: translateX(4px); }

.scene-fold-item:hover,
.scene-fold-item.active {
    flex: 3.5;
    box-shadow: 0 12px 50px rgba(0,82,217,0.25);
    z-index: 10;
    border-radius: var(--radius);
}
.scene-fold-item:hover .fold-content,
.scene-fold-item.active .fold-content { padding: 24px 22px 28px; }
.scene-fold-item:hover .fold-icon,
.scene-fold-item.active .fold-icon { font-size: 32px; opacity: 1; }
.scene-fold-item:hover h4,
.scene-fold-item.active h4 { font-size: 18px; margin-bottom: 8px; }
.scene-fold-item:hover p,
.scene-fold-item.active p { opacity: 1; max-height: 120px; margin-bottom: 6px; }
.scene-fold-item:hover .fold-link,
.scene-fold-item.active .fold-link { opacity: 1; transform: translateY(0); margin-top: 4px; }

.scene-fold-item .fold-link-wrap {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: block;
    cursor: pointer;
}

/* ===== 6. 案例介绍 ===== */
.case-scroll-wrapper {
    position: relative;
    overflow: hidden;
}
.case-scroll-container {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding: 10px 4px 20px;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.case-scroll-container::-webkit-scrollbar { display: none; }
.case-scroll-item {
    flex: 0 0 340px;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    scroll-snap-align: start;
    transition: all var(--transition);
}
.case-scroll-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
}
.case-scroll-item a.img-link {
    display: block;
    overflow: hidden;
}
.case-scroll-item a.img-link img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
    transition: transform 0.4s ease;
}
.case-scroll-item:hover a.img-link img { transform: scale(1.03); }
.case-scroll-item .case-body {
    padding: 20px 20px 24px;
}
.case-scroll-item .case-body .tag {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    background: rgba(0,82,217,0.08);
    padding: 4px 14px;
    border-radius: 50px;
    display: inline-block;
    margin-bottom: 10px;
    border: 1px solid rgba(0,82,217,0.1);
}
.case-scroll-item .case-body a.title-link {
    display: block;
    transition: color var(--transition);
}
.case-scroll-item .case-body a.title-link h4 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}
.case-scroll-item .case-body a.title-link:hover h4 { color: var(--primary); }
.case-scroll-item .case-body p {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.7;
}
.case-scroll-arrows {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
}
.case-scroll-arrows button {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: var(--bg-white);
    color: var(--text-dark);
    font-size: 22px;
    cursor: pointer;
    transition: all var(--transition);
    box-shadow: var(--shadow);
}
.case-scroll-arrows button:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* ===== 7. 新闻资讯 ===== */
.news-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}
.news-list .news-item {
    display: flex;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
}
.news-list .news-item:last-child { border-bottom: none; }
.news-list .news-item .date {
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    background: rgba(0,82,217,0.06);
    padding: 4px 16px;
    border-radius: 50px;
    height: fit-content;
    border: 1px solid rgba(0,82,217,0.1);
}
.news-list .news-item .info a.title-link {
    display: block;
    transition: color var(--transition);
}
.news-list .news-item .info a.title-link h4 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 4px;
}
.news-list .news-item .info a.title-link:hover h4 { color: var(--primary); }
.news-list .news-item .info p {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.6;
}
.news-featured {
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}
.news-featured a.img-link {
    display: block;
    overflow: hidden;
}
.news-featured a.img-link img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-bottom: 1px solid var(--border-color);
    transition: transform 0.4s ease;
}
.news-featured a.img-link:hover img { transform: scale(1.03); }
.news-featured .content {
    padding: 20px 24px 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.news-featured .badge {
    font-size: 12px;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}
.news-featured .content a.title-link {
    display: block;
    transition: color var(--transition);
}
.news-featured .content a.title-link h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}
.news-featured .content a.title-link:hover h4 { color: var(--primary); }
.news-featured .content p {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 16px;
}
.news-featured .read-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: gap var(--transition);
    margin-top: auto;
}
.news-featured .read-more:hover { gap: 14px; }

/* ===== 8. 首页响应式 ===== */
@media (max-width: 1024px) {
    .product-grid-new { grid-template-columns: repeat(2,1fr); }
    .solution-grid { grid-template-columns: repeat(2,1fr); }
    .banner-arrow { display: none; }
    .case-scroll-item { flex: 0 0 280px; }
    .scene-fold {
        height: 300px;
        gap: 6px;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        border-radius: var(--radius);
    }
    .scene-fold::-webkit-scrollbar { display: none; }
    .scene-fold-item { flex: 0 0 120px; min-width: 100px; border-radius: var(--radius); }
    .scene-fold-item:hover,
    .scene-fold-item.active { flex: 0 0 280px; }
    .scene-fold-item p { font-size: 12px; }
    .scene-fold-item h4 { font-size: 14px; }
}
@media (max-width: 768px) {
    .about-grid { grid-template-columns: 1fr; gap: 30px; }
    .about-image img { height: 240px; }
    .product-grid-new { grid-template-columns: 1fr; gap: 20px; }
    .solution-grid { grid-template-columns: 1fr; }
    .news-grid { grid-template-columns: 1fr; gap: 30px; }
    .banner { height: 60vh; min-height: 400px; }
    .banner-slide .content { padding: 0 24px; }
    .banner-slide .content h1 { font-size: 28px; }
    .banner-controls { bottom: 20px; }
    .case-scroll-item { flex: 0 0 260px; }
    .case-scroll-arrows { justify-content: center; }
    .product-card-dark { padding: 28px 20px 24px; }
    .scene-fold { height: 240px; gap: 6px; }
    .scene-fold-item { flex: 0 0 80px; min-width: 70px; border-radius: 8px; }
    .scene-fold-item:hover,
    .scene-fold-item.active { flex: 0 0 200px; }
    .scene-fold-item .fold-content { padding: 12px 12px 16px; }
    .scene-fold-item .fold-icon { font-size: 20px; margin-bottom: 2px; }
    .scene-fold-item h4 { font-size: 12px; white-space: nowrap; }
    .scene-fold-item p { font-size: 11px; line-height: 1.4; }
    .scene-fold-item .fold-link { font-size: 11px; }
    .scene-fold-item:hover .fold-content,
    .scene-fold-item.active .fold-content { padding: 16px 16px 20px; }
    .scene-fold-item:hover .fold-icon,
    .scene-fold-item.active .fold-icon { font-size: 24px; }
    .scene-fold-item:hover h4,
    .scene-fold-item.active h4 { font-size: 14px; }
    .scene-fold-item:hover p,
    .scene-fold-item.active p { max-height: 80px; }
}
@media (max-width: 480px) {
    .banner-slide .content .btn-group { flex-direction: column; width: 100%; }
    .banner-slide .content .btn { width: 100%; text-align: center; }
    .about-stats { grid-template-columns: 1fr 1fr; gap: 12px; }
    .about-stats .stat { padding: 16px 12px; }
    .about-stats .stat .number { font-size: 24px; }
    .scene-fold { height: 180px; gap: 4px; }
    .scene-fold-item { flex: 0 0 60px; min-width: 50px; border-radius: 6px; }
    .scene-fold-item:hover,
    .scene-fold-item.active { flex: 0 0 140px; }
    .scene-fold-item .fold-content { padding: 8px 8px 12px; }
    .scene-fold-item .fold-icon { font-size: 16px; margin-bottom: 0; }
    .scene-fold-item h4 { font-size: 10px; }
    .scene-fold-item p { display: none; }
    .scene-fold-item .fold-link { display: none; }
    .scene-fold-item:hover .fold-content,
    .scene-fold-item.active .fold-content { padding: 12px 12px 16px; }
    .scene-fold-item:hover .fold-icon,
    .scene-fold-item.active .fold-icon { font-size: 20px; }
    .scene-fold-item:hover h4,
    .scene-fold-item.active h4 { font-size: 12px; }
    .scene-fold-item:hover p,
    .scene-fold-item.active p { display: none; }
    .scene-fold-item:hover .fold-link,
    .scene-fold-item.active .fold-link { display: none; }
}