
:root {
  --bg-deep: #0b0420;
  --bg-mid: #1a0a3e;
  --coral: #ff5e7e;
  --peach: #ffb86c;
  --cyan: #6effe3;
  --lavender: #b794ff;
  --text: #f5f0ff;
  --muted: rgba(245,240,255,0.55);
  --glass-bg: rgba(255,255,255,0.05);
  --glass-border: rgba(255,255,255,0.1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  background: var(--bg-deep);
  color: var(--text);
  font-family: "PingFang SC", "Noto Sans SC", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}
body {
  background:
    radial-gradient(900px 600px at 10% -10%, rgba(255,94,126,0.18), transparent 60%),
    radial-gradient(900px 600px at 110% 10%, rgba(183,148,255,0.18), transparent 60%),
    radial-gradient(700px 500px at 50% 100%, rgba(110,255,227,0.10), transparent 60%),
    var(--bg-deep);
  background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }

/* ── 容器 ── */
.page { max-width: 1100px; margin: 0 auto; padding: 60px 40px 80px; }

/* ── 首页 hero ── */
.hero {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 36px; padding-bottom: 28px;
  border-bottom: 1px solid var(--glass-border);
}
.brand { display: flex; align-items: center; gap: 18px; }
.brand-orb {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--coral), var(--peach), var(--lavender));
  box-shadow: 0 0 40px rgba(255,94,126,0.45);
  position: relative;
}
.brand-orb::after {
  content: ''; position: absolute; inset: 6px;
  border-radius: 50%; background: var(--bg-deep);
}
.brand-title {
  font-family: "Noto Serif SC", serif;
  font-weight: 900; font-size: 30px; line-height: 1.1; letter-spacing: -0.02em;
}
.brand-sub { font-size: 13px; color: var(--muted); margin-top: 6px; letter-spacing: 0.02em; }
.hero-meta { font-size: 12px; color: var(--muted); letter-spacing: 0.18em; text-transform: uppercase; }

/* ── 筛选 ── */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; }
.chip {
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px; cursor: pointer;
  transition: all .2s;
  font-family: inherit;
}
.chip:hover { border-color: rgba(255,94,126,0.5); }
.chip.active {
  background: linear-gradient(135deg, rgba(255,94,126,0.25), rgba(183,148,255,0.2));
  border-color: rgba(255,94,126,0.5);
}

/* ── 年份分组 ── */
.year-block { margin-bottom: 44px; }
.year-label {
  font-family: "Instrument Serif", serif;
  font-style: italic;
  font-size: 56px; font-weight: 400; line-height: 1;
  background: linear-gradient(135deg, var(--coral), var(--peach), var(--lavender));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
}

/* ── 演讲卡片 ── */
.talk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.talk-card {
  background: var(--glass-bg);
  backdrop-filter: blur(30px);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  padding: 22px 24px;
  position: relative;
  overflow: hidden;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .25s, border-color .25s, box-shadow .25s;
  cursor: pointer;
}
.talk-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
}
.talk-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255,94,126,0.4);
  box-shadow: 0 16px 48px rgba(255,94,126,0.15);
}
.card-top {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; color: var(--muted); letter-spacing: 0.05em;
}
.card-date {
  font-family: "Instrument Serif", serif;
  font-style: italic; font-size: 18px;
  color: var(--coral);
  letter-spacing: 0;
}
.card-tag {
  padding: 3px 10px;
  background: rgba(183,148,255,0.15);
  border: 1px solid rgba(183,148,255,0.3);
  border-radius: 100px;
  font-size: 11px;
  color: var(--lavender);
}
.card-title {
  font-family: "Noto Serif SC", serif;
  font-weight: 700; font-size: 20px; line-height: 1.3;
  letter-spacing: -0.01em;
}
.card-purpose {
  font-size: 13px; color: var(--muted); line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-meta {
  display: flex; gap: 12px; flex-wrap: wrap;
  font-size: 12px; color: var(--muted);
  margin-top: auto; padding-top: 6px;
}
.card-cta {
  font-size: 12px; letter-spacing: 0.1em;
  color: var(--coral); font-weight: 600;
  padding-top: 8px; border-top: 1px solid var(--glass-border);
}

.footer {
  margin-top: 60px; padding-top: 24px;
  border-top: 1px solid var(--glass-border);
  font-size: 11px; color: var(--muted);
  text-align: center; letter-spacing: 0.1em;
}

/* ── 详情页 ── */
.detail-header { margin-bottom: 28px; }
.back-link {
  display: inline-block;
  font-size: 13px; color: var(--muted);
  margin-bottom: 24px;
  transition: color .2s;
}
.back-link:hover { color: var(--coral); }
.detail-meta h1 {
  font-family: "Noto Serif SC", serif;
  font-weight: 900; font-size: 42px; line-height: 1.15;
  letter-spacing: -0.02em; margin-bottom: 12px;
}
.detail-tags {
  display: flex; gap: 8px; flex-wrap: wrap; align-items: center;
  font-size: 13px; color: var(--muted);
}
.detail-tags .dot { opacity: 0.4; }
.detail-purpose {
  margin-top: 14px; font-size: 15px; color: var(--text);
  max-width: 720px; line-height: 1.6;
}

/* ── Tab 导航 ── */
.tabs {
  display: flex; gap: 4px; flex-wrap: wrap;
  margin-bottom: 24px;
  padding-bottom: 0;
  border-bottom: 1px solid var(--glass-border);
}
.tab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 14px;
  padding: 12px 18px;
  cursor: pointer;
  transition: all .2s;
  margin-bottom: -1px;
}
.tab:hover { color: var(--text); }
.tab.active {
  color: var(--coral);
  border-bottom-color: var(--coral);
}

.panel { display: none; }
.panel.active { display: block; }

/* ── 幻灯片 iframe ── */
.slide-toolbar { margin-bottom: 14px; }
.btn-primary {
  display: inline-block;
  padding: 8px 18px;
  background: linear-gradient(135deg, var(--coral), var(--peach));
  color: var(--bg-deep) !important;
  border-radius: 100px;
  font-size: 13px; font-weight: 700;
}
.btn-primary:hover { opacity: 0.92; }
.iframe-wrap {
  width: 100%; aspect-ratio: 16/9;
  border-radius: 12px; overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--bg-deep);
}
.iframe-wrap iframe { width: 100%; height: 100%; border: none; }

/* ── Markdown 渲染样式 ── */
.markdown {
  max-width: 760px;
  font-size: 15px; line-height: 1.75;
}
.markdown h1 {
  font-family: "Noto Serif SC", serif;
  font-size: 30px; font-weight: 900; margin: 28px 0 14px;
  letter-spacing: -0.02em;
}
.markdown h2 {
  font-family: "Noto Serif SC", serif;
  font-size: 22px; font-weight: 700; margin: 32px 0 12px;
  padding-top: 18px;
  border-top: 1px solid var(--glass-border);
  color: var(--coral);
}
.markdown h2:first-child { padding-top: 0; border-top: none; }
.markdown h3 {
  font-size: 16px; font-weight: 700; margin: 18px 0 8px;
  color: var(--text);
}
.markdown p { margin: 10px 0; color: var(--text); }
.markdown ul, .markdown ol { margin: 12px 0; padding-left: 22px; }
.markdown li { margin: 4px 0; color: var(--text); }
.markdown strong { color: var(--text); font-weight: 700; }
.markdown em { color: var(--peach); font-style: italic; }
.markdown blockquote {
  border-left: 3px solid var(--coral);
  padding: 4px 16px;
  margin: 14px 0;
  color: var(--muted);
  font-style: italic;
}
.markdown table {
  width: 100%; border-collapse: collapse; margin: 14px 0;
  font-size: 14px;
}
.markdown th, .markdown td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--glass-border);
  text-align: left;
}
.markdown th {
  color: var(--coral);
  font-weight: 700;
  background: rgba(255,255,255,0.02);
}
.markdown code {
  background: rgba(255,255,255,0.08);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--cyan);
}
.markdown hr {
  border: none;
  border-top: 1px solid var(--glass-border);
  margin: 24px 0;
}

/* 注释版的【...】高亮 */
.cue {
  display: inline-block;
  font-size: 12px;
  color: var(--lavender);
  background: rgba(183,148,255,0.12);
  border: 1px solid rgba(183,148,255,0.25);
  border-radius: 5px;
  padding: 1px 6px;
  margin: 0 2px;
  font-style: normal;
  font-family: "PingFang SC", system-ui;
  letter-spacing: 0;
  white-space: nowrap;
  vertical-align: 1px;
}

/* ── 音频列表 ── */
.audio-list {
  max-width: 760px;
  display: flex; flex-direction: column; gap: 8px;
}
.audio-row {
  display: grid;
  grid-template-columns: 50px 1fr 320px;
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
}
.audio-idx {
  font-family: "Instrument Serif", serif;
  font-style: italic; font-size: 22px;
  color: var(--coral);
}
.audio-name { font-size: 14px; color: var(--text); }
.audio-row audio { width: 100%; height: 32px; }

/* ── 响应式 ── */
@media (max-width: 720px) {
  .page { padding: 36px 20px 60px; }
  .hero { flex-direction: column; align-items: flex-start; gap: 12px; }
  .brand-title { font-size: 24px; }
  .year-label { font-size: 42px; }
  .detail-meta h1 { font-size: 30px; }
  .talk-grid { grid-template-columns: 1fr; }
  .audio-row { grid-template-columns: 1fr; }
}
