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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #0a0a0a;
    overflow-x: hidden;
    color: #ffffff;
}

/* 科技感草稿纸背景 */
.tech-paper-background {
    min-height: 100vh;
    background: 
        linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #16213e 100%),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 27px,
            rgba(0, 150, 255, 0.03) 28px,
            transparent 29px
        ),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 94px,
            rgba(255, 0, 100, 0.03) 95px,
            transparent 96px
        );
    position: relative;
}

.tech-grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
    opacity: 0.3;
}

/* 主布局 */
.main-layout {
    display: grid;
    grid-template-columns: minmax(220px, 240px) 1fr minmax(220px, 240px);
    gap: clamp(8px, 1.5vw, 16px);
    height: 100vh;
    max-width: 100vw;
    padding: clamp(6px, 1vw, 12px);
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    overflow: hidden;
}

/* 左侧控制面板 */
.left-panel {
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.9), rgba(22, 33, 62, 0.9));
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 15px;
    padding: clamp(15px, 2vw, 25px);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    height: 100%;
    overflow-y: auto;
    box-sizing: border-box;
}

/* 右侧仪表盘 */
.right-panel {
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.9), rgba(22, 33, 62, 0.9));
    border: 2px solid rgba(255, 0, 100, 0.3);
    border-radius: 15px;
    padding: clamp(15px, 2vw, 25px);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    height: 100%;
    overflow-y: auto;
    box-sizing: border-box;
}

.logo-section {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(0, 255, 255, 0.2);
}

.tech-title {
    font-size: 1.4em;
    font-weight: 700;
    background: linear-gradient(45deg, #00ffff, #ff00ff, #ffff00);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
    text-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    margin-bottom: 8px;
}

.subtitle {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.control-panel {
    space-y: 20px;
}

.control-section {
    margin-bottom: 25px;
}

.panel-title {
    font-size: 1.1em;
    color: #00ffff;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
    padding-bottom: 5px;
}

.control-list {
    space-y: 10px;
}

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

.control-item:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: rgba(0, 255, 255, 0.3);
    transform: translateX(5px);
}

.key {
    background: linear-gradient(145deg, #1a1a2e, #0f0f23);
    color: #00ffff;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: bold;
    font-size: 0.9em;
    border: 1px solid rgba(0, 255, 255, 0.3);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

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

.game-tips {
    background: rgba(255, 0, 100, 0.05);
    border: 1px solid rgba(255, 0, 100, 0.2);
    border-radius: 8px;
    padding: 15px;
}

.game-tips p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
    font-size: 0.9em;
    line-height: 1.4;
}

/* 主游戏区域 */
.game-section {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.game-header {
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.8), rgba(22, 33, 62, 0.8));
    border: 2px solid rgba(255, 0, 100, 0.3);
    border-radius: 12px;
    padding: 15px 20px;
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.audio-controls {
    display: flex;
    gap: 10px;
}

.audio-btn {
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.8), rgba(22, 33, 62, 0.8));
    border: 1px solid rgba(0, 255, 255, 0.5);
    border-radius: 8px;
    padding: 8px 12px;
    color: #00ffff;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9em;
    font-weight: 500;
}

.audio-btn:hover {
    border-color: rgba(0, 255, 255, 0.8);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    transform: translateY(-1px);
}

.audio-btn.muted {
    color: #666;
    border-color: rgba(255, 255, 255, 0.2);
}

.audio-btn.muted .audio-icon {
    opacity: 0.5;
}

.status-indicators {
    display: flex;
    gap: 20px;
    align-items: center;
}

.indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
}

.indicator.active {
    color: #00ff88;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    animation: pulse 2s infinite;
}

.indicator.active .dot {
    background: #00ff88;
    box-shadow: 0 0 10px #00ff88;
}

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

.game-area {
    position: relative;
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.9), rgba(22, 33, 62, 0.9));
    border: 2px solid rgba(0, 255, 255, 0.4);
    border-radius: 15px;
    padding: clamp(8px, 1vw, 12px);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    flex: 1;
    min-height: calc(100vh - 90px);
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    overflow: hidden;
}

#gameCanvas {
    border: 2px solid rgba(0, 255, 255, 0.6);
    border-radius: 15px;
    background: #1a1a1a;
    box-shadow: 
        0 0 30px rgba(0, 255, 255, 0.3),
        inset 0 0 20px rgba(0, 0, 0, 0.8);
    position: relative;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.holographic-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(0, 255, 255, 0.03) 50%,
        transparent 70%
    );
    pointer-events: none;
    animation: hologram 4s linear infinite;
}

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

/* 科技感屏幕样式 */
.screen {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 10, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.screen.hidden {
    display: none;
}

.screen-content {
    text-align: center;
    padding: 40px;
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.95), rgba(22, 33, 62, 0.95));
    border: 2px solid rgba(0, 255, 255, 0.4);
    border-radius: 20px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.screen-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 255, 255, 0.1),
        transparent
    );
    animation: scan 3s infinite;
}

@keyframes scan {
    0% { left: -100%; }
    100% { left: 100%; }
}

.tech-frame {
    position: relative;
    z-index: 1;
}

.tech-title {
    font-size: 2.2em;
    margin-bottom: 20px;
    text-align: center;
}

.loading-animation {
    margin: 20px 0;
    height: 4px;
    background: rgba(0, 255, 255, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.loading-bar {
    height: 100%;
    background: linear-gradient(90deg, #00ffff, #ff00ff);
    border-radius: 2px;
    animation: loading 2s ease-in-out infinite;
}

@keyframes loading {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

.tech-instructions {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
    font-size: 1.1em;
}

.tech-button {
    position: relative;
    background: linear-gradient(145deg, #1a1a2e, #0f0f23);
    border: 2px solid #00ffff;
    border-radius: 12px;
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: 600;
    color: #00ffff;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    overflow: hidden;
}

.tech-button:hover {
    background: linear-gradient(145deg, #0f0f23, #1a1a2e);
    box-shadow: 
        0 0 20px rgba(0, 255, 255, 0.5),
        inset 0 0 20px rgba(0, 255, 255, 0.1);
    transform: translateY(-2px);
}

.button-glow {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.tech-button:hover .button-glow {
    left: 100%;
}

.final-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 8px;
}

.stat-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 1em;
}

.stat-value {
    color: #00ffff;
    font-size: 1.3em;
    font-weight: bold;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* 右侧仪表盘 */
.right-panel {
    background: linear-gradient(145deg, rgba(26, 26, 46, 0.9), rgba(22, 33, 62, 0.9));
    border: 2px solid rgba(255, 0, 100, 0.3);
    border-radius: 15px;
    padding: 25px;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.dashboard {
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.dashboard-header {
    text-align: center;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(255, 0, 100, 0.2);
}

.metrics-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.metric-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: linear-gradient(145deg, rgba(0, 255, 255, 0.05), rgba(255, 0, 100, 0.05));
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.metric-card:hover {
    background: linear-gradient(145deg, rgba(0, 255, 255, 0.1), rgba(255, 0, 100, 0.1));
    border-color: rgba(0, 255, 255, 0.4);
    transform: translateX(-5px);
}

.metric-icon {
    font-size: 1.5em;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.5));
}

.metric-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.metric-label {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 4px;
}

.metric-value {
    font-size: 1.4em;
    font-weight: bold;
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.progress-section {
    margin-top: 10px;
}

.level-display {
    text-align: center;
    margin-bottom: 8px;
}

.level-text {
    font-size: 1.1em;
    font-weight: bold;
    color: #ffff00;
    text-shadow: 0 0 8px rgba(255, 255, 0, 0.5);
}

.experience-bar {
    height: 10px;
    background: rgba(255, 255, 0, 0.2);
    border-radius: 5px;
    overflow: hidden;
    margin: 10px 0;
    border: 1px solid rgba(255, 255, 0, 0.3);
}

.experience-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffff00, #ff8800, #ff0088);
    border-radius: 5px;
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 15px rgba(255, 255, 0, 0.6);
    animation: experienceGlow 2s ease-in-out infinite alternate;
}

@keyframes experienceGlow {
    from { box-shadow: 0 0 15px rgba(255, 255, 0, 0.6); }
    to { box-shadow: 0 0 20px rgba(255, 255, 0, 0.8); }
}

.progress-text {
    font-size: 0.9em;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    font-weight: bold;
}

.achievements-section,
.features-section {
    margin-top: 20px;
}

.achievements-list,
.features-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 200px;
    overflow-y: auto;
}

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

.achievement-item:hover,
.feature-item:hover {
    background: rgba(0, 255, 255, 0.1);
    border-color: rgba(0, 255, 255, 0.4);
    transform: translateX(-3px);
}

.achievement-item.unlocked {
    background: rgba(0, 255, 0, 0.1);
    border-color: rgba(0, 255, 0, 0.4);
}

.achievement-item.locked {
    opacity: 0.6;
    background: rgba(255, 100, 100, 0.05);
    border-color: rgba(255, 100, 100, 0.2);
}

.achievement-icon,
.feature-icon {
    font-size: 1.2em;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.5));
}

.achievement-text,
.feature-text {
    flex: 1;
}

.achievement-name,
.feature-name {
    font-size: 0.85em;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 2px;
}

.achievement-desc,
.feature-desc {
    font-size: 0.75em;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.2;
}

/* 通知样式 */
.achievement-notification,
.level-up-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(145deg, rgba(0, 255, 0, 0.9), rgba(0, 200, 100, 0.9));
    border: 2px solid rgba(0, 255, 0, 0.5);
    border-radius: 15px;
    padding: 20px;
    z-index: 1000;
    animation: slideInFromRight 0.5s ease-out, fadeOut 0.5s ease-in 3.5s;
    backdrop-filter: blur(10px);
    box-shadow: 
        0 10px 30px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

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

.achievement-icon,
.level-up-icon {
    font-size: 2em;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
    animation: pulse 1s ease-in-out infinite;
}

.achievement-text h3,
.level-up-text h3 {
    font-size: 1.2em;
    color: #ffffff;
    margin-bottom: 5px;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

.achievement-text p,
.level-up-text p {
    font-size: 1em;
    color: #ffff00;
    font-weight: bold;
    margin-bottom: 3px;
    text-shadow: 0 0 8px rgba(255, 255, 0, 0.6);
}

.achievement-text small,
.level-up-text small {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.8);
}

.reward-text {
    font-size: 0.9em;
    color: #00ff00 !important;
    font-weight: bold;
    margin-top: 5px;
}

@keyframes slideInFromRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
        transform: translateX(100%);
    }
}

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

/* 滚动条样式 */
.achievements-list::-webkit-scrollbar,
.features-list::-webkit-scrollbar {
    width: 6px;
}

.achievements-list::-webkit-scrollbar-track,
.features-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.achievements-list::-webkit-scrollbar-thumb,
.features-list::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 255, 0.5);
    border-radius: 3px;
}

.achievements-list::-webkit-scrollbar-thumb:hover,
.features-list::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 255, 0.7);
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .main-layout {
        grid-template-columns: 250px 1fr 250px;
        gap: 15px;
        padding: 15px;
    }
    
    .tech-title {
        font-size: 1.2em;
    }
}

@media (max-width: 768px) {
    .main-layout {
        grid-template-columns: 1fr;
        gap: clamp(8px, 2vw, 15px);
        padding: clamp(6px, 2vw, 10px);
    }
    
    .left-panel,
    .right-panel {
        order: 2;
        padding: clamp(12px, 2.5vw, 18px);
    }
    
    .game-section {
        order: 1;
    }
    
    .game-area {
        min-height: calc(100vh - 150px);
        padding: clamp(6px, 2vw, 10px);
    }
    
    .screen-content {
        padding: clamp(16px, 4vw, 20px);
        margin: clamp(6px, 2vw, 10px);
    }
    
    .tech-title {
        font-size: clamp(1.4em, 4.5vw, 1.8em);
    }
    
    .control-item {
        padding: clamp(4px, 1.5vw, 6px);
    }
    
    .metric-card {
        padding: clamp(8px, 2vw, 12px);
    }
}