.page-home {
  --home-gap: 12px;
  --home-tick: rgba(195, 205, 214, 0.45);
}

/* ---------- 框景首屏 ---------- */
.page-home .hero-frame {
  position: relative;
  margin-top: 18px;
  padding: 26px 16px 18px;
  border: 1px solid var(--hair);
  border-radius: var(--r);
  background: var(--panel);
}

.page-home .hero-frame__scale {
  position: absolute;
  inset: 0 14px auto 14px;
  height: 8px;
  background-image: repeating-linear-gradient(90deg, var(--home-tick) 0 1px, transparent 1px 22px);
  pointer-events: none;
}

.page-home .hero-frame__idx {
  position: absolute;
  top: -10px;
  left: 14px;
  padding: 0 8px;
  background: var(--ink);
  color: var(--cyan);
  font-size: 12px;
  line-height: 18px;
  letter-spacing: 0.06em;
}

.page-home .hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  min-width: 0;
}

.page-home .hero-copy {
  min-width: 0;
}

.page-home .hero-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: var(--on-dark-soft);
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.06em;
}

.page-home .hero-status .status-lamp {
  animation: home-lamp-pulse 2s ease-in-out infinite;
}

@keyframes home-lamp-pulse {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}

.page-home .hero-status__dot {
  color: var(--cyan);
}

.page-home .hero-status__more {
  flex-basis: 100%;
  color: var(--on-dark-soft);
  opacity: 0.85;
}

.page-home .hero-copy h1 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(28px, 6.4vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--on-dark);
}

.page-home .hero-copy .lede {
  margin: 0 0 20px;
  max-width: 46ch;
  color: var(--on-dark-soft);
  font-size: 16px;
  line-height: 1.7;
}

.page-home .hero-demo {
  margin: 0 0 22px;
  padding: 14px;
  border: 1px solid var(--hair);
  border-radius: var(--r);
  background: rgba(255, 255, 255, 0.025);
}

.page-home .hero-demo__label {
  display: block;
  margin-bottom: 8px;
  color: var(--cyan);
  font-size: 12px;
  letter-spacing: 0.06em;
}

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

.page-home .hero-demo__input {
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--hair);
  border-radius: var(--r);
  background: var(--ink);
  color: var(--on-dark);
  font-family: var(--font-mono);
  font-size: 14px;
}

.page-home .hero-demo__input::placeholder {
  color: rgba(147, 163, 178, 0.62);
}

.page-home .hero-demo__input:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 1px;
}

.page-home .hero-demo__step {
  flex: 0 0 auto;
  color: var(--orange);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.page-home .hero-demo__hint {
  margin: 8px 0 0;
  color: var(--on-dark-soft);
  font-size: 13px;
  line-height: 1.65;
}

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

.page-home .hero-focus {
  margin: 0;
  min-width: 0;
}

.page-home .hero-focus .media-frame {
  border-color: var(--hair);
}

.page-home .hero-focus__cap {
  display: block;
  margin-top: 8px;
  color: var(--on-dark-soft);
  font-size: 12px;
  letter-spacing: 0.06em;
}

/* ---------- Bento 能力板 ---------- */
.page-home .home-bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-gap);
}

.page-home .bento__cell {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 18px 16px;
  border-left: 3px solid var(--line);
  transition: border-color var(--dur) var(--ease);
}

.page-home .bento__cell:hover,
.page-home .bento__cell:focus-within {
  border-left-color: var(--cyan);
}

.page-home .bento__cell--dark {
  border-left-color: rgba(0, 229, 200, 0.55);
}

.page-home .bento__cell--dark:hover {
  border-left-color: var(--orange);
}

.page-home .home-bento__meta {
  margin: auto 0 0;
  color: var(--cyan);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.page-home .home-bento__media {
  margin: 10px 0 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}

.page-home .home-bento__media img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
}

/* ---------- 近 30 天记录带 ---------- */
.page-home .window-figure {
  margin: 0 0 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}

.page-home .filter-bar {
  margin-bottom: 4px;
}

.page-home .filter-bar:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
}

.page-home .filter-btn[aria-pressed="true"] {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink);
}

.page-home .window-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.page-home .window-item {
  position: relative;
  padding: 16px 0 16px 20px;
  border-bottom: 1px solid var(--line);
}

.page-home .window-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 26px;
  width: 6px;
  height: 6px;
  background: var(--cyan);
}

.page-home .window-item[hidden] {
  display: none;
}

.page-home .window-item__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 6px;
}

.page-home .window-item__time {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.page-home .window-item__title {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.4;
  color: var(--text);
}

.page-home .window-item__body {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

/* ---------- 栏目索引 ---------- */
.page-home .index-list {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  border-top: 1px solid var(--hair);
}

.page-home .index-item {
  border-bottom: 1px solid var(--hair);
}

.page-home .index-item__link,
.page-home .index-item__static {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 4px 14px;
  min-width: 0;
  padding: 16px 4px;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.page-home .index-item__link:hover,
.page-home .index-item__link:focus-visible {
  border-left-color: var(--cyan);
  background: rgba(0, 229, 200, 0.05);
}

.page-home .index-item__static {
  border-left-color: rgba(0, 229, 200, 0.35);
}

.page-home .index-item__num {
  grid-row: span 2;
  color: var(--cyan);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.06em;
}

.page-home .index-item__name {
  color: var(--on-dark);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  line-height: 1.3;
}

.page-home .index-item__desc {
  grid-column: 2;
  color: var(--on-dark-soft);
  font-size: 14px;
  line-height: 1.65;
}

/* ---------- 信任条 ---------- */
.page-home .trust-band {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.page-home .trust-band__main {
  min-width: 0;
}

.page-home .trust-meta {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin: 18px 0 22px;
  border-top: 1px solid var(--line);
}

.page-home .trust-meta__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--line);
}

.page-home .trust-meta dt {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.page-home .trust-meta dd {
  margin: 0;
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  text-align: right;
}

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

.page-home .trust-band__side {
  min-width: 0;
}

.page-home .trust-note {
  margin: 16px 0 10px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.06em;
}

.page-home .trust-links {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.page-home .trust-links a {
  color: var(--blue);
}

.page-home .home-ridge {
  margin: 40px 0 0;
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.page-home .home-ridge img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
  opacity: 0.5;
}

/* ---------- 响应式 ---------- */
@media (min-width: 720px) {
  .page-home .window-list {
    border-top: 0;
    border-left: 1px solid var(--line);
  }

  .page-home .window-item {
    padding-left: 26px;
  }

  .page-home .window-item::before {
    left: -3px;
  }

  .page-home .index-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 32px;
  }

  .page-home .trust-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
  }
}

@media (min-width: 900px) {
  .page-home .home-bento {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-areas:
      "lookup lookup lookup lookup lookup lookup lookup lookup export export export export"
      "overview overview overview overview overview settings settings settings settings settings settings settings";
  }

  .page-home .home-bento__lookup { grid-area: lookup; }
  .page-home .home-bento__export { grid-area: export; }
  .page-home .home-bento__overview { grid-area: overview; }
  .page-home .home-bento__settings { grid-area: settings; }

  .page-home .home-bento__lookup {
    padding: 24px 22px;
  }

  .page-home .home-bento__lookup .bento__title {
    font-size: 22px;
    line-height: 1.3;
  }

  .page-home .trust-band {
    grid-template-columns: minmax(0, 8fr) minmax(0, 4fr);
    column-gap: 40px;
  }
}

@media (min-width: 960px) {
  .page-home .hero-grid {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 32px;
    align-items: start;
  }

  .page-home .hero-frame {
    padding: 32px 26px 22px;
  }

  .page-home .hero-status__more {
    flex-basis: auto;
    max-width: 0;
    overflow: hidden;
    opacity: 0;
    white-space: nowrap;
    transition: max-width 200ms var(--ease), opacity 200ms var(--ease);
  }

  .page-home .hero-status:hover .hero-status__more,
  .page-home .hero-status:focus-within .hero-status__more {
    max-width: 460px;
    opacity: 0.85;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hero-status .status-lamp {
    animation: none;
    opacity: 1;
  }

  .page-home .hero-status__more {
    transition: none;
  }

  .page-home .bento__cell,
  .page-home .index-item__link {
    transition: none;
  }
}
<<<END>>>
