:root {
  --ink: #1a1b18;
  --muted: #777a70;
  --paper: #f4f4ef;
  --surface: #ffffff;
  --line: #dedfd6;
  --accent: #e65e48;
  --accent-soft: #f9ddd6;
  --green: #70856d;
  --shadow: 0 18px 45px rgba(24, 27, 20, 0.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

.site-header {
  height: 76px;
  padding: 0 clamp(20px, 5vw, 76px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand > span:last-child { display: grid; gap: 2px; }
.brand strong { font-family: Georgia, serif; font-size: 20px; font-weight: 700; }
.brand small { color: var(--muted); font-size: 10px; letter-spacing: .12em; }
.brand-mark {
  width: 36px;
  height: 36px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: var(--ink);
  font-family: Georgia, serif;
  font-size: 20px;
  line-height: 1;
}
.main-nav { display: flex; gap: clamp(18px, 4vw, 42px); margin-left: auto; margin-right: 38px; }
.main-nav a { color: var(--muted); font-size: 13px; }
.main-nav a:hover, .main-nav a.active { color: var(--ink); }
.main-nav a.active { font-weight: 700; }
.icon-button, .modal-close {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.hero {
  padding: 72px clamp(20px, 5vw, 76px) 36px;
  background: var(--ink);
  color: #fff;
}
.hero-inner {
  max-width: 1250px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .2em;
}
.hero h1 {
  max-width: 680px;
  margin: 0;
  font-family: Georgia, "Songti SC", serif;
  font-size: clamp(42px, 6vw, 78px);
  font-weight: 500;
  line-height: 1.04;
}
.hero h1 em { color: #f3927e; font-style: normal; }
.hero-description { max-width: 420px; margin: 24px 0 0; color: #bfc2b6; font-size: 15px; line-height: 1.8; }
.hero-stat { min-width: 190px; padding-bottom: 7px; border-left: 1px solid #44483f; padding-left: 22px; }
.hero-stat span, .hero-stat small { display: block; color: #a7aa9f; font-size: 12px; }
.hero-stat strong { display: block; margin: 7px 0; font-family: Georgia, serif; font-size: 48px; font-weight: 500; }
.search-wrap {
  max-width: 1250px;
  margin: 58px auto 0;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 17px;
  background: #2a2d27;
  border: 1px solid #4a4d45;
}
.search-symbol { color: #f3927e; font-size: 25px; line-height: 1; }
.search-wrap input { min-width: 0; flex: 1; border: 0; outline: 0; color: #fff; background: transparent; font-size: 15px; }
.search-wrap input::placeholder { color: #8e9288; }
kbd { padding: 3px 7px; color: #989c91; border: 1px solid #555950; font-size: 11px; }

.toolbar {
  max-width: 1250px;
  margin: 0 auto;
  padding: 28px 0 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.filter-group { display: flex; flex-wrap: wrap; gap: 9px; }
.filter-chip {
  padding: 9px 15px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
}
.filter-chip:hover, .filter-chip.selected { color: var(--ink); border-color: var(--ink); background: var(--surface); }
.sort-control { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.sort-control select { padding: 8px 25px 8px 9px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }

.content-section { max-width: 1250px; margin: 0 auto; padding: 20px 0 100px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 24px; }
.section-heading h2, .about-band h2 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: 34px; font-weight: 500; }
.result-count { color: var(--muted); font-size: 12px; }
.album-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.album-card { overflow: hidden; background: var(--surface); border: 1px solid var(--line); }
.album-cover { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #d6d8d0; }
.album-cover.missing { display: grid; place-items: center; background: #cfd6c9; }
.album-cover.missing::before { content: "幻集社 / PREVIEW"; color: rgba(26, 27, 24, .5); font-size: 10px; letter-spacing: .18em; transform: rotate(-90deg); }
.album-cover img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .45s ease; }
.album-card:hover .album-cover img { transform: scale(1.045); }
.album-overlay { position: absolute; inset: auto 0 0; padding: 38px 14px 12px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.7)); }
.album-overlay span { font-size: 11px; }
.album-body { padding: 15px 15px 16px; }
.album-title { margin: 0 0 8px; font-family: Georgia, "Songti SC", serif; font-size: 19px; font-weight: 500; }
.album-meta { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 11px; }
.album-tag { color: var(--green); }
.album-action { width: 100%; margin-top: 15px; padding: 9px 0; border: 1px solid var(--line); color: var(--ink); background: transparent; cursor: pointer; font-size: 12px; }
.album-action:hover { border-color: var(--accent); color: var(--accent); }
.empty-state { padding: 80px 20px; text-align: center; color: var(--muted); }
.empty-state span { font-size: 32px; color: var(--accent); }
.empty-state h3 { margin: 12px 0 6px; color: var(--ink); font-family: Georgia, serif; font-size: 24px; font-weight: 500; }
.empty-state p { margin: 0; font-size: 13px; }

.about-band {
  padding: 70px max(20px, calc((100vw - 1250px) / 2));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  background: #dfe5dc;
}
.about-band .eyebrow { color: var(--green); }
.about-band h2 { max-width: 460px; }
.about-band > p { align-self: end; max-width: 440px; margin: 0; color: #596257; line-height: 1.9; font-size: 14px; }
.site-footer {
  padding: 25px clamp(20px, 5vw, 76px);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  background: var(--surface);
  font-size: 11px;
}

.age-gate, .modal-backdrop { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 20px; background: rgba(14, 16, 13, .83); }
.age-panel { width: min(460px, 100%); padding: 40px; background: var(--paper); box-shadow: var(--shadow); }
.age-panel .brand-mark { margin-bottom: 28px; }
.age-panel h1 { margin: 0; font-family: Georgia, serif; font-size: 35px; font-weight: 500; }
.age-copy { margin: 16px 0 28px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.age-actions { display: flex; gap: 10px; }
.button { padding: 12px 16px; border: 1px solid transparent; cursor: pointer; font-size: 12px; }
.button-primary { color: #fff; background: var(--accent); }
.button-primary:hover { background: #cb4936; }
.button-quiet { border-color: var(--line); color: var(--muted); background: transparent; }
.button-dark { color: #fff; background: var(--ink); }
.modal-backdrop { z-index: 15; }
.album-modal { position: relative; width: min(920px, 100%); max-height: 90vh; overflow: auto; padding: 34px; background: var(--paper); box-shadow: var(--shadow); }
.modal-close { position: absolute; top: 20px; right: 20px; border: 0; font-size: 26px; font-weight: 300; }
.modal-head { padding-right: 45px; }
.modal-head h2 { margin: 0 0 8px; font-family: Georgia, serif; font-size: 34px; font-weight: 500; }
.modal-head p:last-child { margin: 0 0 24px; color: var(--muted); font-size: 12px; }
.modal-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.modal-gallery img { width: 100%; aspect-ratio: 3 / 4; display: block; object-fit: cover; background: #d6d8d0; }
.modal-gallery .missing { display: grid; place-items: center; color: var(--muted); background: #dfe5dc; font-size: 11px; }
.modal-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 24px; padding-top: 17px; border-top: 1px solid var(--line); }
.status-dot { color: var(--green); font-size: 12px; }
.toast { position: fixed; z-index: 30; right: 24px; bottom: 24px; max-width: min(360px, calc(100vw - 48px)); padding: 13px 16px; color: #fff; background: var(--ink); box-shadow: var(--shadow); font-size: 12px; opacity: 0; pointer-events: none; transform: translateY(10px); transition: .25s ease; }
.toast.show { opacity: 1; transform: translateY(0); }
[hidden] { display: none !important; }

body.light-mode { --ink: #28312a; --paper: #f5f7f2; --surface: #fff; --line: #d9e1d8; --accent: #c64d38; }
body.light-mode .hero { background: #28312a; }

@media (max-width: 1000px) {
  .toolbar, .content-section { margin-left: 20px; margin-right: 20px; }
  .album-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .site-header { height: 66px; }
  .main-nav { gap: 17px; margin-right: 14px; }
  .main-nav a { font-size: 12px; }
  .hero { padding-top: 48px; }
  .hero-inner { display: block; }
  .hero-stat { margin-top: 34px; }
  .search-wrap { margin-top: 40px; }
  .toolbar { display: block; }
  .sort-control { margin-top: 16px; }
  .album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .album-body { padding: 12px; }
  .album-title { font-size: 17px; }
  .about-band { display: block; padding: 54px 20px; }
  .about-band > p { margin-top: 28px; }
  .site-footer { display: block; line-height: 1.8; }
  .site-footer span { display: block; }
  .site-footer span + span { margin-top: 6px; }
  .age-panel { padding: 30px 24px; }
  .modal-gallery { grid-template-columns: repeat(2, 1fr); }
  .modal-foot { align-items: stretch; flex-direction: column; }
}
@media (max-width: 420px) {
  .brand small { display: none; }
  .main-nav a:last-child { display: none; }
  .hero h1 { font-size: 42px; }
  .album-grid { grid-template-columns: 1fr 1fr; }
  .album-action { font-size: 11px; }
}
