/* ═════════════════════════════════════════════════════════════════════════════
   懒人编辑器官网样式 - 优化版
   ═════════════════════════════════════════════════════════════════════════════ */

/* CSS 变量 - 优化配色 */
:root {
  --primary: #07c160;
  --primary-dark: #06ad56;
  --primary-light: #e8f5e9;
  --secondary: #1a1a2e;
  --accent: #6366f1;
  --text-primary: #1f2937;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --border-color: #e2e8f0;
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 0 40px rgba(7, 193, 96, 0.15);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition-fast: all 0.15s ease;
  --transition: all 0.3s ease;
  --transition-slow: all 0.5s ease;
}

/* 重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-primary);
  line-height: 1.6;
  background: var(--bg-primary);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ═════════════════════════════════════════════════════════════════════════════
   按钮 - 优化设计
   ═════════════════════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: var(--transition-slow);
}

.btn:hover::before {
  left: 100%;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  box-shadow: 0 4px 14px rgba(7, 193, 96, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(7, 193, 96, 0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--text-primary);
}

.btn-ghost:hover {
  background: var(--bg-secondary);
  color: var(--primary);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border-color);
  color: var(--text-primary);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.btn-white {
  background: white;
  color: var(--primary);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-large {
  padding: 16px 32px;
  font-size: 16px;
  border-radius: var(--radius-lg);
}

.btn-block {
  width: 100%;
}

.btn-wechat {
  background: linear-gradient(135deg, #07c160 0%, #06ad56 100%);
  color: white;
}

.btn-wechat:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(7, 193, 96, 0.35);
}

.btn-arrow {
  transition: var(--transition);
}

.btn:hover .btn-arrow {
  transform: translateX(4px);
}

/* ═════════════════════════════════════════════════════════════════════════════
   导航栏 - 优化设计
   ═════════════════════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-sm);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  transition: var(--transition);
}

.nav-logo:hover {
  transform: scale(1.02);
}

.logo-icon {
  font-size: 28px;
  filter: drop-shadow(0 2px 4px rgba(7, 193, 96, 0.2));
}

.nav-links {
  display: flex;
  gap: 40px;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  gap: 12px;
}

.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.nav-mobile-toggle:hover {
  background: var(--bg-secondary);
}

/* 用户菜单 */
.user-menu {
  position: relative;
}

.user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.user-btn:hover {
  background: var(--bg-secondary);
}

.user-avatar {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  font-size: 13px;
  font-weight: 600;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(7, 193, 96, 0.3);
}

.dropdown-arrow {
  font-size: 10px;
  color: var(--text-muted);
  transition: var(--transition);
}

.user-btn:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.user-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 200px;
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-color);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px) scale(0.95);
  transition: var(--transition);
  z-index: 1001;
  padding: 8px 0;
}

.user-dropdown.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.user-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  font-size: 14px;
  color: var(--text-primary);
  transition: var(--transition-fast);
}

.user-dropdown a:hover {
  background: var(--bg-secondary);
  color: var(--primary);
}

.dropdown-divider {
  height: 1px;
  background: var(--border-color);
  margin: 8px 0;
}

/* ═════════════════════════════════════════════════════════════════════════════
   Hero 区域 - 全新设计
   ═════════════════════════════════════════════════════════════════════════════ */
.hero {
  padding: 160px 0 120px;
  background: linear-gradient(180deg, #f0fdf4 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(7, 193, 96, 0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(7, 193, 96, 0.1);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  border-radius: 50px;
  margin-bottom: 24px;
  border: 1px solid rgba(7, 193, 96, 0.2);
  animation: fadeInUp 0.6s ease;
}

.badge-icon {
  font-size: 14px;
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
  animation: fadeInUp 0.6s ease 0.1s both;
}

.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, #10b981 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 520px;
  animation: fadeInUp 0.6s ease 0.2s both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 56px;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.hero-stats {
  display: flex;
  gap: 48px;
  animation: fadeInUp 0.6s ease 0.4s both;
}

.stat-item {
  text-align: left;
}

.stat-number {
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

/* 编辑器预览 - 优化 */
.hero-visual {
  position: relative;
  animation: fadeInUp 0.6s ease 0.3s both;
}

.editor-preview {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  overflow: hidden;
  transform: perspective(1200px) rotateY(-8deg) rotateX(4deg);
  transition: var(--transition-slow);
  border: 1px solid var(--border-color);
}

.editor-preview:hover {
  transform: perspective(1200px) rotateY(-2deg) rotateX(2deg);
  box-shadow: var(--shadow-xl), 0 0 60px rgba(7, 193, 96, 0.2);
}

.editor-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-bottom: 1px solid var(--border-color);
}

.editor-dots {
  display: flex;
  gap: 8px;
}

.editor-dots .dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  transition: var(--transition);
}

.editor-dots .dot:hover {
  transform: scale(1.2);
}

.editor-dots .dot.red { background: #ff5f57; }
.editor-dots .dot.yellow { background: #febc2e; }
.editor-dots .dot.green { background: #28c840; }

.editor-title {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.editor-body {
  display: grid;
  grid-template-columns: 160px 1fr;
  height: 360px;
}

.editor-sidebar {
  background: var(--bg-secondary);
  padding: 16px;
  border-right: 1px solid var(--border-color);
}

.sidebar-item {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  margin-bottom: 6px;
  transition: var(--transition-fast);
  cursor: pointer;
}

.sidebar-item:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.sidebar-item.active {
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 500;
}

.editor-main {
  padding: 20px;
}

.editor-tabs {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 10px;
}

.editor-tabs .tab {
  font-size: 13px;
  color: var(--text-muted);
  padding: 6px 4px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.editor-tabs .tab::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: var(--transition);
  border-radius: 2px;
}

.editor-tabs .tab:hover {
  color: var(--text-secondary);
}

.editor-tabs .tab.active {
  color: var(--primary);
  font-weight: 500;
}

.editor-tabs .tab.active::after {
  width: 100%;
}

.editor-content {
  font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
  font-size: 13px;
  line-height: 2;
}

.content-line {
  color: var(--text-secondary);
}

.content-line.keyword {
  color: var(--primary);
  font-weight: 600;
}

/* 动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* ═════════════════════════════════════════════════════════════════════════════
   通用区块 - 优化
   ═════════════════════════════════════════════════════════════════════════════ */
.section-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.section-header {
  text-align: center;
  margin-bottom: 72px;
}

.section-tag {
  display: inline-block;
  padding: 8px 18px;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  border-radius: 50px;
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.section-title {
  font-size: 42px;
  font-weight: 800;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.section-desc {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ═════════════════════════════════════════════════════════════════════════════
   功能特色 - 优化设计
   ═════════════════════════════════════════════════════════════════════════════ */
.features {
  padding: 120px 0;
  background: var(--bg-secondary);
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  background: white;
  padding: 40px 32px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  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: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.feature-card:hover::before {
  transform: scaleX(1);
}

.feature-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  background: linear-gradient(135deg, var(--primary-light) 0%, #f0fdf4 100%);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  transition: var(--transition);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
}

.feature-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ═════════════════════════════════════════════════════════════════════════════
   模板展示 - 优化设计
   ═════════════════════════════════════════════════════════════════════════════ */
.templates {
  padding: 120px 0;
  background: white;
}

.templates-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-bottom: 48px;
}

.template-card {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  cursor: pointer;
}

.template-card:hover {
  transform: translateY(-8px) scale(1.02);
  box-shadow: var(--shadow-xl);
}

.template-preview {
  height: 180px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.template-preview::after {
  content: '预览';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  border-radius: var(--radius-lg);
  opacity: 0;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
}

.template-card:hover .template-preview::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.template-preview.tech-blue {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
}

.template-preview.elegant-minimal {
  background: linear-gradient(135deg, #fafaf9 0%, #e7e5e4 100%);
}

.template-preview.business-pro {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
}

.template-preview.business-pro .preview-title {
  color: white;
}

.template-preview.food-review {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.preview-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}

.preview-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}

.preview-line {
  height: 10px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 5px;
}

.preview-line.short {
  width: 60%;
}

.template-info {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.template-info h4 {
  font-size: 15px;
  font-weight: 600;
}

.template-tag {
  padding: 6px 12px;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  border-radius: 20px;
}

.templates-more {
  text-align: center;
}

/* ═════════════════════════════════════════════════════════════════════════════
   定价 - 优化设计
   ═════════════════════════════════════════════════════════════════════════════ */
.pricing {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, white 100%);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  max-width: 1000px;
  margin: 0 auto;
}

.pricing-card {
  background: white;
  padding: 40px 32px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.pricing-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.pricing-card.popular {
  border: 2px solid var(--primary);
  transform: scale(1.05);
  box-shadow: var(--shadow-xl), var(--shadow-glow);
  z-index: 1;
}

.pricing-card.popular:hover {
  transform: scale(1.05) translateY(-4px);
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 20px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  font-size: 12px;
  font-weight: 700;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(7, 193, 96, 0.3);
}

.pricing-header {
  text-align: center;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-color);
}

.pricing-name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.pricing-price .currency {
  font-size: 28px;
  font-weight: 600;
  color: var(--text-secondary);
}

.pricing-price .amount {
  font-size: 56px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.pricing-price .period {
  font-size: 15px;
  color: var(--text-muted);
  font-weight: 500;
}

.pricing-features {
  margin-bottom: 32px;
}

.pricing-features li {
  padding: 14px 0;
  font-size: 15px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--bg-tertiary);
  display: flex;
  align-items: center;
  gap: 12px;
}

.pricing-features li::before {
  content: '✓';
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
}

.pricing-features li:last-child {
  border-bottom: none;
}

/* ═════════════════════════════════════════════════════════════════════════════
   使用流程 - 优化设计
   ═════════════════════════════════════════════════════════════════════════════ */
.workflow {
  padding: 120px 0;
  background: white;
}

.workflow-steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 40px;
}

.workflow-step {
  text-align: center;
  flex: 1;
  max-width: 300px;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  font-size: 20px;
  font-weight: 800;
  border-radius: 50%;
  margin: 0 auto 24px;
  box-shadow: 0 8px 20px rgba(7, 193, 96, 0.3);
  position: relative;
  z-index: 1;
}

.step-icon {
  font-size: 56px;
  margin-bottom: 20px;
  display: block;
  animation: float 3s ease-in-out infinite;
}

.workflow-step:nth-child(2) .step-icon {
  animation-delay: 0.5s;
}

.workflow-step:nth-child(3) .step-icon {
  animation-delay: 1s;
}

.step-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.step-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.workflow-arrow {
  font-size: 32px;
  color: var(--primary);
  opacity: 0.3;
  margin-top: 12px;
}

/* ═════════════════════════════════════════════════════════════════════════════
   用户评价 - 优化设计
   ═════════════════════════════════════════════════════════════════════════════ */
.testimonials {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--bg-secondary) 0%, white 100%);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.testimonial-card {
  background: white;
  padding: 40px 32px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-color);
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 20px;
  right: 24px;
  font-size: 80px;
  color: var(--primary-light);
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-content {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-light) 0%, #f0fdf4 100%);
  color: var(--primary);
  font-size: 18px;
  font-weight: 700;
  border-radius: 50%;
}

.author-name {
  font-size: 15px;
  font-weight: 700;
}

.author-title {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ═════════════════════════════════════════════════════════════════════════════
   CTA - 优化设计
   ═════════════════════════════════════════════════════════════════════════════ */
.cta {
  padding: 120px 0;
  background: linear-gradient(135deg, var(--primary) 0%, #10b981 50%, var(--accent) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 50%);
  animation: rotate 30s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.cta-title {
  font-size: 44px;
  font-weight: 800;
  color: white;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.cta-desc {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.cta .btn-white {
  position: relative;
  z-index: 1;
  padding: 18px 40px;
  font-size: 17px;
  font-weight: 600;
}

/* ═════════════════════════════════════════════════════════════════════════════
   页脚 - 优化设计
   ═════════════════════════════════════════════════════════════════════════════ */
.footer {
  padding: 80px 0 40px;
  background: linear-gradient(180deg, #1a1a2e 0%, #0f0f1a 100%);
  color: white;
}

.footer-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.5fr 2fr;
  gap: 80px;
  margin-bottom: 60px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 20px;
}

.footer-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
  margin-bottom: 24px;
  max-width: 320px;
}

.footer-contact {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-contact p {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.footer-column h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 24px;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.footer-column a {
  display: block;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 14px;
  transition: var(--transition);
}

.footer-column a:hover {
  color: var(--primary);
  transform: translateX(4px);
}

.footer-bottom {
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
}

/* ═════════════════════════════════════════════════════════════════════════════
   弹窗 - 优化设计
   ═════════════════════════════════════════════════════════════════════════════ */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.modal.active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-content {
  position: relative;
  background: white;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-xl);
  padding: 40px;
  animation: modalSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-xl);
}

.modal-content-large {
  max-width: 800px;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  border: none;
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 50%;
  transition: var(--transition);
}

.modal-close:hover {
  background: var(--border-color);
  color: var(--text-primary);
  transform: rotate(90deg);
}

.modal-header {
  text-align: center;
  margin-bottom: 32px;
}

.modal-header h2 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 10px;
}

.modal-header p {
  font-size: 15px;
  color: var(--text-secondary);
}

/* 表单 - 优化 */
.auth-form {
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.form-group input {
  width: 100%;
  padding: 14px 18px;
  font-size: 15px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: var(--transition);
  background: var(--bg-secondary);
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(7, 193, 96, 0.1);
}

.form-hint {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  font-size: 14px;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-secondary);
}

.checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.forgot-link {
  color: var(--primary);
  font-weight: 500;
  font-size: 14px;
}

.forgot-link:hover {
  text-decoration: underline;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-color);
}

.auth-social {
  margin-bottom: 24px;
}

.auth-footer {
  text-align: center;
  font-size: 15px;
  color: var(--text-secondary);
}

.auth-footer a {
  color: var(--primary);
  font-weight: 600;
}

.auth-footer a:hover {
  text-decoration: underline;
}

/* 视频容器 */
.video-container {
  aspect-ratio: 16/9;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.video-placeholder {
  text-align: center;
  color: var(--text-muted);
}

.video-play {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  font-size: 28px;
  border-radius: 50%;
  margin: 0 auto 16px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 8px 24px rgba(7, 193, 96, 0.35);
}

.video-play:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 32px rgba(7, 193, 96, 0.45);
}

/* ═════════════════════════════════════════════════════════════════════════════
   响应式 - 优化
   ═════════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 60px;
    text-align: center;
  }
  
  .hero-content {
    order: 2;
  }
  
  .hero-visual {
    order: 1;
  }
  
  .hero-desc {
    margin: 0 auto 32px;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .stat-item {
    text-align: center;
  }
  
  .editor-preview {
    max-width: 540px;
    margin: 0 auto;
  }
  
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .templates-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
  }
  
  .pricing-card.popular {
    transform: none;
    order: -1;
  }
  
  .pricing-card.popular:hover {
    transform: translateY(-4px);
  }
  
  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-main {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .footer-links {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-actions {
    display: none;
  }
  
  .nav-mobile-toggle {
    display: block;
  }
  
  .hero {
    padding: 120px 0 80px;
  }
  
  .hero-title {
    font-size: 36px;
  }
  
  .hero-desc {
    font-size: 16px;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 24px;
  }
  
  .stat-number {
    font-size: 28px;
  }
  
  .section-title {
    font-size: 30px;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .templates-grid {
    grid-template-columns: 1fr;
  }
  
  .workflow-steps {
    flex-direction: column;
  }
  
  .workflow-arrow {
    transform: rotate(90deg);
    margin: 20px 0;
  }
  
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  
  .cta-title {
    font-size: 30px;
  }
  
  .section-container {
    padding: 0 20px;
  }
  
  .nav-container {
    padding: 0 20px;
  }
}

/* 移动端菜单 */
.mobile-menu {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: white;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  z-index: 999;
  box-shadow: var(--shadow-lg);
}

.mobile-menu.active {
  display: block;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-menu a {
  display: block;
  padding: 14px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.mobile-menu a:hover {
  color: var(--primary);
  padding-left: 8px;
}

.mobile-menu a:last-child {
  border-bottom: none;
}

.mobile-menu .btn {
  margin-top: 16px;
  width: 100%;
}

/* 滚动显示动画 */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}
