/* ============================================================================
   首页 · 三次作业的三个入口
   依赖 style.css 的 tokens / topbar / hero / card / foot
   ========================================================================== */

.home-hero { padding: 96px 0 54px; }
.home-hd { max-width: 880px; }
.home-hero .hero__name { max-width: 16em; }
.home-hero .hero__lede { max-width: 62ch; }

/* --------------------------------------------------------------- 入口卡 */
.gates {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.gate {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 26px 24px 22px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background:
    radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 58%),
    linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  color: inherit;
  text-decoration: none;
  overflow: hidden;
  isolation: isolate;
  transition: transform .5s var(--ease), border-color .35s, box-shadow .45s;
}
.gate::before {
  content: '';
  position: absolute; inset: 0 0 auto; height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 60%, transparent), transparent);
  opacity: 0; transition: opacity .4s;
}
.gate:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 48%, transparent);
  box-shadow: 0 26px 60px -38px rgba(0, 0, 0, .9);
}
.gate:hover::before { opacity: 1; }
.gate:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.gate__top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.gate__no {
  font-family: var(--mono);
  font-size: 40px;
  line-height: .9;
  letter-spacing: -.03em;
  color: transparent;
  -webkit-text-stroke: 1.2px color-mix(in srgb, var(--accent) 70%, transparent);
  transition: color .4s, -webkit-text-stroke-color .4s;
}
.gate:hover .gate__no { color: color-mix(in srgb, var(--accent) 16%, transparent); -webkit-text-stroke-color: var(--accent); }
.gate__tag { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-3); }

.gate__q {
  font-size: 13px;
  color: var(--accent);
  letter-spacing: .02em;
}
.gate__q::before { content: '问 '; font-family: var(--mono); font-size: 10px; opacity: .7; }

.gate__h {
  font-size: 19.5px;
  font-weight: 600;
  letter-spacing: -.01em;
  margin-top: -6px;
}

.gate__keys { display: grid; gap: 8px; }
.gate__keys li {
  position: relative;
  padding-left: 16px;
  font-size: 12.6px;
  line-height: 1.7;
  color: var(--fg-2);
}
.gate__keys li::before {
  content: '';
  position: absolute; left: 2px; top: .72em;
  width: 6px; height: 1px;
  background: color-mix(in srgb, var(--accent) 65%, transparent);
}

.gate__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: auto; padding-top: 18px;
  border-top: 1px dashed var(--line-2);
}
.gate__foot .mono { font-size: 10.5px; letter-spacing: .1em; }
.gate__go {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--fg);
  transition: color .3s;
}
.gate__go svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.gate:hover .gate__go { color: var(--accent); }
.gate:hover .gate__go svg { transform: translateX(4px); }

.gate__idx {
  position: absolute; right: 22px; top: 44%;
  font-size: 92px; line-height: 1;
  color: var(--fg);
  opacity: .022;
  pointer-events: none;
  user-select: none;
}

/* ------------------------------------------------------------------ 关于 */
.about { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
.about__r p { color: var(--fg-2); font-size: 14.5px; line-height: 1.9; }
.about__r p + p { margin-top: 16px; }
.about__r .dim { color: var(--fg-3); font-size: 13px; }

/* ---------------------------------------------------------------- 响应式 */
@media (max-width: 980px) {
  .gates { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 20px; }
  .home-hero { padding: 72px 0 44px; }
}

@media (max-width: 620px) {
  .gate { padding: 26px 22px 22px; border-radius: 12px; }
  .gate__no { font-size: 38px; }
  .gate__h { font-size: 19.5px; }
  .gate__idx { font-size: 68px; right: 14px; }
  .gate__foot { flex-wrap: wrap; gap: 10px; }
  .home-hero { padding: 56px 0 36px; }
}
