/* =========================================================================
   Dunning — minimal hero.
   Local fonts + headline-only layout over looping background video.
   ========================================================================= */

/* ---------- Local fonts (no CDN) ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('vendor/Inter-300.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('vendor/Inter-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('vendor/Inter-500.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('vendor/Inter-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('vendor/Inter-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- Design tokens ---------- */
:root {
  --bg: #ffffff;
  --text: #0a0a0a;
  --accent: #4d7c0f;
  --font: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --pad-x: clamp(20px, 3.52vw, 64px);
  --pad-top: clamp(16px, 2.05vw, 28px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html, body { height: 100%; overflow: hidden; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }

/* ---------- Page shell ---------- */
.page {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: var(--pad-top) var(--pad-x) clamp(28px, 4.9vw, 48px);
}

.bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--bg);
  pointer-events: none;
  overflow: hidden;
}
.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero { position: relative; z-index: 1; }

/* ---------- Site footer ---------- */
.site-footer {
  position: relative;
  z-index: 1; /* sits above the .bg video (z-index: 0) */
  flex-shrink: 0;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75); /* light on the video's dark water bottom */
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}
.site-footer a { color: inherit; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .ghs-badge { vertical-align: -2px; margin-right: 3px; } /* 公安徽章与 12px 文字行对齐 */

/* ---------- Noscript fallback ---------- */
.noscript-tip {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2; /* above the .bg video (z-index: 0) and .layout (z-index: 1) */
  max-width: calc(100% - 32px);
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 12px;
  text-align: center;
}

/* ---------- Hero ---------- */
.hero {
  margin-top: clamp(52px, 10.15vh, 92px);
  max-width: none;
}

/* Headline */
.headline {
  font-family: 'Instrument Serif', 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: calc(clamp(2.9rem, 5.9vw, 5rem) + 3px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.headline__mask {
  display: block;
  overflow: hidden;
}
.headline__rise {
  display: inline-block;
  animation: type-rise 0.85s cubic-bezier(0.16, 1, 0.3, 1) backwards;
  animation-delay: var(--d, 0s);
}
/* Creed: five themed phrases under the headline - the climb.
   Visually inverted (column-reverse; DOM order unchanged for reading):
   Shatter sits at the foot of an ascending staircase, Pursue crowns the
   top; type size crescendos with the climb, and the lime rule under the
   first line becomes the ground line where the climb starts. */
.creed {
  list-style: none;
  margin-top: clamp(28px, 5vh, 48px);
  display: flex;
  flex-direction: column-reverse;
  gap: clamp(10px, 2vh, 20px);
  line-height: 1.15;
  --creed-step: clamp(20px, 3vw, 56px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}
.creed::before {
  content: "";
  width: 96px;
  height: 2px;
  background: var(--accent);
}
.creed li:nth-child(1) { font-size: clamp(1.6rem, 1.8vw, 1.9rem); }
.creed li:nth-child(2) { font-size: clamp(1.75rem, 2.1vw, 2.2rem); margin-left: var(--creed-step); }
.creed li:nth-child(3) { font-size: clamp(1.9rem, 2.45vw, 2.6rem); margin-left: calc(var(--creed-step) * 2); }
.creed li:nth-child(4) { font-size: clamp(2.05rem, 2.8vw, 3rem); margin-left: calc(var(--creed-step) * 3); }
.creed li:nth-child(5) { font-size: clamp(2.2rem, 3.2vw, 3.4rem); margin-left: calc(var(--creed-step) * 4); }
.creed__verb {
  color: var(--accent);
  font-weight: 700;
  margin-right: 0.35em;
}

/* ---------- Keyframes ---------- */
@keyframes type-rise {
  from { transform: translate3d(0, 118%, 0); }
  to   { transform: translate3d(0, 0, 0); }
}
/* ---------- Responsive: ≤820px ---------- */
@media (max-width: 820px) {
  html, body { overflow: auto; }
  .page {
    height: auto;
    min-height: 100vh;
    min-height: 100dvh;
  }
  .hero { margin-top: 48px; }
  /* Mobile keeps only the headline (creed hidden to cut density, 2026-09-11).
     Size tuned so "Dunning-Kruger" holds one line down to 320px and the wrap
     always lands as "Dunning-Kruger / Effect", never after the "Dunning-" hyphen. */
  .headline { font-size: clamp(2.25rem, 11.5vw, 3.75rem); }
  .creed { display: none; }
}

/* ---------- Short landscape: min-width 821px + max-height 700px ---------- */
@media (min-width: 821px) and (max-height: 700px) {
  .hero { margin-top: 36px; }
  .headline { font-size: calc(clamp(2.75rem, 7.2vh, 4.15rem) + 3px); }
  .creed { margin-top: 20px; gap: 8px; --creed-step: clamp(10px, 2vh, 22px); }
  .creed li:nth-child(1) { font-size: 1.1rem; }
  .creed li:nth-child(2) { font-size: 1.25rem; }
  .creed li:nth-child(3) { font-size: 1.4rem; }
  .creed li:nth-child(4) { font-size: 1.55rem; }
  .creed li:nth-child(5) { font-size: 1.75rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* =========================================================================
   Integration: GlassmorphismProfileCard (right column)
   Component styles copied verbatim from GlassmorphismProfileCard.css.
   Dropped: its page-level rules (universal reset, html/body demo shell) -
   this page already provides them. Its <body>-level typography is
   re-applied on .gpc so the card renders identically.
   ========================================================================= */

/* ---------- Host layout: hero left, card right ---------- */
.layout {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: stretch;
  gap: clamp(24px, 3vw, 56px);
}
.layout .hero { flex: 1 1 auto; min-width: 0; }
.card-slot {
  flex: 0 1 var(--gpc-card-width);
  min-width: 0;
  display: flex;
  align-items: center;
}

/* While hero and card share the row, the headline steps down so the
   full-width headline and the compact card never collide; at 1600px+ the
   row is wide enough for full size, below 960px the card stacks. */
@media (min-width: 960px) and (max-width: 1599px) {
  .headline { font-size: calc(clamp(2.9rem, 4.7vw, 5rem) + 3px); }
}

/* ---------- Stacked: card drops below the hero ---------- */
@media (max-width: 959px) {
  html, body { overflow: auto; }
  .page { height: auto; min-height: 100vh; min-height: 100dvh; }
  .layout { flex-direction: column; gap: clamp(32px, 6vh, 64px); }
  .card-slot { justify-content: center; padding-bottom: 32px; }
}

/* ---------- GPC design tokens (verbatim) ---------- */
:root {
  --gpc-lime: #a3e635;
  --gpc-lime-shadow: rgba(163, 230, 53, 0.8);
  --gpc-status: #84cc16;
  --gpc-bg: #0a0a0a;
  --gpc-text: #fafafa;
  --gpc-text-muted: #a3a3a3;
  --gpc-border: rgba(255, 255, 255, 0.1);
  --gpc-card-bg: rgba(255, 255, 255, 0.05);
  --gpc-btn-bg: rgba(255, 255, 255, 0.5);
  --gpc-btn-bg-hover: rgba(255, 255, 255, 0.15);
  --gpc-radius-card: 20px;
  --gpc-radius-btn: 16px;
  --gpc-radius-shadow: 28px;
  --gpc-card-width: 24rem;        /* 原 w-sm = 384px */
  --gpc-avatar-size: 13rem;       /* 原 h-52 w-52 = 208px */
  --gpc-pad-card: 2rem;           /* 原 p-8 = 32px */
}

/* ---------- GPC component styles (verbatim) ---------- */

.gpc {
  position: relative;
  width: 100%;
  max-width: var(--gpc-card-width);
  animation: gpc-fade-in 0.4s ease-out;
  /* integration: typography moved from the standalone page's <body> rule */
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 14px;
  line-height: 1.4;
}

@keyframes gpc-fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.gpc__shadow {
  position: absolute;
  /* 原 inset: top-[90%] -bottom-10 inset-x-3 */
  top: 90%;
  right: 12px;
  bottom: -40px;
  left: 12px;
  border-radius: var(--gpc-radius-shadow);
  background: var(--gpc-lime);
  opacity: 0.9;
  box-shadow: 0 40px 80px -16px var(--gpc-lime-shadow);
  z-index: 0;
  pointer-events: none;
}

.gpc__card {
  position: relative;
  z-index: 10;
  background: var(--gpc-card-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--gpc-border);
  border-bottom: none;
  border-radius: var(--gpc-radius-card);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  padding: var(--gpc-pad-card);
}

.gpc__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  color: var(--gpc-text-muted);
}

.gpc__status {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gpc__status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gpc-status);
  animation: gpc-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes gpc-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.5; }
}

.gpc__clock {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0.8;
}

.gpc__time {
  font-variant-numeric: tabular-nums;
}

.gpc__icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.gpc__icon--lime { color: var(--gpc-lime); }

.gpc__profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.gpc__avatar {
  width: var(--gpc-avatar-size);
  height: var(--gpc-avatar-size);
  border-radius: var(--gpc-radius-card);
  overflow: hidden;
  outline: 2px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.gpc__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gpc__btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  height: 48px;
  padding: 0 16px;
  border-radius: var(--gpc-radius-btn);
  background: var(--gpc-btn-bg);
  border: 1px solid var(--gpc-border);
  color: var(--gpc-text);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.gpc__btn:hover { background: var(--gpc-btn-bg-hover); }

.gpc__btn:focus-visible {
  outline: 2px solid var(--gpc-lime);
  outline-offset: 2px;
}

.gpc__glow-bar {
  position: absolute;
  bottom: -40px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 0;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  color: #000;
  z-index: 0;
  pointer-events: none;
}

/* ---------- GPC responsive (verbatim) ---------- */

@media (min-width: 640px) {
  .gpc__card { padding: 32px; }
}

@media (max-width: 480px) {
  .gpc { --gpc-avatar-size: 10rem; }
}

@media (prefers-reduced-motion: reduce) {
  .gpc,
  .gpc__status-dot,
  .gpc__btn { animation: none; transition: none; }
}

/* --------------------------------------------------------------------------
   GPC compact scale (~0.78x) for side placement on the hero page
   All dimensions shrink on one scale so the card keeps its original
   rhythm; button height holds the 44px touch-target minimum.
   The verbatim rules above stay untouched as the baseline.
   -------------------------------------------------------------------------- */

:root {
  --gpc-card-width: 19rem;         /* 384px -> 304px */
  --gpc-pad-card: 1.5rem;          /* 32px -> 24px */
  --gpc-radius-card: 16px;
  --gpc-radius-btn: 12px;
  --gpc-radius-shadow: 20px;
}

/* element-level so it also beats the <=480px avatar override on .gpc */
.gpc {
  font-size: 13px;                 /* status / clock / role / glow / buttons */
  --gpc-avatar-size: 9.5rem;       /* 208px -> 152px */
}

/* the >=640px media rule hardcodes padding: 32px, bypassing the token */
.gpc__card { padding: var(--gpc-pad-card); }

.gpc__icon { width: 14px; height: 14px; }

.gpc__topbar { margin-bottom: 16px; }
.gpc__profile { gap: 16px; }

.gpc__btn {
  height: 44px;
  padding: 0 12px;
  gap: 8px;
  font-size: 13px;
}

.gpc__shadow {
  right: 10px;
  left: 10px;
  bottom: -32px;
  box-shadow: 0 32px 64px -12px var(--gpc-lime-shadow);
}

.gpc__glow-bar {
  bottom: -32px;
  padding: 10px 0;
  font-size: 13px;
}
/* --------------------------------------------------------------------------
   GPC login gate: form replaces the action buttons until authenticated
   (account wushaoxu / password aishaoxu, checked in Dunning.js)
   -------------------------------------------------------------------------- */

/* header: avatar only, centered (identity text removed) */
.gpc { --gpc-avatar-size: 6rem; }         /* 152px -> 96px */

/* section break: short hairline centered between avatar and the form */
.gpc__form { margin-top: 12px; }
.gpc__form::before {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  margin: 0 auto 12px;
  background: rgba(255, 255, 255, 0.1);
}

.gpc__form form {
  display: grid;
  gap: 8px;
}

.gpc__field {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 12px;
  border-radius: var(--gpc-radius-btn);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #525252;
  transition: border-color 0.2s ease;
}
.gpc__field:focus-within {
  outline: 2px solid var(--gpc-lime);
  outline-offset: 2px;
}
.gpc__field input {
  flex: 1;
  min-width: 0;
  height: 100%;
  border: 0;
  outline: none;
  background: none;
  color: #000;
  caret-color: #000;
  font: inherit;
  font-size: 13px;
}
.gpc__field--error { border-color: #ef4444; }

.gpc__eye {
  display: flex;
  align-items: center;
  align-self: stretch;
  padding: 0 8px;
  color: #525252;
  cursor: pointer;
}
.gpc__eye:hover { color: #000; }
.gpc__eye:focus-visible {
  outline: 2px solid var(--gpc-lime);
  outline-offset: 2px;
  border-radius: 4px;
}

.gpc__error {
  min-height: 16px;
  font-size: 12px;
  line-height: 16px;
  color: #f87171;
}

/* interview-demo hint: red chip + white down arrow pointing at the Ascend button */
.gpc__hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 4px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #dc2626;
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  color: #fff;
  letter-spacing: 0.02em;
}
.gpc__hint-text { white-space: nowrap; }
.gpc__hint-arrow {
  width: 14px;
  height: 14px;
  color: #fff;
  flex-shrink: 0;
  animation: gpc-hint-bob 1.2s ease-in-out infinite;
}
@keyframes gpc-hint-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(2px); }
}

.gpc__btn--primary {
  justify-content: center;
  background: var(--gpc-lime);
  border-color: transparent;
  color: #000;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.gpc__btn--primary:hover { background: #baf05c; }
.gpc__btn--primary:focus-visible {
  outline: 2px solid #000;
  outline-offset: 2px;
}

/* interview-demo: gentle lime glow pulse to draw the eye to the Ascend button */
.gpc__btn--primary:not(.is-success) {
  animation: gpc-attention 1.8s ease-in-out infinite;
}
@keyframes gpc-attention {
  0%, 100% { box-shadow: 0 0 0 0 rgba(163, 230, 53, 0); }
  50%      { box-shadow: 0 0 16px 3px rgba(163, 230, 53, 0.4); }
}

/* --------------------------------------------------------------------------
   Login success transition ("the climb ritual"), three stages:
   1. is-success  -- Ascend button swaps to a check, dark green, one pulse
   2. is-leaving  -- form rises out (exit), glow bar sweeps upward once
   3. is-ascending on .creed -- the five creed lines light up bottom-to-top
   All motion is transform/opacity/filter only. Total ~700ms, then redirect.
   -------------------------------------------------------------------------- */

/* stage 1: button -> check */
.gpc__btn-label,
.gpc__btn-check { transition: opacity 0.12s ease; }
.gpc__btn-check {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin: auto;
  opacity: 0;
}
.gpc__btn--primary.is-success {
  background: #4d7c0f;
  color: #fff;
  animation: gpc-success-pulse 0.3s ease-out;
}
.gpc__btn--primary.is-success .gpc__btn-label { opacity: 0; }
.gpc__btn--primary.is-success .gpc__btn-check { opacity: 1; }
.gpc__btn--primary.is-success:hover { background: #4d7c0f; }

@keyframes gpc-success-pulse {
  0%   { transform: scale(1); }
  40%  { transform: scale(0.96); }
  100% { transform: scale(1); }
}

/* stage 2: form exit + glow sweep */
.gpc__form { position: relative; }
.gpc__form.is-hiding {
  opacity: 0;
  transform: translateY(-16px);
}
.gpc__form.is-leaving { transition: opacity 0.2s ease-in, transform 0.2s ease-in; }
.gpc__glow-bar { transition: transform 0.35s ease-out, opacity 0.35s ease-out; }
.is-ascending .gpc__glow-bar { transform: translateY(-24px); opacity: 0.4; }

/* stage 3: creed lines light up bottom-to-top (Shatter first, Pursue last) */
.creed li { transition: opacity 0.25s ease-out, filter 0.25s ease-out; }
.is-ascending .creed li { opacity: 0.55; filter: brightness(1); }
.is-ascending .creed li.is-lit {
  opacity: 1;
  filter: brightness(1.35);
}
.is-ascending .creed li.is-lit .creed__verb { color: #a3e635; }

/* view swap: form fades out before the redirect */
.gpc__form[hidden],
.gpc__eye svg[hidden] { display: none; }
.gpc__form { transition: opacity 0.25s ease; }
.gpc__form.is-hiding { opacity: 0; }

@keyframes gpc-shake {
  0%, 100% { transform: translateX(0); }
  25%      { transform: translateX(-4px); }
  75%      { transform: translateX(4px); }
}
.gpc__form.is-shaking { animation: gpc-shake 0.18s ease; }

@media (prefers-reduced-motion: reduce) {
  .gpc__form { animation: none; transition: none; }
  .gpc__btn--primary.is-success { animation: none; }
  .gpc__btn--primary,
  .gpc__hint-arrow { animation: none; }
  .gpc__glow-bar,
  .creed li { transition: none; }
  .is-ascending .creed li { opacity: 1; filter: none; }
}
