/* 秒折扣官网 · Design System */
:root {
  --brand: #ffd100;
  --brand-deep: #f0b800;
  --brand-soft: rgba(255, 209, 0, 0.14);
  --ink: #121212;
  --ink-2: #2a2a2a;
  --ink-3: #5c5c5c;
  --paper: #f8f7f4;
  --paper-2: #efeee9;
  --line: rgba(18, 18, 18, 0.08);
  --white: #ffffff;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px rgba(18, 18, 18, 0.08);
  --nav-h: 72px;
  --max: 1120px;
  --font-display: "ZCOOL XiaoWei", "Noto Serif SC", serif;
  --font-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  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;
  cursor: pointer;
  border: 0;
  background: none;
}

.container {
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

/* —— Nav —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(248, 247, 244, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease),
    height 0.3s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(18, 18, 18, 0.04);
  height: 64px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(100% - 40px, var(--max));
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.brand span.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--brand);
  color: var(--ink);
  font-weight: 800;
  font-size: 0.85rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  color: var(--ink-2);
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}

.nav-links a:hover,
.nav-links a.is-active {
  background: var(--brand-soft);
  color: var(--ink);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--brand) !important;
  font-weight: 600;
  font-size: 0.9rem;
}

.nav-cta:hover {
  background: var(--ink-2) !important;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: var(--paper-2);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s;
}

.site-header.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-header.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
.site-header.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.25s var(--ease);
}

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

.btn-primary {
  background: var(--brand);
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(255, 209, 0, 0.35);
}

.btn-primary:hover {
  background: var(--brand-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-dark {
  background: var(--ink);
  color: var(--brand);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--ink);
  color: var(--ink);
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(255, 209, 0, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(255, 180, 0, 0.12), transparent 50%),
    linear-gradient(160deg, #0e0e0e 0%, #1a1608 45%, #121212 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.5;
}

.hero-orb {
  position: absolute;
  width: min(52vw, 480px);
  height: min(52vw, 480px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 209, 0, 0.28), transparent 68%);
  right: -8%;
  top: 10%;
  animation: float-orb 9s ease-in-out infinite;
  pointer-events: none;
}

@keyframes float-orb {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-20px, 24px) scale(1.06);
  }
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 80px 0 100px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 209, 0, 0.12);
  border: 1px solid rgba(255, 209, 0, 0.28);
  color: var(--brand);
  font-size: 0.85rem;
  margin-bottom: 28px;
  animation: fade-up 0.8s var(--ease) both;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(3.6rem, 12vw, 7.5rem);
  line-height: 1;
  letter-spacing: 0.04em;
  margin: 0 0 12px;
  color: var(--brand);
  animation: fade-up 0.9s 0.08s var(--ease) both;
}

.hero-sub {
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 500;
  margin: 0 0 8px;
  opacity: 0.92;
  animation: fade-up 0.9s 0.16s var(--ease) both;
}

.hero-slogan {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.72);
  margin: 0 0 36px;
  animation: fade-up 0.9s 0.24s var(--ease) both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  animation: fade-up 0.9s 0.32s var(--ease) both;
}

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

/* —— Sections —— */
.section {
  padding: 88px 0;
}

.section-dark {
  background: var(--ink);
  color: var(--white);
}

.section-muted {
  background: var(--paper-2);
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
}

.section-kicker {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin-bottom: 12px;
}

.section-dark .section-kicker {
  color: var(--brand);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  line-height: 1.25;
  margin: 0 0 12px;
  letter-spacing: 0.02em;
}

.section-desc {
  margin: 0;
  color: var(--ink-3);
  font-size: 1.05rem;
}

.section-dark .section-desc {
  color: rgba(255, 255, 255, 0.65);
}

.lead {
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  line-height: 1.75;
  color: var(--ink-2);
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

/* —— Cards —— */
.grid {
  display: grid;
  gap: 20px;
}

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

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card-step {
  position: relative;
}

.card-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--brand);
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 18px;
}

.card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.card p {
  margin: 0;
  color: var(--ink-3);
  font-size: 0.95rem;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--brand-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 16px;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  text-align: center;
}

.stat {
  padding: 32px 16px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--brand);
  line-height: 1.1;
  margin-bottom: 8px;
}

.stat-label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

/* Download strip */
.download-strip {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 48px;
  border-radius: 28px;
  background: linear-gradient(135deg, #1a1608, #121212);
  color: var(--white);
  overflow: hidden;
  position: relative;
}

.download-strip::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(255, 209, 0, 0.15);
  right: -60px;
  bottom: -80px;
}

.download-store {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.store-pill {
  display: flex;
  flex-direction: column;
  padding: 16px 20px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  min-width: 160px;
}

.store-pill strong {
  color: var(--brand);
  margin-bottom: 4px;
}

.store-pill span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Page hero (inner) */
.page-hero {
  padding: 72px 0 48px;
  background:
    radial-gradient(ellipse 60% 80% at 90% 0%, rgba(255, 209, 0, 0.18), transparent 55%),
    var(--paper);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin: 0 0 12px;
  letter-spacing: 0.02em;
}

.page-hero p {
  margin: 0;
  color: var(--ink-3);
  font-size: 1.1rem;
  max-width: 560px;
}

/* Timeline */
.timeline {
  display: grid;
  gap: 0;
  border-left: 2px solid var(--brand);
  margin-left: 12px;
  padding-left: 28px;
}

.timeline-item {
  position: relative;
  padding: 0 0 32px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -35px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand);
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 2px var(--brand);
}

.timeline-item strong {
  display: block;
  margin-bottom: 6px;
}

.timeline-item p {
  margin: 0;
  color: var(--ink-3);
}

/* Contact blocks */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.contact-item {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
}

.contact-item dt {
  font-size: 0.85rem;
  color: var(--ink-3);
  margin-bottom: 6px;
}

.contact-item dd {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
}

.note-bar {
  margin-top: 28px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  background: var(--brand-soft);
  border: 1px solid rgba(255, 209, 0, 0.35);
  font-size: 0.95rem;
  color: var(--ink-2);
}

.badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-soon {
  background: rgba(18, 18, 18, 0.06);
}

/* News */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.tab {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--ink-3);
  background: var(--white);
  border: 1px solid var(--line);
}

.tab.is-active {
  background: var(--ink);
  color: var(--brand);
  border-color: var(--ink);
}

.empty-state {
  text-align: center;
  padding: 64px 24px;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px dashed var(--line);
  color: var(--ink-3);
}

/* Legal */
.legal {
  padding: 48px 0 80px;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 0.92rem;
}

.legal-body {
  max-width: 800px;
}

.legal-body h2 {
  font-size: 1.25rem;
  margin: 36px 0 14px;
  padding-top: 8px;
}

.legal-body h3 {
  font-size: 1.05rem;
  margin: 24px 0 10px;
}

.legal-body p,
.legal-body li {
  color: var(--ink-2);
  font-size: 0.98rem;
}

.legal-body ul,
.legal-body ol {
  padding-left: 1.25em;
}

.legal-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 0.9rem;
}

.legal-body th,
.legal-body td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

.legal-body th {
  background: var(--paper-2);
  font-weight: 600;
}

.legal-body .toc {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin-bottom: 28px;
}

.legal-body .toc a {
  color: var(--ink-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* 404 */
.page-404 {
  min-height: calc(100vh - var(--nav-h) - 200px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
}

.page-404 .code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 9rem);
  line-height: 1;
  color: var(--brand);
  margin: 0;
}

.page-404 .mouse {
  font-size: 3rem;
  margin: 8px 0 16px;
  animation: bounce 2.2s ease-in-out infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Footer */
.site-footer {
  background: #0e0e0e;
  color: rgba(255, 255, 255, 0.72);
  padding: 64px 0 32px;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  margin-bottom: 48px;
}

.footer-brand .name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--brand);
  margin-bottom: 8px;
}

.footer-brand p {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.85rem;
  margin: 0 0 16px;
  letter-spacing: 0.06em;
}

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

.footer-col li {
  margin-bottom: 10px;
}

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

.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom a:hover {
  color: var(--brand);
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 0.08s;
}
.reveal-delay-2 {
  transition-delay: 0.16s;
}
.reveal-delay-3 {
  transition-delay: 0.24s;
}
.reveal-delay-4 {
  transition-delay: 0.32s;
}

/* —— Responsive —— */
@media (max-width: 960px) {
  .grid-3,
  .grid-4,
  .stats,
  .footer-grid,
  .download-strip,
  .contact-grid,
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 768px) {
  :root {
    --nav-h: 60px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px 24px;
    background: rgba(248, 247, 244, 0.98);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
    gap: 4px;
  }

  .site-header.nav-open .nav-links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    padding: 14px 16px;
    border-radius: 12px;
  }

  .nav-cta {
    margin-top: 8px;
    justify-content: center;
  }

  .section {
    padding: 64px 0;
  }

  .hero-inner {
    padding: 56px 0 72px;
  }

  .grid-3,
  .grid-4,
  .stats,
  .footer-grid,
  .download-strip,
  .contact-grid,
  .grid-2 {
    grid-template-columns: 1fr;
  }

  .download-strip {
    padding: 32px 24px;
  }

  .page-hero {
    padding: 48px 0 36px;
  }

  .legal-body table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* —— WordPress 适配 —— */
.nav-links li {
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links .current-menu-item > a,
.nav-links .current_page_item > a {
  background: var(--brand-soft);
  color: var(--ink);
}

.mzk-news-card .mzk-news-thumb {
  display: block;
  margin: -28px -24px 16px;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
}

.mzk-news-card .mzk-news-thumb img {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

.mzk-news-card h3 a:hover {
  color: var(--brand-deep);
}

.mzk-news-meta {
  margin-top: 12px !important;
  font-size: 0.85rem !important;
  color: var(--ink-3) !important;
}

.mzk-pagination {
  margin-top: 40px;
  text-align: center;
}

.mzk-pagination .nav-links,
.mzk-pagination .page-numbers {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  align-items: center;
}

.mzk-pagination a.page-numbers,
.mzk-pagination span.page-numbers {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 0.9rem;
}

.mzk-pagination span.current {
  background: var(--ink);
  color: var(--brand);
  border-color: var(--ink);
}

.entry-content img {
  height: auto;
}

.entry-content a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wp-block-image {
  margin: 1.5em 0;
}

body.admin-bar .site-header {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}
