/* ==========================================
   产品页面和文档中心页面补充样式
   ========================================== */

/* 产品页面头部 */
.product-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 140px 0 80px;
    text-align: center;
    color: white;
    position: relative;
    z-index: 1;
}

.product-hero .hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.product-hero .hero-desc {
    font-size: 1.125rem;
    opacity: 0.95;
}

/* 产品导航区域 */
.product-nav-section {
    background: #f9fafb;
    padding: 24px 0;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 72px;
    z-index: 999;
}

.product-nav {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.product-nav-item {
    padding: 10px 20px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    color: #1f2937;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.3s;
    font-weight: 500;
}

.product-nav-item:hover,
.product-nav-item.active {
    background: linear-gradient(135deg, #3b82f6, #10b981);
    color: white;
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

/* 产品页面样式 */
.product-section {
    padding: 80px 0;
    background: white;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

.product-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 32px;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.product-icon {
    margin-bottom: 20px;
}

.product-icon svg {
    width: 48px;
    height: 48px;
}

.product-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
}

.product-desc {
    color: #6b7280;
    line-height: 1.8;
    margin-bottom: 20px;
    flex-grow: 1;
}

.product-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.product-features li {
    padding: 8px 0;
    color: #6b7280;
    font-size: 0.9375rem;
    display: flex;
    align-items: center;
}

.product-features li::before {
    content: '•';
    color: #3b82f6;
    font-weight: 700;
    margin-right: 12px;
    font-size: 1.25rem;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.btn-product-detail {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-product-detail:hover {
    color: #10b981;
}

.product-count {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
}

/* 文档中心头部 */
.doc-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 140px 0 80px;
    text-align: center;
    color: white;
    position: relative;
    z-index: 1;
}

.doc-hero-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.doc-hero-desc {
    font-size: 1.125rem;
    opacity: 0.95;
    margin-bottom: 32px;
}

/* 文档中心搜索框 */
.doc-search {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.doc-search-input {
    flex: 1;
    padding: 16px 24px;
    border: none;
    outline: none;
    font-size: 1rem;
    color: #1f2937;
}

.doc-search-btn {
    padding: 16px 24px;
    background: linear-gradient(135deg, #3b82f6, #10b981);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.doc-search-btn:hover {
    opacity: 0.9;
}

/* 快速开始区域 */
.doc-quick-start {
    padding: 80px 0;
    background: #f9fafb;
}

.quick-start-header {
    text-align: center;
    margin-bottom: 60px;
}

.quick-start-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
}

.quick-start-header p {
    font-size: 1.125rem;
    color: #6b7280;
}

.quick-start-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
}

.step-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 32px;
    text-align: center;
    transition: all 0.3s;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.step-num {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #3b82f6, #10b981);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.step-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
}

.step-card p {
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 16px;
}

.step-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s;
}

.step-link:hover {
    color: #10b981;
}

/* 文档分类区域 */
.doc-category-section {
    padding: 80px 0;
}

.doc-category-header {
    text-align: center;
    margin-bottom: 60px;
}

.doc-category-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
}

.doc-category-header p {
    font-size: 1.125rem;
    color: #6b7280;
}

.doc-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.doc-category-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s;
    text-decoration: none;
    display: block;
}

.doc-category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.doc-category-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.doc-category-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 8px;
}

.doc-category-card p {
    color: #6b7280;
    font-size: 0.875rem;
    margin-bottom: 12px;
}

.doc-category-count {
    color: #3b82f6;
    font-size: 0.875rem;
    font-weight: 500;
}

/* 文档分类列表样式 */
.doc-categories {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.doc-category {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    transition: all 0.3s;
}

.doc-category:hover {
    transform: translateX(4px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
}

.category-icon {
    flex-shrink: 0;
}

.category-icon svg {
    width: 32px;
    height: 32px;
}

.category-info {
    flex-grow: 1;
}

.category-info h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
}

.category-info p {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0;
}

.category-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.3s;
    flex-shrink: 0;
}

.category-link:hover {
    color: #10b981;
}

.category-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-tag {
    padding: 4px 12px;
    background: #f3f4f6;
    color: #6b7280;
    border-radius: 16px;
    font-size: 0.8125rem;
    font-weight: 500;
}

/* 代码示例样式 */
.code-examples {
    margin-top: 60px;
}

.code-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e5e7eb;
}

.code-tab {
    padding: 12px 24px;
    background: transparent;
    border: none;
    color: #6b7280;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
}

.code-tab.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

.code-example {
    background: #1f2937;
    border-radius: 12px;
    padding: 24px;
    overflow-x: auto;
}

.code-example pre {
    margin: 0;
    color: #e5e7eb;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* 响应式优化 */
@media (max-width: 768px) {
    .doc-search {
        max-width: 100%;
        border-radius: 12px;
    }
    
    .quick-start-steps {
        grid-template-columns: 1fr;
    }
    
    .doc-category-grid {
        grid-template-columns: 1fr;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .category-header {
        flex-wrap: wrap;
    }
    
    .category-link {
        width: 100%;
        justify-content: center;
        margin-top: 8px;
    }
}

/* ==========================================
   文档中心 - 代码示例区域
   ========================================== */
.doc-examples {
    padding: 80px 0;
    background: white;
}

.example-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    border-bottom: 2px solid #e5e7eb;
    justify-content: center;
}

.example-tab {
    padding: 12px 24px;
    background: transparent;
    border: none;
    color: #6b7280;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    font-size: 15px;
}

.example-tab.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

.example-tab:hover {
    color: #3b82f6;
}

.example-content {
    position: relative;
}

.example-code {
    display: none;
    background: #1f2937;
    border-radius: 12px;
    padding: 24px;
    overflow-x: auto;
    border: 3px solid #3b82f6;
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.3);
}

.example-code.active {
    display: block;
}

.example-code pre {
    margin: 0;
    color: #e5e7eb;
    font-family: 'Courier New', 'Consolas', monospace;
    font-size: 14px;
    line-height: 1.6;
}

.example-code code {
    color: #e5e7eb;
}

/* ==========================================
   文档中心 - FAQ区域
   ========================================== */
.doc-faq {
    padding: 80px 0;
    background: #f9fafb;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s;
}

.faq-item:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.faq-question {
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.faq-question h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
    margin: 0;
}

.faq-question svg {
    transition: transform 0.3s;
    color: #6b7280;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 24px 20px;
    color: #6b7280;
    line-height: 1.8;
    margin: 0;
}

/* ==========================================
   文档中心 - CTA区域
   ========================================== */
.doc-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-align: center;
    color: white;
}

.doc-cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.doc-cta-content p {
    font-size: 1.125rem;
    margin-bottom: 32px;
    opacity: 0.95;
}

/* ==========================================
   产品页面 - CTA区域
   ========================================== */
.product-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    text-align: center;
    color: white;
}

.product-cta .cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.product-cta .cta-content p {
    font-size: 1.125rem;
    margin-bottom: 32px;
    opacity: 0.95;
}

.product-cta .cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 产品页面 - 查看定价按钮固定样式 */
.product-cta .btn-outline {
    background: #3b82f6;
    border: 2px solid #3b82f6;
    color: white;
}

.product-cta .btn-outline:hover {
    background: #3b82f6;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(59, 130, 246, 0.3);
}

/* ==========================================
   响应式优化 - 移动端
   ========================================== */
@media (max-width: 768px) {
    .doc-cta-content h2,
    .product-cta .cta-content h2 {
        font-size: 2rem;
    }
    
    .example-tabs {
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    
    .example-tab {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .example-code {
        padding: 16px;
    }
    
    .example-code pre {
        font-size: 12px;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
    
    .product-cta .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .product-cta .cta-buttons .btn {
        width: 100%;
        max-width: 300px;
    }
}
