/* style.css */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 默认：暗黑模式变量 */
:root {
  --bg: #0a0a0a;
  --bg-hover: #171717;
  --text-main: #cccccc;
  --text-desc: #949494;
  --text-muted: #666666;
  --text-footer: #555555;
  --accent: #4dd0e1;
}

/* 浅色模式 class */
.light-mode {
  --bg: #ffffff;
  --bg-hover: #eeeeee;
  --text-main: #0097A7;
  --text-desc: #555555;
  --text-muted: #888888;
  --text-footer: #777777;
  --accent: #0097a7;
}

/* 系统浅色偏好（未手动设置时自动生效） */
@media (prefers-color-scheme: light) {
  :root:not(.force-dark) {
    --bg: #ffffff;
    --bg-hover: #eeeeee;
    --text-main: #0097A7;
    --text-desc: #555555;
    --text-muted: #888888;
    --text-footer: #777777;
    --accent: #0097a7;
  }
}

body {
  background-color: var(--bg);
  color: var(--text-main);
  font-family: "Noto Sans SC", system-ui, -apple-system, sans-serif;
  padding: 48px 24px;
  line-height: 1.5;
  transition: background 0.3s ease, color 0.3s ease;
}

.container {
  max-width: 640px;
  margin: 0 auto;
}

header {
  margin-bottom: 40px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.header-text h1 {
  color: var(--accent);
  font-size: 24px;
  font-weight: 500;
}

.header-text p {
  color: var(--text-desc);
  margin-top: 6px;
}

#themeToggle {
  background: transparent;
  border: 1px solid var(--text-muted);
  color: var(--text-main);
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size:14px;
}
#themeToggle:hover {
  background: var(--bg-hover);
}

.group-title {
  font-size: 14px;
  color: var(--text-muted);
  padding: 0 12px;
  margin: 32px 0 8px;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  border-radius: 6px;
  transition: background-color 0.15s ease;
  cursor: pointer;
}

.menu-item:hover {
  background-color: var(--bg-hover);
}

.menu-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon {
  width: 20px;
  text-align: center;
}

.item-desc {
  font-size: 14px;
  color: var(--text-desc);
  margin-top: 4px;
}

.arrow {
  color: var(--text-muted);
}

a {
  color: inherit;
  text-decoration: none;
}

footer {
  margin-top: 80px;
  text-align: center;
  font-size: 14px;
  color: var(--text-footer);
}
