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

:root {
    --primary-color: #4a90e2;
    --secondary-color: #2c3e50;
    --accent-color: #27ae60;
    --background: #f5f7fa;
    --card-bg: #ffffff;
    --text-primary: #2c3e50;
    --text-secondary: #7f8c8d;
    --border-radius: 12px;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 4px 20px rgba(0, 0, 0, 0.12);
}

/* 摸鱼模式主题 - 暗黑风格 */
body.moyu-mode {
    --primary-color: #00d4ff;
    --secondary-color: #1a1a2e;
    --accent-color: #00ff88;
    --background: #0f0f1e;
    --card-bg: #1a1a2e;
    --text-primary: #e0e0e0;
    --text-secondary: #888;
    --shadow: 0 4px 20px rgba(0, 212, 255, 0.2);
    --shadow-hover: 0 8px 30px rgba(0, 212, 255, 0.4);
}

body.moyu-mode {
    background: linear-gradient(135deg, #0f0f1e 0%, #1a1a2e 50%, #16213e 100%);
    background-attachment: fixed;
}

body.moyu-mode::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(0, 212, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(0, 255, 136, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

body.moyu-mode .container {
    position: relative;
    z-index: 1;
}

body.moyu-mode .header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 212, 255, 0.2);
}

body.moyu-mode .name {
    background: linear-gradient(90deg, #00d4ff 0%, #00ff88 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.moyu-mode .title {
    color: #888;
}

body.moyu-mode section {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(0, 212, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.15);
}

body.moyu-mode .footer {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 1px solid rgba(0, 212, 255, 0.2);
    color: #888;
}

body.moyu-mode .footer p {
    color: #888;
}

body.moyu-mode .section-title {
    color: #00d4ff;
}

body.moyu-mode .skill-card {
    background: linear-gradient(135deg, #1e1e3f 0%, #2a2a4a 100%);
    border: 1px solid rgba(0, 212, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

body.moyu-mode .skill-card:hover {
    transform: translateY(-5px);
    border-color: #00d4ff;
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.4);
}

body.moyu-mode .skill-card h3 {
    color: #00d4ff;
}

body.moyu-mode .skill-progress {
    background: linear-gradient(90deg, #00d4ff 0%, #00ff88 100%);
}

body.moyu-mode .status-card {
    background: linear-gradient(135deg, #1e1e3f 0%, #2a2a4a 100%);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

body.moyu-mode .status-card:nth-child(1) {
    background: linear-gradient(135deg, #1e1e3f 0%, #2a2a4a 100%);
    border-color: #00d4ff;
    box-shadow: 0 4px 20px rgba(0, 212, 255, 0.3);
}

body.moyu-mode .status-card:nth-child(2) {
    background: linear-gradient(135deg, #1e1e3f 0%, #2a2a4a 100%);
    border-color: #00ff88;
    box-shadow: 0 4px 20px rgba(0, 255, 136, 0.3);
}

body.moyu-mode .status-card:nth-child(3) {
    background: linear-gradient(135deg, #1e1e3f 0%, #2a2a4a 100%);
    border-color: #ff6b9d;
    box-shadow: 0 4px 20px rgba(255, 107, 157, 0.3);
}

body.moyu-mode .status-card:nth-child(4) {
    background: linear-gradient(135deg, #1e1e3f 0%, #2a2a4a 100%);
    border-color: #ffd93d;
    box-shadow: 0 4px 20px rgba(255, 217, 61, 0.3);
}

body.moyu-mode .status-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 40px rgba(0, 212, 255, 0.5);
}

body.moyu-mode .status-label,
body.moyu-mode .status-value,
body.moyu-mode .status-trend {
    color: #e0e0e0;
}

body.moyu-mode .philosophy-card {
    background: linear-gradient(135deg, #1e1e3f 0%, #2a2a4a 100%);
    border-left: 4px solid #00d4ff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

body.moyu-mode .philosophy-card:hover {
    background: linear-gradient(135deg, #2a2a4a 0%, #1e1e3f 100%);
    border-left-color: #00ff88;
    box-shadow: 0 8px 30px rgba(0, 212, 255, 0.3);
}

body.moyu-mode .philosophy-card h3 {
    color: #00d4ff;
}

body.moyu-mode .philosophy-card p {
    color: #aaa;
}

body.moyu-mode .philosophy-number {
    color: #00ff88;
    opacity: 0.5;
}

body.moyu-mode .story-card {
    background: linear-gradient(135deg, #1e1e3f 0%, #2a2a4a 100%);
    border-left: 4px solid #00ff88;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

body.moyu-mode .story-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 255, 136, 0.3);
}

body.moyu-mode .story-title {
    color: #00d4ff;
}

body.moyu-mode .story-content {
    color: #aaa;
}

body.moyu-mode .contact-link {
    background: linear-gradient(135deg, #1e1e3f 0%, #2a2a4a 100%);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: #e0e0e0;
}

body.moyu-mode .contact-link:hover {
    background: linear-gradient(135deg, #00d4ff 0%, #00ff88 100%);
    border-color: #00d4ff;
    color: #000;
    transform: translateY(-8px) scale(1.05);
    box-shadow: 0 12px 40px rgba(0, 212, 255, 0.6);
}

body.moyu-mode .contact-detail {
    color: #888;
}

body.moyu-mode .contact-link:hover .contact-detail {
    color: #000;
}

body.moyu-mode .fun-facts {
    background: linear-gradient(135deg, #1e1e3f 0%, #2a2a4a 100%);
    border-left: 4px solid #00d4ff;
    color: #e0e0e0;
}

body.moyu-mode .fun-facts p {
    color: #aaa;
}

body.moyu-mode .about-text {
    color: #aaa;
}

body.moyu-mode .mood-indicator {
    background: linear-gradient(135deg, #1e1e3f 0%, #2a2a4a 100%);
    border: 1px solid rgba(0, 212, 255, 0.3);
}

body.moyu-mode #current-mood {
    color: #00d4ff;
}

body.moyu-mode .status-badge {
    background: #1a1a2e;
    border: 1px solid rgba(0, 212, 255, 0.3);
}

body.moyu-mode .status-text {
    color: #00ff88;
}

/* 摸鱼模式粒子背景效果 */
body.moyu-mode #particles-canvas {
    opacity: 0.6;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    padding: 20px;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

/* 头部样式 */
.header {
    text-align: center;
    padding: 40px 20px;
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
}

.avatar-container {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
}

.avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.status-badge {
    position: absolute;
    bottom: 5px;
    right: -10px;
    background: var(--card-bg);
    padding: 4px 12px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: var(--accent-color);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.status-text {
    color: var(--accent-color);
    font-weight: 600;
}

.name {
    font-size: 2.2em;
    margin-bottom: 10px;
    color: var(--secondary-color);
}

.title {
    color: var(--text-secondary);
    font-size: 1.1em;
}

/* 章节样式 */
section {
    background: var(--card-bg);
    padding: 30px;
    margin-bottom: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

.section-title {
    font-size: 1.8em;
    margin-bottom: 25px;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.title-icon {
    font-size: 1.2em;
}

/* 关于我 */
.about-text {
    color: var(--text-secondary);
    font-size: 1.05em;
    line-height: 1.8;
}

/* 技能卡片 */
.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.skill-card {
    padding: 20px;
    border: 2px solid #ecf0f1;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.skill-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.skill-icon {
    font-size: 2.5em;
    margin-bottom: 10px;
}

.skill-card h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
    font-size: 1.1em;
}

.skill-bar {
    height: 8px;
    background: #ecf0f1;
    border-radius: 10px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 10px;
    width: 0;
    transition: width 1.5s ease;
}

/* 系统状态 */
.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.status-card {
    text-align: center;
    padding: 25px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 10px;
    color: white;
    transition: transform 0.3s ease;
}

.status-card:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.status-card:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.status-card:nth-child(4) {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.status-card:hover {
    transform: scale(1.05);
}

.status-label {
    font-size: 0.9em;
    opacity: 0.9;
    margin-bottom: 10px;
}

.status-value {
    font-size: 2em;
    font-weight: bold;
}

/* 工作理念 */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.philosophy-card {
    padding: 25px;
    border-left: 4px solid var(--primary-color);
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.philosophy-card:hover {
    background: #e8f4f8;
    transform: translateX(5px);
}

.philosophy-number {
    font-size: 2em;
    font-weight: bold;
    color: var(--primary-color);
    opacity: 0.3;
    margin-bottom: 10px;
}

.philosophy-card h3 {
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-size: 1.1em;
}

.philosophy-card p {
    color: var(--text-secondary);
    font-size: 0.95em;
}

/* 联系方式 */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

.contact-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: var(--background);
    border-radius: 10px;
    color: var(--text-primary);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.contact-link:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-5px);
}

.contact-icon {
    font-size: 2em;
}

.contact-detail {
    font-size: 0.85em;
    opacity: 0.7;
    text-align: center;
    margin-top: 5px;
}

.contact-link:hover .contact-detail {
    opacity: 1;
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 30px;
    color: var(--text-secondary);
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.footer p {
    margin: 5px 0;
}

.footer-small {
    font-size: 0.9em;
    opacity: 0.8;
}

/* 粒子背景画布 */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* 终端弹窗 */
.terminal-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 90%;
    max-width: 600px;
    background: #1e1e1e;
    border-radius: 10px;
    box-shadow: 0 10px 50px rgba(0,0,0,0.5);
    z-index: 1000;
    transition: transform 0.3s ease;
}

.terminal-popup.active {
    transform: translate(-50%, -50%) scale(1);
}

.terminal-header {
    background: #2d2d2d;
    padding: 10px 15px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #4ec9b0;
    font-family: 'Courier New', monospace;
}

.terminal-close {
    background: #f44336;
    border: none;
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

.terminal-body {
    padding: 15px;
    max-height: 400px;
    overflow-y: auto;
}

#terminal-output {
    color: #d4d4d4;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    margin-bottom: 10px;
    min-height: 100px;
}

.terminal-input-line {
    display: flex;
    align-items: center;
    color: #4ec9b0;
    font-family: 'Courier New', monospace;
}

.terminal-prompt {
    margin-right: 5px;
}

#terminal-input {
    flex: 1;
    background: transparent;
    border: none;
    color: #d4d4d4;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    outline: none;
}

/* 彩蛋按钮 */
.easter-egg-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    z-index: 999;
    animation: bounce 2s ease-in-out infinite;
}

.easter-egg-btn:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: 0 6px 25px rgba(0,0,0,0.4);
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* 小彩蛋按钮 */
.easter-egg-small-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    cursor: pointer;
    margin-left: 10px;
    padding: 6px 10px;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: white;
    font-size: 1.2em;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
    animation: pulse-glow 2s ease-in-out infinite;
}

.easter-egg-small-btn:hover {
    transform: translateY(-2px) scale(1.1) rotate(10deg);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.5);
}

.easter-egg-small-btn:active {
    transform: translateY(0) scale(0.95);
}

@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(102, 126, 234, 0.6);
    }
}

/* 终端触发按钮 */
.terminal-trigger {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    cursor: pointer;
    margin-left: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
    color: white;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.3);
}

.terminal-trigger:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.5);
}

.terminal-trigger:active {
    transform: translateY(0) scale(0.98);
}

.terminal-trigger svg {
    display: block;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

/* 状态卡片增强 */
.status-card.clickable {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.status-card.clickable::before {
    content: '👆 点击查看详情';
    position: absolute;
    bottom: -30px;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.3);
    padding: 5px;
    font-size: 0.8em;
    text-align: center;
    transition: bottom 0.3s ease;
}

.status-card.clickable:hover::before {
    bottom: 0;
}

.status-trend {
    font-size: 0.8em;
    margin-top: 5px;
    opacity: 0.9;
}

/* 工作进度条 */
.loading-bar-container {
    margin-top: 30px;
}

.loading-label {
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--secondary-color);
}

.loading-bar {
    height: 30px;
    background: #e0e0e0;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
}

.loading-progress {
    height: 100%;
    background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
    border-radius: 15px;
    transition: width 2s ease;
    position: relative;
    overflow: hidden;
}

.loading-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.loading-text {
    margin-top: 5px;
    font-size: 0.9em;
    color: var(--text-secondary);
    text-align: center;
}

/* 工作理念卡片悬停效果 */
.philosophy-hover {
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
    background: var(--primary-color);
    color: white;
    padding: 10px;
    text-align: center;
    font-size: 0.9em;
    transition: bottom 0.3s ease;
    border-radius: 0 0 8px 8px;
}

.philosophy-card {
    position: relative;
    overflow: hidden;
}

.philosophy-card:hover .philosophy-hover {
    bottom: 0;
}

/* 运维故事轮播 */
.stories {
    overflow: hidden;
}

.story-carousel {
    overflow: hidden;
    position: relative;
}

.story-track {
    display: flex;
    gap: 20px;
    animation: scroll-stories 30s linear infinite;
    will-change: transform;
}

.story-track:hover {
    animation-play-state: paused;
}

.story-card {
    min-width: 300px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.story-card:hover {
    transform: translateY(-5px);
}

.story-emoji {
    font-size: 2em;
    margin-bottom: 10px;
}

.story-title {
    font-weight: bold;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.story-content {
    color: var(--text-secondary);
    font-size: 0.95em;
    line-height: 1.6;
}

@keyframes scroll-stories {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.refresh-stories {
    cursor: pointer;
    margin-left: 10px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.refresh-stories:hover {
    transform: rotate(180deg);
}

/* Matrix 代码雨效果 */
.matrix-active {
    position: relative;
}

.matrix-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9998;
    pointer-events: none;
}

/* 游戏模态框 */
.game-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.game-modal.active {
    display: flex;
}

.game-container {
    background: white;
    border-radius: 20px;
    padding: 25px;
    max-width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: gameSlideIn 0.3s ease;
}

@keyframes gameSlideIn {
    from {
        transform: scale(0.8) translateY(-50px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid #4a90e2;
    padding-bottom: 15px;
}

.game-header h3 {
    margin: 0;
    color: var(--secondary-color);
    font-size: 1.5em;
}

.game-close,
.fire-game-close,
.server-game-close {
    background: #f44336;
    border: none;
    color: white;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
    transition: transform 0.2s ease;
}

.game-close:hover,
.fire-game-close:hover,
.server-game-close:hover {
    transform: scale(1.1) rotate(90deg);
}

.game-info {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 15px;
    border-radius: 10px;
    color: white;
    font-weight: bold;
}

.game-score,
.game-time,
.game-lives,
.game-best,
.game-combo,
.game-health,
.game-level {
    font-size: 1.1em;
}

#fire-canvas,
#server-canvas {
    display: block;
    margin: 0 auto;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border-radius: 10px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.3);
    border: 3px solid #4a90e2;
}

.game-controls {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin: 20px 0;
}

.game-btn {
    padding: 12px 30px;
    font-size: 1em;
    font-weight: bold;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.game-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

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

#game-pause,
#fire-pause,
#server-pause {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

#fire-start {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
}

#server-start {
    background: linear-gradient(135deg, #00d2ff 0%, #3a7bd5 100%);
}

.game-instructions {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 10px;
    margin-top: 15px;
    border-left: 4px solid var(--primary-color);
}

.game-instructions p {
    margin: 8px 0;
    color: var(--text-secondary);
    font-size: 0.9em;
}

.game-instructions p:first-child {
    font-weight: bold;
    color: var(--secondary-color);
    font-size: 1em;
}

/* 2048 游戏样式 */
#game-2048-container {
    width: 400px;
    height: 400px;
    background: #bbada0;
    border-radius: 10px;
    padding: 10px;
    margin: 0 auto;
    position: relative;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 10px;
    width: 100%;
    height: 100%;
}

.grid-cell {
    background: rgba(238, 228, 218, 0.35);
    border-radius: 5px;
}

.tile {
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2em;
    font-weight: bold;
    border-radius: 5px;
    transition: all 0.15s ease;
    animation: tileAppear 0.2s ease;
}

@keyframes tileAppear {
    from {
        transform: scale(0);
    }
    to {
        transform: scale(1);
    }
}

.tile-2 { background: #eee4da; color: #776e65; }
.tile-4 { background: #ede0c8; color: #776e65; }
.tile-8 { background: #f2b179; color: #f9f6f2; }
.tile-16 { background: #f59563; color: #f9f6f2; }
.tile-32 { background: #f67c5f; color: #f9f6f2; }
.tile-64 { background: #f65e3b; color: #f9f6f2; }
.tile-128 { background: #edcf72; color: #f9f6f2; font-size: 1.8em; }
.tile-256 { background: #edcc61; color: #f9f6f2; font-size: 1.8em; }
.tile-512 { background: #edc850; color: #f9f6f2; font-size: 1.8em; }
.tile-1024 { background: #edc53f; color: #f9f6f2; font-size: 1.5em; }
.tile-2048 { background: #edc22e; color: #f9f6f2; font-size: 1.5em; }

.game-over-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(238, 228, 218, 0.9);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
    z-index: 100;
}

.game-over-overlay h2 {
    color: #776e65;
    font-size: 2.5em;
    margin: 0;
}

.game-over-overlay p {
    color: #776e65;
    font-size: 1.2em;
    margin: 10px 0;
}

/* 心情切换按钮 */
.mood-btn {
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    margin-left: 10px;
    transition: transform 0.3s ease;
    animation: rotate 3s linear infinite;
}

.mood-btn:hover {
    transform: scale(1.3);
}

@keyframes rotate {
    0%, 90%, 100% { transform: rotate(0deg); }
    95% { transform: rotate(20deg); }
}

.mood-indicator {
    margin-top: 15px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    color: white;
    display: inline-block;
    font-weight: bold;
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 5px rgba(102, 126, 234, 0.5); }
    50% { box-shadow: 0 0 20px rgba(102, 126, 234, 0.8); }
}

.mood-emoji {
    font-size: 1.5em;
    margin-left: 10px;
    display: inline-block;
    animation: bounce-emoji 1s ease-in-out infinite;
}

@keyframes bounce-emoji {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

/* 访客统计 */
.visitor-stats {
    margin: 15px 0;
    padding: 15px;
    background: rgba(74, 144, 226, 0.1);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.like-button {
    padding: 8px 20px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    border: none;
    border-radius: 20px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: pulse-like 2s ease-in-out infinite;
}

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

.like-button:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.like-button:active {
    transform: scale(0.95);
}

/* 运维冷知识 */
.fun-facts {
    margin-top: 15px;
    padding: 15px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 10px;
    border-left: 4px solid #4a90e2;
    font-style: italic;
    color: var(--text-secondary);
}

/* 弹幕系统 */
#danmaku-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    overflow: hidden;
}

.danmaku-item {
    position: absolute;
    white-space: nowrap;
    font-size: 18px;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    animation: danmaku-move 8s linear;
    pointer-events: none;
}

@keyframes danmaku-move {
    from { transform: translateX(100vw); }
    to { transform: translateX(-100%); }
}

/* 鼠标跟随特效 */
#cursor-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9997;
}

/* 成就系统 */
.achievement-popup {
    position: fixed;
    top: -200px;
    right: 20px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    transition: top 0.5s ease;
    min-width: 300px;
}

.achievement-popup.show {
    top: 20px;
}

.achievement-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.achievement-icon {
    font-size: 3em;
    animation: rotate-achievement 2s ease-in-out infinite;
}

@keyframes rotate-achievement {
    0%, 100% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(-10deg) scale(1.1); }
    75% { transform: rotate(10deg) scale(1.1); }
}

.achievement-text {
    color: white;
}

.achievement-title {
    font-size: 1.2em;
    font-weight: bold;
    margin-bottom: 5px;
}

.achievement-desc {
    font-size: 1em;
    opacity: 0.9;
}

/* 时间彩蛋提示 */
.time-easter-egg {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-150px);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 10002;
    font-weight: bold;
    font-size: 1.1em;
    transition: transform 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    pointer-events: none;
    text-align: center;
    min-width: 300px;
}

.time-easter-egg.show {
    transform: translateX(-50%) translateY(0);
}

.time-easter-egg::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2em;
}

/* 摸鱼模式下的时间彩蛋 */
body.moyu-mode .time-easter-egg {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    border: 2px solid #00d4ff;
    animation: neon-glow 2s ease-in-out infinite;
}

@keyframes neon-glow {
    0%, 100% { 
        box-shadow: 0 0 10px #00d4ff, 0 0 20px #00d4ff, 0 0 30px #00d4ff, 0 10px 40px rgba(0, 0, 0, 0.5);
    }
    50% { 
        box-shadow: 0 0 20px #00ff88, 0 0 30px #00ff88, 0 0 40px #00ff88, 0 10px 40px rgba(0, 0, 0, 0.5);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    .name {
        font-size: 1.8em;
    }

    .section-title {
        font-size: 1.5em;
    }

    section {
        padding: 20px;
    }

    .skills-grid,
    .status-grid,
    .philosophy-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .terminal-popup {
        width: 95%;
    }

    .easter-egg-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }

    #code-bg-toggle {
        right: 30px !important;
    }

    #danmaku-toggle {
        right: 100px !important;
    }

    #theme-toggle {
        right: 170px !important;
    }

    .time-easter-egg {
        min-width: 250px;
        font-size: 1em;
        padding: 12px 20px;
    }

    .achievement-popup {
        right: 10px;
        min-width: 250px;
        padding: 15px;
    }


    .game-container {
        max-width: 95%;
        padding: 15px;
    }


    .story-card {
        min-width: 250px;
    }
}

/* 加载动画 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeIn 0.6s ease-out;
}

section:nth-child(1) { animation-delay: 0.1s; }
section:nth-child(2) { animation-delay: 0.2s; }
section:nth-child(3) { animation-delay: 0.3s; }
section:nth-child(4) { animation-delay: 0.4s; }
section:nth-child(5) { animation-delay: 0.5s; }
section:nth-child(6) { animation-delay: 0.6s; }

