/* ==========================================================================
   银河家史 · 家史俱乐部「选择门」
   首屏只呈现两个身份入口：给爸妈写 / 给自己写
   v20261019d
   ========================================================================== */

.gate {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 14px) 28px 62px;
  overflow: hidden;
  background: #360907;
  isolation: isolate;
}

/* 底：金红光晕 + 回纹暗纹 */
.gate::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 520px at 18% 8%, rgba(201, 162, 39, .20), transparent 62%),
    radial-gradient(760px 480px at 84% 88%, rgba(180, 44, 34, .30), transparent 60%),
    radial-gradient(1200px 700px at 50% 50%, rgba(94, 18, 14, .55), transparent 70%),
    linear-gradient(170deg, #4A0D0B 0%, #360907 46%, #2A0706 100%);
}

/* 回纹暗纹（SVG 平铺） */
.gate::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='none' stroke='%23E7C46A' stroke-width='1.1'%3E%3Cpath d='M0 10h60M0 50h60'/%3E%3Cpath d='M15 10v20h20v-10h-10'/%3E%3Cpath d='M45 50V30H25v10h10'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 60px 60px;
}

/* 上下金色收线 */
.gate-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  z-index: 1;
  background: linear-gradient(90deg, transparent, rgba(201, 162, 39, .55) 22%, rgba(231, 196, 106, .8) 50%, rgba(201, 162, 39, .55) 78%, transparent);
}
.gate-line.top { top: calc(var(--header-h) + 6px); }
.gate-line.bot { bottom: 0; }

.gate-inner { position: relative; z-index: 2; width: 100%; max-width: 1080px; margin: 0 auto; text-align: center; }

/* 面包屑（深色底适配） */
.gate .crumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 12.5px;
  letter-spacing: .08em;
  color: rgba(246, 232, 220, .5);
}
.gate .crumb a { color: rgba(231, 196, 106, .85); }
.gate .crumb a:hover { color: #E7C46A; }
.gate .crumb i { font-style: normal; opacity: .5; }
.gate .crumb span { color: rgba(246, 232, 220, .72); }

/* ---------- 标题 ---------- */
.gate-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  letter-spacing: .34em;
  color: rgba(231, 196, 106, .82);
  text-transform: uppercase;
}
.gate-eyebrow::before,
.gate-eyebrow::after {
  content: "";
  width: 26px;
  height: 1px;
  background: rgba(231, 196, 106, .55);
}

.gate h1 {
  margin: 12px 0 0;
  font-family: var(--font-serif);
  font-size: clamp(30px, 3.8vw, 47px);
  line-height: 1.32;
  letter-spacing: .06em;
  color: #FCEFDF;
  text-shadow: 0 4px 26px rgba(0, 0, 0, .45);
}
.gate h1 em {
  font-style: normal;
  color: #E7C46A;
}

.gate-lead {
  margin: 12px auto 0;
  max-width: 520px;
  font-size: 15px;
  line-height: 1.95;
  color: rgba(246, 232, 220, .68);
}

/* ---------- 两张身份卡 ---------- */
.gate-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
  position: relative;
}
.gate-cards::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 12%;
  bottom: 12%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(231, 196, 106, .38), transparent);
}

.gate-card {
  position: relative;
  display: block;
  padding: 30px 30px 26px;
  border-radius: 20px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  background: linear-gradient(165deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .022));
  border: 1px solid rgba(231, 196, 106, .28);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .08);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: transform .45s var(--ease), border-color .45s var(--ease),
    box-shadow .45s var(--ease), background .45s var(--ease);
  animation: gateUp .8s var(--ease) both;
}
.gate-card:nth-child(2) { animation-delay: .12s; }
@keyframes gateUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

/* 卡内柔光 */
.gate-card::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  right: -120px;
  top: -140px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(231, 196, 106, .22), transparent 68%);
  opacity: .55;
  transition: opacity .45s var(--ease), transform .6s var(--ease);
}
.gate-card:hover {
  transform: translateY(-10px);
  border-color: rgba(231, 196, 106, .72);
  background: linear-gradient(165deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04));
  box-shadow: 0 34px 70px rgba(0, 0, 0, .52), 0 0 0 1px rgba(231, 196, 106, .22), inset 0 1px 0 rgba(255, 255, 255, .14);
}
.gate-card:hover::before { opacity: 1; transform: scale(1.12); }

/* 印章 */
.gate-seal {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 16px;
  border-radius: 13px;
  font-family: var(--font-serif);
  font-size: 27px;
  letter-spacing: 0;
  color: #FFEFD6;
  background: linear-gradient(160deg, #A03429, #7C1F1A);
  border: 1px solid rgba(231, 196, 106, .55);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .2);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.gate-card:hover .gate-seal {
  transform: translateY(-3px) rotate(-3deg);
  box-shadow: 0 14px 34px rgba(160, 52, 41, .5), 0 0 22px rgba(231, 196, 106, .35), inset 0 1px 0 rgba(255, 255, 255, .25);
}

.gate-kicker {
  position: relative;
  display: inline-block;
  font-size: 12.5px;
  letter-spacing: .26em;
  color: rgba(231, 196, 106, .9);
  padding: 5px 14px;
  border: 1px solid rgba(231, 196, 106, .3);
  border-radius: 100px;
  background: rgba(231, 196, 106, .08);
}

.gate-card h2 {
  position: relative;
  margin: 15px 0 10px;
  font-family: var(--font-serif);
  font-size: clamp(21px, 2.1vw, 27px);
  letter-spacing: .05em;
  line-height: 1.45;
  color: #FFF6E8;
}
.gate-card p {
  position: relative;
  font-size: 14.2px;
  line-height: 1.95;
  color: rgba(246, 232, 220, .66);
  min-height: 58px;
}

.gate-go {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding: 11px 24px;
  border-radius: 100px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #FFEFD6;
  background: rgba(160, 52, 41, .5);
  border: 1px solid rgba(231, 196, 106, .42);
  transition: .4s var(--ease);
}
.gate-go i { font-style: normal; transition: transform .4s var(--ease); }
.gate-card:hover .gate-go {
  background: linear-gradient(120deg, #A03429, #7C1F1A);
  border-color: rgba(231, 196, 106, .85);
  box-shadow: 0 12px 28px rgba(160, 52, 41, .35);
}
.gate-card:hover .gate-go i { transform: translateX(6px); }

/* ---------- 底部向下引导 ---------- */
.gate-more {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 12.8px;
  letter-spacing: .18em;
  color: rgba(246, 232, 220, .48);
  animation: gateBreath 3.2s ease-in-out infinite;
}
.gate-more b { color: rgba(231, 196, 106, .78); font-weight: 600; }
.gate-more i {
  width: 1px;
  height: 34px;
  background: linear-gradient(180deg, rgba(231, 196, 106, .7), transparent);
  animation: gateDrop 2.4s ease-in-out infinite;
}
@keyframes gateBreath { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
@keyframes gateDrop { 0% { transform: scaleY(.3); transform-origin: top; opacity: .3; } 50% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(.3); opacity: .3; } }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .gate { padding: calc(var(--header-h) + 12px) 20px 80px; min-height: auto; }
  .gate-eyebrow { font-size: 10.5px; letter-spacing: .14em; gap: 8px; white-space: nowrap; }
  .gate-eyebrow::before, .gate-eyebrow::after { width: 14px; }
  .gate-lead br { display: none; }
  .gate-cards { grid-template-columns: 1fr; gap: 18px; margin-top: 28px; }
  .gate-cards::before { display: none; }
  .gate-card { padding: 28px 24px 26px; }
  .gate-card p { min-height: 0; }
  .gate-seal { width: 52px; height: 52px; font-size: 25px; margin-bottom: 14px; }
  .gate-more { bottom: 16px; }
  .gate-more i { display: none; }
}
@media (max-width: 480px) {
  .gate h1 { font-size: 30px; }
  .gate-lead { font-size: 14.4px; }
  .gate-card h2 { font-size: 22px; }
}
