/* ===================================================================
   style.css — 陳嫺靜 Discography Archive
   设计关键词：白底、清爽、留白、文艺、档案馆、阅读优先
   =================================================================== */

/* ===== CSS 变量 (Design Tokens) ===== */
:root {
  /* 颜色 */
  --bg-primary: #FCFCFA;
  --text-primary: #2F2F2F;
  --text-secondary: #666666;
  --accent: #80977A;
  --accent-dark: #5C7058;
  --accent-light: #E8EFE6;
  --timeline: #B98C52;
  --timeline-light: #F2E6D6;
  --dark-brown: #5A4632;
  --border-light: #E5E5E0;
  --border-medium: #D5D5CF;
  --shadow-light: rgba(0, 0, 0, 0.06);
  --shadow-medium: rgba(0, 0, 0, 0.10);
  --shadow-heavy: rgba(0, 0, 0, 0.25);
  --spoiler-bg: #2F2F2F;
  --white: #FFFFFF;

  /* 排版 */
  --font-primary: 'Noto Sans TC', 'Noto Sans SC', system-ui, -apple-system, sans-serif;
  --font-size-body: 16px;
  --font-size-h1: 40px;
  --font-size-h2: 28px;
  --font-size-h3: 20px;
  --font-size-small: 14px;
  --line-height: 1.8;
  --line-height-heading: 1.3;

  /* 布局 */
  --sidebar-width: 260px;
  --content-max-width: 850px;
  --content-padding: 40px;
  --section-gap: 60px;
  --card-radius: 8px;
  --figure-radius: 6px;

  /* 动画 */
  --transition-fast: 200ms ease;
  --transition-normal: 300ms ease;
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-primary);
  font-size: var(--font-size-body);
  line-height: var(--line-height);
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* 为固定侧栏留空间 */
  padding-left: var(--sidebar-width);
}

/* ===== 侧栏遮罩 (手机端) ===== */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 90;
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

.sidebar-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* ===== 手机端菜单按钮 ===== */
.menu-toggle {
  display: none;
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--card-radius);
  padding: 8px 14px;
  cursor: pointer;
  font-family: var(--font-primary);
  font-size: var(--font-size-small);
  color: var(--text-primary);
  box-shadow: 0 1px 4px var(--shadow-light);
  transition: background var(--transition-fast);
  align-items: center;
  gap: 6px;
}

.menu-toggle:hover {
  background: var(--accent-light);
}

.menu-icon {
  font-size: 18px;
  line-height: 1;
}

/* ===== 左侧固定目录 ===== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--white);
  border-right: 1px solid var(--border-light);
  z-index: 95;
  padding: 24px 20px 40px;
  display: flex;
  flex-direction: column;
  /* 隐藏滚动条但可滚动 */
  scrollbar-width: thin;
  scrollbar-color: var(--border-medium) transparent;
}

.sidebar::-webkit-scrollbar {
  width: 4px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: 2px;
}

.sidebar-header {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-light);
}

.sidebar-logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.sidebar-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin-top: 2px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ===== 搜索框 ===== */
.search-box {
  position: relative;
  margin-bottom: 16px;
}

.search-input {
  width: 100%;
  padding: 8px 32px 8px 12px;
  border: 1px solid var(--border-light);
  border-radius: var(--card-radius);
  font-family: var(--font-primary);
  font-size: 13px;
  color: var(--text-primary);
  background: var(--bg-primary);
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-light);
}

.search-input::placeholder {
  color: var(--text-secondary);
  font-size: 12px;
}

.search-clear {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 16px;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 50%;
  display: none;
  line-height: 1;
  transition: color var(--transition-fast);
}

.search-clear:hover {
  color: var(--text-primary);
}

.search-clear.visible {
  display: block;
}

/* 搜索结果 */
.search-results {
  margin-bottom: 16px;
  max-height: 300px;
  overflow-y: auto;
  display: none;
  border: 1px solid var(--border-light);
  border-radius: var(--card-radius);
  background: var(--white);
}

.search-results.active {
  display: block;
}

.search-result-item {
  display: block;
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: var(--accent-light);
}

.search-result-item mark {
  background: #F2E6D6;
  color: var(--dark-brown);
  font-weight: 500;
  border-radius: 2px;
  padding: 0 1px;
}

.search-no-results {
  padding: 12px;
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
}

/* ===== 目录列表 ===== */
.toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
}

.toc-list li {
  margin: 0;
}

.toc-list a {
  display: block;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: 4px;
  transition: all var(--transition-fast);
  border-left: 2px solid transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toc-list a:hover {
  color: var(--accent);
  background: var(--accent-light);
  border-left-color: var(--accent);
}

.toc-list a.active {
  color: var(--accent);
  font-weight: 500;
  border-left-color: var(--accent);
  background: var(--accent-light);
}

/* ===== 主内容区 ===== */
.main-content {
  max-width: var(--content-max-width);
  margin: 0 auto;
  padding: 60px var(--content-padding) 80px;
  min-height: 100vh;
}

/* ===== Header ===== */
.page-header {
  text-align: left;
  margin-bottom: 40px;
}

/* 标题横向排列：logo + 文字 */
.header-top {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-bottom: 12px;
}

.header-logo-img {
  max-width: 320px;
  height: auto;
  flex-shrink: 0;
}

.header-titles {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.header-title {
  font-size: 52px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.03em;
  margin-bottom: 4px;
  line-height: var(--line-height-heading);
}

.header-subtitle {
  font-size: var(--font-size-small);
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  margin-bottom: 0;
}

.header-legend {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 8px;
  font-style: italic;
  line-height: 1.6;
}

/* ===== 轮播 ===== */
.carousel-section {
  margin-bottom: 40px;
}

.carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--card-radius);
  background: var(--border-light);
}

.carousel-track {
  display: flex;
  transition: transform 400ms cubic-bezier(0.25, 0.1, 0.25, 1);
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
}

.carousel-slide img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
}

/* 1:1 方形轮播 */
.carousel-square .carousel-slide img {
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* 轮播指示器 */
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 14px 0;
  background: var(--white);
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-medium);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background var(--transition-normal);
}

.carousel-dot.active {
  background: var(--accent);
  width: 20px;
  border-radius: 4px;
}

.carousel-dot:hover {
  background: var(--accent);
  opacity: 0.7;
}

/* 轮播箭头 */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.55);
  border: none;
  color: var(--text-primary);
  font-size: 22px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-normal), opacity var(--transition-normal);
  opacity: 0;
  pointer-events: none;
  backdrop-filter: blur(2px);
}

.carousel-container:hover .carousel-arrow {
  opacity: 1;
  pointer-events: auto;
}

.carousel-arrow:hover {
  background: rgba(255, 255, 255, 0.85);
}

.carousel-arrow-left {
  left: 12px;
}

.carousel-arrow-right {
  right: 12px;
}

/* ===== 章节标题 H2 ===== */
.section-heading {
  font-size: var(--font-size-h2);
  font-weight: 700;
  color: var(--text-primary);
  margin-top: var(--section-gap);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-light);
  letter-spacing: 0.02em;
  line-height: var(--line-height-heading);
}

/* ===== 子标题 H3 ===== */
.subsection-heading {
  font-size: var(--font-size-h3);
  font-weight: 600;
  color: var(--dark-brown);
  margin-top: 36px;
  margin-bottom: 16px;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
  line-height: var(--line-height-heading);
}

/* ===== 时间轴 ===== */
.timeline-item {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  position: relative;
}

.timeline-dot {
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--timeline);
  margin-top: 8px;
  position: relative;
  box-shadow: 0 0 0 3px var(--timeline-light);
}

.timeline-dot::after {
  content: '';
  position: absolute;
  top: 10px;
  left: 4px;
  width: 1px;
  height: calc(100% + 28px);
  background: var(--border-medium);
  /* 不遮挡后面内容，只作为视觉引导线 */
  opacity: 0.5;
}

.timeline-item:last-child .timeline-dot::after {
  display: none;
}

.timeline-content {
  flex: 1;
  min-width: 0; /* 防止flex溢出 */
}

.timeline-date {
  font-size: var(--font-size-small);
  color: var(--timeline);
  font-weight: 500;
  margin-bottom: 4px;
  letter-spacing: 0.03em;
}

.timeline-content p {
  margin-bottom: 6px;
}

.timeline-content p:last-child {
  margin-bottom: 0;
}

/* ===== 正文段落 ===== */
.main-content p {
  margin-bottom: 12px;
  text-align: left; /* 左对齐，不两端对齐 */
}

/* ===== 引用文本 (灰绿色斜体) ===== */
.quote-text {
  color: var(--accent);
  font-style: italic;
  font-weight: 400;
}

/* ===== 歌曲名称 ===== */
.song-title {
  color: var(--dark-brown);
  font-weight: 500;
  transition: color var(--transition-fast);
  cursor: default;
}

.song-title:hover {
  color: var(--accent);
}

/* ===== 外部链接 ===== */
.ext-link {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: all var(--transition-fast);
  word-break: break-all;
}

.ext-link:hover {
  color: var(--accent-dark);
  border-bottom-color: var(--accent-dark);
}

/* ===== 黑幕 Spoiler ===== */
.spoiler {
  background: var(--spoiler-bg);
  color: transparent;
  border-radius: 3px;
  padding: 1px 4px;
  cursor: pointer;
  transition: color var(--transition-normal), background var(--transition-normal);
  user-select: none;
}

.spoiler.revealed {
  background: transparent;
  color: var(--text-primary);
  user-select: auto;
  cursor: default;
}

/* 桌面端 hover 显示 */
@media (hover: hover) and (pointer: fine) {
  .spoiler:hover {
    background: transparent;
    color: var(--text-primary);
    user-select: auto;
  }
}

/* ===== 访谈卡片 Quote Card ===== */
.quote-card {
  margin: 24px 0;
  padding: 20px 24px 20px 20px;
  border-left: 3px solid var(--accent);
  background: #F3F7F1;
  border-radius: 0 var(--card-radius) var(--card-radius) 0;
  font-size: 15px;
  line-height: 1.8;
  font-style: italic;
  color: #3D4F3A;
}

.quote-card p {
  margin-bottom: 8px;
}

.quote-card p:last-child {
  margin-bottom: 0;
}

.quote-card ul,
.quote-card ol {
  margin: 8px 0 8px 20px;
  font-style: normal;
  color: var(--text-primary);
}

.quote-card li {
  margin-bottom: 4px;
}

.quote-card a {
  font-style: normal;
}

.quote-card strong {
  font-style: normal;
}

/* ===== 专辑卡片 ===== */
.album-card {
  margin: 28px 0;
  padding: 28px 30px;
  border: 1px solid var(--border-light);
  border-radius: var(--card-radius);
  background: var(--white);
  transition: box-shadow var(--transition-normal);
}

.album-card:hover {
  box-shadow: 0 2px 16px var(--shadow-light);
}

.album-card-title {
  font-size: var(--font-size-h3);
  font-weight: 700;
  margin-bottom: 4px;
  line-height: var(--line-height-heading);
}

.album-card-meta {
  font-size: var(--font-size-small);
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.album-card-body {
  font-size: 15px;
}

.album-card-body p {
  margin-bottom: 10px;
}

/* ===== Live / 演出列表 ===== */
.live-list {
  margin: 12px 0 16px;
}

.live-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 6px 0;
  font-size: 15px;
  border-bottom: 1px solid var(--border-light);
  flex-wrap: wrap;
}

.live-item:last-child {
  border-bottom: none;
}

.live-icon {
  flex-shrink: 0;
  font-size: 14px;
  color: var(--accent);
  width: 20px;
  text-align: center;
}

/* ===== Badge ===== */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.03em;
  margin-left: 6px;
  vertical-align: middle;
}

.feat-badge {
  background: var(--accent-light);
  color: var(--accent);
  border: 1px solid #D0DFCD;
}

/* ===== 图片 ===== */
.content-figure {
  margin: 20px 0;
  max-width: 100%;
}

.content-figure .figure-img {
  width: 100%;
  height: auto;
  border-radius: var(--figure-radius);
  box-shadow: 0 1px 6px var(--shadow-light);
  cursor: pointer;
  transition: box-shadow var(--transition-normal), transform var(--transition-fast);
  display: block;
}

.content-figure .figure-img:hover {
  box-shadow: 0 2px 12px var(--shadow-medium);
}

.figure-caption {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
  font-style: italic;
}

.figure-small {
  max-width: 400px;
}

/* 图片居中 */
.figure-centered {
  margin-left: auto;
  margin-right: auto;
}

/* 图片并排容器 */
.figure-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin: 20px 0;
}

.figure-row-two .content-figure {
  flex: 1;
  max-width: calc(50% - 10px);
  margin: 0;
}

/* 小知识图片网格 */
.funfact-images {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}

.funfact-images .content-figure {
  flex: 0 0 auto;
  max-width: 200px;
  margin: 0;
}

/* ===== 表格 ===== */
.tracklist-table-wrapper {
  overflow-x: auto;
  margin: 16px 0 24px;
  -webkit-overflow-scrolling: touch;
}

.tracklist-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 500px;
}

.tracklist-table thead {
  border-bottom: 2px solid var(--border-medium);
}

.tracklist-table th {
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tracklist-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
}

.tracklist-table tbody tr:hover {
  background: #FAFAF8;
}

.tracklist-table td:first-child {
  font-weight: 500;
  white-space: nowrap;
}

/* ===== 内容块 ===== */
.content-block {
  margin: 16px 0;
}

/* ===== 小知识列表 ===== */
.funfact-list {
  counter-reset: funfact;
}

.funfact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
}

.funfact-item:last-child {
  border-bottom: none;
}

.funfact-number {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--accent);
  font-size: 16px;
  width: 24px;
}

.funfact-item p {
  flex: 1;
  margin-bottom: 0;
}

/* ===== 分隔线 ===== */
.section-divider {
  border: none;
  height: 1px;
  background: var(--border-light);
  margin: 40px 0;
}

/* ===== 页脚 ===== */
.page-footer {
  margin-top: 60px;
  padding-top: 20px;
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
  line-height: 2;
}

.page-footer .section-divider {
  margin-bottom: 20px;
}

/* ===== 返回顶部按钮 ===== */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  z-index: 80;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all var(--transition-normal);
  box-shadow: 0 2px 8px var(--shadow-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
  box-shadow: 0 3px 12px var(--shadow-medium);
}

/* ===== 图片灯箱 ===== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
  cursor: pointer;
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  cursor: default;
  box-shadow: 0 4px 32px var(--shadow-heavy);
  transform: scale(0.95);
  transition: transform var(--transition-normal);
}

.lightbox.active .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255,255,255,0.15);
  border: none;
  color: var(--white);
  font-size: 32px;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-fast);
  z-index: 1;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.25);
}

/* ===== 搜索高亮 (页面内) ===== */
.search-highlight {
  background: #F2E6D6;
  color: var(--dark-brown);
  font-weight: 500;
  border-radius: 2px;
  padding: 1px 2px;
  transition: background var(--transition-fast);
}

.search-highlight.active-highlight {
  background: var(--timeline);
  color: var(--white);
}

/* ===================================================================
   响应式设计
   =================================================================== */

/* ----- 平板端 (≤1024px) ----- */
@media (max-width: 1024px) {
  :root {
    --sidebar-width: 220px;
    --content-padding: 28px;
    --font-size-h1: 34px;
    --font-size-h2: 24px;
    --font-size-h3: 18px;
  }

  .sidebar {
    padding: 20px 14px 30px;
  }

  .sidebar-logo {
    font-size: 18px;
  }

  .toc-list a {
    font-size: 12px;
    padding: 5px 8px;
  }

  .main-content {
    padding: 48px var(--content-padding) 64px;
  }

  .header-logo-img {
    max-width: 200px;
  }

  .header-title {
    font-size: 36px;
  }

  .header-top {
    gap: 16px;
  }
}

/* ----- 手机端 (≤768px) ----- */
@media (max-width: 768px) {
  :root {
    --sidebar-width: 0;
    --content-padding: 16px;
    --font-size-h1: 30px;
    --font-size-h2: 22px;
    --font-size-h3: 18px;
    --font-size-body: 15px;
    --section-gap: 40px;
  }

  body {
    padding-left: 0;
  }

  /* 显示菜单按钮 */
  .menu-toggle {
    display: inline-flex;
  }

  /* 侧栏变为抽屉 */
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform var(--transition-normal);
    z-index: 95;
    box-shadow: none;
    padding-top: 60px;
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: 2px 0 16px var(--shadow-medium);
  }

  /* 遮罩 */
  .sidebar-overlay {
    display: block;
  }

  /* 主内容 */
  .main-content {
    padding: 20px var(--content-padding) 48px;
    max-width: 100%;
  }

  .page-header {
    margin-top: 32px; /* 留空间给菜单按钮 */
    margin-bottom: 28px;
  }

  .header-top {
    gap: 16px;
  }

  .header-logo-img {
    max-width: 160px;
  }

  .header-title {
    font-size: 30px;
  }

  /* 轮播 —— aspect-ratio 继承自基础样式 */

  /* 手机端箭头始终可见 */
  .carousel-arrow {
    opacity: 0.7;
    pointer-events: auto;
    width: 32px;
    height: 32px;
    font-size: 18px;
  }

  .carousel-arrow-left {
    left: 6px;
  }

  .carousel-arrow-right {
    right: 6px;
  }

  .carousel-dot {
    width: 7px;
    height: 7px;
  }

  .carousel-dot.active {
    width: 16px;
  }

  /* 时间轴调整 */
  .timeline-item {
    gap: 10px;
  }

  .timeline-dot {
    width: 8px;
    height: 8px;
    margin-top: 7px;
  }

  /* 专辑卡片 */
  .album-card {
    padding: 18px 16px;
  }

  /* 图片 */
  .content-figure .figure-img {
    width: 100%;
    height: auto;
  }

  .figure-small {
    max-width: 100%;
  }

  .figure-row {
    flex-direction: column;
    gap: 12px;
  }

  .figure-row-two .content-figure {
    max-width: 100%;
  }

  /* 1:1 轮播手机端 */
  .carousel-square .carousel-slide img {
    aspect-ratio: 1 / 1;
  }

  .funfact-images .content-figure {
    max-width: calc(50% - 6px);
  }

  /* 访谈卡片 */
  .quote-card {
    padding: 16px;
    font-size: 14px;
  }

  /* 返回顶部 */
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    font-size: 22px;
  }

  /* 灯箱 */
  .lightbox-close {
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    font-size: 28px;
  }

  /* 表格 */
  .tracklist-table {
    font-size: 13px;
  }

  .tracklist-table td,
  .tracklist-table th {
    padding: 8px 10px;
  }

  /* 链接点击区域增大 */
  .ext-link {
    padding: 2px 0;
    display: inline-block;
  }

  /* Spoiler 手机端 */
  .spoiler {
    cursor: pointer;
  }
}

/* 小屏手机 (≤390px) */
@media (max-width: 390px) {
  :root {
    --font-size-h1: 26px;
    --font-size-h2: 20px;
    --content-padding: 14px;
  }

  .header-logo-img {
    max-width: 140px;
  }

  .header-title {
    font-size: 26px;
  }

  .header-top {
    gap: 12px;
  }

  .album-card {
    padding: 14px 12px;
  }

  .album-card-title {
    font-size: 17px;
  }
}
