/* 首页专用样式 - index.html */

/* 英雄区域 */
.hero {
    background: linear-gradient(135deg, #f5f7fa 0%, #e6f7ff 100%);
    color: var(--dark);
    padding: 180px 0 100px;
    position: relative;
    overflow: hidden;
}

.hero:before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 800" opacity="0.05"><defs><linearGradient id="a" x1="50%" x2="50%" y1="0%" y2="100%"><stop offset="0%" stop-color="%231890FF"/><stop offset="100%" stop-color="%231890FF"/></linearGradient></defs><g fill="url(%23a)"><circle r="100" cx="400" cy="400"/><circle r="100" cx="600" cy="200"/><circle r="100" cx="200" cy="600"/></g></svg>');
    background-size: cover;
}

.hero-carousel {
    position: relative;
    z-index: 1;
}

.hero-slide {
    display: none;
}

.hero-slide.active {
    display: block;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 60px;
    height: 450px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: 3.5rem;
    margin-bottom: 25px;
    line-height: 1.2;
    font-weight: 700;
    color: var(--dark);
}

.hero-text h1 span {
    color: var(--primary);
}

.hero-text p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    color: var(--gray);
    line-height: 1.8;
}

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

.hero-btns .btn {
    margin: 0;
}

.hero-image {
    flex: 1;
    text-align: center;
}

/* 轮播控制 */
.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-top: 50px;
}

.carousel-dots {
    display: flex;
    gap: 15px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

.carousel-nav {
    display: flex;
    gap: 15px;
    z-index: 2;
}

.nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: white;
    color: var(--primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    background: var(--primary);
    color: white;
}

/* 仪表板预览 */
.dashboard-preview {
    width: 100%;
    max-width: 400px;
    height: 300px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin: 0 auto;
}

.dashboard-header {
    background: var(--primary);
    color: white;
    padding: 15px 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

.dashboard-content {
    padding: 20px;
    display: flex;
    gap: 20px;
    height: calc(100% - 60px);
}

.dashboard-sidebar {
    width: 30%;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
}

.dashboard-main {
    flex: 1;
    display: flex;
    gap: 15px;
}

.metric-card {
    flex: 1;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
}

/* 移动端预览 */
.mobile-preview {
    width: 100%;
    max-width: 200px;
    height: 400px;
    position: relative;
    margin: 0 auto;
}

.mobile-screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    position: relative;
}

.mobile-header {
    background: var(--primary);
    color: white;
    padding: 20px 15px 15px;
    text-align: center;
}

.mobile-status-bar {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 10px;
}

.status-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
}

.mobile-title {
    font-weight: 600;
    font-size: 0.9rem;
}

.mobile-content {
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mobile-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.card-icon {
    width: 30px;
    height: 30px;
    background: var(--primary);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.8rem;
}

.card-text {
    flex: 1;
}

.text-line {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    margin-bottom: 5px;
}

.text-line.short {
    width: 60%;
}

/* 分析预览 */
.analytics-preview {
    width: 100%;
    max-width: 350px;
    height: 250px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin: 0 auto;
}

.chart-container {
    padding: 20px;
    height: 100%;
}

.chart-header {
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--dark);
    text-align: center;
}

.chart-content {
    display: flex;
    align-items: end;
    justify-content: space-between;
    height: 120px;
    margin-bottom: 15px;
    gap: 8px;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(to top, var(--primary), var(--primary-light));
    border-radius: 4px 4px 0 0;
    min-height: 20px;
    transition: all 0.3s ease;
}

.chart-bar:hover {
    opacity: 0.8;
}

.chart-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--gray);
}

/* 特性区域 */
.features {
    background: white;
}

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

.feature-card {
    text-align: center;
    padding: 40px 30px;
    border-radius: 12px;
    transition: all 0.4s ease;
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    /* 移除性能优化属性，AOS处理动画 */
    backface-visibility: hidden;
    position: relative;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover::after {
    transform: scaleX(1);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: rgba(24, 144, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    transition: transform 0.4s ease, background 0.4s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    background: rgba(24, 144, 255, 0.2);
}

.feature-icon i {
    font-size: 2.5rem;
    color: var(--primary);
    transition: transform 0.4s ease;
}

.feature-card:hover .feature-icon i {
    transform: scale(1.1);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--dark);
}

.feature-card p {
    color: var(--gray);
    line-height: 1.6;
}

/* 产品展示 */
.products {
    background: linear-gradient(135deg, #f5f7fa 0%, #e6f7ff 100%);
    position: relative;
    overflow: hidden;
}


.product-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 50px;
    background: white;
    border-radius: 50px;
    padding: 8px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    position: relative;
    z-index: 1;
}

.tab-btn {
    padding: 12px 35px;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray);
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    border-radius: 50px;
}

.tab-btn.active {
    color: white;
    background: var(--primary);
    box-shadow: 0 5px 15px rgba(24, 144, 255, 0.3);
}

.tab-content {
    display: none;
    position: relative;
    z-index: 1;
}

.tab-content.active {
    display: block;
    /* 动画由AOS处理 */
}

.product-showcase {
    display: flex;
    align-items: center;
    gap: 60px;
    background: white;
    border-radius: 20px;
    padding: 50px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.product-image {
    flex: 1;
    text-align: center;
}

.product-preview {
    width: 100%;
    height: 350px;
    border-radius: 12px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.product-preview-header {
    height: 40px;
    display: flex;
    align-items: center;
    padding: 0 15px;
    font-weight: 600;
    color: white;
    background: var(--primary);
}

.product-preview-content {
    flex: 1;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    background: #f8f9fa;
}

.preview-item {
    height: 10px;
    border-radius: 5px;
    background: #e0e0e0;
}

.preview-item:nth-child(2) {
    width: 80%;
}

.preview-item:nth-child(4) {
    width: 60%;
}

.product-info {
    flex: 1;
}

.product-info h3 {
    font-size: 2.2rem;
    margin-bottom: 20px;
    color: var(--dark);
    font-weight: 700;
}

.product-info p {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: var(--gray);
    line-height: 1.8;
}

.product-info ul {
    list-style: none;
    margin-bottom: 35px;
}

.product-info li {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    font-size: 1.05rem;
}

.product-info li i {
    color: var(--primary);
    margin-right: 12px;
    font-size: 1.2rem;
}

/* 价格方案 */
.pricing {
    background: white;
}

.pricing-plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.pricing-card {
    background: white;
    border-radius: 16px;
    padding: 50px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(24, 144, 255, 0.15);
}

.pricing-card.featured:before {
    content: '最受欢迎';
    position: absolute;
    top: 20px;
    right: -35px;
    background: var(--primary);
    color: white;
    padding: 6px 40px;
    transform: rotate(45deg);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 1px;
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.plan-name {
    font-size: 1.6rem;
    margin-bottom: 15px;
    color: var(--dark);
    font-weight: 600;
}

.plan-price {
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 10px;
}

.plan-price span {
    font-size: 1.2rem;
    color: var(--gray);
    font-weight: 500;
}

.plan-features {
    list-style: none;
    margin-bottom: 40px;
    flex-grow: 1;
}

.plan-features li {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    color: var(--gray);
    display: flex;
    align-items: center;
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features li i {
    margin-right: 10px;
    color: var(--primary);
}

/* AOS 动画已替换原有的自定义动画 */

/* 响应式设计 */
@media (max-width: 992px) {
    .product-image{
        display: none;
    }
    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        min-height: 350px;
        height: auto;
    }

    .hero {
        padding: 150px 0 40px;
    }

    .hero-text {
        order: 2;
    }
    
    .hero-image {
        order: 1;
        display: none;
    }
    .carousel-nav {
        display: none;
    }
    
    .product-showcase {
        flex-direction: column;
        gap: 40px;
    }
    
    .pricing-plans {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-10px);
    }
}

@media (max-width: 768px) {

    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text p {
        font-size: 1.1rem;
    }
    
    .hero-btns {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-btns .btn {
        width: 100%;
        max-width: 250px;
    }
    
    .carousel-controls {
        flex-direction: column;
        gap: 20px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .product-tabs {
        flex-direction: column;
        width: 100%;
        border-radius: 12px;
    }
    
    .tab-btn {
        width: 100%;
        border-radius: 8px;
        margin-bottom: 5px;
    }
    
    .product-showcase {
        padding: 30px 20px;
    }
    
    .product-info h3 {
        font-size: 1.8rem;
    }
}

@media (max-width: 576px) {
    .hero-text h1 {
        font-size: 2.2rem;
    }
    
    .dashboard-preview,
    .mobile-preview,
    .analytics-preview {
        max-width: 100%;
    }
    
    .pricing-card {
        padding: 30px 20px;
    }
    
    .plan-price {
        font-size: 2.8rem;
    }
}
