/* CSS reset & variables */
:root {
    --bg-color: #ffffff;
    --sidebar-bg: #f9f9f9;
    --text-main: #222222;
    --text-muted: #777777;
    --accent-color: #000000;
    --nav-hover: #f0f0f0;
    --nav-active: #e5e5e5;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border-radius: 0 !important;
    box-shadow: none !important;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--bg-color);
    display: flex;
    height: 100vh;
    overflow: hidden;
    font-size: 15px;
    line-height: 1.7;
}

/* Layout */
.sidebar {
    width: 220px;
    height: 100vh;
    background-color: #ffffff;
    border-right: 1px solid #eeeeee;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    padding-top: 20px;
    overflow-y: auto;
}

.sidebar-header {
    padding: 24px 24px 32px;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.nav-list {
    list-style: none;
    padding: 0;
}

.nav-item {
    padding: 8px 24px;
    cursor: pointer;
    color: var(--text-main);
    text-decoration: none;
    display: block;
    font-size: 14px;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background-color: var(--nav-hover);
}

.nav-item.active {
    background-color: #f5f5f5;
    color: var(--text-main);
    font-weight: 600;
    border-left: 3px solid var(--accent-color);
}

.nav-group-title {
    padding: 16px 24px 8px;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
}

.nav-sub-item {
    padding: 6px 24px 6px 40px;
    cursor: pointer;
    color: var(--text-muted);
    text-decoration: none;
    display: block;
    font-size: 13px;
    border-left: 3px solid transparent;
}

.nav-sub-item:hover {
    background-color: var(--nav-hover);
    color: var(--text-main);
}

.nav-sub-item.active {
    background-color: #f5f5f5;
    color: var(--text-main);
    font-weight: 600;
    border-left: 3px solid var(--accent-color);
}

.content {
    flex-grow: 1;
    padding: 48px 60px;
    overflow-y: auto;
    background-color: var(--bg-color);
}

/* Content Typography & Blocks */
.section {
    display: none;
    width: 100%;
    margin: 0;
}

.section.active {
    display: block;
}

.section-title {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 32px;
    letter-spacing: -0.02em;
}

.learning-points {
    margin-bottom: 32px;
    padding: 16px 20px;
    background-color: #f9f9f9;
    border: 1px solid #eeeeee;
    border-radius: 0;
    font-size: 14px;
}

.learning-points-title {
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 40px 0 16px 0;
    letter-spacing: -0.01em;
}

ul {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 24px;
}

ul ul {
    padding-left: 24px;
    margin-top: 8px;
    margin-bottom: 16px;
}

.content li {
    margin-bottom: 12px;
    position: relative;
    padding-left: 16px;
}

.content li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8px;
    width: 4px;
    height: 4px;
    background-color: var(--accent-color);
    border-radius: 0;
}

.content ul ul li::before {
    background-color: transparent;
    border: 1px solid var(--text-muted);
    border-radius: 0;
}

.content-block {
    margin-bottom: 24px;
    background-color: var(--bg-color);
}

.training-overview {
    background-color: #f9f9f9 !important;
    border-radius: 0;
    padding: 24px 32px !important;
    margin-bottom: 48px !important;
    border: 1px solid #eeeeee !important;
}

.training-overview h2 {
    font-size: 20px !important;
    margin-bottom: 20px !important;
}

.training-overview .grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
    font-size: 14px;
}

.overview-label {
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
    display: block;
}

.time-badge {
    color: var(--text-muted) !important;
    font-weight: 500;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Flowchart Styles */
.flow-container {
    margin-top: 32px;
    margin-bottom: 48px;
}
.flow-start {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 260px;
    padding: 14px 22px;
    background: #111111;
    color: #ffffff;
    border-radius: 0;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 20px;
}
.flow-board {
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 12px;
}
.flow-board-inner {
    display: grid;
    grid-auto-columns: minmax(360px, 1fr);
    grid-auto-flow: column;
    gap: 32px;
    align-items: start;
}
.flow-stage {
    background: #fbfbfb;
    border-radius: 0;
    padding: 24px;
    position: relative;
    border: 1px solid #eeeeee;
}
.flow-stage:not(:last-child)::after {
    content: "→";
    position: absolute;
    right: -24px;
    top: 50%;
    transform: translateY(-50%);
    color: #cccccc;
    font-size: 20px;
    font-weight: 600;
}
.flow-stage-header {
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #ededed;
}
.stage-index {
    display: inline-block;
    margin-bottom: 6px;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.stage-title {
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.01em;
}
.stage-summary {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 18px;
    padding: 16px;
    background: #f0f0f0;
    border-radius: 0;
    border: 1px solid #e5e5e5;
}
.summary-card {
    background: transparent;
    border: none;
    padding: 0;
}
.summary-label {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}
.summary-text {
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-main);
    font-weight: 500;
}
.flow-activities {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 4px;
}
.activities-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 2px;
}
.activity-card {
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-radius: 0;
    padding: 20px;
    position: relative;
    box-shadow: none;
}
.activity-card:not(:last-child)::after {
    content: "↓";
    position: absolute;
    left: 50%;
    bottom: -22px;
    transform: translateX(-50%);
    color: #dddddd;
    font-size: 14px;
    font-weight: 600;
}
.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}
.activity-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-main);
    line-height: 1.45;
}
.activity-kicker {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 6px;
}
.activity-tag {
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 0;
    font-weight: 500;
    white-space: nowrap;
    border: 1px solid transparent;
}
.tag-desk {
    background-color: #eef3ff;
    color: #2f5bd3;
}
.tag-onsite {
    background-color: #fff1eb;
    color: #c85a2e;
}
.activity-detail {
    font-size: 13px;
    margin-bottom: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}
.activity-detail strong {
    color: var(--text-main);
    font-weight: 500;
}
.io-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
    background: #fafafa;
    padding: 12px;
    border-radius: 0;
    border: 1px solid #eeeeee;
}
.io-row {
    display: flex;
    font-size: 12px;
    line-height: 1.4;
}
.io-label {
    font-weight: 600;
    color: var(--text-muted);
    width: 40px;
    flex-shrink: 0;
}
.io-content {
    color: var(--text-main);
}
.view-example-btn {
    display: inline-flex;
    align-items: center;
    margin-top: 16px;
    padding: 6px 12px;
    background-color: transparent;
    border: 1px solid #eeeeee;
    border-radius: 0;
    font-size: 12px;
    color: #2f5bd3;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
}
.view-example-btn:hover {
    background-color: #f5f8ff;
    border-color: #d0d7e7;
}
.view-example-btn::after {
    content: " ↗";
    font-size: 10px;
    margin-left: 4px;
}
.tag-comm {
    background-color: #f0f7f4;
    color: #2e7d32;
}
.tag-co-create {
    background-color: #fff4e5;
    color: #d97706;
}
/* Part 4: 生智能 - 活动类型标签 */
.tag-design {
    background-color: #eef3ff;
    color: #2f5bd3;
}
.tag-dev {
    background-color: #f0f7f4;
    color: #2e7d32;
}
.tag-eval {
    background-color: #fff4e5;
    color: #d97706;
}
.tag-llm {
    background-color: #f3e8ff;
    color: #7c3aed;
}
.tag-hitl {
    background-color: #fde8e8;
    color: #b91c1c;
}
.flow-legend {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 12px;
    margin-bottom: 24px;
}
.requirement-box {
    background-color: #fff8e1;
    border-left: 4px solid #ffc107;
    border-top: 1px solid #ffe082;
    border-right: 1px solid #ffe082;
    border-bottom: 1px solid #ffe082;
    padding: 16px 20px;
    margin-bottom: 32px;
    border-radius: 0;
}
.requirement-label {
    display: block;
    font-size: 11px;
    color: #b58100;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    margin-bottom: 8px;
}
.requirement-text {
    font-size: 15px;
    color: #5d4037;
    font-style: italic;
    line-height: 1.6;
}
.example-text {
    color: #2f5bd3;
    font-weight: 500;
}
.flow-note {
    margin-bottom: 16px;
    color: var(--text-muted);
    font-size: 14px;
}
@media (max-width: 960px) {
    #intro.section {
        max-width: 800px;
    }
    .flow-board-inner {
        min-width: 980px;
    }
}
/* Activity Detail Styles */
.activity-detail-block {
    background: #ffffff;
    border: 1px solid #eeeeee;
    padding: 24px;
    margin-bottom: 24px;
}

.activity-detail-block h3 {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 18px;
    border-bottom: 1px solid #000000;
    display: inline-block;
    padding-bottom: 4px;
}

.activity-info {
    list-style: none;
    padding: 0;
    margin: 0;
}

.activity-info li {
    margin-bottom: 12px;
    line-height: 1.6;
    display: flex;
    align-items: flex-start;
    padding-left: 0 !important;
}

.activity-info li::before {
    display: none !important;
}

.activity-info li strong {
    min-width: 90px;
    display: inline-block;
    color: #666666;
    font-weight: 600;
}

/* Markdown Rendering Styles */
.markdown-render {
    max-width: 100%;
    overflow-x: auto;
}
.markdown-render h1, .markdown-render h2, .markdown-render h3 {
    margin-top: 20px;
    margin-bottom: 12px;
    font-weight: 700;
    color: #111111;
}
.markdown-render h1 { font-size: 1.4em; border-bottom: 1px solid #eeeeee; padding-bottom: 8px; }
.markdown-render h2 { font-size: 1.25em; }
.markdown-render h3 { font-size: 1.1em; }
.markdown-render p { margin-bottom: 12px; }
.markdown-render ul, .markdown-render ol { margin-bottom: 16px; padding-left: 20px; }
.markdown-render li { margin-bottom: 6px; position: relative; list-style-type: disc; padding-left: 0; }
.markdown-render li::before { display: none !important; }
.markdown-render strong { font-weight: 700; color: #111111; }
.markdown-render blockquote { border-left: 4px solid #dddddd; padding-left: 16px; color: #666666; font-style: italic; margin-bottom: 16px; }
.markdown-render table { width: 100%; border-collapse: collapse; margin-bottom: 16px; font-size: 13px; }
.markdown-render th, .markdown-render td { border: 1px solid #eeeeee; padding: 8px 12px; text-align: left; }
.markdown-render th { background-color: #f5f5f5; font-weight: 600; }
.markdown-render pre {
    background: #f7f7f7;
    border: 1px solid #eeeeee;
    padding: 14px 16px;
    margin-bottom: 16px;
    font-family: "SF Mono", Menlo, Consolas, monospace;
    font-size: 12.5px;
    line-height: 1.6;
    overflow-x: auto;
    max-width: 100%;
}
.markdown-render code {
    font-family: "SF Mono", Menlo, Consolas, monospace;
    font-size: 0.92em;
    background: #f7f7f7;
    padding: 1px 5px;
}
.markdown-render pre code {
    background: transparent;
    padding: 0;
    font-size: inherit;
    white-space: pre;
}
.markdown-render img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 12px 0 16px;
    border: 1px solid #eeeeee;
}

/* Practice Tips Dos & Don'ts */
.practice-tips {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1px;
    margin-top: 16px;
    background-color: #eeeeee; /* Border color for the gap */
    border: 1px solid #eeeeee;
}

.tips-do, .tips-dont {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    padding: 24px;
}

.tips-do strong, .tips-dont strong {
    display: flex;
    align-items: center;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
    padding-left: 8px;
    border-left: 3px solid;
}

.tips-do strong {
    color: #2e7d32;
    border-left-color: #2e7d32;
}

.tips-dont strong {
    color: #c62828;
    border-left-color: #c62828;
}

.tips-do ul, .tips-dont ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.tips-do li, .tips-dont li {
    font-size: 13px !important;
    margin-bottom: 12px !important;
    line-height: 1.6 !important;
    padding-left: 20px !important;
    position: relative !important;
    color: #444444;
}

.tips-do li::before, .tips-dont li::before {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    top: 8px !important;
    width: 6px !important;
    height: 6px !important;
    border: 1px solid !important;
    background-color: transparent !important;
}

.tips-do li::before {
    border-color: #2e7d32 !important;
}

.tips-dont li::before {
    border-color: #c62828 !important;
}

/* ============================================================
   课堂互动 Lab Zone —— 与学员现场互动使用的特殊样式区
   ============================================================ */
.lab-zone {
    margin: 40px 0 48px;
    border: 2px solid #111111;
    background: #ffffff;
}

.lab-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #111111;
    color: #ffffff;
    padding: 12px 20px;
}

.lab-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.lab-badge {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #111111;
    background: #ffd60a;
    padding: 3px 10px;
    white-space: nowrap;
}

.lab-body {
    padding: 20px 20px 24px;
    background: #fafafa;
    border-top: 1px solid #e5e5e5;
}

.lab-intro {
    font-size: 13px;
    color: #555555;
    line-height: 1.7;
    margin-bottom: 18px;
    padding: 12px 16px;
    background: #ffffff;
    border-left: 4px solid #111111;
    border-top: 1px solid #eeeeee;
    border-right: 1px solid #eeeeee;
    border-bottom: 1px solid #eeeeee;
}

.lab-intro strong {
    color: #111111;
    font-weight: 600;
}

.lab-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 960px) {
    .lab-cards {
        grid-template-columns: 1fr;
    }
}

.lab-card {
    border: 1px solid #dddddd;
    background: #ffffff;
    padding: 16px 18px;
    cursor: pointer;
    position: relative;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.lab-card:hover {
    border-color: #111111;
}

.lab-card .lab-q {
    font-size: 13.5px;
    line-height: 1.65;
    color: #222222;
    margin-bottom: 8px;
    font-weight: 500;
}

.lab-card .lab-hint {
    display: block;
    font-size: 11px;
    color: #999999;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
}

.lab-card .lab-a {
    display: none;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px dashed #cccccc;
    font-size: 13px;
    line-height: 1.7;
    color: #333333;
}

.lab-card.revealed {
    border-color: #111111;
    background: #fffbe6;
}

.lab-card.revealed .lab-a {
    display: block;
}

.lab-tag {
    display: inline-block;
    padding: 2px 9px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-right: 6px;
    border: 1px solid #111111;
    vertical-align: 1px;
}

.lab-tag.yes {
    background: #111111;
    color: #ffffff;
}

.lab-tag.no {
    background: #ffffff;
    color: #111111;
}

.lab-tag.tag-red { background: #e53935; border-color: #e53935; color: #ffffff; }
.lab-tag.tag-yellow { background: #fbc02d; border-color: #fbc02d; color: #111111; }
.lab-tag.tag-orange { background: #fb8c00; border-color: #fb8c00; color: #ffffff; }
.lab-tag.tag-blue { background: #1e88e5; border-color: #1e88e5; color: #ffffff; }

/* ---- WSJF 计算器 ---- */
.wsjf-scenario {
    border: 1px solid #dddddd;
    background: #ffffff;
    padding: 16px 18px;
    margin-bottom: 14px;
}

.wsjf-scenario.top {
    border-color: #111111;
    background: #fffbe6;
}

.wsjf-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.wsjf-rank {
    font-size: 16px;
    min-width: 26px;
}

.wsjf-head h4 {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    color: #111111;
}

.wsjf-head .wsjf-note {
    margin-left: auto;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #111111;
}

.wsjf-row {
    display: grid;
    grid-template-columns: 110px 1fr 46px;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 13px;
}

.wsjf-row label {
    font-size: 12px;
    color: #555555;
    font-weight: 600;
}

.wsjf-row input[type="range"] {
    width: 100%;
    accent-color: #111111;
    background: transparent;
}

.wsjf-row .wsjf-val {
    text-align: right;
    font-weight: 700;
    font-size: 13px;
    color: #111111;
}

.wsjf-bar {
    margin-top: 10px;
    padding: 6px 12px;
    background: #f4f4f4;
    border: 1px solid #e5e5e5;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wsjf-bar b {
    font-size: 15px;
    font-weight: 700;
    color: #111111;
}

.wsjf-bar .wsjf-note {
    margin-left: auto;
    font-weight: 700;
    color: #111111;
}

.wsjf-reset {
    margin-top: 4px;
    padding: 8px 16px;
    background: #111111;
    color: #ffffff;
    border: 1px solid #111111;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.03em;
}

.wsjf-reset:hover {
    background: #333333;
}

/* ---- HMW 五大方向发散 ---- */
.hmw-problem {
    display: flex;
    align-items: stretch;
    gap: 0;
    border: 1px solid #dddddd;
    background: #ffffff;
    margin-bottom: 18px;
    min-height: 76px;
}

.hmw-problem-label {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 18px;
    background: #eeeeee;
    color: #555555;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    flex-shrink: 0;
    border-right: 1px solid #dddddd;
}

.hmw-problem-text {
    display: flex;
    align-items: center;
    padding: 14px 20px;
    font-size: 14px;
    line-height: 1.7;
    color: #222222;
}

.hmw-note {
    font-size: 14px;
    font-weight: 700;
    color: #111111;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eeeeee;
}

.hmw-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

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

.hmw-card {
    border: 1px solid #dddddd;
    background: #ffffff;
    padding: 14px 16px;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.hmw-card:hover {
    border-color: #111111;
}

.hmw-dir {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.hmw-dir-label {
    font-size: 14px;
    font-weight: 700;
    color: #111111;
}

.hmw-method {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 12px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid #111111;
}

.hmw-method-blue {
    background: #eef3ff;
    color: #2f5bd3;
    border-color: #2f5bd3;
}

.hmw-method-green {
    background: #f0f7f4;
    color: #2e7d32;
    border-color: #2e7d32;
}

.hmw-method-orange {
    background: #fff4e5;
    color: #d97706;
    border-color: #d97706;
}

.hmw-meta {
    font-size: 11.5px;
    color: #999999;
    letter-spacing: 0.03em;
    margin-bottom: 8px;
}

.hmw-card .lab-q {
    font-size: 12.5px;
    color: #777777;
    margin-bottom: 0;
}

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

.hmw-list li {
    position: relative;
    margin-bottom: 8px;
    padding-left: 16px;
    font-size: 12.5px;
    line-height: 1.7;
    color: #333333;
}

.hmw-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 5px;
    height: 5px;
    background: #111111;
}

.hmw-list strong {
    color: #111111;
    font-weight: 600;
}

.hmw-tip {
    margin-top: 16px;
    padding: 10px 14px;
    background: #ffffff;
    border: 1px solid #eeeeee;
    border-left: 4px solid #111111;
    font-size: 12.5px;
    color: #555555;
    line-height: 1.7;
}

.hmw-tip strong {
    color: #111111;
}

