/* ==========================================================================
   PhLab 官网样式
   色板：背景 #17161c / 面板 #23222b / 荧光绿 #c2ff00 / 文字 #f5f5f7
   ========================================================================== */

:root {
  --bg: #17161c;
  --bg-soft: #1c1b23;
  --panel: #23222b;
  --panel-2: #2a2933;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.18);
  --ink: #f5f5f7;
  --muted: #a9a7b6;
  --neon: #c2ff00;
  --neon-dim: rgba(194, 255, 0, 0.12);
  --max: 1180px;
  --radius: 20px;
  --font: "Helvetica Neue", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
p,
dl,
dd,
ol {
  margin: 0;
}

::selection {
  background: var(--neon);
  color: #17161c;
}

:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 4px;
  border-radius: 4px;
}

.shell {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--neon);
  color: #17161c;
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: none;
}

/* ==========================================================================
   Header
   ========================================================================== */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(23, 22, 28, 0.82);
  border-bottom-color: var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  height: 84px;
}

.brand img {
  width: 118px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 15px;
}

.nav a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--ink);
}

.nav-cta {
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--neon);
  color: #17161c !important;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(194, 255, 0, 0.25);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  overflow: clip;
  padding: 168px 0 100px;
  background:
    radial-gradient(ellipse at 78% 18%, rgba(194, 255, 0, 0.08), transparent 55%),
    linear-gradient(180deg, var(--bg-soft), var(--bg));
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse at 72% 28%, #000 0%, transparent 62%);
  mask-image: radial-gradient(ellipse at 72% 28%, #000 0%, transparent 62%);
  opacity: 0.5;
}

.hero-glow {
  position: absolute;
  top: -160px;
  right: -120px;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(194, 255, 0, 0.18), transparent 65%);
  filter: blur(10px);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 64px;
}

.eyebrow,
.section-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  color: var(--neon);
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(3.2rem, 7.4vw, 6rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  font-weight: 900;
}

.hero h1 em {
  font-style: normal;
  color: var(--neon);
}

.lead {
  max-width: 34em;
  margin-top: 28px;
  color: var(--muted);
  font-size: clamp(1rem, 1.4vw, 1.125rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease,
    background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--neon);
  color: #17161c;
}

.btn-primary:hover {
  box-shadow: 0 12px 34px rgba(194, 255, 0, 0.28);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--ink);
  background: transparent;
}

.btn-ghost:hover {
  border-color: var(--neon);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 48px;
  margin-top: 64px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.hero-stats dt {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--neon);
}

.hero-stats dd {
  margin-top: 2px;
  font-size: 13px;
  color: var(--muted);
}

.hero-art {
  position: relative;
  padding: 10px;
}

.art-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(194, 255, 0, 0.45);
  box-shadow:
    0 0 0 1px rgba(194, 255, 0, 0.12),
    0 40px 90px rgba(0, 0, 0, 0.55),
    0 0 70px rgba(194, 255, 0, 0.12);
  transform: rotate(-3.5deg);
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hero-art:hover .art-frame {
  transform: rotate(-1.5deg) translateY(-4px);
}

.art-frame img {
  width: 100%;
  height: auto;
}

.art-badge {
  position: absolute;
  top: -14px;
  right: 26px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--neon);
  color: #17161c;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  transform: rotate(4deg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.art-tag {
  position: absolute;
  left: 26px;
  bottom: -4px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--muted);
}

/* ==========================================================================
   Marquee
   ========================================================================== */

.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #121117;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.marquee-track span {
  padding: 16px 0;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.28em;
  color: var(--neon);
  white-space: nowrap;
  padding-right: 2.5em;
  opacity: 0.85;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-25%);
  }
}

/* ==========================================================================
   Sections
   ========================================================================== */

.section {
  padding: 110px 0;
}

.section-alt {
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 760px;
}

.section-head h2,
.mall-copy h2 {
  margin-top: 18px;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-weight: 900;
}

.section-lead {
  max-width: 40em;
  margin-top: 22px;
  color: var(--muted);
  font-size: 1.0625rem;
}

/* Feature cards */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 64px;
}

.feature {
  position: relative;
  padding: 36px 30px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(160deg, var(--panel), var(--bg-soft));
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.feature:hover {
  transform: translateY(-5px);
  border-color: rgba(194, 255, 0, 0.45);
}

.feature-no {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--neon);
}

.feature h3 {
  margin-top: 22px;
  font-size: 1.35rem;
  font-weight: 800;
}

.feature p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Member cards */

.member-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 64px;
}

.member-card {
  position: relative;
  padding: 36px 30px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  overflow: hidden;
  transition: border-color 0.25s ease;
}

.member-card::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(194, 255, 0, 0.14), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.member-card > * {
  position: relative;
  z-index: 1;
}

.member-card:hover {
  border-color: rgba(194, 255, 0, 0.4);
}

.member-index {
  font-family: var(--mono);
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(194, 255, 0, 0.55);
}

.member-card h3 {
  margin-top: 24px;
  font-size: 1.3rem;
  font-weight: 800;
}

.member-card > p {
  margin-top: 12px;
  color: var(--ink);
  font-size: 0.95rem;
}

.member-card .member-note {
  color: var(--muted);
  font-size: 0.875rem;
}

.rule-note {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-top: 32px;
  padding: 22px 26px;
  border: 1px solid rgba(194, 255, 0, 0.28);
  border-left: 3px solid var(--neon);
  border-radius: 14px;
  background: var(--neon-dim);
}

.rule-mark {
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--neon);
  color: #17161c;
  font-weight: 800;
  font-size: 15px;
  line-height: 26px;
  text-align: center;
  margin-top: 2px;
}

.rule-note p {
  color: var(--muted);
  font-size: 0.9375rem;
}

/* ==========================================================================
   Mall
   ========================================================================== */

.mall-inner {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 80px;
}

.steps {
  margin-top: 44px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 22px;
}

.steps li {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.steps li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.step-no {
  flex: none;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--neon);
  padding-top: 3px;
}

.steps strong {
  font-size: 1.05rem;
}

.steps p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.copy-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
}

.copy-hint {
  font-size: 0.875rem;
  color: var(--neon);
  min-height: 1.5em;
}

/* Phone mock */

.phone-wrap {
  position: relative;
  display: flex;
  justify-content: center;
}

.phone-wrap::before {
  content: "";
  position: absolute;
  inset: 8% 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(194, 255, 0, 0.16), transparent 68%);
  filter: blur(30px);
}

.phone {
  position: relative;
  width: 288px;
  aspect-ratio: 9 / 18.6;
  padding: 11px;
  border-radius: 46px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #0d0c11;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.55),
    inset 0 0 0 2px rgba(255, 255, 255, 0.04);
  transform: rotate(3deg);
}

.phone-screen {
  height: 100%;
  display: flex;
  flex-direction: column;
  border-radius: 36px;
  overflow: hidden;
  background: #373641;
}

.phone-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
}

.phone-logo {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--neon);
}

.phone-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 12px rgba(194, 255, 0, 0.8);
}

.phone-screen > img {
  width: 100%;
  height: auto;
}

.phone-ui {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px;
}

.sku {
  height: 72px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: linear-gradient(150deg, #2c2b35, #3d3c49);
}

.phone-cta {
  margin: auto 14px 18px;
  padding: 12px 0;
  border-radius: 999px;
  background: var(--neon);
  color: #17161c;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.phone-badge {
  position: absolute;
  right: 6%;
  bottom: 10%;
  padding: 8px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(23, 22, 28, 0.85);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  backdrop-filter: blur(8px);
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.contact-card {
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.contact-card:hover {
  border-color: rgba(194, 255, 0, 0.4);
  transform: translateY(-4px);
}

.contact-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.contact-card strong {
  display: block;
  margin-top: 18px;
  font-size: 1.2rem;
  font-weight: 800;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.contact-card p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  padding: 56px 0 40px;
  border-top: 1px solid var(--line);
  background: #121117;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px 48px;
}

.footer-brand img {
  width: 104px;
  height: auto;
}

.footer-brand p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  font-size: 14px;
}

.footer-nav a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.footer-nav a:hover {
  color: var(--neon);
}

.copyright {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: #6f6d7c;
  font-size: 0.8125rem;
}

/* ==========================================================================
   Reveal animation
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .marquee-track {
    animation: none;
  }

  .art-frame,
  .phone {
    transform: none;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .hero-art {
    max-width: 640px;
  }

  .feature-grid,
  .member-grid,
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .mall-inner {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .phone-wrap {
    order: -1;
  }

  .phone {
    width: 246px;
  }
}

@media (max-width: 860px) {
  .header-inner {
    height: 72px;
  }

  .menu-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px 24px 24px;
    background: rgba(23, 22, 28, 0.98);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  }

  .nav.is-open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
  }

  .nav a:last-child {
    border-bottom: none;
  }

  .nav-cta {
    margin-top: 14px;
    text-align: center;
    border-bottom: none !important;
  }

  .hero {
    padding: 132px 0 80px;
  }

  .section {
    padding: 84px 0;
  }
}

@media (max-width: 720px) {
  .shell {
    width: calc(100% - 40px);
  }

  .feature-grid,
  .member-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    margin-top: 44px;
  }

  .hero-stats {
    gap: 16px 32px;
    margin-top: 48px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .copy-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .art-badge {
    right: 10px;
  }

  .phone-badge {
    right: 0;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: 2.9rem;
  }

  .btn {
    width: 100%;
  }

  .hero-actions {
    gap: 10px;
  }
}
