/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #fff;
    overflow-x: hidden;
}

/* 页面切换 - 确保正确的显示逻辑 */
.page {
    display: none !important;
    min-height: 100vh;
    padding: 20px;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1;
}

.page.active {
    display: block !important;
    position: relative;
    z-index: 2;
}

/* 主菜单样式 */
#main-menu {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

#main-menu.active {
    display: flex !important;
}

/* 开场故事页面样式 */
#story-intro {
    display: none;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

#story-intro.active {
    display: flex !important;
}

.header {
    margin-bottom: 40px;
}

.game-title {
    font-size: 3rem;
    font-weight: bold;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
    color: #FFD700;
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 20px;
}

/* 科学家卡片网格 */
.scientists-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    max-width: 800px;
    width: 100%;
    margin-bottom: 40px;
    justify-content: center;
}

.scientist-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 25px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 0;
    --tip-opacity: 0.8;
}

.scientist-card::before {
    content: '点击姓名查看简介';
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 215, 0, 0.9);
    color: #333;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: bold;
    opacity: var(--tip-opacity);
    animation: tipPulse 3s ease-in-out infinite;
    z-index: 10;
    transition: opacity 0.3s ease;
}

.scientist-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.scientist-card.locked {
    opacity: 0.6;
    filter: grayscale(100%);
}

.scientist-avatar {
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.3);
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    border-radius: 50%;
    transition: transform 0.3s ease;
    display: block;
}

/* 备用方案：如果需要使用background-image */
.scientist-avatar.bg-mode {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

.scientist-card:hover .avatar-image {
    transform: scale(1.1);
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    position: relative;
}

.avatar-placeholder.curie {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
}

.avatar-placeholder.rutherford {
    background: linear-gradient(135deg, #4834d4, #686de0);
}

.avatar-placeholder.meitner {
    background: linear-gradient(135deg, #ff9ff3, #f368e0);
}

.avatar-placeholder.yumin {
    background: linear-gradient(135deg, #feca57, #ff9ff3);
}

.scientist-card h3 {
    font-size: 1.4rem;
    margin-bottom: 10px;
    color: #fff;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
    padding-bottom: 3px;
}

.scientist-card h3:hover {
    color: #FFD700 !important;
    border-bottom-color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
    transform: scale(1.05);
}

.scientist-card p {
    font-size: 0.95rem;
    opacity: 0.8;
    margin-bottom: 20px;
}

/* 进度指示器 */
.progress-indicator {
    margin-bottom: 20px;
}

.progress-text {
    font-size: 0.85rem;
    opacity: 0.7;
    display: block;
    margin-bottom: 8px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d2ff, #3a7bd5);
    border-radius: 3px;
    transition: width 0.3s ease;
}

/* 按钮样式 */
.enter-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.enter-btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.enter-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 粒子状态显示 */
.particle-status {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
    padding: 12px 25px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.particle-icon {
    font-size: 1.5rem;
    position: relative;
    transform: translateY(6px);
    animation: ghostBob 3s ease-in-out infinite;
}

.collected-papers {
    font-size: 1.1rem;
    font-weight: 600;
    color: #87ceeb;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* 游戏操作按钮 */
.game-actions {
    display: flex;
    gap: 25px;
    justify-content: center;
    margin: 35px 0;
    flex-wrap: wrap;
}

.puzzle-btn, .papers-btn {
    background: linear-gradient(135deg, #4ecdc4, #44a08d, #2c3e50);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.4s ease;
    box-shadow: 0 5px 15px rgba(78, 205, 196, 0.3);
    position: relative;
    overflow: hidden;
}

.puzzle-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    filter: grayscale(100%);
    transform: none !important;
}

.puzzle-btn:not(:disabled):hover, .papers-btn:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 8px 20px rgba(78, 205, 196, 0.5);
}

/* 章节页面样式 */
.chapter-page {
    display: none !important;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
}

.chapter-page.active {
    display: flex !important;
}

.chapter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
}

.back-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.chapter-info h2 {
    font-size: 2rem;
    margin-bottom: 5px;
}

.chapter-info p {
    opacity: 0.8;
}

.chapter-progress {
    font-size: 1.2rem;
    font-weight: bold;
}

/* 章节内容 */
.chapter-content {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 20px;
    min-height: 500px;
}

/* 章节导航 */
.chapter-navigation {
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.nav-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 25px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
}

.nav-btn:hover:not(:disabled) {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 顶部控制区域 */
.top-controls {
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 100;
    display: flex;
    gap: 8px;
}

.periodic-table-btn,
.global-help-btn {
    width: 45px;
    height: 45px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.periodic-table-btn:hover,
.global-help-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

/* 全局提示按钮特殊样式 */
.global-help-btn {
    background: rgba(0, 0, 0, 0.7);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.global-help-btn:hover {
    background: rgba(0, 0, 0, 0.9);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.periodic-table-icon {
    width: 20px;
    height: 20px;
    filter: invert(1);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .game-title {
        font-size: 2rem;
    }
    
    .scientists-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 15px;
        max-width: 400px;
    }
    
    .scientist-card {
        padding: 20px;
    }
    
    .scientist-card::before {
        font-size: 0.6rem;
        padding: 3px 6px;
        top: 8px;
        right: 8px;
    }
    
    .scientist-avatar {
        width: 80px;
        height: 80px;
    }
    
    .game-actions {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    
    .puzzle-btn, .papers-btn {
        width: 100%;
        max-width: 280px;
    }
    
    .chapter-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .chapter-content {
        padding: 20px;
    }
    
    .page {
        padding: 10px;
    }
    
    /* 移动端顶部控制区域调整 */
    .top-controls {
        top: 15px;
        right: 15px;
    }
    
    .periodic-table-btn,
    .global-help-btn {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }

    /* 首次引导在移动端的适配 */
    #first-time-guidance {
        max-width: 90% !important;
        padding: 20px !important;
        margin: 0 20px;
    }
}

@media (max-width: 480px) {
    .game-title {
        font-size: 1.5rem;
    }
    
    .scientist-card {
        padding: 15px;
    }
    
    .scientist-avatar {
        width: 70px;
        height: 70px;
    }
    
    .scientist-card h3 {
        font-size: 1.2rem;
    }
    
    .scientist-card p {
        font-size: 0.9rem;
    }
    
    .avatar-placeholder {
        width: 80px;
        height: 80px;
    }
    
    .chapter-navigation {
        flex-direction: column;
        gap: 10px;
    }
    
    .nav-btn {
        width: 100%;
    }
}

/* 元素周期表图标样式 */
.periodic-table-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.periodic-table-icon:hover {
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.periodic-table-icon img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

/* 背包纸条容器样式 */
.papers-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.paper-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.paper-item:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.paper-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ffd700, #ffb347);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.paper-content {
    flex: 1;
}

.paper-title {
    font-weight: bold;
    color: #FFD700;
    font-size: 14px;
    margin-bottom: 4px;
}

.paper-snippet {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    line-height: 1.4;
}

.no-papers {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
    padding: 20px;
}

/* 新的炫酷科学家简介样式 */
.scientist-profile-overlay-new {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 107, 107, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(78, 205, 196, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(255, 193, 7, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 60% 20%, rgba(156, 39, 176, 0.3) 0%, transparent 50%),
        linear-gradient(135deg, rgba(102, 126, 234, 0.6), rgba(118, 75, 162, 0.6));
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: profileFadeIn 0.5s ease;
    backdrop-filter: blur(8px);
}

.scientist-profile-card {
    background: linear-gradient(145deg, 
        rgba(255, 255, 255, 0.95), 
        rgba(248, 249, 250, 0.92));
    border-radius: 30px;
    max-width: 90%;
    width: 900px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    border: 3px solid rgba(255, 215, 0, 0.6);
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.8),
        inset 0 1px 1px rgba(255, 255, 255, 0.9);
    animation: profileSlideIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 背景粒子效果 */
.particles-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 30px;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    animation: particleFloat 8s infinite ease-in-out;
}

.particle:nth-child(1) {
    top: 20%;
    left: 10%;
    background: linear-gradient(45deg, #ff6b6b, #feca57);
    animation-delay: 0s;
    animation-duration: 6s;
}

.particle:nth-child(2) {
    top: 60%;
    left: 80%;
    background: linear-gradient(45deg, #4ecdc4, #45b7d1);
    animation-delay: 2s;
    animation-duration: 8s;
}

.particle:nth-child(3) {
    top: 30%;
    left: 70%;
    background: linear-gradient(45deg, #a29bfe, #fd79a8);
    animation-delay: 4s;
    animation-duration: 7s;
}

.particle:nth-child(4) {
    top: 80%;
    left: 20%;
    background: linear-gradient(45deg, #fdcb6e, #e17055);
    animation-delay: 1s;
    animation-duration: 9s;
}

.particle:nth-child(5) {
    top: 10%;
    left: 50%;
    background: linear-gradient(45deg, #6c5ce7, #fd79a8);
    animation-delay: 3s;
    animation-duration: 10s;
}

/* 卡片头部 */
.profile-card-header {
    padding: 40px;
    display: flex;
    align-items: center;
    gap: 30px;
    background: linear-gradient(135deg, 
        rgba(102, 126, 234, 0.1), 
        rgba(255, 193, 7, 0.1), 
        rgba(78, 205, 196, 0.1));
    border-radius: 30px 30px 0 0;
    position: relative;
    border-bottom: 2px solid rgba(255, 215, 0, 0.3);
}

.scientist-avatar-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #FFD700;
    position: relative;
    flex-shrink: 0;
    background: linear-gradient(135deg, #667eea, #764ba2);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
}

.scientist-avatar-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scientist-avatar-large.fallback {
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: white;
}

.scientist-avatar-large.fallback::after {
    content: '👤';
}

.avatar-glow {
    position: absolute;
    top: -15px;
    left: -15px;
    right: -15px;
    bottom: -15px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #FFD700, #ff6b6b, #4ecdc4, #a29bfe, #FFD700);
    opacity: 0.5;
    animation: avatarGlow 4s linear infinite;
    z-index: -1;
}

.scientist-title {
    flex: 1;
    color: #2c3e50;
}

.scientist-title h2 {
    font-size: 2.2rem;
    margin: 0 0 15px 0;
    color: #e74c3c;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(231, 76, 60, 0.3);
}

.scientist-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.birth-info, .nationality {
    color: #34495e;
    font-size: 1.1rem;
    font-weight: 500;
}

.specialties-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.specialty-tag {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.2), rgba(78, 205, 196, 0.2));
    color: #2980b9;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 0.9rem;
    border: 2px solid rgba(52, 152, 219, 0.3);
    font-weight: 600;
    transition: all 0.3s ease;
}

.specialty-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.close-btn-new {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
    border: 3px solid white;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.close-btn-new:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 10px 25px rgba(255, 107, 107, 0.6);
}

.close-icon {
    font-size: 1.8rem;
    font-weight: bold;
}

/* 卡片内容 */
.profile-card-content {
    padding: 40px;
    color: #2c3e50;
}

/* 名言区域 */
.quote-section-new {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 40px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15), rgba(255, 165, 0, 0.1));
    border-radius: 20px;
    border-left: 5px solid #f39c12;
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.2);
}

.quote-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    animation: iconPulse 2s ease-in-out infinite;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.quote-content {
    flex: 1;
}

.quote-en {
    font-style: italic;
    font-size: 1.3rem;
    color: #e67e22;
    margin-bottom: 10px;
    line-height: 1.6;
    font-weight: 500;
}

.quote-zh {
    font-size: 1.1rem;
    color: #7f8c8d;
    line-height: 1.6;
    font-weight: 500;
}

/* 成就展示 */
.achievements-section-new {
    margin-bottom: 40px;
}

.achievements-section-new h3 {
    color: #f39c12;
    font-size: 1.6rem;
    margin-bottom: 25px;
    text-align: center;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(243, 156, 18, 0.3);
}

.achievements-grid {
    display: grid;
    gap: 15px;
}

.achievement-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8), rgba(248, 249, 250, 0.6));
    border-radius: 15px;
    border: 2px solid rgba(52, 152, 219, 0.2);
    transition: all 0.3s ease;
    animation: achievementSlideIn 0.6s ease forwards;
    opacity: 0;
    transform: translateX(-20px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.achievement-card:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(240, 242, 245, 0.8));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.2);
    border-color: rgba(52, 152, 219, 0.4);
}

.achievement-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #3498db, #9b59b6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(52, 152, 219, 0.3);
}

.achievement-text {
    flex: 1;
    line-height: 1.6;
    color: #2c3e50;
    font-weight: 500;
}

/* 密码提示区域 */
.password-hint-section-new {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 25px;
    background: linear-gradient(135deg, rgba(155, 89, 182, 0.15), rgba(52, 152, 219, 0.1));
    border-radius: 20px;
    border: 2px solid rgba(155, 89, 182, 0.3);
    margin-bottom: 40px;
    box-shadow: 0 5px 15px rgba(155, 89, 182, 0.2);
}

.hint-icon {
    font-size: 2.5rem;
    flex-shrink: 0;
    animation: iconPulse 2s ease-in-out infinite alternate;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

.hint-content h4 {
    color: #8e44ad;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: bold;
}

.hint-content p {
    color: #2c3e50;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 500;
}

.hint-note {
    color: #e67e22;
    font-size: 1rem;
    font-style: italic;
    font-weight: 600;
}

/* 卡片底部 */
.profile-card-footer {
    padding: 30px 40px;
    text-align: center;
    border-top: 2px solid rgba(52, 152, 219, 0.2);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.5), rgba(240, 242, 245, 0.3));
}

.continue-reading-btn {
    background: linear-gradient(135deg, #3498db, #9b59b6, #e74c3c);
    color: white;
    border: none;
    padding: 15px 35px;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.4);
    border: 3px solid white;
}

.continue-reading-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(52, 152, 219, 0.6);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.6s ease;
}

.continue-reading-btn:hover .btn-shine {
    left: 100%;
}

/* 动画定义 */
@keyframes profileFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes profileFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes profileSlideIn {
    from { 
        transform: translateY(50px) scale(0.9);
        opacity: 0;
    }
    to { 
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

@keyframes particleFloat {
    0%, 100% { 
        transform: translateY(0px) rotate(0deg) scale(1);
        opacity: 0.7;
    }
    50% { 
        transform: translateY(-25px) rotate(180deg) scale(1.2);
        opacity: 1;
    }
}

@keyframes avatarGlow {
    0% { 
        transform: rotate(0deg);
    }
    100% { 
        transform: rotate(360deg);
    }
}

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

@keyframes achievementSlideIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes ghostBob {
    0%, 100% { 
        transform: translateY(6px); 
    }
    50% { 
        transform: translateY(-1px); 
    }
}

@keyframes tipPulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* 姓名高亮动画 */
@keyframes nameHighlight {
    0%, 100% { 
        background: transparent; 
        box-shadow: none; 
    }
    50% { 
        background: rgba(255, 215, 0, 0.3); 
        box-shadow: 0 0 15px rgba(255, 215, 0, 0.6);
        border-radius: 8px;
    }
}

/* 引导提示淡入动画 */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translate(-50%, -50%) scale(0.8); 
    }
    to { 
        opacity: 1; 
        transform: translate(-50%, -50%) scale(1); 
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .scientist-profile-card {
        margin: 10px;
        width: calc(100% - 20px);
        max-height: calc(100vh - 20px);
    }
    
    .profile-card-header {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    
    .scientist-title h2 {
        font-size: 1.8rem;
    }
    
    .profile-card-content {
        padding: 30px 20px;
    }
    
    .quote-section-new, .password-hint-section-new {
        flex-direction: column;
        text-align: center;
    }
}

/* 提示按钮样式 */
.help-btn {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 15px;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.help-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
    background: linear-gradient(135deg, #45a049, #4CAF50);
}

.help-btn:active {
    transform: translateY(0);
}

/* 提示模态框样式 */
.help-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease-out;
}

.help-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.help-modal-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: translateY(0) scale(1);
    opacity: 1;
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
}

.help-modal.closing .help-modal-container {
    transform: translateY(20px) scale(0.95);
    opacity: 0;
}

.help-modal-header {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.help-modal-header h2 {
    color: #ffd700;
    margin: 0;
    font-size: 1.8rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.help-modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.help-modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.help-modal-content {
    padding: 30px;
    max-height: calc(90vh - 100px);
    overflow-y: auto;
    color: white;
    line-height: 1.6;
}

.help-section {
    margin-bottom: 30px;
    background: rgba(255, 255, 255, 0.05);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #ffd700;
}

.help-section h3 {
    color: #ffd700;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.4rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.help-section h4 {
    color: #87ceeb;
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.help-section p {
    margin-bottom: 10px;
    color: #e0e0e0;
}

.help-section ul {
    margin: 10px 0;
    padding-left: 20px;
}

.help-section li {
    margin-bottom: 8px;
    color: #e0e0e0;
}

.help-section strong {
    color: #ffd700;
    font-weight: 600;
}

.help-footer {
    text-align: center;
    padding: 20px;
    background: rgba(255, 215, 0, 0.1);
    border-radius: 10px;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.help-footer p {
    margin: 0;
    font-size: 1.2rem;
    color: #ffd700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* 滚动条样式 */
.help-modal-content::-webkit-scrollbar {
    width: 8px;
}

.help-modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.help-modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 215, 0, 0.5);
    border-radius: 4px;
}

.help-modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 215, 0, 0.7);
}

/* 右侧提示样式 */
.side-tip {
    position: fixed;
    right: 20px;
    top: 15%;
    transform: translateY(-50%);
    background: linear-gradient(135deg, #4CAF50, #2E7D32);
    color: white;
    padding: 20px;
    border-radius: 12px;
    max-width: 280px;
    font-size: 1.1rem;
    line-height: 1.6;
    z-index: 90;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    border-left: 4px solid #FFD700;
    animation: slideInRight 0.5s ease-out forwards;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.side-tip p {
    margin: 0;
    font-weight: 500;
}

.side-tip strong {
    color: #FFD700;
    font-size: 1.3rem;
    font-weight: 700;
}

.side-tip-arrow {
    position: absolute;
    top: -10px;
    right: -10px;
    animation: arrowBounce 1s infinite alternate;
    color: #FFD700;
    font-size: 2rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.side-tip-close {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    width: 24px;
    height: 24px;
    line-height: 1;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.side-tip-close:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.1);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translate(100px, -50%);
    }
    to {
        opacity: 1;
        transform: translate(0, -50%);
    }
}

@keyframes arrowBounce {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(8px);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .help-modal-container {
        width: 95%;
        max-height: 95vh;
    }
    
    .help-modal-header {
        padding: 15px 20px;
    }
    
    .help-modal-header h2 {
        font-size: 1.5rem;
    }
    
    .help-modal-content {
        padding: 20px;
    }
    
    .help-section {
        padding: 15px;
    }
    
    .help-section h3 {
        font-size: 1.2rem;
    }
    
    .help-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        margin-left: 10px;
    }
}

/* 概念词分级样式 - 温和引导系统 */
.concept-word {
    position: relative;
    display: inline;
    transition: all 0.3s ease;
}

/* 🔴 必学概念 - 红色加粗 */
.concept-word.concept-critical {
    color: #FF0000 !important;
    font-weight: bold !important;
    text-shadow: 0 1px 2px rgba(255, 0, 0, 0.3) !important;
    cursor: pointer !important;
    border-bottom: 2px solid #FF0000 !important;
    padding: 2px 4px !important;
    border-radius: 3px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

.concept-word.concept-critical:hover {
    background: rgba(255, 255, 255, 1) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(255, 0, 0, 0.3) !important;
}

/* 🟠 重要概念 - 橙色加粗 */
.concept-word.concept-important {
    color: #FF8C00 !important;
    font-weight: bold !important;
    text-shadow: 0 1px 2px rgba(255, 140, 0, 0.3) !important;
    cursor: pointer !important;
    border-bottom: 2px solid #FF8C00 !important;
    padding: 2px 4px !important;
    border-radius: 3px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
}

.concept-word.concept-important:hover {
    background: rgba(255, 255, 255, 1) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 2px 4px rgba(255, 140, 0, 0.3) !important;
}

/* 🔵 扩展概念 - 蓝色（无下划线） */
.concept-word.concept-helpful {
    color: #007BFF !important;
    text-decoration: none !important;
    cursor: pointer !important;
    padding: 2px 4px !important;
    border-radius: 3px !important;
    transition: all 0.3s ease !important;
    font-weight: normal !important;
    border-bottom: none !important;
}

.concept-word.concept-helpful:hover {
    background: rgba(0, 123, 255, 0.1) !important;
    transform: translateY(-1px) !important;
}

/* 帮助模态框中的概念演示样式 */
.concept-demo {
    margin: 15px 0;
    padding: 15px;
    background: rgba(138, 43, 226, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(138, 43, 226, 0.2);
}

.concept-level {
    margin: 10px 0;
    padding: 8px 0;
}

.concept-level p {
    margin: 5px 0 0 0;
    font-size: 0.9rem;
    color: #ffffff;
    line-height: 1.4;
} 