.page-home {
  --home-block-bg: #0E1A33;
  --home-gold-rule: linear-gradient(90deg, rgba(201, 162, 39, 0.9), rgba(201, 162, 39, 0));
  --home-line-soft: rgba(255, 255, 255, 0.08);
  --home-panel-radius: 14px;
  background: linear-gradient(180deg, #0A1428 0%, #0C1830 62%, #0A1428 100%);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.7;
  overflow-x: hidden;
}
.page-home .container {
  padding-left: 20px;
  padding-right: 20px;
}
.page-home__breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 20px 0;
  color: var(--text-secondary);
  font-size: 0.82rem;
}
.page-home__breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
.page-home__breadcrumb li {
  display: flex;
  align-items: center;
  gap: 6px;
}
.page-home__breadcrumb li::before {
  content: "/";
  color: var(--gold);
  font-family: var(--font-mono);
  margin-right: 6px;
}
.page-home .home-hero {
  position: relative;
  padding: 40px 0 64px;
  overflow: hidden;
}
.page-home .home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent 55%, rgba(62, 180, 212, 0.10) 55%, rgba(62, 180, 212, 0.10) 58%, transparent 58%),
    radial-gradient(circle at 82% 28%, rgba(201, 162, 39, 0.16), transparent 36%),
    linear-gradient(180deg, rgba(255, 107, 74, 0.06), transparent 60%);
  pointer-events: none;
}
.page-home .home-hero__inner {
  position: relative;
  display: grid;
  gap: 32px;
}
.page-home .home-hero__kicker {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin: 0 0 16px;
}
.page-home .home-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 8vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: 0.01em;
  margin: 0 0 20px;
}
.page-home .home-hero__lead {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin: 0 0 18px;
  max-width: 640px;
}
.page-home .home-hero__meta {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 0.05em;
  margin: 0 0 24px;
}
.page-home .home-hero__preview {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  display: grid;
  gap: 4px 18px;
}
.page-home .home-hero__preview a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.page-home .home-hero__preview a:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-fine);
  color: var(--text-primary);
}
.page-home .home-hero__preview span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gold-bright);
  font-weight: 700;
}
.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.page-home .home-hero__side {
  display: grid;
  gap: 20px;
}
.page-home .home-hero__quick {
  order: 1;
  background: linear-gradient(145deg, rgba(62, 180, 212, 0.08), rgba(201, 162, 39, 0.05));
  border: 1px solid var(--border-fine);
  border-radius: var(--home-panel-radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-soft);
}
.page-home .home-hero__quick-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--gold-bright);
  margin: 0 0 12px;
  text-transform: uppercase;
}
.page-home .home-hero__quick-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.page-home .home-hero__quick-list a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-fine);
  border-radius: 999px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.page-home .home-hero__quick-list a:hover {
  background: rgba(255, 107, 74, 0.12);
  border-color: var(--action);
  color: var(--text-primary);
}
.page-home .home-hero__media {
  order: 2;
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-fine);
}
.page-home .home-hero__media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.page-home .home-section {
  position: relative;
  padding: 72px 0;
}
.page-home .home-section--alt {
  background: linear-gradient(180deg, rgba(62, 180, 212, 0.05), transparent 28%), var(--bg-card);
  border-top: 1px solid var(--border-fine);
  border-bottom: 1px solid var(--border-fine);
}
.page-home .home-section__head {
  position: relative;
  display: grid;
  gap: 4px;
  margin-bottom: 20px;
  min-height: 80px;
}
.page-home .section-kicker {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0;
}
.page-home .home-section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin: 0;
  padding-right: 68px;
}
.page-home .section-index {
  font-family: var(--font-mono);
  font-size: clamp(3.6rem, 10vw, 6rem);
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--gold);
  position: absolute;
  right: 0;
  top: -10px;
  opacity: 0.92;
  pointer-events: none;
  z-index: 0;
}
.page-home .home-section__intro {
  max-width: 680px;
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.8;
  margin: 0 0 36px;
}
.page-home .home-section__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}
.page-home .quick-grid {
  display: grid;
  gap: 16px;
}
.page-home .quick-card {
  position: relative;
  padding: 22px;
  border: 1px solid var(--border-fine);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}
.page-home .quick-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 2px;
  background: var(--home-gold-rule);
  opacity: 0.6;
}
.page-home .quick-card--deep {
  background: var(--bg-deep);
}
.page-home .quick-card--panel {
  background: var(--bg-card);
}
.page-home .quick-card__num {
  font-family: var(--font-mono);
  color: var(--gold-bright);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin: 0;
}
.page-home .quick-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin: 6px 0 0;
}
.page-home .quick-card__desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 0;
  flex: 1;
}
.page-home .quick-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.page-home .quick-card__link {
  color: var(--action);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}
.page-home .quick-card__link:hover {
  text-decoration: underline;
}
.page-home .tabs-categories {
  position: relative;
  margin-top: 28px;
}
.page-home .tab-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.page-home .tab-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border-fine);
  margin-bottom: 24px;
}
.page-home .tab-label {
  cursor: pointer;
  padding: 12px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
}
.page-home #tab-v4:checked ~ .tab-nav label[for="tab-v4"],
.page-home #tab-legacy:checked ~ .tab-nav label[for="tab-legacy"] {
  color: var(--text-primary);
  border-bottom-color: var(--action);
}
.page-home #tab-v4:focus-visible ~ .tab-nav label[for="tab-v4"],
.page-home #tab-legacy:focus-visible ~ .tab-nav label[for="tab-legacy"] {
  outline: 2px solid var(--action);
  outline-offset: 2px;
}
.page-home .tab-panel {
  display: none;
  padding: 8px 0 16px;
}
.page-home #tab-v4:checked ~ .tab-panel--v4,
.page-home #tab-legacy:checked ~ .tab-panel--legacy {
  display: block;
  animation: page-home-fade 0.25s ease both;
}
@keyframes page-home-fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.page-home .category-list {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: grid;
  gap: 10px;
}
.page-home .category-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-fine);
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
}
.page-home .category-list li span {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--gold-bright);
  font-size: 0.88rem;
}
.page-home .compare-map__figure {
  margin: 0 0 32px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-fine);
}
.page-home .compare-map__figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.page-home .compare-map__layout {
  display: grid;
  gap: 28px;
  align-items: center;
}
.page-home .diff-svg {
  width: 100%;
  height: auto;
}
.page-home .diff-svg__frame {
  fill: rgba(255, 255, 255, 0.02);
  stroke: var(--border-fine);
}
.page-home .diff-svg__title {
  fill: var(--gold-bright);
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 700;
}
.page-home .diff-svg__item {
  fill: rgba(255, 255, 255, 0.08);
  stroke: var(--border-fine);
}
.page-home .diff-svg__item--new {
  fill: rgba(255, 107, 74, 0.14);
  stroke: var(--action);
}
.page-home .diff-svg__item--short {
  fill: rgba(255, 255, 255, 0.04);
  opacity: 0.55;
}
.page-home .diff-svg__line {
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 6 6;
}
.page-home .diff-svg__line--gold {
  stroke: var(--gold);
}
.page-home .diff-svg__line--action {
  stroke: var(--action);
  stroke-dasharray: none;
}
.page-home .diff-svg__dot--gold {
  fill: var(--gold);
}
.page-home .diff-svg__dot--action {
  fill: var(--action);
}
.page-home .diff-svg__label {
  fill: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 12px;
}
.page-home .compare-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.page-home .step-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 4px 14px;
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-fine);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}
.page-home .step-item__num {
  grid-row: span 2;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--gold-bright);
  border: 1px solid rgba(201, 162, 39, 0.5);
  border-radius: 50%;
  background: var(--bg-deep);
}
.page-home .step-item h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
}
.page-home .step-item p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
}
.page-home .home-section--guide__inner {
  display: grid;
  gap: 32px;
  align-items: start;
}
.page-home .guide-intro {
  max-width: 640px;
}
.page-home .guide-facts {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.page-home .guide-facts li {
  position: relative;
  padding: 10px 0 10px 34px;
  border-bottom: 1px solid var(--border-fine);
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.6;
}
.page-home .guide-facts li::before {
  content: "◆";
  position: absolute;
  left: 4px;
  top: 10px;
  color: var(--gold);
  font-size: 0.8rem;
}
.page-home .guide-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-fine);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-soft);
}
.page-home .guide-panel__title {
  font-family: var(--font-mono);
  color: var(--gold-bright);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin: 0 0 18px;
}
.page-home .guide-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.page-home .guide-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-fine);
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.5;
}
.page-home .guide-list li span {
  font-family: var(--font-mono);
  color: var(--gold-bright);
  font-size: 0.78rem;
  min-width: 26px;
}
.page-home .scenario-layout {
  display: grid;
  gap: 32px;
}
.page-home .scenario-grid {
  display: grid;
  gap: 14px;
}
.page-home .scenario-card {
  position: relative;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-fine);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.page-home .scenario-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, transparent 50%, rgba(201, 162, 39, 0.16) 50%);
}
.page-home .scenario-card__icon {
  margin: 0 0 8px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 1.3rem;
}
.page-home .scenario-card h3 {
  margin: 0 0 6px;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 800;
}
.page-home .scenario-card p {
  margin: 0 0 14px;
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
}
.page-home .scenario-card a {
  color: var(--action);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}
.page-home .scenario-card a:hover {
  text-decoration: underline;
}
.page-home .scenario-layout__media {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-fine);
  align-self: center;
}
.page-home .scenario-layout__media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.page-home .changelog-banner {
  margin: 28px 0 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-fine);
}
.page-home .changelog-banner img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}
.page-home .timeline {
  position: relative;
  margin: 28px 0 0;
  display: grid;
  gap: 10px;
}
.page-home .timeline-item {
  position: relative;
  border-left: 1px solid var(--border-fine);
  margin-left: 19px;
  padding: 0 0 10px 26px;
}
.page-home .timeline-item:last-child {
  padding-bottom: 0;
}
.page-home .timeline-item__node {
  position: absolute;
  left: -20px;
  top: 0;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.78rem;
  background: var(--bg-deep);
  border: 1px solid var(--gold);
  color: var(--gold-bright);
  border-radius: 50%;
  z-index: 1;
}
.page-home .timeline-item__title {
  font-weight: 800;
  font-size: 1rem;
  display: inline-block;
}
.page-home .timeline-item__tag {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cyan);
  border: 1px solid rgba(62, 180, 212, 0.4);
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.page-home .timeline-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 0;
}
.page-home .timeline-item summary::-webkit-details-marker {
  display: none;
}
.page-home .timeline-item summary:hover .timeline-item__title {
  color: var(--gold-bright);
}
.page-home .timeline-item p {
  margin: 10px 0 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 640px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-fine);
  border-radius: 8px;
  padding: 14px 16px;
}
@media (min-width: 640px) {
  .page-home .home-hero__preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .page-home .quick-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-home .category-list {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-home .scenario-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .page-home .timeline {
    margin-left: 6px;
  }
}
@media (min-width: 1024px) {
  .page-home .home-hero {
    padding: 72px 0 104px;
  }
  .page-home .home-hero__inner {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 56px;
    align-items: center;
  }
  .page-home .home-hero__side {
    display: block;
    position: relative;
    min-height: 580px;
  }
  .page-home .home-hero__media {
    position: absolute;
    inset: 0;
    margin: 0;
  }
  .page-home .home-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
  }
  .page-home .home-hero__quick {
    position: absolute;
    left: 20px;
    bottom: 24px;
    width: min(300px, calc(100% - 40px));
    z-index: 2;
    background: rgba(10, 20, 40, 0.88);
    backdrop-filter: blur(8px);
  }
  .page-home .home-section {
    padding: 104px 0;
  }
  .page-home .home-section__head {
    min-height: 120px;
    margin-bottom: 28px;
  }
  .page-home .section-index {
    font-size: clamp(5rem, 10vw, 8rem);
    top: -18px;
    right: 8px;
  }
  .page-home .quick-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding-top: 8px;
  }
  .page-home .compare-map__layout {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 44px;
  }
  .page-home .home-section--guide__inner {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 56px;
  }
  .page-home .home-section--guide__inner .guide-intro {
    padding-top: 8px;
  }
  .page-home .scenario-layout {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
    gap: 44px;
    align-items: center;
  }
}
