/* ===== 超创游乐 v6-fusion 共享样式 ===== */
/* 融合GEO版本视觉系统 + Claude Code版本组件结构 */

/* ============ CSS变量 ============ */
:root {
  --bg-warm: #FFFEF0;
  --bg-warm-soft: #FFF8E7;
  --bg-dark: #2C3E50;
  --bg-darker: #1E2A3A;
  --text-primary: #2C3E50;
  --text-light: #4A5D6F;
  --text-muted: #7F8C8D;
  --text-dim: #A0AEC0;
  --accent: #FF6B35;
  --accent-light: #FF8C5A;
  --accent-mint: #4ECDC4;
  --border: rgba(44,62,80,0.08);
  --shadow: rgba(44,62,80,0.08);
  --shadow-hover: rgba(44,62,80,0.15);

  --font-en: 'Montserrat', sans-serif;
  --font-cn: 'Noto Sans SC', sans-serif;

  --transition-smooth: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.4s ease;
}

/* ============ 基础重置 ============ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-cn), var(--font-en), -apple-system, sans-serif;
  background: var(--bg-warm);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
  letter-spacing: 0.5px;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-en), var(--font-cn); font-weight: 600; line-height: 1.3; }
a { text-decoration: none; color: inherit; transition: var(--transition-fast); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* ============ 容器 ============ */
.container { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 80px; }
.container-sm { max-width: 900px; margin: 0 auto; padding: 0 80px; }

/* ============ 加载动画 ============ */
.loader-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: var(--bg-darker); z-index: 10000;
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  transition: opacity 1.5s ease, visibility 1.5s ease;
}
.loader-overlay.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-logo { font-size: 32px; font-weight: 700; letter-spacing: 12px; color: var(--bg-warm); opacity: 0; animation: fadeInSlow 1.5s ease forwards; }
.loader-sub { font-size: 12px; font-weight: 300; letter-spacing: 6px; color: var(--text-muted); margin-top: 16px; text-transform: uppercase; font-family: var(--font-en); opacity: 0; animation: fadeInSlow 1.5s ease forwards 0.5s; }
.loader-line { width: 80px; height: 1px; background: var(--accent); margin-top: 24px; opacity: 0; animation: loaderExpand 2s ease forwards 0.8s; }
@keyframes fadeInSlow { 0% { opacity: 0; transform: translateY(20px); } 100% { opacity: 1; transform: translateY(0); } }
@keyframes loaderExpand { 0% { width: 0; opacity: 0; } 100% { width: 80px; opacity: 1; } }

/* ============ 粒子画布 ============ */
.particle-canvas { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; opacity: 0.15; }

/* ============ 导航 ============ */
.navbar {
  position: fixed; top: 0; width: 100%; height: 80px;
  background: rgba(255, 254, 240, 0.7); backdrop-filter: blur(20px) saturate(180%);
  z-index: 1000; display: flex; align-items: center; justify-content: space-between;
  padding: 0 60px; transition: var(--transition-smooth);
  border-bottom: 1px solid rgba(44,62,80,0.06);
}
.navbar.hidden { transform: translateY(-100%); opacity: 0; }
.navbar:hover { background: rgba(255, 254, 240, 0.95); transform: translateY(0); opacity: 1; }
.logo { display: flex; align-items: center; gap: 16px; }
.logo img { height: 36px; transition: opacity 0.6s ease; }
.logo:hover img { opacity: 0.8; }
.logo-text { font-size: 18px; font-weight: 500; letter-spacing: 4px; color: var(--text-primary); font-family: var(--font-en); white-space: nowrap; }
.nav-links { display: flex; gap: 48px; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--text-muted); font-weight: 400; font-size: 13px;
  letter-spacing: 2px; font-family: var(--font-en), var(--font-cn);
  transition: var(--transition-smooth); position: relative; white-space: nowrap;
}
.nav-links a::after { content: ''; position: absolute; bottom: -6px; left: 0; width: 0; height: 1px; background: var(--accent); transition: width 0.6s ease; }
.nav-links a:hover { color: var(--text-primary); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--accent); }
.nav-links a.active::after { width: 100%; }
.nav-cta {
  background: transparent; color: var(--text-primary); padding: 10px 28px;
  border: 1px solid rgba(44,62,80,0.25); border-radius: 0;
  text-decoration: none; font-weight: 400; font-size: 12px;
  letter-spacing: 2px; font-family: var(--font-en), var(--font-cn);
  transition: var(--transition-smooth); position: relative; overflow: hidden; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav-cta:hover { background: var(--accent); color: white; border-color: var(--accent); }
.nav-cta svg { width: 14px; height: 14px; }

/* ============ 汉堡菜单 ============ */
.hamburger-menu {
  display: none; flex-direction: column; justify-content: center; align-items: center;
  width: 44px; height: 44px; gap: 5px; cursor: pointer; z-index: 1001;
  -webkit-tap-highlight-color: transparent;
}
.hamburger-menu span { display: block; width: 22px; height: 2px; background: var(--text-primary); transition: var(--transition-fast); }
.hamburger-menu.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger-menu.active span:nth-child(2) { opacity: 0; }
.hamburger-menu.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.mobile-menu {
  display: none; position: fixed; top: 64px; left: 0; width: 100%;
  background: rgba(255, 254, 240, 0.98); backdrop-filter: blur(20px) saturate(180%);
  z-index: 999; padding: 16px 24px; flex-direction: column; gap: 0;
  border-top: 1px solid var(--border); box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}
.mobile-menu.active { display: flex; }
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; }
.mobile-menu ul li { border-bottom: 1px solid var(--border); }
.mobile-menu ul li a { display: flex; align-items: center; padding: 16px 0; text-decoration: none; color: var(--text-primary); font-size: 14px; letter-spacing: 2px; font-family: var(--font-en), var(--font-cn); white-space: nowrap; transition: color 0.3s ease; min-height: 44px; }
.mobile-menu ul li a:hover { color: var(--accent); }
.mobile-menu ul li a.active { color: var(--accent); }
.mobile-menu .nav-cta { margin-top: 16px; text-align: center; justify-content: center; min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; }
.mobile-menu-overlay { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(30,42,58,0.4); z-index: 998; backdrop-filter: blur(4px); }
.mobile-menu-overlay.active { display: block; }

/* ============ 面包屑 ============ */
.breadcrumb {
  padding: 120px 0 30px; background: var(--bg-warm-soft);
  border-bottom: 1px solid var(--border);
}
.breadcrumb-inner { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; }
.breadcrumb-inner a { color: var(--text-muted); }
.breadcrumb-inner a:hover { color: var(--accent); }
.breadcrumb-inner .sep { color: var(--text-dim); }
.breadcrumb-inner .current { color: var(--text-primary); font-weight: 500; }

/* ============ 页面Hero ============ */
.page-hero { height: 50vh; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--bg-darker); }
.page-hero::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(circle at 30% 50%, rgba(255,107,53,0.08) 0%, transparent 50%); z-index: 1; }
.page-hero-content { position: relative; z-index: 2; text-align: center; color: white; max-width: 900px; padding: 0 40px; }
.page-hero-label { font-size: 12px; font-weight: 300; letter-spacing: 6px; text-transform: uppercase; font-family: var(--font-en); color: var(--accent); margin-bottom: 24px; }
.page-hero-title { font-size: clamp(32px, 5vw, 56px); font-weight: 700; line-height: 1.2; letter-spacing: 4px; margin-bottom: 24px; }
.page-hero-subtitle { font-size: 16px; font-weight: 300; letter-spacing: 2px; color: rgba(255,255,255,0.7); line-height: 1.8; }

/* ============ 章节通用 ============ */
.section-container { max-width: 1400px; margin: 0 auto; padding: 120px 80px; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-family: var(--font-en); font-size: 2.5rem; font-weight: 700; margin-bottom: 0.5rem; letter-spacing: 1px; }
.section-header .subtitle { font-size: 1rem; color: var(--text-muted); }
.section-label {
  font-size: 12px; font-weight: 300; letter-spacing: 6px; text-transform: uppercase;
  font-family: var(--font-en); color: var(--accent); margin-bottom: 24px; display: flex; align-items: center; gap: 16px;
}
.section-label::before { content: ''; width: 40px; height: 1px; background: var(--accent); }
.section-title { font-size: clamp(28px, 3vw, 48px); font-weight: 700; line-height: 1.2; margin-bottom: 32px; letter-spacing: 3px; color: var(--text-primary); }
.section-title span { color: var(--accent); }
.section-desc { font-size: 16px; color: var(--text-muted); line-height: 1.8; max-width: 600px; letter-spacing: 1px; }

/* ============ 按钮组件 ============ */
.btn-primary {
  font-family: var(--font-en); font-size: 0.85rem; font-weight: 600;
  padding: 14px 36px; background: var(--accent); color: #fff;
  letter-spacing: 3px; text-transform: uppercase;
  transition: var(--transition-fast); border: 1px solid var(--accent); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.btn-primary:hover { background: transparent; color: var(--accent); }
.btn-secondary {
  font-family: var(--font-en); font-size: 0.85rem; font-weight: 600;
  padding: 14px 36px; background: transparent; color: var(--text-primary);
  border: 1px solid var(--text-primary);
  letter-spacing: 3px; text-transform: uppercase;
  transition: var(--transition-fast); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.btn-secondary:hover { background: var(--text-primary); color: var(--bg-warm); }

/* ============ 卡片组件 ============ */
.card {
  background: var(--bg-warm); border: 1px solid var(--border); overflow: hidden;
  transition: var(--transition-smooth);
}
.card:hover { transform: translateY(-8px); box-shadow: 0 20px 60px var(--shadow-hover); border-color: rgba(255,107,53,0.2); }

/* ============ 标签组件 ============ */
.tag {
  display: inline-block; padding: 4px 12px; font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  font-family: var(--font-en); border: 1px solid rgba(255,255,255,0.2);
}
.tag-orange { background: rgba(255,107,53,0.15); color: var(--accent); border-color: transparent; }
.tag-green { background: rgba(78,205,196,0.15); color: var(--accent-mint); border-color: transparent; }

/* ============ 滚动揭示 ============ */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

.scroll-reveal { opacity: 0; transform: translateY(80px); transition: all 1.5s cubic-bezier(0.4, 0, 0.2, 1); }
.scroll-reveal.visible { opacity: 1; transform: translateY(0); }
.scroll-reveal-left { opacity: 0; transform: translateX(-80px); transition: all 1.5s cubic-bezier(0.4, 0, 0.2, 1); }
.scroll-reveal-left.visible { opacity: 1; transform: translateX(0); }
.scroll-reveal-right { opacity: 0; transform: translateX(80px); transition: all 1.5s cubic-bezier(0.4, 0, 0.2, 1); }
.scroll-reveal-right.visible { opacity: 1; transform: translateX(0); }
.scroll-reveal-scale { opacity: 0; transform: scale(0.9); transition: all 1.5s cubic-bezier(0.4, 0, 0.2, 1); }
.scroll-reveal-scale.visible { opacity: 1; transform: scale(1); }

/* ============ 页脚 ============ */
.footer { padding: 80px 80px 40px; background: var(--bg-darker); border-top: 1px solid rgba(255,255,255,0.05); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 80px; max-width: 1400px; margin: 0 auto 60px; }
.footer-brand h3 { font-size: 20px; font-weight: 500; margin-bottom: 16px; letter-spacing: 4px; color: white; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.8; max-width: 300px; letter-spacing: 1px; }
.footer-links h4 { font-size: 12px; font-weight: 400; margin-bottom: 24px; letter-spacing: 3px; text-transform: uppercase; font-family: var(--font-en); color: var(--accent); }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 14px; transition: all 0.6s ease; letter-spacing: 1px; }
.footer-links a:hover { color: white; }

/* ============ CTA+Footer 合并布局（首页专用） ============ */
.cta-upper { flex: 1.2; display: flex; align-items: center; justify-content: center; padding: 120px 80px; position: relative; z-index: 2; }
.cta-divider { height: 1px; background: rgba(44,62,80,0.1); width: 100%; position: relative; z-index: 2; }
.cta-footer { background: #2C3E50; padding: 60px 80px 40px; flex-shrink: 0; position: relative; z-index: 2; }
.cta-footer-inner { max-width: 1400px; margin: 0 auto; }
.cta-footer .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 80px; margin-bottom: 60px; }
.cta-footer .footer-brand h3 { font-size: 20px; font-weight: 500; margin-bottom: 16px; letter-spacing: 4px; color: white; }
.cta-footer .footer-brand p { font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.8; max-width: 300px; letter-spacing: 1px; }
.cta-footer .footer-links h4 { font-size: 12px; font-weight: 400; margin-bottom: 24px; letter-spacing: 3px; text-transform: uppercase; font-family: var(--font-en); color: var(--accent); }
.cta-footer .footer-links ul { list-style: none; }
.cta-footer .footer-links li { margin-bottom: 12px; }
.cta-footer .footer-links a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 14px; transition: all 0.6s ease; letter-spacing: 1px; }
.cta-footer .footer-links a:hover { color: var(--accent); }
.cta-footer .footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 40px; text-align: center; font-size: 12px; color: rgba(255,255,255,0.4); letter-spacing: 2px; font-family: var(--font-en); }

/* 社交媒体图标预留 */
.cta-footer .social-links { display: flex; gap: 16px; margin-top: 24px; }
.cta-footer .social-links a { width: 36px; height: 36px; border: 1px solid rgba(255,255,255,0.15); border-radius: 50%; display: flex; align-items: center; justify-content: center; transition: all 0.4s ease; color: rgba(255,255,255,0.5); }
.cta-footer .social-links a:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

@media (max-width: 1200px) {
  .cta-footer .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .cta-upper { padding: 80px 24px; }
  .cta-footer { padding: 40px 24px 30px; }
  .cta-footer .footer-grid { grid-template-columns: 1fr; gap: 40px; }
}
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.05); padding-top: 40px; text-align: center; font-size: 12px; color: rgba(255,255,255,0.4); letter-spacing: 2px; font-family: var(--font-en); max-width: 1400px; margin: 0 auto; }

/* ============ 聊天小部件 ============ */
.chat-widget {
  position: fixed; bottom: 40px; right: 40px; width: 56px; height: 56px;
  background: rgba(255,107,53,0.15); backdrop-filter: blur(10px); border: 1px solid rgba(255,107,53,0.3);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition-smooth); z-index: 999;
}
.chat-widget:hover { background: rgba(255,107,53,0.25); transform: scale(1.05); border-color: rgba(255,107,53,0.5); }
.chat-widget svg { width: 20px; height: 20px; stroke: var(--accent); }

/* ============ 表单组件 ============ */
.form-group { margin-bottom: 24px; }
.form-group label { display: block; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; font-family: var(--font-en); color: var(--text-muted); margin-bottom: 8px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 14px 16px; border: 1px solid var(--border); background: var(--bg-warm);
  font-family: var(--font-cn); font-size: 15px; color: var(--text-primary);
  transition: all 0.6s ease; outline: none; letter-spacing: 0.5px;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--accent); }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-submit {
  width: 100%; padding: 16px; background: var(--accent); color: white; border: 1px solid var(--accent);
  font-family: var(--font-en), var(--font-cn); font-size: 13px; letter-spacing: 3px; text-transform: uppercase;
  cursor: pointer; transition: var(--transition-smooth); font-weight: 400;
}
.form-submit:hover { background: transparent; color: var(--accent); }
.form-submit:disabled { opacity: 0.5; cursor: not-allowed; }
.form-success { display: none; padding: 16px; background: rgba(78,205,196,0.1); border: 1px solid rgba(78,205,196,0.3); color: var(--text-primary); font-size: 14px; text-align: center; margin-bottom: 24px; }
.form-success.visible { display: block; }

/* ============ 全屏滚动导航 (Fullpage Nav) ============ */
.fp-nav {
  position: fixed;
  right: 32px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px 8px;
}

.fp-nav-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 导航圆点 tooltip：hover 时显示 section 名称 */
.fp-nav-dot::before {
  content: attr(data-label);
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  white-space: nowrap;
  font-size: 11px;
  letter-spacing: 2px;
  font-family: var(--font-en);
  color: rgba(255, 255, 255, 0.7);
  opacity: 0;
  transition: all 0.4s ease;
  pointer-events: none;
}

.fp-nav-dot:hover::before {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.fp-nav-dot:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.3);
  border-color: rgba(255, 255, 255, 0.5);
}

/* 激活状态：活力橙 #FF6B35，带脉冲发光效果 */
.fp-nav-dot.active {
  background: var(--accent);
  border-color: var(--accent);
  transform: scale(1.4);
  box-shadow: 0 0 12px rgba(255, 107, 53, 0.5);
}

/* ============ 回到顶部按钮 ============ */
.back-to-top {
  position: fixed;
  bottom: 40px;
  right: 100px;
  width: 48px;
  height: 48px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(44, 62, 80, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 99;
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px) scale(1.05);
}

.back-to-top svg {
  width: 20px;
  height: 20px;
  stroke: var(--text-primary);
  transition: stroke 0.3s ease;
}

.back-to-top:hover svg {
  stroke: white;
}

/* ============ 边界提示 Toast ============ */
.boundary-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  z-index: 1000;
  background: rgba(30, 42, 58, 0.9);
  backdrop-filter: blur(20px);
  color: white;
  padding: 16px 32px;
  border-radius: 4px;
  font-size: 14px;
  letter-spacing: 2px;
  font-family: var(--font-en);
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 107, 53, 0.3);
}

.boundary-toast.show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ============ 响应式 ============ */
@media (max-width: 1200px) {
  .container { padding: 0 40px; }
  .container-sm { padding: 0 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .section-container { padding: 80px 40px; }
}

@media (max-width: 768px) {
  .fp-nav { display: none; }
  .back-to-top { display: none; }
  .boundary-toast { display: none; }
  .navbar { padding: 0 24px; height: 64px; }
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger-menu { display: flex; }
  .page-hero { height: 40vh; }
  .page-hero-title { font-size: clamp(28px, 8vw, 36px); }
  .container { padding: 0 24px; }
  .container-sm { padding: 0 24px; }
  .section-container { padding: 80px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer { padding: 60px 24px 30px; }
  .chat-widget { bottom: 24px; right: 24px; }
  .breadcrumb { padding: 100px 0 20px; }
}

@media (max-width: 480px) {
  .btn-primary, .btn-secondary { padding: 12px 24px; font-size: 0.8rem; }
}
