.page-home {
  --home-line: rgba(242, 237, 228, 0.12);
  background:
    radial-gradient(circle at 82% 8%, rgba(255, 107, 53, 0.09), transparent 28rem),
    linear-gradient(180deg, #081227 0%, var(--c-deep) 38%, #0e1a33 100%);
  color: var(--c-cream);
}

/* ===== 首屏数据控制台 ===== */
.page-home .home-hero {
  position: relative;
  overflow: hidden;
  padding: 42px 0 72px;
}
@media (min-width: 1024px) {
  .page-home .home-hero {
    padding: 72px 0 120px;
  }
}
.page-home .home-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.page-home .home-hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
}
.page-home .home-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(11, 27, 58, 0.72) 0%, rgba(11, 27, 58, 0.9) 78%, #0e1a33 100%);
}
.page-home .hero-grid-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(rgba(242, 237, 228, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 237, 228, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
}
.page-home .hero-deco {
  position: absolute;
  right: 2%;
  top: 4%;
  z-index: 2;
  font-family: var(--font-title);
  font-weight: 900;
  font-size: clamp(120px, 24vw, 300px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(242, 237, 228, 0.14);
  user-select: none;
  letter-spacing: -0.04em;
}
.page-home .home-hero-inner {
  position: relative;
  z-index: 3;
}
.page-home .home-hero-inner .ky-breadcrumb {
  margin-bottom: 12px;
  color: var(--c-stone);
}
.page-home .home-hero-grid {
  display: grid;
  gap: 40px;
  margin-top: 36px;
}
@media (min-width: 980px) {
  .page-home .home-hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 56px;
    align-items: center;
  }
}
.page-home .hero-copy {
  max-width: 42rem;
}
.page-home .hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--c-green);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.page-home .hero-copy h1 {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(40px, 7vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  color: var(--c-cream);
  max-width: 11em;
}
.page-home .hero-lead {
  font-size: 17px;
  line-height: 1.8;
  color: var(--c-stone);
  margin-bottom: 32px;
  max-width: 56ch;
}
.page-home .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.page-home .hero-actions .ky-btn {
  padding: 15px 28px;
  font-size: 15px;
}
.page-home .hero-console {
  min-width: 0;
}
.page-home .console-panel {
  position: relative;
  padding: 22px;
  background: linear-gradient(160deg, rgba(62, 62, 66, 0.92), rgba(11, 27, 58, 0.9));
  border: 1px solid var(--home-line);
  border-radius: var(--radius-cut);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.28);
}
.page-home .console-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: linear-gradient(180deg, var(--c-orange), var(--c-green));
}
.page-home .console-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--home-line);
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--c-stone);
}
.page-home .console-live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--c-green);
}
.page-home .console-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-green);
  animation: homePulse 2s infinite;
}
.page-home .console-serial {
  color: var(--c-stone);
}
.page-home .console-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.page-home .console-stat {
  padding: 14px;
  background: rgba(11, 27, 58, 0.55);
  border-left: 2px solid rgba(0, 196, 140, 0.6);
  border-radius: 0 8px 0 8px;
}
.page-home .console-stat-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.page-home .console-stat-name {
  font-size: 14px;
  color: var(--c-stone);
  letter-spacing: 0.04em;
}
.page-home .console-stat-value {
  font-family: var(--font-mono);
  font-size: 34px;
  line-height: 1;
  color: var(--c-cream);
  white-space: nowrap;
}
.page-home .console-stat-value small {
  font-size: 16px;
  color: var(--c-green);
  margin-left: 2px;
}
.page-home .console-spark {
  display: block;
  width: 100%;
  height: 32px;
  margin-top: 10px;
}
.page-home .spark-line {
  vector-effect: non-scaling-stroke;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.page-home .console-note {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed var(--home-line);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-stone);
  opacity: 0.75;
}
.page-home .hero-bottom-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  height: 4px;
  background: linear-gradient(90deg, var(--c-orange) 0%, var(--c-green) 58%, transparent 100%);
  opacity: 0.85;
}

/* ===== 左侧导航与右侧堆叠面板 ===== */
.page-home .home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  padding-top: 56px;
  padding-bottom: 88px;
}
@media (min-width: 1024px) {
  .page-home .home-layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 48px;
    align-items: start;
  }
}
.page-home .home-sidenav {
  display: block;
}
@media (min-width: 1024px) {
  .page-home .home-sidenav {
    position: sticky;
    top: 96px;
    padding: 20px 18px;
    background: rgba(62, 62, 66, 0.72);
    border: 1px solid var(--home-line);
    border-radius: var(--radius-cut);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
  }
}
.page-home .sidenav-title {
  display: none;
}
@media (min-width: 1024px) {
  .page-home .sidenav-title {
    display: block;
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--c-stone);
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--home-line);
  }
}
.page-home .sidenav-links {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.page-home .sidenav-links::-webkit-scrollbar {
  display: none;
}
@media (min-width: 1024px) {
  .page-home .sidenav-links {
    flex-direction: column;
    gap: 4px;
    overflow: visible;
    padding-bottom: 0;
  }
}
.page-home .sidenav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 8px 12px;
  font-size: 14px;
  color: var(--c-cream);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 6px;
  transition: color 0.25s ease, border-color 0.25s ease;
}
@media (min-width: 1024px) {
  .page-home .sidenav-link {
    width: 100%;
  }
}
.page-home .sidenav-link span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--c-orange);
}
.page-home .sidenav-link:hover {
  color: var(--c-green);
  border-color: rgba(0, 196, 140, 0.5);
}
.page-home .sidenav-status {
  display: none;
}
@media (min-width: 1024px) {
  .page-home .sidenav-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--home-line);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--c-stone);
  }
}
.page-home .sidenav-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-green);
  animation: homePulse 2.4s infinite;
}
.page-home .home-sections {
  display: grid;
  gap: 40px;
  min-width: 0;
}

/* ===== 堆叠战术面板 ===== */
.page-home .home-panel {
  position: relative;
  padding: 28px 20px;
  background: linear-gradient(160deg, rgba(62, 62, 66, 0.82), rgba(11, 27, 58, 0.92));
  border: 1px solid var(--home-line);
  border-radius: var(--radius-cut);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
@media (min-width: 768px) {
  .page-home .home-panel {
    padding: 38px 34px;
  }
}
.page-home .home-panel[data-visible] {
  border-color: rgba(0, 196, 140, 0.42);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(0, 196, 140, 0.22);
}
.page-home .home-panel::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  width: 20px;
  height: 20px;
  background: var(--c-deep);
  border-left: 1px solid var(--home-line);
  border-top: 1px solid var(--home-line);
  border-radius: 10px 0 0 0;
  pointer-events: none;
}
.page-home .home-panel-return {
  border-top-color: rgba(255, 107, 53, 0.5);
}
.page-home .home-panel-legacy {
  border-top-color: rgba(198, 123, 92, 0.55);
}
.page-home .home-panel-ios {
  border-top-color: rgba(0, 196, 140, 0.5);
}
.page-home .home-panel-save {
  border-top-color: rgba(0, 196, 140, 0.5);
}
.page-home .home-panel-news {
  border-top-color: rgba(255, 107, 53, 0.38);
}
.page-home .home-panel-inner {
  display: grid;
  gap: 24px;
  min-width: 0;
}
@media (min-width: 900px) {
  .page-home .home-panel-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 44px;
    align-items: center;
  }
}
.page-home .home-panel-ios .panel-copy {
  order: -1;
}
.page-home .home-panel-ios .panel-media {
  order: 2;
}
@media (min-width: 900px) {
  .page-home .home-panel-ios .panel-copy {
    order: 2;
  }
  .page-home .home-panel-ios .panel-media {
    order: -1;
  }
}
.page-home .panel-copy {
  min-width: 0;
}
.page-home .section-index {
  margin: 0 0 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-orange);
}
.page-home .panel-copy h2 {
  margin: 0 0 14px;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 28px;
  line-height: 1.2;
  color: var(--c-cream);
}
@media (min-width: 768px) {
  .page-home .panel-copy h2 {
    font-size: 34px;
  }
}
.page-home .panel-lead {
  margin-bottom: 18px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--c-stone);
}
.page-home .panel-list {
  display: grid;
  gap: 8px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}
.page-home .panel-list li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-cream);
}
.page-home .panel-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 2px;
  background: var(--c-green);
}
.page-home .panel-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}
.page-home .panel-inline-link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--c-green);
  text-decoration: none;
  border-bottom: 1px dashed rgba(0, 196, 140, 0.5);
  padding-bottom: 2px;
}
.page-home .panel-inline-link:hover {
  color: var(--c-orange);
  border-bottom-color: var(--c-orange);
}
.page-home .panel-media {
  position: relative;
  margin: 0;
  min-width: 0;
}
.page-home .panel-media-img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: var(--radius-cut);
  border: 1px solid var(--home-line);
  background: rgba(11, 27, 58, 0.6);
}
.page-home .media-tag {
  position: absolute;
  left: 12px;
  top: 12px;
  margin: 0;
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--c-cream);
  background: var(--c-deep);
  border: 1px solid var(--home-line);
  border-radius: 3px;
}

/* ===== 旧版入口收藏栏视觉 ===== */
.page-home .bookmark-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 14px 16px;
  background: rgba(198, 123, 92, 0.14);
  border: 1px solid rgba(198, 123, 92, 0.4);
  border-radius: var(--radius-cut);
  font-family: var(--font-mono);
  font-size: 13px;
}
.page-home .bookmark-bar-label {
  color: var(--c-terra);
  font-weight: 700;
  letter-spacing: 0.08em;
}
.page-home .bookmark-item {
  padding: 6px 12px;
  color: var(--c-cream);
  background: rgba(11, 27, 58, 0.7);
  border: 1px solid var(--home-line);
  border-radius: 4px;
}
.page-home .bookmark-item.is-live {
  color: var(--c-green);
  border-color: rgba(0, 196, 140, 0.5);
}
.page-home .bookmark-caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--c-stone);
  text-align: right;
}

/* ===== iOS 更新亮点 ===== */
.page-home .speed-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}
.page-home .speed-tag {
  padding: 6px 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--c-green);
  background: rgba(0, 196, 140, 0.1);
  border: 1px solid rgba(0, 196, 140, 0.35);
  border-radius: 999px;
}

/* ===== 快捷收藏引导 ===== */
.page-home .save-actions {
  margin-top: 8px;
}
.page-home .save-star-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 16px;
  color: var(--c-cream);
  background: transparent;
  border: 2px solid var(--c-green);
  border-radius: var(--radius-cut);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}
.page-home .save-star-btn:hover,
.page-home .save-star-btn:focus-visible {
  background: rgba(0, 196, 140, 0.16);
  color: var(--c-green);
  box-shadow: 0 0 0 4px rgba(0, 196, 140, 0.12);
  outline: none;
}
.page-home .save-star {
  font-size: 20px;
  line-height: 1;
  animation: homeStarPulse 2.2s ease-in-out infinite;
}
.page-home .save-tip {
  margin-top: 14px;
  font-size: 13px;
  color: var(--c-stone);
}

/* ===== 版本动态摘要 ===== */
.page-home .news-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}
.page-home .news-heading h2 {
  margin: 0;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 28px;
  line-height: 1.2;
  color: var(--c-cream);
}
@media (min-width: 768px) {
  .page-home .news-heading h2 {
    font-size: 34px;
  }
}
.page-home .news-more {
  padding-bottom: 2px;
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--c-orange);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 107, 53, 0.4);
}
.page-home .news-more:hover {
  color: var(--c-green);
  border-bottom-color: var(--c-green);
}
.page-home .news-grid {
  display: grid;
  gap: 16px;
}
@media (min-width: 800px) {
  .page-home .news-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
}
.page-home .news-card {
  padding: 22px 20px;
  background: rgba(11, 27, 58, 0.72);
  border: 1px solid var(--home-line);
  border-left-width: 3px;
  border-left-color: var(--c-green);
  border-radius: var(--radius-cut);
  transition: transform 0.25s ease, border-left-color 0.25s ease;
}
.page-home .news-card:hover {
  transform: translateY(-4px);
  border-left-color: var(--c-orange);
}
.page-home .news-tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  border-radius: 3px;
  color: var(--c-deep);
}
.page-home .news-tag--switch {
  background: var(--c-terra);
}
.page-home .news-tag--ios {
  background: var(--c-orange);
}
.page-home .news-tag--data {
  background: var(--c-moss);
}
.page-home .news-card h3 {
  margin: 0 0 10px;
  font-family: var(--font-title);
  font-size: 18px;
  line-height: 1.35;
  color: var(--c-cream);
}
.page-home .news-card h3 a {
  color: inherit;
  text-decoration: none;
}
.page-home .news-card h3 a:hover {
  color: var(--c-green);
}
.page-home .news-card p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--c-stone);
}

/* ===== 全站栏目索引 ===== */
.page-home .home-site-map {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 16px;
  padding: 20px 22px;
  background: rgba(242, 237, 228, 0.04);
  border: 1px solid var(--home-line);
  border-radius: var(--radius-cut);
}
.page-home .site-map-label {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-stone);
}
.page-home .home-site-map a {
  padding: 6px 10px;
  font-size: 14px;
  color: var(--c-cream);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 4px;
  transition: color 0.25s ease, border-color 0.25s ease;
}
.page-home .home-site-map a:hover {
  color: var(--c-green);
  border-color: rgba(0, 196, 140, 0.4);
}

/* ===== 动效 keyframes ===== */
@keyframes homePulse {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 196, 140, 0.55);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(0, 196, 140, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 196, 140, 0);
  }
}
@keyframes homeStarPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}
@keyframes homeGlide {
  0% {
    transform: translateX(-4%);
  }
  100% {
    transform: translateX(4%);
  }
}
.page-home .home-hero-bg::before {
  content: "";
  position: absolute;
  inset: -20% 0;
  z-index: 1;
  background: linear-gradient(90deg, transparent 0%, rgba(0, 196, 140, 0.06) 45%, rgba(255, 107, 53, 0.08) 75%, transparent 100%);
  animation: homeGlide 7s ease-in-out infinite alternate;
}
