/* ===== 首页 page-home ===== */
.page-home {
  --ph-edge: rgba(233, 237, 247, 0.13);
  --ph-edge-cyan: rgba(47, 211, 232, 0.42);
  --ph-edge-purple: rgba(124, 77, 255, 0.46);
  --ph-r-lg: 30px;
  padding-bottom: 84px;
}

/* —— 顶部索引带 —— */
.page-home .ph-indexbar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 2px;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.page-home .ph-indexbar::-webkit-scrollbar {
  display: none;
}

.page-home .ph-indexbar a,
.page-home .ph-indexbar__now {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--mist);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.24s var(--ease);
}

.page-home .ph-indexbar a:hover,
.page-home .ph-indexbar a:focus-visible {
  color: var(--cyan);
}

.page-home .ph-indexbar__now {
  color: var(--silver);
}

.page-home .ph-indexbar .mono {
  color: var(--cyan);
}

.page-home .ph-indexbar__now .mono {
  color: var(--amber);
}

/* —— 首屏 —— */
.page-home .ph-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  padding: 28px 0 0;
}

@media (min-width: 1024px) {
  .page-home .ph-hero {
    grid-template-columns: minmax(0, 1.66fr) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
    padding-top: 46px;
  }
}

.page-home .ph-frame {
  position: relative;
  overflow: hidden;
  padding: 44px 22px 34px;
  border: 1px solid var(--ph-edge-purple);
  border-radius: 6px var(--ph-r-lg) var(--ph-r-lg) var(--ph-r-lg);
  background:
    radial-gradient(130% 110% at -5% -10%, rgba(124, 77, 255, 0.22), transparent 58%),
    radial-gradient(100% 90% at 105% 110%, rgba(47, 211, 232, 0.14), transparent 62%),
    var(--panel-2);
}

.page-home .ph-frame::before,
.page-home .ph-frame::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 10px;
  pointer-events: none;
  background-image: repeating-linear-gradient(90deg, rgba(233, 237, 247, 0.3) 0 1px, transparent 1px 26px);
}

.page-home .ph-frame::before {
  top: 0;
  opacity: 0.6;
}

.page-home .ph-frame::after {
  bottom: 0;
  opacity: 0.32;
}

.page-home .ph-frame__glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.3;
  pointer-events: none;
}

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

.page-home .ph-frame__body {
  position: relative;
  z-index: 1;
}

.page-home .ph-frame__body h1 {
  margin: 12px 0 0;
  max-width: 17em;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5.2vw, 3.1rem);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--silver);
}

.page-home .ph-frame__body .lede {
  margin: 16px 0 0;
  max-width: 34em;
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--mist);
}

.page-home .ph-frame__facts {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 30px;
}

.page-home .ph-frame__facts li {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font-size: 13px;
  color: var(--mist);
}

.page-home .ph-frame__facts .mono {
  font-size: 22px;
  font-weight: 700;
  color: var(--cyan);
}

.page-home .ph-frame__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

/* —— 账户入口信息岛 —— */
.page-home .ph-account {
  position: relative;
  overflow: hidden;
  padding: 26px 22px;
  border: 1px solid var(--ph-edge-cyan);
  border-radius: var(--ph-r-lg) var(--ph-r-lg) var(--ph-r-lg) 8px;
  background: linear-gradient(198deg, rgba(16, 23, 49, 0.96), rgba(12, 18, 38, 0.9));
  box-shadow: 0 26px 70px -46px rgba(47, 211, 232, 0.85);
}

@media (min-width: 1024px) {
  .page-home .ph-account {
    margin-top: 40px;
  }
}

.page-home .ph-account__art {
  position: absolute;
  inset: 0 0 auto 0;
  height: 138px;
  opacity: 0.22;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent);
  mask-image: linear-gradient(180deg, #000, transparent);
}

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

.page-home .ph-account__body {
  position: relative;
  z-index: 1;
}

.page-home .ph-account__body h2 {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.45;
  color: var(--silver);
}

.page-home .ph-account__body > p {
  margin: 12px 0 0;
  font-size: 14.5px;
  line-height: 1.85;
  color: var(--mist);
}

.page-home .ph-account__body p.ph-account__stat {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.8;
}

.page-home .ph-account__stat .mono {
  color: var(--amber);
  font-weight: 700;
}

.page-home .ph-account .btn {
  margin-top: 20px;
}

/* —— 近七天时间轴 —— */
.page-home .ph-feed {
  padding: 60px 0 0;
}

@media (min-width: 900px) {
  .page-home .ph-feed {
    padding-top: 88px;
  }
}

.page-home .ph-feed__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 30px;
}

@media (min-width: 900px) {
  .page-home .ph-feed__grid {
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    gap: 46px;
    align-items: start;
  }
}

.page-home .ph-feed__aside h2 {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.6vw, 2rem);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.015em;
  color: var(--silver);
}

.page-home .ph-feed__aside .lede {
  margin: 14px 0 0;
  max-width: 30em;
  font-size: 15px;
  line-height: 1.85;
  color: var(--mist);
}

.page-home .ph-feed__art {
  margin: 24px 0 0;
}

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

.page-home .ph-days {
  list-style: none;
  margin: 0;
  padding: 0 0 0 24px;
  border-left: 1px solid var(--line);
}

.page-home .ph-day {
  position: relative;
  padding: 0 0 20px;
}

.page-home .ph-day::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 5px;
  width: 9px;
  height: 9px;
  box-sizing: border-box;
  border-radius: 50%;
  background: var(--void);
  border: 2px solid var(--cyan);
  box-shadow: 0 0 0 4px rgba(47, 211, 232, 0.1);
}

.page-home .ph-day__label {
  display: inline-block;
  padding-bottom: 6px;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  color: var(--cyan);
}

.page-home .ph-entries {
  list-style: none;
  margin: 0;
  padding: 0;
}

.page-home .ph-entry {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 0 10px;
  margin-left: -10px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 12px;
  transition: background 0.24s var(--ease), border-color 0.24s var(--ease);
}

.page-home .ph-entry + .ph-entry {
  margin-top: 2px;
}

.page-home .ph-entry:hover,
.page-home .ph-entry:focus-within {
  background: rgba(47, 211, 232, 0.06);
  border-color: rgba(47, 211, 232, 0.28);
}

.page-home .ph-entry__time {
  font-size: 12.5px;
  color: var(--mist);
}

.page-home .ph-entry .tag {
  font-size: 11.5px;
  white-space: nowrap;
}

.page-home .ph-entry__title {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--silver);
}

.page-home .ph-entry__ext {
  grid-column: 3;
  margin: 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  font-size: 13px;
  line-height: 1.72;
  color: var(--mist);
  transition: max-height 0.3s var(--ease), opacity 0.3s var(--ease), margin-top 0.3s var(--ease);
}

.page-home .ph-entry:hover .ph-entry__ext,
.page-home .ph-entry:focus-within .ph-entry__ext {
  max-height: 4.2em;
  opacity: 1;
  margin-top: 6px;
}

.page-home .ph-feed__foot {
  margin-top: 24px;
}

/* —— 第 4 栏：测试资源下载 —— */
.page-home .ph-downloads {
  padding: 64px 0 0;
}

@media (min-width: 900px) {
  .page-home .ph-downloads {
    padding-top: 94px;
  }
}

.page-home .ph-downloads__panel {
  position: relative;
  padding: 32px 20px 28px;
  border: 1px solid var(--line);
  border-radius: 4px var(--ph-r-lg) var(--ph-r-lg) var(--ph-r-lg);
  background:
    radial-gradient(110% 130% at 100% 0%, rgba(124, 77, 255, 0.18), transparent 60%),
    radial-gradient(80% 100% at 0% 100%, rgba(47, 211, 232, 0.09), transparent 62%),
    var(--panel);
}

@media (min-width: 900px) {
  .page-home .ph-downloads__panel {
    padding: 46px 40px 40px;
  }
}

@media (min-width: 900px) {
  .page-home .ph-downloads__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 44px;
    align-items: start;
  }
}

.page-home .ph-downloads__intro h2 {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.36rem, 3.4vw, 1.95rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--silver);
}

.page-home .ph-downloads__intro .lede {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.85;
  color: var(--mist);
}

.page-home .ph-downloads__intro .media-frame {
  margin: 26px 0 0;
}

.page-home .ph-downloads__intro .media-frame img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.page-home .ph-packs {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

@media (min-width: 900px) {
  .page-home .ph-packs {
    margin-top: 46px;
  }
}

.page-home .ph-pack {
  padding: 16px 16px 14px;
  border: 1px solid var(--line);
  border-radius: 16px 16px 16px 4px;
  background: rgba(7, 11, 24, 0.5);
  transition: border-color 0.26s var(--ease), background 0.26s var(--ease);
}

.page-home .ph-pack:hover {
  border-color: var(--ph-edge-cyan);
  background: rgba(47, 211, 232, 0.05);
}

.page-home .ph-pack__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.page-home .ph-pack__os {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--silver);
}

.page-home .ph-pack__size {
  font-size: 13px;
  color: var(--amber);
}

.page-home .ph-pack__desc {
  margin: 8px 0 0;
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--mist);
}

.page-home .ph-pack .btn {
  margin-top: 14px;
}

/* —— 活动规则 —— */
.page-home .ph-rules {
  padding: 60px 0 0;
}

@media (min-width: 900px) {
  .page-home .ph-rules {
    padding-top: 88px;
  }

  .page-home .ph-rules__body {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: 48px;
    align-items: start;
  }
}

.page-home .ph-rules__head h2 {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.36rem, 3.4vw, 1.95rem);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--silver);
}

.page-home .ph-rules__head .lede {
  margin: 14px 0 0;
  font-size: 15px;
  line-height: 1.85;
  color: var(--mist);
}

.page-home .ph-rules__list {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

@media (min-width: 900px) {
  .page-home .ph-rules__list {
    margin-top: 0;
  }
}

.page-home .ph-rules__foot {
  margin: 22px 0 0;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--mist);
}

.page-home .ph-rules__foot a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(47, 211, 232, 0.4);
}

.page-home .ph-rules__foot a:hover,
.page-home .ph-rules__foot a:focus-visible {
  color: var(--silver);
  border-bottom-color: var(--silver);
}

/* —— 窄屏兜底 —— */
@media (max-width: 480px) {
  .page-home .ph-frame {
    padding: 38px 16px 28px;
  }

  .page-home .ph-account {
    padding: 22px 16px;
  }

  .page-home .ph-entry {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 4px 8px;
  }

  .page-home .ph-entry__time {
    grid-row: 1;
    grid-column: 1;
    padding-top: 2px;
  }

  .page-home .ph-entry .tag {
    grid-row: 1;
    grid-column: 2;
    justify-self: start;
  }

  .page-home .ph-entry__title {
    grid-row: 2;
    grid-column: 1 / -1;
  }

  .page-home .ph-entry__ext {
    grid-column: 1 / -1;
  }
}

.page-home .mono,
.page-home .ph-entry__time,
.page-home .ph-pack__size,
.page-home .ph-day__label {
  font-family: var(--font-mono);
}

@media (prefers-reduced-motion: reduce) {
  .page-home .ph-indexbar a,
  .page-home .ph-entry,
  .page-home .ph-entry__ext,
  .page-home .ph-pack {
    transition: none;
  }
}
