.page-home {
  --home-title-size: clamp(68px, 11vw, 168px);
  --home-en-size: clamp(13px, 1.2vw, 22px);
  --home-card-shadow: 5px 5px 0 rgba(0, 0, 0, 0.4);
}

/* ===================== 顶部提示条 ===================== */
.page-home .home-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 16px;
  padding-top: 24px;
}

.page-home .home-update-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

/* ===================== 今日封面 ===================== */
.page-home .home-cover {
  position: relative;
  padding: 48px 0 72px;
  border-bottom: 1px solid var(--border-strong);
  background:
    radial-gradient(ellipse at 78% 18%, rgba(109, 90, 240, 0.14) 0%, transparent 46%),
    linear-gradient(135deg, rgba(28, 27, 75, 0.72) 0%, transparent 62%),
    var(--canvas);
  overflow: hidden;
}

.page-home .home-cover::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 34%;
  height: 100%;
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
  background: linear-gradient(
    135deg,
    transparent 18%,
    rgba(24, 224, 200, 0.05) 40%,
    rgba(109, 90, 240, 0.12) 68%,
    transparent 82%
  );
  pointer-events: none;
}

.page-home .cover-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 28px;
}

.page-home .cover-main {
  position: relative;
  z-index: 1;
}

.page-home .cover-kicker {
  margin: 0 0 20px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--orange);
  text-transform: uppercase;
}

.page-home .cover-title {
  margin: 0 0 24px;
  font-size: var(--home-title-size);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.page-home .cover-brand {
  display: block;
}

.page-home .cover-en {
  display: block;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: var(--home-en-size);
  font-weight: 400;
  letter-spacing: 0.32em;
  color: var(--mint);
  text-transform: uppercase;
}

.page-home .cover-lede {
  max-width: 360px;
  margin: 0 0 32px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.page-home .cover-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
}

.page-home .cover-actions .btn {
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 2px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.page-home .cover-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

.page-home .cover-meta-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  box-shadow: var(--home-card-shadow);
}

.page-home .cover-meta-item dt {
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
}

.page-home .cover-meta-item dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 800;
  color: var(--orange);
  font-feature-settings: "tnum";
}

.page-home .cover-media {
  position: relative;
  margin: 0;
  border: 2px solid var(--border-strong);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 12px 12px 0 rgba(24, 224, 200, 0.08);
  transform: rotate(0.6deg);
}

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

.page-home .cover-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 20px;
  margin: 0;
  background: linear-gradient(0deg, rgba(11, 13, 23, 0.86) 0%, transparent 100%);
  color: var(--ink);
  font-size: 14px;
  letter-spacing: 0.04em;
}

.page-home .cover-side {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 20px 0 0;
  border-top: 1px solid var(--border);
}

.page-home .cover-issue {
  display: flex;
  align-items: center;
  gap: 14px;
}

.page-home .cover-issue-label {
  font-size: 12px;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
}

.page-home .cover-issue-num {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.06em;
}

.page-home .cover-index {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 10px 28px;
}

.page-home .cover-index a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.25s;
}

.page-home .cover-index a span:first-child {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--violet);
}

.page-home .cover-index a:hover {
  color: var(--ink);
}

/* ===================== 频道总览 ===================== */
.page-home .channel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.page-home .channel-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 170px;
  padding: 24px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--home-card-shadow);
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.page-home .channel-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, transparent 50%, rgba(109, 90, 240, 0.18) 50%);
  pointer-events: none;
}

.page-home .channel-card:hover {
  border-color: var(--violet);
  transform: translateY(-4px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.page-home .channel-card-feature {
  background: var(--deep);
  border-color: var(--border-strong);
  min-height: 260px;
}

.page-home .channel-num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--orange);
  letter-spacing: 0.1em;
}

.page-home .channel-inner h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
}

.page-home .channel-inner p {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* ===================== 正在更新 ===================== */
.page-home .updates-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.page-home .updates-figure {
  margin: 0;
  overflow: hidden;
  border: 2px solid var(--border);
  border-radius: 4px;
  box-shadow: var(--home-card-shadow);
}

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

.page-home .updates-figure figcaption {
  margin: 0;
  padding: 12px 14px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

.page-home .updates-list {
  display: flex;
  flex-direction: column;
}

.page-home .update-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}

.page-home .update-item:first-child {
  padding-top: 4px;
}

.page-home .update-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-home .update-time {
  font-size: 13px;
  color: var(--ink-soft);
}

.page-home .update-title {
  margin: 0;
}

.page-home .update-title a {
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.page-home .update-title a:hover {
  color: var(--mint);
}

/* ===================== 收藏与登录 ===================== */
.page-home .save-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.page-home .save-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 28px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 4px;
  box-shadow: var(--home-card-shadow);
}

.page-home .save-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-home .save-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--deep);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  color: var(--gold);
  font-size: 18px;
}

.page-home .save-card-head h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
}

.page-home .save-figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 4px;
}

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

.page-home .save-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-soft);
}

.page-home .save-fav-btn {
  align-self: flex-start;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: 2px;
  font-size: 15px;
  font-weight: 600;
}

.page-home .login-route {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.page-home .login-route-old,
.page-home .login-route-new {
  padding: 8px 16px;
  border-radius: 2px;
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
}

.page-home .login-route-old {
  background: rgba(255, 138, 30, 0.12);
  color: var(--orange);
  text-decoration: line-through;
}

.page-home .login-route-arrow {
  color: var(--mint);
  font-size: 22px;
}

.page-home .login-route-new {
  background: rgba(24, 224, 200, 0.14);
  color: var(--mint);
}

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

.page-home .login-steps li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.page-home .step-num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--violet);
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
}

.page-home .step-body h4 {
  margin: 0 0 4px;
  font-size: 16px;
  color: var(--ink);
}

.page-home .step-body p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.6;
}

.page-home .save-card-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: auto;
}

.page-home .save-card-footer .btn {
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.page-home .save-help-link {
  color: var(--mint);
  text-decoration: none;
  font-size: 14px;
}

/* ===================== 品牌数字 ===================== */
.page-home .stats-shell {
  position: relative;
  overflow: hidden;
  padding: 56px 28px;
  background: var(--deep);
  border: 2px solid var(--border-strong);
  border-radius: 4px;
}

.page-home .stats-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.1;
}

.page-home .stats-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-home .section-head-stats {
  position: relative;
  z-index: 1;
}

.page-home .stats-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 20px;
  margin: 48px 0 32px;
}

.page-home .stat-item {
  text-align: center;
}

.page-home .stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  color: var(--orange);
  font-feature-settings: "tnum";
}

.page-home .stat-label {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.05em;
}

.page-home .stats-note {
  position: relative;
  z-index: 1;
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.75;
}

.page-home .stats-note a {
  color: var(--mint);
  text-decoration: none;
  font-weight: 600;
}

/* ===================== 更多入口 ===================== */
.page-home .home-entry {
  padding: 40px 0 72px;
}

.page-home .home-entry-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.page-home .home-entry-row a {
  padding: 10px 20px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}

.page-home .home-entry-row a:hover {
  color: var(--mint);
  border-color: var(--mint);
}

/* ===================== 中等屏幕 ===================== */
@media (min-width: 600px) {
  .page-home .channel-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .page-home .channel-card-feature {
    grid-column: span 2;
  }

  .page-home .channel-card-wide {
    grid-column: span 2;
  }

  .page-home .cover-index {
    grid-template-columns: repeat(4, auto);
  }

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

/* ===================== 桌面屏幕 ===================== */
@media (min-width: 992px) {
  .page-home .home-cover {
    padding: 64px 0 96px;
  }

  .page-home .cover-shell {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 24px;
    align-items: center;
  }

  .page-home .cover-main {
    grid-column: 1 / 7;
    padding-right: 24px;
  }

  .page-home .cover-media {
    grid-column: 7 / 12;
    align-self: stretch;
    min-height: 480px;
  }

  .page-home .cover-media img {
    height: 100%;
    max-height: 560px;
    object-fit: cover;
  }

  .page-home .cover-side {
    grid-column: 12 / 13;
    flex-direction: column;
    align-items: stretch;
    gap: 40px;
    padding: 0 0 0 16px;
    border-top: 0;
    border-left: 1px solid var(--border);
  }

  .page-home .cover-index {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .page-home .updates-layout {
    grid-template-columns: 5fr 7fr;
    align-items: start;
  }

  .page-home .save-grid {
    grid-template-columns: 1fr 1fr;
  }

  .page-home .save-card {
    padding: 36px;
  }
}

/* ===================== 大桌面屏幕 ===================== */
@media (min-width: 1200px) {
  .page-home .channel-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .page-home .channel-card-feature {
    grid-column: span 2;
    grid-row: span 2;
    min-height: 320px;
  }

  .page-home .channel-card-wide {
    grid-column: span 2;
  }

  .page-home .cover-side {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    justify-content: space-between;
  }

  .page-home .home-entry {
    padding-bottom: 96px;
  }
}
