/* SIMCAT.ORG — Modern Glassmorphism & Liquid Design System
 * Supports Day (Light) Mode and Night (Dark) Mode
 * Supports 6 Platforms: Windows, macOS, Linux, OpenWrt, Android, iOS
 */

/* =============================================================
   1. Theme Variables & Base Tokens
   ============================================================= */
:root {
  /* Default: Night Mode (夜间模式) */
  --bg-base: #07090e;
  --bg-surface: rgba(18, 22, 34, 0.7);
  --bg-surface-hover: rgba(28, 34, 52, 0.85);
  --bg-card: rgba(15, 19, 30, 0.74);
  --bg-card-highlight: rgba(28, 36, 56, 0.88);
  --bg-banner: rgba(20, 26, 42, 0.7);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(160, 190, 255, 0.22);
  --border-active: rgba(94, 158, 255, 0.55);
  
  --primary: #4f8cf6;
  --primary-hover: #6ea2ff;
  --primary-glow: rgba(79, 140, 246, 0.35);
  --accent-cyan: #38d6df;
  --accent-purple: #c084fc;
  --accent-purple-bg: rgba(147, 51, 234, 0.12);
  --accent-purple-border: rgba(168, 85, 247, 0.32);
  --accent-purple-glow: rgba(147, 51, 234, 0.25);
  --accent-green: #3cd48a;
  
  --tg-blue: #2aabee;
  --tg-blue-hover: #48bbf4;
  --tg-glow: rgba(42, 171, 238, 0.35);

  --text-main: #f0f3fa;
  --text-muted: #95a2ba;
  --text-dim: #626f87;

  --nav-bg: rgba(7, 9, 14, 0.84);
  --modal-bg: #0c0f17;
  --shadow-glass: 0 16px 40px -10px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  --shadow-card: 0 12px 32px -8px rgba(0, 6, 18, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --shadow-pill: 0 6px 20px -3px rgba(0, 0, 0, 0.5);
  --blur-glass: blur(24px);
  
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 30px;
  --radius-pill: 9999px;
}

/* =============================================================
   2. Day Mode (白天模式)
   ============================================================= */
[data-theme="day"] {
  --bg-base: #f5f7fb;
  --bg-surface: rgba(255, 255, 255, 0.82);
  --bg-surface-hover: rgba(255, 255, 255, 0.95);
  --bg-card: rgba(255, 255, 255, 0.88);
  --bg-card-highlight: rgba(240, 246, 255, 0.98);
  --bg-banner: rgba(240, 244, 252, 0.92);
  
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-glow: rgba(79, 140, 246, 0.3);
  --border-active: rgba(37, 99, 235, 0.7);
  
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-glow: rgba(37, 99, 235, 0.25);
  --accent-cyan: #0284c7;
  --accent-purple: #7e22ce;
  --accent-purple-bg: rgba(243, 232, 255, 0.8);
  --accent-purple-border: rgba(192, 132, 252, 0.45);
  --accent-purple-glow: rgba(147, 51, 234, 0.12);
  --accent-green: #10b981;
  
  --tg-blue: #0284c7;
  --tg-blue-hover: #0369a1;
  --tg-glow: rgba(2, 132, 199, 0.25);

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;

  --nav-bg: rgba(245, 247, 251, 0.9);
  --modal-bg: #ffffff;
  --shadow-glass: 0 16px 40px -10px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --shadow-card: 0 12px 30px -8px rgba(15, 23, 42, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --shadow-pill: 0 4px 14px -2px rgba(15, 23, 42, 0.08);
}

/* Global Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent !important;
}

/* Remove ugly default browser focus outlines completely */
button:focus, a:focus, input:focus, select:focus, textarea:focus {
  outline: none !important;
}

button:focus-visible, a:focus-visible {
  outline: 2px solid var(--primary) !important;
  outline-offset: 2px;
}

html {
  font-family: var(--font-sans);
  background-color: var(--bg-base);
  color: var(--text-main);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
}

body {
  position: relative;
  overflow-x: hidden;
  min-height: 100vh;
  line-height: 1.6;
}

/* Background Global Canvas */
.night-sky {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  transition: opacity 0.5s ease;
}

[data-theme="day"] .night-sky {
  opacity: 0.15;
}

/* Ambient Glow Orbs */
.ambient-lights {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.18;
}

[data-theme="day"] .ambient-orb {
  opacity: 0.08;
}

.ambient-orb-1 {
  width: 650px;
  height: 650px;
  left: -150px;
  top: 50px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
}

.ambient-orb-2 {
  width: 750px;
  height: 750px;
  right: -200px;
  top: 250px;
  background: radial-gradient(circle, #7952e8 0%, transparent 70%);
  opacity: 0.12;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}

/* =============================================================
   3. Header Navbar (Top: 0)
   ============================================================= */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 72px;
  z-index: 100;
  border-bottom: none !important;
  background: transparent;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.navbar.scrolled {
  background: var(--nav-bg);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border-bottom: none !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.navbar-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-logo-wrap {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease;
  background: #0d1222;
}

.brand-link:hover .brand-logo-wrap {
  transform: scale(1.05);
}

.brand-logo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-title-wrap {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 19px;
  font-weight: 850;
  letter-spacing: -0.2px;
  line-height: 1.1;
  color: var(--text-main);
  display: block;
}

/* Subordinate Brand Badge ("simcat.org", muted & width-aligned with SIMCAT) */
.brand-badge {
  display: block;
  font-size: 11.5px;
  color: var(--text-dim);
  font-weight: 550;
  letter-spacing: 2.1px;
  line-height: 1.15;
  text-transform: lowercase;
  opacity: 0.82;
  margin-top: 1px;
}

[data-theme="day"] .brand-badge {
  color: var(--text-muted);
  opacity: 0.88;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
}

.nav-item a {
  text-decoration: none;
  font-size: 14.5px;
  color: var(--text-muted);
  font-weight: 550;
  transition: color 0.2s ease;
  padding: 6px 4px;
}

.nav-item a:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Telegram Top-Right Button: "联系我们" */
.btn-contact-nav {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, rgba(42, 171, 238, 0.22), rgba(42, 171, 238, 0.08));
  border: 1px solid rgba(42, 171, 238, 0.45);
  color: var(--text-main);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 650;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px -2px var(--tg-glow);
}

[data-theme="day"] .btn-contact-nav {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
  box-shadow: 0 4px 14px -2px rgba(2, 132, 199, 0.35);
}

.btn-contact-nav:hover {
  background: linear-gradient(135deg, rgba(42, 171, 238, 0.38), rgba(42, 171, 238, 0.16));
  border-color: rgba(42, 171, 238, 0.85);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px -1px var(--tg-glow);
}

[data-theme="day"] .btn-contact-nav:hover {
  background: #0369a1;
  color: #ffffff;
}

.btn-contact-nav svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

/* Language Switcher Button */
.lang-switch-btn {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
}

.lang-switch-btn:hover {
  color: var(--text-main);
  border-color: var(--border-glow);
  background: var(--bg-surface-hover);
}

/* Theme Switcher Button (Day / Night) */
.theme-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.theme-switch-btn:hover {
  color: var(--text-main);
  border-color: var(--border-glow);
  background: var(--bg-surface-hover);
}

.theme-switch-btn svg {
  width: 15px;
  height: 15px;
}

/* Mobile Menu Button */
.mobile-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  color: var(--text-main);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* =============================================================
   4. Mobile Navigation Drawer (Smooth Auto-Retract)
   ============================================================= */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
}

.mobile-drawer.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer-pane {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  background: var(--modal-bg);
  border-bottom: 1px solid var(--border-glow);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  padding: 24px;
  transform: translateY(-100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer.active .mobile-drawer-pane {
  transform: translateY(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.drawer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.drawer-nav-list a {
  display: block;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text-main);
  text-decoration: none;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  transition: all 0.2s ease;
}

.drawer-nav-list a:hover, .drawer-nav-list a:active {
  background: var(--primary);
  color: #ffffff;
}

/* =============================================================
   5. Hero Section
   ============================================================= */
.hero-section {
  padding-top: 125px;
  padding-bottom: 40px;
  text-align: center;
  position: relative;
}

.hero-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 22px;
  box-shadow: var(--shadow-pill);
}

.pill-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 10px var(--accent-green);
}

.hero-title {
  font-size: clamp(34px, 5.2vw, 64px);
  font-weight: 850;
  line-height: 1.16;
  letter-spacing: -1.6px;
  margin-bottom: 18px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #ffffff 20%, #9cbef7 60%, #a291f8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

[data-theme="day"] .hero-title .gradient-text {
  background: linear-gradient(135deg, #0f172a 30%, #2563eb 80%, #7c3aed 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-muted);
  max-width: 740px;
  margin: 0 auto 34px;
  line-height: 1.65;
}

.hero-desc strong {
  color: var(--text-main);
  font-weight: 650;
}

/* =============================================================
   6. Download Area & Natural Purple Compliance Card
   ============================================================= */
.hero-downloads-container {
  max-width: 1060px;
  margin: 0 auto 46px;
  padding: 10px;
}

/* Beautiful, Natural Purple Compliance Notice Card */
.compliance-purple-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 22px;
  border-radius: var(--radius-md);
  background: var(--accent-purple-bg);
  border: 1px solid var(--accent-purple-border);
  box-shadow: 0 8px 24px -4px var(--accent-purple-glow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--accent-purple);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 550;
  margin-bottom: 24px;
  text-align: left;
}

.compliance-purple-card svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: currentColor;
}

.compliance-purple-card strong {
  font-weight: 750;
  color: var(--text-main);
}

/* Enlarged Download Label (2x font size: 26px) */
.hero-downloads-label {
  font-size: 26px;
  font-weight: 850;
  letter-spacing: -0.5px;
  color: var(--text-main);
  margin-bottom: 20px;
  display: block;
}

.hero-downloads-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.hero-dl-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 10px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  text-decoration: none;
  box-shadow: var(--shadow-card);
  backdrop-filter: var(--blur-glass);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.hero-dl-btn:hover {
  transform: translateY(-3px);
  border-color: var(--border-glow);
  box-shadow: 0 12px 28px -6px var(--primary-glow);
  background: var(--bg-card-highlight);
}

.hero-dl-btn:active {
  transform: translateY(-1px);
}

.hero-dl-icon {
  width: 28px;
  height: 28px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-dl-btn:nth-child(1) .hero-dl-icon { color: #00a4ef; } /* Windows */
.hero-dl-btn:nth-child(2) .hero-dl-icon { color: var(--text-main); } /* macOS */
.hero-dl-btn:nth-child(3) .hero-dl-icon { color: #f59e0b; } /* Linux */
.hero-dl-btn:nth-child(4) .hero-dl-icon { color: #0ea5e9; } /* OpenWrt */
.hero-dl-btn:nth-child(5) .hero-dl-icon { color: #3cd48a; } /* Android */
.hero-dl-btn:nth-child(6) .hero-dl-icon { color: #b993f4; } /* iOS */

.hero-dl-icon svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.hero-dl-title {
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 3px;
}

.hero-dl-meta {
  font-size: 13px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.hero-dl-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  font-size: 9.5px;
  padding: 1px 5px;
  border-radius: var(--radius-pill);
  background: rgba(60, 212, 138, 0.2);
  color: var(--accent-green);
  font-weight: 700;
  display: none;
}

.hero-dl-btn.recommended .hero-dl-badge {
  display: inline-block;
}

.hero-dl-btn.recommended {
  border-color: var(--border-active);
  background: linear-gradient(160deg, rgba(79, 140, 246, 0.15), var(--bg-card));
}

/* =============================================================
   7. Authentic Hero Banner — CSS-Only Animations (No Canvas)
   ============================================================= */
.hero-authentic-banner {
  max-width: 980px;
  margin: 0 auto 50px;
  border-radius: var(--radius-xl);
  background: linear-gradient(160deg, #090e1c 0%, #0d152a 50%, #0a0e1c 100%);
  border: 1px solid rgba(160, 190, 255, 0.18);
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  padding: 36px 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  text-align: left;
  position: relative;
  overflow: hidden;
}

/* Subtle CSS animated radial pulse on the banner background */
.hero-authentic-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(37, 99, 235, 0.08) 0%, transparent 65%),
              radial-gradient(ellipse at 70% 30%, rgba(147, 51, 234, 0.06) 0%, transparent 60%);
  animation: bannerPulse 8s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
}

@keyframes bannerPulse {
  0% { opacity: 0.6; }
  100% { opacity: 1; }
}

[data-theme="day"] .hero-authentic-banner {
  background: linear-gradient(160deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
}

/* CSS-only floating particle dots */
.banner-particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(160, 190, 255, 0.55);
  pointer-events: none;
  z-index: 0;
}

.banner-particle.p1 {
  width: 4px; height: 4px;
  top: 22%; left: 58%;
  animation: particleFloat1 6s ease-in-out infinite;
}
.banner-particle.p2 {
  width: 3px; height: 3px;
  top: 65%; left: 72%;
  background: rgba(192, 132, 252, 0.6);
  animation: particleFloat2 7.5s ease-in-out infinite;
}
.banner-particle.p3 {
  width: 5px; height: 5px;
  top: 40%; left: 84%;
  background: rgba(56, 214, 223, 0.5);
  animation: particleFloat3 5.5s ease-in-out infinite;
}
.banner-particle.p4 {
  width: 3px; height: 3px;
  top: 78%; left: 62%;
  animation: particleFloat1 8s ease-in-out infinite reverse;
}

@keyframes particleFloat1 {
  0%, 100% { transform: translate(0, 0); opacity: 0.4; }
  50% { transform: translate(6px, -10px); opacity: 0.85; }
}
@keyframes particleFloat2 {
  0%, 100% { transform: translate(0, 0); opacity: 0.3; }
  50% { transform: translate(-8px, -8px); opacity: 0.75; }
}
@keyframes particleFloat3 {
  0%, 100% { transform: translate(0, 0); opacity: 0.5; }
  50% { transform: translate(5px, 10px); opacity: 0.9; }
}

/* Inert: kept for compatibility if referenced elsewhere */
.hero-star-canvas {
  display: none;
}

.hero-authentic-copy {
  flex: 1;
  position: relative;
  z-index: 1;
}

.hero-authentic-eyebrow {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 2.2px;
  color: var(--accent-cyan);
  text-transform: uppercase;
  margin-bottom: 10px;
  display: block;
}

.hero-authentic-title {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 850;
  letter-spacing: -0.6px;
  margin-bottom: 14px;
  color: #ffffff;
}

.hero-authentic-title em {
  font-style: italic;
  color: #bfdbfe;
}

.hero-authentic-desc {
  font-size: 15px;
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 24px;
  max-width: 520px;
}

.hero-authentic-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.authentic-stat-box {
  display: flex;
  flex-direction: column;
}

.authentic-stat-num {
  font-size: 26px;
  font-weight: 850;
  font-family: var(--font-mono);
  color: #ffffff;
  line-height: 1;
}

.authentic-stat-label {
  font-size: 14px;
  color: #94a3b8;
  margin-top: 5px;
}

/* Authentic 3D Cat Art with Improved CSS-Only Floating & Glow Animations */
.hero-authentic-art {
  width: 290px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.cat-floating-box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat-orbit-glow {
  position: absolute;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.45) 0%, rgba(147, 51, 234, 0.2) 50%, transparent 75%);
  filter: blur(28px);
  pointer-events: none;
  animation: glowPulse 4s ease-in-out infinite;
}

.brand-art-3d {
  width: 100%;
  max-width: 260px;
  height: auto;
  border-radius: var(--radius-xl);
  display: block;
  position: relative;
  z-index: 1;
  animation: catFloat 4.6s cubic-bezier(0.37, 0, 0.63, 1) infinite;
}

@keyframes catFloat {
  0%, 100% {
    transform: translateY(0);
    box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.7), 0 0 24px -2px rgba(37, 99, 235, 0.28);
  }
  50% {
    transform: translateY(-9px);
    box-shadow: 0 26px 48px -10px rgba(0, 0, 0, 0.8), 0 0 36px 4px rgba(124, 58, 237, 0.38);
  }
}

@keyframes glowPulse {
  0%, 100% {
    opacity: 0.38;
    transform: scale(0.96);
  }
  50% {
    opacity: 0.72;
    transform: scale(1.08);
  }
}

/* Authentic "总览" Overview Page Preview Stage — Clean Device Frame */
.hero-stage {
  max-width: 1040px;
  margin: 0 auto;
  position: relative;
}

.hero-stage-card {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 60px -10px rgba(0, 0, 0, 0.65), 0 0 1px 1px rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(160, 190, 255, 0.2);
  background: #080d1a;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-stage-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 30px 70px -10px rgba(0, 0, 0, 0.75), 0 0 2px 1px rgba(59, 130, 246, 0.3);
}

.stage-viewport {
  position: relative;
  overflow: hidden;
  background: #080d1a;
  line-height: 0;
}

.stage-viewport img {
  width: 100%;
  height: auto;
  display: block;
}

/* =============================================================
   8. Six Platforms Tab Section
   ============================================================= */
.downloads-section {
  padding: 60px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 46px;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 850;
  letter-spacing: -0.8px;
  margin-bottom: 14px;
}

.section-desc {
  font-size: 15.5px;
  color: var(--text-muted);
}

.platform-segmented-nav {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  padding: 6px;
  max-width: 840px;
  margin: 0 auto 36px;
  border-radius: var(--radius-pill);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  backdrop-filter: var(--blur-glass);
}

.platform-seg-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.platform-seg-btn:hover {
  color: var(--text-main);
  background: rgba(125, 125, 125, 0.08);
}

.platform-seg-btn.active {
  background: var(--bg-card-highlight);
  color: var(--text-main);
  border: 1px solid var(--border-glow);
  box-shadow: 0 4px 14px -2px rgba(0, 0, 0, 0.25);
}

[data-theme="day"] .platform-seg-btn.active {
  background: #ffffff;
  color: var(--primary);
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 4px 14px -2px rgba(37, 99, 235, 0.15);
}

.platform-seg-btn svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

/* Platform Detail Panes */
.platform-card-wrap {
  position: relative;
  max-width: 960px;
  margin: 0 auto;
}

.platform-pane {
  display: none;
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  backdrop-filter: var(--blur-glass);
  padding: 36px 40px;
  animation: fadeInPane 0.28s ease;
}

.platform-pane.active {
  display: block;
}

@keyframes fadeInPane {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.platform-pane-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 36px;
  align-items: center;
}

.platform-pane-info h3 {
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.6px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.version-tag {
  font-size: 12.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(79, 140, 246, 0.15);
  border: 1px solid rgba(79, 140, 246, 0.3);
  color: var(--primary);
  font-family: var(--font-mono);
}

.platform-pane-info p {
  color: var(--text-muted);
  font-size: 15.5px;
  margin-bottom: 22px;
  line-height: 1.65;
}

.platform-spec-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.spec-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 15px;
}

.spec-label {
  color: var(--text-dim);
  width: 85px;
  flex-shrink: 0;
  font-weight: 550;
}

.spec-val {
  color: var(--text-main);
  font-weight: 550;
}

.spec-val code {
  font-family: var(--font-mono);
  background: rgba(125, 125, 125, 0.1);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 12px;
  color: var(--primary);
}

.download-action-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  text-align: center;
}

.btn-download-main {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #3d7eec 0%, #2563eb 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 650;
  text-decoration: none;
  box-shadow: 0 8px 20px -4px var(--primary-glow);
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-download-main:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px -3px var(--primary-glow);
  background: linear-gradient(135deg, #4d8df6 0%, #306ef4 100%);
}

.btn-download-main svg {
  width: 18px;
  height: 18px;
}

.btn-download-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-download-secondary:hover {
  color: var(--text-main);
  border-color: var(--border-glow);
}

.hash-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  padding: 7px 10px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

[data-theme="day"] .hash-row {
  background: rgba(0, 0, 0, 0.05);
}

.hash-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copy-hash-btn {
  background: none;
  border: none;
  color: var(--primary);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

/* =============================================================
   9. Features Section
   ============================================================= */
.features-section {
  padding: 70px 0;
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.feature-card {
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 28px 24px;
  box-shadow: var(--shadow-card);
  backdrop-filter: var(--blur-glass);
  transition: all 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
}

.feature-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(79, 140, 246, 0.12);
  border: 1px solid rgba(79, 140, 246, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 18px;
}

.feature-icon-wrap svg {
  width: 22px;
  height: 22px;
}

.feature-title {
  font-size: 18px;
  font-weight: 750;
  margin-bottom: 8px;
}

.feature-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* =============================================================
   10. Non-Profit & Policy Section
   ============================================================= */
.nonprofit-section {
  padding: 60px 0;
}

.nonprofit-box {
  border-radius: var(--radius-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 42px 46px;
  box-shadow: var(--shadow-card);
  backdrop-filter: var(--blur-glass);
}

.nonprofit-manifesto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 28px;
}

.manifesto-item h4 {
  font-size: 17px;
  font-weight: 750;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.manifesto-item h4 svg {
  width: 18px;
  height: 18px;
  color: var(--primary);
}

.manifesto-item p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* =============================================================
   11. FAQ Accordion (Ultra-Smooth CSS Grid Animation)
   ============================================================= */
.faq-section {
  padding: 60px 0;
}

.faq-list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-item:hover {
  border-color: var(--border-glow);
}

.faq-item.open {
  border-color: var(--border-glow);
  background: var(--bg-card-highlight);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.15);
}

[data-theme="day"] .faq-item.open {
  background: #ffffff;
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: 0 8px 20px -4px rgba(15, 23, 42, 0.06);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: transparent;
  border: none;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 16.5px;
  font-weight: 650;
  color: var(--text-main);
  cursor: pointer;
  user-select: none;
}

.faq-chevron {
  width: 19px;
  height: 19px;
  color: var(--text-dim);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.25s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  color: var(--primary);
}

/* Ultra-Smooth CSS Grid Row Transition (0fr to 1fr) */
.faq-collapse {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-item.open .faq-collapse {
  grid-template-rows: 1fr;
}

.faq-content-inner {
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.26s cubic-bezier(0.16, 1, 0.3, 1), transform 0.26s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 0 24px;
}

.faq-item.open .faq-content-inner {
  opacity: 1;
  transform: translateY(0);
  padding-bottom: 22px;
}

.faq-content-inner p {
  font-size: 14.2px;
  line-height: 1.7;
  color: var(--text-muted);
}

/* =============================================================
   12. Checksum Modal & Toast
   ============================================================= */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  z-index: 250;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-container {
  width: 100%;
  max-width: 760px;
  border-radius: var(--radius-xl);
  background: var(--modal-bg);
  border: 1px solid var(--border-glow);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  padding: 30px;
  position: relative;
  max-height: 85vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.modal-close-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.checksum-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.checksum-table th {
  text-align: left;
  padding: 10px 12px;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border-subtle);
}

.checksum-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.checksum-table code {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--primary);
  word-break: break-all;
  cursor: pointer;
}

.toast-notice {
  position: fixed;
  bottom: 28px;
  right: 28px;
  padding: 11px 18px;
  border-radius: var(--radius-pill);
  background: var(--modal-bg);
  border: 1px solid var(--border-glow);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 300;
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.toast-notice.show {
  transform: translateY(0);
  opacity: 1;
}

/* =============================================================
   13. Footer
   ============================================================= */
.footer {
  border-top: 1px solid var(--border-subtle);
  background: var(--nav-bg);
  backdrop-filter: var(--blur-glass);
  padding: 44px 0 28px;
  margin-top: 70px;
  position: relative;
  z-index: 2;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.footer-brand-header {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.65;
  margin: 0 auto;
  max-width: 520px;
}

.footer-bottom {
  width: 100%;
  border-top: 1px solid var(--border-subtle);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  color: var(--text-dim);
}

/* =============================================================
   14. Responsive Adaptations
   ============================================================= */
@media (max-width: 980px) {
  .hero-downloads-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .platform-segmented-nav {
    grid-template-columns: repeat(3, 1fr);
    border-radius: var(--radius-lg);
    gap: 8px;
    padding: 8px;
  }
  .platform-seg-btn {
    border-radius: var(--radius-sm);
  }
  .platform-pane-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: flex;
  }
  .hero-downloads-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .platform-segmented-nav {
    grid-template-columns: repeat(3, 1fr);
    border-radius: var(--radius-lg);
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .compliance-purple-card {
    flex-direction: column;
    text-align: left;
    align-items: flex-start;
  }
}

@media (max-width: 540px) {
  .hero-downloads-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .platform-segmented-nav {
    grid-template-columns: repeat(3, 1fr);
    border-radius: 14px;
    gap: 6px;
    padding: 6px;
  }
  .platform-seg-btn {
    padding: 8px 6px;
    font-size: 12px;
    gap: 5px;
  }
  .btn-contact-nav span {
    display: none;
  }
  .btn-contact-nav {
    padding: 8px;
    border-radius: 50%;
  }
  .brand-badge {
    display: none;
  }
}

/* =============================================================
   12. Multi-Platform Contact Modal, Hardware Section & Switchers
   ============================================================= */
@keyframes sectionPulse {
  0% { box-shadow: 0 0 0 0 rgba(79, 140, 246, 0.6); }
  50% { box-shadow: 0 0 0 12px rgba(79, 140, 246, 0); }
  100% { box-shadow: 0 0 0 0 rgba(79, 140, 246, 0); }
}
.section-pulse-active {
  animation: sectionPulse 1.2s ease-out;
  border-radius: var(--radius-lg);
}

.lang-dropdown-wrap {
  position: relative;
  display: inline-block;
}
.lang-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  color: var(--text-main);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}
.lang-switch-btn:hover {
  background: var(--bg-surface-hover);
  border-color: var(--primary);
  color: var(--primary-hover);
}
.lang-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 170px;
  background: var(--modal-bg);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-glass);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  padding: 6px;
  display: none;
  flex-direction: column;
  gap: 4px;
  z-index: 1100;
}
.lang-dropdown-wrap:hover .lang-dropdown-menu,
.lang-dropdown-wrap:focus-within .lang-dropdown-menu,
.lang-dropdown-menu.active {
  display: flex !important;
}
.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
}
.lang-option:hover {
  background: rgba(79, 140, 246, 0.12);
  color: var(--primary);
}
.lang-option.active {
  background: rgba(79, 140, 246, 0.2);
  color: var(--primary);
  font-weight: 700;
}
.lang-check {
  margin-left: auto;
  font-weight: 700;
  color: var(--primary);
}

.btn-style-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.12), rgba(79, 140, 246, 0.15));
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: var(--radius-pill);
  color: #d8b4fe;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.25s ease;
}
.btn-style-switch:hover {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(79, 140, 246, 0.3));
  border-color: rgba(168, 85, 247, 0.6);
  color: #f3e8ff;
  transform: translateY(-1px);
}

.floating-quick-bar {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 990;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.quick-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(15, 20, 32, 0.88);
  border: 1px solid rgba(168, 85, 247, 0.35);
  border-radius: var(--radius-pill);
  color: #e9d5ff;
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.quick-pill:hover {
  background: rgba(25, 30, 48, 0.95);
  border-color: rgba(168, 85, 247, 0.7);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -5px rgba(168, 85, 247, 0.3);
}
.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a855f7;
  box-shadow: 0 0 8px #a855f7;
}

.hardware-search-bar {
  max-width: 580px;
  margin: 0 auto 20px auto;
  position: relative;
}
.hardware-search-input {
  width: 100%;
  padding: 12px 18px 12px 42px;
  background: var(--bg-surface);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-pill);
  color: var(--text-main);
  font-size: 13.5px;
  outline: none;
  transition: all 0.25s ease;
}
.hardware-search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
  background: var(--bg-surface-hover);
}
.hardware-search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}
.hardware-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}
.hardware-tab-btn {
  padding: 8px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hardware-tab-btn:hover {
  background: var(--bg-surface-hover);
  color: var(--text-main);
  border-color: var(--border-glow);
}
.hardware-tab-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 14px var(--primary-glow);
}
.hardware-badge-count {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.2);
}
.hardware-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}
.hardware-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.hardware-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-card);
}
.hardware-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.hardware-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-green {
  background: rgba(60, 212, 138, 0.15);
  color: #3cd48a;
  border: 1px solid rgba(60, 212, 138, 0.3);
}
.badge-blue {
  background: rgba(79, 140, 246, 0.15);
  color: #4f8cf6;
  border: 1px solid rgba(79, 140, 246, 0.3);
}
.badge-purple {
  background: rgba(192, 132, 252, 0.15);
  color: #c084fc;
  border: 1px solid rgba(192, 132, 252, 0.3);
}
.badge-cyan {
  background: rgba(56, 214, 223, 0.15);
  color: #38d6df;
  border: 1px solid rgba(56, 214, 223, 0.3);
}
.hardware-title {
  font-size: 16.5px;
  font-weight: 750;
  margin-bottom: 6px;
  color: var(--text-main);
}
.hardware-specs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 12px 0 16px 0;
  font-size: 12px;
  color: var(--text-muted);
}
.hardware-spec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.hardware-spec-k {
  color: var(--text-dim);
}
.hardware-spec-v {
  font-weight: 600;
  color: var(--text-main);
  font-family: var(--font-mono);
}
.hardware-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: auto;
}

.contact-modal-card {
  max-width: 680px;
  width: 95%;
}
.contact-channels-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.contact-channel-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}
.contact-channel-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-glow);
  transform: translateY(-2px);
}
.channel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.channel-icon-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.channel-icon-wrap svg {
  width: 22px;
  height: 22px;
}
.channel-icon-wrap.tg {
  background: rgba(42, 171, 238, 0.15);
  color: #2aabee;
  fill: currentColor;
}
.channel-icon-wrap.wa {
  background: rgba(37, 211, 102, 0.15);
  color: #25d366;
  fill: currentColor;
}
.channel-icon-wrap.mail {
  background: rgba(79, 140, 246, 0.15);
  color: #4f8cf6;
}
.channel-icon-wrap.gh {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  fill: currentColor;
}
.channel-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}
.channel-badge.online {
  background: rgba(42, 171, 238, 0.15);
  color: #2aabee;
}
.channel-badge.fast {
  background: rgba(37, 211, 102, 0.15);
  color: #25d366;
}
.channel-badge.official {
  background: rgba(79, 140, 246, 0.15);
  color: #4f8cf6;
}
.channel-badge.gh {
  background: rgba(255, 255, 255, 0.15);
  color: #e2e8f0;
}
.contact-channel-card h4 {
  font-size: 15.5px;
  font-weight: 750;
  margin: 0 0 4px 0;
  color: var(--text-main);
}
.channel-handle {
  font-size: 12.5px;
  font-family: var(--font-mono);
  color: var(--primary);
  margin: 0 0 8px 0;
}
.channel-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0 0 14px 0;
  flex: 1;
}
.btn-channel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}
.btn-tg {
  background: #2aabee;
  color: #fff;
}
.btn-tg:hover {
  background: #39b7f5;
  box-shadow: 0 4px 12px rgba(42, 171, 238, 0.35);
}
.btn-wa {
  background: #25d366;
  color: #fff;
}
.btn-wa:hover {
  background: #2fe171;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.35);
}
.btn-mail {
  background: rgba(79, 140, 246, 0.15);
  color: #4f8cf6;
  border: 1px solid rgba(79, 140, 246, 0.3);
}
.btn-mail:hover {
  background: rgba(79, 140, 246, 0.25);
  color: #fff;
}
.btn-mail-send {
  background: var(--primary);
  color: #fff;
}
.btn-mail-send:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 12px var(--primary-glow);
}
.btn-gh {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.btn-gh:hover {
  background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 640px) {
  .contact-channels-grid {
    grid-template-columns: 1fr;
  }
  .floating-quick-bar {
    bottom: 16px;
    right: 16px;
  }
  .quick-pill {
    padding: 8px 12px;
    font-size: 12px;
  }
}


/* Style Toggle Button in Navbar */
.btn-style-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #e9d5ff;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(79, 140, 246, 0.2));
  border: 1px solid rgba(168, 85, 247, 0.45);
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(168, 85, 247, 0.15);
}
.btn-style-toggle:hover {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.3), rgba(79, 140, 246, 0.35));
  border-color: rgba(168, 85, 247, 0.7);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.3);
  color: #ffffff;
}

/* Multilingual Dropdown Enhancements (No layout flip) */
.lang-dropdown-menu {
  min-width: 150px;
  max-height: 420px;
  overflow-y: auto;
  scrollbar-width: thin;
}

/* ============================================================
   DAY MODE PATCH (R79) — 日间模式完整适配
   ============================================================ */
[data-theme="day"] body {
  background: #f5f7fb !important;
  color: #1f2430 !important;
}
[data-theme="day"] .night-sky {
  display: none !important;
}
[data-theme="day"] .hero-title,
[data-theme="day"] .section-title,
[data-theme="day"] .section-desc,
[data-theme="day"] .faq-question span,
[data-theme="day"] .faq-content-inner p,
[data-theme="day"] .faq-content-inner code,
[data-theme="day"] .feature-title,
[data-theme="day"] .feature-desc,
[data-theme="day"] .platform-title,
[data-theme="day"] .spec-label,
[data-theme="day"] .spec-val,
[data-theme="day"] .dl-platform-name,
[data-theme="day"] .dl-meta,
[data-theme="day"] .dl-desc,
[data-theme="day"] .contact-title,
[data-theme="day"] .contact-desc,
[data-theme="day"] .contact-channel-name,
[data-theme="day"] .contact-channel-desc,
[data-theme="day"] .checksum-platform,
[data-theme="day"] .checksum-filename,
[data-theme="day"] .hero-dl-title,
[data-theme="day"] .hero-subtitle,
[data-theme="day"] .footer-brand p,
[data-theme="day"] .footer-col a,
[data-theme="day"] .footer-bottom span {
  color: #1f2430 !important;
}
[data-theme="day"] .section-desc,
[data-theme="day"] .feature-desc,
[data-theme="day"] .contact-desc,
[data-theme="day"] .footer-col a,
[data-theme="day"] .spec-label {
  color: #5a6472 !important;
}
[data-theme="day"] .faq-item,
[data-theme="day"] .feature-card,
[data-theme="day"] .platform-card,
[data-theme="day"] .contact-channel-card,
[data-theme="day"] .checksum-table,
[data-theme="day"] .dl-platform-card {
  background: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
}
[data-theme="day"] .navbar,
[data-theme="day"] .navbar-inner {
  background: rgba(245, 247, 251, 0.9) !important;
  border-bottom: none !important;
}
[data-theme="day"] .nav-links a,
[data-theme="day"] .nav-item a,
[data-theme="day"] #themeText {
  color: #1f2430 !important;
}
[data-theme="day"] .footer,
[data-theme="day"] .site-footer {
  background: #eef1f6 !important;
  color: #1f2430 !important;
}
[data-theme="day"] .footer-bottom span,
[data-theme="day"] .checksum-note {
  color: #5a6472 !important;
}
[data-theme="day"] ::selection {
  background: rgba(79, 140, 246, 0.25);
}

/* ============================================================
   THANKS BAR (R84) — Eeuicc 技術支援致謝條
   ============================================================ */
.thanks-bar{
  display:flex;align-items:center;justify-content:center;gap:16px;flex-wrap:wrap;
  width:fit-content;max-width:calc(100% - 40px);margin:36px auto 0;padding:13px 22px;
  border-radius:999px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.1);
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
}
.thanks-text{font-size:14.5px;color:#b4bdcc;display:inline-flex;align-items:center;gap:8px}
.thanks-heart{color:#5eead4;font-size:15px}
.thanks-bar .button{
  padding:8px 18px;font-size:13.5px;border-radius:999px;
  background:linear-gradient(120deg,#0a4fd6,#3b82f6 55%,#45c8ff);
  color:#fff;font-weight:700;box-shadow:0 6px 18px rgba(59,130,246,.35);
}
.thanks-bar .button:hover{transform:translateY(-1px);box-shadow:0 10px 24px rgba(59,130,246,.45)}
[data-theme="day"] .thanks-bar{background:rgba(15,23,42,.04);border-color:rgba(15,23,42,.12)}
[data-theme="day"] .thanks-text{color:#4a5568}
@media (max-width:640px){
  .thanks-bar{flex-direction:column;gap:10px;padding:14px 18px;border-radius:20px;max-width:100%}
  .thanks-text{text-align:center}
}
