/* 三角洲辅助 - 赛博科幻风格 CSS */
:root {
  --bg-1: #0b0e14;
  --bg-2: #0f141d;
  --surface: #141a26;
  --surface-2: #1a2233;
  --border: rgba(74, 158, 255, 0.2);
  --border-hover: rgba(74, 158, 255, 0.6);
  --primary: #4a9eff;
  --primary-light: #7ab8ff;
  --accent: #00e5ff;
  --accent-2: #ff4081;
  --success: #3ecf8e;
  --warning: #ffb020;
  --error: #ff5a5a;
  --text-1: rgba(255, 255, 255, 0.9);
  --text-2: rgba(255, 255, 255, 0.65);
  --text-3: rgba(255, 255, 255, 0.45);
  --radius: 6px;
  --shadow-1: 0 2px 8px rgba(0, 0, 0, 0.35);
  --shadow-2: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 20px rgba(74, 158, 255, 0.3);
}

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

html {
  scroll-behavior: smooth;
  scroll-margin-top: 80px;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-1);
  color: var(--text-1);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* 网格背景 */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(74, 158, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 158, 255, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* 颗粒噪点 */
body::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* 导航栏 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(11, 14, 20, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  box-shadow: var(--shadow-2);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-1);
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 18px;
  box-shadow: var(--shadow-glow);
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  background: linear-gradient(90deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  color: var(--text-2);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius);
  transition: all 0.2s ease;
  font-size: 15px;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-1);
  background: rgba(74, 158, 255, 0.1);
}

.nav-cta {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white !important;
  padding: 10px 24px !important;
  border-radius: var(--radius);
  font-weight: 600;
  box-shadow: var(--shadow-glow);
  transition: all 0.2s ease;
}

.nav-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(74, 158, 255, 0.5);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-1);
  font-size: 24px;
  cursor: pointer;
  padding: 8px;
}

/* Hero 区域 */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 70px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 20%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(74, 158, 255, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 10%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(74, 158, 255, 0.1);
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--primary-light);
  margin-bottom: 24px;
}

.hero-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero h1 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #ffffff 0%, var(--primary-light) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero p {
  font-size: 18px;
  color: var(--text-2);
  margin-bottom: 32px;
  line-height: 1.8;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  box-shadow: 0 0 20px rgba(74, 158, 255, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(74, 158, 255, 0.5);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text-1);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  background: var(--surface-2);
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.stat-item h3 {
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
}

.stat-item p {
  font-size: 14px;
  color: var(--text-3);
  margin: 0;
}

.hero-image {
  position: relative;
}

.hero-image img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-2), 0 0 60px rgba(74, 158, 255, 0.2);
}

.hero-image::before {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, var(--primary), var(--accent), var(--primary));
  border-radius: 14px;
  z-index: -1;
  opacity: 0.5;
  filter: blur(10px);
}

/* 区块通用样式 */
.section {
  padding: 100px 0;
  position: relative;
}

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

.section-tag {
  display: inline-block;
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 18px;
  color: var(--text-2);
  max-width: 600px;
  margin: 0 auto;
}

/* 功能卡片 */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  transition: all 0.3s ease;
  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));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-2), 0 0 30px rgba(74, 158, 255, 0.15);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, rgba(74, 158, 255, 0.2), rgba(0, 229, 255, 0.2));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.feature-card p {
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.7;
}

/* 图片展示区 */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.gallery-item {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.gallery-item:hover {
  transform: scale(1.02);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-2), 0 0 40px rgba(74, 158, 255, 0.2);
}

.gallery-item img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(transparent, rgba(11, 14, 20, 0.9));
}

.gallery-overlay h4 {
  font-size: 18px;
  margin-bottom: 4px;
}

.gallery-overlay p {
  color: var(--text-2);
  font-size: 14px;
}

/* 优势对比 */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.advantage-item {
  text-align: center;
  padding: 32px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.advantage-item:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}

.advantage-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.advantage-item h4 {
  font-size: 18px;
  margin-bottom: 8px;
}

.advantage-item p {
  font-size: 14px;
  color: var(--text-2);
}

/* CTA 区域 */
.cta-section {
  text-align: center;
  padding: 80px 40px;
  background: linear-gradient(135deg, rgba(74, 158, 255, 0.1), rgba(0, 229, 255, 0.1));
  border: 1px solid var(--border);
  border-radius: 20px;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(74, 158, 255, 0.1) 0%, transparent 50%);
  animation: rotate 20s linear infinite;
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.cta-section h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 16px;
  position: relative;
}

.cta-section p {
  font-size: 18px;
  color: var(--text-2);
  margin-bottom: 32px;
  position: relative;
}

.cta-section .btn {
  position: relative;
  font-size: 18px;
  padding: 18px 48px;
}

/* 页脚 */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 60px 0 30px;
}

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

.footer-brand p {
  color: var(--text-2);
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.8;
}

.footer h4 {
  font-size: 16px;
  margin-bottom: 20px;
  color: var(--text-1);
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 12px;
}

.footer ul a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer ul a:hover {
  color: var(--primary-light);
}

.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid var(--border);
  text-align: center;
  color: var(--text-3);
  font-size: 14px;
}

/* 页面标题区 */
.page-header {
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
}

.page-header::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(74, 158, 255, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.page-header h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #ffffff, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-header p {
  font-size: 18px;
  color: var(--text-2);
  max-width: 600px;
  margin: 0 auto;
}

/* 卡片通用 */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 24px;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-2);
}

/* 时间线 */
.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -32px;
  top: 4px;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid var(--bg-1);
  box-shadow: 0 0 10px var(--accent);
}

.timeline-date {
  display: inline-block;
  background: rgba(0, 229, 255, 0.1);
  color: var(--accent);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 12px;
}

.timeline-item h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.timeline-item ul {
  list-style: none;
  padding: 0;
}

.timeline-item li {
  color: var(--text-2);
  padding: 6px 0;
  padding-left: 20px;
  position: relative;
}

.timeline-item li::before {
  content: ">";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: bold;
}

/* 教程步骤 */
.tutorial-steps {
  counter-reset: step;
}

.tutorial-step {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.3s ease;
}

.tutorial-step:hover {
  border-color: var(--border-hover);
}

.step-number {
  counter-increment: step;
  width: 48px;
  height: 48px;
  min-width: 48px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: white;
}

.step-content h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.step-content p {
  color: var(--text-2);
  line-height: 1.7;
}

/* 购买卡片 */
.buy-card {
  max-width: 600px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.buy-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
}

.buy-card.featured {
  border-color: var(--primary);
  box-shadow: 0 0 40px rgba(74, 158, 255, 0.2);
  transform: scale(1.05);
}

.buy-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  padding: 6px 20px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
}

.buy-card h3 {
  font-size: 28px;
  margin-bottom: 16px;
}

.buy-price {
  font-size: 56px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 8px;
}

.buy-price span {
  font-size: 24px;
}

.buy-period {
  color: var(--text-3);
  margin-bottom: 32px;
}

.buy-features {
  list-style: none;
  text-align: left;
  margin-bottom: 32px;
}

.buy-features li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
}

.buy-features li::before {
  content: "✓";
  color: var(--success);
  font-weight: bold;
  font-size: 18px;
}

.buy-card .btn {
  width: 100%;
  justify-content: center;
  padding: 18px;
  font-size: 18px;
}

/* 警告框 */
.alert {
  padding: 16px 20px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.alert-warning {
  background: rgba(255, 176, 32, 0.1);
  border: 1px solid rgba(255, 176, 32, 0.3);
  color: var(--warning);
}

.alert-info {
  background: rgba(74, 158, 255, 0.1);
  border: 1px solid rgba(74, 158, 255, 0.3);
  color: var(--primary-light);
}

.alert-success {
  background: rgba(62, 207, 142, 0.1);
  border: 1px solid rgba(62, 207, 142, 0.3);
  color: var(--success);
}

/* 图片画廊页面 */
.gallery-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery-page-item {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: all 0.3s ease;
}

.gallery-page-item:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-2);
}

.gallery-page-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.gallery-page-item .caption {
  padding: 16px;
  background: var(--surface);
}

.gallery-page-item .caption h4 {
  font-size: 15px;
  margin-bottom: 4px;
}

.gallery-page-item .caption p {
  font-size: 13px;
  color: var(--text-3);
}

/* 功能详情 */
.feature-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 80px;
}

.feature-detail:nth-child(even) {
  direction: rtl;
}

.feature-detail:nth-child(even) > * {
  direction: ltr;
}

.feature-detail img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-2);
}

.feature-detail-content h3 {
  font-size: 28px;
  margin-bottom: 16px;
}

.feature-detail-content p {
  color: var(--text-2);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.feature-list {
  list-style: none;
}

.feature-list li {
  padding: 10px 0;
  padding-left: 28px;
  position: relative;
  color: var(--text-2);
}

.feature-list li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* 响应式 */
@media (max-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gallery-page-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-2);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open {
    display: flex;
  }
  .mobile-menu-btn {
    display: block;
  }
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-image {
    order: -1;
  }
  .hero-buttons {
    justify-content: center;
  }
  .hero-stats {
    justify-content: center;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .advantages-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .feature-detail {
    grid-template-columns: 1fr;
  }
  .feature-detail:nth-child(even) {
    direction: ltr;
  }
  .gallery-page-grid {
    grid-template-columns: 1fr;
  }
  .buy-card.featured {
    transform: none;
  }
  .tutorial-step {
    flex-direction: column;
  }
  .cta-section {
    padding: 60px 24px;
  }
}

@media (max-width: 640px) {
  .hero-stats {
    flex-direction: column;
    gap: 20px;
  }
  .hero-buttons {
    flex-direction: column;
  }
  .btn {
    width: 100%;
    justify-content: center;
  }
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-1);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-hover);
}

/* 选中样式 */
::selection {
  background: rgba(74, 158, 255, 0.3);
  color: white;
}

/* 入场动画 */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
