:root {
  --bg-color: #ffffff;
  --text-color: #111111;
  --text-secondary: #666666;
  --accent-color: #ff3333;
  --transition: all 0.3s ease;
}

[data-theme="dark"] {
  --bg-color: #111111;
  --text-color: #eeeeee;
  --text-secondary: #888888;
  --accent-color: #ff5555;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  transition: var(--transition);
  font-size: 18px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--text-color);
  text-decoration: none;
  transition: var(--transition);
}

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

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 10vh 20px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10vh;
}

nav {
  display: flex;
  gap: 20px;
}

nav a {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.nav-active {
  color: var(--accent-color);
}

.theme-toggle {
  background: none;
  border: none;
  color: var(--text-color);
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition);
}

.theme-toggle:hover {
  color: var(--accent-color);
}

h1 {
  font-size: 3rem;
  font-weight: 300;
  margin-bottom: 2rem;
  letter-spacing: -1px;
}

h2 {
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
}

p {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-weight: 300;
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
}

.item-list {
  list-style: none;
}

.item {
  margin-bottom: 4rem;
  position: relative;
  padding-bottom: 2rem;
}

.item-meta {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: absolute;
  bottom: 0;
  right: 0;
  opacity: 0.7;
}

.item-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.album {
  margin-bottom: 5rem;
}

.album-title {
  margin-bottom: 2rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  cursor: pointer;
  transition: var(--transition);
  /* 严格去除滤镜，不再有任何黑白遮罩 */
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--bg-color);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 40px;
  right: 40px;
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 2rem;
  cursor: pointer;
  z-index: 1001;
}

.lightbox-prev, .lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-color);
  font-size: 2rem;
  cursor: pointer;
  padding: 20px;
  z-index: 1001;
}

.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }

@media (max-width: 768px) {
  h1 { font-size: 2.5rem; }
  .grid { 
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto; 
    scroll-snap-type: x mandatory; 
    gap: 15px;
    padding-bottom: 15px;
  }
  .grid::-webkit-scrollbar { display: none; }
  .grid { -ms-overflow-style: none; scrollbar-width: none; }
  .grid img { 
    flex: 0 0 85%; 
    scroll-snap-align: center; 
    max-width: 350px;
  }
  .container { padding: 5vh 20px; }
}

@media (max-width: 480px) {
  nav { flex-wrap: wrap; gap: 10px; }
}
