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

:root {
  /* 优化的设计系统 */
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --primary-blue: #4299e1;
  --primary-dark-blue: #3182ce;
  
  /* 统一的圆角系统 */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-pill: 9999px;
  
  /* 优化的间距系统 */
  --space-xs: 0.25rem;   /* 4px */
  --space-sm: 0.5rem;    /* 8px */
  --space-md: 0.75rem;   /* 12px */
  --space-lg: 1rem;      /* 16px */
  --space-xl: 1.5rem;    /* 24px */
  --space-2xl: 2rem;     /* 32px */
  --space-3xl: 3rem;     /* 48px */
  --space-4xl: 4rem;     /* 64px */
  
  /* 优化的字体系统 */
  --text-xs: 0.75rem;    /* 12px */
  --text-sm: 0.875rem;   /* 14px */
  --text-base: 1rem;     /* 16px */
  --text-lg: 1.125rem;   /* 18px */
  --text-xl: 1.25rem;    /* 20px */
  --text-2xl: 1.5rem;    /* 24px */
  --text-3xl: 1.875rem;  /* 30px */
  --text-4xl: 2.25rem;   /* 36px */
  --text-5xl: 3rem;      /* 48px */
  
  /* 语义化颜色系统 */
  --text-primary: #1a202c;
  --text-secondary: #4a5568;
  --text-tertiary: #718096;
  --text-muted: #a0aec0;
  --text-inverse: #ffffff;
  
  --bg-primary: #ffffff;
  --bg-secondary: #f7fafc;
  --bg-tertiary: #edf2f7;
  --border-color: #e2e8f0;
  --border-color-light: #f1f5f9;
  
  --success: #48bb78;
  --success-bg: #c6f6d5;
  --success-border: #9ae6b4;
  --warning: #ed8936;
  --warning-bg: #fbd38d;
  --warning-border: #f6ad55;
  --error: #f56565;
  --error-bg: #fed7d7;
  --error-border: #feb2b2;
  --info: #4299e1;
  --info-bg: #bee3f8;
  --info-border: #90cdf4;
  
  /* 增强的阴影系统 */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 25px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-xl: 0 16px 40px rgba(0, 0, 0, 0.12), 0 8px 25px rgba(0, 0, 0, 0.18);
  
  /* 过渡动画 */
  --transition-fast: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--primary-gradient);
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

/* 优化的Header */
.header {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border-color-light);
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-lg) 0;
  min-height: 80px;
}

.logo {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-secondary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  transition: var(--transition-fast);
  position: relative;
}

.logo:hover {
  color: var(--primary-blue);
}

/* Cloud CLI text styling */
.logo .brand-text {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark-blue) 50%, #9f7aea 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
  letter-spacing: -0.02em;
  position: relative;
  transition: var(--transition-base);
}

.logo:hover .brand-text {
  background: linear-gradient(135deg, var(--primary-dark-blue) 0%, #9f7aea 50%, var(--primary-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  transform: scale(1.02);
}

/* Subtle glow effect for the text */
.logo .brand-text::before {
  content: 'CloudShell';
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark-blue) 50%, #9f7aea 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: blur(1px);
  opacity: 0.3;
  z-index: -1;
  transition: var(--transition-base);
}

.logo:hover .brand-text::before {
  opacity: 0.6;
  filter: blur(2px);
}

/* Animated gradient effect */
@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.logo .brand-text {
  background-size: 200% 200%;
  animation: gradient-shift 3s ease infinite;
}

.logo:hover .brand-text {
  animation-duration: 1.5s;
}

/* Text shadow for better readability */
.logo .brand-text {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* Responsive text sizing */
@media (max-width: 768px) {
  .logo .brand-text {
    font-size: var(--text-lg);
  }
}

@media (max-width: 480px) {
  .logo .brand-text {
    font-size: var(--text-base);
  }
}

.logo svg {
  width: 48px;
  height: 48px;
  transition: var(--transition-base);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo:hover svg {
  transform: scale(1.08) rotate(1deg);
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

/* Enhanced cursor blinking animation with smooth transitions */
@keyframes cursor-blink {
  0%, 40% { 
    opacity: 1; 
    transform: scaleY(1);
  }
  50%, 90% { 
    opacity: 0.2; 
    transform: scaleY(0.8);
  }
  100% { 
    opacity: 1; 
    transform: scaleY(1);
  }
}

.cursor-blink {
  animation: cursor-blink 2s infinite ease-in-out;
  transition: var(--transition-fast);
  transform-origin: center;
}

/* Subtle glow effect for the terminal window */
.logo svg rect:first-child {
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.1));
}

/* Enhanced hover effects for better interactivity */
.logo:hover svg rect:first-child {
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.15));
}

.logo:hover svg circle {
  transform: scale(1.1);
  transition: var(--transition-fast);
}

/* Smooth transitions for all SVG elements */
.logo svg * {
  transition: var(--transition-fast);
}

/* Enhanced hover effects for code symbols */
.logo:hover svg text {
  opacity: 0.9 !important;
  transform: scale(1.1);
  transition: var(--transition-base);
}

/* Subtle pulse effect for the terminal window */
@keyframes terminal-pulse {
  0%, 100% { 
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  }
  50% { 
    filter: drop-shadow(0 2px 8px rgba(66, 153, 225, 0.2));
  }
}

.logo:hover svg rect:first-child {
  animation: terminal-pulse 2s ease-in-out infinite;
}

/* Code line animation on hover */
@keyframes code-flow {
  0% { opacity: 0.7; }
  50% { opacity: 1; }
  100% { opacity: 0.7; }
}

.logo:hover svg rect[fill="#68d391"],
.logo:hover svg rect[fill="#63b3ed"] {
  animation: code-flow 1.5s ease-in-out infinite;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: var(--space-xl);
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  transition: var(--transition-base);
  position: relative;
  font-size: var(--text-sm);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--primary-blue);
  background: rgba(66, 153, 225, 0.08);
  outline: none;
}

/* 优化的Hero Section */
.hero {
  text-align: center;
  padding: var(--space-3xl) 0 var(--space-4xl);
  color: var(--text-inverse);
}

.hero h1 {
  font-size: clamp(var(--text-3xl), 6vw, var(--text-5xl));
  font-weight: 800;
  margin-bottom: var(--space-xl);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.hero .subtitle {
  font-size: clamp(var(--text-base), 3vw, var(--text-lg));
  margin-bottom: var(--space-2xl);
  opacity: 0.95;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.cta-buttons {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-3xl);
}

/* 增强的按钮设计系统 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md) var(--space-2xl);
  border: 1px solid transparent;
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  gap: var(--space-md);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
  min-height: 48px;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn:hover::before {
  transform: translateX(100%);
}

.btn:focus-visible {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

.btn:active {
  transform: scale(0.98);
}

/* 主要按钮 - 增强版 */
.btn-primary {
  background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark-blue) 100%);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(66, 153, 225, 0.3);
  border: 1px solid transparent;
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--primary-dark-blue) 0%, #2c5aa0 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px 0 rgba(66, 153, 225, 0.4);
}

.btn-primary:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow: 0 4px 14px 0 rgba(66, 153, 225, 0.3);
}

/* 次要按钮 - 增强版 */
.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.1);
}

.btn-secondary:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px 0 rgba(0, 0, 0, 0.15);
}

.btn-secondary:active {
  transform: translateY(-1px) scale(0.98);
}

/* 轮廓按钮 */
.btn-outline {
  background: transparent;
  color: var(--primary-blue);
  border: 2px solid var(--primary-blue);
  box-shadow: none;
}

.btn-outline:hover:not(:disabled) {
  background: var(--primary-blue);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px 0 rgba(66, 153, 225, 0.3);
}

.btn-outline:active {
  transform: translateY(-1px) scale(0.98);
}

/* 幽灵按钮 */
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid transparent;
  box-shadow: none;
}

.btn-ghost:hover:not(:disabled) {
  background: var(--bg-secondary);
  color: var(--text-primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-ghost:active {
  transform: scale(0.98);
}

/* 危险按钮 - 增强版 */
.btn-danger {
  background: linear-gradient(135deg, var(--error) 0%, #e53e3e 100%);
  color: white;
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--text-sm);
  min-height: 36px;
  box-shadow: 0 4px 14px 0 rgba(245, 101, 101, 0.3);
}

.btn-danger:hover:not(:disabled) {
  background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px 0 rgba(245, 101, 101, 0.4);
}

.btn-danger:active {
  transform: translateY(-1px) scale(0.98);
}

/* 成功按钮 */
.btn-success {
  background: linear-gradient(135deg, var(--success) 0%, #38a169 100%);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(72, 187, 120, 0.3);
}

.btn-success:hover:not(:disabled) {
  background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px 0 rgba(72, 187, 120, 0.4);
}

.btn-success:active {
  transform: translateY(-1px) scale(0.98);
}

/* 警告按钮 */
.btn-warning {
  background: linear-gradient(135deg, var(--warning) 0%, #dd6b20 100%);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(237, 137, 54, 0.3);
}

.btn-warning:hover:not(:disabled) {
  background: linear-gradient(135deg, #dd6b20 0%, #c05621 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px 0 rgba(237, 137, 54, 0.4);
}

.btn-warning:active {
  transform: translateY(-1px) scale(0.98);
}

/* 按钮尺寸变体 */
.btn-sm {
  padding: var(--space-sm) var(--space-lg);
  font-size: var(--text-sm);
  min-height: 36px;
  gap: var(--space-sm);
}

.btn-lg {
  padding: var(--space-lg) var(--space-3xl);
  font-size: var(--text-lg);
  min-height: 56px;
  gap: var(--space-lg);
}

.btn-xl {
  padding: var(--space-xl) var(--space-4xl);
  font-size: var(--text-xl);
  min-height: 64px;
  gap: var(--space-xl);
}

/* 图标按钮 */
.btn-icon {
  padding: var(--space-md);
  min-width: 48px;
  min-height: 48px;
  border-radius: var(--radius-md);
}

.btn-icon.btn-sm {
  padding: var(--space-sm);
  min-width: 36px;
  min-height: 36px;
}

.btn-icon.btn-lg {
  padding: var(--space-lg);
  min-width: 56px;
  min-height: 56px;
}

/* 圆形按钮 */
.btn-circle {
  border-radius: var(--radius-pill);
  padding: var(--space-md);
  min-width: 48px;
  min-height: 48px;
}

.btn-circle.btn-sm {
  min-width: 36px;
  min-height: 36px;
  padding: var(--space-sm);
}

.btn-circle.btn-lg {
  min-width: 56px;
  min-height: 56px;
  padding: var(--space-lg);
}

/* 按钮组 */
.btn-group {
  display: inline-flex;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.btn-group .btn {
  border-radius: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-group .btn:first-child {
  border-top-left-radius: var(--radius-lg);
  border-bottom-left-radius: var(--radius-lg);
}

.btn-group .btn:last-child {
  border-top-right-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
  border-right: none;
}

.btn-group .btn:not(:first-child):not(:last-child) {
  border-radius: 0;
}

/* 按钮状态 */
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.btn:disabled::before {
  display: none;
}

.btn-loading {
  position: relative;
  color: transparent !important;
}

.btn-loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* 按钮波纹效果 */
.btn-ripple {
  position: relative;
  overflow: hidden;
}

.btn-ripple::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.btn-ripple:active::after {
  width: 300px;
  height: 300px;
}

/* Features Section */
.features {
  background: white;
  padding: var(--space-4xl) 0;
}

.features h2 {
  text-align: center;
  font-size: clamp(var(--text-2xl), 4vw, var(--text-3xl));
  margin-bottom: var(--space-3xl);
  color: var(--text-primary);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-2xl);
  margin-top: var(--space-2xl);
}

.feature-card {
  background: var(--bg-secondary);
  padding: var(--space-2xl) var(--space-xl);
  border-radius: var(--radius-xl);
  text-align: center;
  transition: var(--transition-slow);
  border: 1px solid var(--border-color);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-gradient);
  opacity: 0;
  transition: var(--transition-base);
}

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

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

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-xl);
  background: var(--primary-gradient);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: var(--shadow-sm);
}

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

.feature-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-md);
  color: var(--text-primary);
  font-weight: 600;
}

.feature-card p {
  color: var(--text-tertiary);
  line-height: 1.6;
  font-size: var(--text-sm);
}

/* Demo Section */
.demo {
  background: var(--bg-secondary);
  padding: var(--space-4xl) 0;
}

.demo h2 {
  text-align: center;
  font-size: clamp(var(--text-2xl), 4vw, var(--text-3xl));
  margin-bottom: var(--space-3xl);
  color: var(--text-primary);
  font-weight: 700;
}

.demo-container {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
  max-width: 800px;
  margin: 0 auto;
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.demo-container.active {
  display: block;
}

.terminal-header {
  background: var(--text-primary);
  color: white;
  padding: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.terminal-dots {
  display: flex;
  gap: var(--space-sm);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27ca3f; }

.terminal-body {
  background: #1a202c;
  color: #e2e8f0;
  padding: var(--space-2xl);
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: var(--text-sm);
  line-height: 1.6;
  overflow-x: auto;
}

.terminal-line {
  margin-bottom: var(--space-sm);
  white-space: nowrap;
}

.terminal-prompt {
  color: #68d391;
}

.terminal-command {
  color: #63b3ed;
}


/* Footer */
.footer {
  background: var(--text-primary);
  color: white;
  padding: var(--space-3xl) 0;
  text-align: center;
}

.footer p {
  opacity: 0.8;
  margin-bottom: var(--space-lg);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: var(--space-2xl);
  flex-wrap: wrap;
}

.footer-links a {
  color: white;
  text-decoration: none;
  opacity: 0.8;
  transition: var(--transition-base);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
}

.footer-links a:hover,
.footer-links a:focus-visible {
  opacity: 1;
  background: rgba(255, 255, 255, 0.1);
  outline: none;
}


@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Loading animation */
.loading {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #f3f3f3;
  border-top: 2px solid var(--primary-blue);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 响应式设计 */
@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-lg);
  }

  .nav {
    padding: var(--space-md) 0;
    min-height: 64px;
  }

  .logo svg {
    width: 40px;
    height: 40px;
  }

  .hero {
    padding: var(--space-2xl) 0 var(--space-3xl);
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
  }

  /* 移动端按钮优化 */
  .btn {
    min-height: 44px; /* 增加触摸目标大小 */
    padding: var(--space-md) var(--space-xl);
    font-size: var(--text-base);
    width: 100%;
    max-width: 300px;
    justify-content: center;
  }

  .btn-sm {
    min-height: 40px;
    padding: var(--space-sm) var(--space-lg);
    font-size: var(--text-sm);
  }

  .btn-lg {
    min-height: 52px;
    padding: var(--space-lg) var(--space-2xl);
    font-size: var(--text-lg);
  }

  .btn-icon {
    min-width: 44px;
    min-height: 44px;
    padding: var(--space-md);
  }

  .btn-icon.btn-sm {
    min-width: 40px;
    min-height: 40px;
    padding: var(--space-sm);
  }

  .btn-icon.btn-lg {
    min-width: 52px;
    min-height: 52px;
    padding: var(--space-lg);
  }

  /* 移动端按钮组优化 */
  .btn-group {
    flex-direction: column;
    width: 100%;
    max-width: 300px;
  }

  .btn-group .btn {
    border-radius: 0;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  .btn-group .btn:first-child {
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
    border-bottom-left-radius: 0;
  }

  .btn-group .btn:last-child {
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
    border-top-right-radius: 0;
    border-bottom: none;
  }

  /* 移动端特殊按钮样式 */
  .btn-mobile-full {
    width: 100%;
    max-width: none;
  }

  .btn-mobile-sticky {
    position: fixed;
    bottom: var(--space-lg);
    left: var(--space-lg);
    right: var(--space-lg);
    z-index: 100;
    box-shadow: var(--shadow-xl);
    border-radius: var(--radius-lg);
  }

  .nav-links {
    display: none;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }


  .terminal-body {
    padding: var(--space-lg);
    font-size: var(--text-xs);
  }

  .toast-container {
    left: var(--space-lg);
    right: var(--space-lg);
    bottom: var(--space-lg);
    max-width: none;
  }

  .features,
  .demo {
    padding: var(--space-3xl) 0;
  }
}

/* 超小屏幕优化 */
@media (max-width: 480px) {
  .logo svg {
    width: 36px;
    height: 36px;
  }

  .btn {
    min-height: 48px;
    padding: var(--space-lg) var(--space-xl);
    font-size: var(--text-lg);
  }

  .btn-sm {
    min-height: 44px;
    padding: var(--space-md) var(--space-lg);
    font-size: var(--text-base);
  }

  .cta-buttons .btn {
    width: 100%;
    max-width: none;
  }

}

/* 横屏模式优化 */
@media (max-width: 768px) and (orientation: landscape) {
  .hero {
    padding: var(--space-xl) 0;
  }

  .cta-buttons {
    flex-direction: row;
    justify-content: center;
    gap: var(--space-lg);
  }

  .cta-buttons .btn {
    width: auto;
    max-width: 200px;
  }
}

/* 可访问性增强 */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (prefers-contrast: high) {
  :root {
    --border-color: #000000;
    --text-tertiary: #000000;
  }
  
  .feature-card,
  .demo-container {
    border-width: 2px;
  }
}

/* 高级按钮效果 */
.btn-glow {
  position: relative;
  overflow: visible;
}

.btn-glow::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, var(--primary-blue), var(--primary-dark-blue), var(--primary-blue));
  border-radius: inherit;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-glow:hover::after {
  opacity: 0.7;
}

.btn-3d {
  box-shadow: 
    0 4px 0 var(--primary-dark-blue),
    0 8px 16px rgba(0, 0, 0, 0.1);
}

.btn-3d:active {
  transform: translateY(2px);
  box-shadow: 
    0 2px 0 var(--primary-dark-blue),
    0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-floating {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  z-index: 1000;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-xl);
  animation: float 3s ease-in-out infinite;
}

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

.btn-pulse {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(66, 153, 225, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(66, 153, 225, 0); }
  100% { box-shadow: 0 0 0 0 rgba(66, 153, 225, 0); }
}

.btn-shake {
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.btn-bounce {
  animation: bounce 0.6s ease;
}

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% { transform: translate3d(0, 0, 0); }
  40%, 43% { transform: translate3d(0, -8px, 0); }
  70% { transform: translate3d(0, -4px, 0); }
  90% { transform: translate3d(0, -2px, 0); }
}

/* 按钮状态指示器 */
.btn-status {
  position: relative;
}

.btn-status::before {
  content: '';
  position: absolute;
  top: 50%;
  right: var(--space-md);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  transform: translateY(-50%);
  background: var(--success);
}

.btn-status.btn-status-warning::before {
  background: var(--warning);
}

.btn-status.btn-status-error::before {
  background: var(--error);
}

.btn-status.btn-status-loading::before {
  background: var(--primary-blue);
  animation: pulse 1s infinite;
}

/* 按钮工具提示 */
.btn-tooltip {
  position: relative;
}

.btn-tooltip::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--text-primary);
  color: white;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 1000;
  margin-bottom: var(--space-sm);
}

.btn-tooltip::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: var(--text-primary);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 1000;
}

.btn-tooltip:hover::after,
.btn-tooltip:hover::before {
  opacity: 1;
  visibility: visible;
}

/* 按钮进度条 */
.btn-progress {
  position: relative;
  overflow: hidden;
}

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

.btn-progress.btn-progress-active::after {
  left: 100%;
}

/* Focus styles for better accessibility */
*:focus-visible {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
}

.btn:focus-visible {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(66, 153, 225, 0.2);
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
  .btn {
    border-width: 2px;
  }
  
  .btn-primary {
    background: var(--primary-blue);
    border-color: var(--primary-dark-blue);
  }
  
  .btn-secondary {
    background: white;
    color: var(--text-primary);
    border-color: var(--text-primary);
  }
}

/* 减少动画模式支持 */
@media (prefers-reduced-motion: reduce) {
  .btn::before,
  .btn-ripple::after,
  .btn-glow::after {
    display: none;
  }
  
  .btn-floating,
  .btn-pulse,
  .btn-shake,
  .btn-bounce {
    animation: none;
  }
}

/* Screen reader only content */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 按钮键盘导航增强 */
.btn:focus {
  outline: none;
}

.btn:focus-visible {
  outline: 2px solid var(--primary-blue);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(66, 153, 225, 0.2);
}

/* 按钮组键盘导航 */
.btn-group .btn:focus-visible {
  z-index: 1;
  position: relative;
}

/* Terminal Type Selection Styles */
.terminal-types {
  margin: var(--space-3xl) 0;
}

.terminal-types h3 {
  text-align: center;
  font-size: var(--text-xl);
  margin-bottom: var(--space-2xl);
  color: var(--text-inverse);
  font-weight: 600;
}

.terminal-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.terminal-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  text-align: center;
  cursor: pointer;
  transition: var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.terminal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-gradient);
  opacity: 0;
  transition: var(--transition-base);
}

.terminal-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
  box-shadow: var(--shadow-lg);
}

.terminal-card.active {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--primary-blue);
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.terminal-card.active::before {
  opacity: 1;
}

.terminal-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-xl);
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: var(--transition-base);
}

.terminal-card:hover .terminal-icon {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}

.terminal-card.active .terminal-icon {
  background: var(--primary-blue);
  transform: scale(1.1);
}

.terminal-icon svg {
  width: 32px;
  height: 32px;
}

.terminal-card h4 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-md);
  color: var(--text-inverse);
  font-weight: 600;
}

.terminal-card p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  font-size: var(--text-sm);
  margin-bottom: var(--space-lg);
}

.terminal-features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
}

.feature-tag {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-inverse);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-pill);
  font-size: var(--text-xs);
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: var(--transition-base);
}

.terminal-card:hover .feature-tag {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.terminal-card.active .feature-tag {
  background: var(--primary-blue);
  border-color: var(--primary-blue);
}

/* Terminal Overview Styles */
.terminal-overview {
  margin-bottom: var(--space-3xl);
}

.terminal-overview h3 {
  text-align: center;
  font-size: var(--text-xl);
  margin-bottom: var(--space-2xl);
  color: var(--text-primary);
  font-weight: 600;
}

.terminal-types-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

.terminal-type-item {
  text-align: center;
  padding: var(--space-xl);
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  transition: var(--transition-base);
}

.terminal-type-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.type-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto var(--space-lg);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.bash-icon {
  background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
}

.gemini-icon {
  background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
}

.claude-icon {
  background: linear-gradient(135deg, #9f7aea 0%, #805ad5 100%);
}

.terminal-type-item h4 {
  font-size: var(--text-base);
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
  font-weight: 600;
}

.terminal-type-item p {
  color: var(--text-tertiary);
  font-size: var(--text-sm);
  line-height: 1.5;
}

/* Demo Section Enhancements */
.demo-subtitle {
  text-align: center;
  font-size: var(--text-lg);
  color: var(--text-tertiary);
  margin-bottom: var(--space-2xl);
}

.demo-tabs {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-2xl);
  flex-wrap: wrap;
}

.demo-tab {
  background: transparent;
  color: var(--text-tertiary);
  border: 1px solid var(--border-color);
  padding: var(--space-md) var(--space-xl);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition-base);
  font-weight: 500;
  font-size: var(--text-sm);
}

.demo-tab:hover {
  color: var(--text-primary);
  border-color: var(--primary-blue);
  background: rgba(66, 153, 225, 0.05);
}

.demo-tab.active {
  background: var(--primary-blue);
  color: white;
  border-color: var(--primary-blue);
}


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

/* AI Response Styles */
.ai-response {
  color: #68d391 !important;
  font-style: italic;
}

.claude-response {
  color: #9f7aea !important;
  font-style: italic;
}

/* Responsive Design for Terminal Cards */
@media (max-width: 768px) {
  .terminal-cards {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .terminal-types-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .demo-tabs {
    flex-direction: column;
    align-items: center;
  }
  
  .demo-tab {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
}
