﻿/* ===== FAQ 左右布局专用样式（保留原有橙色+深蓝配色）===== */

.page-wrapper {
    display: flex;
    gap: 30px;
    max-width: 1500px;
    margin: 100px auto 40px;
    padding: 0 20px;
    min-height: calc(100vh - 200px);
}

/* ===== 左侧导航 ===== */
.sidebar-nav {
    flex: 0 0 280px;
    position: sticky;
    top: 100px;
    align-self: flex-start;
    background: #fff;
    border-radius: 16px;
    padding: 24px 0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    border: 1px solid #d6e0ec;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}
.sidebar-nav h4 {
    font-size: 1.1rem;
    color: #0a2540;
    padding: 0 20px 16px;
    border-bottom: 2px solid #ff6b35;
    margin-bottom: 12px;
}
.sidebar-nav .nav-item {
    display: block;
    padding: 10px 20px;
    color: #6b7280;
    font-size: 0.95rem;
    border-left: 3px solid transparent;
    text-decoration: none;
    transition: all 0.2s;
}
.sidebar-nav .nav-item:hover {
    background: #f0f6fa;
    color: #1e4d8c;
    border-left-color: #ff6b35;
}
.sidebar-nav .nav-item.active {
    background: #fff3e0;
    color: #1e4d8c;
    border-left-color: #ff6b35;
    font-weight: 600;
}
.sidebar-nav .nav-item i {
    width: 20px;
    margin-right: 8px;
    color: #ff6b35;
}

/* ===== 右侧内容 ===== */
.main-content {
    flex: 1;
    min-width: 0;
}

/* ===== 右侧内容区白底卡片 ===== */
.main-content .hero,
.main-content .category,
.main-content .footer-cta {
    background: #fff;
    border-radius: 16px;
    padding: 30px 30px 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    border: 1px solid #eaecef;
    margin-bottom: 24px;
}

/* Hero 特殊处理（保留渐变背景） */
.main-content .hero {
    background: linear-gradient(135deg, #0a2540 0%, #1e4d8c 100%);
    color: #fff;
    padding: 40px 30px 35px;
    text-align: center;
    border: none;
    box-shadow: 0 4px 20px rgba(10,37,64,0.15);
}
.main-content .hero h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 1px;
}
.main-content .hero .subtitle {
    font-size: 16px;
    opacity: 0.9;
    max-width: 720px;
    margin: 0 auto 24px;
}
.main-content .hero .cta-phone {
    display: inline-block;
    background: #ff6b35;
    color: #fff;
    padding: 12px 32px;
    border-radius: 30px;
    text-decoration: none;
    font-size: 18px;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(255, 107, 53, 0.4);
}
.main-content .hero .cta-phone:hover { transform: translateY(-2px); }

/* 分类区块（白底卡片） */
.category {
    padding: 24px 28px 16px;
}
.category h2 {
    font-size: 22px;
    color: #0a2540;
    padding: 0 0 12px 0;
    border-bottom: 2px solid #ff6b35;
    margin-bottom: 18px;
}
.category p,
.category li {
    color: #4a5b6c;
    font-size: 15px;
    line-height: 1.8;
}
.category ul {
    padding-left: 24px;
}
.category ul li {
    margin-bottom: 6px;
}
.category strong {
    color: #0a2540;
}

/* ===== 分类区块内的表格 ===== */
.category table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 0.9rem;
}
.category table caption {
    padding: 10px;
    font-weight: 600;
    color: #0a2540;
}
.category table thead th {
    background: #0a2540;
    color: #fff;
    padding: 10px 12px;
    text-align: left;
}
.category table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid #eaecef;
}
.category table tbody tr:nth-child(even) td {
    background: #f8fafc;
}

/* ===== 高亮框 ===== */
.category .highlight-box {
    background: linear-gradient(120deg, #fff3e0 0%, #ffe0b2 100%);
    padding: 16px 20px;
    border-left: 4px solid #ff6b35;
    border-radius: 8px;
    margin: 16px 0;
}
.category .highlight-box strong {
    color: #0a2540;
}

/* ===== 应用场景网格 ===== */
.category .app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin: 18px 0;
}
.category .app-grid .app-card {
    background: #f8fafc;
    border-radius: 10px;
    padding: 16px;
    border-top: 3px solid #ff6b35;
}
.category .app-grid .app-card h4 {
    color: #0a2540;
    font-size: 1rem;
    margin-bottom: 6px;
}
.category .app-grid .app-card p {
    font-size: 0.85rem;
    color: #6b7d8e;
    margin: 0;
}

/* ===== 工艺流程步骤 ===== */
.category .process-steps {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin: 20px 0;
}
.category .process-steps .step {
    flex: 1;
    min-width: 160px;
    background: #f8fafc;
    border-radius: 10px;
    padding: 18px;
    border-top: 3px solid #ff6b35;
}
.category .process-steps .step .num {
    background: #ff6b35;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 8px;
}
.category .process-steps .step h4 {
    color: #0a2540;
    font-size: 0.95rem;
    margin-bottom: 4px;
}
.category .process-steps .step p {
    font-size: 0.85rem;
    color: #6b7d8e;
    margin: 0;
}

/* ===== 案例卡片 ===== */
.category .case-card {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin: 12px 0;
    border-left: 4px solid #ff6b35;
}
.category .case-card h3 {
    color: #0a2540;
    font-size: 1rem;
    margin-bottom: 8px;
}
.category .case-card .metrics {
    display: flex;
    gap: 20px;
    margin-top: 12px;
    flex-wrap: wrap;
}
.category .case-card .metrics .metric {
    background: #fff;
    padding: 8px 16px;
    border-radius: 8px;
}
.category .case-card .metrics .metric strong {
    color: #ff6b35;
    font-size: 1.2rem;
    display: block;
}
.category .case-card .metrics .metric span {
    font-size: 0.8rem;
    color: #6b7d8e;
}

/* ===== FAQ问答项（独立卡片样式）===== */
.faq-item {
    background: #fff;
    border-radius: 10px;
    margin-bottom: 12px;
    padding: 16px 20px;
    border: 1px solid #d6e0ec;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    transition: box-shadow 0.2s;
}
.faq-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.faq-item h3 {
    color: #0a2540;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    padding-left: 22px;
    background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" viewBox="0 0 24 24" fill="none" stroke="%23ff6b35" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"/><path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"/><line x1="12" y1="17" x2="12.01" y2="17"/></svg>') left center no-repeat;
    background-size: 16px;
}
.faq-item p {
    color: #4a5b6c;
    font-size: 15px;
    line-height: 1.8;
    margin: 0;
}

/* ===== FAQ折叠项（保留原样式）===== */
.category details {
    background: #fff;
    border-radius: 10px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    overflow: hidden;
    border: 1px solid #d6e0ec;
}
.category details:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.category details[open] { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }

.category summary {
    cursor: pointer;
    padding: 18px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #1a2b3c;
    list-style: none;
    position: relative;
    padding-right: 50px;
}
.category summary::-webkit-details-marker { display: none; }
.category summary::after {
    content: '+';
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 24px;
    font-weight: 300;
    color: #ff6b35;
}
.category details[open] summary::after { content: '−'; }

.category details p {
    padding: 0 24px 20px;
    color: #4a5b6c;
    font-size: 15px;
    line-height: 1.8;
}

/* ===== 底部CTA - 保留原橙色渐变 ===== */
.main-content .footer-cta {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: #fff;
    padding: 40px 30px 35px;
    text-align: center;
    border: none;
    box-shadow: 0 4px 20px rgba(255,107,53,0.2);
}
.main-content .footer-cta h3 {
    font-size: 26px;
    margin-bottom: 12px;
}
.main-content .footer-cta p {
    font-size: 16px;
    margin-bottom: 24px;
    opacity: 0.95;
}
.main-content .footer-cta .contact-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.main-content .footer-cta .contact-row a {
    background: #fff;
    color: #ff6b35;
    padding: 14px 28px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
}
.main-content .footer-cta .contact-row a:hover { transform: translateY(-2px); }

/* ===== 页脚版权 ===== */
.copyright {
    text-align: center;
    padding: 24px 20px;
    color: #8a96a3;
    font-size: 13px;
    background: #fff;
    border-top: 1px solid #eaecef;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
    .page-wrapper {
        flex-direction: column;
        padding: 0 12px;
        margin-top:70px;
    }
    .sidebar-nav {
        flex: auto;
        position: relative;
        top: 0;
        max-height: none;
        padding: 16px 0;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 4px;
        border: none;
        box-shadow: none;
        background: transparent;
    }
    .sidebar-nav h4 {
        display: none;
    }
    .sidebar-nav .nav-item {
        padding: 6px 14px;
        border: 1px solid #d6e0ec;
        border-radius: 20px;
        font-size: 0.85rem;
        border-left: none;
        background: #fff;
    }
    .sidebar-nav .nav-item.active {
        background: #ff6b35;
        color: #fff;
        border-color: #ff6b35;
    }
    .sidebar-nav .nav-item i { display: none; }

    .main-content .hero,
    .main-content .category,
    .main-content .footer-cta {
        padding: 18px 16px 12px;
    }
    .main-content .hero { padding: 28px 18px; }
    .main-content .hero h1 { font-size: 24px; }
    .category h2 { font-size: 19px; }
    .category summary { font-size: 15px; padding: 16px 20px; padding-right: 44px; }
    .category details p { font-size: 14px; }
    .main-content .footer-cta h3 { font-size: 22px; }
}