/* ============================================
   MusicArk 官网样式 - HarmonyOS 设计风格
   高端大气、玻璃拟态、流畅动画
   ============================================ */

/* CSS 变量定义 */
:root {
  /* 主色调 - HarmonyOS 风格 */
  --bg-primary: #0a0e14;
  --bg-secondary: #0f1419;
  --bg-tertiary: #141a22;
  
  /* 品牌色 */
  --brand-red: #E84142;
  --brand-red-light: #FF6B6B;
  --brand-blue: #0066FF;
  --brand-blue-light: #4FC3F7;
  --brand-gradient: linear-gradient(135deg, #E84142 0%, #FF6B6B 50%, #4FC3F7 100%);
  
  /* 文字颜色 */
  --text-primary: rgba(255, 255, 255, 0.95);
  --text-secondary: rgba(255, 255, 255, 0.72);
  --text-tertiary: rgba(255, 255, 255, 0.48);
  
  /* 边框和分割线 */
  --border-color: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.12);
  --border-glow: rgba(228, 65, 66, 0.3);
  
  /* 玻璃效果 */
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-bg-hover: rgba(255, 255, 255, 0.08);
  --glass-border: rgba(255, 255, 255, 0.1);
  
  /* 阴影 */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 64px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(228, 65, 66, 0.15);
  
  /* 圆角 */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-2xl: 32px;
  
  /* 间距 */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  
  /* 布局 */
  --max-width: 1200px;
  --header-height: 72px;
  
  /* 动画 */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.4s ease;
  --transition-spring: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* 基础重置 */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* 高端简约背景 */
.ambient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

/* 主光晕 - 右上角暖色 */
.ambient-bg::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -20%;
  width: 80vw;
  height: 80vw;
  max-width: 900px;
  max-height: 900px;
  background: radial-gradient(circle, rgba(229, 115, 115, 0.12) 0%, rgba(229, 115, 115, 0.05) 40%, transparent 70%);
  filter: blur(60px);
  animation: ambientFloat1 20s ease-in-out infinite;
}

/* 次光晕 - 左下角冷色 */
.ambient-bg::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -15%;
  width: 70vw;
  height: 70vw;
  max-width: 800px;
  max-height: 800px;
  background: radial-gradient(circle, rgba(100, 140, 200, 0.1) 0%, rgba(100, 140, 200, 0.04) 40%, transparent 70%);
  filter: blur(80px);
  animation: ambientFloat2 25s ease-in-out infinite;
}

@keyframes ambientFloat1 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: translate(-5%, 8%) scale(1.05);
    opacity: 1;
  }
}

@keyframes ambientFloat2 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.7;
  }
  50% {
    transform: translate(8%, -5%) scale(1.08);
    opacity: 0.9;
  }
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* 容器 */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-md);
  }
}

/* ============================================
   顶部导航
   ============================================ */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-height);
  background: rgba(10, 14, 20, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: background var(--transition-normal), box-shadow var(--transition-normal);
}

.topbar.scrolled {
  background: rgba(10, 14, 20, 0.95);
  box-shadow: var(--shadow-md);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--space-lg);
}

/* 品牌 */
.brand {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-shrink: 0;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 16px rgba(228, 65, 66, 0.25);
}

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

.brand-text strong {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.brand-text span {
  font-size: 12px;
  color: var(--text-tertiary);
  font-weight: 400;
}

/* 导航 */
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav a {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.nav a:hover {
  color: var(--text-primary);
  background: var(--glass-bg-hover);
}

.nav a.active {
  color: var(--text-primary);
  background: var(--glass-bg-hover);
}

.btn-nav {
  background: var(--glass-bg) !important;
  border: 1px solid var(--border-light) !important;
}

.btn-nav:hover {
  border-color: var(--brand-red) !important;
  box-shadow: 0 0 20px rgba(228, 65, 66, 0.2);
}

/* 移动端菜单按钮 */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

@media (max-width: 900px) {
  .nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    padding: var(--space-md);
    background: rgba(10, 14, 20, 0.98);
    border-bottom: 1px solid var(--border-color);
    gap: var(--space-xs);
  }
  
  .nav.active {
    display: flex;
  }
  
  .nav a {
    width: 100%;
    text-align: center;
    padding: var(--space-md);
  }
  
  .menu-toggle {
    display: flex;
  }
}

/* ============================================
   按钮样式
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 12px 24px;
  border-radius: var(--radius-lg);
  font-size: 15px;
  font-weight: 500;
  transition: all var(--transition-normal);
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--brand-gradient);
  color: white;
  box-shadow: 0 8px 32px rgba(228, 65, 66, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(228, 65, 66, 0.4);
}

.btn-secondary {
  background: var(--glass-bg);
  border: 1px solid var(--border-light);
  color: var(--text-primary);
}

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

.btn-small {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: var(--radius-md);
}

.btn-large {
  padding: 16px 32px;
  font-size: 16px;
  border-radius: var(--radius-xl);
}

/* ============================================
   Hero 区域
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-height);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.6;
  animation: float 8s ease-in-out infinite;
}

.glow-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(228, 65, 66, 0.4) 0%, transparent 70%);
  top: -20%;
  left: -10%;
  animation-delay: 0s;
}

.glow-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(79, 195, 247, 0.3) 0%, transparent 70%);
  top: 20%;
  right: -10%;
  animation-delay: -2s;
}

.glow-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(228, 65, 66, 0.25) 0%, transparent 70%);
  bottom: 10%;
  left: 30%;
  animation-delay: -4s;
}

@keyframes float {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(30px, -30px) scale(1.1);
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding: var(--space-3xl) 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 8px 16px;
  background: var(--glass-bg);
  border: 1px solid var(--border-light);
  border-radius: 100px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.6s ease forwards;
}

.badge-dot {
  width: 8px;
  height: 8px;
  background: #34D399;
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.2);
  }
}

.hero-title {
  font-size: clamp(40px, 8vw, 72px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
}

.title-line {
  display: block;
  animation: fadeInUp 0.6s ease forwards;
  opacity: 0;
}

.title-line:nth-child(1) {
  animation-delay: 0.1s;
}

.title-line:nth-child(2) {
  animation-delay: 0.2s;
}

.title-line.highlight {
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.hero-desc {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-xl);
  animation: fadeInUp 0.6s ease 0.3s forwards;
  opacity: 0;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  margin-bottom: var(--space-2xl);
  animation: fadeInUp 0.6s ease 0.4s forwards;
  opacity: 0;
}

.hero-sources-scroll {
  display: flex;
  align-items: center;
  overflow: hidden;
  max-width: 280px;
  margin-left: var(--space-md);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.sources-track {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  animation: scrollSources 20s linear infinite;
}

.sources-track img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
  flex-shrink: 0;
  opacity: 0.8;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.sources-track img:hover {
  opacity: 1;
  transform: scale(1.1);
}

.sources-track img.svg-icon {
  filter: invert(1);
  background: rgba(255,255,255,0.1);
  padding: 4px;
}

@keyframes scrollSources {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: var(--space-md) var(--space-lg);
  padding: var(--space-lg) var(--space-xl);
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  animation: fadeInUp 0.6s ease 0.5s forwards;
  opacity: 0;
  max-width: none;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-xs);
  min-width: 70px;
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 12px;
  color: var(--text-tertiary);
  white-space: nowrap;
}

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

@media (max-width: 900px) {
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    max-width: 100%;
  }
  
  .stat-divider {
    display: none;
  }
  
  .stat-item {
    min-width: auto;
  }
  
  .stat-value {
    font-size: 24px;
  }
  
  .stat-label {
    font-size: 11px;
  }
}

@media (max-width: 768px) {
  .hero-content {
    padding: var(--space-2xl) 0;
  }
  
  .hero-desc {
    font-size: 16px;
  }
  
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }
  
  .hero-sources-scroll {
    max-width: 100%;
    margin-left: 0;
    margin-top: var(--space-md);
  }
  
  .hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm) var(--space-md);
    padding: var(--space-md);
    max-width: 100%;
  }
  
  .stat-value {
    font-size: 20px;
  }
  
  .stat-label {
    font-size: 10px;
  }
}

/* ============================================
   通用区块样式
   ============================================ */
.section {
  padding: var(--space-3xl) 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-2xl);
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: linear-gradient(135deg, rgba(228, 65, 66, 0.15), rgba(79, 195, 247, 0.15));
  border: 1px solid rgba(228, 65, 66, 0.2);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-red-light);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-md);
}

.section-title {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

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

/* ============================================
   音源支持区域 - 重点突出
   ============================================ */
.sources-section {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.sources-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

@media (max-width: 1024px) {
  .sources-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .sources-grid {
    grid-template-columns: 1fr;
  }
}

.source-card {
  position: relative;
  padding: var(--space-xl);
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  transition: all var(--transition-normal);
  overflow: hidden;
}

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

.source-card:hover .source-glow {
  opacity: 1;
}

.source-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(228, 65, 66, 0.1) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  pointer-events: none;
}

.source-icon {
  width: 64px;
  height: 64px;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.source-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-md);
}

/* 反转黑色SVG图标为白色（用于本地音乐和WebDAV） */
.source-card[data-source="local"] .source-icon img,
.source-card[data-source="webdav"] .source-icon img {
  filter: invert(1) brightness(1.2);
  opacity: 0.9;
}

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

.source-content h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.source-content > p {
  font-size: 14px;
  color: var(--text-tertiary);
  margin-bottom: var(--space-md);
}

.source-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.source-features li {
  font-size: 13px;
  color: var(--text-secondary);
  padding-left: 20px;
  position: relative;
}

.source-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--brand-red);
  border-radius: 50%;
}

.sources-footer {
  margin-top: var(--space-2xl);
}

.source-tip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  color: var(--text-secondary);
  font-size: 14px;
}

.source-tip svg {
  flex-shrink: 0;
  color: var(--brand-blue-light);
}

/* ============================================
   功能特性区域
   ============================================ */
.features-section {
  background: var(--bg-secondary);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  padding: var(--space-xl);
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  transition: all var(--transition-normal);
}

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

.feature-large {
  grid-column: span 2;
}

@media (max-width: 640px) {
  .feature-large {
    grid-column: span 1;
  }
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(228, 65, 66, 0.15), rgba(79, 195, 247, 0.15));
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
  color: var(--brand-red-light);
}

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

.feature-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.feature-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.feature-tags span {
  padding: 4px 12px;
  background: rgba(228, 65, 66, 0.1);
  border: 1px solid rgba(228, 65, 66, 0.2);
  border-radius: 100px;
  font-size: 12px;
  color: var(--brand-red-light);
}

/* ============================================
   HarmonyOS 特性区域
   ============================================ */
.harmonyos-section {
  background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
  position: relative;
  overflow: hidden;
}

.harmonyos-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(228, 65, 66, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

.harmony-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  position: relative;
  z-index: 1;
}

@media (max-width: 1024px) {
  .harmony-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .harmony-features {
    grid-template-columns: 1fr;
  }
}

.harmony-card {
  padding: var(--space-xl);
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  text-align: center;
  transition: all var(--transition-normal);
}

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

.harmony-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto var(--space-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(228, 65, 66, 0.1), rgba(79, 195, 247, 0.1));
  border-radius: 50%;
  color: var(--brand-red-light);
}

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

.harmony-card h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.harmony-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   应用截图区域
   ============================================ */
.screenshots-section {
  background: var(--bg-primary);
  padding: var(--space-3xl) 0;
}

.screenshots-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.carousel-arrow {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-primary);
  transition: all var(--transition-normal);
  z-index: 2;
}

.carousel-arrow:hover {
  background: var(--glass-bg-hover);
  border-color: var(--brand-red);
  transform: scale(1.05);
}

.carousel-arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.screenshots-track {
  display: flex;
  gap: var(--space-lg);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: var(--space-md) 0;
  scrollbar-width: none;
}

.screenshots-track::-webkit-scrollbar {
  display: none;
}

.screenshot-item {
  flex: 0 0 280px;
  scroll-snap-align: center;
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.screenshot-item:hover {
  transform: translateY(-4px);
  border-color: var(--border-light);
  box-shadow: var(--shadow-lg);
}

.screenshot-item img {
  width: 100%;
  height: auto;
  display: block;
}

.screenshot-info {
  padding: var(--space-md);
  text-align: center;
}

.screenshot-info strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.screenshot-info span {
  font-size: 13px;
  color: var(--text-tertiary);
}

.screenshots-dots {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.screenshots-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border-color);
  border: none;
  padding: 0;
  transition: all var(--transition-normal);
}

.screenshots-dots .dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--brand-gradient);
}

@media (max-width: 768px) {
  .carousel-arrow {
    display: none;
  }
  
  .screenshot-item {
    flex: 0 0 75vw;
  }
}

/* ============================================
   主题展示区域
   ============================================ */
.themes-section {
  background: var(--bg-secondary);
  padding: var(--space-2xl) 0;
}

.themes-showcase {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.theme-item {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--theme-color);
  border: 3px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all var(--transition-normal);
  position: relative;
}

.theme-item:hover {
  transform: scale(1.15);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: 0 0 20px var(--theme-color);
}

.theme-item::after {
  content: attr(data-name);
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  color: var(--text-tertiary);
  white-space: nowrap;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.theme-item:hover::after {
  opacity: 1;
}

.themes-note {
  text-align: center;
  font-size: 14px;
  color: var(--text-tertiary);
}

/* ============================================
   FAQ 区域
   ============================================ */
.faq-section {
  background: var(--bg-primary);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.faq-item {
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.faq-item:hover {
  border-color: var(--border-light);
}

.faq-item[open] {
  border-color: var(--border-glow);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  cursor: pointer;
  list-style: none;
  font-weight: 500;
  transition: background var(--transition-fast);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary:hover {
  background: var(--glass-bg-hover);
}

.faq-item summary span {
  flex: 1;
}

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

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 var(--space-lg) var(--space-lg);
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.8;
}

/* ============================================
   下载区域
   ============================================ */
.download-section {
  background: var(--bg-secondary);
  padding: var(--space-2xl) 0 var(--space-3xl);
}

.download-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2xl);
  padding: var(--space-2xl);
  background: linear-gradient(135deg, rgba(228, 65, 66, 0.1), rgba(79, 195, 247, 0.05));
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-2xl);
  overflow: hidden;
}

.download-glow {
  position: absolute;
  top: -50%;
  right: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(228, 65, 66, 0.2) 0%, transparent 60%);
  pointer-events: none;
}

.download-content {
  position: relative;
  z-index: 1;
}

.download-content h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.download-content p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.download-badges {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.download-badges .badge {
  padding: 4px 12px;
  background: var(--glass-bg);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  font-size: 12px;
  color: var(--text-secondary);
}

.download-actions {
  position: relative;
  z-index: 1;
  display: flex;
  gap: var(--space-md);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .download-card {
    flex-direction: column;
    text-align: center;
  }
  
  .download-badges {
    justify-content: center;
  }
  
  .download-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .download-actions .btn {
    width: 100%;
  }
}

/* ============================================
   页脚
   ============================================ */
.footer {
  background: var(--bg-primary);
  border-top: 1px solid var(--border-color);
  padding: var(--space-2xl) 0 var(--space-xl);
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: var(--space-lg);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.footer-brand img {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
}

.footer-brand strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.footer-brand span {
  font-size: 13px;
  color: var(--text-tertiary);
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  text-align: center;
  font-size: 13px;
  color: var(--text-tertiary);
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-md);
  }
}

/* ============================================
   工具类
   ============================================ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-tertiary);
}

/* 选中文字样式 */
::selection {
  background: rgba(228, 65, 66, 0.3);
  color: var(--text-primary);
}

/* 页面加载动画 */
@keyframes pageLoad {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

main {
  animation: pageLoad 0.5s ease;
}
