.page-home {
  --home-grad-bg: linear-gradient(180deg, #0c0817 0%, #151024 55%, #0c0817 100%);
  --home-gap: clamp(72px, 10vw, 128px);
  --home-glow-pink: 0 0 32px rgba(255, 42, 109, 0.16);
  --home-glow-purple: 0 0 36px rgba(157, 78, 221, 0.20);
  background: var(--c-bg);
  color: var(--c-text);
}

/* ===== 首屏 ===== */
.page-home .home-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 56px), 0 100%);
}

.page-home .home-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-home .home-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  filter: saturate(1.15) contrast(1.05);
}

.page-home .home-hero__grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: radial-gradient(circle, rgba(255, 42, 109, 0.28) 1px, transparent 1px), radial-gradient(circle, rgba(249, 194, 46, 0.18) 1px, transparent 1px);
  background-size: 18px 18px, 18px 18px;
  background-position: 0 0, 9px 9px;
  mix-blend-mode: screen;
  pointer-events: none;
}

.page-home .home-hero__inner {
  position: relative;
  z-index: 2;
  padding-top: 120px;
  padding-bottom: 96px;
}

.page-home .home-hero__kicker {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.18em;
  color: var(--c-gold);
  border: 1px solid rgba(249, 194, 46, 0.45);
  padding: 6px 14px;
  margin-bottom: 22px;
  background: rgba(12, 8, 23, 0.5);
  text-transform: uppercase;
}

.page-home .home-hero__title {
  margin: 0 0 24px;
  font-family: 'Arial Black', 'Impact', 'Hiragino Kaku Gothic Std', 'Noto Sans CJK SC', sans-serif;
  font-weight: 900;
  font-size: clamp(1.6rem, 1.05rem + 2.8vw, 3.2rem);
  line-height: 1.22;
  letter-spacing: 0.01em;
  color: var(--c-white);
  text-transform: uppercase;
  text-shadow: 0 4px 40px rgba(255, 42, 109, 0.30);
}

.page-home .home-hero__title span {
  display: block;
  background: linear-gradient(135deg, #ff2a6d 15%, #9d4edd 80%, #f9c22e 110%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.page-home .home-hero__desc {
  max-width: 780px;
  margin: 0 0 28px;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--c-text);
  background: rgba(12, 8, 23, 0.55);
  border-left: 2px solid var(--c-gold);
  padding: 14px 18px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.page-home .home-hero__search {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 720px;
  margin-bottom: 28px;
}

.page-home .home-hero__search input {
  flex: 1 1 260px;
  min-width: 0;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--c-border);
  border-radius: 2px;
  color: var(--c-text);
  font-size: 1rem;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.page-home .home-hero__search input::placeholder {
  color: rgba(168, 159, 192, 0.7);
}

.page-home .home-hero__search input:focus {
  border-color: var(--c-pink);
  box-shadow: 0 0 0 3px rgba(255, 42, 109, 0.15);
}

.page-home .home-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.page-home .home-hero__tags .tag {
  font-size: 0.82rem;
  padding: 7px 14px;
  text-decoration: none;
  transition: transform 0.2s, background 0.2s;
}

.page-home .home-hero__tags .tag:hover {
  transform: translateY(-2px);
  background: rgba(255, 42, 109, 0.15);
  border-color: var(--c-pink);
}

.page-home .home-hero__scroll {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  color: var(--c-gold);
  font-size: 11px;
  letter-spacing: 0.22em;
  writing-mode: vertical-rl;
  opacity: 0.8;
}

/* ===== 面包屑 ===== */
.page-home .breadcrumb {
  margin-top: 20px;
  margin-bottom: 8px;
  font-size: 0.85rem;
}

.page-home .breadcrumb a {
  color: var(--c-text-dim);
  text-decoration: none;
  border-bottom: 1px solid rgba(249, 194, 46, 0.3);
  transition: color 0.2s, border-color 0.2s;
}

.page-home .breadcrumb a:hover {
  color: var(--c-gold);
  border-color: var(--c-gold);
}

.page-home .breadcrumb [aria-current="page"] {
  color: var(--c-gold);
  font-weight: 700;
}

/* ===== 今日片单 ===== */
.page-home .home-today {
  position: relative;
  padding: calc(var(--home-gap) * 0.8) 0 var(--home-gap);
  background:
    radial-gradient(40% 60% at 85% 10%, rgba(157, 78, 221, 0.18), transparent 70%),
    var(--home-grad-bg);
}

.page-home .home-today__head {
  margin-bottom: 28px;
}

.page-home .home-today__how {
  margin-top: 18px;
  font-size: 0.92rem;
  color: var(--c-text-dim);
}

.page-home .home-today__filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
}

.page-home .home-today__filter-label {
  font-size: 12px;
  color: var(--c-text-dim);
  letter-spacing: 0.14em;
  margin-right: 4px;
}

.page-home .home-today__filter .tag.is-active,
.page-home .home-today__filter .tag[aria-pressed="true"] {
  border-color: var(--c-pink);
  color: var(--c-white);
  background: rgba(255, 42, 109, 0.12);
}

.page-home .home-today__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-home .home-today__item {
  position: relative;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px 18px;
  padding: 16px;
  border: 1px solid var(--c-border);
  background: rgba(255, 255, 255, 0.035);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.page-home .home-today__item::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 42px;
  height: 2px;
  background: var(--c-gold);
  z-index: 1;
}

.page-home .home-today__item:hover {
  border-color: rgba(255, 42, 109, 0.50);
  box-shadow: var(--home-glow-pink);
}

.page-home .home-today__poster {
  grid-row: 1 / 3;
  aspect-ratio: 2 / 3;
  overflow: hidden;
}

.page-home .home-today__poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease-out);
}

.page-home .home-today__item:hover .home-today__poster img {
  transform: scale(1.03);
}

.page-home .home-today__body h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--c-white);
  letter-spacing: 0.03em;
}

.page-home .home-today__body p {
  margin: 0 0 10px;
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--c-text-dim);
}

.page-home .home-today__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.page-home .home-today__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  align-items: center;
  font-size: 0.82rem;
  color: var(--c-text-dim);
}

.page-home .home-today__meta .mono {
  background: rgba(255, 255, 255, 0.05);
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.page-home .home-today__collect {
  justify-self: start;
}

.page-home .home-today__collect[aria-pressed="true"] {
  background: rgba(255, 42, 109, 0.18);
  border-color: var(--c-pink);
  color: var(--c-pink);
}

.page-home .home-today__foot {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--c-border-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.page-home .home-today__foot p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--c-text-dim);
  max-width: 520px;
}

/* ===== 小屏设备变更说明 ===== */
.page-home .home-device {
  position: relative;
  padding: var(--home-gap) 0;
  background:
    radial-gradient(45% 70% at 8% 30%, rgba(157, 78, 221, 0.22), transparent 70%),
    radial-gradient(35% 50% at 92% 80%, rgba(255, 42, 109, 0.12), transparent 70%),
    #151024;
  clip-path: polygon(0 36px, 100% 0, 100% calc(100% - 36px), 0 100%);
  border-top: 1px solid rgba(249, 194, 46, 0.20);
  border-bottom: 1px solid rgba(249, 194, 46, 0.20);
}

.page-home .home-device__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
  padding-top: 20px;
  padding-bottom: 20px;
}

.page-home .home-device__lead {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--c-text);
  max-width: 560px;
  margin: 0 0 22px;
}

.page-home .home-device__list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 12px;
}

.page-home .home-device__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.90rem;
  line-height: 1.6;
  color: var(--c-text);
  padding: 6px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.page-home .home-device__list .tag {
  flex: none;
  font-size: 0.75rem;
  padding: 3px 8px;
}

.page-home .home-device__note {
  font-size: 0.85rem;
  color: var(--c-text-dim);
}

.page-home .home-device__note a {
  color: var(--c-pink);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 42, 109, 0.35);
}

.page-home .home-device__mock {
  display: flex;
  justify-content: center;
  position: relative;
}

.page-home .home-device__frame {
  position: relative;
  width: 230px;
  max-width: 100%;
  border-radius: 26px;
  border: 2px solid rgba(249, 194, 46, 0.50);
  padding: 8px;
  background: #12101e;
  box-shadow: 0 0 48px rgba(157, 78, 221, 0.35), 0 0 24px rgba(255, 42, 109, 0.15);
}

.page-home .home-device__frame img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
  object-fit: cover;
}

.page-home .home-device__heart {
  position: absolute;
  right: 16px;
  bottom: 42px;
  width: 34px;
  height: 34px;
  background: var(--c-pink);
  color: var(--c-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  box-shadow: 0 0 16px rgba(255, 42, 109, 0.60);
}

.page-home .home-device__label {
  position: absolute;
  left: 50%;
  bottom: -30px;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--c-gold);
  white-space: nowrap;
}

/* ===== 五档清晰度 ===== */
.page-home .home-quality {
  position: relative;
  padding: calc(var(--home-gap) * 1.1) 0 var(--home-gap);
  background: var(--home-grad-bg);
  overflow: hidden;
}

.page-home .home-quality::before {
  content: "Q";
  position: absolute;
  right: -40px;
  top: -20px;
  font-family: 'Arial Black', 'Impact', sans-serif;
  font-size: 220px;
  font-weight: 900;
  color: rgba(157, 78, 221, 0.10);
  pointer-events: none;
  line-height: 1;
}

.page-home .home-quality__visual {
  position: relative;
  margin: 32px 0 36px;
  border: 1px solid rgba(249, 194, 46, 0.22);
  padding: 6px;
  background: rgba(255, 255, 255, 0.02);
}

.page-home .home-quality__visual img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-home .home-quality__tiers {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.page-home .home-quality__tier {
  position: relative;
  padding: 18px 18px 18px 54px;
  border: 1px solid var(--c-border);
  background: rgba(255, 255, 255, 0.035);
  min-height: 120px;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.page-home .home-quality__tier:hover {
  border-color: rgba(249, 194, 46, 0.55);
  box-shadow: 0 0 28px rgba(157, 78, 221, 0.12);
}

.page-home .home-quality__num {
  position: absolute;
  left: 14px;
  top: 14px;
  font-size: 0.95rem;
  color: var(--c-gold);
  opacity: 0.85;
}

.page-home .home-quality__tier h3 {
  margin: 0 0 6px;
  font-size: 1.0rem;
  font-weight: 800;
  color: var(--c-white);
}

.page-home .home-quality__tier p {
  margin: 0 0 10px;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--c-text-dim);
}

/* ===== 最新收录批次 ===== */
.page-home .home-new {
  position: relative;
  padding: var(--home-gap) 0;
  background: #0c0817;
}

.page-home .home-new__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 32px;
}

.page-home .home-new__card {
  position: relative;
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--c-border);
  background: rgba(255, 255, 255, 0.035);
  transition: border-color 0.25s, transform 0.25s var(--ease-out);
}

.page-home .home-new__card::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 22px;
  height: 22px;
  border-right: 2px solid rgba(249, 194, 46, 0.6);
  border-bottom: 2px solid rgba(249, 194, 46, 0.6);
  pointer-events: none;
}

.page-home .home-new__card:hover {
  border-color: rgba(255, 42, 109, 0.45);
  transform: translateY(-3px);
}

.page-home .home-new__thumb {
  aspect-ratio: 2 / 3;
  overflow: hidden;
}

.page-home .home-new__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease-out);
}

.page-home .home-new__card:hover .home-new__thumb img {
  transform: scale(1.04);
}

.page-home .home-new__card-body h3 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--c-white);
}

.page-home .home-new__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.page-home .home-new__card-body .mono {
  font-size: 0.76rem;
  color: var(--c-text-dim);
}

.page-home .home-new__foot {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ===== 信任区 ===== */
.page-home .home-trust {
  position: relative;
  padding: calc(var(--home-gap) * 0.9) 0;
  background:
    radial-gradient(50% 60% at 85% 85%, rgba(255, 42, 109, 0.12), transparent 70%),
    #151024;
  border-top: 1px solid var(--c-border-soft);
}

.page-home .home-trust__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
}

.page-home .home-trust__main h2 {
  margin: 0 0 18px;
  font-family: 'Arial Black', 'Impact', 'Hiragino Kaku Gothic Std', 'Noto Sans CJK SC', sans-serif;
  font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem);
  font-weight: 900;
  color: var(--c-white);
  letter-spacing: 0.02em;
}

.page-home .home-trust__main p {
  margin: 0 0 16px;
  font-size: 0.92rem;
  line-height: 1.8;
  color: var(--c-text-dim);
}

.page-home .home-trust__main a {
  color: var(--c-pink);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 42, 109, 0.35);
}

.page-home .home-trust__aside {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 16px;
  align-content: start;
}

.page-home .home-trust__stat {
  border: 1px solid rgba(249, 194, 46, 0.25);
  background: rgba(255, 255, 255, 0.03);
  padding: 20px 16px;
  text-align: center;
}

.page-home .home-trust__num {
  display: block;
  font-family: 'Courier New', 'SF Mono', monospace;
  font-size: 2rem;
  font-weight: 700;
  color: var(--c-gold);
  line-height: 1.2;
}

.page-home .home-trust__label {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--c-text-dim);
  letter-spacing: 0.08em;
}

.page-home .home-trust__aside .btn {
  justify-self: center;
  margin-top: 8px;
}

/* ===== 动画 ===== */
@keyframes home-rise {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .page-home .home-today__item,
  .page-home .home-new__card,
  .page-home .home-quality__tier,
  .page-home .home-trust__stat {
    opacity: 0;
    animation: home-rise 0.55s var(--ease-out) forwards;
  }

  .page-home .home-today__item:nth-child(1) { animation-delay: 0.06s; }
  .page-home .home-today__item:nth-child(2) { animation-delay: 0.12s; }
  .page-home .home-today__item:nth-child(3) { animation-delay: 0.18s; }
  .page-home .home-today__item:nth-child(4) { animation-delay: 0.24s; }
  .page-home .home-today__item:nth-child(5) { animation-delay: 0.30s; }

  .page-home .home-new__card:nth-child(1) { animation-delay: 0.06s; }
  .page-home .home-new__card:nth-child(2) { animation-delay: 0.12s; }
  .page-home .home-new__card:nth-child(3) { animation-delay: 0.18s; }
  .page-home .home-new__card:nth-child(4) { animation-delay: 0.24s; }
  .page-home .home-new__card:nth-child(5) { animation-delay: 0.30s; }
  .page-home .home-new__card:nth-child(6) { animation-delay: 0.36s; }

  .page-home .home-quality__tier:nth-child(1) { animation-delay: 0.04s; }
  .page-home .home-quality__tier:nth-child(2) { animation-delay: 0.10s; }
  .page-home .home-quality__tier:nth-child(3) { animation-delay: 0.16s; }
  .page-home .home-quality__tier:nth-child(4) { animation-delay: 0.22s; }
  .page-home .home-quality__tier:nth-child(5) { animation-delay: 0.28s; }

  .page-home .home-trust__stat:nth-child(1) { animation-delay: 0.05s; }
  .page-home .home-trust__stat:nth-child(2) { animation-delay: 0.13s; }
  .page-home .home-trust__stat:nth-child(3) { animation-delay: 0.21s; }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .home-today__item,
  .page-home .home-new__card,
  .page-home .home-quality__tier,
  .page-home .home-trust__stat {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .page-home * {
    transition: none !important;
    animation: none !important;
  }
}

/* ===== 桌面增强 ===== */
@media (min-width: 768px) {
  .page-home .home-hero__inner {
    padding-top: 160px;
    padding-bottom: 140px;
  }

  .page-home .home-today__item {
    grid-template-columns: 120px 1fr auto;
    align-items: center;
    padding: 18px 20px;
  }

  .page-home .home-today__poster {
    grid-row: auto;
  }

  .page-home .home-today__meta {
    flex-direction: row;
    justify-content: flex-end;
  }

  .page-home .home-today__collect {
    grid-column: auto;
    justify-self: end;
  }

  .page-home .home-device__grid {
    grid-template-columns: 1.3fr 0.9fr;
    gap: 32px;
  }

  .page-home .home-quality__tiers {
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
  }

  .page-home .home-quality__tier {
    padding: 18px 14px;
    min-height: 150px;
  }

  .page-home .home-quality__num {
    position: static;
    display: block;
    margin-bottom: 10px;
  }

  .page-home .home-new__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-home .home-new__card {
    grid-template-columns: 1fr;
    display: block;
  }

  .page-home .home-new__thumb {
    margin-bottom: 12px;
  }

  .page-home .home-trust__grid {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
  }
}

@media (min-width: 1024px) {
  .page-home .home-today__item {
    grid-template-columns: 130px 1fr auto auto;
    gap: 24px;
  }

  .page-home .home-today__foot p {
    font-size: 0.92rem;
  }

  .page-home .home-quality__tier {
    min-height: 170px;
  }

  .page-home .home-device__mock {
    justify-content: flex-end;
    padding-right: 24px;
  }
}
