:root {
  --bg: #0b0f14;
  --bg-alt: #11171f;
  --text: #e5e7eb;
  --muted: #9aa4b2;
  --primary: #e11d48; /* rose-600 */
  --primary-700: #be123c;
  --border: #1f2937;
  --card: #0f141a;
}

/* Typography - 西部风格 */
h1 {
  font-size: 48px;
  font-weight: 700;
  margin: 0 0 16px;
  background: linear-gradient(135deg, #F5DEB3, #D2691E);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Text - 西部风格 */
p {
  margin: 0 0 16px;
  color: #E6D7C3;
  line-height: 1.6;
}

.text-muted {
  color: #C4A57B;
}

.text-primary {
  color: #D2691E;
}

.text-secondary {
  color: #8B4513;
}

/* Links - 西部风格 */
a {
  color: #D2691E;
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #F5DEB3;
  text-decoration: underline;
}

h2 {
  font-size: 36px;
  font-weight: 600;
  margin: 0 0 16px;
  background: linear-gradient(135deg, #F5DEB3, #D2691E);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

h3 {
  font-size: 24px;
  font-weight: 600;
  margin: 0 0 12px;
  color: #F5DEB3;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

h4 {
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 12px;
  color: #D2691E;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans CJK", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  padding-top: 64px;
  /* 添加全站背景图片 */
  background-image: url('bg.webp');
  background-attachment: fixed;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

/* 为body添加一个半透明的背景层，确保文本可读性 */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(8,11,16,0.7), rgba(8,11,16,0.85));
  z-index: -1;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.redm-home .container { max-width: 1100px; }
.redm-main { padding: 0; }

/* Header - 西部风格 */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: linear-gradient(180deg, rgba(8,11,16,0.95), rgba(8,11,16,0.85));
  backdrop-filter: blur(10px);
  border-bottom: 2px solid #8B4513;
  z-index: 20;
  transition: background 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.site-header::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #8B4513, #D2691E, #8B4513);
}
.site-header.scrolled {
  background: rgba(11, 15, 20, 0.92);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  border-color: #263241;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 8px; background: var(--primary);
  font-weight: 800;
}
.name { font-weight: 600; letter-spacing: 0.4px; }

/* 移动端菜单切换按钮 */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 21;
}

.mobile-menu-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background-color: #F5DEB3;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav { display: flex; gap: 16px; }
.nav a {
  color: #F5DEB3;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: 4px;
  transition: all 0.2s ease;
  position: relative;
}
.nav a:hover {
  color: #D2691E;
  background: rgba(139, 69, 19, 0.2);
}
.nav a::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 2px;
  background: #D2691E;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}
.nav a:hover::after {
  width: 80%;
}

/* 移动端响应式导航 */
@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }
  
  .nav {
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, rgba(8,11,16,0.98), rgba(8,11,16,0.95));
    backdrop-filter: blur(10px);
    flex-direction: column;
    gap: 0;
    padding: 20px;
    border-bottom: 2px solid #8B4513;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 20;
    box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  }
  
  .nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  
  .nav a {
    padding: 15px 0;
    border-bottom: 1px solid rgba(139, 69, 19, 0.3);
    text-align: center;
    font-size: 16px;
  }
  
  .nav a:last-child {
    border-bottom: none;
  }
  
  .nav a:hover {
    background: rgba(139, 69, 19, 0.2);
  }
  
  .nav a:hover::after {
    width: 0;
  }
  
  /* 汉堡菜单动画 */
  .mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  
  .mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* Hero */
.hero { border-bottom: 1px solid var(--border); }
.hero-inner { padding: 64px 0; text-align: center; position: relative; z-index: 1; }
.hero h1 { 
  font-size: 36px; 
  margin: 0 0 14px; 
  color: #FFFFFF; /* 白色，与背景形成强烈对比 */
  font-weight: 700; /* 增加字体粗细 */
  letter-spacing: 1px; /* 增加字间距 */
  /* 添加西部风格的文字特效 */
  background: linear-gradient(45deg, #FFFFFF, #F0F0F0, #FFFFFF);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  text-fill-color: transparent;
  -webkit-text-fill-color: transparent;
  /* 添加动画效果 */
  animation: westernGlow 3s ease-in-out infinite alternate;
}
.subtitle { 
  color: #E6D7C3; /* 稍浅的米色，与标题形成层次 */
  max-width: 800px; 
  margin: 0 auto 24px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7); /* 添加阴影增强可读性 */
  font-size: 18px; /* 稍微增大字体 */
  line-height: 1.6; /* 增加行高，提高可读性 */
}
.cta { 
  display: flex; 
  gap: 12px; 
  justify-content: center; 
  margin-bottom: 12px; 
  flex-wrap: nowrap; /* 防止按钮换行 */
  align-items: center; /* 使按钮垂直居中对齐 */
}

.cta > .btn, .cta > .dropdown {
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto; /* 恢复自动高度 */
  min-height: 44px; /* 设置最小高度确保一致性 */
  flex: 0 0 auto; /* 防止按钮拉伸或收缩 */
}

/* 确保所有按钮宽度一致 */
.cta > .btn {
  padding: 12px 24px;
  min-width: 120px; /* 设置最小宽度 */
}

.cta > .dropdown .dropdown-toggle {
  padding: 12px 24px;
  padding-right: 36px; /* 为箭头留出空间 */
  min-width: 120px; /* 设置最小宽度 */
}
.meta { color: var(--muted); font-size: 14px; }

/* 西部风格发光动画 */
@keyframes westernGlow {
  0% {
    filter: brightness(1) drop-shadow(0 0 5px rgba(255, 255, 255, 0.7));
  }
  50% {
    filter: brightness(1.1) drop-shadow(0 0 15px rgba(255, 255, 255, 0.9));
  }
  100% {
    filter: brightness(1.05) drop-shadow(0 0 10px rgba(255, 255, 255, 0.8));
  }
}

/* Hero with background image overlay */
.hero.hero-with-bg {
  position: relative;
  min-height: 100vh; /* 设置最小高度为视窗高度 */
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero.hero-with-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,11,16,0.3), rgba(8,11,16,0.3));
}
.hero.hero-with-bg .hero-inner {
  position: relative;
  z-index: 2;
  padding: 80px 0; /* 增加内边距，确保内容有足够空间 */
}

/* Buttons - 西部风格 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
  white-space: nowrap; /* 防止文字换行 */
  min-width: 0; /* 允许按钮收缩 */
  flex-shrink: 0; /* 防止按钮在flex容器中被压缩 */
  box-sizing: border-box; /* 确保边框包含在高度内 */
  min-width: 120px; /* 设置最小宽度 */
}

.btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn:hover::before {
  opacity: 1;
}

.btn.primary {
  background: linear-gradient(135deg, #8B4513, #A0522D);
  color: #F5DEB3;
  border: 2px solid #8B4513;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.btn.primary:hover {
  background: linear-gradient(135deg, #A0522D, #8B4513);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
  border-color: #D2691E;
}

.btn.ghost {
  background: transparent;
  border: 2px solid #8B4513;
  color: #F5DEB3;
}

.btn.ghost:hover {
  background: rgba(139, 69, 19, 0.2);
  transform: translateY(-2px);
  border-color: #D2691E;
}

/* 下拉菜单样式 - 西部牛仔风格 */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-toggle {
  cursor: pointer;
  position: relative;
  background: linear-gradient(135deg, #8B4513, #A0522D);
  border: 2px solid #654321;
  border-radius: 4px;
  color: #F5DEB3;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  /* 添加皮革纹理效果 */
  background-image: 
    linear-gradient(135deg, #8B4513, #A0522D),
    repeating-linear-gradient(45deg, rgba(0,0,0,.1), rgba(0,0,0,.1) 1px, transparent 1px, transparent 15px);
  background-blend-mode: multiply;
  position: relative;
  overflow: hidden;
  box-sizing: border-box; /* 确保边框包含在高度内 */
  padding: 12px 24px;
  padding-right: 36px; /* 为箭头留出空间 */
  min-width: 120px; /* 设置最小宽度 */
}

/* 添加西部风格的装饰边角 */
.dropdown-toggle::before, .dropdown-toggle::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid #D2691E;
}

.dropdown-toggle::before {
  top: 4px;
  left: 4px;
  border-right: none;
  border-bottom: none;
}

.dropdown-toggle::after {
  bottom: 4px;
  right: 4px;
  border-left: none;
  border-top: none;
}

.dropdown-toggle:hover {
  background: linear-gradient(135deg, #A0522D, #8B4513);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  /* 更新皮革纹理效果 */
  background-image: 
    linear-gradient(135deg, #A0522D, #8B4513),
    repeating-linear-gradient(45deg, rgba(0,0,0,.15), rgba(0,0,0,.15) 1px, transparent 1px, transparent 15px);
  background-blend-mode: multiply;
}

/* 下拉箭头 */
.dropdown-toggle .arrow {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent;
  border-top-color: #F5DEB3;
  transition: transform 0.3s ease;
}

.dropdown-toggle.active .arrow {
  transform: translateY(-50%) rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: linear-gradient(135deg, #3E2723, #5D4037);
  border: 2px solid #8B4513;
  border-radius: 4px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  margin-top: 8px;
  overflow: hidden;
  position: relative;
  /* 添加皮革纹理效果 */
  background-image: 
    linear-gradient(135deg, #3E2723, #5D4037),
    repeating-linear-gradient(90deg, rgba(0,0,0,.1), rgba(0,0,0,.1) 1px, transparent 1px, transparent 10px),
    repeating-linear-gradient(0deg, rgba(0,0,0,.1), rgba(0,0,0,.1) 1px, transparent 1px, transparent 10px);
  background-blend-mode: multiply;
}

/* 添加西部风格的装饰边角 */
.dropdown-menu::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #8B4513, #D2691E, #8B4513);
}

/* 添加西部风格的装饰元素 */
.dropdown-menu::after {
  content: "✦";
  position: absolute;
  top: 8px;
  right: 8px;
  color: #D2691E;
  font-size: 14px;
  opacity: 0.7;
}

.dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: block;
  padding: 12px 18px;
  color: #F5DEB3;
  text-decoration: none;
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(139, 69, 19, 0.3);
  font-weight: 500;
  position: relative;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  /* 添加轻微的皮革纹理 */
  background-image: repeating-linear-gradient(90deg, rgba(0,0,0,.05), rgba(0,0,0,.05) 1px, transparent 1px, transparent 8px);
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background: linear-gradient(90deg, rgba(139, 69, 19, 0.4), rgba(160, 82, 45, 0.4));
  color: #FFD700;
  padding-left: 24px;
  /* 更新皮革纹理 */
  background-image: 
    linear-gradient(90deg, rgba(139, 69, 19, 0.4), rgba(160, 82, 45, 0.4)),
    repeating-linear-gradient(90deg, rgba(0,0,0,.1), rgba(0,0,0,.1) 1px, transparent 1px, transparent 8px);
  background-blend-mode: multiply;
}

/* 添加西部风格的装饰元素 */
.dropdown-item::before {
  content: "❖";
  position: absolute;
  left: 8px;
  opacity: 0;
  transition: all 0.3s ease;
  color: #FFD700;
}

.dropdown-item:hover::before {
  opacity: 1;
}

/* Official-like download button - 西部风格 */
.btn.btn-download {
  background: linear-gradient(135deg, #D2691E, #8B4513);
  color: #F5DEB3;
  border: 2px solid #D2691E;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  font-size: 18px;
  padding: 12px 22px;
}
.btn.btn-download:hover {
  background: linear-gradient(135deg, #8B4513, #D2691E);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.4);
  border-color: #8B4513;
}

/* 下载与安装引导区域 - 西部风格 */
#download {
  background: linear-gradient(180deg, rgba(139, 69, 19, 0.15), rgba(160, 82, 45, 0.25)); 
  border-top: 3px solid #8B4513; 
  border-bottom: 3px solid #8B4513; 
  position: relative;
}

#download::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #8B4513, #D2691E, #8B4513);
}

#download::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #8B4513, #D2691E, #8B4513);
}

/* 社区与资源区域 - 西部风格 */
#community {
  background: linear-gradient(180deg, rgba(139, 69, 19, 0.15), rgba(160, 82, 45, 0.25)); 
  border-top: 3px solid #8B4513; 
  border-bottom: 3px solid #8B4513; 
  position: relative;
}

#community::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #8B4513, #D2691E, #8B4513);
}

#community::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #8B4513, #D2691E, #8B4513);
}
/* Sections */
.section { padding: 48px 0; }
.section h2 { font-size: 28px; margin: 0 0 18px; }

/* 特性介绍区域 - 西部风格 */
.features-section {
  padding: 80px 0;
  background: linear-gradient(180deg, rgba(8,11,16,0.85), rgba(8,11,16,0.95));
  position: relative;
  border-top: 3px solid #8B4513;
  border-bottom: 3px solid #8B4513;
}

.features-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #8B4513, #D2691E, #8B4513);
}

.features-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #8B4513, #D2691E, #8B4513);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.feature-card {
  background: linear-gradient(135deg, rgba(139, 69, 19, 0.2), rgba(160, 82, 45, 0.2));
  border: 2px solid #8B4513;
  border-radius: 8px;
  padding: 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #8B4513, #A0522D);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border: 2px solid #D2691E;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #8B4513, #D2691E, #8B4513);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(139, 69, 19, 0.3);
  border-color: #D2691E;
}
.feature-card h3 { margin: 0 0 8px; font-size: 18px; }
.feature-card p { margin: 0; color: var(--muted); }

.steps { margin: 0 0 16px; }
.steps li { margin-bottom: 6px; }
.cta-inline { display: flex; gap: 12px; margin: 10px 0 0; }
.note { color: var(--muted); font-size: 14px; margin-top: 12px; }

/* 下载卡片 - 西部风格 */
.download-card {
  background: linear-gradient(135deg, rgba(139, 69, 19, 0.2), rgba(160, 82, 45, 0.2));
  border: 2px solid #8B4513;
  border-radius: 12px;
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.download-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #8B4513, #D2691E, #8B4513);
}

.download-card h3 { 
  margin: 0 0 6px; 
  font-size: 18px; 
  color: #F5DEB3;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.download-card p { 
  margin: 0 0 10px; 
  color: #E6D7C3;
}

/* 镜像卡片 - 西部风格 */
.mirror-card {
  background: linear-gradient(135deg, rgba(139, 69, 19, 0.2), rgba(160, 82, 45, 0.2));
  border: 2px solid #8B4513;
  border-radius: 12px;
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.mirror-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #8B4513, #D2691E, #8B4513);
}

.mirror-card h4 { 
  margin: 0 0 6px; 
  font-size: 16px;
  color: #F5DEB3;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* FAQ区域 - 西部风格 */
details { 
  background: linear-gradient(135deg, rgba(139, 69, 19, 0.2), rgba(160, 82, 45, 0.2));
  border: 2px solid #8B4513;
  border-radius: 10px; 
  padding: 12px;
  position: relative;
  overflow: hidden;
}

details::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #8B4513, #D2691E, #8B4513);
}

details[open] { 
  border-color: #D2691E;
}

summary { 
  cursor: pointer; 
  font-weight: 600;
  color: #F5DEB3;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Downloads */
.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 18px;
}

/* Mirrors list */
.mirrors-header { margin-top: 24px; }
.mirror-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 12px;
}
.mirror-meta { display: flex; align-items: center; gap: 8px; margin: 6px 0 10px; }
.badge { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 999px; }
.badge.cdn { background: #103a2b; color: #34d399; }
.badge.pan { background: #3a0e0e; color: #fca5a5; }
.action-row { display: flex; gap: 10px; }

/* FAQ */
.faq-list { display: grid; gap: 10px; }
.site-footer {
  border-top: 3px solid #8B4513;
  padding: 24px 0;
  background: linear-gradient(180deg, rgba(8,11,16,0.95), rgba(8,11,16,0.98));
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #8B4513, #D2691E, #8B4513);
}
.footer-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.legal { color: var(--muted); max-width: 700px; }
.links { display: flex; gap: 12px; }
.links a { color: var(--muted); text-decoration: none; }
.links a:hover { color: var(--text); }

/* Responsive */
@media (max-width: 960px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .download-grid { grid-template-columns: 1fr; }
  .mirror-list { grid-template-columns: 1fr; }
  
  /* 移动设备上的hero区域调整 */
  .hero.hero-with-bg {
    min-height: 100vh;
    background-attachment: scroll; /* 移动设备上使用scroll而非fixed，提高性能 */
  }
  .hero.hero-with-bg .hero-inner {
    padding: 60px 0;
  }
  .hero h1 { font-size: 32px; }
  .subtitle { font-size: 16px; }
  .cta { flex-wrap: wrap; }
}

@media (max-width: 768px) {
  /* 更小屏幕的hero区域调整 */
  .hero.hero-with-bg .hero-inner {
    padding: 40px 0;
  }
  .hero h1 { font-size: 28px; }
  .subtitle { font-size: 15px; }
}

/* Carousel - 西部风格 */
.carousel-container { position: relative; overflow: visible; }
.carousel { position: relative; overflow: hidden; }
.carousel-inner { position: relative; }
.carousel-item { display: none; }
.carousel-item.active { display: block; }
.carousel-image img { width: 100%; display: block; border-radius: 12px; }
.carousel-content { padding: 16px; }
.carousel-control { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 999px; background: rgba(139,69,19,0.35); border: 2px solid #D2691E; display: flex; align-items: center; justify-content: center; color: #F5DEB3; cursor: pointer; z-index: 10; }
.carousel-control.prev { left: 14px; }
.carousel-control.next { right: 14px; }
.carousel-control:hover { background: rgba(139,69,19,0.55); }
#carouselIndicators { position: absolute !important; bottom: 16px !important; left: 50% !important; transform: translateX(-50%) !important; display: flex !important; justify-content: center !important; gap: 10px !important; width: auto !important; margin: 0 !important; padding: 0 !important; z-index: 60 !important; }
#carouselIndicators .indicator { width: 12px; height: 12px; border-radius: 50% !important; background: rgba(139,69,19,0.85) !important; border: 1px solid #D2691E !important; display: inline-block !important; opacity: 1 !important; padding: 0 !important; margin: 0 !important; line-height: 0 !important; outline: none !important; box-shadow: none !important; -webkit-appearance: none !important; appearance: none !important; cursor: pointer !important; flex: 0 0 auto !important; }
#carouselIndicators .indicator.active { background: #D2691E !important; transform: scale(1.2); }

/* 强制分离左右按钮，覆盖主题可能的全局 .next/.prev 样式 */
#prevBtn { left: 14px !important; right: auto !important; }
#nextBtn { right: 14px !important; left: auto !important; }
#prevBtn, #nextBtn { position: absolute !important; top: 50% !important; transform: translateY(-50%) !important; }


/* Video tutorial - 西部风格 */
.video-layout {
  display: grid;
  grid-template-columns: 2fr 1.2fr;
  gap: 20px;
  align-items: stretch; /* 使左右列等高，便于右侧内部滚动 */
}
.text-col { display: flex; }
.guide-text {
  background: linear-gradient(135deg, rgba(139, 69, 19, 0.2), rgba(160, 82, 45, 0.2));
  border: 2px solid #8B4513;
  border-radius: 12px;
  padding: 16px;
  height: 100%;
  overflow: auto; /* 右侧内容可滑动浏览 */
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: #8B4513 var(--bg-alt);
  position: relative;
}

.guide-text::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #8B4513, #D2691E, #8B4513);
}

.guide-text::-webkit-scrollbar { width: 8px; }
.guide-text::-webkit-scrollbar-track { background: var(--bg-alt); border-radius: 12px; }
.guide-text::-webkit-scrollbar-thumb { background: #8B4513; border-radius: 12px; }
.guide-text::-webkit-scrollbar-thumb:hover { background: #D2691E; }
.guide-text h3 { margin: 0 0 10px; font-size: 18px; color: #F5DEB3; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3); }
.guide-text .steps { margin: 0 0 12px; }
.guide-text .steps li { margin-bottom: 6px; color: #E6D7C3; }
.video-wrapper {
  position: relative;
  padding-top: 56.25%; /* 16:9 */
  background: linear-gradient(135deg, rgba(139, 69, 19, 0.2), rgba(160, 82, 45, 0.2));
  border: 2px solid #8B4513;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.video-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #8B4513, #D2691E, #8B4513);
  z-index: 1;
}

.video-wrapper video, .video-wrapper iframe {
  position: absolute; inset: 0; width: 100%; height: 100%;
}

/* 视频教程卡片 - 西部风格 */
.video-card {
  background: linear-gradient(135deg, rgba(139, 69, 19, 0.2), rgba(160, 82, 45, 0.2));
  border: 2px solid #8B4513;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
}

.video-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #8B4513, #D2691E, #8B4513);
}

.video-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(139, 69, 19, 0.3);
  border-color: #D2691E;
}

.video-thumbnail {
  position: relative;
  padding-top: 56.25%; /* 16:9 aspect ratio */
  overflow: hidden;
}

.video-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.video-card:hover .video-thumbnail img {
  transform: scale(1.05);
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70px;
  height: 70px;
  background: rgba(139, 69, 19, 0.8);
  border: 3px solid #F5DEB3;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.play-button:hover {
  background: rgba(210, 105, 30, 0.9);
  transform: translate(-50%, -50%) scale(1.1);
}

.play-button::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 25px solid #F5DEB3;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  margin-left: 5px;
}

.video-info {
  padding: 20px;
}

.video-info h3 {
  margin: 0 0 10px;
  font-size: 20px;
  color: #F5DEB3;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.video-info p {
  margin: 0;
  color: #E6D7C3;
  font-size: 16px;
}

/* 安装视频教程区域 - 西部风格 */
.video-guide-section {
  padding: 80px 0;
  background: linear-gradient(180deg, rgba(8,11,16,0.95), rgba(8,11,16,0.85));
  position: relative;
  border-top: 3px solid #8B4513;
  border-bottom: 3px solid #8B4513;
}

.video-guide-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #8B4513, #D2691E, #8B4513);
}

.video-guide-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #8B4513, #D2691E, #8B4513);
}

/* 精彩瞬间区域 - 西部风格 */
.carousel-section {
  padding: 80px 0;
  background: linear-gradient(180deg, rgba(8,11,16,0.85), rgba(8,11,16,0.95));
  position: relative;
  border-top: 3px solid #8B4513;
  border-bottom: 3px solid #8B4513;
}

.carousel-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #8B4513, #D2691E, #8B4513);
}

.carousel-section::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #8B4513, #D2691E, #8B4513);
}

/* 轮播图样式 - 西部风格 */
.carousel-container {
  position: relative;
  margin: 24px 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  border: 2px solid #8B4513;
}

.carousel {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.carousel-inner {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  transition: transform 0.6s ease-in-out;
}

.carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
  transform: translateX(100%);
}

.carousel-item.active {
  opacity: 1;
  transform: translateX(0);
  z-index: 1;
}

.carousel-item.prev {
  transform: translateX(-100%);
}

.carousel-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.carousel-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 30px;
  background: linear-gradient(to top, rgba(8, 11, 16, 0.95), rgba(8, 11, 16, 0.7), transparent);
  color: #F5DEB3;
  z-index: 2;
}

.carousel-content h3 {
  font-size: 28px;
  margin: 0 0 12px;
  font-weight: 700;
  color: #F5DEB3;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-content p {
  font-size: 16px;
  margin: 0;
  max-width: 80%;
  line-height: 1.6;
  color: #E6D7C3;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* 轮播控制按钮 - 西部风格 */
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(139, 69, 19, 0.7);
  border: 2px solid #D2691E;
  border-radius: 50%;
  color: #F5DEB3;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: all 0.3s ease;
}

.carousel-control:hover {
  background: rgba(210, 105, 30, 0.9);
  transform: translateY(-50%) scale(1.1);
  border-color: #F5DEB3;
}

.carousel-control.prev {
  left: 20px;
}

.carousel-control.next {
  right: 20px;
}

/* 轮播指示器 - 西部风格 */
.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 3;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(245, 222, 179, 0.5);
  border: 1px solid #8B4513;
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: #D2691E;
  width: 32px;
  border-radius: 6px;
  border: 2px solid #F5DEB3;
  transform: scale(1.1);
}

/* 响应式设计 */
@media (max-width: 960px) {
  .carousel {
    height: 400px;
  }
  
  .carousel-content h3 {
    font-size: 24px;
  }
  
  .carousel-content p {
    font-size: 14px;
    max-width: 90%;
  }
}

@media (max-width: 768px) {
  .carousel {
    height: 350px;
  }
  
  .carousel-control {
    width: 40px;
    height: 40px;
  }
  
  .carousel-control.prev {
    left: 10px;
  }
  
  .carousel-control.next {
    right: 10px;
  }
  
  .carousel-content {
    padding: 20px;
  }
  
  .carousel-content h3 {
    font-size: 20px;
  }
  
  .carousel-content p {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .carousel {
    height: 300px;
  }
  
  .carousel-content h3 {
    font-size: 18px;
  }
  
  .carousel-content p {
    font-size: 13px;
  }
}
@media (max-width: 640px) {
  .header-inner { 
    height: auto; 
    padding: 10px 0; 
    flex-direction: column; 
    gap: 10px; 
  }
  
  .nav { 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 8px; 
  }
  
  .nav a { 
    padding: 6px 8px; 
    font-size: 14px; 
    color: #F5DEB3;
    text-decoration: none;
    font-weight: 500;
    border-radius: 4px;
    transition: all 0.2s ease;
    position: relative;
  }
  
  .nav a:hover {
    color: #D2691E;
    background: rgba(139, 69, 19, 0.2);
  }
  
  .nav a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: #D2691E;
    transition: all 0.3s ease;
    transform: translateX(-50%);
  }
  
  .nav a:hover::after {
    width: 80%;
  }
  
  .features-grid { grid-template-columns: 1fr; }
  .cta, .cta-inline { flex-direction: column; }
  .footer-inner { flex-direction: column; }
  .hero h1 { font-size: 28px; }
  
  /* 移动设备上的下拉菜单调整 - 西部风格 */
  .dropdown-menu {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 280px;
    max-height: 70vh;
    overflow-y: auto;
    background: linear-gradient(135deg, #3E2723, #5D4037);
    border: 2px solid #8B4513;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    /* 添加皮革纹理效果 */
    background-image: 
      linear-gradient(135deg, #3E2723, #5D4037),
      repeating-linear-gradient(90deg, rgba(0,0,0,.1), rgba(0,0,0,.1) 1px, transparent 1px, transparent 10px),
      repeating-linear-gradient(0deg, rgba(0,0,0,.1), rgba(0,0,0,.1) 1px, transparent 1px, transparent 10px);
    background-blend-mode: multiply;
  }
  
  .dropdown-menu::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #8B4513, #D2691E, #8B4513);
  }
  
  .dropdown-menu::after {
    content: "✦";
    position: absolute;
    top: 8px;
    right: 8px;
    color: #D2691E;
    font-size: 14px;
    opacity: 0.7;
  }
  
  .dropdown-menu.show {
    transform: translate(-50%, -50%) scale(1);
  }
  
  .dropdown-item {
    padding: 14px 20px;
    font-size: 16px;
    color: #F5DEB3;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    border-bottom: 1px solid rgba(139, 69, 19, 0.3);
    /* 添加轻微的皮革纹理 */
    background-image: repeating-linear-gradient(90deg, rgba(0,0,0,.05), rgba(0,0,0,.05) 1px, transparent 1px, transparent 8px);
  }
  
  .dropdown-item:last-child {
    border-bottom: none;
  }
  
  .dropdown-item:hover {
    background: linear-gradient(90deg, rgba(139, 69, 19, 0.4), rgba(160, 82, 45, 0.4));
    color: #FFD700;
    padding-left: 28px;
    /* 更新皮革纹理 */
    background-image: 
      linear-gradient(90deg, rgba(139, 69, 19, 0.4), rgba(160, 82, 45, 0.4)),
      repeating-linear-gradient(90deg, rgba(0,0,0,.1), rgba(0,0,0,.1) 1px, transparent 1px, transparent 8px);
    background-blend-mode: multiply;
  }
}

@media (max-width: 960px) {
  .video-layout { grid-template-columns: 1fr; }
  .guide-text { height: auto; overflow: visible; }
}