/* ===== 首页置顶：听音 Canvas 项目卡 ===== */
#canvas-feature {
  position: relative;
  margin: 0 0 22px;
  padding: 30px 30px 26px;
  overflow: hidden;
  border: 1px solid rgba(99, 102, 241, 0.18);
  border-radius: 20px;
  background: linear-gradient(135deg, #f6f8ff 0%, #fdf7ff 52%, #f3fffb 100%);
  box-shadow: 0 10px 30px rgba(30, 41, 59, 0.06);
  color: #1f2937;
}
[data-theme="dark"] #canvas-feature {
  border-color: rgba(148, 163, 184, 0.22);
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.94), rgba(49, 46, 89, 0.92));
  color: #e5e7eb;
}
#canvas-feature .cf-inner {
  display: grid;
  grid-template-columns: minmax(250px, 0.92fr) minmax(0, 1.28fr);
  gap: 30px;
  align-items: center;
}
#canvas-feature .cf-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.1);
  color: #4f46e5;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
[data-theme="dark"] #canvas-feature .cf-eyebrow {
  color: #a5b4fc;
  background: rgba(129, 140, 248, 0.16);
}
#canvas-feature .cf-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
#canvas-feature h2 {
  margin: 16px 0 12px;
  font-size: clamp(24px, 2.4vw, 34px);
  line-height: 1.22;
  font-weight: 800;
  letter-spacing: -0.02em;
}
#canvas-feature h2 span {
  display: block;
  margin-top: 7px;
  font-size: 0.58em;
  font-weight: 600;
  line-height: 1.5;
  color: #6b7280;
}
[data-theme="dark"] #canvas-feature h2 span { color: #cbd5e1; }
#canvas-feature .cf-desc {
  margin: 0 0 20px;
  font-size: 14px;
  line-height: 1.85;
  color: #4b5563;
}
[data-theme="dark"] #canvas-feature .cf-desc { color: #cbd5e1; }
#canvas-feature .cf-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
#canvas-feature .cf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 10px;
  color: #4f46e5;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
#canvas-feature .cf-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(79, 70, 229, 0.18);
  text-decoration: none;
}
#canvas-feature .cf-btn.primary {
  border-color: #4f46e5;
  background: #4f46e5;
  color: #fff;
}
[data-theme="dark"] #canvas-feature .cf-btn { color: #a5b4fc; }
[data-theme="dark"] #canvas-feature .cf-btn.primary { color: #fff; }
#canvas-feature .cf-pill {
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.14);
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}
[data-theme="dark"] #canvas-feature .cf-pill { color: #cbd5e1; }
#canvas-feature .cf-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0 0;
  padding-top: 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}
#canvas-feature .cf-facts div { min-width: 0; }
#canvas-feature .cf-facts dt {
  font-size: 19px;
  font-weight: 800;
  line-height: 1.2;
  color: #4f46e5;
}
[data-theme="dark"] #canvas-feature .cf-facts dt { color: #a5b4fc; }
#canvas-feature .cf-facts dd {
  margin: 4px 0 0;
  font-size: 11px;
  line-height: 1.4;
  color: #6b7280;
}
[data-theme="dark"] #canvas-feature .cf-facts dd { color: #cbd5e1; }
#canvas-feature .cf-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
#canvas-feature .cf-shot {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.07);
}
#canvas-feature .cf-shot.wide { grid-column: 1 / -1; }
#canvas-feature .cf-shot img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.35s ease;
}
#canvas-feature .cf-shot.wide img { aspect-ratio: 21 / 8; }
#canvas-feature .cf-shot:hover img { transform: scale(1.03); }
#canvas-feature .cf-shot figcaption {
  position: absolute;
  right: 8px;
  bottom: 8px;
  left: 8px;
  padding: 4px 8px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.62);
  color: #fff;
  font-size: 10px;
  line-height: 1.4;
  text-align: center;
}
@media screen and (max-width: 900px) {
  #canvas-feature { padding: 22px 18px; }
  #canvas-feature .cf-inner { grid-template-columns: 1fr; gap: 22px; }
  #canvas-feature .cf-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #canvas-feature .cf-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #canvas-feature .cf-shot.wide img { aspect-ratio: 16 / 9; }
}
@media screen and (max-width: 480px) {
  #canvas-feature .cf-gallery { grid-template-columns: 1fr; }
  #canvas-feature .cf-shot.wide { grid-column: auto; }
  #canvas-feature .cf-btn { flex: 1 1 auto; }
}

/* ===== 首页内容方向 ===== */
#topics {
  margin: 30px 0 10px;
  color: #1f2937;
}
[data-theme="dark"] #topics,
html[data-default-color-scheme="dark"] #topics { color: #e5e7eb; }
#topics h2 {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 800;
}
#topics .topics-sub {
  margin: 0 0 18px;
  font-size: 13px;
  color: #6b7280;
}
[data-theme="dark"] #topics .topics-sub,
html[data-default-color-scheme="dark"] #topics .topics-sub { color: #cbd5e1; }
#topics .topics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
#topics .topic-card {
  display: block;
  padding: 20px;
  border: 1px solid rgba(99, 102, 241, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.82);
  color: inherit;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
[data-theme="dark"] #topics .topic-card,
html[data-default-color-scheme="dark"] #topics .topic-card {
  background: rgba(37, 45, 56, 0.92);
  border-color: rgba(148, 163, 184, 0.22);
}
#topics .topic-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(79, 70, 229, 0.14);
  text-decoration: none;
}
#topics .topic-icon {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 12px;
  font-weight: 800;
  color: #4f46e5;
}
#topics .topic-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 800;
}
#topics .topic-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.75;
  color: #6b7280;
}
[data-theme="dark"] #topics .topic-card p,
html[data-default-color-scheme="dark"] #topics .topic-card p { color: #cbd5e1; }
@media screen and (max-width: 768px) {
  #topics .topics-grid { grid-template-columns: 1fr; }
  #topics .topic-card { padding: 16px; }
}

/* 首页头图区域：无大图时用深色科技渐变替代默认灰色 */
#banner {
  background: radial-gradient(1200px 60% at 50% 0%, #1e3a5f 0%, #0d1b2a 55%, #0a111c 100%) !important;
}
#banner .mask {
  background-color: rgba(6, 12, 22, 0.25) !important;
}
