/* 营地说明书 · 开营试炼（游戏化加强版） */
.tm-guide-body {
    min-height: 100vh;
    padding: 16px 12px calc(48px + env(safe-area-inset-bottom, 0px));
    background:
        radial-gradient(ellipse 80% 50% at 20% 0%, rgba(245, 166, 35, 0.22), transparent 55%),
        radial-gradient(ellipse 70% 45% at 90% 10%, rgba(102, 126, 234, 0.28), transparent 50%),
        linear-gradient(155deg, #667eea 0%, #764ba2 45%, #5b4d9a 100%);
}
html[data-tm-ui="dark"] .tm-guide-body {
    background:
        radial-gradient(ellipse 70% 40% at 15% 0%, rgba(212, 175, 55, 0.16), transparent 55%),
        radial-gradient(ellipse 60% 40% at 85% 5%, rgba(93, 173, 226, 0.18), transparent 50%),
        linear-gradient(155deg, #0f1419 0%, #1a2436 40%, #2a1f3d 100%);
}
html[data-tm-ui="rpg"] .tm-guide-body {
    background:
        radial-gradient(ellipse 70% 40% at 20% 0%, rgba(212, 168, 75, 0.25), transparent 55%),
        linear-gradient(145deg, #2e86ab 0%, #5d4e75 45%, #d4a84b 120%);
}
.tm-guide-shell { max-width: 1120px; margin: 0 auto; }

.tm-guide-hero {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: stretch;
    margin-bottom: 14px;
}
.tm-guide-hero-main {
    color: #fff;
}
.tm-guide-hero-main h1 {
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    font-weight: 800;
    margin: 0 0 6px;
    letter-spacing: 0.02em;
}
.tm-guide-hero-main p {
    margin: 0;
    opacity: 0.92;
    font-size: 14px;
    line-height: 1.5;
    max-width: 40em;
}
.tm-guide-top-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}
.tm-guide-top-links a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    touch-action: manipulation;
}
.tm-guide-top-links a:hover { background: rgba(255, 255, 255, 0.28); color: #fff; }
.tm-guide-top-links a.tm-guide-back-btn {
    background: rgba(255, 255, 255, 0.92);
    color: #1f3a5f;
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}
.tm-guide-top-links a.tm-guide-back-btn:hover {
    background: #fff;
    color: #152a45;
}

.tm-guide-xp-board {
    min-width: 200px;
    border-radius: 14px;
    padding: 12px 14px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(245, 166, 35, 0.45);
    color: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}
.tm-guide-xp-board .tm-guide-xp-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    opacity: 0.85;
    margin-bottom: 4px;
}
.tm-guide-xp-board .tm-guide-xp-val {
    font-size: 22px;
    font-weight: 800;
    color: #f5d76e;
    margin-bottom: 8px;
}
.tm-guide-xp-track {
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    overflow: hidden;
}
.tm-guide-xp-fill {
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, #f5a623, #f5d76e);
    transition: width 0.45s ease;
}

.tm-guide-priest {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 14px;
}
.tm-guide-priest-avatar {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    background: linear-gradient(145deg, #f5d76e, #c47a00);
    color: #2a1f0a;
    border: 3px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}
.tm-guide-priest-bubble {
    flex: 1;
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    color: #2a3142;
    border-radius: 14px;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.5;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}
html[data-tm-ui="dark"] .tm-guide-priest-bubble {
    background: rgba(26, 32, 44, 0.96);
    color: #e8f0fc;
}
.tm-guide-priest-bubble::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 16px;
    border: 8px solid transparent;
    border-right-color: rgba(255, 255, 255, 0.95);
}
html[data-tm-ui="dark"] .tm-guide-priest-bubble::before {
    border-right-color: rgba(26, 32, 44, 0.96);
}
.tm-guide-priest-bubble strong { color: #c47a00; }
html[data-tm-ui="dark"] .tm-guide-priest-bubble strong { color: #f5d76e; }

.tm-guide-card {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 16px;
    padding: 16px 16px 14px;
    margin-bottom: 14px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.55);
    position: relative;
}
html[data-tm-ui="dark"] .tm-guide-card {
    background: linear-gradient(165deg, rgba(26, 32, 44, 0.96) 0%, rgba(20, 26, 36, 0.98) 100%);
    border-color: rgba(212, 168, 75, 0.28);
    color: #e8f0fc;
}
html[data-tm-ui="rpg"] .tm-guide-card {
    background: rgba(255, 252, 245, 0.96);
    border-color: rgba(212, 168, 75, 0.4);
}
.tm-guide-card.is-quest {
    border: 2px solid rgba(245, 166, 35, 0.55);
    background-image: linear-gradient(180deg, rgba(245, 166, 35, 0.08), transparent 48px);
}
html[data-tm-ui="dark"] .tm-guide-card.is-quest {
    border-color: rgba(212, 175, 55, 0.5);
}

.tm-guide-section-title {
    font-size: 15px;
    font-weight: 800;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.tm-guide-section-title .tm-guide-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
    background: rgba(245, 166, 35, 0.2);
    color: #c47a00;
}

.tm-guide-path {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.tm-guide-path-item {
    border: 1px solid var(--border-color, #e2e6ef);
    border-radius: 14px;
    padding: 12px 10px;
    background: rgba(102, 126, 234, 0.04);
    cursor: pointer;
    text-align: left;
    touch-action: manipulation;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
    color: inherit;
    width: 100%;
    position: relative;
    overflow: hidden;
}
.tm-guide-path-item:hover { border-color: rgba(102, 126, 234, 0.45); }
.tm-guide-path-item.is-active {
    border-color: rgba(245, 166, 35, 0.75);
    box-shadow: 0 0 0 2px rgba(245, 166, 35, 0.2);
    transform: translateY(-2px);
}
.tm-guide-path-item.is-done {
    border-color: rgba(40, 167, 69, 0.5);
}
.tm-guide-path-item.is-done::after {
    content: '已通关';
    position: absolute;
    top: 8px;
    right: -18px;
    font-size: 9px;
    font-weight: 800;
    color: #fff;
    background: #28a745;
    padding: 2px 22px;
    transform: rotate(35deg);
}
.tm-guide-path-num {
    display: inline-flex;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    background: rgba(102, 126, 234, 0.15);
    margin-bottom: 6px;
}
.tm-guide-path-item.is-done .tm-guide-path-num {
    background: rgba(40, 167, 69, 0.2);
    color: #28a745;
}
.tm-guide-path-item strong { display: block; font-size: 13px; margin-bottom: 4px; }
.tm-guide-path-item span { font-size: 12px; opacity: 0.82; line-height: 1.35; display: block; }

/* 可点关联链 */
.tm-guide-chain {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 0 4px;
}
.tm-guide-chain-node {
    border: 2px solid rgba(102, 126, 234, 0.35);
    background: var(--card-background, #fff);
    border-radius: 12px;
    padding: 10px 12px;
    min-width: 88px;
    cursor: pointer;
    touch-action: manipulation;
    font-size: 12px;
    font-weight: 700;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s, background 0.2s;
}
html[data-tm-ui="dark"] .tm-guide-chain-node {
    background: rgba(16, 22, 32, 0.9);
}
.tm-guide-chain-node i { display: block; font-size: 16px; margin-bottom: 4px; color: var(--primary-color, #667eea); }
.tm-guide-chain-node.is-active,
.tm-guide-chain-node.is-lit {
    border-color: #f5a623;
    box-shadow: 0 0 0 3px rgba(245, 166, 35, 0.25), 0 8px 20px rgba(245, 166, 35, 0.15);
    transform: scale(1.04);
    background: rgba(245, 166, 35, 0.12);
}
.tm-guide-chain-node.is-dim { opacity: 0.4; transform: scale(0.96); }
.tm-guide-chain-arrow {
    font-size: 14px;
    font-weight: 800;
    color: rgba(245, 166, 35, 0.85);
    opacity: 0.55;
    transition: opacity 0.2s, color 0.2s;
}
.tm-guide-chain-arrow.is-lit {
    opacity: 1;
    color: #f5a623;
    animation: tmGuidePulse 1s ease infinite;
}
@keyframes tmGuidePulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}
.tm-guide-chain-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin-top: 12px;
}
.tm-guide-chain-hint {
    text-align: center;
    font-size: 12px;
    opacity: 0.8;
    margin: 8px 0 0;
    min-height: 1.4em;
}

.tm-guide-layout {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 14px;
    align-items: start;
}
.tm-guide-map-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}
.tm-guide-map-tile {
    border: 1px solid var(--border-color, #e2e6ef);
    border-radius: 12px;
    padding: 12px;
    background: var(--card-background, #fff);
    cursor: pointer;
    text-align: left;
    touch-action: manipulation;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s, opacity 0.2s, transform 0.15s;
}
html[data-tm-ui="dark"] .tm-guide-map-tile {
    background: rgba(16, 22, 32, 0.88);
}
.tm-guide-map-tile:hover,
.tm-guide-map-tile.is-active {
    border-color: rgba(102, 126, 234, 0.55);
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.14);
}
.tm-guide-map-tile.is-related {
    border-color: rgba(245, 166, 35, 0.7);
    box-shadow: 0 0 0 2px rgba(245, 166, 35, 0.2);
    transform: translateY(-1px);
}
.tm-guide-map-tile.is-dimmed { opacity: 0.38; }
.tm-guide-map-tile i { color: var(--primary-color, #667eea); margin-right: 6px; }
.tm-guide-map-tile strong { font-size: 13px; }
.tm-guide-map-tile .tm-guide-tile-sub {
    display: block;
    font-size: 11px;
    opacity: 0.75;
    margin-top: 4px;
}
.tm-guide-adv-toggle {
    margin-top: 10px;
    font-size: 13px;
    font-weight: 700;
    border: none;
    background: transparent;
    color: var(--primary-color, #667eea);
    cursor: pointer;
    padding: 6px 0;
    touch-action: manipulation;
}
.tm-guide-adv-wrap[hidden] { display: none !important; }

.tm-guide-panel {
    border-radius: 14px;
    border: 1px solid rgba(102, 126, 234, 0.22);
    background: rgba(102, 126, 234, 0.06);
    padding: 0;
    min-height: 320px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
html[data-tm-ui="dark"] .tm-guide-panel {
    background: rgba(93, 173, 226, 0.08);
    border-color: rgba(93, 173, 226, 0.22);
}
.tm-guide-panel-head {
    padding: 14px 14px 0;
}
.tm-guide-panel-head h3 {
    font-size: 17px;
    font-weight: 800;
    margin: 0 0 6px;
}
.tm-guide-panel-one {
    font-size: 14px;
    margin: 0 0 10px;
    line-height: 1.45;
}
.tm-guide-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 0 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
html[data-tm-ui="dark"] .tm-guide-tabs {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}
.tm-guide-tab {
    border: none;
    background: transparent;
    padding: 8px 10px;
    font-size: 12px;
    font-weight: 700;
    color: inherit;
    opacity: 0.65;
    cursor: pointer;
    touch-action: manipulation;
    border-bottom: 2px solid transparent;
}
.tm-guide-tab.is-active {
    opacity: 1;
    border-bottom-color: #f5a623;
    color: #c47a00;
}
html[data-tm-ui="dark"] .tm-guide-tab.is-active { color: #f5d76e; }
.tm-guide-panel-body {
    padding: 12px 14px 14px;
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    max-height: min(52vh, 420px);
}
.tm-guide-panel-body h4 {
    font-size: 12px;
    font-weight: 800;
    margin: 10px 0 6px;
    opacity: 0.75;
}
.tm-guide-panel-body h4:first-child { margin-top: 0; }
.tm-guide-panel-body ol,
.tm-guide-panel-body ul {
    margin: 0 0 8px;
    padding-left: 1.2em;
    font-size: 13px;
    line-height: 1.5;
}
.tm-guide-panel-body li { margin-bottom: 4px; }
.tm-guide-rel-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 6px 0 10px;
}
.tm-guide-rel-chip {
    border: 1px solid rgba(245, 166, 35, 0.45);
    background: rgba(245, 166, 35, 0.1);
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    touch-action: manipulation;
    color: inherit;
}
.tm-guide-quiz {
    margin-top: 8px;
    padding: 10px;
    border-radius: 10px;
    background: rgba(245, 166, 35, 0.08);
    border: 1px dashed rgba(245, 166, 35, 0.4);
}
.tm-guide-quiz p {
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 8px;
}
.tm-guide-quiz-opts {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.tm-guide-quiz-opts button {
    text-align: left;
    border: 1px solid var(--border-color, #ddd);
    background: var(--card-background, #fff);
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 13px;
    cursor: pointer;
    touch-action: manipulation;
    color: inherit;
}
html[data-tm-ui="dark"] .tm-guide-quiz-opts button {
    background: rgba(16, 22, 32, 0.9);
}
.tm-guide-quiz-opts button.is-correct {
    border-color: #28a745;
    background: rgba(40, 167, 69, 0.12);
}
.tm-guide-quiz-opts button.is-wrong {
    border-color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}
.tm-guide-quiz-feedback {
    font-size: 12px;
    margin-top: 8px;
    min-height: 1.3em;
}
.tm-guide-panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 14px 14px;
}
.tm-guide-panel-actions .btn {
    touch-action: manipulation;
    min-height: 40px;
}

.tm-guide-deep-block {
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px dashed rgba(245, 166, 35, 0.35);
}
.tm-guide-deep-block:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}
.tm-guide-deep-block h4 {
    color: #c47a00;
}
html[data-tm-ui="dark"] .tm-guide-deep-block h4 {
    color: #f5d76e;
}
.tm-guide-glance-one {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.45;
}
.tm-guide-glance-list {
    margin: 0 0 12px;
    padding-left: 1.2em;
    font-size: 13px;
    line-height: 1.55;
}
.tm-guide-glance-list li { margin-bottom: 6px; }
.tm-guide-glance-hint {
    font-size: 12px;
    opacity: 0.8;
    margin: 10px 0 0;
}
.tm-guide-where-label {
    font-size: 11px;
    font-weight: 800;
    opacity: 0.7;
    margin-bottom: 6px;
}
.tm-guide-where-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.tm-guide-where-chip {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 8px;
    background: rgba(102, 126, 234, 0.12);
    border: 1px solid rgba(102, 126, 234, 0.28);
}
html[data-tm-ui="dark"] .tm-guide-where-chip {
    background: rgba(93, 173, 226, 0.12);
    border-color: rgba(93, 173, 226, 0.28);
}
.tm-guide-acc-item {
    border: 1px solid rgba(245, 166, 35, 0.28);
    border-radius: 10px;
    margin-bottom: 8px;
    overflow: hidden;
    background: rgba(245, 166, 35, 0.04);
}
.tm-guide-acc-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    border: none;
    background: transparent;
    padding: 10px 12px;
    font-size: 13px;
    font-weight: 800;
    color: inherit;
    cursor: pointer;
    touch-action: manipulation;
    text-align: left;
}
.tm-guide-acc-item.is-open .tm-guide-acc-btn {
    color: #c47a00;
}
html[data-tm-ui="dark"] .tm-guide-acc-item.is-open .tm-guide-acc-btn {
    color: #f5d76e;
}
.tm-guide-acc-body {
    padding: 0 12px 10px;
    font-size: 13px;
    line-height: 1.5;
}
.tm-guide-acc-body ol {
    margin: 0;
    padding-left: 1.2em;
}
.tm-guide-acc-body li { margin-bottom: 4px; }
.tm-guide-feat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}
.tm-guide-feat-chip {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(102, 126, 234, 0.1);
    border: 1px solid rgba(102, 126, 234, 0.2);
}
html[data-tm-ui="dark"] .tm-guide-feat-chip {
    background: rgba(93, 173, 226, 0.1);
    border-color: rgba(93, 173, 226, 0.22);
}
.tm-guide-matrix-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.tm-guide-matrix-table th,
.tm-guide-matrix-table td {
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 8px 10px;
    vertical-align: top;
}
html[data-tm-ui="dark"] .tm-guide-matrix-table th,
html[data-tm-ui="dark"] .tm-guide-matrix-table td {
    border-color: rgba(255, 255, 255, 0.1);
}
.tm-guide-matrix-table th {
    font-size: 12px;
    font-weight: 800;
    background: rgba(102, 126, 234, 0.08);
    white-space: nowrap;
}
.tm-guide-matrix-name {
    border: none;
    background: transparent;
    color: var(--primary-color, #667eea);
    font-weight: 800;
    font-size: 13px;
    padding: 0;
    cursor: pointer;
    touch-action: manipulation;
    text-align: left;
}
.tm-guide-matrix-name:hover { text-decoration: underline; }
.tm-guide-chain-node {
    min-width: 100px;
    font-size: 11px;
}
@media (max-width: 900px) {
    .tm-guide-matrix-table th:nth-child(3),
    .tm-guide-matrix-table td:nth-child(3) {
        display: none;
    }
}
.tm-guide-toast-float {
    position: fixed;
    left: 50%;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%) translateY(20px);
    background: rgba(20, 28, 40, 0.94);
    color: #fff;
    padding: 10px 16px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
    z-index: 11000;
    border: 1px solid rgba(245, 166, 35, 0.45);
}
.tm-guide-toast-float.is-show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* 说明书双页切换 */
.tm-guide-page-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 12px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.18);
}
.tm-guide-page-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    touch-action: manipulation;
}
.tm-guide-page-tab:hover { color: #fff; background: rgba(255, 255, 255, 0.12); }
.tm-guide-page-tab.is-active {
    color: #1a1a2e;
    background: linear-gradient(135deg, #f5d76e, #f0b429);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

.tm-guide-map-layout {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) minmax(300px, 1.1fr);
    gap: 14px;
    margin-bottom: 14px;
}
.tm-guide-page-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}
.tm-guide-filter-btn {
    border: 1px solid rgba(102, 126, 234, 0.25);
    background: rgba(102, 126, 234, 0.08);
    color: inherit;
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    touch-action: manipulation;
}
.tm-guide-filter-btn.is-active {
    background: #667eea;
    border-color: #667eea;
    color: #fff;
}
html[data-tm-ui="dark"] .tm-guide-filter-btn {
    border-color: rgba(93, 173, 226, 0.28);
    background: rgba(93, 173, 226, 0.1);
}
html[data-tm-ui="dark"] .tm-guide-filter-btn.is-active {
    background: #5dade2;
    border-color: #5dade2;
    color: #0f1419;
}
.tm-guide-page-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: min(70vh, 640px);
    overflow: auto;
    padding-right: 2px;
}
.tm-guide-page-item {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    gap: 10px;
    align-items: center;
    text-align: left;
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.55);
    border-radius: 12px;
    padding: 10px 12px;
    cursor: pointer;
    touch-action: manipulation;
    color: inherit;
}
html[data-tm-ui="dark"] .tm-guide-page-item {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}
.tm-guide-page-item:hover { border-color: rgba(102, 126, 234, 0.45); }
.tm-guide-page-item.is-active {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2);
    background: rgba(102, 126, 234, 0.1);
}
.tm-guide-page-item-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: rgba(102, 126, 234, 0.12);
    color: #667eea;
}
.tm-guide-page-item-main {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.tm-guide-page-item-main strong {
    font-size: 14px;
}
.tm-guide-page-item-main span {
    font-size: 11px;
    opacity: 0.72;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tm-guide-page-item-tag {
    font-size: 11px;
    font-weight: 800;
    opacity: 0.7;
}
.tm-guide-flow-board {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.tm-guide-graph-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    font-size: 12px;
    font-weight: 700;
    opacity: 0.85;
}
.tm-guide-graph-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.tm-guide-graph-legend i {
    display: inline-block;
    width: 22px;
    height: 3px;
    border-radius: 2px;
}
.tm-guide-graph-legend .lg-core i {
    background: #f0b429;
}
.tm-guide-graph-legend .lg-loop i {
    background: #667eea;
    opacity: 0.85;
}
.tm-guide-graph-legend .lg-wing i {
    background: rgba(120, 130, 150, 0.65);
    background-image: repeating-linear-gradient(90deg, transparent, transparent 3px, rgba(255,255,255,0.5) 3px, rgba(255,255,255,0.5) 6px);
}
.tm-guide-graph-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 1000 / 560;
    border-radius: 14px;
    border: 1px solid rgba(102, 126, 234, 0.22);
    background:
        radial-gradient(ellipse 50% 40% at 50% 45%, rgba(240, 180, 41, 0.08), transparent 70%),
        rgba(255, 255, 255, 0.35);
    overflow: hidden;
}
html[data-tm-ui="dark"] .tm-guide-graph-stage {
    background:
        radial-gradient(ellipse 50% 40% at 50% 45%, rgba(212, 175, 55, 0.08), transparent 70%),
        rgba(0, 0, 0, 0.18);
    border-color: rgba(93, 173, 226, 0.22);
}
.tm-guide-graph-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.tm-guide-graph-hits {
    pointer-events: stroke;
}
.tm-guide-graph-edge {
    stroke-width: 2.2;
    stroke-linecap: round;
    transition: stroke 0.15s, stroke-width 0.15s, opacity 0.15s;
}
.tm-guide-graph-edge.lane-core {
    stroke: #f0b429;
    stroke-width: 2.8;
}
.tm-guide-graph-edge.lane-loop {
    stroke: #667eea;
    stroke-width: 2.2;
}
.tm-guide-graph-edge.lane-wing {
    stroke: rgba(120, 130, 150, 0.45);
    stroke-width: 1.4;
    stroke-dasharray: 5 4;
    opacity: 0.35;
}
html[data-tm-ui="dark"] .tm-guide-graph-edge.lane-loop { stroke: #5dade2; }
html[data-tm-ui="dark"] .tm-guide-graph-edge.lane-wing { stroke: rgba(160, 175, 195, 0.4); }
.tm-guide-graph-edge.is-dimmed { opacity: 0.08 !important; }
.tm-guide-graph-edge.is-related {
    opacity: 1 !important;
    stroke-width: 3.2;
}
.tm-guide-graph-edge.lane-wing.is-related {
    stroke: rgba(120, 130, 150, 0.95);
    stroke-dasharray: 5 4;
}
.tm-guide-graph-edge.is-hot {
    opacity: 1;
    stroke: #e67e22;
    stroke-width: 3.4;
}
.tm-guide-graph-edge-hit {
    stroke: transparent;
    stroke-width: 14;
    pointer-events: stroke;
    cursor: pointer;
}
.tm-guide-graph-arrowhead {
    fill: #f0b429;
}
.tm-guide-graph-nodes {
    position: absolute;
    inset: 0;
}
.tm-guide-graph-node {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    height: calc(44 / 560 * 100%);
    min-height: 32px;
    padding: 0 6px;
    border-radius: 999px;
    border: 1.5px solid rgba(102, 126, 234, 0.35);
    background: rgba(255, 255, 255, 0.92);
    color: inherit;
    cursor: pointer;
    touch-action: manipulation;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s, opacity 0.15s;
    z-index: 2;
}
html[data-tm-ui="dark"] .tm-guide-graph-node {
    background: rgba(22, 30, 42, 0.92);
    border-color: rgba(93, 173, 226, 0.35);
}
.tm-guide-graph-node.tier-core {
    border-color: rgba(240, 180, 41, 0.65);
    font-weight: 800;
}
.tm-guide-graph-node i {
    font-size: 11px;
    color: #667eea;
    flex-shrink: 0;
}
html[data-tm-ui="dark"] .tm-guide-graph-node i { color: #5dade2; }
.tm-guide-graph-node.tier-core i { color: #d4a017; }
.tm-guide-graph-node span {
    font-size: clamp(9px, 1.05vw, 12px);
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tm-guide-graph-node:hover {
    transform: translateY(-1px) scale(1.03);
    border-color: #f0b429;
    z-index: 3;
}
.tm-guide-graph-node.is-active {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.28);
    background: rgba(102, 126, 234, 0.14);
    z-index: 4;
}
html[data-tm-ui="dark"] .tm-guide-graph-node.is-active {
    background: rgba(93, 173, 226, 0.18);
    box-shadow: 0 0 0 3px rgba(93, 173, 226, 0.25);
}
.tm-guide-graph-node.is-dimmed { opacity: 0.32; }
.tm-guide-graph-caption {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    align-items: baseline;
    min-height: 2.4em;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.45);
    font-size: 12px;
    line-height: 1.4;
}
html[data-tm-ui="dark"] .tm-guide-graph-caption {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}
.tm-guide-graph-cap-title {
    font-size: 13px;
    margin-right: 4px;
}
.tm-guide-graph-cap-item {
    opacity: 0.88;
}
.tm-guide-graph-cap-hint {
    opacity: 0.7;
}
.tm-guide-graph-tip {
    position: absolute;
    z-index: 8;
    max-width: 240px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(20, 28, 40, 0.94);
    color: #fff;
    font-size: 12px;
    line-height: 1.35;
    pointer-events: none;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(240, 180, 41, 0.4);
}
.tm-guide-graph-tip strong {
    display: block;
    margin-bottom: 3px;
    color: #f5d76e;
}
.tm-guide-graph-tip span { opacity: 0.9; }
.tm-guide-howto-block {
    margin-bottom: 14px;
}
.tm-guide-howto-title {
    font-size: 14px;
    font-weight: 800;
    margin: 0 0 8px;
}
.tm-guide-feat-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    opacity: 0.7;
    margin: 0 0 4px;
    text-transform: uppercase;
}
.tm-guide-feat-chip.is-btn {
    cursor: pointer;
    touch-action: manipulation;
    font: inherit;
    color: inherit;
}
.tm-guide-feat-chip.is-btn:hover {
    background: rgba(102, 126, 234, 0.22);
}
.tm-guide-feat-chip.is-btn.is-active {
    background: #667eea;
    border-color: #667eea;
    color: #fff;
}
html[data-tm-ui="dark"] .tm-guide-feat-chip.is-btn.is-active {
    background: #5dade2;
    border-color: #5dade2;
    color: #0f1419;
}
.tm-guide-matrix-row.is-active td {
    background: rgba(102, 126, 234, 0.08);
}
.tm-guide-matrix-detail-row td {
    background: rgba(102, 126, 234, 0.06) !important;
    border-top: none;
    padding-top: 0;
}
html[data-tm-ui="dark"] .tm-guide-matrix-detail-row td {
    background: rgba(93, 173, 226, 0.08) !important;
}
.tm-guide-matrix-detail {
    border-radius: 10px;
    border: 1px solid rgba(102, 126, 234, 0.22);
    background: rgba(255, 255, 255, 0.65);
    padding: 12px 14px;
    margin: 0 0 8px;
}
html[data-tm-ui="dark"] .tm-guide-matrix-detail {
    background: rgba(15, 20, 25, 0.45);
    border-color: rgba(93, 173, 226, 0.25);
}
.tm-guide-matrix-detail-title {
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 8px;
}
.tm-guide-feat-steps {
    margin: 0 0 10px;
    padding-left: 1.2em;
    font-size: 13px;
    line-height: 1.45;
}
.tm-guide-feat-steps li { margin-bottom: 4px; }
.tm-guide-feat-detail p { font-size: 13px; line-height: 1.45; }

@media (max-width: 900px) {
    .tm-guide-hero { grid-template-columns: 1fr; }
    .tm-guide-layout { grid-template-columns: 1fr; }
    .tm-guide-map-layout { grid-template-columns: 1fr; }
    .tm-guide-path { grid-template-columns: repeat(2, 1fr); }
    .tm-guide-chain-node { min-width: 72px; padding: 8px; }
    .tm-guide-graph-stage {
        aspect-ratio: auto;
        min-height: 420px;
        overflow-x: auto;
        overflow-y: hidden;
    }
    .tm-guide-graph-svg,
    .tm-guide-graph-nodes {
        width: 720px;
        min-width: 720px;
        height: 420px;
        position: absolute;
        left: 0;
        top: 0;
    }
    .tm-guide-graph-node span { font-size: 10px; }
}
@media (max-width: 480px) {
    .tm-guide-path { grid-template-columns: 1fr; }
    .tm-guide-map-grid { grid-template-columns: 1fr; }
    .tm-guide-panel-body { max-height: none; }
    .tm-guide-page-list { max-height: none; }
}

/* 补给账本：营地币 / 经验 / 登记 */
.tm-guide-view[hidden] {
    display: none !important;
}
.tm-guide-view.is-active {
    display: block;
}
.tm-guide-view.is-active .tm-guide-card + .tm-guide-card,
.tm-guide-view.is-active .tm-guide-card + .tm-guide-map-layout,
.tm-guide-view.is-active .tm-guide-map-layout + .tm-guide-card {
    margin-top: 16px;
}
.tm-guide-economy-lead {
    margin: 0 0 12px;
    font-size: 13px;
    opacity: 0.78;
    line-height: 1.45;
}
.tm-guide-economy-board { display: flex; flex-direction: column; gap: 12px; }
.tm-guide-economy-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 4px;
    border-radius: 999px;
    background: rgba(102, 126, 234, 0.08);
    border: 1px solid rgba(102, 126, 234, 0.18);
    align-self: flex-start;
}
.tm-guide-economy-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: none;
    background: transparent;
    color: inherit;
    border-radius: 999px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    touch-action: manipulation;
}
.tm-guide-economy-tab.is-active {
    background: linear-gradient(135deg, #f5d76e, #f0b429);
    color: #1a1a2e;
}
html[data-tm-ui="dark"] .tm-guide-economy-tabs {
    background: rgba(93, 173, 226, 0.1);
    border-color: rgba(93, 173, 226, 0.22);
}
.tm-guide-econ-role {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: baseline;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(240, 180, 41, 0.28);
    background: rgba(245, 215, 110, 0.1);
    font-size: 13px;
    line-height: 1.45;
}
.tm-guide-econ-role strong {
    font-size: 12px;
    letter-spacing: 0.04em;
}
.tm-guide-econ-grid {
    display: grid;
    grid-template-columns: minmax(240px, 0.9fr) minmax(280px, 1.1fr);
    gap: 14px;
}
.tm-guide-econ-h {
    margin: 0 0 10px;
    font-size: 13px;
    font-weight: 800;
}
.tm-guide-econ-h.mt { margin-top: 16px; }
.tm-guide-econ-h i { margin-right: 6px; opacity: 0.7; }
.tm-guide-econ-flows {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.tm-guide-econ-flow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr);
    grid-template-areas:
        "from arrow to"
        "edge edge edge";
    column-gap: 8px;
    row-gap: 6px;
    align-items: center;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.5);
}
html[data-tm-ui="dark"] .tm-guide-econ-flow {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}
.tm-guide-econ-flow-from {
    grid-area: from;
    font-size: 12px;
    font-weight: 800;
    text-align: right;
}
.tm-guide-econ-flow-arrow {
    grid-area: arrow;
    text-align: center;
    font-weight: 800;
    color: #f0b429;
}
.tm-guide-econ-flow-to {
    grid-area: to;
    font-size: 12px;
    font-weight: 800;
    text-align: left;
}
.tm-guide-econ-flow-edge {
    grid-area: edge;
    justify-self: center;
    font-size: 11px;
    font-weight: 700;
    color: #d4a017;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(240, 180, 41, 0.15);
    white-space: nowrap;
}
.tm-guide-econ-bars {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.tm-guide-econ-bar-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    text-align: left;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.55);
    border-radius: 12px;
    padding: 10px 12px;
    color: inherit;
    cursor: pointer;
    touch-action: manipulation;
    font: inherit;
}
html[data-tm-ui="dark"] .tm-guide-econ-bar-row {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}
.tm-guide-econ-bar-row:hover { border-color: rgba(102, 126, 234, 0.45); }
.tm-guide-econ-bar-row.is-soft { opacity: 0.72; }
.tm-guide-econ-bar-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}
.tm-guide-econ-bar-name {
    font-size: 13px;
    font-weight: 800;
    min-width: 0;
}
.tm-guide-econ-bar-val {
    font-size: 13px;
    font-weight: 800;
    color: #d4a017;
    white-space: nowrap;
    flex-shrink: 0;
}
.tm-guide-econ-bar-track {
    height: 10px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.08);
    overflow: hidden;
}
html[data-tm-ui="dark"] .tm-guide-econ-bar-track {
    background: rgba(255, 255, 255, 0.1);
}
.tm-guide-econ-bar-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    min-width: 4px;
}
.tm-guide-econ-bar-fill.tone-gold {
    background: linear-gradient(90deg, #f5a623, #f5d76e);
}
.tm-guide-econ-bar-fill.tone-blue {
    background: linear-gradient(90deg, #667eea, #5dade2);
}
.tm-guide-econ-bar-fill.tone-teal {
    background: linear-gradient(90deg, #1abc9c, #48c9b0);
}
.tm-guide-econ-bar-note {
    font-size: 11px;
    opacity: 0.72;
    line-height: 1.4;
}
.tm-guide-econ-spend {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.tm-guide-econ-spend li {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2px 10px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background: rgba(255, 255, 255, 0.4);
    font-size: 12px;
}
html[data-tm-ui="dark"] .tm-guide-econ-spend li {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}
.tm-guide-econ-spend li.is-jump { cursor: pointer; }
.tm-guide-econ-spend li.is-jump:hover { border-color: #667eea; }
.tm-guide-econ-spend strong { font-weight: 800; }
.tm-guide-econ-spend em {
    font-style: normal;
    font-weight: 800;
    color: #d4a017;
}
.tm-guide-econ-spend span {
    grid-column: 1 / -1;
    opacity: 0.72;
    font-size: 11px;
}

@media (max-width: 900px) {
    .tm-guide-econ-grid { grid-template-columns: 1fr; }
}
