.page-home {
  --home-gap: clamp(24px, 5vw, 64px);
  --home-card-pad: clamp(20px, 3vw, 34px);
  color: var(--text-high);
}

.page-home .breadcrumbs {
  margin-bottom: 18px;
}

.page-home .home-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 88px 0 56px;
  overflow: hidden;
}

.page-home .home-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-home .home-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  max-width: none;
}

.page-home .home-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(11, 16, 38, 0.92) 0%, rgba(43, 27, 77, 0.78) 46%, rgba(11, 16, 38, 0.55) 100%),
    radial-gradient(circle at 74% 22%, rgba(255, 107, 138, 0.24) 0, transparent 46%);
}

.page-home .home-hero .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.page-home .home-hero-frame {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding: clamp(24px, 5vw, 56px);
  border: 1px solid rgba(255, 107, 138, 0.5);
  background: rgba(11, 16, 38, 0.66);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.page-home .frame-corner {
  position: absolute;
  width: 26px;
  height: 26px;
  pointer-events: none;
  z-index: 3;
}

.page-home .frame-corner--tl {
  top: 10px;
  left: 10px;
  border-top: 2px solid var(--primary);
  border-left: 2px solid var(--primary);
}

.page-home .frame-corner--tr {
  top: 10px;
  right: 10px;
  border-top: 2px solid var(--cyan);
  border-right: 2px solid var(--cyan);
}

.page-home .frame-corner--bl {
  bottom: 10px;
  left: 10px;
  border-bottom: 2px solid var(--cyan);
  border-left: 2px solid var(--cyan);
}

.page-home .frame-corner--br {
  bottom: 10px;
  right: 10px;
  border-bottom: 2px solid var(--primary);
  border-right: 2px solid var(--primary);
}

.page-home .home-hero-ruler {
  display: none;
}

.page-home .display-title {
  font-size: clamp(28px, 4.6vw, 58px);
  line-height: 1.08;
  margin: 12px 0 18px;
  text-shadow: 0 0 22px rgba(255, 107, 138, 0.28);
  text-wrap: balance;
}

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

.page-home .home-hero-desc {
  max-width: 660px;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.72;
  margin-bottom: 26px;
}

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

.page-home .home-hero-cycle {
  position: relative;
  width: 148px;
  height: 148px;
  justify-self: center;
}

.page-home .home-hero-cycle svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.page-home .home-hero-cycle .cycle-bg {
  fill: none;
  stroke: rgba(165, 159, 184, 0.22);
  stroke-width: 7;
}

.page-home .home-hero-cycle .cycle-fg {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-dasharray: 281 327;
  filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.45));
  animation: home-pulse 3.2s ease-in-out infinite;
}

.page-home .home-hero-cycle .cycle-num {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-home .home-hero-cycle .cycle-num strong {
  font-family: var(--font-display);
  font-size: 42px;
  color: var(--text-high);
}

.page-home .home-hero-cycle .cycle-num span {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
}

@keyframes home-pulse {
  0%, 100% {
    filter: drop-shadow(0 0 4px rgba(0, 229, 255, 0.3));
  }
  50% {
    filter: drop-shadow(0 0 14px rgba(0, 229, 255, 0.6));
  }
}

.page-home .home-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 34px;
}

.page-home .hero-stat {
  padding: 18px 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
}

.page-home .hero-stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(24px, 3vw, 38px);
  font-weight: 900;
  font-style: italic;
  color: var(--primary);
}

.page-home .hero-stat-label {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 13px;
}

.page-home .home-section {
  position: relative;
  padding: 72px 0;
}

.page-home .section-head .section-desc {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.65;
  margin-top: 14px;
}

.page-home .catalog-index {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 107, 138, 0.14);
  color: var(--primary);
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  font-size: 18px;
  margin-bottom: 14px;
}

.page-home .section-title {
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
}

.page-home .today-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  margin-top: 44px;
}

.page-home .today-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  order: 1;
}

.page-home .today-art {
  order: 2;
}

.page-home .today-art .media-frame {
  overflow: hidden;
  clip-path: polygon(4% 0, 100% 0, 96% 100%, 0 100%);
}

.page-home .today-art img {
  width: 100%;
  height: auto;
  display: block;
}

.page-home .today-col {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius);
  padding: 20px;
}

.page-home .today-col-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 12px;
  margin-bottom: 12px;
}

.page-home .today-col-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.page-home .today-col-dot--pink {
  background: var(--primary);
  box-shadow: 0 0 10px rgba(255, 107, 138, 0.6);
}

.page-home .today-col-dot--coral {
  background: var(--coral);
  box-shadow: 0 0 10px rgba(255, 158, 122, 0.6);
}

.page-home .today-col-dot--purple {
  background: #8b5cf6;
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.6);
}

.page-home .today-col-dot--green {
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(0, 229, 255, 0.6);
}

.page-home .today-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.page-home .today-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 11px 2px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}

.page-home .today-item:last-child {
  border-bottom: none;
}

.page-home .today-item-name {
  font-weight: 600;
  font-size: 15px;
}

.page-home .today-item-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.page-home .home-section--panel {
  background: linear-gradient(180deg, rgba(43, 27, 77, 0.5) 0%, rgba(11, 16, 38, 0) 100%);
}

.page-home .panel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-top: 44px;
}

.page-home .panel-browser,
.page-home .panel-recent {
  padding: var(--home-card-pad);
  border-radius: var(--radius-lg);
}

.page-home .panel-browser {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 107, 138, 0.24);
}

.page-home .panel-browser .media-frame {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(0, 229, 255, 0.3);
}

.page-home .panel-browser img {
  width: 100%;
  height: auto;
  display: block;
}

.page-home .panel-browser-body {
  margin-top: 20px;
}

.page-home .panel-browser-body h3 {
  font-size: 22px;
  margin-bottom: 8px;
}

.page-home .panel-browser-body p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 18px;
}

.page-home .panel-recent {
  background: rgba(11, 16, 38, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 158, 122, 0.22);
}

.page-home .panel-recent h3 {
  font-size: 22px;
  margin-bottom: 18px;
}

.page-home .recent-list {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 0;
}

.page-home .recent-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
}

.page-home .recent-item:last-child {
  border-bottom: none;
}

.page-home .recent-index {
  font-family: var(--font-display);
  font-weight: 900;
  font-style: italic;
  color: var(--coral);
  width: 24px;
  flex-shrink: 0;
}

.page-home .recent-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.page-home .recent-name {
  font-weight: 700;
  font-size: 15px;
}

.page-home .recent-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.page-home .recent-status {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.12);
  color: var(--cyan);
  white-space: nowrap;
}

.page-home .recent-status--done {
  background: rgba(255, 209, 102, 0.14);
  color: var(--yellow);
}

.page-home .panel-progress-head {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 8px;
}

.page-home .panel-progress-bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}

.page-home .panel-progress-fill {
  display: block;
  height: 100%;
  width: 46%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--coral));
  box-shadow: 0 0 12px rgba(255, 107, 138, 0.4);
}

.page-home .archive-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 44px;
}

.page-home .archive-calendar,
.page-home .archive-filter {
  padding: var(--home-card-pad);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.page-home .archive-calendar h3,
.page-home .archive-filter h3 {
  font-size: 20px;
  margin: 0 0 6px;
}

.page-home .calendar-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.page-home .calendar-day {
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-high);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color var(--ease), background var(--ease), box-shadow var(--ease);
}

.page-home .calendar-day:hover {
  border-color: var(--primary);
}

.page-home .calendar-day--active {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 16px rgba(255, 107, 138, 0.4);
}

.page-home .calendar-hint {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

.page-home .version-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 12px;
}

.page-home .version-btn {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-high);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.page-home .version-btn:hover {
  border-color: var(--coral);
}

.page-home .version-btn--active {
  background: var(--coral);
  border-color: var(--coral);
  color: #1a0b12;
  box-shadow: 0 0 14px rgba(255, 158, 122, 0.35);
}

.page-home .version-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

.page-home .version-desc strong {
  color: var(--text-high);
}

.page-home .version-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 13px;
}

.page-home .version-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.07);
  color: var(--text-muted);
}

.page-home .version-list li:last-child {
  border-bottom: none;
}

.page-home .version-list span + span {
  color: var(--text-high);
  font-family: var(--font-display);
  font-size: 12px;
  text-align: right;
}

.page-home .archive-banner {
  position: relative;
  margin-top: 28px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 220px;
  display: flex;
  align-items: center;
}

.page-home .archive-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  max-width: none;
}

.page-home .archive-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 16, 38, 0.88) 0%, rgba(43, 27, 77, 0.55) 100%);
}

.page-home .archive-banner-text {
  position: relative;
  z-index: 2;
  padding: 34px;
  max-width: 560px;
  color: var(--text-high);
}

.page-home .archive-banner-text h3 {
  font-size: clamp(24px, 3vw, 36px);
  font-family: var(--font-display);
  margin: 6px 0 10px;
}

.page-home .archive-banner-text p {
  color: var(--text-muted);
  line-height: 1.65;
}

.page-home .version-table-wrap {
  margin-top: 44px;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
}

.page-home .version-table {
  width: 100%;
  min-width: 620px;
  border-collapse: separate;
  border-spacing: 0;
}

.page-home .version-table th {
  text-align: left;
  padding: 16px 18px;
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cyan);
  border-bottom: 1px solid rgba(0, 229, 255, 0.2);
  background: rgba(0, 229, 255, 0.06);
  white-space: nowrap;
}

.page-home .version-table td {
  padding: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 15px;
  color: var(--text-high);
}

.page-home .version-table tr:last-child td {
  border-bottom: none;
}

.page-home .version-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 26px;
  padding: 20px 24px;
  border-left: 4px solid var(--primary);
  background: rgba(255, 107, 138, 0.08);
  border-radius: 0 14px 14px 0;
}

.page-home .version-note p {
  flex: 1;
  min-width: 200px;
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
}

.page-home .home-more-links {
  padding: 20px 0 48px;
  text-align: center;
}

.page-home .home-more-links a {
  color: var(--text-muted);
  text-decoration: none;
  margin: 8px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  font-size: 15px;
  transition: border-color var(--ease), color var(--ease);
  display: inline-block;
}

.page-home .home-more-links a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

@media (min-width: 420px) {
  .page-home .calendar-grid {
    gap: 12px;
  }
}

@media (min-width: 720px) {
  .page-home .home-hero-stats {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }

  .page-home .home-section {
    padding: 96px 0;
  }

  .page-home .today-columns {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .page-home .archive-wrap {
    grid-template-columns: 1fr 1fr;
    gap: 26px;
  }
}

@media (min-width: 900px) {
  .page-home .home-hero-frame {
    grid-template-columns: 64px minmax(0, 1fr) 160px;
    align-items: center;
    gap: var(--home-gap);
  }

  .page-home .home-hero-ruler {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    font-family: var(--font-display);
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.12em;
    writing-mode: horizontal-tb;
  }

  .page-home .today-layout {
    grid-template-columns: 220px 1fr;
    gap: 44px;
  }

  .page-home .today-columns {
    order: 2;
  }

  .page-home .today-art {
    order: 1;
  }

  .page-home .today-art .media-frame {
    clip-path: polygon(0 0, 96% 0, 100% 100%, 4% 100%);
  }

  .page-home .panel-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 28px;
  }

  .page-home .archive-banner {
    min-height: 260px;
  }
}
