/**
 * 青鸟译落地页样式
 */

/* 重置和基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* 品牌色 - 与 buttons.css 保持一致 */
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --primary-color: #667eea;
  --primary-dark: #5a67d8;
  --primary-light: #7c92ed;
  --secondary-color: #764ba2;

  /* 语义色 */
  --success-color: #10b981;
  --success-dark: #059669;
  --warning-color: #f59e0b;
  --warning-dark: #d97706;
  --danger-color: #ef4444;
  --danger-dark: #dc2626;
  --error-color: #ef4444;
  --info-color: #3b82f6;
  --info-dark: #2563eb;

  /* 中性色 */
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  /* 文本颜色（向后兼容） */
  --text-dark: #1f2937;
  --text-gray: #6b7280;
  --text-light: #9ca3af;

  /* 背景颜色（向后兼容） */
  --bg-light: #f9fafb;
  --bg-white: #ffffff;
  --border-color: #e5e7eb;

  /* 圆角系统 */
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 999px;

  /* 阴影系统 */
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07), 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px rgba(0, 0, 0, 0.1), 0 10px 10px rgba(0, 0, 0, 0.04);
  --shadow-primary: 0 4px 12px rgba(102, 126, 234, 0.25);
  --shadow-primary-lg: 0 8px 20px rgba(102, 126, 234, 0.3);

  /* 过渡动画 */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: var(--bg-white);
}

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

/* 导航栏 */
.navbar {
  background: var(--bg-white);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary-color);
}

.logo {
  font-size: 32px;
}

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

.nav-links a {
  color: var(--text-gray);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

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

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

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

.nav-user {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  display: none;
  white-space: nowrap;
}

.nav-link-button,
.nav-primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 18px;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 14px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--primary-color);
  text-decoration: none;
  transition: all var(--transition-base);
  cursor: pointer;
  white-space: nowrap;
}

.nav-link-button:hover {
  background: rgba(102, 126, 234, 0.08);
  color: var(--primary-dark);
  border-color: rgba(102, 126, 234, 0.2);
}

.nav-primary-button {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: var(--shadow-primary);
}

.nav-primary-button:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-primary-lg);
}

.nav-logout {
  border-color: var(--gray-300);
  color: var(--gray-600);
}

.nav-logout:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
  color: var(--gray-700);
}

.lang-switch {
  padding: 6px 12px;
  background: var(--primary-color);
  color: white !important;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
}

.lang-switch:hover {
  background: var(--primary-dark);
  color: white !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* 语言切换器样式 */
.language-switcher {
  display: inline-flex;
  align-items: center;
}

.language-select {
  padding: 6px 24px 6px 12px;
  border: 1px solid var(--primary-color);
  border-radius: var(--radius-full);
  background: white;
  color: var(--primary-color);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-base);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23667eea' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 10px;
}

.language-select:hover {
  border-color: var(--primary-dark);
  color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.language-select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

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

/* Hero 区域 */
.hero {
  padding: 80px 0;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-content {
  animation: fadeInUp 0.8s ease-out;
}

.hero-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 20px;
  margin-bottom: 30px;
  opacity: 0.95;
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.hero-note {
  font-size: 14px;
  opacity: 0.9;
}

.hero-auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.hero-auth-actions .btn {
  min-width: 150px;
  text-align: center;
}

/* 按钮样式 - 与统一按钮系统保持一致 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: all var(--transition-base);
  -webkit-tap-highlight-color: transparent;
}

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

/* Landing 页面专用：Hero 区域的主按钮（白色背景） */
.btn-primary {
  background: white;
  color: var(--primary-color);
  box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-primary-lg);
}

/* Landing 页面专用：Hero 区域的次要按钮（透明 + 白色边框） */
.btn-secondary {
  background: transparent;
  color: white;
  border-color: white;
  border-width: 1.5px;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* 描边按钮 - 用于普通内容区 */
.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border-color: var(--primary-color);
  border-width: 1.5px;
}

.btn-outline:hover {
  background: rgba(102, 126, 234, 0.08);
  border-color: var(--primary-dark);
  color: var(--primary-dark);
}

/* 大尺寸按钮 */
.btn-large,
.btn-lg {
  padding: 12px 28px;
  font-size: 16px;
  border-radius: var(--radius-lg);
  gap: 10px;
}

.btn-xl {
  padding: 16px 36px;
  font-size: 18px;
  border-radius: var(--radius-xl);
  gap: 12px;
}

/* 浏览器模拟器 */
.browser-mockup {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  animation: fadeInRight 0.8s ease-out;
}

.browser-header {
  background: #e5e7eb;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.browser-dots {
  display: flex;
  gap: 6px;
}

.browser-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #9ca3af;
}

.browser-dots span:nth-child(1) { background: #ef4444; }
.browser-dots span:nth-child(2) { background: #f59e0b; }
.browser-dots span:nth-child(3) { background: #10b981; }

.browser-url {
  flex: 1;
  background: white;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--text-gray);
}

.browser-content {
  padding: 60px 40px;
  background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
}

.translation-demo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 24px;
  font-weight: 600;
}

.text-original {
  color: var(--primary-color);
}

.arrow {
  color: var(--text-gray);
  font-size: 32px;
}

.text-translated {
  color: var(--secondary-color);
}

/* 功能特点 */
.features {
  padding: 100px 0;
  background: var(--bg-light);
}

.section-title {
  text-align: center;
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-dark);
}

.section-subtitle {
  text-align: center;
  font-size: 18px;
  color: var(--text-gray);
  margin-bottom: 60px;
}

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

.feature-card {
  background: white;
  padding: 40px 30px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(102, 126, 234, 0.15);
}

.feature-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--text-dark);
}

.feature-card p {
  font-size: 16px;
  color: var(--text-gray);
  line-height: 1.7;
}

/* 价格方案 */
.pricing {
  padding: 100px 0;
  background: white;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  max-width: 1100px;
  margin: 0 auto;
}

.pricing-card {
  background: white;
  border: 2px solid var(--border-color);
  border-radius: 12px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.3s;
  position: relative;
}

.pricing-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-8px);
  box-shadow: 0 12px 24px rgba(102, 126, 234, 0.15);
}

.pricing-card.featured {
  border-color: var(--primary-color);
  box-shadow: 0 12px 24px rgba(102, 126, 234, 0.2);
}

.plan-badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.plan-name {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-dark);
}

.plan-price {
  margin-bottom: 30px;
}

.plan-price .price {
  font-size: 48px;
  font-weight: 700;
  color: var(--primary-color);
}

.plan-price .period {
  font-size: 18px;
  color: var(--text-gray);
}

.plan-features {
  list-style: none;
  margin-bottom: 30px;
  text-align: left;
}

.plan-features li {
  padding: 12px 0;
  font-size: 16px;
  color: var(--text-gray);
  border-bottom: 1px solid var(--border-color);
}

.plan-features li:last-child {
  border-bottom: none;
}

/* 安装说明 */
.install {
  padding: 100px 0;
  background: var(--bg-light);
}

.install-steps {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin: 60px 0;
  flex-wrap: wrap;
}

.step {
  flex: 1;
  min-width: 250px;
  max-width: 300px;
  text-align: center;
  padding: 30px 20px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.step-number {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  margin: 0 auto 20px;
}

.step h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--text-dark);
}

.step p {
  font-size: 16px;
  color: var(--text-gray);
}

.step-arrow {
  font-size: 32px;
  color: var(--text-light);
}

.install-cta {
  text-align: center;
  margin-top: 40px;
}

.install-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-gray);
}

/* 页脚 */
.footer {
  background: var(--text-dark);
  color: white;
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-section h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-section p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-section a:hover {
  color: white;
}

.social-links {
  display: flex;
  gap: 16px;
  font-size: 24px;
}

.social-links a {
  font-size: 24px;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  font-size: 14px;
  color: var(--text-light);
}

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

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

/* 响应式 */
@media (max-width: 768px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

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

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

  .hero-buttons {
    flex-direction: column;
  }

  .nav-links {
    display: none;
  }

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

  .features-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .nav-right {
    gap: 16px;
  }

  .nav-actions {
    gap: 8px;
  }

  .nav-actions .nav-link-button,
  .nav-actions .nav-primary-button {
    padding: 6px 12px;
  }

  .hero-auth-actions {
    justify-content: flex-start;
  }

  .install-steps {
    flex-direction: column;
  }

  .step-arrow {
    transform: rotate(90deg);
  }

  .footer-content {
    grid-template-columns: 1fr;
  }
}
