/* 全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Arial', sans-serif;
}

body {
  background-color: #f5f5f5;
}

header {
  background: #2c3e50;
  color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

nav a {
  color: white;
  text-decoration: none;
  margin-left: 1.5rem;
  transition: color 0.3s;
}

nav a:hover {
  color: #ffd700;
}

main {
  min-height: calc(100vh - 64px);
}

/* 全景页样式 */
.scene-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.scene-card {
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: #333;
  background: white;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.scene-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.scene-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.scene-info {
  padding: 1.2rem;
}

.scene-info h2 {
  margin-bottom: 0.5rem;
  color: #2c3e50;
}

.scene-info p {
  color: #666;
  font-size: 0.95rem;
}

/* 场景页样式 */
.scene-page {
  position: relative;
  height: calc(100vh - 64px);
  overflow: hidden;
}

.scene-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.8);
}

.scene-desc {
  position: absolute;
  bottom: 3rem;
  left: 3rem;
  right: 3rem;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 1.5rem;
  border-radius: 10px;
  max-width: 800px;
}

.scene-desc p {
  line-height: 1.6;
  margin-bottom: 1rem;
}

.scene-desc button {
  padding: 0.8rem 1.5rem;
  background: #e74c3c;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.3s;
}

.scene-desc button:hover {
  background: #c0392b;
}

/* 探险页样式 */
.adventure-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

/* 用户管理页样式 */
.user-page {
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.user-info {
  background: white;
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.user-info h2 {
  margin-bottom: 1rem;
  color: #2c3e50;
  border-bottom: 2px solid #eee;
  padding-bottom: 0.5rem;
}

.user-info p {
  margin: 0.8rem 0;
  line-height: 1.5;
}

.user-info input {
  padding: 0.5rem;
  border: 1px solid #ddd;
  border-radius: 5px;
  width: 200px;
}

.treasure-list {
  margin: 1rem 0 1rem 1rem;
}

.treasure-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0.5rem 0;
  color: #555;
}

.user-page button {
  padding: 0.8rem 1.5rem;
  background: #3498db;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

.user-page button:hover {
  background: #2980b9;
}

/* 排行榜页样式 */
.rank-page {
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.rank-list {
  list-style: none;
}

.rank-item {
  background: white;
  border-radius: 8px;
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.rank-item.first {
  border-left: 5px solid #ffd700;
}

.rank-item.second {
  border-left: 5px solid #c0c0c0;
}

.rank-item.third {
  border-left: 5px solid #cd7f32;
}

.rank-num {
  font-weight: bold;
  width: 30px;
}

.rank-name {
  flex: 1;
  margin: 0 1rem;
}

.rank-score {
  color: #e74c3c;
  font-weight: bold;
}