:root {
  --primary: #6750A4;
  --primary-light: #7F67BE;
  --primary-dark: #4A3B7C;
  --primary-50: #F3EDFF;
  --primary-100: #E8DEF8;
  --accent: #D0BCFF;
  --accent-2: #EADDFF;
  --text: #1C1B1F;
  --text-primary: #1C1B1F;
  --text-secondary: #49454F;
  --text-muted: #79747E;
  --bg: #FFFFFF;
  --bg-secondary: #F8F8FA;
  --bg-hover: #F3EDFF;
  --bg-card: #FFFFFF;
  --surface: #FFFFFF;
  --border: #E5E1E6;
  --shadow-sm: 0 2px 8px rgba(103, 80, 164, 0.06);
  --shadow-md: 0 8px 24px rgba(103, 80, 164, 0.1);
  --shadow-lg: 0 16px 48px rgba(103, 80, 164, 0.15);
  --shadow-glow: 0 0 80px rgba(103, 80, 164, 0.3);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

[data-theme="dark"] {
  --primary: #D0BCFF;
  --primary-light: #EADDFF;
  --primary-dark: #7F67BE;
  --primary-50: #1C1B1F;
  --primary-100: #2B2930;
  --accent: #7F67BE;
  --accent-2: #4A3B7C;
  --text: #E6E1E5;
  --text-primary: #E6E1E5;
  --text-secondary: #CAC4D0;
  --text-muted: #9994A0;
  --bg: #0B1120;
  --bg-secondary: #111827;
  --bg-hover: #2B2930;
  --bg-card: #1A1720;
  --surface: #1A1720;
  --border: #2B2930;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 80px rgba(208, 188, 255, 0.2);
}

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

@font-face {
  font-family: "MiSans";
  src: url("MiSans-Normal.ttf") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "MiSans", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.2s ease;
}

.bg-blur {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(120px);
  opacity: 0.3;
}

.bg-blur-1 {
  top: -15%;
  left: -10%;
  width: 40%;
  height: 40%;
  background: linear-gradient(135deg, #6750A4, #D0BCFF);
}

.bg-blur-2 {
  bottom: -10%;
  right: -10%;
  width: 40%;
  height: 40%;
  background: linear-gradient(135deg, #E8DEF8, #7F67BE);
}

.bg-blur-3 {
  top: 30%;
  left: 55%;
  width: 30%;
  height: 30%;
  background: linear-gradient(135deg, #D0BCFF, #4A3B7C);
  opacity: 0.15;
}

[data-theme="dark"] .bg-blur {
  opacity: 0.2;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(255, 255, 255, 0.7);
  border-bottom: 1px solid transparent;
  transition: all 0.3s ease;
}

[data-theme="dark"] .navbar {
  background: rgba(11, 17, 32, 0.7);
}

.navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 48px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-primary);
}

.logo:hover {
  transform: scale(1.02);
}

.logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.logo-text em {
  font-style: normal;
  color: var(--primary);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
}

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

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.theme-toggle,
.nav-github {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.theme-toggle:hover,
.nav-github:hover {
  background: var(--primary-50);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.theme-toggle svg {
  display: none;
}

[data-theme="light"] .theme-toggle .icon-moon,
[data-theme="dark"] .theme-toggle .icon-sun,
html:not([data-theme]) .theme-toggle .icon-moon {
  display: block;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(103, 80, 164, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(103, 80, 164, 0.4);
}

.btn-ghost {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--primary-50);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-large {
  padding: 14px 28px;
  font-size: 15px;
  border-radius: var(--radius-md);
}

.btn-xlarge {
  padding: 18px 36px;
  font-size: 16px;
  border-radius: var(--radius-lg);
}

main {
  position: relative;
  z-index: 1;
}

.hero {
  padding: 80px 32px 100px;
  position: relative;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 24px;
}

.hero-badge svg {
  width: 16px;
  height: 16px;
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hero-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.typed-cursor {
  -webkit-text-fill-color: var(--primary);
  color: var(--primary);
  margin-left: 2px;
  animation: blink 1s step-end infinite;
  font-weight: 300;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
  max-width: 560px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: fit-content;
  box-shadow: var(--shadow-sm);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
}

.stat-unit {
  font-size: 14px;
  font-weight: 500;
  color: var(--primary);
  margin-left: 4px;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image {
  width: 100%;
  max-width: 640px;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 24px 64px rgba(103, 80, 164, 0.35), 0 8px 24px rgba(103, 80, 164, 0.2);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

section {
  padding: 80px 32px;
}

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

.section-tag {
  display: inline-block;
  padding: 6px 14px;
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.section-desc {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.features {
  background: var(--bg-secondary);
}

.feature-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(-5deg);
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-icon-1 { background: linear-gradient(135deg, #E8DEF8, #D0BCFF); color: #6750A4; }
.feature-icon-2 { background: linear-gradient(135deg, #FFE0F3, #FFB4E0); color: #A855F7; }
.feature-icon-3 { background: linear-gradient(135deg, #E0F7FF, #B3E5FF); color: #0891B2; }
.feature-icon-4 { background: linear-gradient(135deg, #FFF4E0, #FFE0B3); color: #F59E0B; }
.feature-icon-5 { background: linear-gradient(135deg, #DCFCE7, #A7F3D0); color: #10B981; }
.feature-icon-6 { background: linear-gradient(135deg, #F3EDFF, #E8DEF8); color: #7F67BE; }
.feature-icon-7 { background: linear-gradient(135deg, #FFE8E0, #FFC4B3); color: #F97316; }
.feature-icon-8 { background: linear-gradient(135deg, #E8F0FF, #B3D4FF); color: #3B82F6; }
.feature-icon-9 { background: linear-gradient(135deg, #F0FDF4, #BBF7D0); color: #22C55E; }

.feature-title {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.feature-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.preview-container {
  max-width: 1000px;
  margin: 0 auto;
}

.preview-main {
  max-width: 900px;
  margin: 0 auto;
}

.preview-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
  box-shadow: 0 24px 64px rgba(103, 80, 164, 0.25), 0 8px 24px rgba(103, 80, 164, 0.15);
}

.schedule-widget {
  background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border);
}

.schedule-row {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.schedule-row.current {
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(103, 80, 164, 0.15);
}

.schedule-time {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 80px;
  padding-right: 20px;
  border-right: 2px solid var(--border);
}

.schedule-row.current .schedule-time {
  border-right-color: var(--primary);
}

.schedule-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.schedule-row.next .schedule-label {
  color: var(--text-muted);
}

.schedule-period {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.schedule-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.schedule-subject {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
}

.schedule-row.next .schedule-subject {
  font-size: 20px;
  color: var(--text-secondary);
}

.schedule-detail {
  font-size: 14px;
  color: var(--text-muted);
}

.schedule-divider {
  height: 12px;
}

.tech-section {
  background: var(--bg-secondary);
}

.tech-grid {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.tech-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s ease;
}

.tech-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.tech-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.tech-icon svg {
  width: 36px;
  height: 36px;
}

.tech-icon-python { background: linear-gradient(135deg, #FFF4D6, #FFE08A); color: #F59E0B; }
.tech-icon-qt { background: linear-gradient(135deg, #E8F5E9, #A5D6A7); color: #43A047; }
.tech-icon-md3 { background: linear-gradient(135deg, #E8DEF8, #D0BCFF); color: #6750A4; }
.tech-icon-build { background: linear-gradient(135deg, #E3F2FD, #90CAF9); color: #1E88E5; }

.tech-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.tech-desc {
  font-size: 14px;
  color: var(--text-muted);
}

.download-hero {
  max-width: 900px;
  margin: 0 auto 48px;
  background: linear-gradient(135deg, var(--primary-50) 0%, var(--primary-100) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px 40px;
  text-align: center;
}

.download-hero .btn {
  font-size: 18px;
  padding: 16px 36px;
}

.download-meta {
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dot-sep {
  color: var(--border);
}

.download-alt {
  margin-top: 16px;
  font-size: 14px;
}

.download-alt a {
  color: var(--primary);
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.download-alt a:hover {
  opacity: 0.75;
}

.download-grid {
  max-width: 1000px;
  margin: 0 auto 48px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.download-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s ease;
}

.download-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.download-step {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-50);
  color: var(--primary);
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.download-icon svg {
  width: 28px;
  height: 28px;
}

.download-icon-1 { background: linear-gradient(135deg, #E8DEF8, #D0BCFF); color: #6750A4; }
.download-icon-2 { background: linear-gradient(135deg, #DCFCE7, #A7F3D0); color: #10B981; }
.download-icon-3 { background: linear-gradient(135deg, #E3F2FD, #90CAF9); color: #1E88E5; }

.download-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.download-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.download-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 60px 32px 32px;
  position: relative;
  z-index: 1;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}

.footer-brand {
  max-width: 320px;
}

.footer-brand .logo {
  margin-bottom: 16px;
  font-size: 20px;
}

.footer-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

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

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  padding: 6px 0;
}

.footer-col a:hover {
  color: var(--primary);
  transform: translateX(4px);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
}

/* ============== Download Page (New) ============== */

.page-download {
  width: 100%;
}

.dl-hero {
  position: relative;
  padding: 100px 20px 80px;
  overflow: hidden;
}

.dl-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(103, 80, 164, 0.18), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(160, 120, 220, 0.15), transparent 55%);
  z-index: 0;
}

.dl-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
  display: block;
  text-align: center;
}

.dl-hero-welcome {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 100px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.dl-hero-welcome svg {
  color: #ef4444;
}

.dl-hero-thanks {
  font-size: clamp(48px, 8vw, 96px);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 8px;
  letter-spacing: -2px;
  color: var(--primary);
}

.dl-hero-product {
  font-size: clamp(40px, 6.5vw, 80px);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 28px;
  letter-spacing: -2px;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.dl-hero-version {
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 600;
  color: var(--text-muted);
  opacity: 0.85;
}

.dl-hero-title {
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 18px;
  letter-spacing: -1px;
  color: var(--text);
}

.dl-hero-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 50%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.dl-hero-desc {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0 auto 40px;
  max-width: 720px;
}

.dl-hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  justify-content: center;
}

.dl-hero-actions .btn {
  gap: 8px;
}

.dl-hero-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--text-secondary);
  justify-content: center;
}

.dl-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
}

.dl-meta-item svg {
  color: var(--primary);
}

.dl-meta-sep {
  color: var(--border);
}

/* Detail Section */

.dl-detail {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.dl-detail-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 32px;
}

.dl-detail-main,
.dl-detail-side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dl-download-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.dl-section-header {
  margin-bottom: 24px;
}

.dl-section-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 12px;
  color: #fff;
  margin-bottom: 12px;
  box-shadow: 0 6px 16px rgba(103, 80, 164, 0.3);
}

.dl-section-title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--text);
}

.dl-section-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

.dl-option-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.dl-option {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg);
  text-decoration: none;
  transition: all 0.22s ease;
  color: inherit;
}

.dl-option:hover {
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(103, 80, 164, 0.14);
  transform: translateY(-2px);
}

.dl-option-primary {
  background: linear-gradient(135deg, rgba(103, 80, 164, 0.08), rgba(160, 120, 220, 0.08));
  border-color: var(--primary-light);
}

.dl-option-primary:hover {
  background: linear-gradient(135deg, rgba(103, 80, 164, 0.12), rgba(160, 120, 220, 0.14));
  border-color: var(--primary);
}

.dl-option-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(103, 80, 164, 0.14), rgba(103, 80, 164, 0.06));
  border-radius: 14px;
  color: var(--primary);
}

.dl-option-icon-github {
  background: linear-gradient(135deg, rgba(30, 30, 30, 0.1), rgba(30, 30, 30, 0.04));
  color: var(--text);
}

.dl-option-icon-list {
  background: linear-gradient(135deg, rgba(120, 180, 230, 0.12), rgba(120, 180, 230, 0.05));
  color: #3b82f6;
}

.dl-option-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dl-recommend {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  border-radius: 100px;
  letter-spacing: 0.3px;
}

.dl-option-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 4px;
  line-height: 1.5;
}

.dl-option-meta {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin: 0;
}

.dl-option-arrow {
  color: var(--text-muted);
  transition: transform 0.2s ease, color 0.2s ease;
}

.dl-option:hover .dl-option-arrow {
  color: var(--primary);
  transform: translateX(4px);
}

.dl-verify-section {
  margin-top: 8px;
}

.dl-verify-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px 24px;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(34, 197, 94, 0.03));
  border: 1px solid rgba(34, 197, 94, 0.25);
  border-radius: 18px;
}

.dl-verify-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-radius: 12px;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 6px 14px rgba(34, 197, 94, 0.25);
}

.dl-verify-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.dl-verify-desc {
  font-size: 13px;
  color: var(--text-muted);
}

/* Side Cards */

.dl-side-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.dl-side-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 18px;
}

.dl-side-title svg {
  color: var(--primary);
}

.dl-req-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dl-req-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--bg);
  border-radius: 10px;
  font-size: 13.5px;
}

.dl-req-label {
  color: var(--text-muted);
}

.dl-req-value {
  color: var(--text);
  font-weight: 500;
}

/* Steps */

.dl-step-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.dl-step-item {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  align-items: start;
  padding: 12px;
  border-radius: 12px;
  transition: background 0.2s ease;
}

.dl-step-item:hover {
  background: var(--bg-hover);
}

.dl-step-num {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(103, 80, 164, 0.25);
  flex-shrink: 0;
}

.dl-step-title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.dl-step-desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Help Card */

.dl-side-help {
  background: linear-gradient(135deg, rgba(103, 80, 164, 0.08), rgba(160, 120, 220, 0.04));
  border-color: var(--primary-light);
}

.dl-help-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0 0 14px;
  line-height: 1.6;
}

.dl-help-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  transition: all 0.2s ease;
}

.dl-help-link:hover {
  border-color: var(--primary);
  background: var(--bg-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(103, 80, 164, 0.12);
}

.dl-help-link svg:first-child {
  color: var(--text);
  flex-shrink: 0;
}

.dl-help-link svg:last-child {
  margin-left: auto;
  color: var(--primary);
  transition: transform 0.2s ease;
}

.dl-help-link:hover svg:last-child {
  transform: translateX(4px);
}

/* Responsive */

@media (max-width: 968px) {
  .dl-hero {
    padding: 60px 20px 40px;
  }

  .dl-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
  }

  .dl-hero-desc {
    margin-left: auto;
    margin-right: auto;
  }

  .dl-hero-actions {
    justify-content: center;
  }

  .dl-hero-meta {
    justify-content: center;
  }

  .dl-detail-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .dl-download-section {
    padding: 24px;
  }
}

@media (max-width: 640px) {
  .dl-hero {
    padding: 40px 16px 32px;
  }

  .dl-detail {
    padding: 24px 16px 60px;
  }

  .dl-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .dl-hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .dl-option {
    grid-template-columns: 1fr;
    gap: 14px;
    text-align: center;
    padding: 18px 16px;
  }

  .dl-option-icon {
    margin: 0 auto;
  }

  .dl-option-arrow {
    display: none;
  }

  .dl-option-title {
    justify-content: center;
  }

  .dl-verify-card {
    flex-direction: column;
    text-align: center;
    padding: 18px;
  }

  .dl-card-float {
    padding: 20px;
    max-width: 300px;
  }

  .dl-download-section {
    padding: 20px 16px;
  }

  .dl-section-title {
    font-size: 20px;
  }

  .dl-req-item {
    flex-direction: column;
    gap: 2px;
    align-items: flex-start;
  }
}

@media (max-width: 968px) {
  .nav-links {
    display: none;
  }

  .hero {
    padding: 60px 20px 80px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }

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

  .hero-badge {
    margin-bottom: 20px;
  }

  .hero-title {
    font-size: 40px;
  }

  .hero-subtitle {
    margin: 0 auto 32px;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-stats {
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
  }

  .floating-card-1 {
    left: 0;
  }

  .floating-card-2 {
    right: 0;
  }

  section {
    padding: 60px 20px;
  }

  .section-title {
    font-size: 32px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

  .nav-inner {
    padding: 0 20px;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 32px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .section-title {
    font-size: 28px;
  }

  .hero-stats {
    padding: 16px;
    gap: 16px;
  }

  .stat-value {
    font-size: 20px;
  }

  .stat-divider {
    display: none;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .btn-xlarge {
    padding: 16px 24px;
    font-size: 15px;
    width: 100%;
    justify-content: center;
  }

  .download-actions {
    flex-direction: column;
  }

  .preview-main {
    padding: 32px 20px;
  }

  .window-body {
    padding: 20px;
  }

  .schedule-row {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .schedule-time {
    border-right: none;
    border-bottom: 2px solid var(--border);
    padding-right: 0;
    padding-bottom: 12px;
    min-width: auto;
    width: 100%;
  }
}

.animate-fade-in {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
