/* ============================================================
   首页入口
   ============================================================ */

body.page-home {
  background:
    radial-gradient(1100px 760px at 78% -10%, rgba(255, 92, 87, 0.14), transparent 62%),
    radial-gradient(800px 620px at 4% 42%, rgba(74, 112, 255, 0.08), transparent 62%),
    var(--bg);
}

[data-theme="light"] body.page-home {
  background:
    radial-gradient(1000px 700px at 78% -10%, rgba(255, 112, 84, 0.15), transparent 60%),
    radial-gradient(760px 560px at 4% 42%, rgba(74, 112, 255, 0.07), transparent 60%),
    var(--bg);
}

.home {
  width: min(100%, var(--page-max));
  padding: 54px 28px 42px;
  margin: 0 auto;
}

/* ---------- Hero ---------- */

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 48px;
  align-items: center;
  min-height: 500px;
  padding: 22px 0 54px;
}

.home-copy {
  animation: rise-in 760ms var(--ease) both;
}

.home-copy h1 {
  margin: 0;
  font-size: clamp(50px, 7.2vw, 94px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.home-copy h1 span {
  color: transparent;
  background: linear-gradient(110deg, var(--brand) 8%, #ff9b5d 72%, #f6c063 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.home-lead {
  max-width: 500px;
  margin: 24px 0 0;
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.home-actions .btn {
  min-height: 50px;
  padding: 0 22px;
  border-radius: 14px;
}

.home-actions .btn .icon {
  width: 17px;
  height: 17px;
}

.home-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--faint);
  text-transform: uppercase;
}

.home-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.home-meta-divider {
  width: 1px;
  height: 10px;
  background: var(--border-strong);
}

.home-meta .live-dot {
  width: 5px;
  height: 5px;
}

.home-meta .live-dot::after {
  display: none;
}

/* Signal visual */

.signal-visual {
  position: relative;
  display: grid;
  width: min(100%, 450px);
  aspect-ratio: 1;
  place-items: center;
  justify-self: center;
  animation: rise-in 900ms 100ms var(--ease) both;
}

.signal-visual::before {
  position: absolute;
  inset: 8%;
  content: "";
  background: radial-gradient(circle, rgba(255, 92, 87, 0.13), transparent 66%);
  border-radius: 50%;
  filter: blur(20px);
}

.signal-orbit {
  position: absolute;
  border: 1px solid var(--border);
  border-radius: 50%;
  animation: signal-spin 28s linear infinite;
}

.signal-orbit::after {
  position: absolute;
  top: 8%;
  left: 50%;
  width: 5px;
  height: 5px;
  content: "";
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(255, 92, 87, 0.7);
}

.signal-orbit--one {
  inset: 14%;
}

.signal-orbit--two {
  inset: 4%;
  border-style: dashed;
  animation-duration: 42s;
  animation-direction: reverse;
}

.signal-orbit--two::after {
  top: auto;
  bottom: 14%;
  left: 12%;
  width: 4px;
  height: 4px;
  opacity: 0.55;
}

.signal-orbit--three {
  inset: -7%;
  border-color: rgba(255, 255, 255, 0.035);
  animation: none;
}

[data-theme="light"] .signal-orbit {
  border-color: rgba(20, 23, 30, 0.1);
}

[data-theme="light"] .signal-orbit--three {
  border-color: rgba(20, 23, 30, 0.05);
}

.signal-core {
  position: relative;
  z-index: 1;
  display: grid;
  width: 128px;
  height: 128px;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(90% 80% at 35% 18%, #fff, #f8f1e8 72%);
  border: 1px solid rgba(255, 255, 255, 0.62);
  border-radius: 50%;
  box-shadow:
    0 28px 76px rgba(224, 0, 22, 0.28),
    0 0 0 16px rgba(255, 255, 255, 0.032),
    inset 0 0 0 1px rgba(224, 0, 22, 0.05);
}

[data-theme="light"] .signal-core {
  box-shadow:
    0 24px 60px rgba(155, 45, 26, 0.19),
    0 0 0 16px rgba(20, 23, 30, 0.02),
    inset 0 0 0 1px rgba(224, 0, 22, 0.05);
}

.signal-core img {
  width: 68px;
  height: auto;
  filter: drop-shadow(0 6px 12px rgba(214, 0, 20, 0.12));
}

.signal-caption {
  position: absolute;
  bottom: 16%;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--faint);
}

.signal-bars {
  position: absolute;
  bottom: 9%;
  left: 50%;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
  transform: translateX(-50%);
}

.signal-bars i {
  display: block;
  width: 2px;
  height: 30%;
  background: var(--accent);
  border-radius: 2px;
  opacity: 0.55;
  animation: home-wave 1.2s ease-in-out infinite alternate;
}

.signal-bars i:nth-child(2) { height: 70%; animation-delay: -0.3s; }
.signal-bars i:nth-child(3) { height: 45%; animation-delay: -0.6s; }
.signal-bars i:nth-child(4) { height: 100%; animation-delay: -0.15s; }
.signal-bars i:nth-child(5) { height: 55%; animation-delay: -0.45s; }
.signal-bars i:nth-child(6) { height: 80%; animation-delay: -0.75s; }
.signal-bars i:nth-child(7) { height: 35%; animation-delay: -0.2s; }

@keyframes signal-spin {
  to { transform: rotate(360deg); }
}

@keyframes home-wave {
  from { transform: scaleY(0.4); }
  to { transform: scaleY(1); }
}

/* ---------- 入口卡片 ---------- */

.home-entries {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.entry-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow-md);
  transition: transform 300ms var(--ease), border-color 300ms ease, box-shadow 300ms ease;
}

.entry-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.entry-preview {
  position: relative;
  display: grid;
  height: 216px;
  overflow: hidden;
  place-items: center;
  background:
    radial-gradient(70% 100% at 30% 0%, rgba(255, 92, 87, 0.22), transparent 62%),
    radial-gradient(70% 90% at 90% 100%, rgba(67, 100, 255, 0.2), transparent 60%),
    #0d1118;
  border-bottom: 1px solid var(--border);
}

.entry-preview::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 34px 34px;
  -webkit-mask-image: radial-gradient(80% 80% at 50% 50%, #000, transparent 88%);
  mask-image: radial-gradient(80% 80% at 50% 50%, #000, transparent 88%);
}

.entry-preview--radio {
  background:
    radial-gradient(70% 100% at 25% 0%, rgba(245, 166, 35, 0.27), transparent 62%),
    radial-gradient(70% 90% at 86% 100%, rgba(255, 90, 60, 0.14), transparent 60%),
    #12100d;
}

[data-theme="light"] .entry-preview {
  background:
    radial-gradient(70% 100% at 30% 0%, rgba(255, 92, 87, 0.26), transparent 62%),
    radial-gradient(70% 90% at 90% 100%, rgba(67, 100, 255, 0.17), transparent 60%),
    #ede9e1;
}

[data-theme="light"] .entry-preview--radio {
  background:
    radial-gradient(70% 100% at 25% 0%, rgba(245, 166, 35, 0.32), transparent 62%),
    radial-gradient(70% 90% at 86% 100%, rgba(255, 90, 60, 0.12), transparent 60%),
    #f5ede0;
}

.mini-player {
  position: relative;
  display: grid;
  width: min(62%, 300px);
  aspect-ratio: 16 / 9;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(80% 120% at 50% 0%, #222a39, #080a0e 76%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.42);
  transform: rotate(-2deg);
}

.mini-player__badge {
  position: absolute;
  top: 8px;
  left: 9px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 17px;
  padding: 0 6px;
  font-family: var(--font-mono);
  font-size: 6px;
  font-weight: 700;
  color: #ff8c84;
  background: rgba(255, 92, 87, 0.13);
  border: 1px solid rgba(255, 92, 87, 0.2);
  border-radius: 5px;
}

.mini-player__badge .live-dot {
  width: 3px;
  height: 3px;
}

.mini-player__badge .live-dot::after {
  display: none;
}

.mini-player__logo {
  width: 48px;
  height: 48px;
  padding: 2px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 13px;
}

.mini-player__logo img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

.mini-player__play {
  position: absolute;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: #fff;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.mini-player__play .icon {
  width: 10px;
  height: 10px;
  margin-left: 1px;
}

.mini-player__line {
  position: absolute;
  right: 10px;
  bottom: 9px;
  left: 10px;
  height: 2px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.mini-player__line::before {
  display: block;
  width: 58%;
  height: 100%;
  content: "";
  background: var(--accent);
  border-radius: inherit;
}

.mini-radio {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  width: min(70%, 330px);
  padding: 14px 16px;
  background: rgba(22, 24, 28, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 17px;
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.34);
  transform: rotate(1.5deg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

[data-theme="light"] .mini-radio {
  background: rgba(255, 251, 243, 0.78);
  border-color: rgba(95, 71, 30, 0.12);
}

.mini-radio__badge {
  position: absolute;
  top: -8px;
  left: 15px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 17px;
  padding: 0 6px;
  font-family: var(--font-mono);
  font-size: 6px;
  font-weight: 700;
  color: #ffc45e;
  background: #3a2a12;
  border: 1px solid rgba(245, 166, 35, 0.25);
  border-radius: 5px;
}

.mini-radio__badge .live-dot {
  width: 3px;
  height: 3px;
}

.mini-radio__badge .live-dot::after {
  display: none;
}

.mini-radio__logo {
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  padding: 2px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
}

[data-theme="light"] .mini-radio__logo {
  background: rgba(255, 255, 255, 0.6);
  border-color: rgba(95, 71, 30, 0.12);
}

.mini-radio__logo img {
  width: 100%;
  height: 100%;
  border-radius: 13px;
}

.mini-radio__wave {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 3px;
  height: 34px;
}

.mini-radio__wave i {
  display: block;
  width: 3px;
  height: 30%;
  background: linear-gradient(to top, #ff7a45, #f5a623);
  border-radius: 999px;
  animation: home-wave 0.95s ease-in-out infinite alternate;
}

.mini-radio__wave i:nth-child(2) { height: 66%; animation-delay: -0.2s; }
.mini-radio__wave i:nth-child(3) { height: 42%; animation-delay: -0.5s; }
.mini-radio__wave i:nth-child(4) { height: 92%; animation-delay: -0.1s; }
.mini-radio__wave i:nth-child(5) { height: 54%; animation-delay: -0.4s; }
.mini-radio__wave i:nth-child(6) { height: 74%; animation-delay: -0.7s; }
.mini-radio__wave i:nth-child(7) { height: 36%; animation-delay: -0.3s; }
.mini-radio__wave i:nth-child(8) { height: 60%; animation-delay: -0.8s; }
.mini-radio__wave i:nth-child(9) { height: 26%; animation-delay: -0.6s; }

.mini-radio__name {
  position: absolute;
  right: 16px;
  bottom: 7px;
  font-family: var(--font-mono);
  font-size: 6px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.28);
}

[data-theme="light"] .mini-radio__name {
  color: rgba(55, 44, 25, 0.32);
}

.entry-info {
  padding: 22px 26px 25px;
}

.entry-index {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.13em;
  color: var(--faint);
  text-transform: uppercase;
}

.entry-info h2 {
  margin: 7px 0 0;
  font-size: 24px;
  font-weight: 750;
  letter-spacing: -0.035em;
}

.entry-info p {
  max-width: 440px;
  margin: 7px 0 0;
  font-size: 12px;
  line-height: 1.75;
  color: var(--muted);
}

.entry-arrow {
  position: absolute;
  right: 24px;
  bottom: 26px;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 50%;
  transition: color 220ms ease, background 220ms ease, transform 220ms ease;
}

.entry-card:hover .entry-arrow {
  color: var(--text);
  background: var(--surface-2);
  transform: translateX(3px);
}

.entry-arrow .icon {
  width: 17px;
  height: 17px;
}

.home-foot {
  margin: 30px 0 0;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.09em;
  text-align: center;
  color: var(--faint);
  text-transform: uppercase;
}

/* ---------- 响应式 ---------- */

@media (max-width: 980px) {
  .home {
    padding-top: 32px;
  }

  .home-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 8px 0 40px;
  }

  .signal-visual {
    display: none;
  }

  .home-copy h1 {
    font-size: clamp(52px, 11vw, 82px);
  }
}

@media (max-width: 760px) {
  .home {
    padding: 26px 16px 34px;
  }

  .home-copy h1 {
    font-size: clamp(46px, 13.2vw, 70px);
  }

  .home-lead {
    margin-top: 18px;
    font-size: 13px;
    line-height: 1.8;
  }

  .home-actions {
    margin-top: 22px;
  }

  .home-actions .btn {
    min-height: 46px;
    padding: 0 17px;
    font-size: 12px;
  }

  .home-actions .btn-primary {
    flex: 1;
  }

  .home-meta {
    margin-top: 22px;
    font-size: 9px;
  }

  .home-entries {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .entry-preview {
    height: 190px;
  }

  .mini-player {
    width: min(68%, 280px);
  }

  .mini-radio {
    width: min(76%, 300px);
  }

  .entry-info {
    padding: 19px 20px 22px;
  }

  .entry-info h2 {
    font-size: 21px;
  }

  .entry-info p {
    padding-right: 38px;
    font-size: 11px;
  }

  .entry-arrow {
    right: 18px;
    bottom: 22px;
    width: 38px;
    height: 38px;
  }

  .home-foot {
    margin-top: 24px;
    font-size: 8px;
  }
}

@media (max-width: 400px) {
  .home-copy h1 {
    font-size: 43px;
  }

  .home-actions .btn {
    width: 100%;
  }

  .entry-preview {
    height: 170px;
  }

  .mini-player {
    width: 78%;
  }

  .mini-radio {
    width: 86%;
  }
}
