.page-home {
  --home-line: rgba(200, 162, 83, 0.42);
  --home-line-soft: rgba(38, 42, 50, 0.9);
  --home-tick: rgba(200, 162, 83, 0.55);
  display: block;
  background: var(--ink);
  color: var(--paper);
}

.page-home .home-band {
  padding: clamp(40px, 6vw, 76px) 0;
}

.page-home .home-band--hero {
  padding-top: clamp(18px, 3vw, 34px);
}

.page-home .home-title {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(22px, 3.6vw, 34px);
  line-height: 1.24;
  letter-spacing: -0.005em;
  margin: 8px 0 14px;
  color: var(--paper);
}

.page-home .home-lead {
  margin: 0 0 14px;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.75;
  letter-spacing: 0.02em;
  color: var(--paper);
  max-width: 62ch;
}

.page-home .home-text {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  color: var(--cool);
  max-width: 66ch;
}

.page-home .home-tlink {
  color: var(--cyan);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition: color var(--fast) var(--ease);
}

.page-home .home-tlink:hover {
  color: var(--gold-light);
}

.page-home a:focus-visible,
.page-home button:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
  border-radius: 2px;
}

/* 框景首屏 */
.page-home .home-frame {
  position: relative;
  border: 1px solid var(--home-line);
  padding: clamp(20px, 3vw, 40px) clamp(16px, 2.6vw, 36px);
  background:
    radial-gradient(90% 70% at 88% 4%, rgba(14, 59, 58, 0.5), transparent 62%),
    linear-gradient(180deg, #101216 0%, #0B0B0D 74%);
}

.page-home .home-frame::before,
.page-home .home-frame::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  height: 5px;
  background-image: repeating-linear-gradient(90deg, var(--home-tick) 0 1px, transparent 1px 18px);
  opacity: 0.7;
  pointer-events: none;
}

.page-home .home-frame::before {
  top: 6px;
}

.page-home .home-frame::after {
  bottom: 6px;
}

.page-home .home-frame__corner {
  position: absolute;
  width: 15px;
  height: 15px;
  border: 1px solid var(--gold);
  pointer-events: none;
}

.page-home .home-frame__corner--tl {
  top: -1px;
  left: -1px;
  border-right: 0;
  border-bottom: 0;
}

.page-home .home-frame__corner--tr {
  top: -1px;
  right: -1px;
  border-left: 0;
  border-bottom: 0;
}

.page-home .home-frame__corner--bl {
  bottom: -1px;
  left: -1px;
  border-right: 0;
  border-top: 0;
}

.page-home .home-frame__corner--br {
  bottom: -1px;
  right: -1px;
  border-left: 0;
  border-top: 0;
}

/* 客服服务说明条 */
.page-home .home-servebar {
  display: grid;
  gap: 6px;
  margin-bottom: clamp(24px, 4vw, 44px);
  padding: 12px 14px 12px 16px;
  border-left: 3px solid var(--gold);
  background: linear-gradient(90deg, rgba(14, 59, 58, 0.85), rgba(36, 27, 58, 0.5) 72%, transparent);
}

.page-home .home-servebar__text {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--paper);
}

.page-home .home-servebar__text strong {
  color: var(--gold-light);
  font-weight: 700;
}

.page-home .home-servebar .status-dot {
  margin-right: 6px;
}

.page-home .home-servebar__meta {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--cool);
}

/* 首屏主体 */
.page-home .home-hero {
  display: grid;
  gap: clamp(20px, 3vw, 34px);
  align-items: end;
}

.page-home .home-hero__title {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(30px, 6.4vw, 56px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 10px 0 16px;
  color: var(--paper);
}

.page-home .home-hero__lead {
  margin: 0;
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 1.78;
  letter-spacing: 0.02em;
  color: var(--paper);
  max-width: 58ch;
}

.page-home .home-hero__motto {
  margin: 20px 0 0;
  padding-left: 14px;
  border-left: 2px solid var(--gold);
  font-family: var(--f-display);
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--gold-light);
}

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

.page-home .home-hero__actions .cta {
  min-width: 148px;
  text-align: center;
}

.page-home .home-hero__photo {
  margin: 0;
}

.page-home .home-hero__photo .figure__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

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

/* 对开门入口 */
.page-home .home-doors {
  display: grid;
  gap: 14px;
  margin-top: clamp(26px, 4vw, 48px);
  padding-top: clamp(22px, 3vw, 36px);
  border-top: 1px solid var(--line);
}

.page-home .home-door {
  position: relative;
  padding: clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(30, 33, 38, 0.92), rgba(11, 11, 13, 0.96));
  transition: transform var(--fast) var(--ease), border-color var(--fast) var(--ease);
}

.page-home .home-door:hover,
.page-home .home-door:focus-within {
  border-color: var(--gold);
}

.page-home .home-door--login:hover,
.page-home .home-door--login:focus-within {
  transform: translateX(2px);
}

.page-home .home-door--signup:hover,
.page-home .home-door--signup:focus-within {
  transform: translateX(-2px);
}

.page-home .home-door__code {
  margin: 0 0 8px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--gold);
}

.page-home .home-door__title {
  margin: 0 0 10px;
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(19px, 2.4vw, 24px);
  line-height: 1.3;
  color: var(--paper);
}

.page-home .home-door__lead {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.78;
  letter-spacing: 0.02em;
  color: var(--paper);
}

.page-home .home-door__steps {
  counter-reset: step;
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.page-home .home-door__steps li {
  counter-increment: step;
  position: relative;
  padding-left: 34px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--cool);
}

.page-home .home-door__steps li::before {
  content: "0" counter(step);
  position: absolute;
  left: 0;
  top: 0.15em;
  padding: 1px 5px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--cyan);
  border: 1px solid rgba(46, 230, 214, 0.4);
}

.page-home .home-door__note {
  margin: 0 0 16px;
  padding-left: 12px;
  border-left: 2px solid rgba(200, 162, 83, 0.35);
  font-size: 13px;
  line-height: 1.7;
  color: var(--cool);
}

.page-home .home-doorfoto {
  position: relative;
  overflow: hidden;
  min-height: 180px;
  border: 1px solid var(--line);
  background: var(--ink-2);
}

.page-home .home-doorfoto img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 会馆概况 */
.page-home .home-hall {
  display: grid;
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
}

.page-home .home-hall__intro {
  min-width: 0;
}

.page-home .home-stats {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  min-width: 0;
}

.page-home .home-stats .status-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  background: var(--ink-2);
}

.page-home .home-stats .status-item__key {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--cool);
}

.page-home .home-stats .status-item__val {
  font-family: var(--f-display);
  font-weight: 900;
  font-size: clamp(20px, 2.6vw, 26px);
  line-height: 1.2;
  color: var(--gold-light);
}

/* 珠宝色分区 */
.page-home .home-block {
  position: relative;
  padding: clamp(20px, 3.4vw, 44px);
  border: 1px solid var(--line);
}

.page-home .home-block--teal {
  border-color: rgba(46, 230, 214, 0.22);
  background: linear-gradient(165deg, rgba(14, 59, 58, 0.95), rgba(11, 11, 13, 0.98) 74%);
}

.page-home .home-block--violet {
  border-color: rgba(200, 162, 83, 0.24);
  background: linear-gradient(165deg, rgba(36, 27, 58, 0.95), rgba(11, 11, 13, 0.98) 74%);
}

.page-home .home-block__head {
  max-width: 70ch;
  margin-bottom: clamp(18px, 2.6vw, 30px);
}

.page-home .home-block__grid {
  display: grid;
  gap: clamp(20px, 3vw, 34px);
}

.page-home .home-block__col {
  min-width: 0;
}

.page-home .home-block__col .figure {
  margin: 0 0 18px;
}

/* 表格 */
.page-home .home-table {
  width: 100%;
  font-size: 14.5px;
  border-collapse: collapse;
}

.page-home .home-table caption {
  caption-side: top;
  padding-bottom: 10px;
  text-align: left;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--gold);
}

.page-home .home-table th,
.page-home .home-table td {
  padding: 10px 12px;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--home-line-soft);
}

.page-home .home-table th {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--cool);
}

.page-home .home-table td:first-child {
  font-family: var(--f-mono);
  color: var(--gold);
}

.page-home .home-table td:last-child {
  text-align: right;
  color: var(--paper);
}

.page-home .home-table tfoot td {
  padding-top: 14px;
  border-bottom: 0;
  color: var(--gold-light);
  font-weight: 700;
}

.page-home .home-table--plain td:first-child {
  font-family: var(--f-body);
  font-weight: 600;
  color: var(--paper);
  white-space: nowrap;
}

.page-home .home-table--plain td:last-child {
  text-align: left;
  white-space: normal;
  color: var(--cool);
}

.page-home .home-table--plain td {
  line-height: 1.7;
}

/* 要点列表 */
.page-home .home-points {
  display: grid;
  gap: 12px;
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.page-home .home-points li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--paper);
}

.page-home .home-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.75em;
  width: 8px;
  height: 1px;
  background: var(--cyan);
}

.page-home .home-points strong {
  color: var(--gold-light);
  font-weight: 700;
}

/* 三端适配 */
.page-home .home-devices {
  display: grid;
  gap: 14px;
  margin-top: clamp(20px, 2.6vw, 28px);
}

.page-home .home-device {
  padding-top: 12px;
  border-top: 2px solid rgba(200, 162, 83, 0.5);
}

.page-home .home-device__name {
  display: block;
  margin-bottom: 6px;
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--cyan);
}

.page-home .home-device__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: var(--paper);
}

/* 更新索引 */
.page-home .home-log__head {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 18px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}

.page-home .home-log {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-home .home-log__item {
  display: grid;
  gap: 6px 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--home-line-soft);
  transition: background var(--fast) var(--ease), padding-left var(--fast) var(--ease);
}

.page-home .home-log__item:hover {
  padding-left: 6px;
  background: rgba(200, 162, 83, 0.05);
}

.page-home .home-log__code {
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--gold);
}

.page-home .home-log__item .tag {
  justify-self: start;
}

.page-home .home-log__title {
  font-size: 15px;
  line-height: 1.7;
  color: var(--paper);
}

.page-home .home-log__time {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--cool);
}

/* 收尾 */
.page-home .home-closing {
  display: grid;
  gap: clamp(20px, 3vw, 36px);
  align-items: center;
}

.page-home .home-closing__photo {
  margin: 0;
}

.page-home .home-closing__photo .figure__img {
  width: 100%;
  aspect-ratio: 8 / 5;
  object-fit: cover;
  display: block;
}

.page-home .home-closing__links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  margin: 18px 0 0;
}

/* 平板与桌面 */
@media (min-width: 560px) {
  .page-home .home-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (min-width: 760px) {
  .page-home .home-log__item {
    grid-template-columns: 44px 104px minmax(0, 1fr) 86px;
    align-items: baseline;
  }

  .page-home .home-log__time {
    text-align: right;
  }
}

@media (min-width: 900px) {
  .page-home .home-hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.85fr);
  }

  .page-home .home-doors {
    grid-template-columns: minmax(0, 1fr) 148px minmax(0, 1fr);
    gap: 14px;
    align-items: stretch;
  }

  .page-home .home-doorfoto {
    min-height: 100%;
  }

  .page-home .home-closing {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  }
}

@media (min-width: 1000px) {
  .page-home .home-hall {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }

  .page-home .home-block__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    align-items: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home *,
  .page-home *::before,
  .page-home *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .page-home .home-door:hover,
  .page-home .home-door:focus-within {
    transform: none;
  }
}
