/* 主页样式 */

/* 英雄区域 */
.hero {
    padding: 80px 0;
    background-color: #1890ff; /* 与CTA部分相同的天蓝色背景 */
    color: #fff; /* 文字改为白色以便在深色背景上更清晰 */
}

.hero-content {
    max-width: 600px;
    padding: 40px;
    border-radius: 10px;
    color: #fff; /* 文字颜色改为白色，以便在蓝色背景上更清晰 */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

/* 其他样式保持不变 */
.hero .btn-outline {
    color: #fff;
    border-color: #fff;
}

.hero .btn-outline:hover {
    background-color: #fff;
    color: #4a6cf7;
}

.hero-image {
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
}

/* 特点介绍 */
.features {
    padding: 80px 0;
    background-color: #fff;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2.5rem;
    color: #4a6cf7;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.feature-card p {
    color: #666;
}

/* GPU型号展示 */
.gpu-models {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.model-tabs {
    margin-top: 40px;
}

.tab-header {
    display: flex;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 30px;
}

.tab-btn {
    padding: 12px 25px;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.tab-btn:hover {
    color: #1890ff;
}

.tab-btn.active {
    color: #1890ff;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #1890ff;
}

.tab-content {
    position: relative;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

.gpu-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.gpu-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.3s;
}

.gpu-card:hover {
    transform: translateY(-10px);
}

.gpu-info {
    padding: 20px;
}

.gpu-info h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #333;
}

.gpu-info ul {
    list-style: none;
    padding: 0;
    margin-bottom: 15px;
}

.gpu-info ul li {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    color: #666;
}

.gpu-info ul li i {
    margin-right: 10px;
    color: #1890ff;
}

.gpu-desc {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.gpu-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.gpu-price span {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1890ff;
}

.btn-sm {
    display: inline-block;
    padding: 8px 15px;
    background-color: #1890ff;
    color: #fff;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}

.btn-sm:hover {
    background-color: #0050b3;
}

.tab-btn.active {
    color: #4a6cf7;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #4a6cf7;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* GPU型号展示 - 修复卡片布局 */
.gpu-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.gpu-card {
    display: flex;
    flex-direction: column;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    background-color: #fff;
    height: 100%; /* 确保所有卡片高度一致 */
}

.gpu-image {
    padding: 20px;
    background-color: #f8f9fa;
    text-align: center;
    height: 200px; /* 固定图片容器高度 */
    display: flex;
    align-items: center;
    justify-content: center;
}

.gpu-image img {
    max-width: 100%;
    max-height: 160px; /* 限制图片最大高度 */
    object-fit: contain;
}

.gpu-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* 让内容区域填充剩余空间 */
}

.gpu-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.gpu-info ul {
    list-style: none;
    padding: 0;
    margin-bottom: 15px;
}

.gpu-info li {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    color: #666;
}

.gpu-info li i {
    margin-right: 10px;
    color: #4a6cf7;
}

.gpu-desc {
    margin-bottom: 15px;
    color: #666;
}

.gpu-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gpu-price span {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
}

/* 应用场景 */
.use-cases {
    padding: 80px 0;
    background-color: #fff;
}

.case-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.case-item {
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.case-item:hover {
    transform: translateY(-5px);
}

.case-icon {
    font-size: 2.5rem;
    color: #4a6cf7;
    margin-bottom: 20px;
}

.case-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.case-item p {
    color: #666;
}

/* 解决方案 */
.solutions {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.solution-cards {
    margin-top: 40px;
}

.solution-card {
    display: flex;
    margin-bottom: 40px;
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.solution-content {
    flex: 1;
    padding: 40px;
}

.solution-content h3 {
    font-size: 1.75rem;
    margin-bottom: 15px;
}

.solution-content p {
    color: #666;
    margin-bottom: 20px;
}

.solution-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.solution-content li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    color: #666;
}

.solution-content li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4a6cf7;
}

.solution-image {
    flex: 1;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.solution-image img {
    max-width: 100%;
    height: auto;
}

/* 客户案例 */
.case-studies {
    padding: 80px 0;
    background-color: #fff;
}

/* 客户案例轮播样式修复 */
.case-study-slider {
    position: relative;
    overflow: hidden;
    margin-top: 40px;
    display: flex;
    transition: transform 0.5s ease;
}

.case-study {
    min-width: 100%;
    display: flex;
    padding: 30px;
    background-color: #f8f9fa;
    border-radius: 8px;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

/* 确保所有案例内容都可见 */
.case-study-content {
    flex: 1;
    opacity: 1;
    visibility: visible;
}

.case-study-logo {
    flex: 0 0 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 30px;
}

.case-study-logo img {
    max-width: 100%;
    height: auto;
}

.case-study-content {
    flex: 1;
}

.case-study-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.case-study-content p {
    color: #666;
    margin-bottom: 20px;
    font-style: italic;
}

.case-study-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.case-study-info span {
    color: #666;
}

.case-study-dots {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: #ddd;
    margin: 0 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #4a6cf7;
}

/* 价格计划 */
.pricing {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.pricing-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    transition: transform 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
}

.pricing-card.featured {
    border: 2px solid #4a6cf7;
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-5px);
}

.pricing-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: #4a6cf7;
    color: #fff;
    padding: 5px 15px;
    font-size: 0.875rem;
    border-bottom-left-radius: 8px;
}

.pricing-header {
    padding: 30px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.pricing-header h3 {
    font-size: 1.75rem;
    margin-bottom: 10px;
}

.pricing-header p {
    color: #666;
}

.pricing-features {
    padding: 30px;
}

.pricing-features ul {
    list-style: none;
    padding: 0;
}

.pricing-features li {
    margin-bottom: 15px;
    color: #666;
    display: flex;
    align-items: center;
}

.pricing-features li i {
    color: #4a6cf7;
    margin-right: 10px;
}

.pricing-footer {
    padding: 0 30px 30px;
    text-align: center;
}

/* FAQ */
.faq {
    padding: 80px 0;
    background-color: #fff;
}

.faq-container {
    margin-top: 40px;
}

.faq-item {
    margin-bottom: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    background-color: #f8f9fa;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question h3 {
    font-size: 1.25rem;
    margin: 0;
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.faq-item.active .toggle-icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 500px;
}

.faq-more {
    text-align: center;
    margin-top: 30px;
}

/* 注册提示 */
.cta {
    padding: 80px 0;
    background-color: #4a6cf7;
    color: #fff;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.cta .btn-outline {
    color: #fff;
    border-color: #fff;
}

.cta .btn-outline:hover {
    background-color: #fff;
    color: #4a6cf7;
}

/* 响应式调整 */
@media (max-width: 992px) {
    .solution-card {
        flex-direction: column;
    }
    
    .solution-image {
        min-height: 300px;
    }
    
    .case-study {
        flex-direction: column;
    }
    
    .case-study-logo {
        margin-right: 0;
        margin-bottom: 20px;
    }
}

@media (max-width: 768px) {
    .hero {
        text-align: center;
    }
    
    .hero-content {
        margin: 0 auto;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}

/* 调整所有section的上下padding */
.hero, .features, .use-cases, .gpu-models, .solutions, .case-studies, .pricing, .faq, .cta {
    padding: 40px 0; /* 从原来的80px减少到40px */
}

/* 调整section-header的下margin */
.section-header {
    margin-bottom: 25px; /* 减少标题与内容之间的间距 */
}

/* 为了保持视觉平衡，可以适当调整一些内部元素的margin */
.feature-cards, .case-grid, .gpu-cards, .solution-cards, .pricing-cards, .faq-container {
    margin-top: 30px; /* 减少标题与卡片之间的间距 */
}

/* 调整相邻section之间的间距 */
.features + .use-cases,
.use-cases + .gpu-models,
.gpu-models + .solutions,
.solutions + .case-studies,
.case-studies + .pricing,
.pricing + .faq,
.faq + .cta {
    margin-top: -10px; /* 使用负margin进一步减少相邻section之间的间距 */
}