/**
 * =============================================
 * 产品详情页样式文件 product-detail.css
 * 用途：产品详情页专属样式
 * 作者：AI开发
 * 创建日期：2026-03-06
 * =============================================
 */

/* 面包屑导航 */
.breadcrumb {
    padding: 16px 0;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
}

.breadcrumb-item {
    display: inline-block;
    font-size: 12px;
    color: #666;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb-item:hover {
    color: var(--current-primary);
}

.breadcrumb-item.active {
    color: var(--current-primary);
    font-weight: 600;
}

.breadcrumb-separator {
    display: inline-block;
    margin: 0 8px;
    color: #ccc;
}

/* 产品头部 */
.product-header {
    padding: 24px 0 32px;
    text-align: center;
}

.product-header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--current-accent);
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--current-primary) 0%, var(--current-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease forwards;
}

.product-subtitle {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 16px;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.6s ease 0.2s forwards;
}

.product-header-btn {
    margin-top: 8px;
}

/* 淡入上浮动画 */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 产品图片 */
.product-image-section {
    padding: 0 0 24px;
}

.product-image-container {
    width: 100%;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--current-bg) 0%, var(--current-bg2) 100%);
    border-radius: 16px;
    overflow: hidden;
}

.product-image-placeholder {
    color: var(--current-primary);
    opacity: 0.5;
}

.product-image-placeholder svg {
    width: 80px;
    height: 80px;
}

/* 产品详情 */
.product-detail-section {
    padding: 24px 0;
}

.product-description {
    padding: 20px;
    line-height: 1.8;
    color: #333;
}

/* ===================================
   Markdown 内容样式 (20260411)
   =================================== */

/* h1: 比 section-title(18px) 小 */
.product-description h1 {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 18px 0 12px;
    padding-bottom: 5px;
    border-bottom: 2px solid var(--primary-color);
}

/* h2: 比 h1 小 */
.product-description h2 {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 16px 0 10px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* h3-h6 */
.product-description h3 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 14px 0 8px;
}

.product-description h4,
.product-description h5,
.product-description h6 {
    font-size: 13px;
    font-weight: 600;
    color: #666;
    margin: 12px 0 6px;
}

/* 段落和强调 */
.product-description p {
    margin-bottom: 10px;
    line-height: 1.7;
}

.product-description strong {
    font-weight: 600;
    color: #333;
}

.product-description em {
    font-style: italic;
}

/* 列表 */
.product-description ul,
.product-description ol {
    margin: 10px 0;
    padding-left: 18px;
}

.product-description li {
    margin-bottom: 6px;
    line-height: 1.6;
}

/* 表格 */
.product-description table {
    width: 100%;
    border-collapse: collapse;
    margin: 12px 0;
    font-size: 13px;
    display: table;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.product-description th,
.product-description td {
    padding: 10px 12px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.product-description th {
    background: rgba(0, 0, 0, 0.03);
    font-weight: 600;
}

/* 表格偶数行背景 */
.product-description tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.02);
}

/* 引用块 */
.product-description blockquote {
    margin: 12px 0;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.03);
    border-left: 3px solid var(--primary-color);
    border-radius: 0 6px 6px 0;
    font-size: 14px;
}

.product-description blockquote p:last-child {
    margin-bottom: 0;
}

/* 代码 */
.product-description code {
    font-family: monospace;
    background: rgba(0, 0, 0, 0.06);
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 12px;
}

.product-description pre {
    background: rgba(0, 0, 0, 0.05);
    padding: 10px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 12px 0;
    font-size: 12px;
}

.product-description pre code {
    background: none;
    padding: 0;
    font-size: inherit;
}

/* 水平线 */
.product-description hr {
    border: none;
    height: 1px;
    background: rgba(0, 0, 0, 0.1);
    margin: 16px 0;
}

/* 产品特点 */
.product-features-section {
    padding: 24px 0;
}

.features-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.feature-item {
    padding: 16px;
    position: relative;
    overflow: hidden;
}

.feature-number {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 32px;
    font-weight: 800;
    color: var(--current-primary);
    opacity: 0.1;
}

.feature-item-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--current-accent);
    margin-bottom: 8px;
    padding-top: 20px;
}

.feature-item-desc {
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

/* 适用场景 */
.product-scenarios-section {
    padding: 24px 0;
}

.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.scenario-card {
    padding: 20px 12px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    width: 100%;
    box-sizing: border-box;
}

/* 响应式 - 确保小屏幕也是两列 【20260413】 */
@media (max-width: 375px) {
    .features-list {
        grid-template-columns: 1fr;
    }

    .scenarios-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px;
    }
    
    .scenario-card {
        padding: 16px 8px;
        min-height: 80px;
    }

    .product-title {
        font-size: 24px;
    }
}

.scenario-icon {
    font-size: 36px;
    margin-bottom: 12px;
}

.scenario-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--current-accent);
}

/* CTA区域 */
.product-cta-section {
    padding: 24px 0 40px;
}

.cta-card {
    text-align: center;
    padding: 32px 20px;
    background: linear-gradient(135deg, rgba(5, 175, 181, 0.1) 0%, rgba(109, 207, 222, 0.05) 100%);
}

.cta-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--current-accent);
    margin-bottom: 8px;
}

.cta-description {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

/* CTA按钮组 */
.cta-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}

/* FAQ区域 */
.faq-section {
    padding: 24px 0;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.faq-question:hover {
    background: rgba(255, 255, 255, 0.8);
}

.faq-question h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--current-primary);
    flex: 1;
}

.faq-icon {
    font-size: 12px;
    color: var(--current-primary);
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 16px;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 16px 16px;
}

.faq-answer p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 响应式 */
@media (max-width: 375px) {
    .features-list {
        grid-template-columns: 1fr;
    }

    .scenarios-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .product-title {
        font-size: 24px;
    }
}

@media (min-width: 768px) {
    .product-image-container {
        height: 320px;
    }

    .features-list {
        grid-template-columns: 1fr 1fr;
    }
}
