:root {
  --bg: #000000;
  --gold: #c5a059;
  --gold-soft: rgba(197, 160, 89, 0.35);
  --gold-glow: rgba(197, 160, 89, 0.22);
  --text-muted: rgba(197, 160, 89, 0.75);
  --border: rgba(197, 160, 89, 0.45);
  --radius-card: 14px;
  --font-sans: system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --fs-sm: 0.8125rem;
  --fs-base: 0.875rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  font-weight: 400;
  color: var(--gold);
  background: var(--bg);
  line-height: 1.55;
}

.page {
  min-height: 100vh;
  max-width: 28rem;
  margin: 0 auto;
  padding-top: calc(clamp(3.75rem, 12vh, 7rem) + env(safe-area-inset-top, 0px));
  padding-inline: clamp(1.25rem, 5vw, 2rem);
  padding-bottom: clamp(2.5rem, 8vw, 4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: clamp(2.5rem, 8vw, 3.75rem);
}

.hero__title {
  margin: 0;
  line-height: 0;
}

.hero__logo {
  display: block;
  width: min(12.5rem, 72vw);
  height: auto;
}

.hero__title-text {
  display: block;
  margin: 0;
  font-size: clamp(1.25rem, 5vw, 1.5rem);
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.06em;
  line-height: 1.3;
}

.hero__tagline {
  margin: 0;
  margin-top: clamp(0.95rem, 3.5vw, 1.35rem);
  font-size: var(--fs-sm);
  font-weight: 300;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  line-height: 1.5;
}

.hero__subtitle {
  margin: 0;
  margin-top: 0.35rem;
  font-size: var(--fs-sm);
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  line-height: 1.5;
}

/* 旧版首页偶发仍带此模块时即隐藏（部署/缓存未刷新时生效） */
.portal-code-hint {
  display: none !important;
}

.actions {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: clamp(2.75rem, 9vw, 4rem);
  padding: 0 0.15rem;
}

.action-card {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  padding: 0.95rem 0.35rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  background: transparent;
  color: var(--gold);
  text-decoration: none;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
  font-family: inherit;
}

.action-card:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.action-card:active {
  transform: scale(0.98);
}

.action-card:hover {
  border-color: var(--gold);
}

.action-card__glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px var(--gold-soft), 0 0 24px var(--gold-glow);
  opacity: 0.85;
}

.action-card__icon {
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  aspect-ratio: 1;
  flex-shrink: 0;
  z-index: 1;
}

.action-card__icon svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.action-card__icon path {
  stroke: currentColor;
  stroke-width: 1.6;
  fill: none;
}

.action-card__label {
  position: relative;
  z-index: 1;
  line-height: 1.25;
}

.social {
  width: 100%;
}

.social-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 0.85rem;
  text-align: left;
}

.social-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  min-width: 0;
}

.social-item--end {
  justify-self: end;
  text-align: right;
}

.social-item__icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(197, 160, 89, 0.06);
}

.social-item__img {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
  object-fit: contain;
}

.social-item__text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.social-item__title {
  font-size: var(--fs-sm);
  font-weight: 500;
  color: var(--gold);
  letter-spacing: 0.02em;
  line-height: 1.4;
}

.social-item__meta {
  font-size: var(--fs-sm);
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.45;
  word-break: break-all;
}

.portal-footer {
  width: 100%;
  margin-top: auto;
  padding-top: clamp(1.75rem, 5vw, 2.5rem);
}

.portal-footer p {
  margin: 0;
  font-size: var(--fs-sm);
  font-weight: 300;
  color: var(--text-muted);
  text-align: center;
  line-height: 1.5;
}

@media (min-width: 400px) {
  .actions {
    gap: 0.85rem;
  }

  .action-card {
    padding: 1.05rem 0.5rem 0.95rem;
  }
}

@media (max-width: 320px) {
  .social-grid {
    grid-template-columns: 1fr;
  }
}
