/* ==============================================================================
   QsyRemote 奇思远程 - 官方网站与教程门户样式表
   Design System: Glassmorphism / Cyber-Tech Dark & Light / Ultra-Smooth Transitions
   ============================================================================== */

:root {
  /* Core Colors */
  --primary-hue: 238;
  --primary: hsl(var(--primary-hue), 82%, 60%);
  --primary-hover: hsl(var(--primary-hue), 85%, 66%);
  --primary-active: hsl(var(--primary-hue), 90%, 54%);
  --primary-glow: hsla(var(--primary-hue), 82%, 60%, 0.35);

  --accent-cyan: #06b6d4;
  --accent-purple: #a855f7;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* Layout */
  --container-max: 1240px;
  --header-height: 72px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Mode Variables (Default) */
[data-theme="dark"] {
  --bg-body: #090d16;
  --bg-surface: rgba(18, 24, 38, 0.75);
  --bg-surface-elevated: rgba(28, 36, 56, 0.85);
  --bg-surface-hover: rgba(35, 45, 70, 0.95);
  --bg-subtle: rgba(255, 255, 255, 0.04);
  
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-faint: #64748b;
  
  --border-light: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(99, 102, 241, 0.5);
  --border-glow: rgba(99, 102, 241, 0.3);

  --glass-blur: blur(20px);
  --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), 0 0 1px 1px rgba(255, 255, 255, 0.05);
  --card-shadow-hover: 0 20px 40px -15px rgba(0, 0, 0, 0.7), 0 0 20px 2px var(--primary-glow);
  --window-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1);

  --hero-glow-1: rgba(99, 102, 241, 0.22);
  --hero-glow-2: rgba(6, 182, 212, 0.18);
  --code-bg: #0d121f;
}

/* Light Mode Variables */
[data-theme="light"] {
  --bg-body: #f8fafc;
  --bg-surface: rgba(255, 255, 255, 0.85);
  --bg-surface-elevated: rgba(255, 255, 255, 0.95);
  --bg-surface-hover: #ffffff;
  --bg-subtle: rgba(0, 0, 0, 0.03);
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-faint: #94a3b8;
  
  --border-light: rgba(0, 0, 0, 0.08);
  --border-focus: rgba(99, 102, 241, 0.6);
  --border-glow: rgba(99, 102, 241, 0.2);

  --glass-blur: blur(20px);
  --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08), 0 0 1px 1px rgba(0, 0, 0, 0.04);
  --card-shadow-hover: 0 20px 40px -15px rgba(0, 0, 0, 0.15), 0 0 20px 2px var(--primary-glow);
  --window-shadow: 0 20px 50px -12px rgba(0, 0, 0, 0.18), 0 0 0 1px rgba(0, 0, 0, 0.08);

  --hero-glow-1: rgba(99, 102, 241, 0.12);
  --hero-glow-2: rgba(6, 182, 212, 0.1);
  --code-bg: #f1f5f9;
}

/* ==============================================================================
   Reset & Base Styles
   ============================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color var(--transition-normal), color var(--transition-normal);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

img, svg {
  vertical-align: middle;
  max-width: 100%;
}

button, input, select {
  font: inherit;
  color: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ==============================================================================
   Utility & Glassmorphism Components
   ============================================================================== */
.glass-card {
  background: var(--bg-surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: var(--card-shadow);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), border-color var(--transition-normal);
}

.glass-card:hover {
  border-color: var(--border-glow);
}

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

.text-center { text-align: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-normal);
  white-space: nowrap;
  user-select: none;
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff !important;
  box-shadow: 0 4px 14px 0 var(--primary-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px 2px var(--primary-glow);
}

.btn-glow {
  position: relative;
  overflow: hidden;
}

.btn-glow::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn-glow:hover::after {
  opacity: 1;
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  border-color: var(--border-light);
  color: var(--text-main);
  backdrop-filter: var(--glass-blur);
}

.btn-secondary:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-glow);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

.btn-text {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.btn-text:hover {
  color: var(--primary-hover);
}

/* Badges */
.badge-tag {
  display: inline-block;
  padding: 4px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
}

.badge-tag.green {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-tag.blue {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.badge-tag.purple {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
  border: 1px solid rgba(168, 85, 247, 0.3);
}

/* ==============================================================================
   Header & Announcement Bar
   ============================================================================== */
.announcement-bar {
  background: linear-gradient(90deg, #4f46e5 0%, #06b6d4 100%);
  color: #ffffff;
  padding: 8px 16px;
  font-size: 0.8125rem;
  text-align: center;
}

.announcement-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.badge-pulse {
  background: #ffffff;
  color: #4f46e5;
  font-weight: 700;
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  animation: pulseAnim 2s infinite;
}

@keyframes pulseAnim {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.85; transform: scale(1.05); }
}

.announcement-link {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-surface);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-light);
  height: var(--header-height);
  transition: all var(--transition-normal);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform var(--transition-fast);
}

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

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="light"] .brand-name {
  background: linear-gradient(135deg, #0f172a 0%, #334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-sub {
  font-size: 0.75rem;
  color: var(--text-faint);
  line-height: 1;
}

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

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.theme-toggle-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-full);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

.theme-toggle-btn:hover {
  color: var(--text-main);
  border-color: var(--border-glow);
  background: var(--bg-surface-elevated);
}

[data-theme="dark"] .theme-toggle-btn .moon-icon { display: none; }
[data-theme="dark"] .theme-toggle-btn .sun-icon { display: block; }
[data-theme="light"] .theme-toggle-btn .sun-icon { display: none; }
[data-theme="light"] .theme-toggle-btn .moon-icon { display: block; }

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
}

.mobile-menu-btn span {
  width: 100%;
  height: 2px;
  background-color: var(--text-main);
  border-radius: 2px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.mobile-drawer {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  background: var(--bg-surface);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--border-light);
  padding: 24px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.mobile-drawer.open {
  display: block;
}

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

.mobile-nav-link {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--text-main);
  display: block;
  padding: 6px 0;
}

/* ==============================================================================
   Hero Section
   ============================================================================== */
.hero-section {
  position: relative;
  padding: 80px 0 100px;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(circle, var(--hero-glow-1) 0%, var(--hero-glow-2) 40%, transparent 70%);
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-light);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.pill-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-emerald);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-emerald);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 820px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-description strong {
  color: var(--text-main);
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.hero-specs-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  padding: 16px 24px;
  background: var(--bg-subtle);
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
}

.spec-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.spec-number {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text-main);
}

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

.spec-divider {
  width: 1px;
  height: 24px;
  background: var(--border-light);
}

/* Hero Visual Mockup */
.hero-visual {
  width: 100%;
  max-width: 960px;
  margin-top: 56px;
}

.app-window-mockup {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--window-shadow);
  border: 1px solid var(--border-light);
  background: var(--bg-surface-elevated);
  text-align: left;
}

.window-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border-light);
}

.window-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.control-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.control-dot.close { background-color: #ff5f56; }
.control-dot.min { background-color: #ffbd2e; }
.control-dot.max { background-color: #27c93f; }

.window-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}

.window-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.2);
  color: #10b981;
}

.window-body {
  padding: 24px;
}

.mock-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.mock-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9375rem;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 12px;
}

.mock-field label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-faint);
  margin-bottom: 6px;
  font-weight: 500;
}

.mock-id-box, .mock-pin-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}

.mock-val {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #38bdf8;
}

.mock-copy-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-light);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mock-copy-btn:hover {
  background: var(--primary);
  color: #fff;
}

.mock-net-info {
  background: rgba(0, 0, 0, 0.15);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.net-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
}

.net-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.net-dot.active { background: #10b981; }
.net-dot.cf-active { background: #06b6d4; }

.mock-btn {
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.875rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mock-btn-cf {
  background: var(--bg-subtle);
  border-color: var(--border-light);
  color: var(--text-main);
}

.mock-btn-connect {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #fff;
  box-shadow: 0 4px 14px var(--primary-glow);
}

.mock-input {
  width: 100%;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.9375rem;
}

.mock-tips-box {
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.75rem;
  color: #a5b4fc;
}

.mock-toolbar-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ==============================================================================
   Features Section
   ============================================================================== */
.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  max-width: 720px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.25;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-muted);
}

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

.feature-card {
  padding: 32px;
  display: flex;
  flex-direction: column;
}

.feature-icon-wrapper {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.icon-blue { background: rgba(99, 102, 241, 0.15); color: #818cf8; }
.icon-cyan { background: rgba(6, 182, 212, 0.15); color: #22d3ee; }
.icon-purple { background: rgba(168, 85, 247, 0.15); color: #c084fc; }
.icon-emerald { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.icon-amber { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.icon-rose { background: rgba(244, 63, 94, 0.15); color: #fb7185; }

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.feature-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
  flex-grow: 1;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feature-tags span {
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  color: var(--text-faint);
}

/* ==============================================================================
   Simulator Section
   ============================================================================== */
.simulator-section {
  background: linear-gradient(180deg, transparent 0%, var(--bg-subtle) 50%, transparent 100%);
}

.sim-wrapper {
  padding: 24px;
}

.sim-tabs {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 16px;
  margin-bottom: 24px;
  overflow-x: auto;
}

.sim-tab {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-light);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.sim-tab:hover {
  color: var(--text-main);
  border-color: var(--border-glow);
}

.sim-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px var(--primary-glow);
}

.sim-content {
  display: none;
}

.sim-content.active {
  display: block;
}

.sim-window {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.sim-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border-light);
}

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

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

.d-red { background: #ff5f56; }
.d-yellow { background: #ffbd2e; }
.d-green { background: #27c93f; }

.sim-window-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}

.sim-status-chip {
  font-size: 0.75rem;
  font-weight: 600;
  color: #10b981;
}

.sim-body {
  padding: 24px;
}

.sim-two-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.sim-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 12px;
}

.card-head h3 {
  font-size: 1rem;
  font-weight: 700;
}

.card-sub {
  font-size: 0.75rem;
  color: var(--text-faint);
}

.sim-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.sim-code-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: #38bdf8;
}

.sim-action-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sim-action-btn:hover {
  background: var(--primary);
  color: #fff;
}

.sim-net-box {
  background: rgba(0, 0, 0, 0.15);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-size: 0.8125rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.status-badge.ready {
  color: #10b981;
  font-weight: 600;
}

.status-badge.stopped {
  color: #f43f5e;
  font-weight: 600;
}

.sim-input {
  width: 100%;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.9375rem;
}

.sim-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.sim-alert {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(6, 182, 212, 0.1);
  border: 1px solid rgba(6, 182, 212, 0.25);
  color: #67e8f9;
  font-size: 0.75rem;
}

.sim-toast {
  display: none;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: center;
  animation: fadeIn 0.3s forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Session UI Tab */
.session-preview-window {
  display: flex;
  flex-direction: column;
}

.session-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #111827;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-wrap: wrap;
  gap: 12px;
}

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

.session-fps-badge {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.tool-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tool-btn-act {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.tool-btn-act:hover {
  background: rgba(255, 255, 255, 0.25);
}

.tool-btn-act.tool-hangup {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.4);
  color: #fca5a5;
}

.tool-btn-act.tool-hangup:hover {
  background: rgba(239, 68, 68, 0.4);
}

.session-screen-viewport {
  position: relative;
  height: 480px;
  background: #0f172a;
  overflow: hidden;
}

.desktop-wallpaper {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 70% 30%, #1e293b 0%, #0f172a 100%);
  position: relative;
  padding: 24px;
}

.remote-watermark {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.2);
  font-family: var(--font-mono);
}

.mock-desktop-icons {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.desktop-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 64px;
  font-size: 0.75rem;
  color: #f1f5f9;
  cursor: pointer;
}

.desktop-icon .ico {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  margin-bottom: 4px;
}

.desktop-icon .ico.folder { background: #3b82f6; }
.desktop-icon .ico.code { background: #10b981; }
.desktop-icon .ico.app { background: linear-gradient(135deg, #6366f1, #06b6d4); }

.pip-camera-window {
  position: absolute;
  bottom: 24px;
  right: 24px;
  width: 200px;
  background: rgba(17, 24, 39, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  overflow: hidden;
}

.pip-header {
  background: rgba(0,0,0,0.3);
  font-size: 0.7rem;
  padding: 6px 10px;
  color: #94a3b8;
}

.pip-body {
  height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #64748b;
}

.marker-overlay {
  position: absolute;
  top: 50px;
  left: 100px;
  width: 400px;
  height: 200px;
  pointer-events: none;
}

/* Settings UI Tab */
.settings-window-preview .sim-settings-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.setting-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  gap: 20px;
}

.setting-info strong {
  font-size: 0.9375rem;
  color: var(--text-main);
  display: block;
  margin-bottom: 4px;
}

.setting-info p {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Toggle Switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border-light);
  transition: .3s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary);
}

input:checked + .slider:before {
  transform: translateX(22px);
}

/* ==============================================================================
   Comprehensive Tutorial Section
   ============================================================================== */
.tutorial-section {
  position: relative;
}

.tutorial-tabs-wrapper {
  margin-bottom: 32px;
}

.tutorial-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.tutorial-tab {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-normal);
}

.tutorial-tab:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-glow);
  transform: translateY(-2px);
}

.tutorial-tab.active {
  background: var(--bg-surface);
  border-color: var(--primary);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.guide-num {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary);
}

.guide-title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-main);
}

.tutorial-content-wrapper {
  padding: 40px;
}

.tutorial-article {
  display: none;
}

.tutorial-article.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

.article-header {
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 24px;
  margin-bottom: 32px;
}

.article-header h3 {
  font-size: 1.625rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.article-meta {
  font-size: 0.875rem;
  color: var(--text-faint);
}

.steps-flow {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.step-card {
  display: flex;
  gap: 24px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 24px;
}

.step-number {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 800;
  box-shadow: 0 4px 12px var(--primary-glow);
}

.step-body {
  flex-grow: 1;
}

.step-body h4 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-body p {
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.tip-box {
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.875rem;
  margin-top: 12px;
}

.tip-box.info {
  background: rgba(99, 102, 241, 0.1);
  border-left: 4px solid var(--primary);
  color: #a5b4fc;
}

.tip-box.success {
  background: rgba(16, 185, 129, 0.1);
  border-left: 4px solid var(--accent-emerald);
  color: #6ee7b7;
}

.warning-callout {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: var(--radius-md);
  padding: 20px;
  margin: 24px 0;
  color: #fde68a;
  font-size: 0.9375rem;
  line-height: 1.7;
}

.warning-callout strong {
  color: #f59e0b;
}

.step-list, .feature-bullets {
  padding-left: 20px;
  margin: 12px 0;
  color: var(--text-muted);
}

.step-list li, .feature-bullets li {
  margin-bottom: 8px;
  line-height: 1.6;
}

/* Code Snippet Box */
.code-block-wrapper {
  background: var(--code-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 20px 0;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border-light);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}

.copy-code-btn {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.copy-code-btn:hover {
  background: var(--primary);
  color: #fff;
}

.code-block-wrapper pre {
  padding: 16px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.65;
  color: #e2e8f0;
}

.text-content-box {
  padding: 16px;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Permission Grid */
.permission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 20px 0 32px;
}

.perm-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
}

.perm-icon {
  font-size: 2rem;
}

.perm-details h5 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.perm-details p {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.perm-steps {
  font-size: 0.8125rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: #cbd5e1;
}

.feature-guide-block {
  margin-bottom: 32px;
}

.feature-guide-block h4 {
  font-size: 1.1875rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-guide-block p {
  color: var(--text-muted);
  line-height: 1.7;
}

/* ==============================================================================
   Comparison Table Section
   ============================================================================== */
.table-responsive {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9375rem;
}

.comparison-table th {
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  font-weight: 700;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
}

.comparison-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-muted);
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table tr:hover td {
  background: var(--bg-subtle);
}

/* ==============================================================================
   Download Center Section
   ============================================================================== */
.download-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}

.download-card {
  position: relative;
  padding: 40px;
  display: flex;
  flex-direction: column;
}

.download-card.featured {
  border-color: var(--primary);
  box-shadow: 0 10px 30px var(--primary-glow);
}

.featured-ribbon {
  position: absolute;
  top: 18px;
  right: 18px;
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.dl-platform-icon {
  font-size: 2.75rem;
  margin-bottom: 16px;
}

.dl-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
}

.dl-title {
  font-size: 1.75rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.dl-desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.dl-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.dl-specs span {
  font-size: 0.8125rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  color: var(--text-faint);
}

.dl-extra-tip {
  font-size: 0.8125rem;
  color: var(--text-faint);
  margin-top: 14px;
  line-height: 1.5;
}

.dl-extra-tip a {
  color: var(--primary);
  text-decoration: underline;
}

.source-build-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 36px;
  gap: 24px;
  flex-wrap: wrap;
}

.source-info h4 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 6px;
}

.source-info p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.source-btns {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

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

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

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--primary);
}

.faq-chevron {
  flex-shrink: 0;
  transition: transform var(--transition-normal);
  color: var(--text-muted);
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow);
}

.faq-answer p {
  padding: 0 24px 24px;
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 0.9375rem;
}

/* ==============================================================================
   Sponsor Section
   ============================================================================== */
.sponsor-card {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  padding: 48px;
  align-items: center;
}

.sponsor-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.sponsor-desc {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 28px;
}

.sponsor-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.sponsor-qr-preview {
  display: flex;
  justify-content: center;
}

.qr-frame {
  background: #ffffff;
  padding: 16px;
  border-radius: var(--radius-md);
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 320px;
}

.qr-img {
  width: 100%;
  border-radius: 6px;
}

.qr-caption {
  font-size: 0.75rem;
  font-weight: 600;
  color: #334155;
}

/* ==============================================================================
   Footer
   ============================================================================== */
.site-footer {
  background: var(--bg-surface-elevated);
  border-top: 1px solid var(--border-light);
  padding: 60px 0 30px;
  margin-top: 60px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 60px;
  margin-bottom: 48px;
}

.footer-about {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.7;
  margin-top: 16px;
  max-width: 360px;
}

.footer-links-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-col h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--text-main);
}

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

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

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

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-faint);
  text-align: center;
}

.footer-bottom a {
  color: var(--text-muted);
  text-decoration: underline;
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: var(--text-faint);
}

/* ==============================================================================
   Modal & Toast
   ============================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}

.modal-backdrop.open {
  display: flex;
  animation: fadeIn 0.25s ease;
}

.modal-window {
  width: 100%;
  max-width: 480px;
  padding: 28px;
  position: relative;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.modal-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
}

.modal-close-btn {
  background: none;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
}

.modal-close-btn:hover {
  color: var(--text-main);
}

.modal-qr-container {
  background: #ffffff;
  padding: 16px;
  border-radius: var(--radius-md);
  margin: 16px auto;
  max-width: 320px;
}

.modal-qr-img {
  width: 100%;
  border-radius: 6px;
}

.modal-tip {
  font-size: 0.8125rem;
  color: var(--text-faint);
  margin-top: 12px;
}

.toast-notification {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  border: 1px solid var(--primary);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), 0 0 15px var(--primary-glow);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  z-index: 2000;
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--transition-normal);
  pointer-events: none;
}

.toast-notification.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ==============================================================================
   Responsive Queries
   ============================================================================== */
@media (max-width: 1024px) {
  .mock-grid, .sim-two-cols, .download-grid, .permission-grid {
    grid-template-columns: 1fr;
  }
  .sponsor-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .sponsor-links {
    justify-content: center;
  }
  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .hero-section {
    padding: 50px 0 70px;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .tutorial-tabs {
    grid-template-columns: 1fr;
  }
  .tutorial-content-wrapper {
    padding: 24px;
  }
  .step-card {
    flex-direction: column;
    gap: 16px;
  }
  .footer-links-group {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .source-build-box {
    flex-direction: column;
    align-items: flex-start;
  }
}
