/* 首页专属样式 */

/* Banner 区域 */
.banner {
    background: url(../static/banner/banner.png) no-repeat center;
    background-size: cover;
    padding: 80px 20px 40px;
    min-height: 600px;
    position: relative;
    box-sizing: border-box;
    overflow: hidden;
}

.banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.banner-left {
    flex: 1;
}

.banner-title {
    font-size: 45px;
    color: var(--primary-dark);
    font-weight: bold;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.banner-desc {
    font-size: 25px;
    color: var(--text-primary);
    margin-bottom: 40px;
    line-height: 1.8;
}

.banner-desc p {
    margin-bottom: 15px;
}

.separator {
    font-weight: bold;
    margin: 0 10px;
}

.banner-btns {
    display: flex;
    gap: 20px;
}

.banner-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-img {
    max-width: 100%;
    height: auto;
}

.feature-tags {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.9);
}

.feature-tags .tag {
    padding: 6px 15px;
    background: #f6faff;
    border-radius: 4px;
    font-size: 14px;
    color: var(--text-primary);
    white-space: nowrap;
}

/* 核心特性 */
.features {
    padding: 60px 20px;
    background: #fff;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-item {
    background: linear-gradient(to bottom, #eef4ff, #fafcff);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s;
    border: 1px solid #e6f7ff;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-item h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.feature-item p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 产品矩阵 */
.product-matrix {
    padding: var(--section-padding);
    background: #fff;
}

.matrix-header {
    background: url(../static/bg1.png) no-repeat center;
    background-size: cover;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 40px;
    text-align: center;
}

.matrix-main-title {
    font-size: 24px;
    color: var(--secondary-color);
    font-weight: bold;
    margin-bottom: 15px;
}

.matrix-subtitle {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.matrix-tags {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.matrix-tags .tag {
    background: #fff;
    border: 1px solid #ccc;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
}

.matrix-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.matrix-card {
    background: linear-gradient(to bottom, #eef4ff, #fafcff);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e6f7ff;
    transition: transform 0.3s, box-shadow 0.3s;
}

.matrix-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.card-icon {
    width: 100%;
    height: 32px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.card-icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.matrix-card h4 {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.matrix-card > p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    line-height: 1.6;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.card-tags span {
    background: #f0f8ff;
    border: 1px solid #b3d9ff;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    color: var(--secondary-color);
}

/* 产品优势 */
.advantages {
    padding: var(--section-padding);
    background: linear-gradient(to bottom, #eef4ff, #fafcff);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.advantage-card {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e6f7ff;
    transition: transform 0.3s, box-shadow 0.3s;
}

.advantage-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.advantage-icon {
    font-size: 32px;
    margin-bottom: 15px;
}

.advantage-card h4 {
    font-size: 18px;
    font-weight: bold;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.advantage-card ul {
    list-style: none;
    padding: 0;
}

.advantage-card li {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 8px;
    padding-left: 16px;
    position: relative;
}

.advantage-card li::before {
    content: '•';
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* 培训核心学习引擎 */
.learning-engine {
    padding: var(--section-padding);
    background: #fff;
}

.engine-wrapper {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.engine-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.engine-item {
    background: #f5f5f5;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.engine-item:hover {
    background: #e8f4ff;
}

.engine-item.active {
    background: linear-gradient(135deg, #4a90e2 0%, #5fa3ef 100%);
}

.engine-item.active .engine-title,
.engine-item.active .engine-desc {
    color: #fff;
}

.engine-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.engine-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.6;
}

.engine-display {
    flex: 1;
    position: relative;
}

.engine-content {
    display: none;
}

.engine-img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 20px;
}

.engine-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.engine-tags span {
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    height: 32px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 16px;
    font-size: 13px;
    color: #333;
}

.engine-tags span::before {
    content: '•';
    color: #4a90e2;
    font-size: 16px;
    margin-right: 6px;
}

/* 行业案例 */
.industry-cases {
    padding: var(--section-padding);
    background: #f5f5f5;
}

.industry-carousel {
    position: relative;
    max-width: 1200px;
    margin: 0 auto 30px;
    overflow: hidden;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    font-size: 30px;
    color: #333;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.carousel-btn:hover {
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.carousel-btn.prev {
    left: -25px;
}

.carousel-btn.next {
    right: -25px;
}

.industry-grid {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease;
}

.industry-card {
    position: relative;
    min-width: calc((100% - 40px) / 3);
    height: 380px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    flex-shrink: 0;
}

.industry-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.industry-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.3) 40%, rgba(0, 0, 0, 0.7) 100%);
    display: flex;
    align-items: flex-end;
    padding: 30px;
}

.industry-info {
    width: 100%;
}

.industry-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.industry-icon {
    font-size: 48px;
    line-height: 1;
}

.industry-name {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.name-zh {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
}

.name-en {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.industry-text {
    font-size: 13px;
    line-height: 1.8;
    color: #fff;
    text-align: left;
    margin: 0;
}

.industry-indicators {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 20px 0;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s;
}

.indicator.active {
    background: #333;
}

/* 业务场景 */
.business-scenarios {
    padding: var(--section-padding);
    background: #fff;
}

.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.scenario-card {
    background: linear-gradient(to bottom, #eef4ff, #fafcff);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    border: 1px solid #e6f7ff;
    transition: transform 0.3s;
}

.scenario-card:hover {
    transform: translateY(-5px);
}

.scenario-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    display: block;
}

.scenario-card h4 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 15px;
}

.scenario-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* 合作伙伴 */
.partners {
    padding: var(--section-padding);
    background: #f9faff;
    overflow: hidden;
}

.partners-scroll {
    display: flex;
    flex-direction: column;
    gap: 30px;
    max-width: 1400px;
    margin: 0 auto;
}

.scroll-row {
    overflow: hidden;
    white-space: nowrap;
}

.scroll-content {
    display: inline-flex;
    gap: 40px;
    animation: scrollLeft 40s linear infinite;
}

.scroll-row.reverse .scroll-content {
    animation: scrollRight 40s linear infinite;
}

.scroll-content img {
    height: 80px;
    width: auto;
    object-fit: contain;
    display: inline-block;
}

@keyframes scrollLeft {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes scrollRight {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}


/* 右下角按钮组 */
.fixed-buttons-group {
    position: fixed;
    right: 30px;
    bottom: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    z-index: 1000;
    align-items: flex-end;
}

/* 返回顶部按钮 */
.back-to-top {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #5881db 0%, #7ba3f0 100%);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(88, 129, 219, 0.4);
    transition: all 0.3s;
    display: none;
    justify-content: center;
    align-items: center;
}

.back-to-top:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(88, 129, 219, 0.5);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .banner {
        padding: 40px 15px 100px;
        min-height: auto;
    }
    
    .banner-content {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .banner-title {
        font-size: 28px;
    }
    
    .banner-desc {
        font-size: 16px;
    }
    
    .banner-btns {
        justify-content: center;
    }
    
    .feature-tags {
        height: auto;
        padding: 15px 10px;
    }
    
    .matrix-grid,
    .advantages-grid,
    .scenarios-grid {
        grid-template-columns: 1fr;
    }
    
    .industry-grid {
        gap: 15px;
    }
    
    .industry-card {
        min-width: 100%;
        height: 320px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .carousel-btn.prev {
        left: 10px;
    }
    
    .carousel-btn.next {
        right: 10px;
    }
    
    .engine-wrapper {
        flex-direction: column;
    }
    
    .engine-sidebar {
        width: 100%;
    }
    
    .engine-item {
        margin-bottom: 10px;
    }
    
    .modal-content {
        padding: 20px;
    }
    
    .demo-table {
        font-size: 12px;
    }
    
    .demo-table th,
    .demo-table td {
        padding: 8px 4px;
    }
    
    .fixed-buttons-group {
        right: 15px;
        bottom: 15px;
        gap: 10px;
    }
    
    .chat-button {
        width: 50px;
        height: 50px;
    }
    
    .back-to-top {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
}
