/* 全新简化版设置界面样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Microsoft YaHei', '微软雅黑', Arial, sans-serif;
}

:root {
  --primary-color: #3a86ff;
  --primary-dark: #2a5db0;
  --bg-color: #f5f7fa;
  --bg-panel: #ffffff;
  --text-color: #333;
  --text-color-light: #666;
  --border-color: #e1e5eb;
  --success-color: #4caf50;
  --secondary-color: #ff6b6b;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --border-radius: 10px;
}

body {
  background-color: var(--bg-color);
  color: var(--text-color);
  height: 100vh;
  overflow: hidden;
  font-size: 14px;
}

.settings-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background-color: var(--bg-panel);
  overflow: hidden;
}

/* 标题栏 */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  position: relative;
  user-select: none;
  -webkit-app-region: drag; /* 启用系统级拖动 */
}

.header h1 {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

#close-btn {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  -webkit-app-region: no-drag; /* 禁用按钮的拖动 */
}

#close-btn:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

/* 内容区域 */
.settings-content {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  background-color: var(--bg-color);
}

/* 设置部分 */
.settings-section {
  margin-bottom: 25px;
  background-color: var(--bg-panel);
  border-radius: var(--border-radius);
  padding: 20px;
  border: 1px solid var(--border-color);
}

.settings-section h2 {
  font-size: 16px;
  margin-bottom: 18px;
  color: var(--primary-color);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
  display: flex;
  align-items: center;
}

.settings-section h2::before {
  content: "⚙️";
  margin-right: 8px;
  font-size: 18px;
}

.settings-section:nth-child(1) h2::before { content: "⚙️"; }
.settings-section:nth-child(2) h2::before { content: "🎨"; }
.settings-section:nth-child(3) h2::before { content: "🎮"; }
.settings-section:nth-child(4) h2::before { content: "ℹ️"; }

/* 设置项 */
.setting-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding: 12px 10px;
}

.setting-item label {
  font-size: 14px;
  font-weight: 500;
}

/* 复选框样式 */
input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

/* 滑块样式 */
input[type="range"] {
  width: 160px;
}

/* 皮肤选择器 */
.pet-skins {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-top: 15px;
}

.skin-item {
  position: relative;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 12px 8px 8px;
  text-align: center;
  cursor: pointer;
  background-color: white;
  overflow: hidden;
}

.skin-item.selected {
  border-color: var(--primary-color);
}

.skin-item img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  margin-bottom: 8px;
}

.skin-item span {
  display: block;
  font-size: 12px;
  margin-top: 5px;
  color: var(--text-color);
  font-weight: 500;
}

.skin-item.locked {
  opacity: 0.7;
  cursor: not-allowed;
  background-color: #f8f8f8;
}

.lock-icon {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 16px;
}

/* 关于信息 */
.about-info {
  text-align: center;
  padding: 20px 10px;
  color: var(--text-color-light);
  font-size: 14px;
  line-height: 1.6;
}

.about-info p {
  margin-bottom: 8px;
}

/* 底部按钮区域 */
.footer {
  display: flex;
  justify-content: flex-end;
  padding: 18px 24px;
  background-color: var(--bg-panel);
  border-top: 1px solid var(--border-color);
}

button {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}

#save-btn {
  background-color: var(--primary-color);
  color: white;
  margin-left: 12px;
}

#save-btn:hover {
  background-color: var(--primary-dark);
}

#reset-btn {
  background-color: #f0f0f0;
  color: var(--text-color);
}

#reset-btn:hover {
  background-color: #e0e0e0;
}

/* 音量值显示 */
.volume-value {
  color: var(--primary-color);
  font-weight: 500;
  margin-left: 10px;
  min-width: 40px;
  text-align: right;
}

/* 保存提示 */
.saved-notice {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--success-color);
  color: white;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: 500;
  z-index: 1000;
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #aaa;
} 