/* ==========================================================================
   小旋风 (xiaoxuanfeng.xyz) - 2026 极速旋风蓝紫全能落地页主样式表
   ========================================================================== */

:root {
  --bg-dark: #070b14;
  --bg-card: rgba(15, 23, 42, 0.75);
  --bg-card-hover: rgba(30, 41, 59, 0.9);
  --border-color: rgba(56, 189, 248, 0.18);
  --border-glow: rgba(56, 189, 248, 0.5);

  --primary-cyan: #06b6d4;
  --primary-sky: #38bdf8;
  --primary-blue: #3b82f6;
  --primary-purple: #8b5cf6;
  --accent-gold: #fbbf24;
  --accent-green: #10b981;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-sub: #cbd5e1;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --transition-fast: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Setup */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(56, 189, 248, 0.2) 0%, transparent 60%),
    radial-gradient(circle at 100% 40%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 0% 80%, rgba(6, 182, 212, 0.15) 0%, transparent 50%),
    var(--bg-dark);
  min-height: 100vh;
}

a {
  color: var(--primary-sky);
  text-decoration: none;
  transition: all var(--transition-fast);
}

a:hover {
  color: #7dd3fc;
  text-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 90px 0;
}

.text-gradient {
  background: linear-gradient(135deg, #38bdf8 0%, #60a5fa 50%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Glassmorphism Panel */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-lg);
}

/* Button Component */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 50%, #7c3aed 100%);
  color: #fff !important;
  font-weight: 700;
  border-radius: 50px;
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.4);
  transition: all var(--transition-fast);
  border: none;
  cursor: pointer;
  text-decoration: none !important;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(56, 189, 248, 0.6);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  background: rgba(30, 41, 59, 0.8);
  color: var(--text-main) !important;
  font-weight: 600;
  border-radius: 50px;
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
  cursor: pointer;
  text-decoration: none !important;
}

.btn-secondary:hover {
  background: rgba(51, 65, 85, 0.9);
  border-color: var(--primary-sky);
  color: #fff !important;
  transform: translateY(-2px);
}

/* Header Navigation */
.header-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 11, 20, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  height: 76px;
  display: flex;
  align-items: center;
}

.nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none !important;
}

.logo-img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.logo-text {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
}

.logo-badge {
  font-size: 0.72rem;
  padding: 3px 8px;
  background: rgba(56, 189, 248, 0.15);
  color: var(--primary-sky);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 20px;
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--text-sub);
  font-weight: 500;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--primary-sky);
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 4px;
}

.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 76px;
  left: 0;
  right: 0;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 24px;
  z-index: 99;
}

.mobile-nav-drawer.active {
  display: block;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mobile-nav-links a {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-main);
  display: block;
}

/* Section Header */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  color: var(--primary-sky);
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.3rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
  color: #fff;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Hero Section */
.hero-section-xyz {
  padding: 80px 0 90px;
  position: relative;
}

.hero-layout-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: center;
}

.hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: 30px;
  color: #c084fc;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.hero-title-xyz {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero-subtitle-xyz {
  font-size: 1.15rem;
  color: var(--text-sub);
  margin-bottom: 36px;
  line-height: 1.8;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero Right Status Panel */
.hero-right-card {
  padding: 32px;
}

.hero-right-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.status-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--accent-green);
  font-weight: 600;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  background-color: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent-green);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.spec-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(15, 23, 42, 0.6);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.spec-label {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.spec-val {
  color: var(--primary-sky);
  font-weight: 700;
  font-size: 0.95rem;
}

/* Ping Monitor Cards */
.ping-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.ping-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  transition: transform var(--transition-fast);
}

.ping-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary-sky);
}

.node-title {
  font-weight: 700;
  color: #fff;
  font-size: 1rem;
  margin-bottom: 4px;
}

.node-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.ping-right-badge {
  text-align: right;
}

.ping-val {
  font-weight: 800;
  color: var(--accent-green);
  font-size: 1.1rem;
}

.ping-bar-bg {
  width: 70px;
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 6px;
}

.ping-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #34d399);
  border-radius: 10px;
  transition: width 0.5s ease;
}

/* Features Grid */
.features-grid-xyz {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.feature-box-xyz {
  padding: 36px;
  transition: all var(--transition-fast);
}

.feature-box-xyz:hover {
  transform: translateY(-5px);
  border-color: var(--primary-sky);
  box-shadow: 0 12px 40px rgba(56, 189, 248, 0.2);
}

.feature-box-icon {
  font-size: 2.5rem;
  margin-bottom: 20px;
}

.feature-box-xyz h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #fff;
}

.feature-box-xyz p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.7;
}

/* Pricing Matrix */
.pricing-matrix-xyz {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
  align-items: stretch;
}

.pricing-card-xyz {
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: all var(--transition-fast);
}

.pricing-card-xyz:hover {
  transform: translateY(-6px);
  border-color: var(--primary-sky);
}

.pricing-card-xyz.recommended {
  border: 2px solid var(--primary-sky);
  background: rgba(30, 58, 138, 0.4);
  box-shadow: 0 16px 48px rgba(56, 189, 248, 0.3);
}

.badge-ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #0284c7, #3b82f6);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 16px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(56, 189, 248, 0.4);
  white-space: nowrap;
}

.card-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}

.card-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  min-height: 40px;
}

.card-price-row {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.price-num {
  font-size: 2.8rem;
  font-weight: 900;
  color: #fff;
}

.price-unit {
  font-size: 1rem;
  color: var(--text-muted);
  font-weight: 500;
}

.feature-check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
}

.feature-check-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-sub);
}

.feature-check-list svg {
  width: 18px;
  height: 18px;
  color: var(--primary-sky);
  flex-shrink: 0;
}

/* User Testimonials Section */
.testimonials-wrapper-xyz {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.review-card-xyz {
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.review-stars {
  color: var(--accent-gold);
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.review-body {
  font-size: 0.98rem;
  color: var(--text-sub);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-cyan), var(--primary-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  font-size: 1.1rem;
}

.author-meta h4 {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.author-meta span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* FAQ Accordion Section */
.faq-accordion-container {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.faq-item-xyz {
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-question-btn {
  width: 100%;
  padding: 22px 28px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-icon-arrow {
  font-size: 1.2rem;
  color: var(--primary-sky);
  transition: transform var(--transition-fast);
}

.faq-item-xyz.active .faq-icon-arrow {
  transform: rotate(180deg);
}

.faq-answer-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0 28px;
  color: var(--text-sub);
  font-size: 0.98rem;
  line-height: 1.8;
}

.faq-item-xyz.active .faq-answer-content {
  max-height: 300px;
  padding: 0 28px 24px;
}

/* Articles Grid Section */
.articles-grid-xyz {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.article-card-xyz {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition-fast);
}

.article-card-xyz:hover {
  transform: translateY(-4px);
  border-color: var(--primary-sky);
}

.art-badge {
  display: inline-block;
  font-size: 0.75rem;
  padding: 3px 10px;
  background: rgba(56, 189, 248, 0.12);
  color: var(--primary-sky);
  border-radius: 12px;
  font-weight: 600;
}

.art-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
  margin: 12px 0 10px;
  line-height: 1.4;
}

.art-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.art-read-more {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-sky);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Article Detail Page Layout */
.article-page {
  padding: 50px 0 90px;
}

.article-container {
  padding: 48px;
  max-width: 900px;
  margin: 0 auto;
}

.breadcrumb {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--text-muted);
}

.breadcrumb a:hover {
  color: var(--primary-sky);
}

.article-header-title {
  font-size: 2.3rem;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 18px;
  color: #fff;
}

.article-header-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 32px;
}

.article-body {
  font-size: 1.05rem;
  line-height: 1.9;
  color: var(--text-sub);
}

.article-body h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: #fff;
  margin: 36px 0 16px;
  padding-left: 14px;
  border-left: 4px solid var(--primary-sky);
}

.article-body h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin: 24px 0 12px;
}

.article-body p {
  margin-bottom: 20px;
}

.article-body ul, .article-body ol {
  margin: 0 0 24px 24px;
}

.article-body li {
  margin-bottom: 10px;
}

.article-callout {
  background: rgba(56, 189, 248, 0.08);
  border-left: 4px solid var(--primary-sky);
  padding: 20px;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 28px 0;
  font-size: 0.98rem;
}

.article-cta-box {
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.4), rgba(88, 28, 135, 0.4));
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px;
  text-align: center;
  margin: 40px 0;
}

.article-cta-box h3 {
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 12px;
}

.article-cta-box p {
  color: var(--text-sub);
  margin-bottom: 24px;
}

/* Footer & PBN Links (Core Task 2) */
footer {
  background: rgba(4, 7, 13, 0.95);
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
  margin-top: 60px;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 14px;
  max-width: 320px;
}

.footer-col h5 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 18px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 30px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* 【Core Task 2: 页脚 PBN 权重精准输血管道】 */
.footer-friend-links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 6px;
  opacity: 0.85;
}

.footer-friend-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-friend-links a:hover {
  color: var(--primary-sky);
  text-decoration: underline;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-layout-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-cta-btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .hero-title-xyz {
    font-size: 2.3rem;
  }
  .hero-subtitle-xyz {
    font-size: 1rem;
  }
  .section-title {
    font-size: 1.8rem;
  }
  .article-container {
    padding: 24px;
  }
  .article-header-title {
    font-size: 1.7rem;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Download Modal & Download Center Responsive Styles (Mobile-First)
   ========================================================================== */

/* Prevent Body Scroll when Modal Opened */
body.modal-open {
  overflow: hidden !important;
  touch-action: none;
}

/* Modal Overlay Container */
.download-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: rgba(4, 7, 13, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.download-modal-overlay.active {
  display: flex;
  opacity: 1;
}

/* Modal Content Card */
.download-modal-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid var(--border-glow);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8), 0 0 32px rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-sizing: border-box;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.download-modal-overlay.active .download-modal-card {
  transform: translateY(0) scale(1);
}

/* Modal Close Button */
.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover,
.modal-close-btn:focus-visible {
  color: #fff;
  background: rgba(239, 68, 68, 0.8);
  border-color: #ef4444;
  outline: none;
}

/* Modal Header */
.modal-header {
  text-align: center;
  margin-bottom: 24px;
  padding-right: 20px;
  padding-left: 20px;
}

.modal-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.35;
  margin-bottom: 8px;
}

.modal-subtitle {
  font-size: 0.92rem;
  color: var(--text-sub);
  line-height: 1.5;
}

/* Modal Platform Actions (Only Android & iOS) */
.modal-platform-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.modal-platform-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: #fff !important;
  text-decoration: none !important;
  transition: all var(--transition-fast);
  min-height: 48px;
}

.modal-platform-item:hover,
.modal-platform-item:focus-visible {
  background: rgba(56, 189, 248, 0.12);
  border-color: var(--primary-sky);
  transform: translateY(-2px);
  outline: 2px solid var(--primary-sky);
  outline-offset: 2px;
}

.modal-platform-item.primary-platform {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.25), rgba(59, 130, 246, 0.25));
  border-color: rgba(56, 189, 248, 0.4);
}

.modal-platform-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  color: var(--primary-sky);
}

.modal-platform-info {
  flex: 1;
}

.modal-platform-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-platform-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.modal-platform-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.modal-platform-arrow {
  color: var(--primary-sky);
  font-size: 1.1rem;
  font-weight: 700;
}

/* Modal Fallback / Download Center Link */
.modal-footer-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
}

.modal-footer-note a {
  color: var(--primary-sky);
  text-decoration: underline;
}

/* ----------------------------------------------------
   Download Center Page Styles (/download/)
   ---------------------------------------------------- */
.download-page-hero {
  padding: 130px 0 60px;
  text-align: center;
}

.download-hero-content {
  max-width: 860px;
  margin: 0 auto;
}

.download-hero-title {
  font-size: 2.6rem;
  font-weight: 900;
  line-height: 1.25;
  margin: 16px 0 20px;
}

.download-hero-desc {
  font-size: 1.08rem;
  color: var(--text-sub);
  line-height: 1.7;
  margin-bottom: 48px;
}

.download-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  text-align: left;
  margin-top: 20px;
}

.download-platform-card {
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  transition: all var(--transition-fast);
}

.download-platform-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-sky);
  box-shadow: 0 16px 48px rgba(56, 189, 248, 0.2);
}

.platform-icon-wrap {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.platform-icon-wrap.android {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.platform-icon-wrap.ios {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.platform-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.platform-meta-badge {
  display: inline-block;
  font-size: 0.78rem;
  color: var(--primary-sky);
  background: rgba(56, 189, 248, 0.1);
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 20px;
  font-weight: 600;
  align-self: flex-start;
}

.platform-feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.platform-feature-list li {
  font-size: 0.92rem;
  color: var(--text-sub);
  line-height: 1.5;
}

.platform-btn-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.platform-download-btn {
  width: 100%;
  padding: 14px 20px;
  font-size: 1rem;
  text-align: center;
}

.platform-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: center;
}

/* Steps Grid */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.step-card {
  padding: 30px 24px;
  border-radius: var(--radius-md);
  position: relative;
}

.step-number {
  font-size: 2.2rem;
  font-weight: 900;
  color: rgba(56, 189, 248, 0.25);
  line-height: 1;
  margin-bottom: 12px;
}

.step-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.step-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Small Screen Optimizations for Modal & Download */
@media (max-width: 480px) {
  .download-modal-card {
    padding: 24px 18px;
    border-radius: 16px;
  }
  .modal-title {
    font-size: 1.25rem;
  }
  .modal-subtitle {
    font-size: 0.84rem;
  }
  .modal-platform-item {
    padding: 12px 14px;
  }
  .download-hero-title {
    font-size: 1.9rem;
  }
}
