/* ===== 图幻科技新版官网 - 简约科技风 ===== */
:root {
  --primary: #6E359E;
  --primary-light: #8B4BBE;
  --primary-dark: #4A1F6E;
  --accent: #9333EA;
  --bg-dark: #ffffff;
  --bg-card: #ffffff;
  --bg-surface: #f8f8f8;
  --border: rgba(110, 53, 158, 0.15);
  --border-glow: rgba(110, 53, 158, 0.4);
  --text: #333333;
  --text-muted: #666666;
  --text-dim: #999999;
  --glow: 0 4px 20px rgba(110, 53, 158, 0.15);
  --glow-sm: 0 2px 10px rgba(110, 53, 158, 0.12);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

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

/* ===== 顶部公告栏 ===== */
.notice-bar {
  background: linear-gradient(90deg, var(--primary-dark), var(--primary), var(--primary-dark));
  background-size: 200% 100%;
  animation: shimmer 4s linear infinite;
  text-align: center;
  padding: 8px;
  font-size: 13px;
  color: #fff;
  position: fixed; top: 0; width: 100%; z-index: 1000;
  letter-spacing: 0.5px;
}
@keyframes shimmer { 0%{background-position:0%} 100%{background-position:200%} }

/* ===== 导航栏 ===== */
.navbar {
  position: fixed; top: 36px; width: 100%; z-index: 999;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  border-bottom-color: var(--border-glow);
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; height: 64px;
}
.nav-logo img { height: 44px; }
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-item { position: relative; }
.nav-item > a {
  display: flex; align-items: center; gap: 4px;
  padding: 8px 16px; border-radius: 6px;
  font-size: 14px; color: var(--text-muted);
  transition: all 0.2s; cursor: pointer;
}
.nav-item > a:hover, .nav-item > a.active {
  color: var(--text);
  background: rgba(110, 53, 158, 0.15);
}
.nav-item > a .arrow {
  width: 12px; height: 12px; transition: transform 0.2s;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg); margin-top: -3px;
}
.nav-item:hover > a .arrow { transform: rotate(-135deg); margin-top: 3px; }

.nav-dropdown {
  position: absolute; top: calc(100% + 8px); left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  min-width: 200px; white-space: nowrap;
  opacity: 0; visibility: hidden;
  transform: translateX(-50%) translateY(-8px);
  transition: all 0.2s;
  box-shadow: 0 8px 24px rgba(0,0,0,0.1), var(--glow-sm);
  overflow: hidden;
}
.nav-item:hover .nav-dropdown {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown a {
  display: block; padding: 12px 20px;
  font-size: 13px; color: var(--text-muted);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: all 0.2s;
}
.nav-dropdown a:last-child { border-bottom: none; }
.nav-dropdown a:hover { background: rgba(110,53,158,0.15); color: var(--text); padding-left: 26px; }

.nav-cta {
  padding: 8px 20px !important;
  background: linear-gradient(135deg, var(--primary), var(--accent)) !important;
  border-radius: 20px !important; color: #fff !important;
  font-size: 13px !important;
  box-shadow: var(--glow-sm);
}
.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: var(--glow) !important; }

/* ===== 英雄区 ===== */
.hero {
  min-height: 100vh;
  padding-top: 100px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(110,53,158,0.08) 0%, transparent 70%),
              var(--bg-dark);
}

/* 网格背景 */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(110,53,158,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110,53,158,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 100% 80% at 50% 0%, black 0%, transparent 70%);
}

.hero-content {
  position: relative; z-index: 2;
  text-align: center; max-width: 900px; padding: 0 24px;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(110,53,158,0.15); border: 1px solid var(--border);
  border-radius: 20px; padding: 6px 16px;
  font-size: 13px; color: var(--accent);
  margin-bottom: 32px;
}
.hero-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(1.3)} }

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 700; line-height: 1.2;
  margin-bottom: 24px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero-desc {
  font-size: 16px; color: var(--text-muted);
  max-width: 680px; margin: 0 auto 40px;
  line-height: 1.8;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  padding: 14px 32px; border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; font-size: 15px; font-weight: 500;
  box-shadow: var(--glow);
  transition: all 0.3s; cursor: pointer; border: none;
  position: relative; overflow: hidden;
}
.btn-primary::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent, rgba(255,255,255,0.1), transparent);
  transform: translateX(-100%); transition: transform 0.4s;
}
.btn-primary:hover::after { transform: translateX(100%); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 40px rgba(110,53,158,0.6); }

.btn-outline {
  padding: 14px 32px; border-radius: 8px;
  background: transparent; color: var(--text);
  border: 1px solid var(--border); font-size: 15px;
  transition: all 0.3s; cursor: pointer;
}
.btn-outline:hover { border-color: var(--primary); background: rgba(110,53,158,0.1); transform: translateY(-2px); }

.hero-video {
  position: relative; z-index: 2;
  margin-top: 60px; width: 100%; max-width: 960px;
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 20px 40px rgba(0,0,0,0.12), var(--glow);
}
.hero-video video { display: block; width: 100%; }

/* ===== 统计数字 ===== */
.stats-bar {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}
.stats-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; padding: 0 40px;
}
.stat-item {
  text-align: center; padding: 20px;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-size: 2.4rem; font-weight: 700;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  line-height: 1;
}
.stat-label { color: var(--text-muted); font-size: 14px; margin-top: 8px; }

/* ===== 通用区块 ===== */
.section { padding: 100px 0; }
.section-inner { max-width: 1280px; margin: 0 auto; padding: 0 40px; }

.section-tag {
  display: inline-block;
  background: rgba(110,53,158,0.15); border: 1px solid var(--border);
  border-radius: 4px; padding: 4px 12px;
  font-size: 12px; color: var(--accent); letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 16px;
}
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 700;
  line-height: 1.3; margin-bottom: 16px;
}
.section-title span {
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.section-desc { color: var(--text-muted); font-size: 15px; line-height: 1.8; max-width: 560px; }

/* ===== 特性卡片区 ===== */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--border); border-radius: 16px; overflow: hidden;
  margin-top: 60px;
}
.feature-card {
  background: var(--bg-card); padding: 40px;
  transition: background 0.3s;
  position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.feature-card:hover { background: var(--bg-surface); }
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(110,53,158,0.2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; margin-bottom: 20px;
  transition: all 0.3s;
}
.feature-card:hover .feature-icon {
  background: rgba(110,53,158,0.35); box-shadow: var(--glow-sm);
}
.feature-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.feature-card p { color: var(--text-muted); font-size: 14px; line-height: 1.7; }

/* ===== 内容行 ===== */
.content-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
  padding: 60px 0; border-bottom: 1px solid rgba(0,0,0,0.06);
}
.content-row:last-child { border-bottom: none; }
.content-row.reverse { direction: rtl; }
.content-row.reverse > * { direction: ltr; }

.content-text { }
.content-text .section-tag { margin-bottom: 12px; }
.content-text h2 { font-size: 1.8rem; font-weight: 700; margin-bottom: 16px; line-height: 1.3; }
.content-text p { color: var(--text-muted); font-size: 15px; line-height: 1.8; }
.content-text .divider {
  width: 40px; height: 3px; margin: 20px 0;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
}

.content-visual {
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08), var(--glow-sm);
  background: var(--bg-card);
  position: relative;
}
.content-visual::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(110,53,158,0.1), transparent);
  z-index: 1; pointer-events: none;
}
.content-visual img { display: block; width: 100%; }

/* ===== 产品模块 ===== */
.bg-surface { background: var(--bg-surface); }

.product-tabs {
  display: flex; gap: 8px; margin-bottom: 48px;
}
.product-tab {
  padding: 10px 24px; border-radius: 6px;
  background: transparent; border: 1px solid var(--border);
  color: var(--text-muted); font-size: 14px; cursor: pointer;
  transition: all 0.2s;
}
.product-tab.active, .product-tab:hover {
  background: rgba(110,53,158,0.2); border-color: var(--primary);
  color: var(--text);
}

/* ===== 优势 ===== */
.advantages-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 60px;
}
.adv-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 16px; padding: 32px;
  transition: all 0.3s; position: relative;
}
.adv-card:hover {
  border-color: var(--border-glow);
  box-shadow: var(--glow);
  transform: translateY(-4px);
}
.adv-num {
  font-size: 3rem; font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, var(--primary-light), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}
.adv-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.adv-card p { color: var(--text-muted); font-size: 13px; line-height: 1.7; }

/* ===== Footer ===== */
.footer {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 48px 0 0;
}
.footer-inner { max-width: 1280px; margin: 0 auto; padding: 0 40px; }
.footer-main {
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.footer-brand img { height: 36px; display: block; margin-bottom: 12px; }
.footer-brand p { color: var(--text-muted); font-size: 13px; line-height: 1.7; max-width: 420px; }
.footer-info {
  display: flex; gap: 40px; align-items: flex-start; flex-shrink: 0;
}
.footer-info-item p { color: var(--text-muted); font-size: 13px; margin-bottom: 6px; }
.footer-info-item p:last-child { margin-bottom: 0; }
.footer-qr { display: flex; gap: 20px; flex-shrink: 0; }
.footer-qr-item { text-align: center; }
.footer-qr-item img { width: 72px; border-radius: 8px; border: 1px solid var(--border); display: block; }
.footer-qr-item span { display: block; font-size: 12px; color: var(--text-dim); margin-top: 6px; }
.footer-bottom {
  padding: 20px 0; text-align: center;
  color: var(--text-dim); font-size: 13px;
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--accent); }

/* ===== 移动端 ===== */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 8px;
}
.hamburger span {
  width: 22px; height: 2px; background: var(--text);
  border-radius: 2px; transition: all 0.3s;
}

@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .content-row { grid-template-columns: 1fr; gap: 40px; }
  .content-row.reverse { direction: ltr; }
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .notice-bar { font-size: 12px; padding: 6px; }
  .navbar { top: 30px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .hero { padding-top: 120px; }
  .hero h1 { font-size: 1.8rem; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .section { padding: 60px 0; }
  .section-inner { padding: 0 20px; }
  .features-grid { grid-template-columns: 1fr; }
  .advantages-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .nav-inner { padding: 0 20px; }
}

/* ===== 移动端导航 ===== */
.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 998;
  background: var(--bg-dark); padding: 100px 24px 24px;
  flex-direction: column; gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: 14px 16px; border-radius: 8px;
  font-size: 15px; color: var(--text-muted);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  transition: all 0.2s;
}
.mobile-menu a:hover { background: rgba(110,53,158,0.15); color: var(--text); }

/* ===== 滚动动画 ===== */
.fade-up {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s, transform 0.6s;
}
.fade-up.visible { opacity: 1; transform: none; }

/* ===== 分隔波浪 ===== */
.wave-divider { line-height: 0; }
.wave-divider svg { display: block; width: 100%; }
