/* ==========================================
   软糖积木风格样式表 - 嗨起来文化官网
   ========================================== */

/* CSS变量定义 - 色彩系统 */
:root {
  /* 主色调 - 蜜瓜橙 */
  --primary-color: #FF9966;
  --primary-light: #FFB388;
  --primary-dark: #E67F4D;
  
  /* 辅助色 - 焦糖棕、蓝莓紫 */
  --secondary-color: #D4A76A;
  --accent-color: #9D8DFF;
  
  /* 背景色 - 奶油白 */
  --bg-color: #FFF8F0;
  --bg-white: #FFFFFF;
  --bg-light: #FFF5E8;
  --bg-soft: #FFE8CC;
  
  /* 文字色 - 可可灰、牛奶巧克力 */
  --text-primary: #4A4A4A;
  --text-secondary: #6B6B6B;
  --text-muted: #A8A090;
  --text-white: #FFFFFF;
  --text-accent: #FF9966;
  
  /* 边框色 */
  --border-color: #FFE0B8;
  --border-light: #FFD4A3;
  
  /* 圆角 */
  --radius-large: 16px;
  --radius-medium: 12px;
  --radius-small: 8px;
  --border-radius-lg: 20px;
  --border-radius-xl: 24px;
  
  /* 阴影 - 柔和温暖 */
  --shadow-card: 0 4px 16px rgba(255, 153, 102, 0.12);
  --shadow-card-hover: 0 8px 24px rgba(255, 153, 102, 0.2);
  --shadow-glow: 0 0 20px rgba(255, 153, 102, 0.25);
  --shadow-soft: 0 2px 8px rgba(212, 167, 106, 0.15);
  
  /* 间距 */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-xxl: 48px;
  
  /* 过渡 */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* 全局重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* 为固定的页眉留出空间 */
  padding-top: 104px; /* navbar 64px + marquee 约40px */
}

/* 容器 */
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

/* 英文字体 */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Fredoka One', 'Microsoft YaHei', sans-serif;
  font-weight: normal;
}

/* 段落 */
p {
  margin-bottom: var(--spacing-sm);
}

/* 链接 */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

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

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

.slide-in-left {
  animation: slideInLeft 0.6s ease-out forwards;
}

.slide-in-right {
  animation: slideInRight 0.6s ease-out forwards;
}

/* 延迟动画类 */
.delay-100 {
  animation-delay: 0.1s;
}

.delay-200 {
  animation-delay: 0.2s;
}

.delay-300 {
  animation-delay: 0.3s;
}

.delay-400 {
  animation-delay: 0.4s;
}

.delay-500 {
  animation-delay: 0.5s;
}

/* 动画可见状态 */
.fade-in-up.visible,
.fade-in.visible,
.slide-in-left.visible,
.slide-in-right.visible {
  opacity: 1;
}

/* ==========================================
   图片
   ========================================== */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ==========================================
   导航栏
   ========================================== */
.navbar {
  background: var(--bg-white) !important;
  box-shadow: 0 2px 8px rgba(255, 153, 102, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  padding: 0;
  border-bottom: 2px solid var(--primary-color);
  height: 64px;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 var(--spacing-xl);
}

.navbar-left {
  display: flex;
  align-items: center;
}

.nav-brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.logo-image {
  width: 64px;
  height: 64px;
  object-fit: contain;
  object-position: center;
  transition: transform var(--transition-fast);
  display: block;
  flex-shrink: 0;
}

.logo-image:hover {
  transform: scale(1.05);
}

.logo-text-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.logo-text {
  font-size: 20px;
  color: var(--primary-color);
  margin: 0;
  line-height: 1.2;
  font-weight: 700;
}

.logo-tagline {
  font-size: 10px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 1px;
}

.navbar-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--spacing-lg);
  margin: 0;
  padding: 0;
}

.nav-menu a {
  color: var(--text-primary);
  font-weight: 500;
  padding: 8px 16px;
  border-radius: var(--radius-medium);
  transition: all var(--transition-fast);
  font-size: 14px;
  text-decoration: none;
  position: relative;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--primary-color);
  background: var(--bg-light);
}

.nav-menu a.active::after {
  content: '';
  position: absolute;
  bottom: -20px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-color);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--primary-color);
  margin: 3px 0;
  border-radius: 2px;
  transition: var(--transition-fast);
}

/* ==========================================
   公告跑马灯
   ========================================== */
.announcement-marquee {
  background: var(--bg-white) !important;
  overflow: hidden;
  position: fixed;
  top: 64px; /* navbar的高度 */
  left: 0;
  right: 0;
  width: 100%;
  z-index: 999;
  margin: 0;
  padding: 0;
  border-bottom: 2px solid var(--border-color);
}

.marquee-container {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.marquee-content {
  display: flex;
  white-space: nowrap;
  animation: marquee 30s linear infinite;
  padding: 12px 0;
}

.announcement-item {
  display: inline-flex;
  align-items: center;
  padding: 0 var(--spacing-lg);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.announcement-item:hover {
  text-decoration: underline;
  transform: scale(1.02);
  color: var(--text-accent);
}

.announcement-item.type-highlight {
  background: rgba(255, 153, 102, 0.15);
  padding: 8px var(--spacing-lg);
  border-radius: var(--radius-small);
  font-weight: 600;
  color: var(--secondary-color);
}

.announcement-item.type-warning {
  background: rgba(157, 141, 255, 0.15);
  padding: 8px var(--spacing-lg);
  border-radius: var(--radius-small);
  font-weight: 600;
  color: var(--accent-color);
}

.announcement-divider {
  color: var(--text-muted);
  margin: 0 var(--spacing-md);
}

/* 悬停暂停动画 */
.announcement-marquee:hover .marquee-content {
  animation-play-state: paused;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ==========================================
   Banner轮播
   ========================================== */
.banner-section {
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 0;
  background: var(--bg-light);
}

.banner-slider {
  position: relative;
  width: 100%;
  height: 600px;
  overflow: hidden;
}

.banner-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.banner-slide.active {
  opacity: 1;
  visibility: visible;
}

.banner-slide .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1400px;
  padding: 0 var(--spacing-lg);
}

.banner-content {
  flex: 1;
  padding-right: var(--spacing-xxl);
  color: var(--text-white);
  z-index: 2;
  max-width: 600px;
}

.banner-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: var(--spacing-md);
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.banner-subtitle {
  font-size: 18px;
  margin-bottom: var(--spacing-lg);
  opacity: 0.95;
  line-height: 1.6;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.banner-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1;
}

.banner-emoji {
  font-size: 150px;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.15));
  animation: float 3s ease-in-out infinite;
}

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

.banner-indicators {
  position: absolute;
  bottom: var(--spacing-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: var(--spacing-sm);
  z-index: 10;
}

.banner-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.6);
  background: transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.banner-indicator.active,
.banner-indicator:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: scale(1.2);
  box-shadow: 0 0 10px rgba(255, 153, 102, 0.5);
}

.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.8);
  color: var(--text-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-normal);
  z-index: 10;
}

.banner-arrow:hover {
  background: rgba(255, 255, 255, 0.5);
  transform: translateY(-50%) scale(1.1);
}

.banner-arrow-prev {
  left: var(--spacing-lg);
}

.banner-arrow-next {
  right: var(--spacing-lg);
}

.btn-white {
  background: var(--bg-white);
  color: var(--primary-color);
  font-weight: 600;
  padding: var(--spacing-sm) var(--spacing-xl);
  font-size: 18px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-white:hover {
  background: var(--bg-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* ==========================================
   视频区域
   ========================================== */
.video-section {
  padding: var(--spacing-xl) 0;
  background: var(--bg-white);
  position: relative;
}

.video-container {
  position: relative;
  width: 100%;
  height: 400px;
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
  box-shadow: var(--shadow-lg);
}

.video-placeholder {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  color: var(--bg-white);
  text-align: center;
}

.video-icon {
  font-size: 64px;
  margin-bottom: var(--spacing-md);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.video-placeholder h3 {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: var(--spacing-sm);
}

.video-placeholder p {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: var(--spacing-lg);
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><rect width="100" height="100" fill="%23ffffff" opacity="0.1"/></svg>');
  background-size: 20px 20px;
  pointer-events: none;
}

/* ==========================================
   Hero 区域
   ========================================== */
.hero {
  padding: var(--spacing-xxl) 0;
  background: linear-gradient(135deg, var(--bg-color) 0%, var(--bg-light) 100%);
  position: relative;
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.hero-title {
  font-size: 56px;
  color: var(--primary-color);
  margin-bottom: var(--spacing-md);
  line-height: 1.2;
  animation: bounceIn 1s ease;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.hero-illustration {
  position: relative;
  height: 400px;
}

.floating-elements {
  position: relative;
  width: 100%;
  height: 100%;
}

.element {
  position: absolute;
  border-radius: var(--radius-large);
  animation: float 3s ease-in-out infinite;
}

.element-1 {
  width: 150px;
  height: 150px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
  top: 20%;
  left: 10%;
  animation-delay: 0s;
  opacity: 0.8;
}

.element-2 {
  width: 100px;
  height: 100px;
  background: linear-gradient(135deg, var(--accent-color), #C4B6FF);
  top: 60%;
  right: 20%;
  animation-delay: 0.5s;
  opacity: 0.6;
}

.element-3 {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--secondary-color), #EBC894);
  bottom: 10%;
  left: 30%;
  animation-delay: 1s;
  opacity: 0.7;
}

/* ==========================================
   按钮样式
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-sm) var(--spacing-xl);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-medium);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  font-family: 'Microsoft YaHei', sans-serif;
  letter-spacing: 0.5px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--text-white);
  box-shadow: 0 4px 12px rgba(255, 153, 102, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-light), var(--primary-color));
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 153, 102, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text-white);
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--text-white);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--bg-white);
  color: var(--primary-color);
  font-weight: 700;
  padding: var(--spacing-sm) var(--spacing-xl);
  font-size: 16px;
  box-shadow: 0 4px 12px rgba(255, 153, 102, 0.25);
}

.btn-white:hover {
  background: rgba(255, 255, 255, 0.95);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(255, 153, 102, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-outline:hover {
  background: var(--primary-color);
  color: var(--text-white);
}

.btn-large {
  padding: var(--spacing-md) var(--spacing-xl);
  font-size: 18px;
}

/* ==========================================
   通用区块
   ========================================== */
section {
  padding: var(--spacing-xxl) 0;
}

.section-title {
  font-size: 32px;
  color: var(--text-primary);
  text-align: center;
  margin-bottom: var(--spacing-sm);
  font-weight: 700;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

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

/* ==========================================
   业务板块
   ========================================== */
.services {
  background: var(--bg-white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-lg);
}

.service-card {
  background: var(--bg-light);
  padding: var(--spacing-xl);
  border-radius: var(--radius-large);
  text-align: center;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  border: 1px solid var(--border-color);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-soft);
}

.service-icon {
  font-size: 48px;
  margin-bottom: var(--spacing-md);
}

.service-card h3 {
  font-size: 22px;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
}

.service-card p {
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ==========================================
   数据统计
   ========================================== */
.stats {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: var(--text-white);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--spacing-lg);
  text-align: center;
}

.stat-item {
  padding: var(--spacing-lg);
}

.stat-number {
  font-size: 56px;
  font-weight: bold;
  margin-bottom: var(--spacing-xs);
  font-family: 'Fredoka One', sans-serif;
}

.stat-label {
  font-size: 18px;
  opacity: 0.9;
}

/* ==========================================
   游戏展示
   ========================================== */
.featured-games {
  background: var(--bg-color);
}

/* ==========================================
   CTA 区域
   ========================================== */
.cta-section {
  background: linear-gradient(135deg, var(--bg-soft), var(--secondary-color));
  color: var(--text-primary);
  text-align: center;
  border-top: 1px solid var(--border-color);
}

.cta-title {
  font-size: 32px;
  margin-bottom: var(--spacing-sm);
  font-weight: 700;
  color: var(--text-primary);
}

.cta-subtitle {
  font-size: 18px;
  margin-bottom: var(--spacing-lg);
  opacity: 0.9;
}

/* ==========================================
   页脚
   ========================================== */
.footer {
  background: var(--bg-white) !important;
  color: var(--text-primary);
  padding: var(--spacing-xxl) 0 var(--spacing-lg);
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
}

.footer-brand {
  padding-right: var(--spacing-lg);
  display: flex;
  align-items: center;
  gap: 1rem;  /* logo 和文字之间的间距 */
}

.footer-logo-image {
  width: 80px;
  height: 80px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;  /* 防止 logo 被压缩 */
}

.footer-brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;  /* 品牌名称和描述之间的间距 */
}

.footer-logo-text {
  margin-bottom: 0;
}

.footer-desc {
  opacity: 0.8;
  margin-bottom: 0;  /* 移除底部边距 */
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-xl);
}

.footer-contact {
  min-width: 280px;
}

.footer-link-group h4 {
  font-size: 15px;
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
  font-weight: 600;
}

.footer-link-group ul {
  list-style: none;
}

.footer-link-group ul li {
  margin-bottom: var(--spacing-xs);
}

.footer-link-group ul li a {
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  font-size: 13px;
}

.footer-link-group ul li a:hover {
  color: var(--primary-color);
  transform: translateX(2px);
}

.footer-social h4 {
  font-size: 15px;
  margin-bottom: var(--spacing-md);
  color: var(--text-primary);
  font-weight: 600;
}

.social-icons {
  display: flex;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

/* 社交媒体图标容器 */
.social-icon-wrapper {
  position: relative;
  display: inline-block;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--bg-light);
  border-radius: var(--radius-small);
  color: var(--text-secondary);
  transition: all var(--transition-fast);
  cursor: pointer;
  border: 1px solid var(--border-color);
  text-decoration: none;
}

.social-icon:hover {
  background: var(--primary-color);
  border-color: var(--primary-color);
  color: var(--text-white);
  transform: translateY(-2px);
}

/* 二维码提示框 */
.qrcode-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-bottom: 8px;
  padding: 8px;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-medium);
  box-shadow: var(--shadow-card);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  z-index: 1000;
  pointer-events: none;
  min-width: 150px;
  min-height: 150px;
}

.qrcode-tooltip img {
  display: block;
  width: 150px;
  height: auto;
}

/* 悬停时显示二维码 */
.social-icon-wrapper:hover .qrcode-tooltip {
  opacity: 1;
  visibility: visible;
}

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

.footer-bottom-left {
  font-size: 13px;
  color: var(--text-secondary);
}

.footer-bottom-left p {
  margin: 0;
  line-height: 1.6;
}

.footer-bottom-left a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-bottom-left a:hover {
  color: var(--primary-color);
}

.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  font-size: 13px;
}

.footer-bottom-right a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-bottom-right a:hover {
  color: var(--primary-color);
}

.footer-bottom-right span {
  color: var(--border-color);
}

/* ==========================================
   页面头部
   ========================================== */
.page-header {
  background: linear-gradient(135deg, var(--bg-soft), var(--secondary-color));
  color: var(--text-primary);
  padding: var(--spacing-xxl) 0;
  text-align: center;
  border-bottom: 1px solid var(--border-color);
}

.page-header-drama {
  background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
}

.page-title {
  font-size: 42px;
  margin-bottom: var(--spacing-sm);
  font-weight: 700;
  color: var(--text-white);
}

.page-subtitle {
  font-size: 18px;
  opacity: 0.9;
  font-weight: 400;
  color: var(--text-white);
}

/* ==========================================
   关于我们
   ========================================== */
/* 时间线 */
.timeline-section {
  background: var(--bg-white);
}

.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding: var(--spacing-md) 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 100%;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  padding: var(--spacing-md) 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.timeline-item:nth-child(even) {
  justify-content: flex-end;
}

.timeline-item:nth-child(odd) {
  flex-direction: row-reverse;
}

.timeline-year {
  background: var(--primary-color);
  color: var(--text-white);
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: var(--radius-medium);
  font-size: 24px;
  font-weight: bold;
  z-index: 1;
  box-shadow: var(--shadow-medium);
}

.timeline-content {
  background: var(--bg-light);
  padding: var(--spacing-md);
  border-radius: var(--radius-medium);
  margin: 0 var(--spacing-lg);
  max-width: 300px;
  box-shadow: var(--shadow-light);
}

.timeline-content h3 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-xs);
}

.timeline-content p {
  color: var(--text-secondary);
  font-size: 14px;
}

/* 团队展示 */
/* 合作伙伴 */
.partners-section {
  background: var(--bg-white);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--spacing-md);
}

.partner-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-md);
  background: var(--bg-light);
  border-radius: var(--radius-medium);
  transition: all var(--transition-normal);
}

.partner-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-light);
}

.partner-logo {
  font-size: 48px;
  margin-bottom: var(--spacing-xs);
}

.partner-item span {
  color: var(--text-secondary);
  font-size: 14px;
}

/* ==========================================
   游戏页面
   ========================================== */
.filter-section {
  background: var(--bg-white);
  padding-bottom: 0;
}

.filter-container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
  align-items: center;
  justify-content: center;
}

.filter-group {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.filter-group label {
  font-weight: 500;
  color: var(--text-primary);
}

.filter-btn {
  padding: var(--spacing-xs) var(--spacing-md);
  background: var(--bg-light);
  border: 2px solid transparent;
  border-radius: var(--radius-medium);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-family: inherit;
}

.filter-btn:hover {
  background: var(--primary-color);
  color: var(--text-white);
}

.filter-btn.active {
  background: var(--primary-color);
  color: var(--text-white);
  border-color: var(--primary-color);
}

/* ==========================================
   微短剧页面
   ========================================== */
/* ==========================================
   联系我们
   ========================================== */
/* ==========================================
   返回顶部按钮
   ========================================== */
.back-to-top {
  position: fixed;
  bottom: var(--spacing-lg);
  right: var(--spacing-lg);
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: var(--text-white);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-medium);
  transition: all var(--transition-normal);
  z-index: 999;
}

.back-to-top.visible {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* ==========================================
   二维码弹窗
   ========================================== */

/* ==========================================
   动画效果
   ========================================== */
@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(5deg);
  }
}

@keyframes bounceIn {
  0% {
    opacity: 0;
    transform: scale(0.3);
  }
  50% {
    opacity: 1;
    transform: scale(1.05);
  }
  70% {
    transform: scale(0.9);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInOut {
  0% {
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes slideInLeft {
  from {
    transform: translateX(-50px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideIn {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes popIn {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================
   响应式设计
   ========================================== */

/* 大型桌面 (1025px+) - 使用默认样式 */

/* 小型桌面 (769px - 1024px) */
@media (max-width: 1024px) {
  /* 容器 */
  .container {
    max-width: 960px;
    padding: 0 var(--spacing-md);
  }
  
  /* 导航栏 */
  .navbar {
    padding: var(--spacing-md) 0;
  }
  
  .nav-menu a {
    padding: var(--spacing-sm) var(--spacing-md);
    font-size: 15px;
  }
  
  /* Hero区域 */
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-content {
    padding: var(--spacing-lg) 0;
  }
  
  .hero-title {
    font-size: 42px;
  }
  
  .hero-subtitle {
    font-size: 18px;
  }
  
  .hero-buttons {
    justify-content: center;
    gap: var(--spacing-md);
  }
  
  .hero-illustration {
    height: 320px;
  }
  
  .element {
    width: 80px;
    height: 80px;
  }
  
  /* 业务板块 */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }
  
  /* 数据统计 */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }
  
  .stat-number {
    font-size: 48px;
  }
  
  .stat-label {
    font-size: 16px;
  }
  
  /* 章节标题 */
  .section-title {
    font-size: 30px;
  }
  
  .section-subtitle {
    font-size: 16px;
  }
  
  /* CTA区域 */
  .cta-title {
    font-size: 30px;
  }
  
  .cta-subtitle {
    font-size: 16px;
  }
  
  /* 页脚 */
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .footer-links {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 平板 (481px - 768px) */
@media (max-width: 768px) {
  /* 容器 */
  .container {
    padding: 0 var(--spacing-md);
  }
  
  /* 导航栏 */
  .nav-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }
  
  .nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--primary-color);
    transition: all 0.3s;
    border-radius: 2px;
  }
  
  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-white);
    flex-direction: column;
    padding: var(--spacing-md);
    box-shadow: var(--shadow-card);
    border-radius: 0 0 var(--radius-medium) var(--radius-medium);
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .nav-menu a {
    padding: var(--spacing-sm);
    text-align: center;
    font-size: 16px;
    border-radius: var(--radius-small);
  }
  
  .nav-menu a:hover {
    background: var(--bg-light);
  }
  
  /* Hero区域 */
  .hero {
    padding: var(--spacing-xl) 0;
  }
  
  .hero-title {
    font-size: 36px;
    line-height: 1.2;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .hero-buttons {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
  
  .hero-buttons .btn {
    width: 100%;
  }
  
  .hero-illustration {
    height: 280px;
  }
  
  .element {
    width: 60px;
    height: 60px;
  }
  
  /* 章节 */
  section {
    padding: var(--spacing-xl) 0;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .section-subtitle {
    font-size: 15px;
  }
  
  /* 业务板块 */
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .service-card {
    padding: var(--spacing-lg);
  }
  
  /* 数据统计 */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }
  
  .stat-number {
    font-size: 42px;
  }
  
  .stat-label {
    font-size: 15px;
  }
  
  /* CTA区域 */
  .cta-section {
    padding: var(--spacing-xl) 0;
  }
  
  .cta-title {
    font-size: 28px;
  }
  
  .cta-subtitle {
    font-size: 16px;
  }
  
  /* 页脚 */
  .footer {
    padding: var(--spacing-xl) 0;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .footer-links {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-sm);
  }
  
  /* 页面头部 */
  .page-title {
    font-size: 36px;
  }
  
  /* 公告跑马灯 */
  .marquee-content {
    font-size: 14px;
  }
}

/* 手机 (0 - 480px) */
@media (max-width: 480px) {
  /* 基础样式 */
  body {
    font-size: 14px;
  }
  
  /* 容器 */
  .container {
    padding: 0 var(--spacing-sm);
  }
  
  /* 导航栏 */
  .navbar {
    padding: var(--spacing-sm) 0;
  }
  
  .nav-brand img {
    height: 36px;
  }
  
  .logo-text {
    font-size: 20px;
  }
  
  .logo-tagline {
    font-size: 10px;
  }
  
  /* Hero区域 */
  .hero {
    padding: var(--spacing-lg) 0;
  }
  
  .hero-title {
    font-size: 28px;
    line-height: 1.3;
  }
  
  .hero-subtitle {
    font-size: 14px;
  }
  
  .hero-buttons {
    gap: var(--spacing-sm);
    width: 100%;
  }
  
  .btn {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 14px;
  }
  
  .btn-large {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 15px;
  }
  
  .hero-illustration {
    height: 200px;
  }
  
  .element {
    width: 40px;
    height: 40px;
  }
  
  /* 章节 */
  section {
    padding: var(--spacing-lg) 0;
  }
  
  .section-title {
    font-size: 24px;
    margin-bottom: var(--spacing-sm);
  }
  
  .section-subtitle {
    font-size: 14px;
    margin-bottom: var(--spacing-lg);
  }
  
  /* 业务板块 */
  .services-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  .service-card {
    padding: var(--spacing-md);
  }
  
  .service-icon {
    font-size: 36px;
    margin-bottom: var(--spacing-sm);
  }
  
  .service-card h3 {
    font-size: 18px;
  }
  
  .service-card p {
    font-size: 13px;
  }
  
  /* 数据统计 */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
  }
  
  .stat-item {
    padding: var(--spacing-md);
  }
  
  .stat-number {
    font-size: 32px;
    margin-bottom: var(--spacing-xs);
  }
  
  .stat-label {
    font-size: 13px;
  }
  
  /* CTA区域 */
  .cta-section {
    padding: var(--spacing-lg) 0;
  }
  
  .cta-title {
    font-size: 24px;
    margin-bottom: var(--spacing-xs);
  }
  
  .cta-subtitle {
    font-size: 14px;
    margin-bottom: var(--spacing-md);
  }
  
  .cta-section .btn {
    width: 100%;
  }
  
  /* 页脚 */
  .footer {
    padding: var(--spacing-lg) 0;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
  }
  
  .footer-logo-text {
    font-size: 20px;
  }
  
  .footer-desc {
    font-size: 14px;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
  }
  
  .footer-link-group h4 {
    font-size: 14px;
  }
  
  .footer-link-group ul li a {
    font-size: 12px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: var(--spacing-xs);
  }
  
  .footer-bottom-left,
  .footer-bottom-right {
    font-size: 12px;
  }
  
  /* 社交媒体图标 */
  .social-icons {
    gap: var(--spacing-sm);
  }
  
  .social-icon {
    width: 32px;
    height: 32px;
  }
  
  /* 页面头部 */
  .page-header {
    padding: var(--spacing-lg) 0;
  }
  
  .page-title {
    font-size: 28px;
  }
  
  /* 公告跑马灯 */
  .announcement-marquee {
    padding: var(--spacing-sm) 0;
  }
  
  .marquee-content {
    font-size: 13px;
  }
  
  /* Banner轮播 */
  .banner-section {
    height: 300px;
  }
  
  /* 优化触摸交互 */
  .service-card,
  .btn,
  .social-icon {
    min-height: 44px;
    min-width: 44px;
  }
  
  /* 过渡效果优化 */
  * {
    -webkit-tap-highlight-color: transparent;
  }
}

/* ==========================================
   社交媒体图标悬停浮框样式
   ========================================== */

/* 社交媒体图标定位 */
.social-icon {
  position: relative;
}

/* 浮框容器 */
.qr-tooltip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) scale(0.8);
  opacity: 0;
  visibility: hidden;
  background: var(--bg-white);
  border-radius: var(--radius-medium);
  padding: var(--spacing-md);
  box-shadow: var(--shadow-card-hover);
  min-width: 160px;
  text-align: center;
  transition: all var(--transition-fast);
  z-index: 1000;
  pointer-events: none;
}

/* 浮框显示状态 */
.qr-tooltip.visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) scale(1);
  pointer-events: auto;
}

/* 浮框标题 */
.qr-tooltip-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--spacing-sm);
  display: block;
}

/* 浮框二维码图片 */
.qr-tooltip-image {
  width: 120px;
  height: 120px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: var(--radius-small);
}

/* 浮框箭头 */
.qr-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: var(--bg-white);
}

/* 浮框载入动画 */
@keyframes tooltipFadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(10px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

.qr-tooltip {
  animation: tooltipFadeIn var(--transition-fast) ease-out;
}

/* ==========================================
   无障碍增强 (WCAG 2.1 AA 标准)
   ========================================== */

/* 跳过导航链接（键盘用户友好） */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: var(--text-white);
  padding: 8px 16px;
  z-index: 10000;
  transition: top var(--transition-fast);
  text-decoration: none;
  font-weight: 600;
  border-radius: 0 0 var(--radius-small) 0;
}

.skip-to-content:focus {
  top: 0;
}

/* 焦点状态（键盘导航） */
*:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
  border-radius: 2px;
}

/* 为交互元素添加焦点样式 */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--primary-color);
  outline-offset: 2px;
}

/* 移除默认焦点，使用自定义焦点样式（仅限鼠标用户） */
*:focus:not(:focus-visible) {
  outline: none;
}

/* 高对比度模式支持 */
@media (prefers-contrast: high) {
  :root {
    --text-primary: #000000;
    --text-secondary: #333333;
    --border-color: #000000;
    --shadow-card: none;
    --shadow-card-hover: none;
  }

  * {
    text-shadow: none !important;
    box-shadow: none !important;
  }
}

/* 减少动画模式（偏好设置） */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* 屏幕阅读器专用内容 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ==========================================
   浏览器兼容性增强
   ========================================== */

/* 平滑滚动 */
html {
  scroll-behavior: smooth;
}

/* 为不支持 smooth scroll 的浏览器提供回退 */
@supports not (scroll-behavior: smooth) {
  html {
    scroll-behavior: auto;
  }
}

/* 渐变背景前缀支持 */
.background-gradient {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
}

/* Flexbox 前缀支持 */
.flex-center {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

/* Grid 前缀支持 */
.grid-container {
  display: -ms-grid;
  display: grid;
}

/* 自定义属性（CSS变量）回退 */
@supports not (--custom: property) {
  /* 为不支持 CSS 变量的浏览器提供回退 */
  .btn {
    background-color: #FF9966;
    color: #FFFFFF;
  }
}

/* 图片优化 */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 表单元素优化 */
input,
textarea,
select,
button {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
  /* 增大点击区域 */
  .btn,
  .nav-menu a,
  .social-icon {
    min-height: 44px;
    min-width: 44px;
  }

  /* 移除悬停效果 */
  .btn:hover,
  .nav-menu a:hover {
    transform: none;
  }
}

/* ==========================================
   性能优化
   ========================================== */

/* GPU 加速（启用硬件加速） */
.gpu-accelerated {
  transform: translateZ(0);
  will-change: transform;
}

/* 防止布局抖动 */
.layout-stable {
  contain: layout;
}

/* 图片懒加载优化 */
img[loading="lazy"] {
  background: linear-gradient(
    90deg,
    var(--bg-light) 25%,
    var(--bg-white) 50%,
    var(--bg-light) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* ==========================================
   打印样式
   ========================================== */

@media print {
  /* 隐藏不必要的元素 */
  .navbar,
  .announcement-marquee,
  .nav-toggle,
  .back-to-top,
  .social-media,
  .banner-section,
  .cta-section {
    display: none !important;
  }

  /* 重置页面布局 */
  body {
    padding-top: 0 !important;
    background: white !important;
    color: black !important;
  }

  /* 打印链接 */
  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
  }

  /* 优化打印排版 */
  .container {
    max-width: 100% !important;
    padding: 0 !important;
  }

  section {
    page-break-inside: avoid;
  }
}

/* ==========================================
   颜色对比度验证（WCAG 2.1 AA）
   ========================================== */

/* 主色文字对比度（4.5:1）确保可读性 */
.text-primary {
  color: var(--text-primary);
}

/* 次要文字对比度（4.5:1）确保可读性 */
.text-secondary {
  color: var(--text-secondary);
}

/* 强调文字对比度（3:1）确保可读性 */
.text-accent {
  color: var(--text-accent);
}

/* 链接颜色对比度验证 */
a {
  color: var(--primary-color);
  text-decoration: underline;
}

a:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

/* 按钮颜色对比度验证 */
.btn {
  background: var(--primary-color);
  color: var(--text-white);
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--primary-dark);
}

/* 禁用状态 */
.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.6;
  cursor: not-allowed;
  background: var(--text-muted);
}

}