* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: 'Microsoft YaHei', sans-serif;
    background: linear-gradient(135deg, #6090f8, #cc98a5, #499147);
    display: flex;
    justify-content: center;
    align-items: center;
}

#game-container {
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

#title-screen {
    text-align: center;
    padding: 2rem;
    background-color: white;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.9);
    width: 90%;
    max-width: 500px;
    margin: auto;
}

h1 {
    font-size: 2.5rem;
    color: #1a2a6c;
    margin-bottom: 2rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    font-weight: bold;
    letter-spacing: 2px;
}

.menu-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 2rem;
}

button {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    border: none;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

#start-game {
    background: linear-gradient(45deg, #2196F3, #00BCD4);
}

#continue-game {
    background: linear-gradient(45deg, #4CAF50, #8BC34A);
}

#help {
    background: linear-gradient(45deg, #9C27B0, #E91E63);
}

button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

button:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* 添加按钮涟漪效果 */
button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

button:active::after {
    width: 200px;
    height: 200px;
}

/* 添加游戏标题装饰 */
.title-decoration {
    position: relative;
    display: inline-block;
    padding: 0 20px;
}

.title-decoration::before,
.title-decoration::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
}

.title-decoration::before {
    left: -20px;
}

.title-decoration::after {
    right: -20px;
}

.hidden {
    display: none;
}

/* 添加更多基础样式... */

/* 存档状态提示样式 */
.save-status {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    animation: fadeInOut 2s ease-in-out;
    z-index: 1000;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

/* 导航栏样式 */
.nav-bar {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
}

.nav-button {
    background: transparent;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.nav-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
    background: rgba(255, 255, 255, 1);
}

.nav-button img {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
    opacity: 0.6;
}

.nav-button:hover img {
    transform: scale(1.1);
    opacity: 1;
}

.nav-button[title="返回案件选择"]::after {
    content: '←';
    font-size: 24px;
}

/* 通关反馈样式 */
.case-complete-box {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.complete-content {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    max-width: 500px;
    animation: fadeIn 0.5s ease;
}

.complete-content h2 {
    color: #1a2a6c;
    margin-bottom: 20px;
}

.complete-content p {
    margin: 15px 0;
    line-height: 1.6;
    color: #333;
}

.complete-buttons {
    margin-top: 25px;
}

.complete-buttons button {
    padding: 10px 25px;
    margin: 0 10px;
    border: none;
    border-radius: 5px;
    background: linear-gradient(45deg, #2196F3, #00BCD4);
    color: white;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.complete-buttons button:hover {
    transform: translateY(-2px);
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 倒计时样式 */
.countdown-box {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 16px;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
  