/* CSS Variables - 现代科技感配色 */
:root {
  /* 主配色 - 科技蓝渐变系 */
  --primary-color: #0d1a46;
  --secondary-color: #3b82f6;
  --tertiary-color: #60a5fa;
  --accent-color: #8b5cf6;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  
  /* 背景和表面颜色 - 苹果风格玻璃态 */
  --surface-primary: rgba(30, 41, 59, 0.8);
  --surface-secondary: rgba(51, 65, 85, 0.6);
  --surface-card: rgba(255, 255, 255, 0.9);
  --surface-glass: rgba(255, 255, 255, 0.1);
  --glass-apple: rgba(255, 255, 255, 0.28);
  --glass-border: rgba(255, 255, 255, 0.42);
  
  /* 文本颜色 */
  --text-primary: #ffffff;
  --text-secondary: #d7e0ec;
  --text-dark: #1e293b;
  --text-gray: #64748b;
  
  /* 基础设置 */
  --border-radius: 16px;
  --border-radius-lg: 24px;
  --transition-speed: 0.3s;
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glass: 0 8px 32px rgba(59, 130, 246, 0.1);
  
  /* 导航相关 */
  --sidebar-bg: var(--primary-color);
  --sidebar-hover: var(--secondary-color);
}

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

/* 确保所有元素都能正确继承宽度 */
html, body {
  width: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 25%, #334155 50%, #1e293b 75%, #0f172a 100%);
  background-attachment: fixed;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-size: 14px;
  position: relative;
}

/* 添加科技感的背景装饰 */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 40% 40%, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* Navigation - 苹果风格玻璃态 */
nav {
  width: 100%;
  background: rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  padding: 8px 0;
  transform: translateY(-100%);
  transition: all var(--transition-speed) ease;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  height: 50px; /* 减小高度 */
  max-width: 1200px;
  margin: 0 auto;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo img {
  height: 44px;
}

.nav-logo span {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--text-color);
}

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

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

.nav-links a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 15px;
  transition: all var(--transition-speed) ease;
  position: relative;
  padding: 15px;
  border-radius: var(--border-radius);
}

.nav-links a:hover {
  background: var(--secondary-color);
  color: #fff;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #666;
  font-size: 1.5rem;
  cursor: pointer;
}

/* Language switch */
.language-switch {
  display: flex;
  align-items: center;
  margin-left: 20px;
}

.language-switch button {
  height: 36px;
  min-width: 80px;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 3px 10px;
  margin-left: 5px;
  cursor: pointer;
  border-radius: var(--border-radius);
  font-size: 14px;
  transition: all var(--transition-speed) ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.language-switch button.active {
  background: var(--primary-color);
  color: var(--text-primary);
}

.language-switch button:hover {
  background: var(--primary-color);
  color: var(--text-primary);
}

/* Main content container */
main {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: stretch; /* 让子元素占据全宽 */
}

/* Logo and header section - 现代化设计 */
.logo {
  text-align: center;
  animation: fadeIn 2s ease;
  padding: 60px 20px 40px;
  max-width: 1200px;
  width: 85%;
  margin: 0 auto;
  position: relative;
}

.logo::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
}

.logo img {
  width: 280px;
  margin-bottom: 30px;
  transition: all var(--transition-speed) ease;
  filter: drop-shadow(0 8px 16px rgba(59, 130, 246, 0.2));
}

.logo img:hover {
  transform: scale(1.08) rotate(2deg);
  filter: drop-shadow(0 12px 24px rgba(59, 130, 246, 0.3));
}

.logo h1 {
  margin: 0;
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
}

.logo .chinese-name {
  font-size: 26px;
  margin-bottom: 20px;
  color: var(--text-secondary);
  font-weight: 500;
}

.slogan {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: 80px;
  letter-spacing: 0.5px;
  font-weight: 400;
}

/* Content sections - 苹果风格玻璃态设计 */
.section {
  max-width: 1000px;
  width: 85%;
  box-sizing: border-box;
  margin: 0 auto 40px auto;
  text-align: center;
  background: var(--glass-apple);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border: 1px solid var(--glass-border);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 
              0 1px 3px rgba(0, 0, 0, 0.08),
              inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: all var(--transition-speed) ease;
  overflow: hidden;
  position: relative;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
}

.section:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 
              0 2px 6px rgba(0, 0, 0, 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border-color: var(--glass-border);
  background: rgba(255, 255, 255, 0.35);
}

/* Section Header - 苹果风格玻璃态设计 */
.section-header {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-primary);
  padding: 24px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.section-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  animation: shimmer 4s infinite;
} 

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.section h2 {
  font-size: 28px;
  margin: 0;
  color: var(--text-primary);
  position: relative;
  display: inline-block;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.section-title {
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Section Body/Card - 苹果风格设计 */
.section-body {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 32px;
  padding-top: 16px;
  text-align: center;
  position: relative;
}

.section p {
  font-size: 16px;
  line-height: 1.7;
  margin-top: 20px;
  color: rgba(30, 41, 59, 0.9);
  font-weight: 500;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.1);
}

.section p a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all var(--transition-speed) ease;
  font-weight: 500;
  position: relative;
}

.section p a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -2px;
  left: 0;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transition: width var(--transition-speed) ease;
}

.section p a:hover {
  color: var(--accent-color);
}

.section p a:hover::after {
  width: 100%;
}

/* About section special layout */
#about .section-body {
  display: flex;
  align-items: center;
  gap: 30px;
  text-align: left;
}

#about .about-image {
  flex: 0 0 200px;
  text-align: center;
}

#about .about-image img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

#about .about-image img:hover {
  transform: scale(1.05);
}

#about .about-content {
  flex: 1;
  text-align: left;
  align-items: top;
}

#about .about-content p {
  font-size: 16px;
  line-height: 1.8;
  margin: 0;
}

/* Responsive for about section */
@media (max-width: 768px) {
  #about .section-body {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  
  #about .about-image img {
    width: 150px;
    height: 150px;
  }
  
  #about .about-content p {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  #about .about-image img {
    width: 120px;
    height: 120px;
  }
  
  #about .about-content p {
    font-size: 14px;
    line-height: 1.6;
  }
}

/* Products section */
.products-container {
  display: flex;
  flex-wrap: nowrap; /* 防止换行，保持在一行 */
  gap: 30px;
  justify-content: center;
  margin-top: 30px;
  padding: 10px 20px;
  overflow-x: auto; /* 如果内容过宽，允许水平滚动 */
}

/* 产品卡片通用样式 - 苹果风格玻璃态设计 */
.product-card {
  width: 320px;
  min-width: 320px;
  height: 400px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(30px) saturate(180%);
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 
              0 1px 3px rgba(0, 0, 0, 0.08),
              inset 0 1px 0 rgba(255, 255, 255, 0.4);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #64748b, #94a3b8, #64748b);
  opacity: 0;
  transition: opacity var(--transition-speed) ease;
}

.product-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 
              0 2px 6px rgba(0, 0, 0, 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 0.5);
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.55);
}

.product-card:hover::before {
  opacity: 1;
}

.product-image {
  width: 100%;
  height: 140px;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff, #f8fafc);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--border-radius) var(--border-radius) 0 0;
  position: relative;
}

.product-image::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(203, 213, 225, 0.6), transparent);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 20px;
}

.product-info {
  background-color: transparent;
  padding: 20px;
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  border-radius: 0 0 12px 12px;
  height: 220px;
}

.product-info-content {
  margin-bottom: 15px;
}

.product-info h3 {
  font-size: 18px;
  font-weight: 700;
  color: rgba(30, 41, 59, 0.95);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.1);
}

.product-info p {
  font-size: 15px;
  color: rgba(100, 116, 139, 0.9);
  line-height: 1.6;
  margin-bottom: 16px;
  text-align: center;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.1);
}

.product-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px) saturate(120%);
  -webkit-backdrop-filter: blur(10px) saturate(120%);
  color: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--border-radius);
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition-speed) ease;
  font-size: 14px;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.product-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.product-link:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  color: rgba(30, 41, 59, 0.9);
}

.product-link:hover::before {
  left: 100%;
}

/* Footer - 苹果风格玻璃态设计 */
footer {
  margin-top: auto;
  padding: 32px 0;
  width: 100%;
  text-align: center;
  font-size: 15px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(40px) saturate(180%);
  -webkit-backdrop-filter: blur(40px) saturate(180%);
  border-top: 1px solid rgba(255, 255, 255, 0.3);
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), transparent);
}

footer a {
  color: var(--text-primary);
  text-decoration: none;
  margin: 0 15px;
  transition: all var(--transition-speed) ease;
  font-weight: 500;
  position: relative;
}

footer a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
  transition: width var(--transition-speed) ease;
}

footer a:hover {
  color: var(--accent-color);
}

footer a:hover::after {
  width: 100%;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Language display control */
.en, .zh {
  display: none !important;
}

.lang-en .en {
  display: block !important;
}

.lang-zh .zh {
  display: block !important;
}


/* Responsive adjustments - 现代化移动端设计 */
@media (max-width: 768px) {
  .nav-container {
    padding: 0 20px;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.20);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    padding: 20px;
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  }
  
  .nav-links.active {
    display: flex;
  }
  
  .language-switch {
    margin-left: 0;
  }
  
  .logo {
    padding: 80px 20px 30px;
  }
  
  .logo::before {
    width: 200px;
    height: 200px;
  }
  
  .logo img {
    width: 220px;
  }
  
  .logo h1 {
    font-size: 36px;
  }
  
  .logo .chinese-name {
    font-size: 22px;
  }
  
  .slogan {
    font-size: 18px;
    margin-bottom: 50px;
  }
  
  .section {
    width: 95%;
    margin-bottom: 30px;
  }
  
  .section-header {
    padding: 20px 24px;
  }
  
  .section h2 {
    font-size: 24px;
  }
  
  .section-body {
    padding: 30px 24px;
  }
  
  .section p {
    font-size: 15px;
  }
  
  .products-container {
    flex-direction: column; /* 移动端改为列布局 */
    flex-wrap: wrap; /* 移动端允许换行 */
    align-items: center;
    gap: 40px;
    overflow-x: visible; /* 移动端取消水平滚动 */
  }
  
  .product-card {
    width: 100%;
    max-width: 320px; /* 与桌面端保持一致 */
    height: 340px; /* 移动端稍微减小高度 */
  }
  
  .product-image {
    height: 120px;
  }
  
  .product-info {
    padding: 15px;
    height: 220px;
  }
}

@media (max-width: 480px) {
  .logo {
    padding: 60px 15px 25px;
  }
  
  .logo::before {
    width: 150px;
    height: 150px;
  }
  
  .logo img {
    width: 180px;
  }
  
  .logo h1 {
    font-size: 32px;
  }
  
  .logo .chinese-name {
    font-size: 20px;
  }
  
  .slogan {
    font-size: 16px;
    margin-bottom: 40px;
  }
  
  .section {
    width: 98%;
    margin-bottom: 25px;
  }
  
  .section-header {
    padding: 18px 20px;
  }
  
  .section h2 {
    font-size: 22px;
  }
  
  .section-body {
    padding: 25px 20px;
  }
  
  .section p {
    font-size: 14px;
    line-height: 1.6;
  }
  
  .product-card {
    height: 320px; /* 小屏幕进一步减小高度 */
  }
  
  .product-image {
    height: 100px;
  }
  
  .product-info {
    padding: 15px 12px;
    height: 220px;
  }
  
  .product-info h3 {
    font-size: 22px;
    margin-bottom: 15px;
  }
  
  .product-info p {
    font-size: 15px;
    margin-bottom: 30px;
  }
  
  .product-link {
    padding: 8px 20px;
    font-size: 14px;
  }
}

/* 子页面样式 - 条款和隐私政策页面 */
.container {
  max-width: 1200px; /* 与主页面section保持一致 */
  width: 80%; /* 与主页面保持一致 */
  margin: 0 auto;
  padding: 20px;
  margin-top: 40px; /* 为导航栏留出空间 */
}

.content {
  background-color: #fff;
  border-radius: var(--border-radius);
  padding: 30px;
}

.logo-section {
  text-align: center;
  margin-bottom: 30px;
}

.logo-section img {
  height: 60px;
}

header {
  text-align: center;
  margin-bottom: 30px;
  padding-top: 50px;
}

header h1 {
  font-size: 28px;
  margin-bottom: 15px;
  color: #24292e;
  font-weight: 600;
}

/* 子页面的语言切换按钮 */
.container .language-switch {
  text-align: right;
  margin-bottom: 20px;
  display: flex;
  justify-content: flex-end;
}

section h2 {
  color: #24292e;
  margin: 20px 0 15px;
  font-size: 20px;
  font-weight: 600;
}

section p {
  margin-bottom: 15px;
  color: #586069;
  font-size: 14px;
  line-height: 1.6;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .container .language-switch button {
    padding: 3px 10px;
    font-size: 14px;
  }
  
  header h1 {
    font-size: 24px;
  }
  
  .content {
    padding: 20px;
  }
  
  section h2 {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  header {
    padding-top: 40px;
    margin-bottom: 20px;
  }
  
  .content {
    padding: 15px;
  }
}

/* TreeView产品页面样式 */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
  margin-bottom: 60px;
  background-color: #fff;
  border-radius: var(--border-radius);
  padding: 40px;
  
}

.hero-image {
  flex: 0 0 200px;
  text-align: center;
}

.hero-image img {
  width: 128px;
  height: 128px;
  object-fit: contain;
  border-radius: 12px;
}

.hero-content {
  flex: 1 1 400px;
  color: var(--text-primary);
}

.hero-content h2 {
  font-size: 36px;
  margin-bottom: 15px;
  font-weight: 700;
}

.hero-content p {
  margin-bottom: 20px;
  font-size: 18px;
}

.cta-button {
  display: inline-block;
  background-color: var(--primary-color);
  color: #0a1a3a;
  padding: 12px 24px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.cta-button:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.feature {
  padding: 20px;
  background-color: #fff;
  border-radius: var(--border-radius);
  transition: all var(--transition-speed) ease;
}

.feature:hover {
  transform: translateY(-4px);
}

.feature h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #24292e;
  font-weight: 600;
}

.feature p {
  color: #586069;
  font-size: 15px;
}

.installation-steps, .prerequisites {
  list-style-position: inside;
  margin: 20px 0;
  padding: 0 20px;
}

.installation-steps li, .prerequisites li {
  margin-bottom: 10px;
  color: #586069;
}

.installation-steps a, .prerequisites a {
  color: var(--primary-color);
  text-decoration: underline;
  font-weight: bold;
}

.installation-steps a:hover, .prerequisites a:hover {
  color: var(--secondary-color);
}

.usage-steps {
  margin: 20px 0;
}

.usage-step {
  margin-bottom: 20px;
}

.usage-step h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: #24292e;
  font-weight: 600;
}

.prerequisites ul {
  margin-left: 20px;
  margin-top: 5px;
}

.prerequisites ul li {
  margin-bottom: 5px;
}

/* 修复按钮显示问题 */
a.cta-button.en, a.cta-button.zh {
  display: none;
}

.lang-en a.cta-button.en {
  display: inline-block;
}

.lang-zh a.cta-button.zh {
  display: inline-block;
}

.screenshots {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.screenshot {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

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

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

/* 动态导航栏 */
nav {
  transform: translateY(-100%);
  transition: transform 0.3s ease;
}

nav:hover, 
nav.visible, 
.nav-trigger-area:hover + nav {
  transform: translateY(0);
}

.nav-trigger-area {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 20px;
  z-index: 99;
}

/* Override header padding for the navigation space */
.logo {
  margin-top: 40px;
}

@media (max-width: 768px) {
  nav, nav:hover, .nav-trigger-area:hover + nav {
    transform: translateY(0);
  }
  
  .nav-trigger-area {
    display: none;
  }
}

/* 子页面导航栏 */
.subpage-nav {
  width: 100%;
  background-color: #fff;
  padding: 8px 0;
  transform: translateY(-100%);
  transition: all var(--transition-speed) ease;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
}

.subpage-nav .nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  height: 50px;
  max-width: 1200px;
  margin: 0 auto;
}

.subpage-nav:hover, 
.subpage-nav.visible, 
.nav-trigger-area:hover + .subpage-nav {
  transform: translateY(0);
}

/* 子页面内容容器调整 */
.container {
  max-width: 1200px; /* 与主页面section保持一致 */
  width: 80%; /* 与主页面保持一致 */
  margin: 0 auto;
  padding: 20px;
  margin-top: 40px; /* 为导航栏留出空间 */
}

/* 子页面logo部分调整 */
.logo-section {
  text-align: center;
  margin-bottom: 30px;
}

/* 子页面section统一背景 */
.container section {
  background-color: #fff;
  border-radius: var(--border-radius);
  padding: 24px 18px;
  margin-bottom: 24px;
  transition: all var(--transition-speed) ease;
}

/* 子页面section hover效果 */
.container section:hover {
  transform: translateY(-4px);
}

.container section:last-child {
  margin-bottom: 0;
}

/* 新footer横排布局 */
.container footer {
  margin-top: auto;
  padding: 18px 0 12px 0;
  width: 100%;
  text-align: center;
  font-size: 13px;
  color: #586069;
  background-color: #fff;
  border-radius: var(--border-radius);
  margin-top: 40px;
  letter-spacing: 0.01em;
}

.container footer .footer-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.container footer .footer-row a {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
  display: inline-block;
  padding: 0 2px;
}

.container footer .footer-row a:hover {
  color: #24292e;
  text-decoration: underline;
}

.container footer .footer-row .footer-divider {
  color: #586069;
  margin: 0 6px;
  font-size: 15px;
  user-select: none;
}

@media (max-width: 600px) {
  .container footer .footer-row {
    flex-direction: column;
    gap: 4px;
  }
  .container footer {
    font-size: 12px;
    padding: 14px 0 8px 0;
  }
}

/* 使子页面和主页的语言切换按钮统一 */
.container .language-switch {
  text-align: right;
  margin-bottom: 20px;
  display: flex;
  justify-content: flex-end;
}

.container .language-switch button {
  height: 36px;
  min-width: 80px;
  background: transparent;
  border: none;
  color: #666;
  padding: 3px 10px;
  margin-left: 5px;
  cursor: pointer;
  border-radius: var(--border-radius);
  font-size: 14px;
  transition: all var(--transition-speed) ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

button, .cta-button {
  text-align: center !important;
  justify-content: center !important;
}
