.guide-hero {
    padding: 140px 40px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.guide-hero-glow {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(220, 38, 38, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.guide-breadcrumb {
    position: relative;
    z-index: 1;
    margin-bottom: 24px;
}

.guide-breadcrumb a {
    color: #555;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.guide-breadcrumb a:hover {
    color: #dc2626;
}

.guide-hero h1 {
    font-size: 40px;
    font-weight: 800;
    margin-bottom: 12px;
    position: relative;
    z-index: 1;
}

.guide-hero p {
    font-size: 16px;
    color: #555;
    position: relative;
    z-index: 1;
}

.guide-body {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px 100px;
    display: flex;
    gap: 60px;
    align-items: flex-start;
}

.guide-toc {
    position: sticky;
    top: 96px;
    width: 200px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.toc-label {
    font-size: 11px;
    font-weight: 700;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    padding-left: 12px;
}

.toc-link {
    font-size: 13px;
    color: #555;
    text-decoration: none;
    padding: 6px 12px;
    border-left: 2px solid transparent;
    transition: all 0.2s;
    line-height: 1.4;
}

.toc-link:hover {
    color: #ccc;
}

.toc-link.active {
    color: #dc2626;
    border-left-color: #dc2626;
}

.guide-content {
    flex: 1;
    min-width: 0;
}

.guide-intro {
    padding-bottom: 32px;
    margin-bottom: 32px;
}

.guide-intro p {
    font-size: 16px;
    color: #888;
    line-height: 1.7;
}

.guide-section {
    margin-bottom: 56px;
    scroll-margin-top: 96px;
}

.guide-section h2 {
    font-size: 26px;
    font-weight: 800;
    margin-bottom: 20px;
    padding-top: 8px;
}

.guide-section h3 {
    font-size: 18px;
    font-weight: 700;
    margin-top: 32px;
    margin-bottom: 16px;
    color: #ccc;
}

.guide-section h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.guide-section p {
    font-size: 15px;
    color: #888;
    line-height: 1.7;
    margin-bottom: 16px;
}

.guide-section p strong {
    color: #ccc;
}

.guide-section code {
    font-family: 'SF Mono', 'Fira Code', 'Fira Mono', Menlo, Consolas, monospace;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.06);
    padding: 2px 8px;
    border-radius: 6px;
    color: #dc2626;
}

.guide-steps {
    list-style: none;
    counter-reset: step;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 24px;
    padding-left: 0;
}

.guide-steps li {
    counter-increment: step;
    position: relative;
    padding-left: 40px;
    font-size: 15px;
    color: #888;
    line-height: 1.7;
}

.guide-steps li strong {
    color: #ccc;
}

.guide-steps li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 2px;
    width: 26px;
    height: 26px;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #dc2626;
}

.guide-sub-list {
    list-style: none;
    padding-left: 0;
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.guide-sub-list li {
    padding-left: 16px;
    position: relative;
    counter-increment: none;
}

.guide-sub-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 5px;
    height: 5px;
    background: #dc2626;
    border-radius: 50%;
    border: none;
}

.guide-list {
    list-style: none;
    padding-left: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.guide-list li {
    padding-left: 20px;
    position: relative;
    font-size: 15px;
    color: #888;
    line-height: 1.7;
}

.guide-list li strong {
    color: #ccc;
}

.guide-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 11px;
    width: 6px;
    height: 6px;
    background: #dc2626;
    border-radius: 50%;
}

.guide-callout {
    display: flex;
    gap: 14px;
    padding: 18px 20px;
    background: rgba(59, 130, 246, 0.06);
    border: 1px solid rgba(59, 130, 246, 0.15);
    border-radius: 12px;
    margin-bottom: 24px;
    align-items: flex-start;
}

.guide-callout i {
    color: #3b82f6;
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.guide-callout div {
    font-size: 14px;
    color: #888;
    line-height: 1.6;
}

.guide-callout div strong {
    color: #ccc;
}

.guide-callout-warn {
    background: rgba(245, 158, 11, 0.06);
    border-color: rgba(245, 158, 11, 0.15);
}

.guide-callout-warn i {
    color: #f59e0b;
}

.guide-code {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 24px;
    overflow-x: auto;
}

.guide-code code,
.guide-code pre {
    font-family: 'SF Mono', 'Fira Code', 'Fira Mono', Menlo, Consolas, monospace;
    font-size: 13px;
    color: #ccc;
    background: none;
    padding: 0;
    line-height: 1.6;
    margin: 0;
    white-space: pre;
}

.setup-diagram {
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 0;
}

.diagram-left,
.diagram-right {
    display: flex;
    flex-direction: column;
    gap: 32px;
    flex-shrink: 0;
}

.diagram-row {
    display: flex;
    align-items: center;
}

.diagram-pc,
.diagram-peripheral {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 18px 22px;
    font-size: 14px;
    font-weight: 700;
    color: #ccc;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 150px;
}

.diagram-pc i,
.diagram-peripheral i {
    font-size: 13px;
    color: #555;
}

.diagram-connector {
    display: flex;
    align-items: center;
    padding: 0 4px;
}

.connector-line {
    width: 36px;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
}

.connector-label {
    font-size: 10px;
    font-weight: 600;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0 6px;
}

.connector-head {
    color: rgba(255, 255, 255, 0.2);
    font-size: 10px;
}

.diagram-port-label {
    font-size: 11px;
    font-weight: 700;
    color: #dc2626;
    padding: 0 8px;
    white-space: nowrap;
}

.diagram-kmbox {
    background: rgba(220, 38, 38, 0.04);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 14px;
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.diagram-kmbox-label {
    font-size: 15px;
    font-weight: 800;
    color: #ccc;
    white-space: nowrap;
}

.guide-table-wrap {
    overflow-x: auto;
    margin-bottom: 24px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.guide-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.guide-table thead {
    background: rgba(255, 255, 255, 0.04);
}

.guide-table th {
    text-align: left;
    padding: 14px 20px;
    font-weight: 700;
    color: #ccc;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.guide-table td {
    padding: 14px 20px;
    color: #888;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.guide-table td strong {
    color: #ccc;
}

.guide-table td code {
    font-size: 12px;
}

.guide-table tbody tr:last-child td {
    border-bottom: none;
}

.guide-table .table-highlight {
    background: rgba(220, 38, 38, 0.04);
}

.guide-table .table-highlight td {
    border-bottom-color: rgba(220, 38, 38, 0.1);
}

.troubleshoot-item {
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    margin-bottom: 12px;
}

.troubleshoot-item h4 {
    font-size: 15px;
    font-weight: 700;
    color: #ccc;
    margin-bottom: 8px;
}

.troubleshoot-item p {
    font-size: 14px;
    color: #666;
    line-height: 1.7;
    margin-bottom: 0;
}

.perf-tip {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    align-items: flex-start;
}

.perf-tip-icon {
    width: 40px;
    height: 40px;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #dc2626;
    font-size: 16px;
    flex-shrink: 0;
}

.perf-tip h4 {
    font-size: 15px;
    font-weight: 700;
    color: #ccc;
    margin-bottom: 4px;
}

.perf-tip p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 0;
}

.guide-footer-cta {
    text-align: center;
    padding: 40px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.guide-footer-cta p {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
}

@media (max-width: 900px) {
    .guide-toc {
        display: none;
    }

    .guide-body {
        padding: 0 24px 60px;
    }
}

@media (max-width: 768px) {
    .guide-hero {
        padding: 120px 24px 40px;
    }

    .guide-hero h1 {
        font-size: 32px;
    }

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

    .setup-diagram {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .diagram-left,
    .diagram-right {
        gap: 12px;
    }

    .diagram-row {
        justify-content: center;
    }

    .diagram-kmbox {
        width: auto;
        height: auto;
        padding: 24px;
    }

    .diagram-pc,
    .diagram-peripheral {
        padding: 14px 18px;
        font-size: 13px;
    }

    .connector-line {
        width: 12px;
    }

    .guide-code {
        padding: 16px;
    }

    .guide-steps li {
        padding-left: 36px;
    }
}
