/* AI编程助手页面样式 - 按图片设计精确还原 */

/* 基础样式重置 */
.ai-coding-page * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.ai-coding-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f6f8fa;
    overflow-x: hidden;
}

/* 英雄区域样式 - 精确匹配图片设计 */
.hero-section {
    background: linear-gradient(135deg, #4a90e2 0%, #667eea 50%, #764ba2 100%);
    min-height: 50vh;
    display: flex;
    align-items: center;
    padding: 20px 0 30px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 25% 75%, rgba(255, 255, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 75% 25%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    max-width: 1180px;
    margin: 0 auto;
    
    padding: 0 30px;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
    margin-top: 60px;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 24px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.hero-text .subtitle {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 36px;
    line-height: 1.65;
    font-weight: 400;
}

.hero-cta-btn {
    background: #1a1a2e;
    color: #fff;
    padding: 12px 24px;
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(26, 26, 46, 0.3);
    position: relative;
    overflow: hidden;
}

.hero-cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s ease;
}

.hero-cta-btn:hover::before {
    left: 100%;
}

.hero-cta-btn:hover {
    background: #16213e;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(26, 26, 46, 0.4);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

.computer-mockup {
    max-width: 480px;
    width: 100%;
    position: relative;
    transform: perspective(1000px) rotateY(-8deg) rotateX(2deg);
    transition: transform 0.6s ease;
}

.computer-mockup:hover {
    transform: perspective(1000px) rotateY(-2deg) rotateX(1deg) scale(1.02);
}

.computer-mockup img {
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 
        0 30px 80px rgba(0, 0, 0, 0.25),
        0 12px 32px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 功能特性左侧边栏 */
.features-sidebar {
    padding: 80px 0;
    background: #f8fafc;
    position: relative;
}

.features-sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.08), transparent);
}

.features-layout {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    align-items: flex-start;
}

.sidebar-features {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.sidebar-features  .feature-item {
    margin-bottom: 0;
    padding: 10px 10px;
    border-radius: 16px;
    border: 2px solid #e7e9ff;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: visible;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.06);
    display: block;
    cursor: pointer;
}

/* 选中状态样式 */
.sidebar-features .feature-item.selected {
    background: linear-gradient(135deg, #c7d2fe 0%, #e7e9ff 100%);
  
    box-shadow: 0 2px 12px rgba(102, 126, 234, 0.2);
}

/* 选中状态标记 */
.sidebar-features .feature-item.selected::before {
    content: '';
    position: absolute;
    top: 10px;
    right: -42px;
    width: 60px;
    height: 60px;
    background-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSI0MCIgdmlld0JveD0iMCAwIDE2IDQwIiBmaWxsPSJub25lIj4KICA8cGF0aCBkPSJNMCAwTDAuMDAwMTU5MzM0IDAuNDkzODI3VjQwTDAgMzkuNTA2MlYzNi4yNjA4QzAgMzMuMTg4NCAxLjU2NTk3IDMwLjMyNzggNC4xNTQyMiAyOC42NzIzTDEzLjU1MDkgMjIuNjYyQzE1LjYyODEgMjEuMzMzNCAxNS42MjggMTguMjk5MSAxMy41NTA5IDE2Ljk3MDZMNC4xNTQzOCAxMC45NjA3QzEuNTY2MDQgOS4zMDUxNyAwIDYuNDQ0NTkgMCAzLjM3MjFWMFoiIGZpbGw9IiNFNkU5RkYiLz4KPC9zdmc+Cg==);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    z-index: 10;
}

/* 其他卡片 - 浅灰色背景 */
 
.sidebar-features .feature-item  {
    background: #f1f5f9;
}

 

.sidebar-features .feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
}

.feature-item.selected:hover {
    box-shadow: 0 6px 24px rgba(165, 180, 252, 0.25);
}

.sidebar-features .feature-item h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 14px;
    line-height: 1.25;
    letter-spacing: -0.02em;
    display: block;
    width: 100%;
}

.sidebar-features .feature-item p {
    font-size: 0.95rem;
    color: #5a6c7d;
    line-height: 1.65;
    margin: 0;
    font-weight: 400;
    display: block;
    width: 100%;
}

/* 全功能区域 */
.full-features {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    position: relative;
}

/* 功能内容切换 */
.feature-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.feature-content.active {
    display: block;
    opacity: 1;
}

.full-features h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 16px;
    text-align: center;
}

.full-features .subtitle {
    color: #6c757d;
    text-align: center;
    margin-bottom: 40px;
}

.workflow-demo {
    background: #f8fafc;
    border-radius: 12px;
    padding: 30px;
    margin: 30px 0;
}

.workflow-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.workflow-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #e2e8f0;
    z-index: 1;
}

.workflow-step {
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 12px;
    min-width: 60px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    font-weight: 600;
    color: #667eea;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.workflow-step.active {
    background: #667eea;
    color: #fff;
    border-color: #667eea;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* section-header样式 - 保留给其他区域使用 */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 16px;
}

.section-header .subtitle {
    font-size: 1.1rem;
    color: #6c757d;
}

/* 开发者声音区域 */
.testimonials-section {
    padding: 80px 0;
    background: #fff;
}

.testimonials-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.testimonial-card {
    background: #fff;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f2f5;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: #e2e8f0;
    line-height: 1;
}

.testimonial-text {
    color: #4a5568;
    font-style: italic;
    line-height: 1.7;
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #667eea;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
}

.author-info h4 {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
}

.author-info p {
    font-size: 0.9rem;
    color: #6c757d;
}

/* 企业解决方案区域 */
.enterprise-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.enterprise-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    text-align: center;
}

.enterprise-section .section-header h2 {
    color: #fff;
}

.enterprise-section .section-header .subtitle {
    color: rgba(255, 255, 255, 0.9);
}

.enterprise-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.enterprise-feature {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px 30px;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.enterprise-feature .icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.enterprise-feature h3 {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.enterprise-feature p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* 产品展示区域 */
.product-showcase {
    padding: 80px 0;
    background: #f8fafc;
}

.showcase-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 60px;
}

.showcase-item {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.showcase-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.showcase-image {
    height: 200px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    font-size: 3rem;
}

.showcase-content {
    padding: 30px;
}

.showcase-content h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
}

.showcase-content p {
    color: #6c757d;
    line-height: 1.6;
}

/* 底部功能区域 */
.bottom-features {
    padding: 80px 0;
    background: #fff;
}

.bottom-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

.features-masonry {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 60px;
}

.feature-tile {
    background: #f8fafc;
    border-radius: 16px;
    padding: 30px;
    text-align: center;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.feature-tile:hover {
    border-color: #667eea;
    transform: translateY(-4px);
}

.feature-tile .icon {
    width: 60px;
    height: 60px;
    background: #667eea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #fff;
    font-size: 1.5rem;
}

.feature-tile h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 12px;
}

.feature-tile p {
    color: #6c757d;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* 添加一些视觉增强效果 */
.ai-coding-page {
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 滚动条样式 */
.ai-coding-page ::-webkit-scrollbar {
    width: 6px;
}

.ai-coding-page ::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.ai-coding-page ::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 3px;
}

.ai-coding-page ::-webkit-scrollbar-thumb:hover {
    background: #4a90e2;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        padding: 0 20px;
    }
    
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .computer-mockup {
        transform: none;
        max-width: 320px;
    }
    
    .features-layout {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 20px;
    }
    
    .testimonials-grid,
    .enterprise-features,
    .showcase-grid {
        grid-template-columns: 1fr;
    }
    
    .features-masonry {
        grid-template-columns: 1fr;
    }
    
    .workflow-steps {
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
    }
    
    .workflow-steps::before {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .hero-container,
    .testimonials-container,
    .enterprise-container,
    .showcase-container,
    .bottom-container {
        padding: 0 20px;
    }
} 