/* ==========================================================================
   小鸡快跑云 Xiaojkp Cloud - 官方落地页与文章系统样式表 (css/style.css)
   【黄色主视觉主题 Yellow Theme】
   完全适配 100% 响应式移动端、SEO 优化与 PBN 权重输血友情链接区
   ========================================================================== */

:root {
  --bg-dark: #fef08a; /* 活力小鸡黄基础色 */
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-card-hover: #ffffff;
  --border-color: rgba(217, 119, 6, 0.22);
  --border-highlight: rgba(217, 119, 6, 0.6);
  
  --primary: #d97706; /* 沉稳琥珀金黄主色 */
  --primary-hover: #b45309;
  --primary-gradient: linear-gradient(135deg, #ea580c 0%, #d97706 50%, #ca8a04 100%);
  --accent-gold: #b45309;
  --accent-orange: #ea580c;
  --accent-green: #15803d;
  --accent-pink: #be185d;
  
  --text-main: #0f172a; /* 高对比度深色文本，保障黄底极佳可读性 */
  --text-sub: #334155;
  --text-muted: #64748b;
  
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-glow: 0 10px 30px -10px rgba(217, 119, 6, 0.35);
  --shadow-card: 0 20px 40px -15px rgba(180, 83, 9, 0.12);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  scroll-behavior: smooth;
  line-height: 1.6;
}

body {
  overflow-x: hidden;
  background: radial-gradient(circle at 50% 0%, #fef9c3 0%, #fef08a 45%, #fde047 100%);
  min-height: 100vh;
  color: var(--text-main);
}

/* 常用容器 */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.text-gradient {
  background: linear-gradient(135deg, #9a3412 0%, #c2410c 50%, #b45309 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

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

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 50px auto;
}

.section-tag {
  display: inline-block;
  padding: 4px 14px;
  background: rgba(217, 119, 6, 0.15);
  border: 1px solid rgba(217, 119, 6, 0.3);
  border-radius: 20px;
  color: #b45309;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 12px;
  text-transform: uppercase;
}

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

.section-desc {
  color: var(--text-sub);
  font-size: 1.05rem;
}

/* 按钮基础组件 */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--primary-gradient);
  color: #ffffff;
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: var(--shadow-glow);
  transition: var(--transition);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px -5px rgba(217, 119, 6, 0.5);
  color: #ffffff;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.8);
  color: #78350f;
  border: 1px solid rgba(217, 119, 6, 0.3);
  padding: 12px 28px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: #ffffff;
  border-color: var(--primary);
  color: #b45309;
}

/* 浮动导航栏 Header Dock */
.header-dock {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 40px);
  max-width: 1200px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(217, 119, 6, 0.25);
  border-radius: 50px;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(180, 83, 9, 0.15);
  transition: var(--transition);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #0f172a;
  font-weight: 800;
  font-size: 1.15rem;
}

.brand-logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  filter: drop-shadow(0 4px 8px rgba(217, 119, 6, 0.25));
  transition: transform 0.3s ease;
}

.brand-logo:hover img {
  transform: scale(1.08) rotate(-5deg);
}

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

.nav-links a {
  color: #475569;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: var(--transition);
}

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

.header-cta-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #0f172a;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}

/* Hero Section */
.hero-section {
  padding-top: 160px;
  padding-bottom: 80px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(217, 119, 6, 0.35);
  border-radius: 20px;
  color: #9a3412;
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 20px;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.1);
}

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

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

.hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -1px;
  color: #0f172a;
}

.hero-desc {
  font-size: 1.15rem;
  color: #334155;
  margin-bottom: 30px;
  line-height: 1.7;
}

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

.hero-bullet-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #0f172a;
  font-size: 0.98rem;
  font-weight: 600;
}

.hero-bullet-list li span.icon {
  color: var(--accent-green);
  font-weight: bold;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero Visual Console Card */
.hero-console-card {
  background: #0f172a; /* 深色终端卡片形成极其醒目的视错觉对比 */
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: 0 20px 50px rgba(180, 83, 9, 0.25);
  position: relative;
  color: #f8fafc;
}

.console-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 20px;
}

.console-dots {
  display: flex;
  gap: 6px;
}

.console-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.console-dots span:nth-child(1) { background: #ef4444; }
.console-dots span:nth-child(2) { background: #f59e0b; }
.console-dots span:nth-child(3) { background: #10b981; }

.console-title {
  font-size: 0.85rem;
  color: #94a3b8;
  font-family: monospace;
}

.console-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.stat-box {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 16px;
}

.stat-box .label {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 4px;
}

.stat-box .val {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fbbf24;
}

.speed-meter-bg {
  height: 6px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  margin-top: 8px;
  overflow: hidden;
}

.speed-meter-fill {
  height: 100%;
  width: 94%;
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
  border-radius: 3px;
}

/* Features Section */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-highlight);
  box-shadow: var(--shadow-glow);
  background: var(--bg-card-hover);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(217, 119, 6, 0.12);
  border: 1px solid rgba(217, 119, 6, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: #0f172a;
}

.feature-card p {
  color: var(--text-sub);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Node Probe Table / Grid */
.monitor-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  overflow-x: auto;
  box-shadow: var(--shadow-card);
}

.node-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.node-table th {
  padding: 14px 16px;
  font-size: 0.85rem;
  color: #64748b;
  border-bottom: 1px solid var(--border-color);
  text-transform: uppercase;
  font-weight: 700;
}

.node-table td {
  padding: 16px;
  border-bottom: 1px solid rgba(217, 119, 6, 0.1);
  font-size: 0.95rem;
  color: #0f172a;
  font-weight: 500;
}

.node-flag {
  margin-right: 8px;
  font-size: 1.1rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  background: rgba(21, 128, 61, 0.15);
  color: #15803d;
}

.ping-tag {
  font-family: monospace;
  font-weight: 800;
  color: #b45309;
}

/* Pricing Section */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}

.pricing-card.popular {
  border-color: #d97706;
  background: #ffffff;
  box-shadow: 0 15px 35px -5px rgba(217, 119, 6, 0.35);
  transform: scale(1.02);
}

.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary-gradient);
  color: #ffffff;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.plan-name {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: #0f172a;
}

.plan-desc {
  color: var(--text-sub);
  font-size: 0.88rem;
  margin-bottom: 20px;
}

.plan-price {
  font-size: 2.5rem;
  font-weight: 900;
  color: #b45309;
  margin-bottom: 20px;
}

.plan-price span {
  font-size: 0.9rem;
  color: var(--text-sub);
  font-weight: 500;
}

.plan-features {
  list-style: none;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  color: #1e293b;
  font-weight: 500;
}

.plan-features li .check {
  color: var(--accent-green);
  font-weight: bold;
}

/* Articles Column Grid */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 24px;
}

.article-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-decoration: none;
  color: var(--text-main);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-highlight);
  background: #ffffff;
  box-shadow: 0 15px 30px rgba(180, 83, 9, 0.15);
}

.article-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #b45309;
  background: rgba(217, 119, 6, 0.12);
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 12px;
}

.article-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 10px;
  color: #0f172a;
}

.article-card p {
  color: var(--text-sub);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-bottom: 16px;
}

.article-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-muted);
  border-top: 1px solid rgba(217, 119, 6, 0.15);
  padding-top: 12px;
}

.read-more-link {
  color: #b45309;
  font-weight: 700;
}

/* User Reviews Section */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
}

.review-stars {
  color: #ea580c;
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.review-content {
  color: var(--text-sub);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 20px;
  font-style: italic;
}

.review-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
}

.user-name {
  font-weight: 800;
  font-size: 0.95rem;
  color: #0f172a;
}

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

/* FAQ Accordion Section */
.faq-list {
  max-width: 850px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  box-shadow: var(--shadow-card);
}

.faq-question {
  padding: 20px 24px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
}

.faq-question:hover {
  color: #b45309;
}

.faq-toggle-icon {
  font-size: 0.8rem;
  transition: transform 0.3s ease;
  color: var(--text-muted);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 24px;
  color: var(--text-sub);
  font-size: 0.95rem;
  line-height: 1.7;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-toggle-icon {
  transform: rotate(180deg);
  color: var(--primary);
}

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

/* Footer Section & Core Task 2 PBN Backlink Pipeline */
.site-footer {
  background: #1c1917; /* 沉稳黑金页脚 */
  border-top: 1px solid rgba(251, 191, 36, 0.2);
  padding: 60px 0 30px 0;
  color: #f8fafc;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  color: #ffffff;
}

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

.footer-nav {
  display: flex;
  gap: 20px;
  list-style: none;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-nav a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-nav a:hover {
  color: #fbbf24;
}

/* 【核心任务 2】低调美观小字号友情链接区（精确定制） */
.friend-links-zone {
  margin-top: 10px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed rgba(251, 191, 36, 0.25);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: #9ca3af;
}

.friend-links-title {
  font-weight: 600;
  color: #9ca3af;
}

.friend-links-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.friend-links-group a {
  color: #fef08a;
  text-decoration: none;
  font-size: 0.8rem;
  transition: color 0.2s ease;
}

.friend-links-group a:hover {
  color: #fbbf24;
  text-decoration: underline;
}

.footer-copyright {
  font-size: 0.82rem;
  color: #9ca3af;
  margin-top: 10px;
}

/* --------------------------------------------------------------------------
   文章详情页 (Article Detail Page) 专用样式
   -------------------------------------------------------------------------- */
.article-header-section {
  padding-top: 150px;
  padding-bottom: 40px;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, #fef9c3 0%, #fef08a 80%);
}

.article-header-container {
  max-width: 850px;
  margin: 0 auto;
  padding: 0 20px;
}

.article-meta-badge {
  display: inline-flex;
  gap: 16px;
  font-size: 0.85rem;
  color: #475569;
  margin-bottom: 16px;
  font-weight: 600;
}

.article-page-title {
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 20px;
  color: #0f172a;
}

.article-body-container {
  max-width: 850px;
  margin: 0 auto 80px auto;
  padding: 0 20px;
}

.article-content {
  background: #ffffff;
  border: 1px solid rgba(217, 119, 6, 0.2);
  border-radius: var(--radius-lg);
  padding: 40px;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #1e293b;
  box-shadow: 0 20px 40px -15px rgba(180, 83, 9, 0.12);
}

.article-content h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 36px 0 18px 0;
  color: #0f172a;
  border-left: 4px solid var(--primary);
  padding-left: 12px;
}

.article-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 24px 0 14px 0;
  color: #b45309;
}

.article-content p {
  margin-bottom: 20px;
  color: #334155;
}

.article-content ul, .article-content ol {
  margin-bottom: 24px;
  padding-left: 24px;
}

.article-content li {
  margin-bottom: 8px;
}

.article-content blockquote {
  background: rgba(254, 243, 199, 0.8);
  border-left: 4px solid #d97706;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 16px 20px;
  margin: 24px 0;
  color: #78350f;
  font-style: italic;
  font-weight: 500;
}

.article-cta-box {
  background: linear-gradient(135deg, #fff7ed 0%, #fef3c7 100%);
  border: 1px solid #d97706;
  border-radius: var(--radius-md);
  padding: 28px;
  margin: 36px 0;
  text-align: center;
}

.article-cta-box h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
  color: #78350f;
}

.article-cta-box p {
  font-size: 0.95rem;
  color: #92400e;
  margin-bottom: 20px;
}

.back-to-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #b45309;
  text-decoration: none;
  font-weight: 700;
  margin-bottom: 20px;
}

.back-to-home:hover {
  text-decoration: underline;
}

/* 响应式断点控制 Responsive Rules */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-bullet-list {
    align-items: center;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-title {
    font-size: 2.5rem;
  }
}

@media (max-width: 768px) {
  .header-dock {
    width: calc(100% - 24px);
    padding: 10px 16px;
  }
  
  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border-color);
    display: none;
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .hero-title {
    font-size: 2.1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }
  
  .article-content {
    padding: 24px;
  }
  
  .article-page-title {
    font-size: 1.8rem;
  }
  
  .friend-links-zone {
    flex-direction: column;
    gap: 8px;
  }
}

/* ==========================================================================
   下载弹窗与下载中心专有样式 (Download Modal & Download Center)
   ========================================================================== */

/* 弹窗背景遮罩 */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* 弹窗主体卡片 */
.modal-card {
  position: relative;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: 0 25px 50px -12px rgba(180, 83, 9, 0.35);
  width: 100%;
  max-width: 480px;
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 32px 24px;
  transform: scale(0.94);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* 弹窗关闭按钮 */
.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(217, 119, 6, 0.1);
  border: none;
  font-size: 20px;
  line-height: 1;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: var(--primary);
  color: #ffffff;
}

.modal-header {
  text-align: center;
  margin-bottom: 24px;
}

.modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: rgba(217, 119, 6, 0.15);
  border: 1px solid rgba(217, 119, 6, 0.3);
  border-radius: 20px;
  color: #b45309;
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 8px;
  line-height: 1.3;
}

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

/* 弹窗平台按钮列表 (仅 Android 和 iOS) */
.modal-platforms {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}

.platform-btn {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: var(--transition);
  border: 1px solid var(--border-color);
  min-height: 48px;
}

.platform-btn:focus-visible,
.modal-close-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.platform-android {
  background: linear-gradient(135deg, rgba(22, 101, 52, 0.08) 0%, rgba(254, 240, 138, 0.4) 100%);
  border-color: rgba(22, 101, 52, 0.25);
}

.platform-android:hover {
  background: linear-gradient(135deg, rgba(22, 101, 52, 0.15) 0%, rgba(254, 240, 138, 0.6) 100%);
  transform: translateY(-2px);
  box-shadow: 0 10px 20px -5px rgba(22, 101, 52, 0.2);
}

.platform-ios {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.08) 0%, rgba(255, 255, 255, 0.9) 100%);
  border-color: rgba(217, 119, 6, 0.25);
}

.platform-ios:hover {
  background: linear-gradient(135deg, rgba(217, 119, 6, 0.16) 0%, rgba(255, 255, 255, 1) 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.platform-icon {
  font-size: 2rem;
  margin-right: 14px;
  flex-shrink: 0;
}

.platform-info {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.platform-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-main);
  line-height: 1.3;
}

.platform-tip {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.3;
  margin-top: 2px;
}

.platform-action {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--primary);
  flex-shrink: 0;
  margin-left: 8px;
}

.modal-footer-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  border-top: 1px dashed var(--border-color);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.modal-more-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

.modal-more-link:hover {
  text-decoration: underline;
}

/* 弹窗打开时页面防滚动 */
body.modal-open {
  overflow: hidden !important;
  touch-action: none;
}

/* 下载中心专有卡片与步骤网格 */
.download-hero-section {
  padding-top: 120px;
}

.device-detect-box {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  box-shadow: var(--shadow-card);
  gap: 16px;
  flex-wrap: wrap;
}

.device-detect-content {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-main);
  font-weight: 600;
}

.detect-badge {
  padding: 4px 10px;
  background: var(--primary);
  color: #ffffff;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.download-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 28px;
  margin-bottom: 40px;
}

.download-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}

.download-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-highlight);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.download-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.platform-big-icon {
  font-size: 2.8rem;
  line-height: 1;
}

.platform-meta h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-main);
}

.platform-version {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.download-card-desc {
  font-size: 0.95rem;
  color: var(--text-sub);
  margin-bottom: 20px;
  line-height: 1.6;
}

.platform-download-cta {
  width: 100%;
  margin-top: 24px;
}

.bg-light-section {
  background: rgba(255, 255, 255, 0.6);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 24px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
  box-shadow: var(--shadow-card);
}

.step-num {
  font-size: 2.2rem;
  font-weight: 900;
  color: rgba(217, 119, 6, 0.25);
  margin-bottom: 8px;
  line-height: 1;
}

.step-title {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--text-main);
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-sub);
  line-height: 1.6;
}

/* 极端窄屏与小手机适配 (320px ~ 430px) */
@media (max-width: 480px) {
  .header-dock {
    width: calc(100% - 16px);
    top: 10px;
    padding: 8px 12px;
  }
  .brand-logo span {
    font-size: 0.95rem;
  }
  .btn-primary, .btn-secondary {
    padding: 10px 18px;
    font-size: 0.92rem;
    min-height: 44px;
  }
  .header-cta-group .btn-primary {
    display: none; /* 小屏手机顶部空间极有限，优先显示汉堡按钮，菜单内拥有完整导航 */
  }
  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }
  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary {
    width: 100%;
    min-height: 44px;
  }
  .modal-card {
    padding: 24px 16px;
    border-radius: var(--radius-md);
  }
  .modal-title {
    font-size: 1.3rem;
  }
  .platform-btn {
    padding: 12px 14px;
  }
  .device-detect-box {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }
  .device-detect-content {
    flex-direction: column;
  }
}

