/* 产品详情页专用样式 */

/* 产品详情页容器 */
.product-detail-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
    position: relative;
    overflow: hidden;
}

/* 产品详情页头部 */
.product-detail-header {
    background: rgba(15, 15, 35, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(99, 102, 241, 0.3) !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 1000 !important;
    transition: all 0.3s ease !important;
    padding: 1rem 5% !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

/* 产品详情页内容区域 */
.product-detail-content {
    padding-top: 80px;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 2rem;
    padding-right: 2rem;
}

/* 详情页footer样式 */
.product-detail-container .footer-section {
    margin-top: 4rem;
}

/* 详情页导航菜单样式 */
.product-detail-header nav a::after {
    display: none !important;
}

/* 详情页logo样式 */
.product-detail-header .logo {
    font-size: 1.4rem !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.8) !important;
    letter-spacing: 0.5px !important;
    text-decoration: none !important;
}

.product-detail-header .logo span {
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #06b6d4) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.3) !important;
}

/* 详情页导航菜单链接样式 */
.product-detail-header nav a {
    color: #a5b4fc !important;
    text-decoration: none !important;
    font-weight: 500 !important;
    transition: all 0.3s ease !important;
    position: relative !important;
}

.product-detail-header nav a:hover {
    color: #6366f1 !important;
}

/* 详情页导航菜单列表样式 */
.product-detail-header nav ul {
    display: flex !important;
    gap: 3rem !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* 产品英雄区域 */
.product-hero {
    padding: 4rem 0;
    text-align: center;
    position: relative;
}

.product-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.product-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 1rem;
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

.product-hero .subtitle {
    font-size: 1.2rem;
    color: #a5b4fc;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.product-hero .price {
    font-size: 2rem;
    font-weight: 600;
    color: #10b981;
    margin-bottom: 2rem;
}

.product-hero .icon {
    font-size: 4rem;
    margin-bottom: 2rem;
    color: #6366f1;
    text-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
}

/* 产品标签页区域 */
.product-tabs-section {
    margin: 3rem 0;
    background: rgba(15, 15, 35, 0.5);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* 标签页导航 */
.tabs-nav {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
    padding-bottom: 1rem;
}

.tab-btn {
    background: transparent;
    border: none;
    color: #a5b4fc;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn:hover {
    color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
}

.tab-btn.active {
    color: #6366f1;
    background: rgba(99, 102, 241, 0.2);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.3);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 1px;
}

/* 标签页内容 */
.tabs-content {
    position: relative;
}

.tab-pane {
    display: none !important;
    animation: fadeIn 0.3s ease;
}

.tab-pane.active {
    display: block !important;
}

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

/* 产品特性区域 */
.features-section {
    margin-bottom: 3rem;
}

.features-section h3 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.features-section h3::before {
    content: '✨';
    font-size: 1.2rem;
}

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

.feature-card {
    background: rgba(15, 15, 35, 0.3);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
}

.feature-card h4 {
    color: #6366f1;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: #a5b4fc;
    line-height: 1.6;
}

/* 使用场景区域 */
.use-cases-section {
    margin-bottom: 3rem;
}

.use-cases-section h3 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.use-cases-section h3::before {
    content: '🎯';
    font-size: 1.2rem;
}

.use-cases-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.use-case-item {
    background: rgba(15, 15, 35, 0.3);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 8px;
    padding: 1rem;
    transition: all 0.3s ease;
}

.use-case-item:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.4);
}

.use-case-item h4 {
    color: #6366f1;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.use-case-item p {
    color: #a5b4fc;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 相关产品区域 */
.related-products-section {
    margin-bottom: 3rem;
}

.related-products-section h3 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.related-products-section h3::before {
    content: '🔗';
    font-size: 1.2rem;
}

.related-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.related-product-card {
    background: rgba(15, 15, 35, 0.3);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.related-product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
}

.related-product-card h4 {
    color: #6366f1;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.related-product-card p {
    color: #a5b4fc;
    font-size: 0.9rem;
}

/* API文档区域 */
.api-docs-section {
    margin-bottom: 3rem;
}

.api-docs-section h3 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.api-docs-section h3::before {
    content: '📚';
    font-size: 1.2rem;
}

.api-info {
    background: rgba(15, 15, 35, 0.3);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.api-info h4 {
    color: #6366f1;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.api-info p {
    color: #a5b4fc;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

/* 参数表格 */
.params-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    background: rgba(15, 15, 35, 0.3);
    border-radius: 8px;
    overflow: hidden;
}

.params-table th,
.params-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

.params-table th {
    background: rgba(99, 102, 241, 0.2);
    color: #ffffff;
    font-weight: 600;
}

.params-table td {
    color: #a5b4fc;
}

.params-table tr:hover {
    background: rgba(99, 102, 241, 0.1);
}

/* 响应示例 */
.response-example {
    background: rgba(15, 15, 35, 0.5);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 8px;
    padding: 1rem;
    margin: 1rem 0;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #a5b4fc;
    overflow-x: auto;
}

/* 代码示例区域 */
.code-examples-section {
    margin-bottom: 3rem;
}

.code-examples-section h3 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.code-examples-section h3::before {
    content: '💻';
    font-size: 1.2rem;
}

/* 代码语言选择器 */
.code-language-selector {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.code-lang-btn {
    background: rgba(15, 15, 35, 0.5);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.code-lang-btn:hover {
    background: rgba(99, 102, 241, 0.2);
    color: #ffffff;
}

.code-lang-btn.active {
    background: #6366f1;
    color: #ffffff;
    border-color: #6366f1;
}

/* 代码块 */
.code-block {
    background: rgba(15, 15, 35, 0.8);
    border: 1px solid rgba(99, 102, 241, 0.3);
    border-radius: 8px;
    padding: 1.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    color: #a5b4fc;
    overflow-x: auto;
    line-height: 1.5;
    position: relative;
}

.code-block::before {
    content: attr(data-language);
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    font-size: 0.8rem;
    color: #6366f1;
    font-weight: 600;
}

/* 技术规格区域 */
.specs-section {
    margin-bottom: 3rem;
}

.specs-section h3 {
    font-size: 1.5rem;
    color: #ffffff;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.specs-section h3::before {
    content: '⚙️';
    font-size: 1.2rem;
}

.specs-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(15, 15, 35, 0.3);
    border-radius: 12px;
    overflow: hidden;
}

.specs-table th,
.specs-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(99, 102, 241, 0.2);
}

.specs-table th {
    background: rgba(99, 102, 241, 0.2);
    color: #ffffff;
    font-weight: 600;
}

.specs-table td {
    color: #a5b4fc;
}

.specs-table tr:hover {
    background: rgba(99, 102, 241, 0.1);
}

/* 加载状态 */
.loading {
    text-align: center;
    padding: 3rem;
    color: #a5b4fc;
}

.loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #6366f1;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin-left: 1rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 错误状态 */
.error {
    text-align: center;
    padding: 3rem;
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 12px;
    margin: 2rem 0;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .product-detail-content {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .product-hero h1 {
        font-size: 2rem;
    }
    
    .product-hero .subtitle {
        font-size: 1rem;
    }
    
    .product-hero .price {
        font-size: 1.5rem;
    }
    
    .product-hero .icon {
        font-size: 3rem;
    }
    
    .tabs-nav {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .tab-btn {
        text-align: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .use-cases-list {
        grid-template-columns: 1fr;
    }
    
    .related-products-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
    
    .code-language-selector {
        justify-content: center;
    }
    
    .params-table,
    .specs-table {
        font-size: 0.9rem;
    }
    
    .params-table th,
    .params-table td,
    .specs-table th,
    .specs-table td {
        padding: 0.5rem;
    }
}

@media (max-width: 480px) {
    .product-detail-header {
        padding: 1rem !important;
    }
    
    .product-detail-header nav ul {
        gap: 1.5rem !important;
    }
    
    .product-hero {
        padding: 2rem 0;
    }
    
    .product-tabs-section {
        padding: 1rem;
    }
    
    .feature-card,
    .use-case-item,
    .related-product-card {
        padding: 1rem;
    }
} 