/* 泽风喵工作室门户 · dark-tech / wind-teal
   Design read: gaming studio landing, VARIANCE 8 / MOTION 6 / DENSITY 3 */

:root {
  --bg: #070b10;
  --bg-elevated: #0c1219;
  --fg: #e8eef4;
  --muted: #8b9aab;
  --line: rgba(232, 238, 244, 0.1);
  --accent: #2ec4b6;
  --accent-dim: rgba(46, 196, 182, 0.16);
  --accent-strong: #5eead4;
  --danger: #fca5a5;
  --ok: #a7f3d0;
  --radius: 1.25rem;
  --max: 72rem;
  --font: "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC",
    "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "Menlo", "Consolas", monospace;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .animate-in,
  .hero-scroll span {
    animation: none !important;
  }
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}
img,
video {
  display: block;
  max-width: 100%;
}
button,
input,
select {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--accent);
  color: #041014;
  font-weight: 600;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.delay-1 {
  animation-delay: 0.12s;
}
.delay-2 {
  animation-delay: 0.24s;
}
.delay-3 {
  animation-delay: 0.36s;
}

.section {
  padding: 5.5rem 1.5rem;
  position: relative;
}
.section-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.hero-kicker,
.work-label,
.section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-strong);
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  filter: saturate(0.85) contrast(1.05);
}

.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(105deg, rgba(7, 11, 16, 0.92) 0%, rgba(7, 11, 16, 0.55) 42%, rgba(7, 11, 16, 0.25) 68%, rgba(7, 11, 16, 0.7) 100%),
    linear-gradient(180deg, rgba(7, 11, 16, 0.35) 0%, transparent 28%, rgba(7, 11, 16, 0.85) 100%);
  pointer-events: none;
}

.nav {
  position: relative;
  z-index: 10;
  padding: 1.25rem 1.5rem;
}

.nav-bar {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.65rem 0.85rem 0.65rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 11, 16, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.nav-logo {
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.nav-logo sup {
  font-size: 0.55rem;
  top: -0.55em;
  color: var(--muted);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.75rem;
}
.nav-links a {
  font-size: 0.875rem;
  color: var(--muted);
  transition: color 0.2s ease;
}
.nav-links a:hover,
.nav-links a.is-active {
  color: var(--fg);
}
.nav-links a.is-active {
  box-shadow: inset 0 -2px 0 var(--accent);
  padding-bottom: 2px;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

.nav-cta {
  border-radius: 999px;
  padding: 0.55rem 1.15rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #041014;
  background: var(--accent);
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease;
}
.nav-cta:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.hero-content {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  text-align: left;
  padding: 6rem 1.5rem 7rem;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
}

.hero-title {
  margin-top: 1rem;
  font-weight: 650;
  font-size: clamp(2.6rem, 8vw, 5.4rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  max-width: 14ch;
}
.hero-title em {
  font-style: italic;
  font-weight: 550;
  color: var(--accent-strong);
  display: inline-block;
  padding-bottom: 0.08em;
}

.hero-sub {
  margin-top: 1.35rem;
  max-width: 32rem;
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
}

.hero-actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn-solid,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.95rem 1.6rem;
  font-size: 0.9375rem;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.btn-solid {
  background: var(--accent);
  color: #041014;
}
.btn-solid:hover {
  background: var(--accent-strong);
  transform: translateY(-2px);
}
.btn-ghost {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--fg);
}
.btn-ghost:hover {
  border-color: rgba(46, 196, 182, 0.45);
  background: var(--accent-dim);
}

.hero-scroll {
  position: absolute;
  z-index: 10;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  width: 1px;
  height: 42px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.hero-scroll span {
  display: block;
  width: 100%;
  height: 30%;
  background: var(--accent);
  animation: scroll-dot 1.8s ease-in-out infinite;
}
@keyframes scroll-dot {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(320%);
  }
}

/* ── Intro strip ── */
.strip {
  padding-top: 3.5rem;
  padding-bottom: 1.5rem;
}
.strip-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1.75rem 1.5rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (min-width: 768px) {
  .strip-inner {
    grid-template-columns: 8rem 1fr;
    align-items: baseline;
    gap: 2rem;
  }
}
.strip-mark {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.strip-copy {
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

/* ── Work bento ── */
.work {
  padding-top: 3rem;
  padding-bottom: 3rem;
}
.section-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.section-note {
  color: var(--muted);
  font-size: 0.875rem;
}

.work-bento {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 900px) {
  .work-bento {
    grid-template-columns: 1.45fr 1fr;
    gap: 1.15rem;
    min-height: 22rem;
  }
}

.work-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: calc(var(--radius) + 0.25rem);
  padding: 1.85rem 1.7rem;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 90% at 0% 0%, var(--accent-dim), transparent 55%),
    var(--bg-elevated);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease;
  min-height: 16rem;
}
.work-card:hover {
  transform: translateY(-4px);
  border-color: rgba(46, 196, 182, 0.4);
}
.work-card--main {
  justify-content: flex-end;
}
.work-card--side {
  background:
    radial-gradient(90% 80% at 100% 0%, rgba(94, 234, 212, 0.08), transparent 50%),
    var(--bg-elevated);
}

.work-card h3 {
  margin-top: 1.1rem;
  font-size: clamp(1.85rem, 3vw, 2.6rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.work-card p {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 34ch;
  line-height: 1.65;
}
.work-go {
  margin-top: auto;
  padding-top: 1.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent-strong);
}

/* ── Miniprogram ── */
.miniprogram {
  padding-top: 2rem;
  padding-bottom: 5.5rem;
}
.mp-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  padding: 2rem 1.5rem;
  border-radius: calc(var(--radius) + 0.35rem);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(46, 196, 182, 0.1), transparent 42%),
    var(--bg-elevated);
}
@media (min-width: 800px) {
  .mp-panel {
    grid-template-columns: 1.4fr auto;
    padding: 2.5rem 2.75rem;
    gap: 3rem;
  }
}
.mp-copy h2 {
  margin-top: 0.65rem;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 650;
  letter-spacing: -0.03em;
}
.mp-copy > p {
  margin-top: 0.7rem;
  color: var(--muted);
  max-width: 38ch;
}
.mp-points {
  margin-top: 1.35rem;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}
.mp-points li {
  position: relative;
  padding-left: 1rem;
  color: var(--fg);
  font-size: 0.9375rem;
}
.mp-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 50%;
  background: var(--accent);
}

.mp-qr {
  justify-self: center;
  text-align: center;
}
.mp-qr img {
  width: 168px;
  height: 168px;
  object-fit: contain;
  padding: 0.7rem;
  border-radius: 1rem;
  background: #fff;
}
.mp-qr figcaption {
  margin-top: 0.7rem;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.08em;
}

/* ── Footer ── */
.site-footer {
  padding: 2rem 1.5rem 2.75rem;
  border-top: 1px solid var(--line);
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  text-align: center;
}
.footer-brand,
.footer-beian a {
  color: var(--muted);
  font-size: 0.8125rem;
}
.footer-beian a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.footer-beian a:hover {
  color: var(--fg);
}

/* ═══════════════ TOOLS PAGE ═══════════════ */
.page-tools {
  --card: rgba(255, 255, 255, 0.025);
  --radius: 1rem;
}

.tools-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: 0.85rem 1.5rem;
  background: rgba(7, 11, 16, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.tools-nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.tools-nav-brand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.05rem;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.tools-nav-sep,
.tools-nav-sub {
  font-weight: 400;
  color: var(--muted);
}
.tools-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
  align-items: center;
  font-size: 0.875rem;
}
.tools-nav-links a {
  color: var(--muted);
  transition: color 0.2s;
}
.tools-nav-links a:hover {
  color: var(--fg);
}

.tools-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.tools-hero {
  margin-bottom: 3rem;
  max-width: 40rem;
}
.tools-hero h1 {
  margin-top: 0.75rem;
  font-size: clamp(2rem, 5vw, 3.35rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.1;
}
.tools-hero h1 em {
  font-style: italic;
  color: var(--accent-strong);
  padding-bottom: 0.05em;
}
.tools-hero > p {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.975rem;
  line-height: 1.7;
}

.tools-section {
  margin-bottom: 3.5rem;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.section-title {
  font-size: 1.4rem;
  font-weight: 650;
  letter-spacing: -0.025em;
}
.section-sub {
  color: var(--muted);
  font-size: 0.875rem;
  margin-top: 0.35rem;
}
.updated-at {
  color: var(--muted);
  font-size: 0.75rem;
  font-family: var(--font-mono);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
}

.map-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.map-card {
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  padding: 1rem;
}
.map-card:hover,
.map-card.active {
  border-color: rgba(46, 196, 182, 0.45);
  background: var(--accent-dim);
  transform: translateY(-2px);
}
.map-name {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.map-value,
.map-hint {
  font-size: 0.75rem;
  color: var(--muted);
}
.map-hint {
  margin-top: 0.35rem;
}

.suggest-panel {
  margin-top: 0.5rem;
}
.suggest-head {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}
.suggest-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}
.suggest-stat {
  font-size: 0.75rem;
  color: var(--muted);
}
.suggest-stat strong {
  display: block;
  color: var(--fg);
  font-size: 1rem;
  font-weight: 650;
  margin-top: 0.15rem;
}
.suggest-stat-save strong {
  color: var(--ok);
}

.slot-list {
  display: grid;
  gap: 0.25rem;
}
.slot-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  grid-template-rows: auto auto;
  gap: 0.15rem 0.75rem;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
}
.slot-item:last-child {
  border-bottom: none;
}
.slot-cat {
  grid-row: 1 / span 2;
  color: var(--muted);
  font-size: 0.75rem;
}
.slot-name {
  color: var(--fg);
}
.slot-meta {
  color: var(--muted);
  font-size: 0.75rem;
  grid-column: 2;
}
.slot-premium {
  grid-row: 1 / span 2;
  grid-column: 3;
  font-size: 0.75rem;
  white-space: nowrap;
}
.slot-premium.save {
  color: var(--ok);
}
.slot-premium.loss {
  color: var(--danger);
}

.empty,
.loading {
  color: var(--muted);
  font-size: 0.875rem;
  padding: 1rem 0;
}

.disclaimer {
  margin-top: 1rem;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.6;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.toolbar select,
.toolbar input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--fg);
  padding: 0.55rem 1rem;
  min-width: 140px;
  outline: none;
}
.toolbar input {
  flex: 1;
  min-width: 180px;
}
.toolbar select:focus,
.toolbar input:focus {
  border-color: rgba(46, 196, 182, 0.5);
}
.toolbar select option {
  background: #0a1620;
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.55rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.2s, border-color 0.2s;
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--fg);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  background: var(--accent-dim);
  border-color: rgba(46, 196, 182, 0.35);
}
.btn-primary {
  background: var(--accent);
  color: #041014;
}
.btn-primary:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.price-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.price-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.price-table th,
.price-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}
.price-table th {
  color: var(--muted);
  font-weight: 550;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
}
.price-table td {
  color: rgba(232, 238, 244, 0.9);
}
.price-table tr:last-child td {
  border-bottom: none;
}
.price-table tbody tr:hover td {
  background: rgba(46, 196, 182, 0.05);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.news-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.2s, transform 0.2s;
  overflow: hidden;
}
.news-card:hover {
  border-color: rgba(46, 196, 182, 0.35);
  transform: translateY(-2px);
}
.news-cover {
  aspect-ratio: 16 / 9;
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
  margin: -1.25rem -1.25rem 0;
  border-radius: var(--radius) var(--radius) 0 0;
}
.news-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.news-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.news-title {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.45;
}
.news-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
}
.source-tag {
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--line);
}

.tools-footer {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  text-align: center;
}
.tools-footer p {
  color: var(--muted);
  font-size: 0.8125rem;
  margin-bottom: 0.5rem;
}
.tools-footer a {
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tools-footer a:hover {
  color: var(--fg);
}

[hidden] {
  display: none !important;
}
