/* 玄戒工具箱官网 */
:root {
  --bg: #f5f7fb;
  --bg-elevated: #ffffff;
  --ink: #12151c;
  --ink-soft: #3d4658;
  --muted: #6b7385;
  --line: rgba(18, 21, 28, 0.08);
  --orange: #f04e23;
  --orange-deep: #d63d16;
  --orange-soft: #fff0ea;
  --orange-glow: rgba(240, 78, 35, 0.28);
  --slate: #1a2332;
  --ok: #1f9d63;
  --radius: 22px;
  --shadow: 0 18px 50px rgba(18, 21, 28, 0.08);
  --font-display: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-body: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(240, 78, 35, 0.16), transparent 55%),
    radial-gradient(900px 500px at -10% 20%, rgba(53, 99, 180, 0.08), transparent 50%),
    linear-gradient(180deg, #eef2f8 0%, var(--bg) 28%, #f8f9fc 100%);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

button {
  font: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(245, 247, 251, 0.82);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.9);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand img {
  width: 36px;
  height: 36px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.8rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn-primary {
  background: linear-gradient(135deg, #ff6a3d, var(--orange-deep));
  color: #fff;
  box-shadow: 0 12px 28px var(--orange-glow);
}

.btn-primary:hover {
  box-shadow: 0 16px 34px rgba(240, 78, 35, 0.38);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-secondary:hover {
  background: #fff;
}

.btn-ghost {
  color: var(--ink-soft);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  align-items: center;
  justify-content: center;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
  transition: 0.2s ease;
}

.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.menu-toggle span::before {
  top: -6px;
}

.menu-toggle span::after {
  top: 6px;
}

/* Hero */
.hero {
  padding: 2.5rem 0 1rem;
  overflow: clip;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: end;
  min-height: min(78vh, 760px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--orange-soft);
  color: var(--orange-deep);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.1rem;
}

.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 4.6rem);
  line-height: 1.08;
  letter-spacing: 0.01em;
}

.hero-lead {
  margin: 0.85rem 0 0;
  font-size: clamp(1.2rem, 2.2vw, 1.55rem);
  color: var(--ink-soft);
  font-weight: 600;
}

.hero-desc {
  margin: 1.1rem 0 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.hero-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.1rem;
  margin: 1.4rem 0 0;
}

.hero-checks li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
}

.hero-checks li::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    linear-gradient(135deg, #ff6a3d, var(--orange-deep)) center/100% 100% no-repeat,
    #fff;
  box-shadow: inset 0 0 0 5px #fff;
  flex: 0 0 auto;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.8rem;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  min-height: 520px;
}

.hero-glow {
  position: absolute;
  inset: 12% 8% 0;
  background: radial-gradient(circle at 50% 40%, var(--orange-glow), transparent 65%);
  filter: blur(10px);
  pointer-events: none;
}

.phone {
  position: relative;
  width: min(290px, 78%);
  aspect-ratio: 9 / 18.5;
  border-radius: 36px;
  padding: 10px;
  background: linear-gradient(160deg, #2a3344, #121820 55%, #0b0f14);
  box-shadow:
    0 30px 60px rgba(18, 21, 28, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  animation: phone-rise 1s ease both;
}

.phone-screen {
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(180deg, #fff8f4 0%, #ffffff 40%, #f3f6fb 100%);
  position: relative;
}

.phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 22px;
  border-radius: 999px;
  background: #111;
  z-index: 2;
}

.phone-status {
  display: flex;
  justify-content: space-between;
  padding: 14px 16px 8px;
  font-size: 0.72rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.app-head {
  padding: 0.4rem 1rem 0.8rem;
}

.app-head strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
}

.app-head span {
  color: var(--muted);
  font-size: 0.78rem;
}

.app-card {
  margin: 0 0.85rem 0.7rem;
  padding: 0.85rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(240, 78, 35, 0.12);
  box-shadow: 0 8px 20px rgba(240, 78, 35, 0.06);
}

.app-card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
}

.app-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
}

.app-list {
  margin: 0.5rem 0.85rem;
  display: grid;
  gap: 0.45rem;
}

.app-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.8rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  font-size: 0.8rem;
}

.dot-on {
  width: 34px;
  height: 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff6a3d, var(--orange-deep));
  position: relative;
}

.dot-on::after {
  content: "";
  position: absolute;
  top: 2px;
  right: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
}

.float-tag {
  position: absolute;
  padding: 0.55rem 0.85rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-size: 0.82rem;
  font-weight: 600;
  animation: float-y 4s ease-in-out infinite;
}

.float-tag.one {
  left: 0;
  top: 18%;
}

.float-tag.two {
  right: 0;
  top: 42%;
  animation-delay: 0.8s;
}

.float-tag.three {
  left: 4%;
  bottom: 14%;
  animation-delay: 1.4s;
}

@keyframes phone-rise {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes float-y {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-head {
  max-width: 40rem;
  margin-bottom: 2.2rem;
}

.section-kicker {
  color: var(--orange);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.55rem;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.55rem);
  line-height: 1.2;
}

.section-head p {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature-item {
  padding: 1.35rem 1.25rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(240, 78, 35, 0.2);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--orange-soft);
  color: var(--orange-deep);
  margin-bottom: 0.9rem;
  font-size: 1.1rem;
}

.feature-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.feature-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.panel {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  padding: 1.5rem;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(255, 244, 238, 0.75));
  border: 1px solid var(--line);
}

.panel.reverse {
  grid-template-columns: 0.9fr 1.1fr;
}

.panel.reverse .panel-copy {
  order: 2;
}

.checklist {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.2rem;
}

.checklist li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0.7rem;
  align-items: start;
}

.checklist li::before {
  content: "✓";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--orange);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 0.1rem;
}

.checklist strong {
  display: block;
  margin-bottom: 0.15rem;
}

.checklist span {
  color: var(--muted);
  font-size: 0.92rem;
}

.mock-board {
  border-radius: 22px;
  background: var(--slate);
  color: #fff;
  padding: 1.2rem;
  min-height: 280px;
  box-shadow: 0 20px 40px rgba(18, 21, 28, 0.18);
}

.mock-board h3 {
  margin: 0 0 1rem;
  font-size: 1rem;
}

.mock-rows {
  display: grid;
  gap: 0.65rem;
}

.mock-rows div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.8rem 0.9rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
}

.badge-soft {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(240, 78, 35, 0.2);
  color: #ffb799;
  font-size: 0.75rem;
}

.tool-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.tool-card {
  padding: 1.4rem;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}

.tool-card h3 {
  margin: 0 0 0.9rem;
  font-size: 1.08rem;
}

.tool-card li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.55rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.tool-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

/* Steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  counter-reset: step;
}

.step {
  position: relative;
  padding: 1.5rem 1.25rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid var(--line);
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--orange);
  margin-bottom: 0.7rem;
}

.step h3 {
  margin: 0 0 0.45rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.tips {
  margin-top: 1.4rem;
  padding: 1.1rem 1.25rem;
  border-radius: 18px;
  background: rgba(26, 35, 50, 0.04);
  border: 1px dashed rgba(26, 35, 50, 0.15);
}

.tips li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.4rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.tips li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--orange);
  font-weight: 700;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.05rem 1.2rem;
  font-weight: 650;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--orange);
  font-size: 1.3rem;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item .faq-body {
  padding: 0 1.2rem 1.15rem;
  color: var(--muted);
}

/* Reviews */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

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

.stars {
  color: #f5a524;
  letter-spacing: 0.08em;
  margin-bottom: 0.55rem;
  font-size: 0.95rem;
}

.review-card p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.review-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.82rem;
}

/* CTA */
.cta-band {
  margin: 1rem 0 4rem;
  padding: 2.4rem 2rem;
  border-radius: 30px;
  background:
    radial-gradient(600px 220px at 90% 0%, rgba(255, 255, 255, 0.18), transparent 60%),
    linear-gradient(135deg, #1a2332, #2a180f 60%, #3b160c);
  color: #fff;
  text-align: center;
}

.cta-band h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}

.cta-band p {
  margin: 0.7rem auto 1.4rem;
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.78);
}

.cta-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.2rem;
}

.cta-tags span {
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
}

/* Footer */
.site-footer {
  padding: 2.5rem 0 2rem;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.55);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1.5rem;
}

.footer-brand {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

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

.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  margin-bottom: 0.25rem;
}

.footer-brand p,
.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-col h3 {
  margin: 0 0 0.7rem;
  font-size: 0.95rem;
}

.footer-col a {
  display: block;
  color: var(--muted);
  margin-bottom: 0.45rem;
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--orange);
}

.footer-bottom {
  margin-top: 1.8rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Legal pages */
.legal-page {
  padding: 3rem 0 4rem;
}

.legal-page h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.legal-page h2 {
  margin: 1.8rem 0 0.7rem;
  font-size: 1.15rem;
}

.legal-page p,
.legal-page li {
  color: var(--muted);
}

.legal-page ul {
  padding-left: 1.1rem;
  list-style: disc;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Mobile */
@media (max-width: 960px) {
  .hero-grid,
  .panel,
  .panel.reverse,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .panel.reverse .panel-copy {
    order: 0;
  }

  .feature-grid,
  .tool-columns,
  .steps,
  .review-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-visual {
    min-height: 460px;
  }

  .hero-grid {
    align-items: start;
    min-height: auto;
  }

  .float-tag.one,
  .float-tag.three {
    left: 2%;
  }

  .float-tag.two {
    right: 2%;
  }
}

@media (max-width: 720px) {
  .nav {
    position: fixed;
    inset: 72px 1rem auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.6rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.85rem 0.9rem;
    border-radius: 12px;
  }

  .nav a:hover {
    background: var(--orange-soft);
  }

  .menu-toggle {
    display: inline-flex;
  }

  .header-actions .btn-primary {
    display: none;
  }

  .feature-grid,
  .tool-columns,
  .steps,
  .review-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 1.2rem;
  }

  .hero-visual {
    min-height: 420px;
  }

  .section {
    padding: 3.5rem 0;
  }

  .cta-band {
    padding: 2rem 1.2rem;
  }
}
