/* ============================================================================
   style.css  ——  外观
   一般不需要改。想换主色，只改下面 :root 里的几个变量就行。
   ============================================================================ */

:root {
  --paper: #f7f4ee;          /* 纸色背景 */
  --paper-2: #efeae0;        /* 略深一档，用于图片底 */
  --ink: #17150f;            /* 正文墨色 */
  --ink-2: #6f695e;          /* 次要文字 */
  --ink-3: #9c958a;          /* 更淡的说明 */
  --line: rgba(23, 21, 15, .14);
  --line-soft: rgba(23, 21, 15, .08);
  --accent: #a63d2f;         /* 强调色：朱红 */
  --serif: Georgia, 'Times New Roman', 'Songti SC', 'STSong', 'SimSun', 'Noto Serif SC', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
  --mono: 'SF Mono', 'Consolas', 'Roboto Mono', monospace;
  --wrap: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 40px;
}

/* ---------- 顶部导航 ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(247, 244, 238, .78);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease;
}

.site-header.is-scrolled { border-bottom-color: var(--line-soft); }

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: .04em;
  white-space: nowrap;
}

.brand em {
  font-style: normal;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .22em;
  color: var(--ink-3);
  margin-left: 10px;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 13px;
  color: var(--ink-2);
}

.nav a {
  position: relative;
  padding: 4px 0;
  transition: color .2s;
}

.nav a:hover { color: var(--ink); }

.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--ink);
  transition: right .28s ease;
}

.nav a:hover::after { right: 0; }

.lang {
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--ink-3);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 3px;
}

.lang button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 3px 9px;
  border-radius: 20px;
  cursor: pointer;
  transition: background .2s, color .2s;
}

.lang button.is-active {
  background: var(--ink);
  color: var(--paper);
}

/* ---------- 首页 ---------- */

.hero {
  padding: 132px 0 76px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 64px;
  align-items: center;
}

.hero-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.2rem, 8.4vw, 6.4rem);
  line-height: .96;
  letter-spacing: .02em;
  margin: 0 0 6px;
}

.hero-roman {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .38em;
  color: var(--ink-3);
  text-transform: uppercase;
  margin-bottom: 34px;
}

.hero-tag {
  font-family: var(--serif);
  font-size: clamp(1.02rem, 1.9vw, 1.28rem);
  line-height: 1.72;
  color: var(--ink-2);
  max-width: 30em;
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 30px;
  font-size: 12.5px;
  color: var(--ink-2);
}

.hero-links a {
  border-bottom: 1px solid var(--line);
  padding-bottom: 1px;
  transition: border-color .2s, color .2s;
}

.hero-links a:hover { color: var(--accent); border-color: var(--accent); }

.hero-media { position: relative; }

.hero-media figure {
  margin: 0;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--paper-2);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.92) contrast(1.02);
  transition: transform 1.2s cubic-bezier(.2, .8, .2, 1);
}

.hero-media:hover img { transform: scale(1.02); }

.hero-media figcaption {
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--ink-3);
  margin-top: 12px;
  max-width: 34em;
}

/* ---------- 区块通用 ---------- */

.section {
  padding: 84px 0;
  border-top: 1px solid var(--line-soft);
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  margin: 0;
  letter-spacing: .01em;
}

.section-desc {
  font-size: 13px;
  color: var(--ink-3);
  margin: 0;
}

.section-count {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  color: var(--ink-3);
  text-transform: uppercase;
}

/* ---------- 作品档案 ---------- */

.year-block { margin-bottom: 60px; }

.year-block:last-child { margin-bottom: 0; }

.year-label {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 21px;
}

.year-label span {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5.4vw, 3.6rem);
  line-height: 1;
  color: var(--ink);
  letter-spacing: .01em;
}

.year-label i {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.year-label b {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 400;
  color: var(--ink-3);
}

.work {
  border-top: 1px solid var(--line);
}

.work:last-child { border-bottom: 1px solid var(--line); }

.work-row {
  display: grid;
  grid-template-columns: 46px 96px minmax(0, 1fr) 44px;
  gap: 22px;
  align-items: center;
  padding: 20px 0;
  cursor: pointer;
  transition: background .25s;
}

.work-row:hover .work-title { color: var(--accent); }

.work-row:hover .work-cover img { transform: scale(1.05); }

.work-index {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: .08em;
  align-self: start;
  padding-top: 6px;
}

.work-cover {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--paper-2);
}

.work-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .8, .2, 1);
}

.work-title {
  font-family: var(--serif);
  font-size: clamp(1.14rem, 2.1vw, 1.42rem);
  line-height: 1.35;
  margin: 0;
  transition: color .2s;
}

.work-en {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-left: 12px;
  white-space: nowrap;
}

.work-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  font-size: 12.5px;
  color: var(--ink-2);
  margin-top: 5px;
}

.work-sub .dot { color: var(--line); }

.work-play {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .22s, color .22s, border-color .22s;
  flex: none;
}

.work-row:hover .work-play { border-color: var(--ink); }

.work-play:hover,
.work-play.is-playing {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.work-play svg { width: 13px; height: 13px; }

/* 展开面板 */

.work-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .46s cubic-bezier(.22, .8, .24, 1);
}

.work.is-open .work-panel { grid-template-rows: 1fr; }

.work-panel > div { overflow: hidden; }

.panel-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 44px;
  padding: 6px 0 34px 186px;   /* 186 = 编号46 + gap22 + 封面96 + gap22，和标题列对齐 */
  opacity: 0;
  transition: opacity .3s ease .08s;
}

.work.is-open .panel-inner { opacity: 1; }

/* 播放器 */

.player { grid-column: 1 / -1; margin-bottom: 26px; }

.audio-bar {
  display: flex;
  align-items: center;
  gap: 16px;
}

.time {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-2);
  min-width: 38px;
  letter-spacing: .02em;
}

.bar {
  position: relative;
  flex: 1;
  height: 22px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.bar::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  top: 50%;
  height: 1px;
  background: var(--line);
  transform: translateY(-50%);
}

.bar-fill {
  position: absolute;
  left: 0; top: 50%;
  height: 1px;
  background: var(--accent);
  transform: translateY(-50%);
  width: 0;
  pointer-events: none;
}

.bar-head {
  position: absolute;
  top: 50%;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%) scale(0);
  transition: transform .2s;
  pointer-events: none;
}

.bar:hover .bar-head { transform: translate(-50%, -50%) scale(1); }

.notes-label,
.lyric-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 12px;
}

.notes-text {
  font-size: 14.5px;
  line-height: 1.95;
  color: var(--ink-2);
  margin: 0;
  font-family: var(--serif);
}

.lyric-text {
  font-family: var(--serif);
  font-size: 14.5px;
  line-height: 2.1;
  color: var(--ink-2);
  white-space: pre-line;
  margin: 0;
}

.work-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
  grid-column: 1 / -1;
}

.work-links a {
  font-size: 12px;
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 5px 12px;
  transition: background .2s, color .2s, border-color .2s;
}

.work-links a:hover {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.audio-error {
  font-size: 12.5px;
  color: var(--accent);
  font-family: var(--mono);
}

/* ---------- 关于 ---------- */

.about-grid {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 64px;
  align-items: center;
}

.about-grid figure {
  margin: 0;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--paper-2);
}

.about-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.92);
}

.about-text p {
  font-family: var(--serif);
  font-size: 16.5px;
  line-height: 2.05;
  color: var(--ink-2);
  margin: 0 0 22px;
  max-width: 32em;
}

.about-text p:first-child {
  color: var(--ink);
  font-size: 18px;
}

/* ---------- 现场 ---------- */

.live-list { border-top: 1px solid var(--line-soft); }

.live-row {
  display: grid;
  grid-template-columns: 108px 100px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 14px;
  transition: background .2s;
}

.live-row:hover { background: rgba(23, 21, 15, .022); }

.live-date {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: .02em;
}

.live-city { color: var(--ink-2); font-size: 13.5px; }

.live-venue { font-family: var(--serif); font-size: 16px; }

.live-with { color: var(--ink-3); font-size: 12.5px; margin-left: 8px; }

.live-status {
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 3px 12px;
  white-space: nowrap;
}

.live-status.is-on {
  color: var(--accent);
  border-color: rgba(166, 61, 47, .4);
}

/* ---------- 联系 ---------- */

.contact {
  padding: 96px 0 110px;
  text-align: center;
}

.contact-lead {
  font-family: var(--serif);
  font-size: clamp(1.06rem, 2vw, 1.22rem);
  color: var(--ink-2);
  max-width: 34em;
  margin: 0 auto 34px;
  line-height: 1.9;
  text-wrap: pretty;
}

.contact-mail {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(1.5rem, 4.2vw, 2.5rem);
  border-bottom: 1px solid var(--line);
  padding-bottom: 6px;
  transition: color .25s, border-color .25s;
  word-break: break-word;
}

.contact-mail:hover { color: var(--accent); border-color: var(--accent); }

.contact-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin-top: 44px;
  font-size: 13px;
  color: var(--ink-2);
}

.contact-links a { border-bottom: 1px solid var(--line-soft); padding-bottom: 1px; }

.contact-links a:hover { color: var(--accent); border-color: var(--accent); }

/* ---------- 页脚 ---------- */

.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 34px 0 44px;
  font-size: 12px;
  color: var(--ink-3);
}

.site-footer .wrap {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.to-top { cursor: pointer; border: 0; background: none; font: inherit; color: inherit; }
.to-top:hover { color: var(--ink); }

/* ---------- 渐入 ---------- */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s cubic-bezier(.2, .8, .2, 1), transform .7s cubic-bezier(.2, .8, .2, 1);
}

.reveal.is-in { opacity: 1; transform: none; }

/* ---------- 响应式 ---------- */

@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .hero-media figure { aspect-ratio: 5 / 4; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-grid figure { aspect-ratio: 4 / 3; }
  .panel-inner { grid-template-columns: 1fr; gap: 28px; padding-left: 0; }
}

@media (max-width: 720px) {
  .wrap { padding: 0 22px; }
  .nav { gap: 16px; font-size: 12px; }
  .brand em { display: none; }
  .hero { padding: 106px 0 52px; }
  .section { padding: 58px 0; }
  .work-row { grid-template-columns: 30px 66px minmax(0, 1fr) 38px; gap: 13px; padding: 15px 0; }
  .work-play { width: 38px; height: 38px; }
  .work-role { display: none; }
  .work-en { display: none; }
  .work-index { padding-top: 3px; }
  .live-row {
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
    padding: 16px 0;
  }
  .live-date { grid-column: 1; }
  .live-status { grid-row: 1; grid-column: 2; }
  .live-city { grid-column: 1 / -1; }
  .live-venue { grid-column: 1 / -1; }
  .contact { padding: 68px 0 80px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
