* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f);
    color: #fff;
    min-height: 100vh;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.container {
    max-width: 900px;
    width: 100%;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    margin-top: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #FFD700;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

.subtitle {
    font-size: 1.2rem;
    color: #ccc;
}

.page {
    display: none;
}

.active {
    display: block;
}

/* 全景页样式 */
.map-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 20px;
    margin-top: 30px;
}

.location {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.location:hover {
    transform: translateY(-5px);
    border-color: #FFD700;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
}

.location-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.location-name {
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 5px;
}

.location-desc {
    font-size: 0.9rem;
    color: #ccc;
}

/* 地点页面样式 */
.location-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.back-btn {
    padding: 8px 15px;
    background: #444;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.back-btn:hover {
    background: #666;
}

.location-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.location-image {
    width: 100%;
    max-width: 400px;
    height: 200px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 4rem;
    margin-bottom: 20px;
}

.location-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    justify-content: center;
}

button {
    padding: 10px 20px;
    background: linear-gradient(to right, #FF8C00, #FF4500);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: bold;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
}

button:disabled {
    background: #666;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.progress-container {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

.progress-bar {
    height: 15px;
    background: #333;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 10px;
}

.progress {
    height: 100%;
    background: linear-gradient(to right, #4CAF50, #8BC34A);
    width: 0%;
    transition: width 0.5s;
}

.log-container {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    padding: 15px;
    height: 200px;
    overflow-y: auto;
    margin-bottom: 20px;
    border: 1px solid #444;
}

.log-entry {
    margin-bottom: 10px;
    padding: 8px;
    border-radius: 3px;
    animation: fadeIn 0.5s;
}

.success {
    background: rgba(76, 175, 80, 0.2);
}

.error {
    background: rgba(244, 67, 54, 0.2);
}

.info {
    background: rgba(33, 150, 243, 0.2);
}

.treasure {
    background: rgba(255, 215, 0, 0.2);
}

.stats {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    padding: 10px;
    width: 100%;
}

.music-control {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 100;
}

.music-icon {
    font-size: 1.5rem;
}

.dice-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 10px 0;
    padding: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    width: 100%;
}

.dice-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
    margin: 10px 0;
}

.dice {
    width: 60px;
    height: 60px;
    background: white;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 2rem;
    color: #333;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.5s;
}

.rolling {
    animation: roll 1s ease-out;
}

@keyframes roll {
    0% { transform: rotate(0deg) scale(1); }
    25% { transform: rotate(90deg) scale(1.1); }
    50% { transform: rotate(180deg) scale(1.2); }
    75% { transform: rotate(270deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}

.dice-result {
    font-size: 1rem;
    margin-top: 5px;
    font-weight: bold;
    color: #FFD700;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.completed {
    border-color: #4CAF50;
    position: relative;
}

.completed::after {
    content: "✓";
    position: absolute;
    top: 10px;
    right: 10px;
    background: #4CAF50;
    color: white;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8rem;
}

.audio-notice {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    padding: 10px;
    margin-top: 10px;
    font-size: 0.8rem;
    text-align: center;
}