/* ========== NeuroBox White Paper Styles ========== */

/* Language Switch */
.wp-lang-switch {
    position: fixed;
    top: 80px;
    right: 24px;
    z-index: 90;
    display: flex;
    gap: 6px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    padding: 6px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.wp-lang-btn {
    padding: 6px 14px;
    border: 1px solid var(--border);
    background: transparent;
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.wp-lang-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.wp-print-btn {
    padding: 6px 10px;
    border: 1px solid var(--border);
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
}

.wp-print-btn:hover { background: var(--bg-section); }

/* Hero */
.wp-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    color: #fff;
    padding: 100px 0 60px;
    text-align: center;
}

.wp-hero-badge {
    display: inline-block;
    background: rgba(59,130,246,0.2);
    border: 1px solid rgba(59,130,246,0.4);
    color: var(--primary-light);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.wp-hero-title {
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 16px;
    line-height: 1.3;
}

.wp-hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.8);
    max-width: 700px;
    margin: 0 auto 20px;
}

.wp-hero-meta {
    display: flex;
    justify-content: center;
    gap: 12px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
}

/* Layout: TOC + Content */
.wp-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 48px;
    padding-top: 48px;
    padding-bottom: 80px;
    align-items: start;
}

/* Table of Contents */
.wp-toc {
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.wp-toc-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 12px;
    padding-left: 12px;
}

.wp-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.wp-toc-list li {
    margin-bottom: 2px;
}

.wp-toc-link {
    display: block;
    padding: 8px 12px;
    font-size: 0.88rem;
    color: var(--text-muted);
    border-left: 2px solid transparent;
    border-radius: 0 6px 6px 0;
    transition: all 0.2s;
    text-decoration: none;
}

.wp-toc-link:hover {
    color: var(--text-main);
    background: var(--bg-section);
}

.wp-toc-link.active {
    color: var(--primary);
    border-left-color: var(--primary);
    background: rgba(59,130,246,0.06);
    font-weight: 500;
}

/* Content Sections */
.wp-content {
    min-width: 0;
}

.wp-section {
    margin-bottom: 56px;
    scroll-margin-top: 100px;
}

.wp-section h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary);
}

.wp-section h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin: 20px 0 10px;
}

.wp-section p {
    margin-bottom: 16px;
    line-height: 1.8;
}

.wp-lead {
    font-size: 1.1rem;
    color: var(--text-main);
    line-height: 1.9;
}

/* Highlight Box */
.wp-highlight-box {
    background: #f0fdf4;
    border: 1px solid #86efac;
    border-radius: 10px;
    padding: 24px;
    margin: 24px 0;
}

.wp-highlight-box h3 {
    margin-top: 0;
    color: #166534;
}

.wp-highlight-box ul {
    margin: 12px 0 0;
    padding-left: 20px;
}

.wp-highlight-box li {
    margin-bottom: 8px;
    line-height: 1.7;
}

.wp-highlight-blue {
    background: #eff6ff;
    border-color: #93c5fd;
}

.wp-highlight-blue h3 {
    color: #1e40af;
}

/* Stats Row */
.wp-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 28px 0;
}

.wp-stat-card {
    text-align: center;
    padding: 20px 12px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.wp-stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.wp-stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Scenario Box */
.wp-scenario-box {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    border-radius: 10px;
    padding: 20px 24px;
    margin: 20px 0;
}

.wp-scenario-box h3 {
    margin-top: 0;
    color: #92400e;
}

/* Compare Table (Traditional vs AI) */
.wp-compare-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 0.95rem;
}

.wp-compare-table th {
    background: #0f172a;
    color: #fff;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
}

.wp-compare-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
}

.wp-compare-table tr:nth-child(even) td {
    background: #f8fafc;
}

.wp-cell-bad {
    color: #dc2626;
}

.wp-cell-good {
    color: #16a34a;
    font-weight: 600;
}

/* Architecture Layers */
.wp-arch-layers {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 24px 0;
}

.wp-arch-layer {
    border-radius: 10px;
    padding: 20px 24px;
    border-left: 4px solid;
}

.wp-arch-l2 { background: #f0fdf4; border-color: #22c55e; }
.wp-arch-l3 { background: #eff6ff; border-color: #3b82f6; }
.wp-arch-l4 { background: #fefce8; border-color: #eab308; }
.wp-arch-uq { background: #fdf2f8; border-color: #ec4899; }

.wp-arch-layer-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 1.05rem;
}

.wp-arch-layer-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
}

.wp-arch-l2 .wp-arch-layer-tag { background: #22c55e; }
.wp-arch-l3 .wp-arch-layer-tag { background: #3b82f6; }
.wp-arch-l4 .wp-arch-layer-tag { background: #eab308; }
.wp-arch-uq .wp-arch-layer-tag { background: #ec4899; }

.wp-arch-layer p {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.wp-arch-tech {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: monospace;
}

/* Key Metrics */
.wp-key-metrics {
    margin: 24px 0;
}

/* Spec Table */
.wp-spec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.wp-spec-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
}

.wp-spec-table td:first-child {
    font-weight: 600;
    width: 40%;
    color: var(--text-main);
}

.wp-spec-table tr:nth-child(even) td {
    background: #f8fafc;
}

/* Spec Grid */
.wp-spec-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 24px 0;
}

.wp-spec-group {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.wp-spec-group h3 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

/* Workflow Steps */
.wp-workflow {
    position: relative;
    margin: 24px 0;
    padding-left: 40px;
}

.wp-workflow::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--primary-light);
}

.wp-workflow-step {
    position: relative;
    margin-bottom: 24px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.wp-step-num {
    position: absolute;
    left: -40px;
    width: 36px;
    height: 36px;
    background: var(--primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.95rem;
    z-index: 1;
}

.wp-step-content {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 20px;
    flex: 1;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.wp-step-content h4 {
    margin: 0 0 6px;
    font-size: 1rem;
    color: var(--primary-dark);
}

.wp-step-content p {
    margin: 0;
    font-size: 0.92rem;
}

/* Killer Features */
.wp-killer-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 16px;
}

.wp-killer-item {
    background: rgba(255,255,255,0.7);
    border-radius: 8px;
    padding: 16px;
}

.wp-killer-item h4 {
    margin: 0 0 8px;
    color: #1e40af;
    font-size: 0.95rem;
}

.wp-killer-item p {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.7;
}

/* EIP Grid */
.wp-eip-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 24px 0;
}

.wp-eip-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.wp-eip-card h4 {
    margin: 0 0 12px;
    color: var(--primary-dark);
}

.wp-eip-card ul {
    margin: 0;
    padding-left: 18px;
}

.wp-eip-card li {
    margin-bottom: 6px;
    font-size: 0.92rem;
}

/* Application Grid */
.wp-app-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 24px 0;
}

.wp-app-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    transition: box-shadow 0.2s;
}

.wp-app-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.wp-app-card h4 {
    margin: 0 0 8px;
    color: var(--primary-dark);
    font-size: 1rem;
}

.wp-app-card p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* Comparison Table */
.wp-comparison-table-wrap {
    overflow-x: auto;
    margin: 24px 0;
}

.wp-comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
    min-width: 600px;
}

.wp-comparison-table th {
    padding: 14px 16px;
    text-align: left;
    font-weight: 600;
    background: #0f172a;
    color: #fff;
}

.wp-comparison-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.wp-comparison-table tr:nth-child(even) td {
    background: #f8fafc;
}

.wp-col-highlight {
    background: rgba(59,130,246,0.08) !important;
    font-weight: 500;
}

th.wp-col-highlight {
    background: var(--primary) !important;
}

/* CTA Section */
.wp-cta-section {
    text-align: center;
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    color: #fff;
    padding: 48px;
    border-radius: 16px;
    margin-bottom: 0;
}

.wp-cta-section h2 {
    color: #fff;
    border-bottom-color: rgba(255,255,255,0.3);
}

.wp-cta-text {
    font-size: 1.15rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 28px;
}

.wp-cta-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.wp-cta-btn {
    min-width: 160px;
}

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

.wp-cta-section .btn-secondary {
    border-color: rgba(255,255,255,0.4);
    color: #fff;
}

.wp-cta-wechat {
    margin-top: 32px;
}

.wp-cta-wechat img {
    width: 140px;
    height: 140px;
    border-radius: 10px;
    border: 2px solid rgba(255,255,255,0.2);
}

.wp-cta-wechat p {
    color: rgba(255,255,255,0.6);
    font-size: 0.88rem;
    margin-top: 8px;
}

/* Media Section: Screenshots & Video */
.wp-media-section {
    scroll-margin-top: 100px;
}

.wp-media-grid {
    margin: 24px 0;
}

.wp-video-placeholder {
    background: #0f172a;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wp-video-placeholder video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wp-video-coming-soon {
    text-align: center;
    color: rgba(255,255,255,0.6);
}

.wp-play-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    opacity: 0.4;
}

.wp-media-caption {
    text-align: center;
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.wp-screenshot-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin: 24px 0;
}

.wp-screenshot {
    margin: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: box-shadow 0.2s;
}

.wp-screenshot:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.wp-screenshot img {
    width: 100%;
    height: auto;
    display: block;
    background: #f1f5f9;
    min-height: 200px;
}

.wp-screenshot figcaption {
    padding: 10px 14px;
    font-size: 0.85rem;
    color: var(--text-muted);
    background: #fff;
}

/* ========== Floating Contact Widget ========== */
.floating-contact {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.fc-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.3rem;
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0,0,0,0.2);
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    cursor: pointer;
    position: relative;
}

.fc-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    color: #fff;
}

.fc-wechat-wrap { position: relative; }
.fc-wechat { background: #07c160; }
.fc-email { background: var(--primary); }
.fc-phone { background: #16a34a; }
.fc-demo { background: #f59e0b; }

.fc-tooltip {
    position: absolute;
    right: 60px;
    white-space: nowrap;
    background: #0f172a;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.82rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
}

.fc-btn:hover .fc-tooltip {
    opacity: 1;
}

/* WeChat QR popup */
.fc-wechat-popup {
    position: absolute;
    bottom: 0;
    right: 60px;
    background: #fff;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    display: none;
    text-align: center;
    width: 180px;
}

.fc-wechat-popup.show {
    display: block;
}

.fc-wechat-popup img {
    width: 140px;
    height: 140px;
    border-radius: 6px;
}

.fc-wechat-popup p {
    margin: 8px 0 0;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* WeChat tabs */
.fc-wechat-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 10px;
}

.fc-tab {
    flex: 1;
    padding: 6px 8px;
    border: 1px solid var(--border);
    background: #f8fafc;
    border-radius: 6px;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s;
    color: var(--text-muted);
}

.fc-tab.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.fc-qr-panel img {
    width: 140px;
    height: 140px;
    border-radius: 6px;
}

.fc-qr-panel p {
    margin: 6px 0 0;
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
    .wp-killer-features {
        grid-template-columns: 1fr;
    }
    .wp-spec-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .wp-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .wp-toc {
        position: static;
        max-height: none;
        border-bottom: 1px solid var(--border);
        padding-bottom: 16px;
        margin-bottom: 32px;
    }

    .wp-toc-list {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
    }

    .wp-toc-link {
        border-left: none;
        border-bottom: 2px solid transparent;
        border-radius: 6px;
        padding: 6px 10px;
        font-size: 0.82rem;
    }

    .wp-toc-link.active {
        border-left: none;
        border-bottom-color: var(--primary);
    }

    .wp-hero-title { font-size: 1.6rem; }
    .wp-hero-subtitle { font-size: 1rem; }
    .wp-hero-meta { flex-wrap: wrap; justify-content: center; }

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

    .wp-stat-value { font-size: 1.4rem; }

    .wp-eip-grid,
    .wp-app-grid,
    .wp-screenshot-grid {
        grid-template-columns: 1fr;
    }

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

    .wp-cta-section { padding: 32px 20px; }

    .wp-lang-switch {
        top: auto;
        bottom: 80px;
        right: 12px;
    }

    .floating-contact {
        bottom: 16px;
        right: 12px;
    }

    .fc-btn {
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }
}

/* ========== Print Styles ========== */
@media print {
    .site-header,
    .footer,
    .wp-lang-switch,
    .floating-contact,
    .wp-cta-section,
    .wp-toc,
    .nav-toggle {
        display: none !important;
    }

    .wp-layout {
        grid-template-columns: 1fr;
        padding: 0;
    }

    .wp-hero {
        padding: 40px 0 20px;
        background: #fff !important;
        color: #000 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .wp-hero-badge { border-color: #000; color: #000; }

    .wp-section { page-break-inside: avoid; }

    .wp-comparison-table th,
    .wp-compare-table th {
        background: #333 !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    body { font-size: 11pt; }
}

/* Online chat button */
.fc-chat { background: #07c160; }
