/* 国企模拟器 - Notion 极简风格 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f7f6f3;
    --bg-hover: #f1f1ef;
    --text-primary: #37352f;
    --text-secondary: #787774;
    --text-muted: #9b9a97;
    --border-color: #e9e9e7;
    --accent-color: #2383e2;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: #110f18;
    color: var(--text-primary);
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    line-height: 1.6;
}

html {
    background: #110f18;
}

.screen {
    min-height: 100vh;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.screen.hidden {
    display: none;
}

/* ========== 开始界面 - 毛玻璃风格 ========== */
.start-glass-screen {
    padding: 0;
    position: relative;
    overflow: hidden;
}

.start-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.start-bg-container .scene-background {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(3px);
    transform: scale(1.05);
}

.start-glass-panel {
    position: relative;
    z-index: 1;
    background: rgba(40, 40, 50, 0.55);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 48px 40px;
    text-align: center;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.08) inset;
    width: 90%;
    max-width: 340px;
    margin: auto;
}

.start-icon {
    font-size: 3.5em;
    margin-bottom: 16px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.start-title {
    font-size: 2em;
    font-weight: 700;
    color: #fff;
    margin-bottom: 32px;
    letter-spacing: 0.08em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.start-glass-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #fff;
    padding: 14px 48px;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.start-glass-btn:hover {
    background: rgba(139, 92, 246, 0.4);
    border-color: rgba(139, 92, 246, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3);
}

.start-glass-btn:active {
    background: rgba(139, 92, 246, 0.6);
    border-color: rgba(139, 92, 246, 0.8);
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.4);
}

.start-disclaimer {
    font-size: 0.75em;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 24px;
}

.immersive-start-content {
    position: relative;
    z-index: 5;
    text-align: center;
    padding: 40px;
}

.start-stamp {
    display: inline-block;
    padding: 6px 16px;
    border: 2px solid rgba(220, 38, 38, 0.6);
    color: rgba(220, 38, 38, 0.8);
    font-size: 0.85em;
    font-weight: 600;
    letter-spacing: 0.15em;
    transform: rotate(-5deg);
    margin-bottom: 24px;
}

.start-poem {
    font-family: 'KaiTi', 'STKaiti', serif;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.2em;
    line-height: 2.2;
    margin-bottom: 32px;
}

.start-poem p {
    margin: 4px 0;
}

.immersive-btn {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    color: #000;
    padding: 12px 36px;
    font-size: 1.1em;
    font-weight: 700;
    font-family: "Microsoft Sans Serif", "Tahoma", sans-serif;
    cursor: pointer;
    transition: background 0.1s ease;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.3);
    position: relative;
}

.immersive-btn:hover {
    background: #d8d8d8;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4);
}

.immersive-btn:active {
    background: #000080;
    color: #fff;
    border-color: #808080 #ffffff #ffffff #808080;
    box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.3);
    transform: translate(1px, 1px);
}

.start-disclaimer {
    margin-top: 24px;
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.4);
}

/* ========== 身份选择界面 - 沉浸式 ========== */
#identity-screen {
    justify-content: center;
    background: #0a0a0f;
}

#identity-screen .scene-background::after {
    background: linear-gradient(
        to bottom,
        rgba(10, 10, 15, 0.4) 0%,
        rgba(10, 10, 15, 0.6) 30%,
        rgba(10, 10, 15, 0.85) 60%,
        rgba(10, 10, 15, 0.95) 100%
    );
}

.immersive-identity-content {
    position: relative;
    z-index: 5;
    max-width: 500px;
    width: 90%;
    padding: 20px;
}

.identity-header {
    text-align: center;
    margin-bottom: 32px;
}

.identity-stamp {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid rgba(34, 197, 94, 0.5);
    color: rgba(34, 197, 94, 0.8);
    font-size: 0.75em;
    font-weight: 600;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.identity-title {
    font-size: 1.8em;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
}

.identity-subtitle {
    font-family: 'KaiTi', 'STKaiti', serif;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95em;
}

.identity-group {
    margin-bottom: 28px;
}

.identity-question {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.95em;
    margin-bottom: 12px;
    text-align: center;
}

.identity-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.identity-option-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.85);
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.identity-option-btn:hover {
    background: rgba(139, 92, 246, 0.15);
    border-color: rgba(139, 92, 246, 0.4);
    transform: translateY(-2px);
}

.identity-option-btn.selected {
    background: rgba(139, 92, 246, 0.25);
    border-color: rgba(139, 92, 246, 0.6);
    color: #c4b5fd;
}

.identity-hint {
    text-align: center;
    font-size: 0.8em;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 20px;
}

/* ========== 首次选择提示弹窗 ========== */
#first-choice-modal {
    background: rgba(10, 10, 15, 0.9);
    backdrop-filter: blur(8px);
}

.first-choice-popup {
    background: rgba(30, 30, 40, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    max-width: 360px;
    text-align: center;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.popup-content {
    margin-bottom: 28px;
}

.popup-text {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.15em;
    line-height: 1.8;
    margin: 4px 0;
}

.popup-btn {
    background: rgba(139, 92, 246, 0.25);
    border: 1px solid rgba(139, 92, 246, 0.5);
    color: #c4b5fd;
    padding: 12px 32px;
    font-size: 1em;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.popup-btn:hover {
    background: rgba(139, 92, 246, 0.4);
    transform: scale(1.02);
}

/* 旧样式保留兼容 */
.title-card {
    background: var(--bg-primary);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    max-width: 480px;
    width: 90%;
    position: relative;
}

.title-card::before {
    display: none;
}

.title-card h1 {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 2.4em;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    text-shadow: none;
}

.subtitle {
    color: var(--text-secondary);
    font-size: 1.1em;
    margin-bottom: 24px;
    font-weight: 400;
}

.intro-desc {
    color: var(--text-secondary);
    font-size: 0.95em;
    line-height: 1.8;
    margin: 24px 0;
}

.intro-desc p {
    margin: 6px 0;
}

/* 印章改为标签样式 */
.stamp {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    background: #fef3f2;
    color: #d92d20;
    font-size: 0.75em;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 99px;
    border: none;
    transform: none;
    box-shadow: none;
}

/* ========== 主按钮 ========== */
.btn-main {
    background: var(--text-primary);
    color: var(--bg-primary);
    border: none;
    padding: 12px 24px;
    font-size: 1em;
    font-weight: 500;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all 0.15s ease;
    box-shadow: none;
    text-shadow: none;
}

.btn-main:hover {
    background: #555;
    transform: none;
}

.btn-main:active {
    transform: scale(0.98);
}

/* ========== 身份选择界面 ========== */
#identity-screen {
    justify-content: center;
    background: var(--bg-secondary);
    padding: 20px;
}

.paper-card {
    background: var(--bg-primary);
    border: none;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: var(--shadow-lg);
    max-width: 600px;
    width: 100%;
    position: relative;
}

.paper-card::before {
    display: none;
}

.section-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1.5em;
    text-align: left;
    margin-bottom: 8px;
    padding-bottom: 0;
    border-bottom: none;
    text-shadow: none;
}

.selection-group {
    margin: 32px 0;
}

.question {
    font-weight: 500;
    font-size: 1em;
    margin-bottom: 16px;
    color: var(--text-secondary);
    text-align: left;
}

.options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* ========== 选项按钮 - Callout 风格 ========== */
.option-btn {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    padding: 16px 20px;
    font-size: 1em;
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all 0.15s ease;
    text-align: left;
    position: relative;
    box-shadow: var(--shadow-sm);
    line-height: 1.6;
    display: block;
    width: 100%;
}

.option-btn:hover {
    background: var(--bg-hover);
    border-color: #d0d0ce;
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.option-btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
    background: #eaeaea;
}

.option-btn.selected {
    background: #f0f7ff;
    border-color: var(--accent-color);
    color: var(--text-primary);
}

.option-btn.selected::after {
    content: '✓';
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--accent-color);
    font-weight: 600;
    font-size: 1em;
}

.option-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

.option-key {
    font-weight: 600;
    color: var(--text-secondary);
    margin-right: 8px;
}

/* ========== 选项容器 ========== */
.options-container, #options-container, #meeting-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 32px;
}

/* ========== 游戏主界面 ========== */
#game-screen {
    background: var(--bg-secondary);
    padding-top: 0;
}

/* ========== 数值显示栏 - Notion Property 风格 ========== */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 20px;
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: none;
    border: none;
    border-radius: 0;
    max-width: none;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--bg-secondary);
    border-radius: 99px;
    border: none;
}

.stat-item:last-child {
    border-right: none;
}

.stat-label {
    font-size: 0.85em;
    color: var(--text-secondary);
    font-weight: 400;
}

.stat-value {
    font-size: 0.95em;
    color: var(--text-primary);
    font-weight: 600;
    min-width: auto;
    text-shadow: none;
}

.stat-value.changed {
    animation: valuePop 0.3s ease;
}

@keyframes valuePop {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); color: var(--accent-color); }
}

/* ========== 场景容器 - Notion Page 风格 ========== */
.scene-container {
    background: var(--bg-primary);
    border: none;
    border-radius: 0;
    padding: 0;
    max-width: 720px;
    width: 100%;
    box-shadow: none;
    position: relative;
    min-height: calc(100vh - 60px);
}

.scene-container::before {
    display: none;
}

/* 时间显示 - 页面标题 */
.time-display {
    font-size: 2em;
    font-weight: 700;
    color: var(--text-primary);
    text-align: left;
    margin-bottom: 8px;
    padding: 32px 48px 0;
    background: none;
    border: none;
    box-shadow: none;
    text-shadow: none;
    letter-spacing: -0.02em;
}

/* 场景内容 - 正文区 */
.scene-content {
    font-size: 1.05em;
    line-height: 1.9;
    margin-bottom: 0;
    color: var(--text-primary);
    text-align: left;
    padding: 16px 48px 32px;
}

.scene-content p {
    margin-bottom: 12px;
    opacity: 0;
    animation: typeIn 0.4s ease forwards;
}

@keyframes typeIn {
    from { 
        opacity: 0; 
        transform: translateY(8px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
    }
}

/* 兼容旧动画名称 */
@keyframes fadeLine {
    from { 
        opacity: 0; 
        transform: translateY(8px);
    }
    to { 
        opacity: 1; 
        transform: translateY(0);
    }
}

/* 封面图区域 */
.scene-cover {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.9em;
    position: relative;
    overflow: hidden;
}

.scene-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 页面图标 */
.scene-icon {
    width: 78px;
    height: 78px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5em;
    position: relative;
    margin: -40px 48px 16px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-color);
}

/* 选项区域容器 */
.options-wrapper {
    padding: 0 48px 48px;
}

/* ========== 沉浸式游戏界面 ========== */
.immersive-screen {
    position: relative;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    background: transparent;
    /* 底部面板布局 */
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* 移动端优化 */
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: none;
    padding-bottom: env(safe-area-inset-bottom);
}

/* 场景背景 - 全画幅 */
.scene-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background-color: #110f18;  /* 占位色，避免加载时色差 */
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    transition: opacity 0.8s ease;
    z-index: 1;
    /* 防止移动端触摸移动/缩放 */
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    pointer-events: none;
}

/* 图片遮罩 - 渐进式加深，全屏遮罩便于阅读 */
.scene-background::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.5) 0%,
        rgba(0, 0, 0, 0.45) 15%,
        rgba(0, 0, 0, 0.5) 35%,
        rgba(0, 0, 0, 0.65) 55%,
        rgba(0, 0, 0, 0.85) 80%,
        rgba(0, 0, 0, 0.95) 100%
    );
    pointer-events: none;
}

/* 游戏主界面背景 */
#game-screen.immersive-screen {
    background: transparent;
}

/* 第365天介绍页 - 底部面板渐变 */
#game-screen.intro-fullscreen .scene-background::after {
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 0%,
        rgba(0, 0, 0, 0) 40%,
        rgba(0, 0, 0, 0.6) 60%,
        rgba(0, 0, 0, 0.9) 85%,
        rgba(0, 0, 0, 0.95) 100%
    );
}

#game-screen.intro-fullscreen .immersive-content {
    margin-top: auto;
    text-align: center;
}

#game-screen.intro-fullscreen .scene-text-container {
    text-align: center;
}

/* 场景过渡遮罩 */
.scene-transition-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0f;
    z-index: 10;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.scene-transition-overlay.active {
    opacity: 1;
}

/* 顶部UI层 */
.immersive-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 16px 20px;
    z-index: 20;
    background: linear-gradient(to bottom, rgba(10, 10, 15, 0.9) 0%, rgba(10, 10, 15, 0.6) 60%, transparent 100%);
}

/* 下班时间轴 */
.timeline-container {
    max-width: 500px;
    margin: 0 auto 16px;
}

.timeline-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.75em;
    color: rgba(255, 255, 255, 0.5);
}

.timeline-title {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.timeline-track {
    position: relative;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: visible;
}

.timeline-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 3px;
    width: 0%;
    transition: width 0.8s ease;
}

.timeline-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.6);
    transition: left 0.8s ease;
    left: 0%;
}

.marker-time {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 8px;
    font-size: 0.8em;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

/* 精简数值栏 */
.stats-bar-mini {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.stat-mini {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-mini .stat-icon {
    font-size: 0.9em;
}

.stat-mini .stat-value {
    font-size: 0.85em;
    font-weight: 600;
    color: #fff;
    min-width: 24px;
    text-align: center;
}

/* 内容叠加层 - 底部面板布局 */
.immersive-content {
    position: relative;
    margin-top: auto;  /* 推到底部 */
    width: 100%;
    padding: 0 20px 40px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: flex-start;  /* 左对齐 */
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.immersive-content::-webkit-scrollbar {
    width: 6px;
}

.immersive-content::-webkit-scrollbar-track {
    background: transparent;
}

.immersive-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

/* 时间徽章 - 底部面板风格 */
.scene-time-badge {
    display: inline-block;
    padding: 0;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9em;
    font-weight: 400;
    margin-bottom: 12px;
}

/* 场景文字容器 */
.scene-text-container {
    max-width: 100%;
    width: 100%;
    margin-bottom: 16px;
}

.immersive-screen .scene-content {
    padding: 0;
    color: #fff;
    font-size: 1.15em;
    line-height: 1.8;
    text-align: left;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    margin-bottom: 24px;
}

/* 重点文字高亮 */
.immersive-screen .scene-content .highlight {
    color: #fbbf24;
    font-weight: 600;
}

.immersive-screen .scene-content .quote {
    color: #c4b5fd;
    font-style: italic;
}

.immersive-screen .scene-content p {
    margin-bottom: 8px;
    opacity: 0;
    transform: translateY(20px);
}

.immersive-screen .scene-content p.visible {
    animation: immersiveFadeIn 0.6s ease forwards;
}

@keyframes immersiveFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 场景选项容器 */
.scene-options-container {
    max-width: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.scene-options-container.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 开始新一天按钮 */
.btn-start-day {
    background: rgba(139, 92, 246, 0.15);
    border: none;
    color: #c4b5fd;
    padding: 12px 32px;
    border-radius: 8px;
    font-size: 0.95em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin: 0 auto;
    display: block;
}

.btn-start-day:hover {
    background: rgba(139, 92, 246, 0.25);
}

/* 沉浸式选项按钮 - 底部面板风格 */
.immersive-screen .option-btn {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: none;
    color: #fff;
    padding: 16px 18px;
    border-radius: 14px;
    font-size: 1em;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.immersive-screen .option-btn:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: scale(1.02);
}

.immersive-screen .option-btn:active {
    transform: scale(0.98);
    background: rgba(255, 255, 255, 0.18);
}

.immersive-screen .option-btn:active {
    transform: scale(0.98);
}

.immersive-screen .option-btn .option-key {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(139, 92, 246, 0.3);
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.85em;
    color: #c4b5fd;
    flex-shrink: 0;
}

/* 思考气泡样式 */
.immersive-screen .option-btn .option-bubble {
    font-size: 1.2em;
    flex-shrink: 0;
    opacity: 0.8;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.immersive-screen .option-btn:hover .option-bubble {
    transform: scale(1.15);
    opacity: 1;
}

/* 场景切换动画 */
@keyframes sceneEnter {
    from {
        opacity: 0;
        transform: scale(1.05);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.scene-background.entering {
    animation: sceneEnter 0.8s ease forwards;
}

/* 时间过渡显示 */
.time-transition-display {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    text-align: center;
    opacity: 0;
    pointer-events: none;
}

.time-transition-display.active {
    animation: timeShow 2s ease forwards;
}

.time-transition-display .time-big {
    font-size: 4em;
    font-weight: 300;
    color: #fff;
    text-shadow: 0 0 40px rgba(139, 92, 246, 0.5);
    letter-spacing: 0.1em;
}

.time-transition-display .time-hint {
    font-size: 1em;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 8px;
}

@keyframes timeShow {
    0% { opacity: 0; transform: translate(-50%, -50%) scale(0.8); }
    20% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    80% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0; transform: translate(-50%, -50%) scale(1.1); }
}

/* ========== 微信弹窗 - 仿真微信风格 ========== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.hidden {
    display: none;
}

.wechat-window {
    background: #ededed;
    width: 90%;
    max-width: 400px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: none;
}

.wechat-header {
    background: #ededed;
    padding: 14px 16px;
    border-bottom: 1px solid #d9d9d9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wechat-header span {
    font-weight: 500;
    color: #000;
    font-size: 1.05em;
    text-shadow: none;
}

.close-btn {
    background: transparent;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #666;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    box-shadow: none;
}

.close-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #333;
}

.wechat-content {
    background: #ededed;
    padding: 16px;
    min-height: 280px;
    max-height: 380px;
    overflow-y: auto;
}

.wechat-message {
    margin-bottom: 16px;
    animation: msgSlide 0.25s ease;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

@keyframes msgSlide {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.wechat-message.received {
    flex-direction: row;
}

.wechat-message.sent {
    flex-direction: row-reverse;
}

.wechat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    flex-shrink: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.wechat-message-wrapper {
    max-width: calc(100% - 60px);
    display: flex;
    flex-direction: column;
}

.wechat-message.received .wechat-message-wrapper {
    align-items: flex-start;
}

.wechat-message.sent .wechat-message-wrapper {
    align-items: flex-end;
}

.wechat-message.received .bubble {
    background: #fff;
    border: none;
    border-radius: 0 8px 8px 8px;
    padding: 10px 14px;
    display: inline-block;
    max-width: 100%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    line-height: 1.6;
    color: #000;
    font-size: 0.95em;
    position: relative;
}

.wechat-message.received .bubble::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 10px;
    border: 5px solid transparent;
    border-right-color: #fff;
}

.wechat-message.sent .bubble {
    background: #95ec69;
    color: #000;
    border: none;
    border-radius: 8px 0 8px 8px;
    padding: 10px 14px;
    display: inline-block;
    max-width: 100%;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    line-height: 1.6;
    font-size: 0.95em;
    position: relative;
}

.wechat-message.sent .bubble::before {
    content: '';
    position: absolute;
    right: -8px;
    top: 10px;
    border: 5px solid transparent;
    border-left-color: #95ec69;
}

.sender-name {
    font-size: 0.75em;
    color: #999;
    margin-bottom: 4px;
    padding-left: 2px;
}

.wechat-reply {
    background: #f7f7f7;
    padding: 16px;
    border-top: 1px solid #d9d9d9;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wechat-option {
    font-size: 0.9em !important;
    padding: 12px 16px !important;
    background: #fff !important;
    border: 1px solid #e0e0e0 !important;
    color: #333 !important;
}

.wechat-option:hover {
    background: #f5f5f5 !important;
    border-color: #ccc !important;
}

/* ========== 茶水间 - 深紫色主题 ========== */
#gossip-screen {
    background: linear-gradient(180deg, #1a1824 0%, #110f18 100%);
    justify-content: center;
    padding: 20px;
}

.gossip-card {
    padding: 0;
    overflow: hidden;
    background: rgba(26, 24, 36, 0.95);
    border: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.gossip-card .section-title {
    padding: 24px 24px 16px;
    color: #fff;
}

.gossip-card > div:last-child {
    padding: 0 24px 24px;
}

.gossip-cover {
    height: 200px;
    border-radius: 0;
}

.gossip-content {
    font-size: 1.05em;
    line-height: 2;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 24px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    border: none;
    box-shadow: none;
    margin: 16px 24px;
}

.gossip-header {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.95em;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.6);
}

.gossip-message {
    margin-bottom: 24px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 8px;
    border-left: 3px solid rgba(139, 92, 246, 0.4);
    animation: typeIn 0.6s ease forwards;
    font-style: italic;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.8;
}

#gossip-screen .btn-main {
    background: rgba(139, 92, 246, 0.15);
    border: none;
    color: #c4b5fd;
}

#gossip-screen .btn-main:hover {
    background: rgba(139, 92, 246, 0.25);
}

/* ========== 办公室汇报 - 深紫色主题 ========== */
#meeting-screen {
    background: linear-gradient(180deg, #1a1824 0%, #110f18 100%);
    justify-content: center;
    padding: 20px;
}

.meeting-card {
    padding: 0;
    overflow: hidden;
    background: rgba(26, 24, 36, 0.95);
    border: none;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.meeting-card .section-title {
    padding: 24px 24px 0;
    color: #fff;
}

.meeting-cover {
    height: 200px;
    border-radius: 0;
}

.meeting-content {
    font-size: 1.05em;
    line-height: 2;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 24px;
    text-align: left;
    padding: 16px 24px;
}

.meeting-intro {
    background: rgba(139, 92, 246, 0.15);
    padding: 16px 20px;
    margin-bottom: 20px;
    border-radius: var(--radius-md);
    border-left: 4px solid #8b5cf6;
    font-weight: 500;
    color: #c4b5fd;
}

#meeting-screen .option-btn {
    background: rgba(139, 92, 246, 0.1);
    border: none;
    color: rgba(255, 255, 255, 0.9);
}

#meeting-screen .option-btn:hover {
    background: rgba(139, 92, 246, 0.22);
}

.meeting-content p em {
    display: block;
    padding: 12px 16px;
    margin: 12px 0;
    background: var(--bg-secondary);
    border-left: 3px solid var(--text-muted);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: normal;
    color: var(--text-secondary);
}

.meeting-card .options-container {
    padding: 0 24px 24px;
}

/* ========== 过渡页面 ========== */
#transition-screen {
    background: linear-gradient(180deg, #1a1824 0%, #110f18 100%) !important;
    justify-content: center;
}

#transition-screen p {
    color: #a1a1aa;
}

#transition-screen .btn-main {
    background: transparent;
    border: 1px solid #52525b;
    color: #a1a1aa;
}

#transition-screen .btn-main:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #71717a;
}

/* ========== 结局页面 - 深紫色主题 ========== */
#ending-screen {
    background: linear-gradient(180deg, #1a1824 0%, #110f18 100%);
    min-height: 100vh;
    padding: 40px 20px;
}

.ending-container {
    max-width: 640px;
    width: 100%;
}

.ending-section {
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: var(--radius-lg);
    padding: 32px;
    margin-bottom: 24px;
}

#player-ending {
    background: transparent;
    border: none;
    text-align: center;
    padding: 48px 32px;
    margin-bottom: 32px;
}

#player-ending.ending-section {
    background: transparent;
    border: none;
}

.ending-title {
    font-weight: 600;
    color: #fafafa;
    font-size: 1.8em;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.ending-type {
    text-align: center;
    margin-bottom: 24px;
    padding: 0;
    display: inline-block;
    font-size: 1.5em;
    font-weight: 700;
    letter-spacing: 0.1em;
    border: none;
    color: #e0c080;
    background: none;
    text-transform: uppercase;
}

#player-ending .ending-content {
    text-align: center;
    max-width: 480px;
    margin: 0 auto;
    font-weight: 400;
    line-height: 2.2;
    color: #d4d4d8;
    font-size: 1.1em;
}

.ending-content p {
    margin-bottom: 8px;
}

.achievement {
    background: transparent;
    color: #a1a1aa;
    padding: 12px 0;
    display: inline-block;
    margin-top: 32px;
    font-weight: 400;
    border: none;
    font-size: 0.95em;
}

.achievement::before {
    content: '🏆 ';
}

/* 同事评价区域 */
#colleague-review {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

#colleague-review .ending-title {
    color: #fafafa;
    font-size: 1.2em;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 16px;
    text-align: left;
}

/* 匹配度区域 */
#match-rate {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

#match-rate .ending-title {
    color: #fafafa;
    font-size: 1.2em;
    text-align: left;
}

/* ========== 匹配度 ========== */
.match-score {
    text-align: center;
    margin-bottom: 24px;
    padding: 24px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
}

.match-score .number {
    font-size: 3em;
    color: #fafafa;
    font-weight: 600;
}

.match-score .label {
    font-size: 0.9em;
    color: #71717a;
    margin-top: 4px;
}

.match-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

.match-detail-item {
    background: rgba(255, 255, 255, 0.02);
    padding: 16px 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 16px;
}

.match-detail-item .label {
    font-size: 0.95em;
    color: #a1a1aa;
    min-width: 80px;
    flex-shrink: 0;
}

.match-detail-item .progress-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.match-detail-item .progress-bar {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
}

.match-detail-item .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #4a90d9, #67c6f7);
    border-radius: 4px;
    transition: width 1s ease-out;
    width: 0;
}

.match-detail-item .value {
    font-size: 1.1em;
    color: #fafafa;
    font-weight: 600;
    min-width: 50px;
    text-align: right;
}

/* ========== 同事评价 - 对话框样式 ========== */
.reviews-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: transparent;
    padding: 0;
    border: none;
}

.review-avatar {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.review-content-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.review-name {
    font-weight: 600;
    color: #a1a1aa;
    font-size: 0.85em;
    padding-left: 4px;
}

.review-bubble {
    background: rgba(255, 255, 255, 0.06);
    border-radius: 0 12px 12px 12px;
    padding: 14px 18px;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.review-bubble::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 12px;
    border: 5px solid transparent;
    border-right-color: rgba(255, 255, 255, 0.06);
}

.review-text {
    color: #d4d4d8;
    line-height: 1.8;
    font-size: 0.95em;
    font-weight: 400;
}

/* ========== 开场介绍 ========== */
.intro-text {
    text-align: left;
    font-size: 1.1em;
    line-height: 2;
    padding: 16px 48px;
}

.intro-text p {
    margin: 8px 0;
    animation: typeIn 0.5s ease forwards;
}

/* ========== 滚动条 ========== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: #d4d4d4;
    border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a3a3a3;
}

/* ========== 页面过渡动画 ========== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.screen:not(.hidden) {
    animation: fadeIn 0.25s ease;
}

/* ========== 按钮禁用状态 ========== */
.btn-main:disabled,
.option-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
}

/* ========== 最终数值区域 ========== */
.final-stats {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.final-stats h3 {
    font-weight: 500;
    text-align: left;
    margin-bottom: 16px;
    color: #a1a1aa;
    font-size: 1em;
}

.final-stats .match-details {
    margin-top: 0;
}

.final-stats .match-detail-item {
    background: rgba(255, 255, 255, 0.01);
}

.final-stats .match-detail-item .progress-fill {
    background: linear-gradient(90deg, #6a8c5a, #8cb87a);
}

/* ========== 职业发展模块 ========== */
.career-module {
    margin: 40px 0;
    padding: 28px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
}

.career-module .ending-title {
    margin-bottom: 24px;
}

.career-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.career-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}

.career-label {
    font-size: 0.9em;
    color: #71717a;
    min-width: 70px;
}

.career-value {
    font-size: 1.1em;
    font-weight: 500;
    color: #e4e4e7;
}

.career-value.salary {
    color: #fbbf24;
}

.career-value.wealth {
    color: #a78bfa;
    font-style: italic;
}

.career-progress-container {
    flex: 1;
    min-width: 120px;
    max-width: 200px;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.career-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #8b5cf6);
    border-radius: 4px;
    transition: width 0.8s ease;
}

.career-progress-text {
    position: absolute;
    right: -40px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75em;
    color: #71717a;
    white-space: nowrap;
}

/* ========== 结局页面渐进动画 ========== */
.ending-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.ending-section.visible {
    opacity: 1;
    transform: translateY(0);
}

/* 打字机效果 */
.typewriter-text {
    overflow: hidden;
}

.typewriter-line {
    opacity: 0;
    transform: translateY(10px);
    animation: typeLine 0.5s ease forwards;
}

@keyframes typeLine {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 结局页面按钮 */
#ending-screen .btn-main {
    background: rgba(139, 92, 246, 0.15);
    border: none;
    color: #c4b5fd;
}

#ending-screen .btn-main:hover {
    background: rgba(139, 92, 246, 0.25);
}

/* ========== 响应式设计 ========== */
@media (max-width: 768px) {
    .title-card h1 {
        font-size: 1.8em;
    }
    
    .stats-bar {
        gap: 8px;
        padding: 10px 16px;
    }
    
    .stat-item {
        padding: 4px 10px;
    }
    
    .stat-label {
        font-size: 0.8em;
    }
    
    .stat-value {
        font-size: 0.9em;
    }
    
    .time-display {
        font-size: 1.6em;
        padding: 24px 24px 0;
    }
    
    .scene-content {
        padding: 12px 24px 24px;
        font-size: 1em;
    }
    
    .scene-icon {
        margin: -32px 24px 12px;
        width: 64px;
        height: 64px;
        font-size: 2em;
    }
    
    .options-wrapper {
        padding: 0 24px 32px;
    }
    
    .option-btn {
        padding: 14px 16px;
        font-size: 0.95em;
    }
    
    .match-details {
        grid-template-columns: 1fr 1fr;
    }
    
    .intro-text {
        padding: 12px 24px;
    }
    
    /* 沉浸式界面响应式 */
    .immersive-header {
        padding: 12px 16px;
        background: linear-gradient(to bottom, rgba(10, 10, 15, 0.95) 0%, rgba(10, 10, 15, 0.7) 70%, transparent 100%);
    }
    
    .timeline-container {
        max-width: 100%;
        margin: 0 auto 12px;
    }
    
    .timeline-label {
        font-size: 0.7em;
    }
    
    .timeline-track {
        height: 5px;
    }
    
    .timeline-marker {
        width: 12px;
        height: 12px;
    }
    
    .stats-bar-mini {
        gap: 8px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .stat-mini {
        padding: 4px 10px;
        font-size: 0.85em;
    }
    
    .immersive-content {
        padding: 0 16px 40px;
        margin-top: auto;
    }
    
    .immersive-screen .scene-content {
        font-size: 1.05em;
        line-height: 1.8;
    }
    
    .scene-options-container {
        max-width: 100%;
    }
    
    .immersive-screen .option-btn {
        padding: 14px 16px;
        font-size: 0.95em;
    }
    
    /* 时间徽章移动端 */
    .scene-time-badge {
        font-size: 0.85em;
    }
    
    .time-transition-display .time-big {
        font-size: 3em;
    }
    
    /* 部长谈话移动端适配 */
    #meeting-screen {
        padding: 12px;
    }
    
    .meeting-card {
        width: 100%;
        max-width: 100%;
    }
    
    .meeting-card .section-title {
        padding: 16px 16px 0;
        font-size: 1.1em;
    }
    
    .meeting-cover {
        height: 160px;
    }
    
    .meeting-content {
        padding: 16px;
        font-size: 1.05em;
    }
    
    .meeting-intro {
        padding: 12px 14px;
        margin-bottom: 16px;
        font-size: 1em;
        font-size: 0.95em;
    }
    
    .meeting-card .options-container {
        padding: 0 16px 16px;
    }
    
    /* 茶水间移动端适配 */
    #gossip-screen {
        padding: 12px;
    }
    
    .gossip-card {
        width: 100%;
        max-width: 100%;
    }
    
    .gossip-card .section-title {
        padding: 16px 16px 12px;
        font-size: 1.1em;
    }
    
    .gossip-cover {
        height: 160px;
    }
    
    .gossip-content {
        padding: 16px;
        margin-bottom: 16px;
        font-size: 1.05em;
    }
    
    .gossip-message {
        padding: 12px 14px;
        margin-bottom: 16px;
        font-size: 1em;
    }
    
    .gossip-card > div:last-child {
        padding: 0 16px 16px;
    }
    
    #gossip-screen .btn-main {
        width: 100%;
        padding: 14px;
    }
}

@media (max-width: 480px) {
    .title-card {
        padding: 32px 24px;
    }
    
    .title-card h1 {
        font-size: 1.6em;
    }
    
    .paper-card {
        padding: 24px 20px;
    }
    
    .btn-main {
        padding: 10px 20px;
        font-size: 0.95em;
        width: 100%;
    }
    
    .stat-item {
        padding: 4px 8px;
    }
    
    .time-display {
        font-size: 1.4em;
        padding: 20px 20px 0;
    }
    
    .scene-content {
        padding: 12px 20px 20px;
    }
    
    .scene-icon {
        margin: -28px 20px 12px;
        width: 56px;
        height: 56px;
        font-size: 1.8em;
    }
    
    .options-wrapper {
        padding: 0 20px 28px;
    }
    
    .ending-title {
        font-size: 1.4em;
    }
    
    .match-score .number {
        font-size: 2.4em;
    }
    
    .match-details {
        grid-template-columns: 1fr;
    }
    
    .intro-text {
        padding: 12px 20px;
    }
}

/* ========== OA 系统样式 ========== */
#oa-screen {
    background: linear-gradient(135deg, #008080 0%, #004040 100%);
    padding: 40px 20px;
    justify-content: flex-start;
}

/* CRT 效果容器 */
#oa-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.1),
        rgba(0, 0, 0, 0.1) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 1;
}

.oa-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.oa-doc-container {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    padding-top: 20px;
}

/* 系统标题栏（蓝色） */
.oa-system-header {
    background: linear-gradient(90deg, #000080, #1084d0);
    padding: 4px 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 0;
}

.oa-system-icon {
    font-size: 1em;
}

.oa-system-title {
    color: #ffffff;
    font-size: 0.85em;
    font-weight: bold;
    flex: 1;
}

.oa-system-time {
    color: #ffffff;
    font-size: 0.8em;
    font-family: 'Courier New', monospace;
    margin-right: 10px;
}

.oa-system-controls {
    display: flex;
    gap: 2px;
}

.oa-control-btn {
    width: 18px;
    height: 18px;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    font-size: 0.7em;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    color: #000;
}

/* 菜单栏 */
.oa-window-menu {
    background: #c0c0c0;
    padding: 2px 4px;
    border-bottom: 1px solid #808080;
    display: flex;
    gap: 15px;
    font-size: 0.8em;
    color: #000;
}

/* 主窗口（灰白色） */
.oa-window-main {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #dfdfdf #808080 #808080 #dfdfdf;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}

/* Banner 横幅 */
.oa-banner {
    width: 100%;
    height: 200px;
    background: #e0e0e0;  /* 默认灰色背景 */
    /* 如需配置图片，请取消下面这行注释，并替换为你的图片路径：
    background: #ffffff url('你的图片路径.png') center/cover;
    */
    border-bottom: 2px solid;
    border-color: #808080 #dfdfdf #dfdfdf #808080;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Banner 占位提示 */
.oa-banner::before {
    content: '📬 OA 办公系统';
    font-size: 2em;
    color: #808080;
    text-shadow: 1px 1px 2px rgba(255,255,255,0.5);
    font-weight: bold;
    /* 如果配置了背景图片，可以删除这个 ::before 伪元素的内容 */
}

.oa-banner::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.05),
        rgba(0, 0, 0, 0.05) 2px,
        transparent 2px,
        transparent 4px
    );
    pointer-events: none;
}

/* 工具栏 */
.oa-toolbar {
    background: #c0c0c0;
    border-bottom: 2px solid;
    border-color: #808080 #dfdfdf #dfdfdf #808080;
    padding: 12px 16px;
}

.oa-toolbar-title {
    color: #000080;
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 4px;
    font-family: 'Microsoft YaHei', sans-serif;
}

.oa-toolbar-subtitle {
    color: #666;
    font-size: 0.8em;
    font-family: 'Microsoft YaHei', sans-serif;
}

.oa-toolbar-badge {
    display: inline-block;
    background: #ff0000;
    color: #ffff00;
    padding: 2px 8px;
    margin-left: 8px;
    font-size: 0.75em;
    font-weight: bold;
    border: 2px solid;
    border-color: #ffffff #000000 #000000 #ffffff;
    animation: oa-blink 1s infinite;
}

@keyframes oa-blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0.3; }
}

/* 文件列表 */
.oa-file-list {
    padding: 16px;
    min-height: 300px;
    background: #ffffff;
}

.oa-file-item {
    background: #ffffff;
    border: 1px solid #808080;
    margin-bottom: 12px;
    padding: 12px 14px;
    cursor: pointer;
    transition: all 0.15s;
    position: relative;
}

.oa-file-item::before {
    content: '●';
    position: absolute;
    left: -20px;
    top: 12px;
    color: #ff0000;
    font-size: 0.8em;
    animation: oa-blink 1.5s infinite;
}

.oa-file-item.read::before {
    color: #808080;
    animation: none;
}

.oa-file-item:hover:not(.disabled):not(.read) {
    background: #e8e8e8;
    border-color: #000080;
}

.oa-file-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f0f0f0;
}

.oa-file-item.disabled::before {
    color: #c0c0c0;
    animation: none;
}

.oa-file-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.oa-file-icon {
    color: #000080;
    font-size: 1.2em;
}

.oa-file-title {
    color: #000000;
    font-size: 0.95em;
    font-weight: bold;
    flex: 1;
    font-family: 'Microsoft YaHei', sans-serif;
}

.oa-file-title.oa-important::before {
    content: '[重要] ';
    color: #ff0000;
}

.oa-file-meta {
    display: flex;
    gap: 12px;
    color: #666;
    font-size: 0.75em;
    padding-left: 32px;
    font-family: 'Microsoft YaHei', sans-serif;
}

/* 底部状态栏 */
.oa-window-footer {
    background: #c0c0c0;
    border-top: 2px solid;
    border-color: #dfdfdf #808080 #808080 #dfdfdf;
    padding: 8px 16px;
    display: flex;
    gap: 16px;
    font-size: 0.85em;
    font-family: 'Microsoft YaHei', sans-serif;
}

.oa-footer-section {
    border: 2px solid;
    border-color: #808080 #dfdfdf #dfdfdf #808080;
    padding: 2px 8px;
    background: #f0f0f0;
    color: #000;
}

/* 进度条（Windows 风格） */
.oa-progress-bar {
    background: #ffffff;
    border: 2px solid;
    border-color: #808080 #dfdfdf #dfdfdf #808080;
    height: 28px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.oa-progress-fill {
    height: 100%;
    background: #000080;
    transition: width 0.3s;
}

.oa-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 0.8em;
    font-weight: bold;
    text-shadow: 1px 1px 1px #000;
    mix-blend-mode: difference;
    font-family: 'Microsoft YaHei', sans-serif;
}

/* 红头文件窗口 */
.oa-doc-window {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #dfdfdf #808080 #808080 #dfdfdf;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}

.oa-doc-titlebar {
    background: linear-gradient(180deg, #0055aa 0%, #003388 100%);
    padding: 4px 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.oa-doc-tag {
    background: #ff0000;
    color: #ffff00;
    padding: 2px 8px;
    font-size: 0.7em;
    border: 2px solid;
    border-color: #ffffff #000000 #000000 #ffffff;
    font-weight: bold;
}

.oa-doc-tag.oa-normal {
    background: #0000ff;
    color: #ffffff;
}

.oa-doc-titlebar-text {
    color: #ffffff;
    font-size: 0.9em;
    font-weight: bold;
    flex: 1;
    font-family: 'Microsoft YaHei', sans-serif;
}

.oa-doc-date {
    color: #ffffff;
    font-size: 0.75em;
    font-family: 'Courier New', monospace;
}

/* 红头文件内容区 */
.oa-doc-content {
    background: #f5f5dc;
    padding: 40px 50px;
    min-height: 500px;
    color: #000;
    line-height: 2;
    font-size: 0.95em;
    font-family: 'SimSun', 'STSong', serif;
    border: 4px solid #c0c0c0;
    position: relative;
}

/* 红头部分 */
.oa-doc-redhead {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 3px double #c00;
    margin-bottom: 24px;
}

.oa-doc-org {
    color: #c00;
    font-size: 1.4em;
    font-weight: bold;
    letter-spacing: 0.2em;
    margin-bottom: 8px;
}

.oa-doc-number {
    color: #666;
    font-size: 0.85em;
    letter-spacing: 0.1em;
}

/* 文件标题 */
.oa-doc-title {
    text-align: center;
    font-size: 1.5em;
    font-weight: bold;
    color: #000;
    margin: 24px 0 32px;
    letter-spacing: 0.1em;
}

/* 正文内容 */
.oa-doc-body p {
    text-indent: 2em;
    margin-bottom: 16px;
    color: #222;
}

.oa-doc-body strong {
    font-weight: bold;
    text-decoration: underline;
}

.oa-doc-section {
    background: rgba(0,0,0,0.03);
    border: 1px solid #ccc;
    padding: 16px;
    margin: 20px 0;
}

.oa-doc-section-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #000;
}

.oa-doc-dept {
    text-align: right;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ccc;
    color: #444;
}

/* 红章（公章效果） */
.oa-doc-stamp {
    position: absolute;
    bottom: 80px;
    right: 80px;
    width: 100px;
    height: 100px;
    border: 3px solid #c00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c00;
    font-size: 0.7em;
    font-weight: bold;
    transform: rotate(-15deg);
    opacity: 0.7;
    text-align: center;
    line-height: 1.3;
}

/* 选项提示区 */
.oa-doc-prompt {
    background: #c0c0c0;
    border-top: 2px solid;
    border-color: #dfdfdf #808080 #808080 #dfdfdf;
    padding: 12px 24px;
    color: #000080;
    text-align: center;
    font-weight: bold;
    font-family: 'Microsoft YaHei', sans-serif;
}

/* 选项按钮（Windows 95 按钮风格） */
.oa-doc-options {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #c0c0c0;
}

.oa-option-btn {
    background: #ffffff;
    border: 1px solid #808080;
    color: #000000;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.15s;
    text-align: left;
    font-family: 'Microsoft YaHei', 'SimSun', sans-serif;
    font-size: 0.9em;
    position: relative;
}

.oa-option-btn::before {
    content: '▸';
    color: #000080;
    margin-right: 8px;
    font-size: 0.9em;
}

.oa-option-btn:hover {
    background: #e8e8e8;
    border-color: #000080;
}

.oa-option-btn:active {
    background: #d0d0d0;
}

.oa-option-btn.selected {
    background: #000080;
    color: #ffffff;
    border-color: #000080;
}

.oa-option-btn.selected::before {
    color: #ffff00;
}

/* 返回按钮 */
.oa-back-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    background: #ffffff;
    border: 1px solid #808080;
    color: #000000;
    padding: 8px 16px;
    cursor: pointer;
    font-family: 'Microsoft YaHei', sans-serif;
    font-size: 0.85em;
    z-index: 100;
}

.oa-back-btn:hover {
    background: #d0d0d0;
}

.oa-back-btn:active {
    border-color: #000000 #ffffff #ffffff #000000;
    padding: 9px 15px 7px 17px;
}

/* 工具栏 */
.oa-toolbar {
    background: #c0c0c0;
    border-bottom: 2px solid;
    border-color: #808080 #dfdfdf #dfdfdf #808080;
    padding: 12px 16px;
}

.oa-toolbar-title {
    color: #000080;
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 4px;
    font-family: 'Microsoft YaHei', sans-serif;
}

.oa-toolbar-subtitle {
    color: #666;
    font-size: 0.8em;
    font-family: 'Microsoft YaHei', sans-serif;
}

.oa-toolbar-badge {
    display: inline-block;
    background: #ff0000;
    color: #ffff00;
    padding: 2px 8px;
    margin-left: 8px;
    font-size: 0.75em;
    font-weight: bold;
    border: 2px solid;
    border-color: #ffffff #000000 #000000 #ffffff;
    animation: oa-blink 1s infinite;
}

@keyframes oa-blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0.3; }
}

/* 文件列表 */
.oa-file-list {
    padding: 16px;
    min-height: 300px;
    background: #ffffff;
}

.oa-file-item {
    background: #ffffff;
    border: 1px solid #808080;
    margin-bottom: 12px;
    padding: 12px 14px;
    cursor: pointer;
    transition: all 0.15s;
    position: relative;
}

.oa-file-item::before {
    content: '●';
    position: absolute;
    left: -20px;
    top: 12px;
    color: #ff0000;
    font-size: 0.8em;
    animation: oa-blink 1.5s infinite;
}

.oa-file-item.read::before {
    color: #808080;
    animation: none;
}

.oa-file-item:hover:not(.disabled):not(.read) {
    background: #e8e8e8;
    border-color: #000080;
}

.oa-file-item.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f0f0f0;
}

.oa-file-item.disabled::before {
    color: #c0c0c0;
    animation: none;
}

.oa-file-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.oa-file-icon {
    color: #000080;
    font-size: 1.2em;
}

.oa-file-title {
    color: #000000;
    font-size: 0.95em;
    font-weight: bold;
    flex: 1;
    font-family: 'Microsoft YaHei', sans-serif;
}

.oa-file-title.oa-important::before {
    content: '[重要] ';
    color: #ff0000;
}

.oa-file-meta {
    display: flex;
    gap: 12px;
    color: #666;
    font-size: 0.75em;
    padding-left: 32px;
    font-family: 'Microsoft YaHei', sans-serif;
}

/* 底部状态栏 */
.oa-window-footer {
    background: #c0c0c0;
    border-top: 2px solid;
    border-color: #dfdfdf #808080 #808080 #dfdfdf;
    padding: 8px 16px;
    display: flex;
    gap: 16px;
    font-size: 0.85em;
    font-family: 'Microsoft YaHei', sans-serif;
}

.oa-footer-section {
    border: 2px solid;
    border-color: #808080 #dfdfdf #dfdfdf #808080;
    padding: 2px 8px;
    background: #f0f0f0;
    color: #000;
}

/* 进度条（Windows 风格） */
.oa-progress-bar {
    background: #ffffff;
    border: 2px solid;
    border-color: #808080 #dfdfdf #dfdfdf #808080;
    height: 28px;
    margin-bottom: 24px;
    position: relative;
    overflow: hidden;
}

.oa-progress-fill {
    height: 100%;
    background: #000080;
    transition: width 0.3s;
}

.oa-progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 0.8em;
    font-weight: bold;
    text-shadow: 1px 1px 1px #000;
    mix-blend-mode: difference;
    font-family: 'Microsoft YaHei', sans-serif;
}

/* 红头文件窗口 */
.oa-doc-window {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #dfdfdf #808080 #808080 #dfdfdf;
    box-shadow: 2px 2px 5px rgba(0,0,0,0.3);
}

.oa-doc-titlebar {
    background: linear-gradient(180deg, #0055aa 0%, #003388 100%);
    padding: 4px 8px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.oa-doc-tag {
    background: #ff0000;
    color: #ffff00;
    padding: 2px 8px;
    font-size: 0.7em;
    border: 2px solid;
    border-color: #ffffff #000000 #000000 #ffffff;
    font-weight: bold;
}

.oa-doc-tag.oa-normal {
    background: #0000ff;
    color: #ffffff;
}

.oa-doc-titlebar-text {
    color: #ffffff;
    font-size: 0.9em;
    font-weight: bold;
    flex: 1;
    font-family: 'Microsoft YaHei', sans-serif;
}

.oa-doc-date {
    color: #ffffff;
    font-size: 0.75em;
    font-family: 'Courier New', monospace;
}

/* 红头文件内容区 */
.oa-doc-content {
    background: #f5f5dc;
    padding: 40px 50px;
    min-height: 500px;
    color: #000;
    line-height: 2;
    font-size: 0.95em;
    font-family: 'SimSun', 'STSong', serif;
    border: 4px solid #c0c0c0;
    position: relative;
}

/* 红头部分 */
.oa-doc-redhead {
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 3px double #c00;
    margin-bottom: 24px;
}

.oa-doc-org {
    color: #c00;
    font-size: 1.4em;
    font-weight: bold;
    letter-spacing: 0.2em;
    margin-bottom: 8px;
}

.oa-doc-number {
    color: #666;
    font-size: 0.85em;
    letter-spacing: 0.1em;
}

/* 文件标题 */
.oa-doc-title {
    text-align: center;
    font-size: 1.5em;
    font-weight: bold;
    color: #000;
    margin: 24px 0 32px;
    letter-spacing: 0.1em;
}

/* 正文内容 */
.oa-doc-body p {
    text-indent: 2em;
    margin-bottom: 16px;
    color: #222;
}

.oa-doc-body strong {
    font-weight: bold;
    text-decoration: underline;
}

.oa-doc-section {
    background: rgba(0,0,0,0.03);
    border: 1px solid #ccc;
    padding: 16px;
    margin: 20px 0;
}

.oa-doc-section-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #000;
}

.oa-doc-dept {
    text-align: right;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ccc;
    color: #444;
}

/* 红章（公章效果） */
.oa-doc-stamp {
    position: absolute;
    bottom: 80px;
    right: 80px;
    width: 100px;
    height: 100px;
    border: 3px solid #c00;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #c00;
    font-size: 0.7em;
    font-weight: bold;
    transform: rotate(-15deg);
    opacity: 0.7;
    text-align: center;
    line-height: 1.3;
}

/* 选项提示区 */
.oa-doc-prompt {
    background: #c0c0c0;
    border-top: 2px solid;
    border-color: #dfdfdf #808080 #808080 #dfdfdf;
    padding: 12px 24px;
    color: #000080;
    text-align: center;
    font-weight: bold;
    font-family: 'Microsoft YaHei', sans-serif;
}

/* 选项按钮（Windows 95 按钮风格） */
.oa-doc-options {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #c0c0c0;
}

.oa-option-btn {
    background: #ffffff;
    border: 1px solid #808080;
    color: #000000;
    padding: 12px 16px;
    cursor: pointer;
    transition: all 0.15s;
    text-align: left;
    font-family: 'Microsoft YaHei', 'SimSun', sans-serif;
    font-size: 0.9em;
    position: relative;
}

.oa-option-btn::before {
    content: '▸';
    color: #000080;
    margin-right: 8px;
    font-size: 0.9em;
}

.oa-option-btn:hover {
    background: #e8e8e8;
    border-color: #000080;
}

.oa-option-btn:active {
    background: #d0d0d0;
}

.oa-option-btn.selected {
    background: #000080;
    color: #ffffff;
    border-color: #000080;
}

.oa-option-btn.selected::before {
    color: #ffff00;
}

/* 返回按钮 */
.oa-back-btn {
    position: fixed;
    top: 20px;
    left: 20px;
    background: #ffffff;
    border: 1px solid #808080;
    color: #000000;
    padding: 8px 16px;
    cursor: pointer;
    font-family: 'Microsoft YaHei', sans-serif;
    font-size: 0.85em;
    z-index: 100;
}

.oa-back-btn:hover {
    background: #d0d0d0;
}

.oa-back-btn:active {
    border-color: #000000 #ffffff #ffffff #000000;
    padding: 9px 15px 7px 17px;
}

/* OA 弹窗 */
.oa-popup {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    padding: 48px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    max-width: 500px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.oa-popup-time {
    font-size: 3em;
    font-weight: 300;
    color: #fbbf24;
    margin-bottom: 24px;
    text-shadow: 0 2px 10px rgba(251, 191, 36, 0.3);
    font-family: 'Courier New', monospace;
}

.oa-popup-content {
    margin-bottom: 32px;
}

.oa-popup-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1em;
    line-height: 1.8;
    margin: 0;
}

@media (max-width: 768px) {
    .oa-popup {
        padding: 36px 28px;
        max-width: 90%;
    }
    
    .oa-popup-time {
        font-size: 2.5em;
    }
}

/* ========== AI 适配度分析 ========== */
#compatibility-analysis {
    margin-top: 40px;
}

/* 适配度分析容器 */
#analysis-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.analysis-section {
    background: rgba(139, 92, 246, 0.12);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 12px;
    padding: 20px 24px;
    position: relative;
    transition: all 0.3s ease;
}

.analysis-section:hover {
    background: rgba(139, 92, 246, 0.18);
    border-color: rgba(139, 92, 246, 0.3);
}

.analysis-section .analysis-icon {
    font-size: 1.4em;
    margin-bottom: 8px;
    display: inline-block;
}

.analysis-section h3 {
    font-size: 1.1em;
    color: #ffffff;
    margin-bottom: 12px;
    font-weight: 600;
    display: inline-block;
    margin-left: 8px;
    vertical-align: middle;
}

/* 分析内容区域 */
.analysis-section .analysis-content {
    color: rgba(255, 255, 255, 0.9);
    line-height: 2;
    font-size: 0.95em;
    margin-top: 8px;
}

.analysis-section .analysis-content strong {
    color: #ffffff;
    font-weight: 600;
}

.analysis-section .analysis-content .stars {
    color: #fbbf24;
}

.analysis-section p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.9;
    font-size: 0.95em;
    margin-top: 8px;
}

/* 优势部分 - 绿色调 */
.analysis-section.pros {
    border-left: 3px solid rgba(34, 197, 94, 0.5);
}

/* 挑战部分 - 橙色调 */
.analysis-section.cons {
    border-left: 3px solid rgba(251, 146, 60, 0.5);
}

/* 剧本部分 - 紫色调 */
.analysis-section.timeline {
    border-left: 3px solid rgba(168, 85, 247, 0.5);
}

/* 灵魂拷问 - 特殊样式 */
.analysis-section.question {
    background: rgba(239, 68, 68, 0.08);
    border: none;
    border-left: 3px solid rgba(239, 68, 68, 0.4);
}

.analysis-section.question .soul-question {
    font-size: 1.05em;
    font-weight: 500;
    color: #ffffff;
    line-height: 2;
}

/* 建议部分 - 蓝色调 */
.analysis-section.advice {
    border-left: 3px solid rgba(59, 130, 246, 0.6);
    background: rgba(59, 130, 246, 0.05);
}

/* ========== 分析页面按钮样式 ========== */
.btn-analysis {
    background: rgba(139, 92, 246, 0.15);
    color: #c4b5fd;
    border: none;
    padding: 14px 28px;
    font-size: 1.1em;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-analysis:hover {
    background: rgba(139, 92, 246, 0.25);
}

/* 重新开始按钮 - 无边框 */
.btn-restart {
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    border: none;
    padding: 12px 24px;
    font-size: 0.95em;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-restart:hover {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.05);
}

.btn-secondary {
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 12px 24px;
    font-size: 0.95em;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-back {
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    border: none;
    padding: 8px 16px;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-back:hover {
    color: rgba(255, 255, 255, 0.9);
}

/* 分析页面头部 */
.analysis-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.analysis-page-title {
    font-size: 1.5em;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
    flex: 1;
    text-align: center;
    padding-right: 80px; /* 平衡返回按钮的宽度 */
}

/* ========== AI 加载状态 ========== */
.ai-loading {
    text-align: center;
    padding: 40px 20px 50px;
    color: #c4b5fd;
    font-size: 1.1em;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 12px;
    margin: 20px 0;
}

.ai-loading::before {
    content: '🔮';
    display: block;
    font-size: 2em;
    margin-bottom: 16px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.7; }
}

.loading-text {
    transition: opacity 0.3s ease;
    display: inline-block;
    font-weight: 500;
}

.loading-dots::after {
    content: '';
    animation: dots 1.5s infinite;
}

@keyframes dots {
    0%, 20% { content: ''; }
    40% { content: '.'; }
    60% { content: '..'; }
    80%, 100% { content: '...'; }
}

/* ========== 分析卡片加载状态 ========== */
.ai-loading-card {
    background: rgba(139, 92, 246, 0.08);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    padding: 30px;
    margin: 20px 0;
}

.loading-progress {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
}

.loading-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(139, 92, 246, 0.2);
    border-top-color: #8b5cf6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.loading-progress .loading-text {
    font-size: 1.1em;
    color: #c4b5fd;
    font-weight: 500;
}

.loading-sections {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.loading-section-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 10px;
    transition: all 0.3s ease;
}

.loading-section-item.active {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.loading-section-item.done {
    opacity: 0.6;
}

.loading-section-item.done .section-status {
    color: #22c55e;
}

.section-icon {
    font-size: 1.2em;
    width: 28px;
    text-align: center;
}

.section-name {
    flex: 1;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95em;
}

.section-status {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.9em;
}

/* ========== 分析卡片样式 ========== */
.analysis-cards-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 10px 0;
}

.analysis-card {
    background: rgba(30, 27, 45, 0.95);
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 24px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15) 0%, rgba(139, 92, 246, 0.05) 100%);
    border-bottom: 1px solid rgba(139, 92, 246, 0.15);
}

.card-icon {
    font-size: 1.5em;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(139, 92, 246, 0.2);
    border-radius: 12px;
}

.card-title {
    flex: 1;
    font-size: 1.15em;
    font-weight: 600;
    color: #ffffff;
    margin: 0;
}

.card-index {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
    padding: 4px 10px;
    border-radius: 20px;
}

.card-body {
    padding: 24px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 2;
    font-size: 0.95em;
}

.card-body strong {
    color: #ffffff;
    font-weight: 600;
}

.card-body .stars {
    color: #fbbf24;
    letter-spacing: 2px;
}

.card-body .fire-icon {
    font-size: 1.1em;
}

/* 卡片类型特殊样式 */
.analysis-card.personality {
    border-color: rgba(168, 85, 247, 0.4);
}

.analysis-card.personality .card-header {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2) 0%, rgba(168, 85, 247, 0.05) 100%);
}

.analysis-card.matching {
    border-color: rgba(59, 130, 246, 0.4);
}

.analysis-card.matching .card-header {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.05) 100%);
}

.analysis-card.pros {
    border-color: rgba(34, 197, 94, 0.4);
}

.analysis-card.pros .card-header {
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.05) 100%);
}

.analysis-card.cons {
    border-color: rgba(251, 146, 60, 0.4);
}

.analysis-card.cons .card-header {
    background: linear-gradient(135deg, rgba(251, 146, 60, 0.15) 0%, rgba(251, 146, 60, 0.05) 100%);
}

.analysis-card.question {
    border-color: rgba(239, 68, 68, 0.4);
}

.analysis-card.question .card-header {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.05) 100%);
}

.analysis-card.question .soul-question {
    font-size: 1.02em;
    line-height: 2.2;
}

.analysis-card.advice {
    border-color: rgba(99, 102, 241, 0.4);
}

.analysis-card.advice .card-header {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(99, 102, 241, 0.05) 100%);
}

/* ========== 骨架加载状态 ========== */
.analysis-card.loading-skeleton {
    opacity: 0.7;
}

.analysis-card.loading-skeleton .card-body {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 20px 0;
}

.loading-dots {
    display: flex;
    gap: 6px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background: rgba(139, 92, 246, 0.6);
    border-radius: 50%;
    animation: loadingDot 1.4s infinite ease-in-out both;
}

.loading-dots span:nth-child(1) {
    animation-delay: -0.32s;
}

.loading-dots span:nth-child(2) {
    animation-delay: -0.16s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0s;
}

@keyframes loadingDot {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.loading-hint {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85em;
}

/* 卡片加载完成动画 */
.analysis-card.loaded {
    opacity: 1;
}

@keyframes cardLoaded {
    0% {
        opacity: 0.7;
        transform: scale(0.98);
    }
    50% {
        transform: scale(1.01);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* 移动端卡片适配 */
@media (max-width: 768px) {
    .analysis-card {
        border-radius: 16px;
    }
    
    .card-header {
        padding: 16px 18px;
    }
    
    .card-icon {
        font-size: 1.3em;
        width: 36px;
        height: 36px;
    }
    
    .card-title {
        font-size: 1.05em;
    }
    
    .card-body {
        padding: 18px;
        font-size: 0.92em;
        line-height: 1.9;
    }
    
    .loading-section-item {
        padding: 10px 14px;
    }
    
    .section-name {
        font-size: 0.88em;
    }
}

/* ========== 突发事件系统 ========== */
.emergency-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.emergency-modal.hidden {
    display: none;
}

/* 突发事件提示页 */
.emergency-alert {
    width: 100%;
    max-width: 400px;
    background: linear-gradient(135deg, #ff6b6b 0%, #c0392b 100%);
    border-radius: 20px;
    padding: 50px 30px;
    text-align: center;
    color: white;
    box-shadow: 0 20px 60px rgba(192, 57, 43, 0.5);
}

.emergency-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.emergency-title {
    font-size: 32px;
    font-weight: bold;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.emergency-subtitle {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 40px;
}

/* 场景描述页 */
.emergency-scene {
    width: 100%;
    max-width: 400px;
    background: #f8f9fa;
    border-radius: 20px;
    padding: 25px;
    max-height: 85vh;
    overflow-y: auto;
}

.emergency-scene .scene-location {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #c0392b 0%, #922b21 100%);
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    margin-bottom: 20px;
}

.emergency-scene .scene-desc {
    color: #495057;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 20px;
}

.emergency-scene .scene-note {
    color: #868e96;
    font-size: 14px;
    font-style: italic;
    margin-bottom: 15px;
}

.emergency-scene .character-box {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.emergency-scene .character-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.emergency-scene .character-avatar {
    font-size: 32px;
}

.emergency-scene .character-name {
    font-weight: 600;
    color: #212529;
}

.emergency-scene .character-dialogue {
    color: #495057;
    font-size: 15px;
    line-height: 2;
}

.emergency-scene .character-dialogue p {
    margin-bottom: 5px;
}

.emergency-scene .character-note {
    color: #868e96;
    font-size: 14px;
    font-style: italic;
    margin-top: 15px;
}

.emergency-scene .options-title {
    font-size: 14px;
    color: #868e96;
    margin-bottom: 12px;
}

.emergency-scene .option-btn {
    display: block;
    width: 100%;
    padding: 14px 18px;
    margin-bottom: 10px;
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    font-size: 15px;
    color: #212529;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
}

.emergency-scene .option-btn:hover {
    border-color: #c0392b;
    background: #fff5f5;
    transform: translateX(5px);
}

.emergency-scene .option-btn .option-label {
    font-weight: 600;
    color: #c0392b;
    margin-right: 8px;
}

/* 采购卡片样式 */
.purchase-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 15px;
}

.purchase-card {
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.purchase-card .card-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.purchase-card .card-icon {
    font-size: 20px;
}

.purchase-card .card-source {
    font-weight: 600;
    color: #212529;
}

.purchase-card .card-name {
    color: #495057;
    font-size: 14px;
    margin-bottom: 4px;
}

.purchase-card .card-price {
    color: #c0392b;
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 4px;
}

.purchase-card .card-desc {
    color: #868e96;
    font-size: 13px;
}

/* 结果页 */
.emergency-result {
    width: 100%;
    max-width: 400px;
    background: #f8f9fa;
    border-radius: 20px;
    padding: 25px;
    max-height: 85vh;
    overflow-y: auto;
}

.emergency-result .result-choice {
    background: #fff5f5;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    border-left: 4px solid #c0392b;
}

.emergency-result .result-choice-label {
    font-size: 12px;
    color: #c0392b;
    margin-bottom: 5px;
}

.emergency-result .result-choice-text {
    color: #922b21;
    font-size: 15px;
}

.emergency-result .result-story {
    background: white;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
}

.emergency-result .result-story p {
    color: #495057;
    font-size: 15px;
    line-height: 1.9;
    margin-bottom: 8px;
}

.emergency-result .result-story .highlight {
    color: #c0392b;
    font-weight: 500;
}

.emergency-result .result-story .dialogue {
    color: #212529;
    font-weight: 500;
    padding: 10px 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 10px 0;
}

.emergency-result .inquiry-box {
    background: #fff5f5;
    border: 1px solid #ffcccc;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    font-size: 14px;
    color: #922b21;
}

.emergency-result .inquiry-box p {
    margin-bottom: 5px;
    line-height: 1.6;
}

/* 过渡页 */
.emergency-transition {
    width: 100%;
    max-width: 400px;
    background: linear-gradient(135deg, #2c1810 0%, #1a0f0a 100%);
    border-radius: 20px;
    padding: 60px 30px;
    text-align: center;
}

.emergency-transition .transition-icon {
    font-size: 60px;
    margin-bottom: 30px;
    animation: fadeInUp 0.8s ease-out;
}

.emergency-transition .transition-text {
    color: #e74c3c;
    font-size: 18px;
    line-height: 2;
    animation: fadeInUp 1s ease-out 0.2s both;
    margin-bottom: 40px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 突发事件按钮 */
.emergency-btn {
    display: block;
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.emergency-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(192, 57, 43, 0.4);
}

.emergency-btn.white {
    background: white;
    color: #c0392b;
}

.emergency-btn.outline {
    background: rgba(255,255,255,0.15);
    border: none;
    color: white;
}

.emergency-btn.outline:hover {
    background: rgba(255,255,255,0.25);
}

/* ========== OA列表项状态增强 ========== */
/* 已读项目置灰 */
.oa-file-item.read {
    opacity: 0.5;
    background: #e8e8e8 !important;
    cursor: default;
}

.oa-file-item.read .oa-file-title {
    color: #808080 !important;
}

.oa-file-item.read .oa-file-summary {
    color: #a0a0a0 !important;
}

/* 未读且可点击的项目高亮 */
.oa-file-item:not(.disabled):not(.read) {
    background: #fffde7 !important;
    border-color: #fbc02d #f9a825 #f9a825 #fbc02d !important;
    box-shadow: 0 2px 8px rgba(251, 192, 45, 0.3);
}

.oa-file-item:not(.disabled):not(.read):hover {
    background: #fff8c4 !important;
}

/* ========== 人事档案电脑界面风格 ========== */
.identity-computer-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.identity-bg-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.identity-bg-container .scene-background {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(3px);
    transform: scale(1.05);
}

.identity-desktop {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 480px;
}

.identity-window {
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.4);
}

.identity-window-title {
    background: linear-gradient(90deg, #000080, #1084d0);
    color: white;
    padding: 4px 6px;
    font-size: 0.85em;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 6px;
}

.identity-window-icon {
    font-size: 1em;
}

.identity-window-buttons {
    margin-left: auto;
    display: flex;
    gap: 2px;
}

.identity-window-buttons .win-btn {
    width: 18px;
    height: 18px;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7em;
    cursor: default;
}

.identity-window-buttons .win-close {
    color: #000;
}

.identity-window-menu {
    background: #c0c0c0;
    padding: 2px 4px;
    border-bottom: 1px solid #808080;
    display: flex;
    gap: 15px;
    font-size: 0.8em;
    color: #000;
}

.identity-window-content {
    background: #ffffff;
    margin: 4px;
    padding: 20px;
    border: 2px solid;
    border-color: #808080 #ffffff #ffffff #808080;
    max-height: 65vh;
    overflow-y: auto;
}

.identity-form-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #c0c0c0;
}

.identity-form-title {
    font-size: 1.2em;
    font-weight: bold;
    color: #000080;
    margin-bottom: 8px;
}

.identity-form-subtitle {
    font-size: 0.85em;
    color: #666;
}

.identity-form-group {
    margin-bottom: 20px;
}

.identity-form-label {
    font-size: 0.9em;
    font-weight: bold;
    color: #000;
    margin-bottom: 10px;
}

.identity-form-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.identity-form-btn {
    background: #ffffff;
    border: 1px solid #808080;
    padding: 12px 16px;
    font-size: 0.9em;
    color: #000;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s;
}

.identity-form-btn:hover {
    background: #e8e8e8;
    border-color: #000080;
}

.identity-form-btn:active {
    background: #d0d0d0;
}

.identity-form-btn.selected {
    background: #000080;
    color: #ffffff;
    border-color: #000080;
}

.identity-form-hint {
    text-align: center;
    font-size: 0.8em;
    color: #666;
    margin-top: 15px;
}

/* 提交按钮 - Windows 95 风格 */
.identity-submit-btn {
    width: 100%;
    padding: 10px 16px;
    margin-top: 20px;
    background: #c0c0c0;
    border: 2px solid;
    border-color: #ffffff #808080 #808080 #ffffff;
    color: #000;
    font-size: 0.95em;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.1s;
}

.identity-submit-btn:hover {
    background: #d4d4d4;
}

.identity-submit-btn:active {
    border-color: #808080 #ffffff #ffffff #808080;
    background: #b0b0b0;
}

.identity-submit-btn:disabled {
    color: #808080;
    cursor: not-allowed;
}

.identity-window-status {
    background: #c0c0c0;
    padding: 3px 8px;
    font-size: 0.75em;
    color: #000;
    display: flex;
    justify-content: space-between;
    border-top: 2px solid;
    border-color: #808080 #ffffff #ffffff #808080;
}

/* 分析页面备注提示 */
.analysis-note {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85em;
    margin: -10px 0 20px 0;
}

/* OA 文件正文使用仿宋 */
.oa-file-summary {
    color: #333;
    font-size: 0.9em;
    line-height: 1.6;
    margin-top: 8px;
    font-family: 'FangSong', 'STFangsong', 'FangSong_GB2312', serif;
}

/* ========== 移动端全局优化 ========== */
@media (max-width: 768px) {
    /* OA 系统字体放大 */
    .oa-file-title {
        font-size: 1.05em;
    }
    
    .oa-file-summary {
        font-size: 1em;
    }
    
    .oa-popup-content p {
        font-size: 1.15em;
    }
    
    /* 确保所有屏幕底部不露白 */
    .screen {
        min-height: 100vh;
        min-height: 100dvh;
    }
    
    #game-screen {
        background: transparent;
        min-height: 100vh;
        min-height: 100dvh;
    }
    
    #gossip-screen,
    #meeting-screen,
    #ending-screen,
    #analysis-screen {
        background: #110f18;
        min-height: 100vh;
        min-height: 100dvh;
    }
}
