/*
 * DYNAMIC — Layout Styles
 * 开发者: 山河·無名/shanhewuming
 */

/* ========== 导航 ========== */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-header);
  transition: all 0.4s;
}

#header.scrolled {
  background: var(--bg-overlay);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 20px var(--container-padding);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: padding 0.4s;
}

#header.scrolled .nav-container { padding-top: 14px; padding-bottom: 14px; }

.nav-logo {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -1px;
  color: var(--text-primary);
}

.logo-dot { color: var(--primary); }

.nav-links {
  display: flex;
  gap: 8px;
}

.nav-link {
  padding: 8px 16px;
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.3s;
  position: relative;
}

.nav-link:hover,
.nav-link.active { color: var(--text-primary); }

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after { width: 20px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.toggle-bar {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s;
}

.nav-toggle.open .toggle-bar:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open .toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.open .toggle-bar:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ========== 移动菜单 ========== */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--bg-overlay);
  backdrop-filter: blur(20px);
  z-index: var(--z-mobile-menu);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s;
}

.mobile-menu.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  text-align: center;
}

.mobile-nav li {
  margin-bottom: var(--space-lg);
}

.mobile-nav a {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-secondary);
  transition: color 0.3s;
}

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

/* ========== HERO ========== */
.hero {
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 40%, rgba(255, 107, 53, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 75% 60%, rgba(108, 92, 231, 0.08) 0%, transparent 50%);
}

.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-content {
  text-align: center;
  z-index: var(--z-content);
  max-width: 900px;
  padding: 0 var(--container-padding);
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: rgba(255, 107, 53, 0.1);
  border: 1px solid rgba(255, 107, 53, 0.2);
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: var(--space-xl);
  opacity: 0;
  animation: fadeIn 0.8s 0.2s forwards;
}

.hero-title {
  font-size: clamp(48px, 9vw, 120px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -3px;
}

.hero-title .line {
  display: block;
  overflow: hidden;
}

.hero-title .line span {
  display: inline-block;
  transform: translateY(120%);
  animation: slideUp 1s var(--ease-out) forwards;
}

.hero-title .line:nth-child(2) span { animation-delay: 0.15s; }
.hero-title .line:nth-child(3) span { animation-delay: 0.3s; }

.hero-subtitle {
  margin-top: var(--space-xl);
  font-size: 18px;
  color: var(--text-secondary);
  opacity: 0;
  animation: fadeIn 1s 0.6s forwards;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.7;
}

.hero-actions {
  margin-top: var(--space-xl);
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  opacity: 0;
  animation: fadeIn 1s 0.8s forwards;
}

.hero-stats-mini {
  margin-top: var(--space-3xl);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xl);
  opacity: 0;
  animation: fadeIn 1s 1s forwards;
}

.mini-stat { text-align: center; }

.mini-stat-value {
  display: block;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.mini-stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.mini-stat-divider {
  width: 1px;
  height: 32px;
  background: var(--border-subtle);
}

/* 滚动提示 */
.scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 2px;
  animation: bounce 2s infinite;
}

.mouse {
  width: 24px;
  height: 38px;
  border: 2px solid var(--text-muted);
  border-radius: 12px;
  position: relative;
}

.mouse-wheel {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--text-secondary);
  border-radius: 2px;
  animation: scrollWheel 1.5s infinite;
}

/* ========== 各区块 ========== */
section {
  position: relative;
  z-index: var(--z-content);
}

.stats,
.features,
.timeline-section,
.testimonials,
.pricing,
.faq,
.gallery {
  padding: var(--space-5xl) 0;
}

/* ========== 展示区 ========== */
.showcase {
  padding: var(--space-5xl) 0;
  overflow: hidden;
}

.showcase-header {
  text-align: center;
  padding: 0 var(--container-padding);
  margin-bottom: var(--space-3xl);
}

.scroll-indicator {
  margin-top: var(--space-md);
  font-size: 13px;
  color: var(--text-muted);
}

.showcase-track {
  display: flex;
  gap: var(--space-lg);
  padding: 0 var(--container-padding);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.showcase-track::-webkit-scrollbar { display: none; }
.showcase-card { scroll-snap-align: center; }

/* ========== 文字渐显 ========== */
.text-reveal {
  padding: var(--space-5xl) 0;
}

.big-text {
  font-size: clamp(36px, 5.5vw, 72px);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: -2px;
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.big-text .word {
  display: inline-block;
  opacity: 0.08;
  transition: opacity 0.5s;
  margin: 0 4px;
}

.big-text .word.active { opacity: 1; }

/* ========== CTA ========== */
.cta-section {
  padding: var(--space-5xl) 0;
  position: relative;
  overflow: hidden;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 50%, rgba(255, 107, 53, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 70% 50%, rgba(108, 92, 231, 0.08) 0%, transparent 50%);
}

.cta-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.cta-content h2 {
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: var(--space-md);
}

.cta-content > p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

.cta-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  margin-bottom: var(--space-xl);
}

.cta-trust {
  display: flex;
  gap: var(--space-xl);
  justify-content: center;
  font-size: 14px;
  color: var(--text-muted);
}

/* ========== 页脚 ========== */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: var(--space-2xl);
  margin-bottom: var(--space-3xl);
}

.footer-logo {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -1px;
  margin-bottom: var(--space-sm);
}

.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
}

.footer-social a {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  transition: all 0.2s;
}

.footer-social a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.footer-links-group h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.footer-links-group li { margin-bottom: var(--space-sm); }

.footer-links-group a {
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s;
}

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

.footer-bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-copyright,
.footer-credit {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-credit strong { color: var(--primary); }

/* 粒子画布 */
#particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: var(--z-particles);
}

/* 所有内容区 */
.stats, .features, .showcase, .text-reveal, .timeline-section,
.testimonials, .pricing, .time-section, .gallery, .faq, .cta-section, .site-footer {
  position: relative;
  z-index: var(--z-content);
}
