/* ===== 假装工作模拟器 · 专属样式 ===== */

/* ---- Hero 演示区 ---- */
.fw-hero {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 56px;
    align-items: center;
    padding: 56px 0 48px;
}

.fw-hero-left { max-width: 520px; }

.fw-scenario {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--c-primary-soft);
    color: var(--c-primary);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}
.fw-scenario .dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--c-primary);
    animation: fw-pulse 1.6s ease-in-out infinite;
}
@keyframes fw-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.8); }
}

.fw-hero h1 {
    font-size: 40px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 18px;
}

.fw-story {
    font-size: 16px;
    line-height: 1.85;
    color: var(--c-text-sub);
    margin-bottom: 28px;
    padding-left: 16px;
    border-left: 3px solid var(--c-primary);
}

.fw-hero-cta {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.fw-hero-meta {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.fw-hero-meta .item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.fw-hero-meta .k { font-size: 12px; color: var(--c-text-muted); }
.fw-hero-meta .v { font-size: 14px; font-weight: 600; color: var(--c-text); }

/* ---- 演示窗口 ---- */
.fw-window {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(16,24,40,0.04);
    background: #1e1e2e;
    display: flex;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

/* ---- 活动栏（最左侧图标栏） ---- */
.fw-activity-bar {
    flex-shrink: 0;
    width: 48px;
    background: #181825;
    border-right: 1px solid #11111b;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0;
    gap: 4px;
}
.fw-activity-logo {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #89b4fa;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}
.fw-activity-icon {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    background: transparent;
    border: none;
    color: #6c7086;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: color 0.15s;
}
.fw-activity-icon:hover { color: #cdd6f4; }
.fw-activity-icon.active {
    color: #cdd6f4;
}
.fw-activity-icon.active::before {
    content: "";
    position: absolute;
    left: -8px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: #89b4fa;
    border-radius: 0 2px 2px 0;
}
.fw-activity-spacer { flex: 1; }

/* ---- 侧边栏 ---- */
.fw-sidebar {
    flex-shrink: 0;
    width: 220px;
    background: #181825;
    border-right: 1px solid #313244;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #313244 transparent;
}
.fw-sidebar::-webkit-scrollbar { width: 4px; }
.fw-sidebar::-webkit-scrollbar-thumb { background: #313244; }

.fw-sidebar-project {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: #181825;
    border-bottom: 1px solid #11111b;
}
.fw-project-name {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: #cdd6f4;
    text-transform: uppercase;
}
.fw-project-badge {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(166,227,161,0.12);
    color: #a6e3a1;
    font-weight: 600;
}

.fw-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #6c7086;
    text-transform: uppercase;
}
.fw-sidebar-actions {
    cursor: pointer;
    color: #6c7086;
    font-size: 14px;
    letter-spacing: 0;
}
.fw-sidebar-actions:hover { color: #cdd6f4; }

.fw-tree {
    list-style: none;
    padding: 0 0 8px 0;
    margin: 0;
    font-size: 13px;
    color: #a6adc8;
}
.fw-tree ul { list-style: none; padding-left: 12px; margin: 0; }
.fw-tree-folder {
    padding: 3px 14px 3px 12px;
    color: #cdd6f4;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
}
.fw-tree-folder:hover { color: #fff; }
.fw-tree-indent { padding: 0; }
.fw-tree-indent.fw-tree-collapsed { display: none; }
.fw-tree-file {
    padding: 3px 14px 3px 12px;
    color: #a6adc8;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fw-tree-file:hover { background: rgba(205,214,244,0.04); color: #cdd6f4; }
.fw-tree-file.active {
    background: rgba(137,180,250,0.12);
    color: #89b4fa;
    border-left: 2px solid #89b4fa;
    padding-left: 10px;
}

/* ---- 主区域 ---- */
.fw-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

/* ---- 菜单栏 ---- */
.fw-menubar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 12px;
    height: 28px;
    background: #181825;
    border-bottom: 1px solid #11111b;
    font-size: 12px;
    color: #a6adc8;
}
.fw-menu-item {
    padding: 4px 6px;
    cursor: pointer;
    transition: color 0.15s;
    white-space: nowrap;
}
.fw-menu-item:hover { color: #cdd6f4; }
.fw-menu-search {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px 3px 8px;
    background: #11111b;
    border: 1px solid #313244;
    border-radius: 6px;
    color: #6c7086;
    font-size: 11px;
    cursor: pointer;
}
.fw-menu-search:hover { color: #cdd6f4; border-color: #45475a; }

/* ---- 标签页栏 ---- */
.fw-tabs {
    display: flex;
    align-items: stretch;
    background: #181825;
    border-bottom: 1px solid #11111b;
    overflow-x: auto;
    scrollbar-width: none;
}
.fw-tabs::-webkit-scrollbar { display: none; }
.fw-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: transparent;
    color: #6c7086;
    font-size: 12px;
    cursor: pointer;
    border-right: 1px solid #11111b;
    white-space: nowrap;
    transition: background 0.15s;
}
.fw-tab:hover { background: rgba(205,214,244,0.04); color: #cdd6f4; }
.fw-tab.active {
    background: #1e1e2e;
    color: #cdd6f4;
    position: relative;
}
.fw-tab.active::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: #89b4fa;
}
.fw-tab-lang {
    font-size: 9px;
    font-weight: 700;
    padding: 1px 4px;
    border-radius: 3px;
    background: #89b4fa;
    color: #1e1e2e;
}
.fw-tab-lang.ts { background: #3178c6; color: #fff; }
.fw-tab-lang.md { background: #cba6f7; color: #1e1e2e; }
.fw-tab-close {
    font-size: 14px;
    opacity: 0.4;
    margin-left: 2px;
}
.fw-tab:hover .fw-tab-close { opacity: 1; }
.fw-tab-spacer { flex: 1; background: transparent; }

.fw-window-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #181825;
    border-bottom: 1px solid #313244;
}
.fw-window-bar .dot {
    width: 12px; height: 12px; border-radius: 50%;
}
.fw-window-bar .dot.r { background: #f38ba8; }
.fw-window-bar .dot.y { background: #f9e2af; }
.fw-window-bar .dot.g { background: #a6e3a1; }
.fw-window-bar .title {
    margin-left: 8px;
    font-size: 12px;
    color: #cdd6f4;
    font-weight: 600;
    font-family: var(--font);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fw-window-bar .fw-breadcrumb {
    margin-left: auto;
    font-size: 11px;
    color: #6c7086;
    font-family: var(--font);
    white-space: nowrap;
    flex-shrink: 0;
}
.fw-window-bar .lang {
    margin-left: 12px;
    font-size: 11px;
    color: #6c7086;
    white-space: nowrap;
    flex-shrink: 0;
}

.fw-window-body {
    height: 360px;
    overflow: hidden;
    position: relative;
}
.fw-hidden { display: none !important; }
.fw-window-body.fw-scroll {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #313244 transparent;
}
.fw-window-body.fw-scroll::-webkit-scrollbar { width: 6px; }
.fw-window-body.fw-scroll::-webkit-scrollbar-thumb { background: #313244; border-radius: 3px; }

.fw-code-area {
    padding: 18px 20px;
    font-family: "SFMono-Regular", "Fira Code", "Cascadia Code", "Consolas", monospace;
    font-size: 13.5px;
    line-height: 1.75;
    color: #cdd6f4;
}
.fw-code-area .ln {
    display: inline-block;
    width: 32px;
    color: #45475a;
    user-select: none;
    text-align: right;
    margin-right: 16px;
}
.fw-code-area .kw  { color: #cba6f7; }
.fw-code-area .fn  { color: #89b4fa; }
.fw-code-area .str { color: #a6e3a1; }
.fw-code-area .num { color: #fab387; }
.fw-code-area .com { color: #6c7086; font-style: italic; }
.fw-code-area .ty  { color: #f9e2af; }
.fw-code-area .op  { color: #f5c2e7; }

.fw-cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: #f5e0dc;
    vertical-align: text-bottom;
    margin-left: 2px;
    animation: fw-blink 1s steps(2) infinite;
}
@keyframes fw-blink { 50% { opacity: 0; } }

/* 文档主题 */
.fw-doc-area {
    padding: 28px 32px;
    color: #cdd6f4;
    font-size: 14.5px;
    line-height: 1.8;
}
.fw-doc-area h2 { font-size: 20px; font-weight: 700; margin-bottom: 14px; color: #cdd6f4; }
.fw-doc-area h3 { font-size: 16px; font-weight: 600; margin: 18px 0 8px; color: #cba6f7; }
.fw-doc-area p { margin-bottom: 12px; color: #a6adc8; }
.fw-doc-area ul { margin: 0 0 14px 20px; color: #a6adc8; }
.fw-doc-area li { margin-bottom: 6px; }
.fw-doc-area .meta { font-size: 12px; color: #6c7086; margin-bottom: 20px; padding-bottom: 14px; border-bottom: 1px solid #313244; }

/* 表格主题 */
.fw-sheet {
    padding: 0;
    color: #cdd6f4;
}
.fw-sheet-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: #181825;
    border-bottom: 1px solid #313244;
    font-size: 12px;
    color: #6c7086;
}
.fw-sheet-bar .cell-ref {
    background: #313244;
    padding: 2px 10px;
    border-radius: 4px;
    font-family: monospace;
    color: #cdd6f4;
}
.fw-sheet-bar .spacer { margin-left: auto; }
.fw-sheet table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.fw-sheet th, .fw-sheet td {
    border: 1px solid #313244;
    padding: 6px 10px;
    text-align: left;
    white-space: nowrap;
}
.fw-sheet th {
    background: #181825;
    color: #6c7086;
    font-weight: 600;
    font-size: 11px;
    text-align: center;
}
.fw-sheet .row-num {
    background: #181825;
    color: #6c7086;
    text-align: center;
    width: 36px;
}
.fw-sheet .selected {
    background: rgba(137,180,250,0.12);
    outline: 2px solid #89b4fa;
    outline-offset: -2px;
}
.fw-sheet .num-align { text-align: right; font-family: monospace; }
.fw-sheet .sum-row { font-weight: 700; background: rgba(203,166,247,0.08); }

/* 开会主题（视频会议） */
.fw-meeting-area {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    background: #181825;
    color: #cdd6f4;
    font-size: 13px;
}
.fw-meeting-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px 14px;
    border-bottom: 1px solid #313244;
    background: #1e1e2e;
    flex-shrink: 0;
}
.fw-meeting-title { font-weight: 600; color: #cdd6f4; display: flex; align-items: center; gap: 8px; }
.fw-meeting-rec {
    font-style: normal;
    font-size: 10px;
    font-weight: 700;
    color: #f38ba8;
    border: 1px solid rgba(243,139,168,0.5);
    border-radius: 4px;
    padding: 1px 6px;
    letter-spacing: 1px;
}
.fw-meeting-time { font-size: 11px; color: #6c7086; white-space: nowrap; }
.fw-meeting-main {
    display: flex;
    gap: 10px;
    padding: 10px 14px;
    flex: 1;
    min-height: 0;
}
/* 共享屏幕大画面 */
.fw-meeting-share {
    position: relative;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: #11111b;
    border: 1px solid #313244;
    border-radius: 8px;
    overflow: hidden;
}
.fw-meeting-share-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 10px;
    font-size: 11px;
    color: #a6adc8;
    background: rgba(30,30,46,0.9);
    border-bottom: 1px solid #313244;
}
.fw-meeting-share-name { color: #6c7086; font-size: 10px; }
.fw-meeting-share-body {
    flex: 1;
    min-height: 0;
    padding: 12px 16px;
    display: flex;
    align-items: flex-start;
}
.fw-share-doc {
    width: 100%;
    font-size: 11px;
    line-height: 1.7;
    color: #a6adc8;
    position: relative;
}
.fw-share-line { margin-bottom: 3px; }
.fw-share-title { font-size: 13px; font-weight: 700; color: #cdd6f4; margin-bottom: 8px; }
.fw-share-h { color: #cba6f7; font-weight: 600; margin-top: 6px; }
.fw-share-cursor {
    position: absolute;
    right: 0;
    bottom: -4px;
    font-size: 10px;
    color: #89b4fa;
    background: rgba(137,180,250,0.12);
    padding: 1px 8px;
    border-radius: 4px;
}
/* 自己小窗（悬浮） */
.fw-meeting-self-window {
    position: absolute;
    right: 8px;
    bottom: 8px;
    width: 96px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 6px;
    background: rgba(17,17,27,0.92);
    border: 1px solid #89b4fa;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
.fw-meeting-self-window .fw-meeting-avatar { font-size: 22px; }
.fw-meeting-self-window .fw-meeting-name { font-size: 11px; color: #cdd6f4; }
.fw-meeting-self-window .fw-meeting-tag {
    position: static;
    font-size: 9px;
    color: #a6e3a1;
    font-style: normal;
    padding: 1px 8px;
    border-radius: 4px;
    background: rgba(166,227,161,0.1);
}
/* 成员列表列 */
.fw-meeting-members {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 116px;
    flex-shrink: 0;
    overflow-y: auto;
}
.fw-meeting-cell {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #11111b;
    border: 1px solid #313244;
    border-radius: 8px;
    padding: 8px 10px;
}
.fw-meeting-cell.on { background: #1e1e2e; }
.fw-meeting-cell .fw-meeting-avatar { font-size: 18px; }
.fw-meeting-cell .fw-meeting-name { flex: 1; font-size: 11px; color: #a6adc8; }
.fw-mic { font-style: normal; font-size: 11px; }
.fw-mic.off { opacity: 0.6; }
/* 聊天 */
.fw-meeting-chat {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px 8px;
    flex-shrink: 0;
}
.fw-meeting-msgs {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: #1e1e2e;
    border: 1px solid #313244;
    border-radius: 6px;
    padding: 6px 10px;
    overflow: hidden;
}
.fw-meeting-msg {
    font-size: 11px;
    color: #a6adc8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fw-meeting-msg b { color: #cba6f7; font-weight: 600; }
.fw-meeting-input {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    background: #181825;
    border: 1px solid #313244;
    border-radius: 16px;
    padding: 4px 4px 4px 10px;
}
.fw-meeting-input-ph { font-size: 11px; color: #6c7086; white-space: nowrap; }
.fw-meeting-send {
    border: none;
    background: #89b4fa;
    color: #11111b;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 11px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}
/* 控制条 */
.fw-meeting-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 14px;
    border-top: 1px solid #313244;
    background: #1e1e2e;
    flex-shrink: 0;
}
.fw-meeting-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #313244;
    background: #313244;
    color: #cdd6f4;
    font-size: 13px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    font-family: var(--font);
}
.fw-meeting-btn:hover { background: #45475a; }
.fw-meeting-btn.active { background: rgba(137,180,250,0.2); border-color: #89b4fa; }
.fw-meeting-btn.fw-meeting-leave { background: #f38ba8; border-color: #f38ba8; color: #11111b; }
.fw-meeting-bar-time { font-size: 11px; color: #6c7086; font-variant-numeric: tabular-nums; }

/* 写周报主题 */
.fw-report-area {
    padding: 20px 28px 32px;
    color: #cdd6f4;
    font-size: 14px;
    line-height: 1.8;
    min-height: 100%;
}
.fw-report-toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    margin-bottom: 16px;
    background: #1e1e2e;
    border: 1px solid #313244;
    border-radius: 8px;
    position: sticky;
    top: 0;
    z-index: 2;
}
.fw-report-tb-item {
    font-size: 12px;
    color: #a6adc8;
    padding: 2px 8px;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
}
.fw-report-tb-item:hover { background: #313244; color: #cdd6f4; }
.fw-report-tb-item:first-child { font-weight: 800; }
.fw-report-tb-sep { width: 1px; height: 16px; background: #313244; }
.fw-report-tb-right { margin-left: auto; color: #6c7086; font-size: 11px; }
.fw-report-area h2 { font-size: 19px; font-weight: 700; margin-bottom: 10px; color: #cdd6f4; }
.fw-report-area h3 { font-size: 15px; font-weight: 600; margin: 16px 0 6px; color: #cba6f7; }
.fw-report-area ul { margin: 0 0 10px 20px; color: #a6adc8; }
.fw-report-area li { margin-bottom: 5px; }
.fw-report-area .meta { font-size: 12px; color: #6c7086; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid #313244; }
.fw-report-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    margin: 4px 0 10px;
    background: #1e1e2e;
    border: 1px solid #313244;
    border-radius: 8px;
    overflow: hidden;
}
.fw-report-table th, .fw-report-table td {
    border-bottom: 1px solid #313244;
    padding: 6px 10px;
    text-align: left;
    color: #a6adc8;
}
.fw-report-table th { color: #6c7086; font-weight: 600; font-size: 11px; background: #181825; }
.fw-report-table tr:last-child td { border-bottom: none; }
.fw-progress {
    display: inline-block;
    width: 56px;
    height: 6px;
    background: #313244;
    border-radius: 3px;
    margin-right: 6px;
    vertical-align: middle;
    overflow: hidden;
}
.fw-progress i {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #89b4fa, #a6e3a1);
    border-radius: 3px;
}

/* 看报表主题（数据看板） */
.fw-dashboard-area {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 14px;
    background: #181825;
    color: #cdd6f4;
    font-size: 13px;
    height: 100%;
    min-height: 0;
}
.fw-dash-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    font-size: 14px;
}
.fw-dash-range { font-size: 11px; font-weight: 400; color: #6c7086; }
.fw-dash-filter {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.fw-dash-chip {
    font-size: 11px;
    color: #a6adc8;
    background: #1e1e2e;
    border: 1px solid #313244;
    border-radius: 20px;
    padding: 3px 12px;
    cursor: pointer;
    white-space: nowrap;
}
.fw-dash-chip.active { background: rgba(137,180,250,0.16); border-color: #89b4fa; color: #89b4fa; }
.fw-dash-chip.fw-dash-export { color: #6c7086; }
.fw-dash-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.fw-dash-kpi {
    background: #1e1e2e;
    border: 1px solid #313244;
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.fw-dash-kpi b { font-size: 17px; font-family: monospace; color: #f9e2af; }
.fw-dash-kpi span { font-size: 11px; color: #6c7086; }
.fw-dash-kpi em {
    font-style: normal;
    font-size: 11px;
}
.fw-dash-kpi em.up { color: #a6e3a1; }
.fw-dash-kpi em.down { color: #f38ba8; }
.fw-dash-chart {
    background: #1e1e2e;
    border: 1px solid #313244;
    border-radius: 8px;
    padding: 10px 12px;
    flex: 1;
    min-height: 0;
}
.fw-dash-chart-title {
    font-size: 12px;
    color: #a6adc8;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.fw-dash-legend { font-style: normal; font-size: 10px; color: #6c7086; }
.fw-dash-line {
    display: block;
    width: 100%;
    height: 78px;
}
.fw-line-this {
    fill: none;
    stroke: #89b4fa;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.fw-line-last {
    fill: none;
    stroke: #6c7086;
    stroke-width: 1.5;
    stroke-dasharray: 4 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.fw-dash-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
    background: #1e1e2e;
    border: 1px solid #313244;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}
.fw-dash-table th, .fw-dash-table td {
    border-bottom: 1px solid #313244;
    padding: 6px 12px;
    text-align: left;
}
.fw-dash-table th { color: #6c7086; font-weight: 600; font-size: 11px; background: #181825; }
.fw-dash-table tr:last-child td { border-bottom: none; }
.fw-dash-table .up { color: #a6e3a1; }
.fw-dash-table .down { color: #f38ba8; }

/* ---- 主题切换器 ---- */
.fw-switcher {
    display: flex;
    gap: 6px;
    padding: 10px 12px;
    background: #181825;
    border-top: 1px solid #313244;
}
.fw-switcher-btn {
    flex: 1;
    padding: 8px 14px;
    border-radius: 8px;
    background: transparent;
    color: #6c7086;
    font-size: 13px;
    font-weight: 500;
    font-family: var(--font);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}
.fw-switcher-btn:hover { background: #313244; color: #cdd6f4; }
.fw-switcher-btn.active {
    background: #313244;
    color: #cdd6f4;
}
/* 退出模式按钮：仅沉浸模式显示，红色强调 */
.fw-switcher-exit {
    display: none;
    flex: 0 0 auto;
    color: #f38ba8;
}
body.fw-active .fw-switcher-exit { display: flex; }
.fw-switcher-exit:hover {
    background: rgba(243, 139, 168, 0.14);
    color: #f38ba8;
}

/* ---- 状态栏 ---- */
.fw-statusbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 16px;
    background: #181825;
    border-top: 1px solid #313244;
    font-size: 11px;
    color: #6c7086;
    font-family: var(--font);
}
.fw-sb-left, .fw-sb-right { display: flex; align-items: center; gap: 8px; }
.fw-sb-left span, .fw-sb-right span { white-space: nowrap; flex-shrink: 0; }
.fw-sb-sep { color: #45475a; }
.fw-edit-state { color: var(--c-accent-green); font-weight: 600; }
.fw-edit-state.typing { color: #f9e2af; }

/* ---- 可编辑区域 ---- */
.fw-code-area[contenteditable]:focus,
.fw-doc-area[contenteditable]:focus {
    outline: none;
    background: rgba(137,180,250,0.02);
}
.fw-code-area[contenteditable]:focus .fw-cursor,
.fw-doc-area[contenteditable]:focus .fw-cursor {
    animation: fw-blink 0.8s steps(2) infinite;
}
.fw-code-area[data-placeholder]:empty::before {
    content: attr(data-placeholder);
    color: #45475a;
}

/* ---- 表格操作按钮 ---- */
.fw-sheet-btn {
    padding: 4px 10px;
    border-radius: 6px;
    background: #313244;
    color: #cdd6f4;
    font-size: 12px;
    font-weight: 500;
    font-family: var(--font);
    cursor: pointer;
    border: none;
    transition: all 0.15s;
    margin-left: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}
.fw-sheet-btn:hover { background: #45475a; }
.fw-sheet td[contenteditable]:focus {
    outline: 2px solid #89b4fa;
    outline-offset: -2px;
    background: rgba(137,180,250,0.08);
}

/* ---- 痛点共鸣区 ---- */
.fw-painpoints {
    padding: 52px 0;
    border-top: 1px solid var(--c-border);
}
.fw-painpoints-head { text-align: center; margin-bottom: 32px; }
.fw-painpoints-head h2 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 8px;
}
.fw-painpoints-head p { color: var(--c-text-sub); font-size: 15px; }

.fw-painpoint-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.fw-painpoint {
    padding: 24px 20px;
    border-radius: var(--radius-md);
    background: var(--c-bg-soft);
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
}
.fw-painpoint:hover {
    background: #fff;
    box-shadow: var(--shadow-md);
    transform: translateY(-4px);
}
.fw-painpoint .emoji {
    font-size: 32px;
    margin-bottom: 12px;
    display: block;
    transition: transform 0.3s;
}
.fw-painpoint:hover .emoji { transform: scale(1.15); }
.fw-painpoint h3 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
}
.fw-painpoint p {
    font-size: 13px;
    color: var(--c-text-muted);
    line-height: 1.6;
}

/* ---- 沉浸模式：窗口全屏化 ---- */
body.fw-active { overflow: hidden; background: #1e1e2e; }
/* 不隐藏 .detail-wrap 整体，否则 position:fixed 的 #fwHero 会被一同隐藏 */
body.fw-active .detail-wrap,
body.fw-active .detail-wrap > .container {
    display: block;
    max-width: none;
    margin: 0;
    padding: 0;
    background: #1e1e2e;
}
body.fw-active .detail-breadcrumb,
body.fw-active .fw-painpoints,
body.fw-active .detail-tabs,
body.fw-active .tab-panel,
body.fw-active .back-to-top,
body.fw-active .stealth-toggle { display: none !important; }
body.fw-active #fwHero {
    position: fixed;
    inset: 0;
    z-index: 10000;
    grid-template-columns: 1fr;
    padding: 0;
    margin: 0;
    background: #1e1e2e;
    align-items: stretch;
    animation: fw-enter 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes fw-enter {
    from { opacity: 0.4; transform: scale(0.99); }
    to   { opacity: 1; transform: scale(1); }
}
body.fw-active .fw-hero-left { display: none; }
body.fw-active .fw-window {
    border-radius: 0;
    height: calc(100vh - 56px);
    box-shadow: none;
}
body.fw-active .fw-sidebar { width: 240px; }
body.fw-active .fw-window-bar { padding: 8px 18px; }
body.fw-active .fw-window-body { flex: 1; height: auto; }
body.fw-active .fw-statusbar { font-size: 12px; padding: 6px 18px; }

/* ---- Minimap 迷你地图 ---- */
.fw-window-body { position: relative; }
.fw-minimap {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 64px;
    background: rgba(24, 24, 36, 0.85);
    border-left: 1px solid #313244;
    overflow: hidden;
    z-index: 3;
    pointer-events: none;
}
.fw-minimap[hidden] { display: none; }
.fw-minimap-thumb {
    transform-origin: top left;
    font-family: "SFMono-Regular", "Consolas", monospace;
    font-size: 2px;
    line-height: 3px;
    color: #6c7086;
    white-space: pre;
    padding: 4px 2px;
    opacity: 0.85;
}
.fw-minimap-viewport {
    position: absolute;
    left: 0;
    right: 0;
    background: rgba(137, 180, 250, 0.12);
    border-top: 1px solid rgba(137, 180, 250, 0.35);
    border-bottom: 1px solid rgba(137, 180, 250, 0.35);
    transition: top 0.15s, height 0.15s;
}

/* ---- 当前行高亮 ---- */
.fw-code-area { padding-right: 70px; }
.fw-code-area .ln { z-index: 2; position: relative; }
.fw-code-area::before {
    content: "";
    position: absolute;
    left: 0;
    right: 64px;
    height: 22px;
    top: 18px;
    background: rgba(137, 180, 250, 0.06);
    border-left: 2px solid rgba(137, 180, 250, 0.45);
    pointer-events: none;
    z-index: 0;
    transition: top 0.08s ease;
}

/* ---- 底部终端面板 ---- */
.fw-terminal {
    background: #181825;
    border-top: 1px solid #313244;
    height: 168px;
    display: flex;
    flex-direction: column;
}
.fw-terminal[hidden] { display: none; }
.fw-terminal-head {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 6px 14px;
    border-bottom: 1px solid #11111b;
    font-size: 11px;
    color: #6c7086;
}
.fw-term-tab {
    padding: 4px 8px;
    cursor: pointer;
    color: #6c7086;
    border-bottom: 1px solid transparent;
}
.fw-term-tab:hover { color: #cdd6f4; }
.fw-term-tab.active {
    color: #cdd6f4;
    border-bottom-color: #89b4fa;
}
.fw-term-meta { font-family: monospace; }
.fw-term-actions {
    margin-left: auto;
    display: flex;
    gap: 10px;
}
.fw-term-action {
    cursor: pointer;
    color: #6c7086;
    transition: color 0.15s;
}
.fw-term-action:hover { color: #cdd6f4; }
.fw-terminal-body {
    flex: 1;
    overflow-y: auto;
    padding: 8px 14px;
    font-family: "SFMono-Regular", "Consolas", monospace;
    font-size: 12px;
    line-height: 1.7;
    color: #a6adc8;
    scrollbar-width: thin;
    scrollbar-color: #313244 transparent;
}
.fw-terminal-body::-webkit-scrollbar { width: 6px; }
.fw-terminal-body::-webkit-scrollbar-thumb { background: #313244; border-radius: 3px; }
.fw-term-line { white-space: pre-wrap; word-break: break-word; }
.fw-term-prompt { color: #a6e3a1; font-weight: 600; margin-right: 6px; }
.fw-term-ok { color: #a6e3a1; margin-right: 6px; }
.fw-term-warn { color: #f9e2af; margin-right: 6px; }
.fw-term-info { color: #89b4fa; margin-right: 6px; }
.fw-term-err { color: #f38ba8; margin-right: 6px; }
.fw-term-caret {
    display: inline-block;
    width: 7px;
    height: 14px;
    background: #cdd6f4;
    vertical-align: text-bottom;
    animation: fw-blink 1s steps(2) infinite;
}

/* ---- 状态栏新增 ---- */
.fw-sb-branch { color: #a6e3a1; font-weight: 600; }
.fw-sb-err { color: #f38ba8; cursor: pointer; }
.fw-sb-warn { color: #f9e2af; cursor: pointer; margin-right: 4px; }
.fw-sb-help {
    cursor: pointer;
    color: #6c7086;
    padding: 0 4px;
    transition: color 0.15s;
}
.fw-sb-help:hover { color: #cdd6f4; }

/* ---- 快捷键帮助面板 ---- */
.fw-help-modal {
    position: fixed;
    inset: 0;
    z-index: 10011;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fw-fade 0.2s ease;
}
.fw-help-modal[hidden] { display: none; }
.fw-help-box {
    width: min(720px, 92vw);
    max-height: 86vh;
    overflow-y: auto;
    background: #1e1e2e;
    border: 1px solid #313244;
    border-radius: 12px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
    padding: 28px 32px;
    color: #cdd6f4;
}
.fw-help-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid #313244;
}
.fw-help-head h2 { font-size: 18px; font-weight: 700; color: #cdd6f4; margin: 0; }
.fw-help-close {
    background: transparent;
    border: none;
    color: #6c7086;
    font-size: 24px;
    cursor: pointer;
    line-height: 1;
    padding: 0 4px;
    transition: color 0.15s;
}
.fw-help-close:hover { color: #cdd6f4; }
.fw-help-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.fw-help-section h3 {
    font-size: 13px;
    font-weight: 700;
    color: #89b4fa;
    margin: 0 0 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.fw-help-section ul { list-style: none; margin: 0; padding: 0; }
.fw-help-section li {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    font-size: 13px;
    color: #a6adc8;
}
.fw-help-section li span { flex: 1; min-width: 0; }
.fw-help-section kbd {
    display: inline-block;
    padding: 2px 8px;
    background: #313244;
    border: 1px solid #45475a;
    border-radius: 4px;
    color: #cdd6f4;
    font-family: "SFMono-Regular", "Consolas", monospace;
    font-size: 11px;
    font-weight: 600;
    min-width: 22px;
    text-align: center;
}
.fw-help-foot {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #313244;
    color: #6c7086;
    font-size: 12px;
    text-align: center;
}

/* ---- Toast ---- */
.fw-toast {
    position: fixed;
    top: 28px;
    right: 28px;
    z-index: 10020;
    padding: 12px 20px;
    background: #1e1e2e;
    border: 1px solid #313244;
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    color: #cdd6f4;
    font-size: 13px;
    font-family: var(--font);
    display: flex;
    align-items: center;
    gap: 8px;
    animation: fw-toast-in 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.fw-toast[hidden] { display: none; }
.fw-toast.fw-toast-out { animation: fw-toast-out 0.25s ease forwards; }
.fw-toast .fw-toast-icon { color: #a6e3a1; }
@keyframes fw-toast-in {
    from { opacity: 0; transform: translateY(-12px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes fw-toast-out {
    from { opacity: 1; transform: translateY(0) scale(1); }
    to   { opacity: 0; transform: translateY(-12px) scale(0.95); }
}

/* ---- 沉浸模式终端撑满高度 ---- */
body.fw-active .fw-terminal { flex: 0 0 200px; }

/* ---- 响应式 ---- */
@media (max-width: 1100px) {
    .fw-menubar .fw-menu-item:nth-child(n+5) { display: none; }
    .fw-help-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .fw-hero {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 36px 0 36px;
    }
    .fw-hero-left { max-width: none; }
    .fw-hero h1 { font-size: 30px; }
    .fw-window-body { height: 300px; }
    .fw-painpoint-grid { grid-template-columns: repeat(2, 1fr); }
    .fw-sidebar { width: 160px; }
    .fw-tree { font-size: 12px; }
    .fw-menubar { display: none; }
    .fw-tabs { display: none; }
    .fw-window-bar .fw-breadcrumb { display: none; }
    .fw-minimap { display: none; }
    .fw-code-area { padding-right: 20px; }
    .fw-code-area::before { right: 0; }
    .fw-terminal { height: 140px; }
}
@media (max-width: 600px) {
    .fw-hero h1 { font-size: 26px; }
    .fw-story { font-size: 14px; }
    .fw-code-area { font-size: 12px; padding: 14px 16px; }
    .fw-window-body { height: 280px; }
    .fw-painpoint-grid { grid-template-columns: 1fr; }
    .fw-activity-bar { width: 40px; }
    .fw-activity-icon { width: 28px; height: 28px; font-size: 14px; }
    .fw-activity-logo { display: none; }
    .fw-sidebar { width: 120px; }
    .fw-toast { top: 12px; right: 12px; left: 12px; }
}
