/* ============================================================
   home.css · 首页骨架：APK 发布广播牌
   米白纸面 + 钴蓝 + 荧光绿，超大字号与横向走马条
   ============================================================ */

.page-home {
  --paper: #f3f1ea;
  --ink: #121c17;
  --ink-soft: #46524b;
  --line: rgba(18, 28, 23, 0.14);
  --accent: #2447ff;
  --accent-ink: #ffffff;
  --lime: #d9ff4a;
  --header-bg: rgba(243, 241, 234, 0.9);
  --header-fg: #121c17;
  background: var(--paper);
}

/* ---------- hero ---------- */
.hm-hero {
  position: relative;
  overflow: hidden;
  padding: 54px 0 34px;
  border-bottom: 1px solid var(--line);
}
.hm-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 28, 23, 0.055) 1px, transparent 1px) 0 0 / 88px 100%,
    linear-gradient(rgba(18, 28, 23, 0.055) 1px, transparent 1px) 0 0 / 100% 88px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 88%);
  mask-image: linear-gradient(180deg, #000 0%, transparent 88%);
  pointer-events: none;
}
.hm-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  align-items: center;
  gap: 40px;
}
.hm-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.hm-kicker::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(36, 71, 255, 0.14);
}
.hm-title {
  font-size: clamp(42px, 6.2vw, 82px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.hm-title span { display: block; }
.hm-title .apk {
  display: inline-block;
  margin: 6px 0;
  padding: 0 0.08em;
  background: var(--lime);
  box-shadow: 6px 6px 0 var(--ink);
}
.hm-title .thin {
  font-size: 0.44em;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.01em;
  margin-top: 14px;
  color: var(--ink-soft);
}
.hm-lead {
  max-width: 34em;
  margin-top: 24px;
  font-size: 16px;
  color: var(--ink-soft);
}
.hm-lead strong { color: var(--ink); }
.hm-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
}
.hm-actions .btn-primary { border-radius: 12px; box-shadow: 5px 5px 0 var(--ink); }
.hm-actions .btn-primary:hover { box-shadow: 7px 7px 0 var(--ink); transform: translate(-1px, -2px); }
.hm-actions .btn-room { border-radius: 12px; border-color: rgba(18, 28, 23, 0.4); }
.hm-note {
  margin-top: 20px;
  font-size: 12.5px;
  color: var(--ink-faint);
  max-width: 36em;
}

.hm-figure { position: relative; }
.hm-figure img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 30px 40px rgba(18, 28, 23, 0.16));
}
.hm-stamp {
  position: absolute;
  right: -6px;
  bottom: -6px;
  display: grid;
  place-items: center;
  width: 104px;
  height: 104px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  background: var(--paper);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.5;
  text-align: center;
  transform: rotate(-8deg);
}

/* ---------- ticker ---------- */
.hm-ticker {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  color: var(--paper);
}
.hm-ticker-track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: hm-marquee 34s linear infinite;
}
.hm-ticker-track span {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  padding: 11px 22px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  white-space: nowrap;
  opacity: 0.82;
}
.hm-ticker-track span::after { content: "◆"; color: var(--lime); font-size: 8px; }
@keyframes hm-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- sections ---------- */
.hm-sec { padding: 76px 0; }
.hm-sec.tight { padding: 54px 0; }
.hm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 36px; }
.hm-head .idx {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--accent);
}
.hm-head h2 {
  font-size: clamp(26px, 3.4vw, 40px);
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: -0.02em;
}
.hm-head p { max-width: 38em; margin-top: 10px; font-size: 15px; color: var(--ink-soft); }
.hm-head .aside {
  flex: 0 0 auto;
  max-width: 250px;
  font-size: 13px;
  color: var(--ink-faint);
  text-align: right;
  padding-bottom: 4px;
}

/* stats */
.hm-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.45);
}
.hm-stat {
  padding: 26px 24px;
  border-right: 1px solid var(--line);
}
.hm-stat:last-child { border-right: 0; }
.hm-stat b {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.hm-stat span { display: block; margin-top: 6px; font-size: 12.5px; color: var(--ink-faint); }

/* entry bento */
.hm-entries {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.hm-entry {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.5);
  overflow: hidden;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s;
}
.hm-entry:hover {
  transform: translateY(-4px);
  background: #fff;
  border-color: rgba(36, 71, 255, 0.4);
}
.hm-entry:nth-child(1) { grid-column: span 3; min-height: 220px; background: var(--accent); color: #fff; border-color: var(--accent); }
.hm-entry:nth-child(2) { grid-column: span 3; min-height: 220px; background: var(--ink); color: var(--paper); border-color: var(--ink); }
.hm-entry:nth-child(3) { grid-column: span 2; }
.hm-entry:nth-child(4) { grid-column: span 2; }
.hm-entry:nth-child(5) { grid-column: span 2; }
.hm-entry:nth-child(6) { grid-column: span 6; min-height: 0; flex-direction: row; align-items: center; gap: 22px; background: var(--lime); border-color: var(--ink); }
.hm-entry em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  opacity: 0.55;
}
.hm-entry b { display: block; margin-top: 12px; font-size: 21px; font-weight: 800; line-height: 1.25; letter-spacing: -0.01em; }
.hm-entry p { margin-top: 8px; font-size: 13px; opacity: 0.68; }
.hm-entry .go { margin-top: 16px; font-size: 13px; font-weight: 700; }
.hm-entry:nth-child(6) b { margin-top: 0; }
.hm-entry:nth-child(6) p { margin-top: 4px; }
.hm-entry:nth-child(6) .go { margin-top: 0; margin-left: auto; }

/* split */
.hm-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: start;
}
.hm-quote {
  padding: 30px;
  border-left: 4px solid var(--accent);
  background: rgba(255, 255, 255, 0.55);
  border-radius: 0 16px 16px 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.6;
}
.hm-quote cite { display: block; margin-top: 16px; font-size: 12.5px; font-style: normal; color: var(--ink-faint); }
.hm-checks { display: grid; gap: 14px; }
.hm-check {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.4);
}
.hm-check i {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}
.hm-check b { display: block; font-size: 15px; }
.hm-check p { margin-top: 3px; font-size: 13.5px; color: var(--ink-soft); }

/* channels table */
.hm-tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, 0.45); }
.hm-table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 14px; }
.hm-table th, .hm-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.hm-table th {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
  background: rgba(18, 28, 23, 0.04);
}
.hm-table tr:last-child td { border-bottom: 0; }
.hm-table td:first-child { font-weight: 700; }
.hm-table .tag {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  background: rgba(36, 71, 255, 0.1);
  color: var(--accent);
}
.hm-table .tag.gray { background: rgba(18, 23, 28, 0.08); color: var(--ink-soft); }

/* steps */
.hm-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
.hm-step {
  position: relative;
  padding: 26px 22px 30px;
  border-top: 2px solid var(--ink);
  border-right: 1px solid var(--line);
}
.hm-step:last-child { border-right: 0; }
.hm-step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.hm-step h3 { font-size: 17px; font-weight: 800; }
.hm-step p { margin-top: 6px; font-size: 13.5px; color: var(--ink-soft); }

/* devices */
.hm-devices { display: flex; flex-wrap: wrap; gap: 10px; }
.hm-device {
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  font-size: 13.5px;
}
.hm-device b { font-family: var(--font-mono); font-size: 12px; color: var(--accent); margin-right: 6px; }

/* log */
.hm-log { border-top: 1px solid var(--line); }
.hm-log-row {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  gap: 24px;
  align-items: baseline;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
}
.hm-log-row time { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-faint); }
.hm-log-row b { font-size: 15px; }
.hm-log-row span { font-size: 12.5px; color: var(--ink-faint); }

/* faq */
.hm-faq { max-width: 860px; border-top: 1px solid var(--line); }

/* poem teaser */
.hm-poem {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  padding: 40px;
  border-radius: 20px;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  position: relative;
}
.hm-poem::after {
  content: "月";
  position: absolute;
  right: 150px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-serif);
  font-size: 190px;
  line-height: 1;
  opacity: 0.07;
  pointer-events: none;
}
.hm-poem em { font-style: normal; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.2em; opacity: 0.5; }
.hm-poem h2 { margin-top: 12px; font-family: var(--font-serif); font-size: clamp(22px, 2.6vw, 32px); line-height: 1.5; }
.hm-poem p { margin-top: 10px; max-width: 40em; font-size: 14px; opacity: 0.68; }
.hm-poem .go { position: relative; z-index: 1; padding: 12px 20px; border: 1px solid rgba(243, 241, 234, 0.4); border-radius: 999px; font-size: 13.5px; font-weight: 600; white-space: nowrap; }

/* cta */
.hm-cta { text-align: center; padding: 80px 0 88px; }
.hm-cta h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 900; letter-spacing: -0.02em; }
.hm-cta p { margin: 12px auto 26px; max-width: 34em; color: var(--ink-soft); }
.hm-cta .methods { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hm-hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .hm-figure { max-width: 560px; margin-inline: auto; }
  .hm-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .hm-head .aside { text-align: left; max-width: 100%; }
  .hm-entries { grid-template-columns: repeat(2, 1fr); }
  .hm-entry:nth-child(1), .hm-entry:nth-child(2) { grid-column: span 1; }
  .hm-entry:nth-child(3), .hm-entry:nth-child(4) { grid-column: span 1; }
  .hm-entry:nth-child(5) { grid-column: span 2; }
  .hm-steps { grid-template-columns: repeat(2, 1fr); }
  .hm-step:nth-child(2) { border-right: 0; }
  .hm-step:nth-child(3), .hm-step:nth-child(4) { border-top: 1px solid var(--line); }
  .hm-split { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 700px) {
  .hm-hero { padding: 34px 0 26px; }
  .hm-title { font-size: clamp(38px, 11vw, 56px); }
  .hm-title .thin { font-size: 0.4em; }
  .hm-stats { grid-template-columns: 1fr 1fr; }
  .hm-stat:nth-child(2) { border-right: 0; }
  .hm-stat:nth-child(1), .hm-stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .hm-entries { grid-template-columns: 1fr; }
  .hm-entry:nth-child(n) { grid-column: span 1; min-height: 0; }
  .hm-entry:nth-child(6) { flex-direction: column; align-items: flex-start; gap: 6px; }
  .hm-entry:nth-child(6) .go { margin-left: 0; margin-top: 10px; }
  .hm-steps { grid-template-columns: 1fr; }
  .hm-step { border-right: 0; }
  .hm-step + .hm-step { border-top: 1px solid var(--line); }
  .hm-log-row { grid-template-columns: 1fr; gap: 4px; }
  .hm-poem { grid-template-columns: 1fr; padding: 28px; }
  .hm-poem::after { display: none; }
  .hm-poem .go { justify-self: start; }
  .hm-sec { padding: 54px 0; }
}
