.page-home {
  --home-gold-line: rgba(199, 162, 82, 0.4);
  --home-emerald-soft: rgba(0, 107, 94, 0.07);
  --home-glass-bg: rgba(255, 255, 255, 0.72);
  --home-hero-grid: 1fr;
  background: var(--paper-white);
  color: var(--ink-black);
  font-family: var(--font-body);
  line-height: var(--line-height-body);
  overflow-x: hidden;
}

.page-home img {
  max-width: 100%;
  height: auto;
}

.page-home .home-hero {
  position: relative;
  background:
    radial-gradient(ellipse at 12% 18%, rgba(0, 107, 94, 0.1), transparent 52%),
    radial-gradient(ellipse at 88% 82%, rgba(199, 162, 82, 0.12), transparent 46%),
    linear-gradient(135deg, #f8f5ec 0%, #efecdf 58%, #e7e3d3 100%);
}

.page-home .home-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: var(--home-hero-grid);
  gap: 36px;
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 40px 24px;
}

.page-home .home-hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.page-home .home-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.1;
  filter: saturate(0.7);
}

.page-home .home-hero__tile {
  position: absolute;
  right: 10%;
  bottom: 8%;
  width: 112px;
  height: 152px;
  border-radius: 14px;
  border: 2px solid rgba(199, 162, 82, 0.5);
  background: rgba(247, 244, 236, 0.5);
  box-shadow: 0 16px 40px rgba(26, 26, 26, 0.1);
  transform: rotate(9deg);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.page-home .home-hero__tile span {
  font-family: var(--font-heading);
  font-size: 3rem;
  color: var(--emerald);
  text-shadow: 2px 2px 0 rgba(199, 162, 82, 0.35);
}

.page-home .home-hero__copy {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding-right: 0;
}

.page-home .home-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--emerald);
  border-left: 3px solid var(--gold);
  padding-left: 12px;
  margin-bottom: 20px;
}

.page-home .home-hero__title {
  margin: 0 0 16px;
  font-family: var(--font-heading);
  font-weight: var(--font-weight-heading);
  font-size: 2.2rem;
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: var(--ink-black);
}

.page-home .home-hero__region-mark {
  display: block;
  margin-top: 2px;
  font-size: 0.85em;
  color: var(--dark-gold);
  letter-spacing: 0.08em;
}

.page-home .home-hero__lead {
  font-size: 1rem;
  color: var(--ink-gray);
  margin: 0 0 24px;
  max-width: 44em;
}

.page-home .home-hero__trust {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--cinnabar);
  background: rgba(166, 58, 43, 0.06);
  border: 1px solid rgba(166, 58, 43, 0.16);
  border-radius: var(--radius);
  padding: 10px 16px;
  margin-bottom: 26px;
}

.page-home .home-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.page-home .home-hero__profile-link {
  font-size: 0.875rem;
  color: var(--ink-gray);
}

.page-home .home-hero__profile-link a {
  color: var(--emerald);
  font-weight: var(--font-weight-strong);
  border-bottom: 1px solid transparent;
  text-decoration: none;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.page-home .home-hero__profile-link a:hover,
.page-home .home-hero__profile-link a:focus-visible {
  border-bottom-color: var(--gold);
  color: var(--dark-gold);
}

.page-home .home-index {
  position: relative;
  z-index: 1;
  background: var(--home-glass-bg);
  backdrop-filter: blur(12px);
  border: 1px solid var(--home-gold-line);
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: var(--shadow-md);
}

.page-home .home-index__title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: var(--font-weight-strong);
  color: var(--dark-gold);
  letter-spacing: 0.14em;
  margin: 0 0 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(199, 162, 82, 0.3);
}

.page-home .home-index__item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 15px 8px;
  border-bottom: 1px solid rgba(26, 26, 26, 0.06);
  text-decoration: none;
  color: var(--ink-black);
  transition: background var(--transition-fast), transform var(--transition-fast);
}

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

.page-home .home-index__item:hover,
.page-home .home-index__item:focus-visible {
  background: rgba(0, 107, 94, 0.05);
  transform: translateX(4px);
}

.page-home .home-index__num {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: var(--font-weight-strong);
  color: var(--cinnabar);
  line-height: 1.5;
  min-width: 2em;
}

.page-home .home-index__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.page-home .home-index__name {
  font-size: 1rem;
  font-weight: var(--font-weight-strong);
  color: var(--ink-black);
}

.page-home .home-index__meta {
  font-size: 0.8125rem;
  color: var(--ink-gray);
}

.page-home .home-stats {
  background: var(--ink-black);
  border-top: 1px solid rgba(199, 162, 82, 0.35);
  border-bottom: 1px solid rgba(199, 162, 82, 0.35);
}

.page-home .home-stats__grid {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 36px 24px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px 16px;
}

.page-home .home-stat {
  text-align: center;
  padding: 8px 4px;
  border-left: 1px solid rgba(199, 162, 82, 0.18);
}

.page-home .home-stat:first-child {
  border-left: none;
}

.page-home .home-stat__num {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: var(--font-weight-strong);
  color: var(--paper-white);
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.page-home .home-stat__unit {
  font-size: 0.75em;
  color: var(--gold);
}

.page-home .home-stat__label {
  display: block;
  margin-top: 8px;
  font-size: 0.8125rem;
  color: var(--celadon);
}

.page-home .home-section__kicker {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cinnabar);
  margin: 0 0 12px;
}

.page-home h2.section-heading {
  margin: 0 0 16px;
  font-size: 1.75rem;
}

.page-home .home-settings,
.page-home .home-catalog,
.page-home .home-bigscreen,
.page-home .home-activity,
.page-home .home-support {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 56px 24px;
}

.page-home .home-settings__head {
  max-width: 720px;
  margin-bottom: 34px;
}

.page-home .home-settings__lead {
  color: var(--ink-gray);
  font-size: 1rem;
  max-width: 46em;
}

.page-home .home-settings__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: center;
}

.page-home .home-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.page-home .home-step {
  position: relative;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--light-ink);
  border-radius: var(--radius);
  padding: 20px 18px;
  border-left: 4px solid var(--emerald);
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.page-home .home-step:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.page-home .home-step__num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: var(--ink-black);
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: var(--font-weight-strong);
}

.page-home .home-step__content {
  flex: 1;
}

.page-home .home-step__content h3 {
  margin: 0 0 6px;
  font-family: var(--font-heading);
  font-size: 1.125rem;
  color: var(--ink-black);
}

.page-home .home-step__content p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink-gray);
}

.page-home .home-step__link {
  align-self: flex-end;
  white-space: nowrap;
  font-size: 0.875rem;
  color: var(--emerald);
  font-weight: var(--font-weight-strong);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-fast);
}

.page-home .home-step__link:hover,
.page-home .home-step__link:focus-visible {
  border-bottom-color: var(--gold);
}

.page-home .home-settings__media {
  margin: 0;
  padding: 14px;
  background: linear-gradient(135deg, rgba(0, 107, 94, 0.06), rgba(199, 162, 82, 0.12));
  border-radius: 16px;
}

.page-home .home-settings__media img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  aspect-ratio: 3 / 2;
}

.page-home .home-settings__media figcaption,
.page-home .home-catalog__media figcaption,
.page-home .home-bigscreen__media figcaption {
  margin-top: 10px;
  font-size: 0.8125rem;
  color: var(--ink-gray);
  text-align: center;
  font-family: var(--font-mono);
}

.page-home .home-catalog {
  border-top: 1px solid rgba(199, 162, 82, 0.16);
  border-bottom: 1px solid rgba(199, 162, 82, 0.16);
  background: linear-gradient(180deg, var(--paper-white) 0%, #f3efe3 100%);
}

.page-home .home-catalog__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 36px;
}

.page-home .home-catalog__intro p {
  color: var(--ink-gray);
  max-width: 46em;
}

.page-home .home-catalog__actions {
  margin-top: 20px;
}

.page-home .home-catalog__media {
  margin: 0;
  padding: 12px;
  background: var(--ink-black);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}

.page-home .home-catalog__media img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.page-home .home-catalog__cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.page-home .home-cat-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 20px;
  background: var(--paper-white);
  border: 1px solid rgba(26, 26, 26, 0.06);
  border-top: 4px solid var(--emerald);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink-black);
  transition: box-shadow var(--transition-base), border-color var(--transition-base), transform var(--transition-base);
}

.page-home .home-cat-card--classic {
  border-top-color: var(--gold);
}

.page-home .home-cat-card--new {
  border-top-color: var(--cinnabar);
}

.page-home .home-cat-card:hover,
.page-home .home-cat-card:focus-visible {
  box-shadow: var(--shadow-md);
  border-color: rgba(199, 162, 82, 0.5);
  transform: translateY(-3px);
}

.page-home .home-cat-card__tag {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  color: var(--dark-gold);
}

.page-home .home-cat-card h3 {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.375rem;
  color: var(--ink-black);
}

.page-home .home-cat-card p {
  margin: 0;
  font-size: 0.875rem;
  color: var(--ink-gray);
  flex: 1;
}

.page-home .home-cat-card__count {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--emerald);
  font-weight: var(--font-weight-strong);
}

.page-home .home-bigscreen {
  border-top: 1px solid rgba(199, 162, 82, 0.16);
}

.page-home .home-bigscreen__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: center;
}

.page-home .home-bigscreen__media {
  margin: 0;
  padding: 12px;
  background: var(--ink-black);
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}

.page-home .home-bigscreen__media img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}

.page-home .home-bigscreen__content p {
  color: var(--ink-gray);
  max-width: 46em;
}

.page-home .home-bigscreen__list {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.page-home .home-bigscreen__list li {
  position: relative;
  padding-left: 28px;
  font-size: 0.9375rem;
  color: var(--ink-black);
}

.page-home .home-bigscreen__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #e4c98c, var(--gold));
  border: 1px solid var(--dark-gold);
}

.page-home .home-activity {
  background:
    linear-gradient(120deg, rgba(0, 107, 94, 0.03), rgba(199, 162, 82, 0.08)),
    var(--paper-white);
  border-top: 1px solid rgba(199, 162, 82, 0.16);
  border-bottom: 1px solid rgba(199, 162, 82, 0.16);
}

.page-home .home-activity__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  align-items: center;
}

.page-home .home-activity__copy p {
  color: var(--ink-gray);
  max-width: 46em;
}

.page-home .home-activity__copy .btn {
  margin-top: 18px;
}

.page-home .home-activity__demo {
  background: var(--home-glass-bg);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(199, 162, 82, 0.4);
  border-radius: 14px;
  padding: 24px 22px;
  box-shadow: var(--shadow-sm);
}

.page-home .home-activity__demo-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: var(--font-weight-strong);
  color: var(--dark-gold);
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(199, 162, 82, 0.25);
}

.page-home .home-activity__demo-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  counter-reset: activity;
}

.page-home .home-activity__demo-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--ink-gray);
  background: rgba(26, 26, 26, 0.03);
  border-radius: var(--radius);
  padding: 12px 14px;
  border: 1px solid transparent;
}

.page-home .home-activity__demo-list li.home-activity__demo-active {
  background: rgba(0, 107, 94, 0.08);
  border-color: var(--emerald);
  color: var(--ink-black);
  font-weight: var(--font-weight-strong);
}

.page-home .home-activity__demo-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--light-ink);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--ink-gray);
  flex: 0 0 auto;
}

.page-home .home-activity__demo-active .home-activity__demo-index {
  background: var(--emerald);
  color: var(--paper-white);
}

.page-home .home-activity__demo-note {
  margin: 16px 0 0;
  font-size: 0.8125rem;
  color: var(--ink-gray);
  font-family: var(--font-mono);
}

.page-home .home-support__panel {
  background: linear-gradient(135deg, #0f3f38 0%, #052e28 100%);
  border-radius: 20px;
  padding: 32px 28px;
  color: var(--paper-white);
  position: relative;
  overflow: hidden;
}

.page-home .home-support__panel::after {
  content: "發";
  position: absolute;
  right: -18px;
  top: -16px;
  font-family: var(--font-heading);
  font-size: 8rem;
  opacity: 0.08;
  transform: rotate(18deg);
  pointer-events: none;
}

.page-home .home-support__panel .home-section__kicker {
  color: #d8bc7c;
}

.page-home .home-support__panel h2.section-heading {
  color: var(--paper-white);
}

.page-home .home-support__lead {
  color: rgba(247, 244, 236, 0.85);
  max-width: 38em;
}

.page-home .home-support__link {
  display: inline-block;
  margin-top: 20px;
  color: #d8bc7c;
  font-weight: var(--font-weight-strong);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.page-home .home-support__link:hover,
.page-home .home-support__link:focus-visible {
  border-bottom-color: #d8bc7c;
  color: var(--paper-white);
}

.page-home .home-support__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
}

.page-home .home-support__stat {
  text-align: center;
  padding: 20px 8px;
  background: var(--light-ink);
  border-radius: var(--radius);
  border-bottom: 3px solid var(--gold);
}

.page-home .home-support__stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: var(--font-weight-strong);
  color: var(--emerald);
  line-height: 1.3;
}

.page-home .home-support__stat-unit {
  font-size: 0.7em;
  color: var(--dark-gold);
}

.page-home .home-support__stat-label {
  display: block;
  margin-top: 8px;
  font-size: 0.8125rem;
  color: var(--ink-gray);
}

@media (min-width: 768px) {
  .page-home .home-hero__inner {
    grid-template-columns: 1.5fr 1fr;
    gap: 48px;
    align-items: center;
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .page-home .home-hero__title {
    font-size: 3rem;
  }

  .page-home .home-stats__grid {
    grid-template-columns: repeat(4, 1fr);
    padding: 44px 24px;
  }

  .page-home .home-stat__num {
    font-size: 2.125rem;
  }

  .page-home .home-settings__body,
  .page-home .home-bigscreen__body,
  .page-home .home-activity__body {
    grid-template-columns: 1.05fr 0.95fr;
  }

  .page-home .home-settings__media,
  .page-home .home-bigscreen__media {
    order: 2;
  }

  .page-home .home-settings__body .home-steps,
  .page-home .home-bigscreen__body .home-bigscreen__content,
  .page-home .home-activity__body .home-activity__demo {
    order: 1;
  }

  .page-home .home-catalog__top {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }

  .page-home .home-catalog__cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .page-home .home-support__panel {
    padding: 40px 36px;
  }

  .page-home .home-support__stats {
    margin-top: 0;
  }
}

@media (min-width: 1024px) {
  .page-home .home-hero__inner {
    gap: 72px;
    padding-top: 88px;
    padding-bottom: 88px;
  }

  .page-home .home-hero__title {
    font-size: 3.5rem;
  }

  .page-home .home-hero__lead {
    font-size: 1.0625rem;
  }

  .page-home .home-index {
    padding: 30px 26px;
  }

  .page-home .home-settings,
  .page-home .home-catalog,
  .page-home .home-bigscreen,
  .page-home .home-activity,
  .page-home .home-support {
    padding-top: 88px;
    padding-bottom: 88px;
  }

  .page-home h2.section-heading {
    font-size: 2rem;
  }

  .page-home .home-support__panel {
    padding: 48px 44px;
  }
}
