/* ============================================
   易剪AI智能体 - 样式表
   主题色: #0084f7 | 背景色: #f0f2f5
   ============================================ */

/* --- 全局重置 --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: #f0f2f5;
  color: #1a1a2e;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
}

/* --- 顶部导航栏 --- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 0 40px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-nav .nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-nav .nav-logo-img {
  width: auto;
  height: 40px;
  max-width: 180px;
  object-fit: contain;
  display: block;
}

.site-nav .nav-title {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a2e;
  letter-spacing: -0.3px;
}

.site-nav .nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6b7280;
  font-size: 14px;
}

.nav-user-info .avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0084f7;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}

.nav-user-info .username {
  color: #1a1a2e;
  font-weight: 600;
}

.btn-nav-download {
  padding: 8px 20px;
  background: #0084f7;
  color: #fff !important;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.25s;
  border: none;
  cursor: pointer;
}

.btn-nav-download:hover {
  background: #0073e0;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 132, 247, 0.35);
}

.btn-nav-outline {
  padding: 8px 20px;
  background: transparent;
  color: #6b7280;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
  cursor: pointer;
}

.btn-nav-outline:hover {
  border-color: #0084f7;
  color: #0084f7;
}

/* --- 通用按钮 --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  background: #0084f7;
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(0, 132, 247, 0.3);
}

.btn-primary:hover {
  background: #0073e0;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 132, 247, 0.4);
}

.btn-primary-lg {
  padding: 16px 48px;
  font-size: 18px;
  border-radius: 14px;
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  background: transparent;
  color: #0084f7;
  border: 2px solid #0084f7;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-outline:hover {
  background: #0084f7;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 132, 247, 0.25);
}

/* --- Hero 主视觉区 --- */
.hero {
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 24px 60px;
  position: relative;
  overflow: hidden;
  background: #f0f2f5 url('/images/bg.jpg') center top / cover no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(240,242,245,0.10) 0%, rgba(240,242,245,0.25) 50%, rgba(240,242,245,0.10) 100%);
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  display: none;
}

.hero-bg-overlay {
  display: none;
}

.hero-content {
  max-width: 820px;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-block;
  padding: 6px 18px;
  background: rgba(0, 132, 247, 0.1);
  color: #0084f7;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 28px;
  letter-spacing: 0.5px;
}

.hero h1 {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.2;
  color: #1a1a2e;
  margin-bottom: 20px;
  letter-spacing: -1.5px;
}

.hero h1 .highlight {
  color: #0084f7;
}

.hero p {
  font-size: 20px;
  color: #6b7280;
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.hero-content-left {
  text-align: left;
  margin-left: 0;
  max-width: 700px;
}

.hero-content-left h1 {
  font-size: 48px;
}

.hero-content-left .hero-actions {
  justify-content: flex-start;
}

.hero-content-left .hero-badge {
  margin-left: 0;
}

.hero-content-left p {
  margin-left: 0;
}

.hero-screenshot-left {
  margin-left: 0;
}

.hero .hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* --- 产品截图 --- */
.hero-screenshot {
  margin-top: 48px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.screenshot-placeholder {
  display: none;
}

.product-screenshot {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
  border: 1px solid #eef2f6;
  display: block;
}

/* --- 通用 Section 样式 --- */
.section {
  padding: 100px 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  font-size: 38px;
  font-weight: 800;
  color: #1a1a2e;
  margin-bottom: 16px;
  letter-spacing: -1px;
}

.section-header p {
  font-size: 18px;
  color: #6b7280;
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- 功能特点 --- */
#features {
  background: #ffffff;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  background: #f8fafc;
  border-radius: 20px;
  padding: 40px 32px;
  transition: all 0.35s;
  border: 1px solid #eef2f6;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0, 132, 247, 0.08);
  border-color: rgba(0, 132, 247, 0.2);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background: #0084f7;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin: 0 auto 24px;
  color: #fff;
}

.feature-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 15px;
  color: #6b7280;
  line-height: 1.7;
}

.feature-card .feature-tag {
  display: inline-block;
  margin-top: 20px;
  padding: 4px 14px;
  background: rgba(0, 132, 247, 0.08);
  color: #0084f7;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}

/* --- 产品优势 --- */
#advantages {
  background: #f0f2f5;
}

.advantages-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.advantage-item {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px 32px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: all 0.3s;
  border: 1px solid #eef2f6;
}

.advantage-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
}

.advantage-icon {
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: #0084f7;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
}

.advantage-text h4 {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 6px;
}

.advantage-text p {
  font-size: 15px;
  color: #6b7280;
  line-height: 1.6;
}

/* --- 下载区域 --- */
#download {
  background: #ffffff;
}

.download-section {
  text-align: center;
}

.download-cards {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 48px;
}

.download-card {
  background: #f8fafc;
  border: 1px solid #eef2f6;
  border-radius: 20px;
  padding: 40px 48px;
  width: 300px;
  transition: all 0.35s;
  text-align: center;
}

.download-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(0, 132, 247, 0.08);
  border-color: rgba(0, 132, 247, 0.2);
}

.download-card .os-icon {
  font-size: 48px;
  margin-bottom: 16px;
  color: #6b7280;
}

.download-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: #1a1a2e;
  margin-bottom: 6px;
}

.download-card .version {
  font-size: 14px;
  color: #9ca3af;
  margin-bottom: 28px;
}

.btn-download-os {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 32px;
  background: #0084f7;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  width: 100%;
  justify-content: center;
}

.btn-download-os:hover {
  background: #0073e0;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 132, 247, 0.35);
}

/* --- 页面底部 --- */
.site-footer {
  background: #1a1a2e;
  color: #9ca3af;
  padding: 40px 24px;
  text-align: center;
  font-size: 14px;
  line-height: 1.8;
}

.site-footer .footer-brand {
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 8px;
}

.site-footer a {
  color: #0084f7;
}

.site-footer a:hover {
  text-decoration: underline;
}

/* --- 滚动动画辅助 --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   登录 / 注册页面
   ============================================ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f2f5;
  padding: 24px;
}

.auth-container {
  background: #ffffff;
  border-radius: 20px;
  padding: 48px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  border: 1px solid #eef2f6;
}

.auth-container .auth-logo {
  text-align: center;
  margin-bottom: 32px;
}

.auth-container .auth-logo .logo-icon {
  width: 52px;
  height: 52px;
  background: #0084f7;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #fff;
  margin-bottom: 12px;
}

.auth-container .auth-logo h1 {
  font-size: 24px;
  font-weight: 700;
  color: #1a1a2e;
}

.auth-container .auth-logo p {
  font-size: 14px;
  color: #9ca3af;
  margin-top: 4px;
}

.auth-container .form-group {
  margin-bottom: 20px;
}

.auth-container .form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.auth-container .form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e5e7eb;
  border-radius: 10px;
  font-size: 15px;
  transition: all 0.25s;
  outline: none;
  background: #f9fafb;
}

.auth-container .form-group input:focus {
  border-color: #0084f7;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 132, 247, 0.1);
}

.auth-container .btn-auth {
  width: 100%;
  padding: 14px;
  background: #0084f7;
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 8px;
}

.auth-container .btn-auth:hover {
  background: #0073e0;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 132, 247, 0.3);
}

.auth-container .alert {
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 14px;
  text-align: center;
}

.auth-container .alert-success {
  background: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.auth-container .alert-error {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.auth-container .auth-link {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: #9ca3af;
}

.auth-container .auth-link a {
  color: #0084f7;
  font-weight: 600;
}

.auth-container .auth-link a:hover {
  text-decoration: underline;
}

/* --- 响应式 --- */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 36px;
  }

  .hero p {
    font-size: 17px;
  }

  .section {
    padding: 64px 20px;
  }

  .section-header h2 {
    font-size: 30px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .advantages-grid {
    grid-template-columns: 1fr;
  }

  .site-nav {
    padding: 0 20px;
  }

  .site-nav .nav-title {
    font-size: 17px;
  }

  .download-card {
    width: 100%;
    max-width: 340px;
  }

  .hero .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .nav-user-info .username {
    display: none;
  }

  .auth-container {
    padding: 32px 24px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 28px;
  }

  .btn-primary-lg {
    padding: 14px 32px;
    font-size: 16px;
  }

  .site-nav .nav-title {
    display: none;
  }
}
