/* ============================================
   睿恒信息系统 - 详情页样式
   用于产品/解决方案子页面
   ============================================ */

/* ============ 页面 Hero ============ */
.page-hero {
    position: relative;
    padding: calc(var(--header-height) + 60px) 0 60px;
    background: linear-gradient(135deg, #0a2540 0%, #134a9e 60%, #1a5cc4 100%);
    color: #fff;
    overflow: hidden;
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(79, 209, 197, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(43, 127, 240, 0.2) 0%, transparent 50%);
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

.page-hero h1 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 900;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.page-hero .page-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    line-height: 1.8;
}

/* ============ 面包屑 ============ */
.breadcrumb {
    background: var(--color-bg-alt);
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
}

.breadcrumb ul {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--color-text-light);
}

.breadcrumb a {
    color: var(--color-text-secondary);
    transition: color var(--transition-fast);
}

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

.breadcrumb .separator {
    color: var(--color-border);
    font-size: 12px;
}

.breadcrumb .current {
    color: var(--color-text);
    font-weight: 500;
}

/* ============ 内容布局 ============ */
.page-content {
    padding: 64px 0;
    background: var(--color-bg);
}

.page-content-section {
    margin-bottom: 56px;
}

.page-content-section:last-child {
    margin-bottom: 0;
}

.page-section-title {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-text);
    margin-bottom: 20px;
    padding-left: 16px;
    border-left: 4px solid var(--color-primary);
    line-height: 1.3;
}

.page-text {
    font-size: 15px;
    line-height: 1.9;
    color: var(--color-text-secondary);
    margin-bottom: 16px;
}

.page-text strong {
    color: var(--color-text);
    font-weight: 600;
}

/* ============ 产品详情卡 ============ */
.detail-product {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    margin-bottom: 32px;
    border: 1px solid var(--color-border);
    transition: box-shadow var(--transition);
}

.detail-product:hover {
    box-shadow: var(--shadow-lg);
}

.detail-product-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 28px 32px;
    background: var(--color-bg-alt);
    border-bottom: 1px solid var(--color-border);
}

.detail-product-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: var(--radius-md);
    background: var(--color-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-product-title h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 4px;
}

.detail-product-title .brand {
    font-size: 13px;
    color: var(--color-text-light);
}

.detail-product-body {
    padding: 28px 32px;
}

.detail-product-body p {
    font-size: 15px;
    line-height: 1.9;
    color: var(--color-text-secondary);
    margin-bottom: 24px;
}

/* ============ 特性列表 ============ */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 24px 0;
}

.feature-item {
    padding: 24px;
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    transition: all var(--transition);
}

.feature-item:hover {
    background: #fff;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.feature-item .feature-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(26, 92, 196, 0.1);
    color: var(--color-primary);
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 12px;
}

.feature-item h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-text);
}

.feature-item p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin: 0;
}

/* ============ 规格表格 ============ */
.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--color-border);
}

.spec-table th,
.spec-table td {
    padding: 14px 20px;
    text-align: left;
    font-size: 14px;
    border-bottom: 1px solid var(--color-border);
}

.spec-table th {
    background: var(--color-bg-alt);
    font-weight: 700;
    color: var(--color-text);
    width: 200px;
}

.spec-table td {
    color: var(--color-text-secondary);
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
    border-bottom: none;
}

.spec-table tr:hover td {
    background: rgba(26, 92, 196, 0.02);
}

/* ============ 方案优势 ============ */
.benefit-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 24px 0;
}

.benefit-item {
    display: flex;
    gap: 16px;
    padding: 24px;
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    transition: all var(--transition);
}

.benefit-item:hover {
    background: #fff;
    box-shadow: var(--shadow-md);
}

.benefit-check {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-success);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefit-item h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--color-text);
}

.benefit-item p {
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-text-secondary);
    margin: 0;
}

/* ============ 应用场景 ============ */
.scenario-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 24px 0;
}

.scenario-card {
    text-align: center;
    padding: 28px 16px;
    background: var(--color-bg-alt);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    transition: all var(--transition);
}

.scenario-card:hover {
    background: #fff;
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
    border-color: rgba(26, 92, 196, 0.2);
}

.scenario-card .scenario-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light));
    color: #fff;
    margin-bottom: 16px;
}

.scenario-card h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-text);
}

/* ============ CTA 区 ============ */
.cta-section {
    background: linear-gradient(135deg, #0a2540 0%, #1a5cc4 100%);
    color: #fff;
    padding: 56px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 30% 50%, rgba(79, 209, 197, 0.1) 0%, transparent 50%);
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
}

.cta-section p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 28px;
}

.cta-section .btn {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #0a2540;
}

.cta-section .btn:hover {
    background: #fff;
    border-color: #fff;
    color: var(--color-primary);
}

/* ============ 相关导航 ============ */
.related-nav {
    padding: 48px 0;
    background: var(--color-bg-alt);
}

.related-nav .section-header {
    margin-bottom: 32px;
}

.related-nav-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.related-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    background: #fff;
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border);
    transition: all var(--transition);
    color: var(--color-text);
    font-weight: 500;
    font-size: 14px;
}

.related-nav-item:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
    color: var(--color-primary);
}

.related-nav-item svg {
    flex-shrink: 0;
    color: var(--color-primary);
}

/* ============ 响应式 ============ */
@media (max-width: 768px) {
    .page-hero {
        padding: calc(var(--header-height) + 32px) 0 40px;
    }

    .page-content {
        padding: 40px 0;
    }

    .page-content-section {
        margin-bottom: 40px;
    }

    .page-section-title {
        font-size: 20px;
    }

    .detail-product-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 20px;
    }

    .detail-product-body {
        padding: 20px;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

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

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

    .related-nav-grid {
        grid-template-columns: 1fr;
    }

    .spec-table th,
    .spec-table td {
        padding: 10px 12px;
        font-size: 13px;
    }

    .spec-table th {
        width: 120px;
    }

    .cta-section h2 {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .scenario-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== 正文详述内容（Markdown 渲染区） ===== */
.rich-content h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-text);
    margin: 0 0 20px;
    padding-left: 16px;
    border-left: 4px solid var(--color-primary);
    line-height: 1.3;
}

.rich-content h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text);
    margin: 24px 0 12px;
}

.rich-content p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--color-text-light, #555);
    margin-bottom: 14px;
}

.rich-content ul,
.rich-content ol {
    margin: 0 0 18px;
    padding-left: 22px;
}

.rich-content li {
    font-size: 15px;
    line-height: 1.8;
    color: var(--color-text-light, #555);
    margin-bottom: 6px;
}

.rich-content ol > li::marker {
    color: var(--color-primary);
    font-weight: 700;
}

.rich-content ul > li::marker {
    color: var(--color-primary);
}

.rich-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 20px;
    font-size: 14px;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(15, 40, 80, 0.06);
}

.rich-content th {
    background: rgba(26, 92, 196, 0.06);
    color: var(--color-primary);
    font-weight: 700;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 2px solid rgba(26, 92, 196, 0.15);
    white-space: nowrap;
}

.rich-content td {
    padding: 11px 16px;
    border-bottom: 1px solid #eef2f7;
    color: var(--color-text-light, #555);
    line-height: 1.6;
}

.rich-content tr:last-child td {
    border-bottom: none;
}

.rich-content strong {
    color: var(--color-text);
    font-weight: 700;
}

@media (max-width: 768px) {
    .rich-content h2 {
        font-size: 20px;
    }

    .rich-content h3 {
        font-size: 16px;
    }

    .rich-content table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}
