/* ═══════════════════════════════════════
   AI编程快速入门指南 — Page Styles
   ═══════════════════════════════════════ */

/* ── Section Rhythm (板块间距与深浅交替) ── */
.guide-section-alt {
    background: var(--bg-elevated);
    padding: 80px 0;
    margin-top: 0;
}

.guide-section-spacer {
    padding-top: 72px;
}

.guide-section-spacer .section-header-center {
    margin-bottom: 36px !important;
}

/* ── Opening Section (破局 — 两列布局 / 文本与演示) ── */
.guide-opening-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: stretch; /* Change to stretch to equal height */
    margin-bottom: 0;
}

@media (max-width: 991px) {
    .guide-opening-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.guide-opening-text .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.guide-opening-text .section-tag {
    margin: 0 0 12px;
}

.guide-opening-text p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 12px;
}

.guide-opening-text p:last-of-type {
    margin-bottom: 0;
}

.guide-opening-text strong {
    color: var(--text-primary);
}

.guide-opening-text .guide-insight {
    margin-top: 24px;
}

/* ── Paradigm Shift Card (认知转变) ── */
.paradigm-shift-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin: 24px 0;
    box-shadow: var(--shadow-sm);
}

.paradigm-row {
    display: flex;
    flex-direction: column; /* Stack label and flow vertically */
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px dashed var(--border-subtle);
}

.paradigm-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.paradigm-label {
    font-size: 14px;
    color: var(--text-primary);
    font-weight: 600;
}

.paradigm-flow {
    display: flex;
    align-items: center;
    flex-wrap: wrap; /* allow wrapping on super thin screens */
    gap: 12px;
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-size: 13px;
    color: var(--text-secondary);
}

.p-node {
    background: var(--bg-elevated);
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--border-subtle);
    white-space: nowrap;
}

.p-barrier {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.05);
    position: relative;
}

.p-barrier::after {
    content: '';
    position: absolute;
    left: 8px;
    right: 8px;
    top: 50%;
    height: 1px;
    background: #ef4444;
}

.p-highlight {
    color: var(--accent);
    border-color: rgba(230, 126, 34, 0.4);
    background: rgba(230, 126, 34, 0.08);
    font-weight: bold;
}

.p-arrow {
    color: var(--text-muted);
    font-size: 14px;
}

@media (max-width: 991px) {
    .paradigm-flow {
        gap: 8px;
    }
}

/* ── Apple Style Calculator ── */
.guide-opening-demo {
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Push elements apart */
    align-items: center;
    height: 100%;
}

.demo-tip-box {
    margin-top: 0 !important;
    margin-bottom: 48px;
    width: 100%;
    box-shadow: var(--shadow-sm);
}

.apple-calculator {
    width: 280px;
    background: #1c1c1c;
    border-radius: 36px;
    padding: 24px 20px 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255,255,255,0.08) inset;
}

.calc-display {
    color: white;
    font-size: 56px;
    font-weight: 300;
    text-align: right;
    margin-bottom: 16px;
    padding: 0 8px;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.calc-keypad {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.calc-btn {
    aspect-ratio: 1;
    border-radius: 50%;
    border: none;
    font-size: 24px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: filter 0.2s;
    user-select: none;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.calc-btn:active {
    filter: brightness(1.3);
}

.calc-btn {
    background: #505050;
    color: white;
}

.calc-btn-func {
    background: #d4d4d2;
    color: #1c1c1c;
}

.calc-btn-op {
    background: #ff9500;
    color: white;
    font-size: 32px;
}

.calc-btn-op.active {
    background: white;
    color: #ff9500;
}

.calc-btn-zero {
    grid-column: span 2;
    aspect-ratio: auto;
    border-radius: 40px;
    justify-content: flex-start;
    padding-left: 26px;
}

/* ── Analogy Table & Image Grid (开车 vs 编程) ── */
.analogy-section-grid {
    display: grid;
    grid-template-columns: 1fr 0.8fr;
    gap: 32px;
    align-items: center; /* Vertically center the table and image */
    margin-top: 28px;
}

@media (max-width: 991px) {
    .analogy-section-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

.analogy-table-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 36px;
    overflow-x: auto;
    height: 100%; /* Make table container stretch if needed */
}

.analogy-image-wrap {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0,0,0,0.15);
    border: 1px solid var(--border-subtle);
    display: flex;
}

.analogy-comparison-img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.analogy-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
}

.analogy-table thead th {
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    padding: 12px 18px;
    border-bottom: 2px solid var(--accent);
    text-align: left;
}

.analogy-table tbody td {
    padding: 12px 18px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-subtle);
    line-height: 1.6;
    vertical-align: top;
}

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

.analogy-table tbody tr:nth-child(even) {
    background: rgba(230, 126, 34, 0.03);
}

.analogy-table code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    background: var(--bg-elevated);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--accent);
}

/* ── Cognitive Breakthrough (认知突破) ── */
.cognitive-breakthrough {
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.06), rgba(26, 107, 122, 0.04));
    border: 1px solid rgba(230, 126, 34, 0.15);
    border-radius: var(--radius-lg);
    padding: 36px;
    margin-top: 28px;
}

.cognitive-breakthrough p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 10px;
}

.cognitive-breakthrough p:last-child {
    margin-bottom: 0;
}

.cognitive-breakthrough strong {
    color: var(--text-primary);
}

/* ── Six Things Cards (六件必知) ── */
.five-things-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 28px;
}

.five-thing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.five-thing-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
}

.five-thing-card .thing-number {
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 8px;
    display: block;
}

.five-thing-card h4 {
    font-size: 16px;
    margin-bottom: 12px;
    line-height: 1.4;
}

.five-thing-card p {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.five-thing-card .thing-tip {
    margin-top: 20px;
    padding: 12px 14px;
    background: var(--bg-elevated);
    border-radius: 8px;
    border-left: 2px solid var(--accent);
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ── Decision Tree (判断树) ── */
.decision-tree-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 36px;
    margin-top: 28px;
}

.decision-tree {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    line-height: 2;
    color: var(--text-secondary);
    white-space: pre;
    overflow-x: auto;
}

.decision-tree .dt-root {
    color: var(--accent);
    font-weight: 600;
}

.decision-tree .dt-fail {
    color: #ef4444;
}

.decision-tree .dt-success {
    color: #10b981;
}

.decision-tree .dt-action {
    color: var(--accent-teal);
}

.decision-tree-note {
    margin-top: 20px;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.06), transparent);
    border-left: 3px solid var(--accent);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.decision-tree-note strong {
    color: var(--text-primary);
}

/* ── Fault Table (四类故障) ── */
.fault-table-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 36px;
    margin-top: 28px;
    overflow-x: auto;
}

.fault-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
}

.fault-table thead th {
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    padding: 12px 16px;
    border-bottom: 2px solid var(--accent);
    text-align: left;
    white-space: nowrap;
}

.fault-table tbody td {
    padding: 14px 16px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-subtle);
    line-height: 1.6;
    vertical-align: top;
}

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

.fault-table tbody tr:nth-child(even) {
    background: rgba(230, 126, 34, 0.03);
}

.fault-table .fault-type {
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

/* Quiz box */
.quiz-box {
    margin-top: 28px;
    padding: 28px;
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-subtle);
}

.quiz-box h4 {
    font-size: 16px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quiz-box p,
.quiz-box .quiz-item {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 6px;
}

.quiz-answer {
    margin-top: 14px;
    padding: 12px 14px;
    background: var(--bg-card);
    border-radius: 8px;
    border-left: 2px solid #10b981;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ── MVP Steps (Timeline 样式，基于 practice.css 适配橙色主题) ── */
.guide-timeline {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.guide-timeline-item {
    display: flex;
    align-items: stretch;
    position: relative;
    padding-bottom: 24px;
}

.guide-timeline-item:last-child {
    padding-bottom: 0;
}

/* 垂直连接线 */
.guide-timeline-item::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, rgba(230, 126, 34, 0.15), rgba(230, 126, 34, 0.35));
}

.guide-timeline-item:last-child::before {
    display: none;
}

/* 节点圆圈 */
.guide-timeline-node {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid rgba(230, 126, 34, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    margin-right: 24px;
    margin-top: 28px;
    transition: all var(--transition-base);
}

.guide-timeline-node span {
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    font-weight: 600;
    color: var(--accent);
}

.guide-timeline-item:hover .guide-timeline-node {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 16px rgba(230, 126, 34, 0.3);
}

.guide-timeline-item:hover .guide-timeline-node span {
    color: white;
}

/* ── MVP 代码展示区 ── */
.mvp-code-preview {
    margin: 16px 0 20px;
    border-radius: 8px;
    background: #1e1e1e;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.mvp-code-header {
    display: flex;
    align-items: center;
    padding: 8px 14px;
    background: #2d2d2d;
    border-bottom: 1px solid #1e1e1e;
    font-size: 13px;
    color: #a0a0a0;
    font-family: 'JetBrains Mono', Consolas, monospace;
}

.mvp-code-header::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff5f56;
    margin-right: 6px;
    box-shadow: 16px 0 0 #ffbd2e, 32px 0 0 #27c93f;
    margin-left: 2px;
}

.mvp-code-header span {
    margin-left: 36px;
    flex: 1;
}

.mvp-copy-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: #a0a0a0;
    font-size: 12px;
    padding: 3px 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    outline: none;
}

.mvp-copy-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.4);
}

.mvp-code-preview pre {
    margin: 0;
    padding: 16px;
    overflow-x: auto;
    max-height: 400px;
}

.mvp-code-preview code {
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-size: 13px;
    line-height: 1.6;
    color: #e6e6e6;
    tab-size: 4;
}

/* ── 终端输出区 ── */
.mvp-console-output {
    margin: 12px 0 20px;
    background: #0a0a0a; /* 更深邃的纯正终端黑 */
    border: 1px solid #2a2a2a; /* 清晰的实线边框，抛弃虚线 */
    border-radius: 8px;
    padding: 16px 18px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.5); /* 内阴影增加下沉感 */
}

.mvp-console-label {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 11px;
    color: #777777;
    background: #1f1f1f;
    padding: 3px 10px;
    border-bottom-left-radius: 6px;
    letter-spacing: 0.5px;
    border-left: 1px solid #2a2a2a;
    border-bottom: 1px solid #2a2a2a;
}

.mvp-console-output pre {
    margin: 0;
    overflow-x: auto;
}

.mvp-console-output code {
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-size: 13px;
    line-height: 1.6;
    color: #2ecc71;  /* 更柔和、清晰的护眼荧光绿 */
}

.mvp-console-output code strong {
    color: #ffffff;
    font-weight: 600;
}

/* 步骤卡片 */
.guide-step-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 28px;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-base);
    flex: 1;
}

.guide-step-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
}

.guide-step-card h4 {
    font-size: 17px;
    margin-bottom: 10px;
    line-height: 1.4;
}

.guide-step-card p {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 8px;
}

.guide-step-card p:last-of-type {
    margin-bottom: 0;
}

.mvp-checkpoint {
    margin-top: 14px;
    padding: 12px 14px;
    background: var(--bg-elevated);
    border-radius: 8px;
    border-left: 2px solid #10b981;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.7;
}

.mvp-checkpoint strong {
    color: var(--text-secondary);
}

.mvp-new-concept {
    margin-top: 8px;
    font-size: 12px;
    color: var(--accent);
    font-family: 'JetBrains Mono', monospace;
}

.mvp-summary {
    margin-top: 28px;
    padding: 24px 28px;
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.08), rgba(26, 107, 122, 0.04));
    border: 1px solid rgba(230, 126, 34, 0.15);
    border-radius: var(--radius-lg);
    font-size: 14.5px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.mvp-summary strong {
    color: var(--text-primary);
}

/* ── Case Story Cards (真实案例) ── */
.case-story-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 28px;
}

.case-story {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--transition-base);
}

.case-story:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
}

.case-story-badge {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 2px;
    color: var(--accent);
    margin-bottom: 10px;
    display: block;
}

.case-story h4 {
    font-size: 17px;
    margin-bottom: 14px;
    line-height: 1.4;
}

.case-story p {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 10px;
}

.case-story p:last-child {
    margin-bottom: 0;
}

.case-story-note {
    margin-top: 20px;
    padding: 14px 18px;
    background: var(--bg-elevated);
    border-radius: 8px;
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.7;
    font-style: italic;
}

/* ── GitHub Section (自制与外包) ── */
.github-section {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 36px;
    margin-top: 28px;
}

.github-section h4 {
    font-size: 17px;
    margin-bottom: 14px;
}

.github-section p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 10px;
}

.github-section p:last-child {
    margin-bottom: 0;
}

.github-criteria {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.github-criterion {
    padding: 16px 20px;
    background: var(--bg-elevated);
    border-radius: 8px;
    border-left: 3px solid var(--accent);
}

.github-criterion strong {
    font-size: 14px;
    color: var(--text-primary);
    display: block;
    margin-bottom: 4px;
}

.github-criterion span {
    font-size: 12.5px;
    color: var(--text-muted);
}

/* ── Infra Cards (README + Git) ── */
.infra-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 28px;
}

.infra-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--transition-base);
}

.infra-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
}

.infra-card-icon {
    font-size: 32px;
    margin-bottom: 14px;
}

.infra-card h4 {
    font-size: 17px;
    margin-bottom: 12px;
}

.infra-card p {
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 10px;
}

.infra-card p:last-child {
    margin-bottom: 0;
}

.infra-card .infra-note {
    margin-top: 14px;
    padding: 12px 14px;
    background: var(--bg-elevated);
    border-radius: 8px;
    border-left: 2px solid #f59e0b;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ── Tool Config Table (工具清单) ── */
.tool-table-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 36px;
    margin-top: 28px;
    overflow-x: auto;
}

.tool-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
}

.tool-table thead th {
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    padding: 12px 16px;
    border-bottom: 2px solid var(--accent);
    text-align: left;
}

.tool-table tbody td {
    padding: 14px 16px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-subtle);
    line-height: 1.6;
    vertical-align: top;
}

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

.tool-table tbody tr:nth-child(even) {
    background: rgba(230, 126, 34, 0.03);
}

.tool-table .tool-role {
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.tool-principle {
    margin-top: 20px;
    padding: 14px 18px;
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.06), transparent);
    border-left: 3px solid var(--accent);
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.tool-principle strong {
    color: var(--text-primary);
}

/* ── Timeline Table (时间预期) ── */
.timeline-table-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 36px;
    margin-top: 28px;
    overflow-x: auto;
}

.timeline-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
}

.timeline-table thead th {
    font-family: 'Oswald', sans-serif;
    font-size: 13px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    padding: 12px 16px;
    border-bottom: 2px solid var(--accent);
    text-align: left;
}

.timeline-table tbody td {
    padding: 14px 16px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-subtle);
    line-height: 1.6;
    vertical-align: top;
}

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

.timeline-table tbody tr:nth-child(even) {
    background: rgba(230, 126, 34, 0.03);
}

.timeline-table .stage-name {
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.timeline-note {
    margin-top: 20px;
    padding: 14px 18px;
    background: var(--bg-elevated);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ── Quick Reference Card (速查卡) ── */
.quick-ref-section {
    background: linear-gradient(135deg, rgba(230, 126, 34, 0.06), rgba(26, 107, 122, 0.04));
    border: 1px solid rgba(230, 126, 34, 0.15);
    border-radius: var(--radius-lg);
    padding: 48px;
    margin-top: 28px;
}

.quick-ref-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.quick-ref-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.quick-ref-block {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 28px;
}

.quick-ref-block h4 {
    font-size: 15px;
    margin-bottom: 14px;
    color: var(--accent);
}

.quick-ref-block table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.quick-ref-block table th {
    text-align: left;
    padding: 6px 10px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-muted);
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.quick-ref-block table td {
    padding: 8px 10px;
    border-bottom: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    line-height: 1.5;
}

.quick-ref-block table tr:last-child td {
    border-bottom: none;
}



/* ── Custom Decision Tree (速查卡迷你决策树) ── */
.mini-dt {
    list-style: none;
    padding-left: 0;
    margin: 4px 0 16px;
    font-size: 13.5px;
    line-height: 2.2;
    color: var(--text-secondary);
}

.mini-dt ul {
    list-style: none;
    padding-left: 18px;
    margin-top: 4px;
    margin-bottom: 4px;
    border-left: 2px dashed rgba(230, 126, 34, 0.3); /* 弱化主色虚线 */
}

.mini-dt li {
    position: relative;
    padding-left: 14px;
    margin-bottom: 8px;
}

.mini-dt li:last-child {
    margin-bottom: 0;
}

.mini-dt ul li::before {
    content: "";
    position: absolute;
    left: -2px;
    top: 14px;
    width: 12px;
    border-top: 2px dashed rgba(230, 126, 34, 0.3);
}

.mini-dt .dt-label {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12.5px;
    font-weight: 500;
    margin-right: 4px;
    line-height: 1.5;
}

.mini-dt .dt-label.fail {
    background: rgba(231, 76, 60, 0.1);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.2);
}

.mini-dt .dt-label.success {
    background: rgba(46, 204, 113, 0.1);
    color: #27ae60;
    border: 1px solid rgba(46, 204, 113, 0.2);
}

.mini-dt .dt-label.pass {
    background: rgba(52, 152, 219, 0.1);
    color: #3498db;
    border: 1px solid rgba(52, 152, 219, 0.2);
}

.quick-ref-fault table .fault-type-mini {
    font-weight: 600;
    color: var(--text-primary);
}

.golden-rule {
    margin-top: 28px;
    padding: 20px 28px;
    background: var(--bg-card);
    border: 2px solid var(--accent);
    border-radius: var(--radius-lg);
    text-align: center;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    font-weight: 500;
}

.golden-rule strong {
    color: var(--accent);
}

/* ── Closing Section (写在最后) ── */
.closing-section {
    background: linear-gradient(135deg, var(--bg-card), rgba(230, 126, 34, 0.04));
    border: 1px solid rgba(230, 126, 34, 0.12);
    border-radius: var(--radius-lg);
    padding: 56px 48px;
    margin-top: 28px;
    position: relative;
    overflow: hidden;
}

.closing-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
}

.closing-content {
    max-width: 580px;
    margin: 0 auto;
    text-align: left;
}

.closing-content h3 {
    text-align: center;
    font-size: 24px;
    margin-bottom: 28px;
    color: var(--text-primary);
}

.closing-content > p {
    font-size: 15.5px;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 16px;
    text-align: center;
}

.closing-quote {
    background: var(--bg-elevated);
    border-left: 3px solid var(--accent);
    padding: 24px 32px;
    border-radius: 0 8px 8px 0;
    margin: 32px 0;
}

.closing-quote p {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px !important;
    text-align: left !important;
}

.closing-list {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.closing-list li {
    font-size: 14.5px;
    color: var(--text-secondary);
    line-height: 1.8;
    padding: 6px 0 6px 22px;
    position: relative;
}

.closing-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: bold;
}

p.closing-highlight {
    text-align: center;
    font-size: 15.5px !important;
    font-weight: 500;
    color: var(--text-primary) !important;
    margin-top: 36px !important;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.prompt-highlight-box {
    background-color: var(--accent); /* #e67e22 */
    color: #ffffff;
    padding: 4px 12px;
    border-radius: 6px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(230, 126, 34, 0.4);
    display: inline-block;
    margin: 0 4px;
}

/* ── Insight Box (通用引用高亮) ── */
.guide-insight {
    margin-top: 20px;
    padding: 16px 20px;
    background: var(--bg-elevated);
    border-radius: 8px;
    border-left: 3px solid var(--accent);
    font-size: 13.5px;
    color: var(--text-secondary);
    line-height: 1.8;
}

.guide-insight.tip {
    border-left-color: #10b981;
}

.guide-insight.warning {
    border-left-color: #f59e0b;
}

.guide-insight strong {
    color: var(--text-primary);
}

.guide-insight a {
    color: var(--accent);
}

/* ── Responsive ── */
@media (max-width: 992px) {
    .five-things-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .five-things-bottom-row {
        max-width: 100%;
        grid-template-columns: repeat(2, 1fr);
    }
    .github-criteria {
        grid-template-columns: 1fr;
    }
    .quick-ref-grid {
        grid-template-columns: 1fr;
    }
    .guide-timeline-node {
        margin-right: 16px;
    }
}

@media (max-width: 768px) {
    .five-things-grid {
        grid-template-columns: 1fr;
    }
    .five-things-bottom-row {
        grid-template-columns: 1fr;
    }
    .case-story-grid {
        grid-template-columns: 1fr;
    }
    .infra-grid {
        grid-template-columns: 1fr;
    }
    .guide-timeline-node {
        width: 32px;
        height: 32px;
        margin-right: 14px;
        margin-top: 20px;
    }
    .guide-timeline-node span {
        font-size: 12px;
    }
    .guide-step-card {
        padding: 20px;
    }
    .guide-section-spacer {
        padding-top: 48px;
    }
    .analogy-table-wrap,
    .fault-table-wrap,
    .tool-table-wrap,
    .timeline-table-wrap {
        padding: 20px;
    }
    .decision-tree-wrap {
        padding: 20px;
    }
    .decision-tree {
        font-size: 11px;
    }
    .github-section {
        padding: 24px;
    }
    .quick-ref-section {
        padding: 28px 20px;
    }
    .closing-section {
        padding: 32px 20px;
    }
}
