/* ========================================
   NowView 网站样式
   ======================================== */

/* CSS 变量 */
:root {
  --primary: #667eea;
  --secondary: #764ba2;
  --accent: #f59e0b;
  --dark: #1e293b;
  --light: #f8fafc;
  --gray: #64748b;
  --border: #e2e8f0;
  --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.15);
  --radius: 12px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
  line-height: 1.6;
  color: var(--dark);
  background: var(--light);
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

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

/* 按钮样式 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  text-align: center;
}

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
  background: white;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

/* 导航栏 */
.navbar {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-weight: 700;
  cursor: pointer;
}

.logo {
  font-size: 32px;
}

.brand-name {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-weight: 500;
  color: var(--gray);
  position: relative;
}

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

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient);
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.cta-btn {
  background: var(--gradient);
  color: white !important;
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 600;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.mobile-menu-btn {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* Hero 区域 */
.hero {
  padding: 160px 0 100px;
  background: linear-gradient(135deg, #f0f4ff 0%, #faf5ff 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(102, 126, 234, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

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

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

.hero-badge {
  display: inline-block;
  background: rgba(102, 126, 234, 0.1);
  color: var(--primary);
  padding: 8px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 24px;
  color: var(--dark);
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--gray);
  margin-bottom: 40px;
  line-height: 1.8;
}

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

.hero-stats {
  display: flex;
  gap: 48px;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  color: var(--gray);
}

/* 演示图 */
.hero-image {
  animation: fadeInRight 0.8s ease;
}

.preview-mockup {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
  transition: transform 0.3s ease;
}

.preview-mockup:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.mockup-header {
  background: var(--gradient);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.mockup-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #10b981; }

.mockup-title {
  color: white;
  font-weight: 600;
  font-size: 14px;
}

.mockup-content {
  padding: 40px;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  min-height: 300px;
}

.mockup-preview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.preview-item {
  background: white;
  padding: 20px;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
  color: var(--primary);
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
  cursor: pointer;
}

.preview-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

/* 功能区域 */
.features {
  padding: 100px 0;
  background: white;
}

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

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

.section-subtitle {
  font-size: 18px;
  color: var(--gray);
}

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

.feature-card {
  background: var(--light);
  padding: 40px;
  border-radius: var(--radius);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

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

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

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

.feature-card p {
  color: var(--gray);
  line-height: 1.7;
}

/* 使用场景 */
.use-cases {
  padding: 100px 0;
  background: linear-gradient(135deg, #f0f4ff 0%, #faf5ff 100%);
}

.use-cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 32px;
}

.use-case-item {
  background: white;
  padding: 32px;
  border-radius: var(--radius);
  text-align: center;
  transition: all 0.3s ease;
}

.use-case-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.use-case-icon {
  font-size: 56px;
  margin-bottom: 20px;
}

.use-case-item h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.use-case-item p {
  color: var(--gray);
  line-height: 1.6;
}

/* 定价 */
.pricing {
  padding: 100px 0;
  background: white;
}

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

.pricing-card {
  background: white;
  border-radius: 20px;
  padding: 40px;
  border: 2px solid var(--border);
  position: relative;
  transition: all 0.3s ease;
}

.pricing-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

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

.pricing-badge {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
}

.pricing-badge.popular {
  background: var(--accent);
}

.pricing-card h3 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
}

.price {
  margin-bottom: 32px;
}

.currency {
  font-size: 24px;
  color: var(--gray);
  vertical-align: top;
}

.amount {
  font-size: 56px;
  font-weight: 800;
  color: var(--dark);
}

.period {
  font-size: 14px;
  color: var(--gray);
  margin-left: 8px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 32px;
}

.pricing-features li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--gray);
}

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

.pricing-features strong {
  color: var(--primary);
}

.redeem-section {
  text-align: center;
  margin-top: 60px;
  padding: 40px;
  background: linear-gradient(135deg, #f0f4ff 0%, #faf5ff 100%);
  border-radius: var(--radius);
}

.redeem-section h3 {
  font-size: 24px;
  margin-bottom: 12px;
}

.demo-code {
  margin-top: 20px;
  font-size: 14px;
  color: var(--gray);
}

.demo-code code {
  background: white;
  padding: 8px 16px;
  border-radius: 6px;
  font-family: 'Courier New', monospace;
  color: var(--primary);
  margin-left: 8px;
}

/* FAQ */
.faq {
  padding: 100px 0;
  background: var(--light);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.faq-question {
  padding: 24px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s ease;
}

.faq-question:hover {
  background: var(--light);
}

.faq-question h4 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
  flex: 1;
  padding-right: 16px;
}

.faq-icon {
  font-size: 24px;
  color: var(--primary);
  font-weight: bold;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 24px;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 24px 24px;
}

.faq-answer p {
  color: var(--gray);
  line-height: 1.7;
  margin-bottom: 12px;
}

.faq-answer ol,
.faq-answer ul {
  margin: 12px 0;
  padding-left: 24px;
  color: var(--gray);
}

.faq-answer li {
  margin-bottom: 8px;
}

.faq-answer code {
  background: var(--light);
  padding: 4px 8px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  color: var(--primary);
}

/* 下载 */
.download {
  padding: 100px 0;
  background: var(--gradient);
  color: white;
}

.download-content {
  text-align: center;
}

.download-content h2 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 16px;
}

.download-content > p {
  font-size: 20px;
  margin-bottom: 60px;
  opacity: 0.9;
}

.download-methods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}

.download-method {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  padding: 40px;
  border-radius: var(--radius);
  text-align: center;
  border: 2px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.download-method:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}

.method-icon {
  font-size: 56px;
  margin-bottom: 20px;
}

.download-method h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.download-method p {
  margin-bottom: 24px;
  opacity: 0.9;
}

.download-method .btn {
  width: 100%;
  justify-content: center;
}

.download-method .btn-primary {
  background: white;
  color: var(--primary);
}

.download-method .btn-secondary {
  background: transparent;
  color: white;
  border-color: white;
}

.download-method .btn-outline {
  background: transparent;
  color: white;
  border-color: white;
}

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

.footer-content {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo {
  font-size: 40px;
  margin-bottom: 16px;
}

.footer-brand h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.footer-brand p {
  color: var(--gray);
}

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

.footer-section a {
  display: block;
  color: var(--gray);
  margin-bottom: 12px;
  transition: color 0.3s ease;
}

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

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--gray);
  font-size: 14px;
}

/* 动画 */
@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: 968px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-buttons {
    justify-content: center;
  }

  .hero-stats {
    justify-content: center;
  }

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

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

  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 36px;
  }

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

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

  .features-grid,
  .use-cases-grid,
  .pricing-grid,
  .download-methods {
    grid-template-columns: 1fr;
  }

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