/* ========================================
   图解页面样式 - 适配长图展示
   ======================================== */

:root {
    --primary-color: #1e5aa8;
    --primary-dark: #0d3a6e;
    --primary-light: #2d6ab8;
    --primary-lighter: #e8f4fd;
    --secondary-color: #c9a227;
    --text-primary: #1a1a2e;
    --text-secondary: #4a4a6a;
    --text-muted: #6b6b8a;
    --bg-primary: #ffffff;
    --bg-secondary: #f5f7fa;
    --bg-dark: #1a1a2e;
    --border-color: #e8e8e8;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.15);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --max-content-width: 900px;
    --font-sans: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Microsoft YaHei', sans-serif;
}

/* 重置样式 */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-secondary);
    overflow-x: hidden;
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* 页面加载器 */
.page-loader {
    position: fixed;
    inset: 0;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.page-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--primary-lighter);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* 导航栏 */
.plan-navbar {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: all 0.3s ease;
}

.plan-navbar.scrolled {
    box-shadow: var(--shadow-md);
}

.nav-container {
    width: 100%;
    max-width: var(--max-content-width);
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-4);
}

.nav-back {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.nav-back:hover {
    background: var(--primary-lighter);
    color: var(--primary-color);
}

.nav-back svg {
    width: 18px;
    height: 18px;
}

.nav-title {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9375rem;
    max-width: 300px;
}

.title-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.title-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-shrink: 0;
}

.action-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.action-btn:hover {
    background: var(--primary-lighter);
    color: var(--primary-color);
}

.action-btn svg {
    width: 20px;
    height: 20px;
}

/* 主体内容区域 */
.plan-main {
    min-height: 100vh;
    padding-top: 20px;
    padding-bottom: 100px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.plan-container {
    width: 100%;
    max-width: var(--max-content-width);
    margin: 0 auto;
    padding: var(--space-6) var(--space-4);
    box-sizing: border-box;
}

/* 图解展示区域 */
.infographic-wrapper {
    width: 100%;
    max-width: var(--max-content-width);
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.infographic-wrapper.fullscreen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.95);
    max-width: none;
    overflow: auto;
    cursor: zoom-out;
}

.infographic-wrapper.fullscreen .infographic-image img {
    max-height: none;
    width: auto;
    max-width: 90vw;
    margin: 0 auto;
    display: block;
    padding: 20px;
    cursor: default;
}

/* 全屏关闭按钮 */
.fullscreen-close {
    position: fixed !important;
    top: 20px !important;
    right: 20px !important;
    width: 44px !important;
    height: 44px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border: 2px solid rgba(255, 255, 255, 0.5) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    z-index: 10001 !important;
    transition: all 0.3s ease !important;
    color: #fff !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.fullscreen-close.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.fullscreen-close:hover {
    background: rgba(255, 255, 255, 0.4) !important;
    transform: scale(1.1) !important;
}
.fullscreen-close svg {
    width: 20px;
    height: 20px;
    pointer-events: none;
}

.infographic-image {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.infographic-image img {
    width: 100%;
    max-width: var(--max-content-width);
    height: auto;
    display: block;
}

/* 底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    z-index: 100;
    transition: transform 0.3s ease;
}

.bottom-nav.hidden {
    transform: translateY(100%);
}

.bottom-nav .nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-6);
    max-width: var(--max-content-width);
}

.nav-btn {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    transition: all 0.2s ease;
}

.nav-btn:hover {
    background: var(--primary-lighter);
    color: var(--primary-color);
}

.nav-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.nav-btn.next {
    color: var(--primary-color);
    background: var(--primary-lighter);
}

.nav-btn.next:hover {
    background: var(--primary-color);
    color: white;
}

.nav-divider {
    width: 1px;
    height: 24px;
    background: var(--border-color);
}

/* 缩略图面板 */
.thumb-panel {
    position: fixed;
    right: var(--space-4);
    bottom: 80px;
    z-index: 99;
}

.thumb-toggle {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.thumb-toggle:hover {
    background: var(--primary-lighter);
    color: var(--primary-color);
    transform: translateY(-2px);
}

.thumb-toggle svg {
    width: 18px;
    height: 18px;
}

.thumb-grid {
    position: absolute;
    right: 0;
    bottom: calc(100% + var(--space-3));
    width: 300px;
    max-height: 420px;
    overflow-y: auto;
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    padding: var(--space-3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.95);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s 0.15s;
    will-change: transform, opacity;
    contain: layout style;
    -webkit-overflow-scrolling: touch;
}

.thumb-panel.open .thumb-grid {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0s 0s;
}

.thumb-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    transition: background 0.15s ease;
    margin-bottom: var(--space-1);
    contain: layout style;
}

.thumb-item:last-child {
    margin-bottom: 0;
}

.thumb-item:hover {
    background: var(--bg-secondary);
}

.thumb-item.active {
    background: var(--primary-lighter);
}

.thumb-item img {
    width: 50px;
    height: 35px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.thumb-item span {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.thumb-item.active span {
    color: var(--primary-color);
    font-weight: 600;
}

/* 滚动进度条 */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.05);
    z-index: 1001;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    width: 0%;
    transition: width 0.1s ease;
}

/* 总规划解读页 */
.plan-detail-page {
    background:
        radial-gradient(circle at top right, rgba(126, 215, 209, 0.12), transparent 24%),
        radial-gradient(circle at bottom left, rgba(255, 138, 61, 0.1), transparent 18%),
        linear-gradient(180deg, #f3f7ff 0%, #f8fbff 45%, #f4f7fc 100%);
}

.plan-detail-page::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(15, 27, 61, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 27, 61, 0.03) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 86%);
    pointer-events: none;
    z-index: -1;
}

.plan-detail-page .nav-container {
    max-width: 1180px;
}

.plan-detail-shell {
    max-width: 1180px;
    display: grid;
    gap: 24px;
}

.detail-section {
    position: relative;
    z-index: 1;
}

.detail-hero {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 24px;
}

.detail-hero-copy,
.detail-hero-panel,
.detail-panel,
.detail-stat-card,
.summary-card {
    border: 1px solid rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(18px);
}

.detail-hero-copy,
.detail-panel {
    background: rgba(255, 255, 255, 0.78);
    border-radius: 28px;
    padding: 34px;
}

.detail-hero-copy h1,
.detail-panel h2,
.detail-section-head h2 {
    margin: 12px 0 0;
    color: #102040;
    font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
    line-height: 1.2;
}

.detail-hero-copy h1 {
    font-size: clamp(2rem, 4vw, 3.6rem);
}

.detail-hero-copy p,
.detail-panel p,
.detail-section-head p,
.step-card p,
.detail-stat-card p,
.summary-card span,
.panel-note {
    color: var(--text-secondary);
    line-height: 1.8;
}

.detail-label {
    display: inline-block;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--text-muted);
}

.detail-label.light {
    color: rgba(255, 255, 255, 0.72);
}

.detail-chip-row {
    margin-top: 22px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.detail-chip {
    display: inline-flex;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(24, 70, 255, 0.08);
    color: var(--primary-dark);
    font-size: 0.875rem;
    font-weight: 700;
}

.detail-hero-panel {
    position: relative;
    overflow: hidden;
    border-radius: 28px;
    padding: 28px;
    background: linear-gradient(150deg, rgba(15, 27, 61, 0.98), rgba(24, 70, 255, 0.9));
    color: #fff;
}

.detail-hero-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 38px 38px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.96), transparent 95%);
}

.detail-hero-panel > * {
    position: relative;
    z-index: 1;
}

.detail-hero-panel--reference {
    margin: 0;
    display: flex;
    align-items: center;
}

.detail-hero-panel--reference img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: none;
}

.detail-hero-panel--roadmap {
    padding: 28px 24px 24px;
    background: rgba(255, 255, 255, 0.86);
    color: #102040;
}

.detail-hero-panel--roadmap::before {
    display: none;
}

.roadmap-head {
    display: grid;
    grid-template-columns: minmax(48px, 1fr) auto minmax(48px, 1fr);
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.roadmap-line {
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(24, 70, 255, 0.08), rgba(24, 70, 255, 0.9), rgba(24, 70, 255, 0.08));
}

.roadmap-head h2 {
    margin: 0;
    color: #102040;
    font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
    font-size: clamp(1.5rem, 2.7vw, 2.5rem);
    line-height: 1.18;
    text-align: center;
}

.roadmap-stack {
    display: grid;
    gap: 20px;
}

.roadmap-stage {
    --stage-color: #1f66ff;
    position: relative;
    display: grid;
    grid-template-columns: 210px 120px minmax(0, 1fr);
    align-items: center;
    border-radius: 28px;
    overflow: hidden;
    background: #fff;
    border: 2px solid color-mix(in srgb, var(--stage-color) 72%, white);
    box-shadow: 0 16px 34px rgba(10, 28, 78, 0.08);
}

.roadmap-stage--blue {
    --stage-color: #1f66ff;
}

.roadmap-stage--green {
    --stage-color: #12b37b;
}

.roadmap-stage--orange {
    --stage-color: #ff8400;
}

.roadmap-stage:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -20px;
    width: 30px;
    height: 30px;
    background: color-mix(in srgb, var(--stage-color) 86%, white);
    clip-path: polygon(50% 100%, 0 0, 100% 0);
    transform: translateX(-50%);
}

.roadmap-stage-band {
    align-self: stretch;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--stage-color) 92%, white), color-mix(in srgb, var(--stage-color) 72%, white));
    color: #fff;
    font-size: 1.12rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.roadmap-stage-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 10px;
}

.roadmap-stage-icon span {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    border: 10px solid rgba(255, 255, 255, 0.96);
    box-shadow:
        inset 0 0 0 2px color-mix(in srgb, var(--stage-color) 20%, white),
        0 10px 24px color-mix(in srgb, var(--stage-color) 12%, transparent);
    color: color-mix(in srgb, var(--stage-color) 88%, #102040);
    font-size: 1.9rem;
    font-weight: 900;
}

.roadmap-stage-main {
    padding: 24px 28px 24px 12px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.92fr);
    align-items: center;
    gap: 22px;
}

.roadmap-stage-main strong {
    color: color-mix(in srgb, var(--stage-color) 88%, #102040);
    font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
    font-size: 2rem;
    line-height: 1.1;
}

.roadmap-stage-main ul {
    margin: 0;
    padding-left: 1.2rem;
    border-left: 1px solid rgba(15, 27, 61, 0.12);
    color: #102040;
    display: grid;
    gap: 14px;
    font-size: 1rem;
    font-weight: 700;
}

.step-card {
    margin-top: 14px;
    padding: 18px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.step-card strong {
    display: block;
    font-size: 1.02rem;
    margin-bottom: 6px;
}

.step-card p {
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
}

.detail-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.detail-stat-card {
    border-radius: 24px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.78);
    position: relative;
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.detail-stat-card strong {
    display: block;
    margin-top: 12px;
    font-size: 1.3rem;
    color: #102040;
}

.detail-stat-card p {
    margin: 10px 0 0;
}

.detail-stat-card::after,
.target-item::after {
    content: "";
    position: absolute;
    right: -16px;
    bottom: -16px;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(24, 70, 255, 0.12), transparent 68%);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.detail-stat-card.is-live,
.target-item.is-live {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(10, 28, 78, 0.1);
}

.detail-stat-card.is-live::after,
.target-item.is-live::after {
    opacity: 1;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.detail-list {
    margin: 18px 0 0;
    padding-left: 20px;
    color: var(--text-secondary);
    line-height: 1.9;
}

.detail-list li + li {
    margin-top: 8px;
}

#topicReadList li {
    text-align: justify;
}

.target-stack {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 14px;
}

.target-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 128px;
    padding: 18px;
    border-radius: 20px;
    background: rgba(24, 70, 255, 0.05);
    position: relative;
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.target-item strong {
    display: block;
    font-size: 1.26rem;
    color: #102040;
    line-height: 1.12;
}

.count-up {
    font-variant-numeric: tabular-nums;
}

.target-value {
    display: inline-flex;
    align-items: baseline;
    gap: 0.14em;
    white-space: nowrap;
}

.target-value,
.target-value .count-up {
    margin-top: 0;
}

.target-value .count-up {
    display: inline;
}

.target-item > span {
    display: block;
    margin-top: 6px;
    color: var(--text-secondary);
    font-size: 0.92rem;
}

.detail-section-head {
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: 24px;
    align-items: end;
    margin-bottom: 18px;
}

.action-summary-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.action-summary-grid--stack {
    grid-template-columns: 1fr;
    gap: 28px;
}

.action-summary-grid--stack .action-group {
    margin-bottom: 0;
}

.summary-card {
    border-radius: 22px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.78);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.summary-card strong {
    display: block;
    color: #102040;
    margin-bottom: 8px;
    line-height: 1.45;
}

.summary-card span {
    display: block;
    font-size: 0.92rem;
    flex: 1;
}

.action-group {
    margin-bottom: 32px;
}

.action-group:last-child {
    margin-bottom: 0;
}

.action-group-head {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(15, 27, 61, 0.12);
}

.action-group-project {
    font-family: "Noto Serif SC", "Noto Sans SC", serif;
    font-size: 1.12rem;
    font-weight: 700;
    color: #102040;
}

.action-group-tag {
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: rgba(15, 27, 61, 0.06);
    padding: 2px 10px;
    border-radius: 99px;
}

.action-group-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}

.emphasis-panel {
    background: linear-gradient(140deg, rgba(15, 27, 61, 0.97), rgba(24, 70, 255, 0.92));
    color: #fff;
}

.emphasis-panel h2,
.emphasis-panel p,
.emphasis-panel .detail-label {
    color: #fff;
}

.emphasis-panel p {
    color: rgba(255, 255, 255, 0.78);
}

.mini-cluster-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.mini-cluster-grid span {
    display: flex;
    align-items: center;
    min-height: 54px;
    padding: 0 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.86);
}

.panel-note {
    margin: 16px 0 0;
}

.logic-reference-board {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.9);
}

.logic-reference-card {
    padding: 34px 34px 32px;
    border-color: rgba(100, 150, 220, 0.18);
    border-style: solid;
    border-width: 0;
}

.logic-reference-card:nth-child(odd) {
    border-right-width: 1px;
}

.logic-reference-card:nth-child(-n+2) {
    border-bottom-width: 1px;
}

.logic-reference-card--warm {
    background: linear-gradient(180deg, #fff5e8 0%, #fff7eb 100%);
}

.logic-reference-card--cool {
    background: linear-gradient(180deg, #dff0ff 0%, #d7ecff 100%);
}

.logic-reference-head {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 20px;
}

.logic-reference-head h3 {
    margin: 0;
    font-size: 2rem;
    color: #102040;
    font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
}

.logic-reference-icon {
    width: 62px;
    height: 62px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #efb78f;
    color: #fff;
    font-size: 1.7rem;
    font-weight: 800;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28);
}

.logic-reference-icon--green {
    background: #4fb49f;
}

.logic-reference-icon--blue {
    background: #6b9fd6;
}

.logic-reference-icon--violet {
    background: #b487c4;
}

.logic-reference-list {
    margin: 0;
    padding-left: 1.3rem;
    color: #1f2d47;
    display: grid;
    gap: 16px;
    font-size: 1.12rem;
    line-height: 1.75;
}

.work-system-reference-board,
.education-reference-board {
    margin: 0;
    border-radius: 30px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.92);
    box-shadow: var(--shadow-sm);
}

.work-system-reference-board img,
.education-reference-board img {
    display: block;
    width: 100%;
    height: auto;
}

.logic-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.logic-panel {
    border-radius: 28px;
    padding: 28px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(18px);
}

.logic-panel--dark {
    background: linear-gradient(150deg, rgba(15, 27, 61, 0.98), rgba(24, 70, 255, 0.88));
    color: #fff;
}

.logic-flow-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.logic-step {
    position: relative;
    padding: 18px;
    border-radius: 22px;
    background: rgba(24, 70, 255, 0.05);
    border: 1px solid rgba(24, 70, 255, 0.08);
}

.logic-icon {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: #fff;
    font-weight: 800;
}

.logic-step strong,
.logic-node strong,
.mini-card strong {
    display: block;
    margin-top: 12px;
    color: #102040;
}

.logic-step p {
    margin: 10px 0 0;
}

.logic-panel h3 {
    margin: 12px 0 0;
    color: #102040;
    font-family: "Noto Serif SC", "Source Han Serif SC", "Songti SC", serif;
}

.logic-orbit {
    margin-top: 20px;
    display: grid;
    gap: 16px;
}

.logic-core,
.logic-node {
    border-radius: 22px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.08);
}

.logic-core strong,
.logic-node strong,
.logic-panel--dark h3 {
    color: #fff;
}

.logic-core span,
.logic-node span {
    display: block;
    margin-top: 8px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.75;
}

.pyramid-flow {
    margin-top: 20px;
    display: grid;
    gap: 14px;
}

.pyramid-row {
    margin: 0 auto;
    border-radius: 24px;
    background: rgba(24, 70, 255, 0.05);
    border: 1px solid rgba(24, 70, 255, 0.08);
}

.pyramid-row--top {
    width: 78%;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    padding: 16px;
}

.pyramid-row--mid {
    width: 90%;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    padding: 16px;
}

.pyramid-row--base {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 18px;
}

.pyramid-row span,
.pyramid-row--base div,
.mini-card {
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.7;
}

.pyramid-row--base strong {
    display: block;
    margin-bottom: 6px;
}

.education-mini-grid {
    margin-top: 20px;
    display: grid;
    gap: 14px;
}

.logic-panel {
    position: relative;
    overflow: hidden;
    border-radius: 30px;
    padding: 30px;
}

.logic-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(24, 70, 255, 0.12), transparent 34%),
        linear-gradient(180deg, rgba(24, 70, 255, 0.02), transparent 36%);
    pointer-events: none;
}

.logic-panel > * {
    position: relative;
    z-index: 1;
}

.logic-flow-grid {
    position: relative;
}

.logic-flow-grid::before {
    content: "";
    position: absolute;
    left: 40px;
    right: 40px;
    top: 20px;
    height: 1px;
    background: linear-gradient(90deg, rgba(24, 70, 255, 0.12), rgba(24, 70, 255, 0.3), rgba(24, 70, 255, 0.12));
}

.logic-step {
    padding: 56px 18px 18px;
    background: linear-gradient(180deg, rgba(24, 70, 255, 0.08), rgba(24, 70, 255, 0.02));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.logic-flow-grid {
    counter-reset: logicstep;
}

.logic-step {
    counter-increment: logicstep;
}

.logic-step::before {
    content: "STEP 0" counter(logicstep);
    position: absolute;
    top: 14px;
    left: 18px;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(15, 27, 61, 0.06);
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.logic-step:not(:last-child)::after {
    content: "\2192";
    position: absolute;
    top: 8px;
    right: -14px;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(24, 70, 255, 0.14);
    color: var(--primary-color);
    font-weight: 800;
    z-index: 2;
}

.logic-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    box-shadow: 0 12px 24px rgba(24, 70, 255, 0.16);
}

.logic-step strong {
    margin-top: 16px;
}

.logic-panel--dark::before {
    background:
        radial-gradient(circle at top right, rgba(123, 215, 255, 0.18), transparent 32%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 30%);
}

.logic-orbit {
    position: relative;
    min-height: 320px;
    padding: 18px 0;
    align-content: center;
}

.logic-orbit::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 320px;
    height: 210px;
    border-radius: 999px;
    transform: translate(-50%, -50%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
        0 0 0 24px rgba(255, 255, 255, 0.03),
        0 0 0 56px rgba(255, 255, 255, 0.02);
}

.logic-core {
    width: min(100%, 280px);
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 18px 36px rgba(5, 14, 37, 0.22);
}

.logic-node {
    width: min(100%, 420px);
    margin: 0 auto;
    text-align: center;
    box-shadow: 0 14px 28px rgba(5, 14, 37, 0.2);
}

.pyramid-flow {
    gap: 16px;
}

.pyramid-row {
    position: relative;
    padding: 18px;
    border-radius: 28px;
}

.pyramid-row::before {
    position: absolute;
    top: 14px;
    left: 18px;
    color: #102040;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.pyramid-row--top::before {
    content: "Target Form / Five New";
}

.pyramid-row--mid::before {
    content: "Action Layer / Five Projects";
}

.pyramid-row--base::before {
    content: "Foundation / 3-2 Logic";
}

.pyramid-row--top,
.pyramid-row--mid,
.pyramid-row--base {
    padding-top: 48px;
}

.pyramid-row--top {
    width: 78%;
}

.pyramid-row--mid {
    width: 90%;
}

.pyramid-row span,
.pyramid-row--base div,
.mini-card {
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.84);
}

.education-mini-grid {
    position: relative;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.education-mini-grid::before {
    content: "";
    position: absolute;
    left: 9%;
    right: 9%;
    top: 24px;
    height: 1px;
    background: linear-gradient(90deg, rgba(24, 70, 255, 0.08), rgba(24, 70, 255, 0.32), rgba(24, 70, 255, 0.08));
}

.mini-card {
    position: relative;
    padding-top: 28px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.mini-card::before {
    content: "";
    position: absolute;
    top: 18px;
    left: 14px;
    right: 14px;
    height: 3px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(24, 70, 255, 0.16), rgba(24, 70, 255, 0.78), rgba(24, 70, 255, 0.16));
}

.mini-card:nth-child(2)::before {
    background: linear-gradient(90deg, rgba(24, 121, 255, 0.12), rgba(24, 121, 255, 0.72), rgba(24, 121, 255, 0.12));
}

.mini-card:nth-child(3)::before {
    background: linear-gradient(90deg, rgba(94, 132, 255, 0.1), rgba(94, 132, 255, 0.7), rgba(94, 132, 255, 0.1));
}

.infographic-controls {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.toggle-infographic {
    min-height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid rgba(15, 27, 61, 0.08);
    background: rgba(255, 255, 255, 0.86);
    color: #102040;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.toggle-infographic:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.plan-detail-page .infographic-wrapper {
    background: rgba(255, 255, 255, 0.86);
}

.plan-detail-page .infographic-wrapper.is-collapsed {
    max-height: 0;
    padding: 0;
    margin: 0;
    border: 0;
    opacity: 0;
    overflow: hidden;
}

.reveal-block {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.48s ease, transform 0.48s ease;
}

.reveal-block.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1100px) {
    .detail-hero,
    .detail-grid,
    .detail-section-head {
        grid-template-columns: 1fr;
    }

    .detail-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .action-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .action-group-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .logic-reference-board {
        grid-template-columns: 1fr;
    }

    .logic-reference-card:nth-child(odd) {
        border-right-width: 0;
    }

    .logic-reference-card:nth-child(-n+2),
    .logic-reference-card:not(:last-child) {
        border-bottom-width: 1px;
    }

    .roadmap-stage {
        grid-template-columns: 180px 104px minmax(0, 1fr);
    }

    .roadmap-stage-main {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .roadmap-stage-main strong {
        font-size: 1.72rem;
    }

    .pyramid-row--top,
    .pyramid-row--mid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .pyramid-row--base,
    .education-mini-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-title {
        display: none;
    }

    .thumb-panel {
        right: var(--space-2);
        bottom: 72px;
    }

    .thumb-grid {
        width: 260px;
    }

    .bottom-nav .nav-container {
        padding: 0 var(--space-3);
    }

    .nav-btn span {
        display: none;
    }

    .detail-hero,
    .detail-grid,
    .detail-section-head,
    .logic-reference-board,
    .logic-flow-grid,
    .pyramid-row--top,
    .pyramid-row--mid,
    .pyramid-row--base,
    .education-mini-grid {
        grid-template-columns: 1fr;
    }

    .logic-reference-card {
        padding: 28px 24px;
    }

    .logic-reference-head h3 {
        font-size: 1.6rem;
    }

    .logic-reference-list {
        gap: 12px;
        font-size: 1rem;
    }

    .roadmap-head {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .roadmap-stage {
        grid-template-columns: 1fr;
    }

    .roadmap-stage:not(:last-child)::after {
        display: none;
    }

    .roadmap-stage-band {
        min-height: 68px;
    }

    .roadmap-stage-icon {
        padding: 18px 16px 0;
    }

    .roadmap-stage-main {
        padding: 18px 20px 22px;
    }

    .roadmap-stage-main ul {
        padding-left: 1.1rem;
        border-left: 0;
        border-top: 1px solid rgba(15, 27, 61, 0.12);
        padding-top: 14px;
    }

    .detail-stats,
    .target-stack,
    .action-summary-grid,
    .action-group-grid,
    .mini-cluster-grid {
        grid-template-columns: 1fr;
    }

    .logic-flow-grid::before,
    .education-mini-grid::before {
        display: none;
    }

    .logic-step:not(:last-child)::after {
        display: none;
    }
}

/* 打印样式 */
@media print {
    .plan-navbar,
    .bottom-nav,
    .thumb-panel,
    .scroll-progress,
    .top-bar {
        display: none !important;
    }

    .plan-main {
        padding-top: 0;
        padding-bottom: 0;
    }

    .infographic-wrapper {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
