/* 作者：余纪柱，辅助编辑：柱子AI */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #f9f9f7;
  --text: #1a1a1a;
  --muted: #888;
  --accent: #2563eb;
  --border: #e5e5e5;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

main {
  max-width: 480px;
  width: 100%;
}

/* intro */
.intro {
  margin-bottom: 3rem;
}

.intro h1 {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.intro .tagline {
  color: var(--muted);
  margin-top: 0.25rem;
  font-size: 1rem;
}

/* sections */
section + section {
  margin-top: 2rem;
}

h2 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

ul {
  list-style: none;
}

/* projects */
.projects li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.projects li:first-child {
  border-top: 1px solid var(--border);
}

.projects a {
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}

.projects a:hover {
  color: var(--accent);
}

.projects span {
  color: var(--muted);
  font-size: 0.875rem;
}

/* contact */
.contact a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.contact a:hover {
  color: var(--accent);
}

@media (max-width: 480px) {
  body {
    align-items: flex-start;
    padding: 3rem 1.5rem;
  }
}

/* 音乐按钮 */
#mute-btn {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s;
  padding: 0.25rem;
  line-height: 1;
}

#mute-btn:hover {
  opacity: 1;
}

/* 动漫 */
.anime li {
  padding: 0.4rem 0;
  color: var(--text);
  font-size: 0.9rem;
}

/* 无链接作品名 */
.project-name {
  color: var(--text);
  font-weight: 500;
}
