/* ================================================================
   FlyClock — Reusable Design Tokens & Components
   Compatible with Bootstrap 4 + bootstrap-icons
   ================================================================ */

/* ── Design Tokens ─────────────────────────────────────────────── */
:root {
  --fc-navy: #0a2a5e;
  --fc-blue: #0056b3;
  --fc-sky: #25a8f7;
  --fc-green: #28a745;
  --fc-white: #ffffff;
  --fc-off-white: #f6f9fb;
  --fc-text-dark: #1a1f36;
  --fc-text-mid: #4a5568;
  --fc-text-muted: #888ea8;

  /* Gradients */
  --fc-grad-hero: linear-gradient(135deg, #0a2a5e 0%, #0056b3 55%, #25a8f7 100%);
  --fc-grad-cta: linear-gradient(135deg, #0056b3 0%, #25a8f7 100%);
  --fc-grad-btn: linear-gradient(90deg, var(--fc-blue), var(--fc-sky));

  /* Surfaces */
  --fc-card-radius: 16px;
  --fc-shadow-sm: 0 4px 18px rgba(0, 0, 0, 0.08);
  --fc-shadow-md: 0 10px 32px rgba(0, 86, 179, 0.16);
  --fc-shadow-lg: 0 20px 60px rgba(0, 86, 179, 0.22);

  /* Motion */
  --fc-ease: cubic-bezier(0.4, 0, 0.2, 1);
  --fc-duration-sm: 0.18s;
  --fc-duration-md: 0.28s;

  /* Typography */
  --fc-font-body: 'Mulish', -apple-system, BlinkMacSystemFont, sans-serif;
  --fc-font-display: 'Mulish', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── Global reset helpers ───────────────────────────────────────── */
.fc-body {
  font-family: var(--fc-font-body);
  background: #f0f4f8;
  color: var(--fc-text-dark);
}

/* ── Navigation (统一规范，与 download.html 最终版本一致) ── */
#mainNav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 0.65rem 0;
  transition: box-shadow 0.3s var(--fc-ease);
}

#mainNav.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

#mainNav .navbar-brand img {
  height: 48px;
  width: auto;
  display: block;
}

#mainNav .nav-link {
  position: relative;
  color: var(--fc-text-dark) !important;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.4rem 0.85rem !important;
  border-radius: 6px;
  transition: color var(--fc-duration-sm), background var(--fc-duration-sm);
}

#mainNav .nav-link:hover {
  color: var(--fc-blue) !important;
  background: rgba(0, 86, 179, 0.06);
}

#mainNav .nav-link.active {
  color: var(--fc-blue) !important;
  font-weight: 700;
}

#mainNav .nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0.85rem;
  right: 0.85rem;
  height: 2px;
  background-color: var(--fc-blue);
  border-radius: 2px;
}

/* ── Buttons ────────────────────────────────────────────────────── */
.btn-fc-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--fc-grad-btn);
  color: #fff;
  font-family: var(--fc-font-body);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: 50px;
  border: none;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0, 86, 179, 0.35);
  transition: transform var(--fc-duration-sm) var(--fc-ease),
    box-shadow var(--fc-duration-sm) var(--fc-ease),
    opacity var(--fc-duration-sm);
  cursor: pointer;
}

.btn-fc-primary:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 86, 179, 0.45);
}

.btn-fc-primary:active {
  transform: translateY(0);
}

.btn-fc-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-family: var(--fc-font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 13px 30px;
  border-radius: 50px;
  border: 1.5px solid rgba(255, 255, 255, 0.42);
  text-decoration: none;
  backdrop-filter: blur(6px);
  transition: background var(--fc-duration-sm), border-color var(--fc-duration-sm), transform var(--fc-duration-sm);
  cursor: pointer;
}

.btn-fc-ghost:hover {
  color: #fff;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.24);
  border-color: rgba(255, 255, 255, 0.7);
  transform: translateY(-2px);
}

.btn-fc-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  color: var(--fc-blue);
  font-family: var(--fc-font-body);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 16px 40px;
  border-radius: 50px;
  border: none;
  text-decoration: none;
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.18);
  transition: transform var(--fc-duration-sm) var(--fc-ease),
    box-shadow var(--fc-duration-sm) var(--fc-ease);
  cursor: pointer;
}

.btn-fc-cta:hover {
  color: var(--fc-blue);
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

/* ── Version Badge ──────────────────────────────────────────────── */
.fc-version-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 20px;
  padding: 4px 16px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: #fff;
  text-transform: uppercase;
}

/* ── Hero Section ───────────────────────────────────────────────── */
.fc-hero {
  background: var(--fc-grad-hero);
  position: relative;
  overflow: hidden;
  padding: 8rem 0 6rem;
  color: #fff;
}

.fc-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(37, 168, 247, 0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(255, 255, 255, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

/* Animated grid overlay */
.fc-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  animation: fc-grid-drift 20s linear infinite;
}

@keyframes fc-grid-drift {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 40px 40px;
  }
}

.fc-hero-title {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  color: #fff;
}

.fc-hero-title .fc-brand-highlight {
  background: linear-gradient(90deg, #fff 0%, #a8d8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.fc-hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 400;
  line-height: 1.7;
  opacity: 0.88;
  max-width: 560px;
  margin-bottom: 2.2rem;
}

.fc-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* ── Section Defaults ───────────────────────────────────────────── */
.fc-section {
  padding: 5rem 0;
}

.fc-section-light {
  background: #fff;
}

.fc-section-subtle {
  background: var(--fc-off-white);
}

.fc-section-dark {
  background: var(--fc-navy);
  color: #fff;
}

.fc-section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fc-sky);
  margin-bottom: 0.75rem;
}

.fc-section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--fc-text-dark);
  margin-bottom: 1rem;
}

.fc-section-title.on-dark {
  color: #fff;
}

.fc-section-lead {
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--fc-text-mid);
  max-width: 680px;
}

.fc-section-lead.on-dark {
  color: rgba(255, 255, 255, 0.75);
}

/* ── Cards ──────────────────────────────────────────────────────── */
.fc-card {
  background: #fff;
  border-radius: var(--fc-card-radius);
  box-shadow: var(--fc-shadow-sm);
  transition: box-shadow var(--fc-duration-md) var(--fc-ease),
    transform var(--fc-duration-md) var(--fc-ease);
  overflow: hidden;
}

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

.fc-feature-card {
  padding: 2rem;
  border-radius: var(--fc-card-radius);
  background: #fff;
  box-shadow: var(--fc-shadow-sm);
  border: 1px solid rgba(0, 86, 179, 0.06);
  transition: box-shadow var(--fc-duration-md) var(--fc-ease),
    transform var(--fc-duration-md) var(--fc-ease),
    border-color var(--fc-duration-md);
  height: 100%;
}

.fc-feature-card:hover {
  box-shadow: var(--fc-shadow-md);
  transform: translateY(-4px);
  border-color: rgba(37, 168, 247, 0.3);
}

.fc-feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(0, 86, 179, 0.1), rgba(37, 168, 247, 0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--fc-blue);
  margin-bottom: 1.25rem;
  flex-shrink: 0;
}

.fc-feature-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fc-text-dark);
  margin-bottom: 0.5rem;
}

.fc-feature-tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fc-sky);
  display: block;
  margin-bottom: 0.3rem;
}

.fc-feature-body {
  font-size: 0.92rem;
  line-height: 1.68;
  color: var(--fc-text-mid);
  margin: 0;
}

/* ── CTA Section ────────────────────────────────────────────────── */
.fc-cta-section {
  background: var(--fc-grad-hero);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
  color: #fff;
  text-align: center;
}

.fc-cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, rgba(37, 168, 247, 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.fc-cta-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.fc-cta-sub {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 2.2rem;
}

/* ── Pain point block ───────────────────────────────────────────── */
.fc-pain-quote {
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--fc-text-dark);
  border-left: 4px solid var(--fc-sky);
  padding-left: 1.5rem;
  margin-bottom: 2rem;
}

.fc-pain-body {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--fc-text-mid);
}

.fc-pain-highlight {
  color: var(--fc-blue);
  font-weight: 700;
}

/* ── Animations ─────────────────────────────────────────────────── */
@keyframes fc-fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fc-animate-1 {
  animation: fc-fade-up 0.6s var(--fc-ease) both;
}

.fc-animate-2 {
  animation: fc-fade-up 0.6s 0.12s var(--fc-ease) both;
}

.fc-animate-3 {
  animation: fc-fade-up 0.6s 0.24s var(--fc-ease) both;
}

.fc-animate-4 {
  animation: fc-fade-up 0.6s 0.36s var(--fc-ease) both;
}

/* ── Timer Visual Decoration ────────────────────────────────────── */
.fc-timer-display {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  backdrop-filter: blur(12px);
  padding: 2rem 2.5rem;
  display: inline-block;
  text-align: center;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.25);
}

.fc-timer-digits {
  font-family: 'Courier New', monospace;
  font-size: 3.5rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.08em;
  line-height: 1;
}

.fc-timer-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 0.5rem;
}

.fc-timer-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
}

.fc-timer-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  animation: fc-pulse-dot 1.4s ease-in-out infinite;
}

@keyframes fc-pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.55;
    transform: scale(0.8);
  }
}

/* ── Stat Chip ──────────────────────────────────────────────────── */
.fc-stat-chip {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  padding: 0.6rem 1rem;
  backdrop-filter: blur(8px);
}

.fc-stat-chip .number {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.fc-stat-chip .label {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 600;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.hero-stats .fc-stat-chip {
  flex: 0 0 auto;
  min-width: 100px;
  text-align: center;
}

@media (max-width: 576px) {
  .hero-stats .fc-stat-chip {
    flex: 1 0 120px;
  }
}
/* ── Download Banner ────────────────────────────────────────────── */
.fc-detected-banner {
  background: #fff;
  border-left: 4px solid var(--fc-sky);
  border-radius: 10px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: var(--fc-shadow-sm);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.fc-detected-banner .icon {
  font-size: 1.5rem;
  color: var(--fc-blue);
  flex-shrink: 0;
}

.fc-detected-banner strong {
  color: var(--fc-blue);
}

/* ── Platform Cards ─────────────────────────────────────────────── */
.fc-platform-card {
  background: #fff;
  border-radius: var(--fc-card-radius);
  box-shadow: var(--fc-shadow-sm);
  overflow: hidden;
  transition: box-shadow var(--fc-duration-md), transform var(--fc-duration-md);
  position: relative;
}

.fc-platform-card:hover {
  box-shadow: var(--fc-shadow-md);
  transform: translateY(-3px);
}

.fc-platform-card.recommended {
  border: 2px solid var(--fc-sky);
}

/* ── Footer ─────────────────────────────────────────────────────── */
.fc-footer {
  background: #000;
  color: rgba(255, 255, 255, 0.5);
}

.fc-footer a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
}

.fc-footer a:hover {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
}

/* ── Download / Docs 通用组件 ───────────────────────────────────── */
.dl-hero-light {
  background: var(--fc-grad-hero);
  padding: 6rem 0 3rem;
  position: relative;
  overflow: hidden;
  color: #fff;
}
.dl-hero-light::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  animation: fc-grid-drift 20s linear infinite;
}
.dl-badge {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.3rem 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  backdrop-filter: blur(4px);
}
.dl-hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 1rem 0 0.75rem;
}
.dl-hero-sub {
  font-size: 1rem;
  opacity: 0.85;
  max-width: 540px;
}
.docs-page .content-container {
  max-width: 100%;
  padding: 0;
}
.docs-page .docs-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 2rem;
}
@media (max-width: 992px) {
  .docs-page .docs-layout {
    grid-template-columns: 1fr;
  }
  .docs-page .floating-nav {
    display: none;
  }
}
.docs-page .floating-nav {
  position: sticky;
  top: 120px;
  background: #fff;
  border-radius: var(--fc-card-radius);
  border: 1px solid rgba(0, 86, 179, 0.08);
  box-shadow: var(--fc-shadow-sm);
  padding: 1.4rem 1.2rem;
  max-height: calc(100vh - 140px);
  overflow-y: auto;
}
.docs-page .floating-nav .nav-link {
  padding: 0.45rem 0;
  margin: 0.25rem 0;
  border-radius: 8px;
  color: var(--fc-text-dark) !important;
  font-weight: 600;
  transition: all 0.2s ease;
}
.docs-page .floating-nav .nav-link:hover {
  background: rgba(37, 168, 247, 0.08);
  text-decoration: none;
}
.docs-page .floating-nav .nav-link.sub-item {
  padding-left: 1.5rem;
  font-size: 0.95rem;
  color: var(--fc-text-mid) !important;
}
.docs-page .card {
  background: #fff;
  border-radius: var(--fc-card-radius);
  box-shadow: var(--fc-shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
}
.docs-page .card-header {
  background: #fff;
  border: none;
  border-bottom: 1px solid #eef2f7;
  padding: 1.25rem 1.5rem;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--fc-text-dark);
}
.docs-page .card-body {
  padding: 1.5rem;
}
.docs-page .card-subtitle {
  color: var(--fc-blue);
  font-weight: 700;
}

/* ── Utility ────────────────────────────────────────────────────── */
.fc-text-gradient {
  background: var(--fc-grad-btn);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.fc-divider {
  width: 48px;
  height: 4px;
  border-radius: 2px;
  background: var(--fc-grad-btn);
  margin-bottom: 1.5rem;
}

/* ═══════════════════════════════════
   通用组件补充（从 index.html 抽离）
   ═══════════════════════════════════ */

/* ── Timer Widget ─────────────────── */
.fc-timer-widget {
  position: relative;
  z-index: 2;
  background: #3d4555;
  border-radius: 18px;
  padding: 20px 36px 18px;
  box-shadow:
    0 0 0 1.5px rgba(255, 255, 255, 0.1),
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 2px 8px rgba(0, 0, 0, 0.3);
  text-align: center;
  min-width: 260px;
}
/* 远程同步状态文字（计时器底部） */
.fc-timer-remote {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  letter-spacing: 0.3px;
}
.fc-timer-digits {
  font-family: "Courier New", "SF Mono", monospace;
  font-size: 4.2rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  line-height: 1;
  transition: color 0.4s;
}

.fc-timer-digits.overtime {
  color: #ff4d4d;
}

.fc-timer-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 8px;
}

.fc-timer-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 0.74rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
}

.fc-timer-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  animation: fc-dot-pulse 1.4s ease-in-out infinite;
}

/* ── Scroll Reveal ───────────────── */
.sr {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.65s var(--fc-ease),
    transform 0.65s var(--fc-ease);
}

.sr.visible {
  opacity: 1;
  transform: translateY(0);
}

.sr-delay-1 {
  transition-delay: 0.1s;
}

.sr-delay-2 {
  transition-delay: 0.2s;
}

.sr-delay-3 {
  transition-delay: 0.3s;
}

.sr-delay-4 {
  transition-delay: 0.4s;
}

/* ── Animation ───────────────────── */
@keyframes fc-dot-pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.75);
  }
}