/* App Landing Page Styles */

/* CSS 变量定义 */
:root {
  --primary-color: #8bc34a;
  --secondary-color: #6c757d;
  --accent-color: #7cb342;
  --text-color: #333333;
  --text-light: #666666;
  --background: #ffffff;
  --background-alt: #f8f9fa;
  --border-color: #e0e0e0;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
}

/* 全局样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

/* 整页背景图铺满 */
body::before {
  content: "";
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: url('../images/hero-image.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: -1;
}

/* 排版 */
h1 {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
}

h2 {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.3;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.4;
}

p {
  margin-bottom: 1rem;
}

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

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

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

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

/* 响应式断点 */
/* 移动端优先 - 默认样式适用于小屏幕 */

/* 平板：768px */
@media (min-width: 768px) {
  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.5rem;
  }

  .container {
    padding: 0 40px;
  }
}

/* 半透明内容容器，使内容浮于背景图之上 */
.page-glass {
  background-color: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(4px);
  min-height: 100vh;
}

/* 桌面：1024px */
@media (min-width: 1024px) {
  h1 {
    font-size: 3.5rem;
  }
}

/* 大屏幕：1440px */
@media (min-width: 1440px) {
  .container {
    max-width: 1400px;
  }
}


/* 导航栏样式 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow);
  z-index: 1000;
  padding: 1rem 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
}

.logo-text {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

/* 响应式导航栏 */
@media (min-width: 768px) {
  .navbar {
    padding: 1.5rem 0;
  }

  .logo-icon {
    width: 48px;
    height: 48px;
  }

  .logo-text {
    font-size: 1.75rem;
  }
}


/* Hero 区域样式 */
.hero {
  padding: 100px 0 60px;
  background: transparent;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

.hero-text {
  text-align: center;
}

.hero-title {
  margin-bottom: 1rem;
  color: var(--text-color);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.hero-image {
  width: 100%;
  max-width: 500px;
}

.hero-image img {
  width: 100%;
  border-radius: 12px;
  box-shadow: var(--shadow-hover);
}

/* 响应式 Hero 区域 - 平板 */
@media (min-width: 768px) {
  .hero {
    padding: 120px 0 80px;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }
}

/* 响应式 Hero 区域 - 桌面 */
@media (min-width: 1024px) {
  .hero {
    padding: 140px 0 100px;
  }

  .hero-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 4rem;
  }

  .hero-text {
    flex: 1;
    text-align: left;
  }

  .hero-subtitle {
    margin: 0;
  }

  .hero-image {
    flex: 1;
    max-width: 550px;
  }
}


/* 功能特性区域样式 */
.features {
  padding-bottom: 80px;
  background-color: transparent;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  color: var(--text-color);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.feature-card {
  background-color: var(--background);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: var(--transition);
  cursor: default;
}

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

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--background-alt);
  border-radius: 50%;
}

.feature-icon img {
  width: 32px;
  height: 32px;
  margin: 0 auto;
}

.feature-title {
  margin-bottom: 1rem;
  color: var(--text-color);
}

.feature-description {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0;
}

/* 响应式功能卡片 - 平板 */
@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

/* 响应式功能卡片 - 桌面 */
@media (min-width: 1024px) {
  .features {
    padding-bottom: 100px;
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }

  .feature-card {
    padding: 2.5rem;
  }
}


/* 截图展示区域样式 */
.screenshots {
  padding: 80px 0;
  background-color: var(--background-alt);
}

.screenshots-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.screenshot-item {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.screenshot-item:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-hover);
}

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

/* 响应式截图展示 - 平板 */
@media (min-width: 768px) {
  .screenshots-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

/* 响应式截图展示 - 桌面 */
@media (min-width: 1024px) {
  .screenshots {
    padding: 100px 0;
  }

  .screenshots-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
  }
}


/* 页脚样式 */
.footer {
  padding: 3rem 0;
  background-color: rgba(0, 0, 0, 0.5);
  color: #ffffff;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.copyright {
  font-size: 0.9rem;
  color: var(--background-alt);
  margin-bottom: 0;
}

.social-links {
  display: flex;
  gap: 1.5rem;
}

.social-links a {
  color: var(--background);
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-links a:hover {
  color: var(--primary-color);
  transform: translateY(-3px);
}

.social-links svg {
  width: 24px;
  height: 24px;
}

/* 响应式页脚 - 平板及以上 */
@media (min-width: 768px) {
  .footer-content {
    flex-direction: row;
    justify-content: space-between;
  }
}


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

.language-select {
  padding: 0.5rem 2rem 0.5rem 0.75rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-color);
  background-color: var(--background);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition);
  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='%23333333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 12px;
}

.language-select:hover {
  border-color: var(--primary-color);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.language-select:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
  border-color: var(--primary-color);
}

/* 无障碍隐藏标签 */
.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;
}

/* 响应式语言切换器 */
@media (max-width: 480px) {
  .language-select {
    font-size: 0.875rem;
    padding: 0.4rem 1.75rem 0.4rem 0.6rem;
  }
}

/* 可访问性优化 */
/* 跳过导航链接（屏幕阅读器友好） */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: white;
  padding: 8px;
  text-decoration: none;
  z-index: 100;
}

.skip-link:focus {
  top: 0;
}

/* 确保焦点可见 */
a:focus,
button:focus {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* 提高文本对比度（符合 WCAG AA 标准） */
/* 当前配色方案已确保足够的对比度 */
/* 文本色 #333333 在白色背景上的对比度 > 4.5:1 */
/* 浅色文本 #666666 在白色背景上的对比度 > 4.5:1 */

/* 响应式字体大小，确保可读性 */
@media (max-width: 320px) {
  body {
    font-size: 14px;
  }
}

/* 减少动画（尊重用户偏好） */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
