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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background: #fff;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* 侧边导航栏 */
.sidebar-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100vh;
  background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: 32px 24px;
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.05);
  border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-logo {
  margin-bottom: 48px;
}

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

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: auto;
}

.nav-link {
  font-size: 16px;
  font-weight: 500;
  color: #64748b;
  padding: 12px 16px;
  border-radius: 12px;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
}

.nav-link:hover,
.nav-link.active {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  transform: translateX(4px);
}

.nav-download-section {
  margin-top: 24px;
}

.nav-download-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
}

.nav-download-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
}

/* 主内容区域 */
.main-content {
  margin-left: 280px;
  min-height: 100vh;
}

/* Hero区域 - 全屏背景风格 */
.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 50%, #cbd5e1 100%);
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url(https://static.meituxiuxiu.com/_next/static/media/banner.7221fa3a.webp);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.3;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.9) 0%, rgba(226, 232, 240, 0.8) 100%);
}

.hero-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 0 40px;
  position: relative;
  z-index: 2;
}

.hero-content {
  color: #1e293b;
}

.hero-badge {
  display: inline-block;
  background: rgba(59, 130, 246, 0.1);
  backdrop-filter: blur(10px);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(59, 130, 246, 0.2);
  color: #3b82f6;
}

.hero-title {
  font-size: 64px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 20px;
  margin-bottom: 40px;
  opacity: 0.9;
  line-height: 1.6;
  font-weight: 400;
  color: #64748b;
}

.hero-buttons {
  display: flex;
  gap: 20px;
  align-items: center;
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-secondary {
  background: transparent;
  color: #3b82f6;
  border: 2px solid rgba(59, 130, 246, 0.3);
  padding: 14px 30px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: rgba(59, 130, 246, 0.1);
  border-color: rgba(59, 130, 246, 0.5);
}

.hero-visual {
  position: relative;
}

.hero-image-container {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  transform: scale(1.1);
}

.hero-image-container img {
  width: 100%;
  height: auto;
  display: block;
}

/* 功能展示区 - 垂直卡片布局 */
.features-section {
  padding: 120px 40px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

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

.section-header {
  text-align: center;
  margin-bottom: 80px;
}

.section-title {
  font-size: 48px;
  font-weight: 700;
  color: #1e40af;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  font-size: 18px;
  color: #64748b;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
}

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

.feature-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid rgba(59, 130, 246, 0.1);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
}

.feature-image {
  position: relative;
  height: 300px;
  overflow: hidden;
}

.feature-image video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.feature-content {
  padding: 32px;
  text-align: center;
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 16px;
  display: block;
}

.feature-title {
  font-size: 24px;
  font-weight: 700;
  color: #1e40af;
  margin-bottom: 16px;
}

.feature-description {
  font-size: 16px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 24px;
}

.feature-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.feature-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* 一站式全能修图 - 标签页布局 */
.photo-editor-section {
  padding: 120px 40px;
  background: white;
}

.photo-editor-container {
  max-width: 1200px;
  margin: 0 auto;
}

.photo-editor-title {
  text-align: center;
  font-size: 48px;
  font-weight: 700;
  color: #1e40af;
  margin-bottom: 60px;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tabs-container {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-radius: 24px;
  padding: 40px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

.tabs-header {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab-header {
  padding: 16px 32px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 25px;
  font-size: 16px;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.tab-header:hover {
  background: rgba(255, 255, 255, 0.9);
  color: #1e40af;
  transform: translateY(-2px);
}

.tab-header.active {
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
  transform: translateY(-2px);
}

.tabs-content {
  position: relative;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.editor-card {
  background: white;
  border-radius: 20px;
  padding: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.editor-card img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.editor-content h3 {
  font-size: 32px;
  font-weight: 700;
  color: #1e40af;
  margin-bottom: 20px;
  line-height: 1.3;
}

.editor-content p {
  font-size: 16px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 32px;
}

.editor-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
  color: white;
  border: none;
  padding: 16px 32px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.editor-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* 美图AI全家桶 - 横向滚动布局 */
.ai-section {
  padding: 120px 40px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.ai-container {
  max-width: 1400px;
  margin: 0 auto;
}

.ai-header {
  text-align: center;
  margin-bottom: 80px;
}

.ai-title {
  font-size: 48px;
  font-weight: 700;
  color: #1e40af;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ai-subtitle {
  font-size: 18px;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.ai-scroll-container {
  overflow-x: auto;
  padding: 20px 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.ai-scroll-container::-webkit-scrollbar {
  display: none;
}

.ai-cards-wrapper {
  display: flex;
  gap: 30px;
  min-width: max-content;
  /* 当内容不足以横向滚动时，让卡片整体在容器中居中 */
  justify-content: center;
  margin: 0 auto;
}

.ai-card {
  background: white;
  border-radius: 20px;
  padding: 0;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid rgba(59, 130, 246, 0.1);
  text-align: center;
  overflow: hidden;
  width: 350px;
  flex-shrink: 0;
}

.ai-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(59, 130, 246, 0.15);
}

.ai-video {
  height: 200px;
  overflow: hidden;
}

.ai-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ai-content {
  padding: 24px;
}

.ai-content h3 {
  font-size: 20px;
  font-weight: 600;
  color: #1e40af;
  margin-bottom: 12px;
}

.ai-content p {
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 20px;
  font-size: 14px;
}

.ai-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #1e40af 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
}

.ai-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

/* 用户体验反馈 - 网格布局 */
.feedback-section {
  padding: 120px 40px;
  background: white;
}

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

.feedback-header {
  text-align: center;
  margin-bottom: 80px;
}

.feedback-title {
  font-size: 48px;
  font-weight: 700;
  color: #1e40af;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.feedback-subtitle {
  font-size: 18px;
  color: #64748b;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

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

.feedback-card {
  background: white;
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.1);
  transition: all 0.3s ease;
}

.feedback-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.15);
}

.feedback-user {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.feedback-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.feedback-user-info h4 {
  font-size: 16px;
  font-weight: 600;
  color: #1e40af;
  margin-bottom: 4px;
}

.feedback-rating {
  font-size: 14px;
  color: #fbbf24;
}

.feedback-content {
  font-size: 16px;
  color: #64748b;
  line-height: 1.6;
  font-style: italic;
}

/* 页脚 */
.footer {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  color: #1e293b;
  padding: 80px 40px 40px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

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

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-logo {
  margin-bottom: 20px;
}

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

.footer-links {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #475569;
  font-size: 16px;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #3b82f6;
}

.footer-bottom {
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  padding-top: 32px;
  color: #475569;
  font-size: 14px;
  line-height: 1.6;
}

.footer-bottom p {
  margin-bottom: 8px;
}

.footer-bottom a {
  color: #3b82f6;
  text-decoration: underline;
}

.footer-bottom a:hover {
  color: #1e40af;
}

/* 响应式设计 */
@media (max-width: 1024px) {
  .sidebar-nav {
    width: 240px;
  }
  
  .main-content {
    margin-left: 240px;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-title {
    font-size: 48px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .editor-card {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  
  .feedback-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .sidebar-nav {
    width: 100%;
    height: auto;
    position: relative;
    flex-direction: row;
    padding: 16px 24px;
    justify-content: space-between;
  }
  
  .nav-menu {
    display: none;
  }
  
  .main-content {
    margin-left: 0;
  }
  
  .hero-container {
    padding: 0 24px;
  }
  
  .hero-title {
    font-size: 36px;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .features-section,
  .photo-editor-section,
  .ai-section,
  .feedback-section {
    padding: 80px 24px;
  }
  
  .section-title,
  .ai-title,
  .feedback-title,
  .photo-editor-title {
    font-size: 36px;
  }
  
  .footer {
    padding: 60px 24px 24px;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 16px;
  }
  
  .tabs-header {
    flex-direction: column;
    gap: 8px;
  }
  
  .tab-header {
    padding: 12px 24px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 28px;
  }
  
  .section-title,
  .ai-title,
  .feedback-title,
  .photo-editor-title {
    font-size: 28px;
  }
  
  .features-grid,
  .feedback-grid {
    grid-template-columns: 1fr;
  }
  
  .ai-cards-wrapper {
    flex-direction: column;
  }
  
  .ai-card {
    width: 100%;
  }
}
