@import url('https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&family=Noto+Serif+SC:wght@400;600;700;900&family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

:root {
  --primary: #0EA5E9;
  --secondary: #F59E0B;
  --accent: #EF4444;
  --bg-dark: #0F172A;
  --bg-light: rgba(255,255,255,0.06);
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Noto Sans SC', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
}

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

.font-xianxia {
  font-family: 'Ma Shan Zheng', cursive;
}

.font-serif-sc {
  font-family: 'Noto Serif SC', serif;
}

/* 云纹背景 */
.cloud-pattern {
  background-image:
    radial-gradient(ellipse at 20% 30%, rgba(14, 165, 233, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(245, 158, 11, 0.08) 0%, transparent 45%),
    url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 60 Q45 45 60 60 T90 60' fill='none' stroke='rgba(255,255,255,0.03)' stroke-width='1'/%3E%3Cpath d='M10 90 Q30 70 50 90 T90 90' fill='none' stroke='rgba(255,255,255,0.02)' stroke-width='1'/%3E%3C/svg%3E");
}

/* 导航栏 */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(15, 23, 42, 0.75) 60%, transparent 100%);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(14, 165, 233, 0.15);
}

.nav-link {
  position: relative;
  color: var(--text-muted);
  transition: color 0.3s ease;
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 50%;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* 汉堡菜单 */
.hamburger {
  width: 28px;
  height: 22px;
  position: relative;
  cursor: pointer;
}

.hamburger span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: var(--text-main);
  border-radius: 2px;
  transition: all 0.3s ease;
  left: 0;
}

.hamburger span:nth-child(1) { top: 0; }
.hamburger span:nth-child(2) { top: 10px; }
.hamburger span:nth-child(3) { top: 20px; }

.hamburger.active span:nth-child(1) {
  top: 10px;
  transform: rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  top: 10px;
  transform: rotate(-45deg);
}

.mobile-menu {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(16px);
  transform: translateX(100%);
  transition: transform 0.35s ease;
  z-index: 40;
  display: flex;
  flex-direction: column;
  padding: 2rem;
}

.mobile-menu.open {
  transform: translateX(0);
}

/* 按钮变体 */
.btn-glow {
  position: relative;
  background: linear-gradient(135deg, var(--primary), #0284c7);
  color: #fff;
  border-radius: 9999px;
  padding: 0.875rem 2rem;
  font-weight: 700;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-glow::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  transition: left 0.5s ease;
}

.btn-glow:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(14, 165, 233, 0.55);
}

.btn-glow:hover::before {
  left: 100%;
}

.btn-gold {
  position: relative;
  background: linear-gradient(135deg, #F59E0B, #D97706);
  color: #fff;
  border-radius: 0.75rem;
  padding: 0.875rem 2rem;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 4px 0 #92400E, 0 8px 20px rgba(245, 158, 11, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #92400E, 0 12px 28px rgba(245, 158, 11, 0.45);
}

.btn-gold:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #92400E, 0 4px 12px rgba(245, 158, 11, 0.3);
}

.btn-outline {
  position: relative;
  background: transparent;
  color: var(--primary);
  border: 1px solid rgba(14, 165, 233, 0.5);
  border-radius: 9999px;
  padding: 0.75rem 1.75rem;
  font-weight: 600;
  transition: all 0.3s ease;
  backdrop-filter: blur(8px);
}

.btn-outline:hover {
  background: rgba(14, 165, 233, 0.12);
  border-color: var(--primary);
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.25);
}

/* 卡片变体 */
.card-glass {
  background: var(--bg-light);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 1.25rem;
  transition: all 0.35s ease;
}

.card-glass:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(14, 165, 233, 0.18);
  border-color: rgba(14, 165, 233, 0.3);
}

.card-solid {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(245, 158, 11, 0.15);
  border-radius: 1rem;
  transition: all 0.3s ease;
}

.card-solid:hover {
  transform: scale(1.03);
  box-shadow: 0 0 30px rgba(245, 158, 11, 0.2);
  border-color: rgba(245, 158, 11, 0.4);
}

.card-bordered {
  background: transparent;
  border: 2px solid rgba(14, 165, 233, 0.25);
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card-bordered::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.05), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card-bordered:hover {
  border-color: var(--primary);
  transform: rotate(1deg);
}

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

/* 标题装饰变体 */
.title-underline {
  position: relative;
  display: inline-block;
  padding-bottom: 0.75rem;
}

.title-underline::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--secondary), transparent);
  border-radius: 2px;
}

.title-bar {
  position: relative;
  padding-left: 1.25rem;
  border-left: 4px solid var(--accent);
}

.title-seal {
  position: relative;
  display: inline-block;
}

.title-seal::after {
  content: '';
  position: absolute;
  right: -1.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent);
}

.title-stroke {
  position: relative;
  color: var(--text-main);
}

.title-stroke::before {
  content: attr(data-text);
  position: absolute;
  left: 2px;
  top: 2px;
  color: transparent;
  -webkit-text-stroke: 1px rgba(14, 165, 233, 0.2);
  z-index: -1;
}

/* 页脚 */
.site-footer {
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.98) 20%);
  border-top: 1px solid rgba(14, 165, 233, 0.12);
}

.friend-link {
  color: var(--text-muted);
  transition: all 0.25s ease;
  display: inline-block;
}

.friend-link:hover {
  color: var(--primary);
  transform: translateX(4px);
}

/* 通用区块 */
.section-padding {
  padding: 5rem 1rem;
}

@media (min-width: 768px) {
  .section-padding {
    padding: 6rem 1.5rem;
  }
}

@media (min-width: 1024px) {
  .section-padding {
    padding: 7rem 2rem;
  }
}

/* 渐变文字 */
.gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 光晕装饰 */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

/* 卷轴装饰 */
.scroll-edge {
  position: relative;
}

.scroll-edge::before,
.scroll-edge::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(14, 165, 233, 0.5), transparent);
}

.scroll-edge::before { top: 0; }
.scroll-edge::after { bottom: 0; }

/* 时间轴 */
.timeline-line {
  position: absolute;
  left: 1rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--secondary), var(--accent));
}

@media (min-width: 768px) {
  .timeline-line {
    left: 50%;
    transform: translateX(-50%);
  }
}

/* FAQ 折叠 */
.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.faq-item.open .faq-answer {
  max-height: 500px;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

/* 悬浮联系按钮 */
.float-contact {
  position: fixed;
  right: 1rem;
  bottom: 6rem;
  z-index: 45;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #0284c7);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.float-contact:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(14, 165, 233, 0.6);
}

/* 横向溢出保护 */
.overflow-guard {
  max-width: 100vw;
  overflow-x: hidden;
}

/* 视频容器 */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(14, 165, 233, 0.2);
}

.video-container iframe,
.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* 入场动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(14, 165, 233, 0.35); }
  50% { box-shadow: 0 0 40px rgba(14, 165, 233, 0.6); }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease forwards;
}

.animate-float {
  animation: float 4s ease-in-out infinite;
}

.animate-pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* 确保移动端链接换行 */
.break-link {
  word-break: break-all;
}

/* 二维码占位 */
.qr-placeholder {
  width: 96px;
  height: 96px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px dashed rgba(14, 165, 233, 0.3);
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  text-align: center;
}
