/* 全局样式规范 */
:root {
  /* 颜色规范 */
  --primary-blue: #007BFF;
  --tech-blue: #00BFFF;
  --accent-orange: #FF6B35;
  --success-green: #2ECC71;
  --dark-blue: #0066CC;
  --light-gray: #F8FAFC;
  --dark-gray: #666666;
  --darker-blue: #001F3F;
  --border-color: #EEEEEE;
  --white: #FFFFFF;
}

/* 基础重置和全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 确保html和body没有默认的margin和padding，并且能正常滚动 */
html {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden; /* 禁止html滚动，避免双滚动条 */
  height: 100%;
}

body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  height: 100%;
  overflow-y: auto; /* 允许body垂直滚动，只显示一个滚动条 */
  overflow-x: hidden; /* 禁止水平滚动 */
  font-family: "Source Han Sans", "思源黑体", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #333;
  line-height: 1.6;
  position: relative;
  padding-bottom: 0;
}

/* 页面包装器，用于控制内容的高度和滚动 */
.page-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100%; /* 确保页面包装器占满整个body */
  background-image: url('../img/背景.jpg');
  background-size: cover;
  background-position: top center;
  background-repeat: no-repeat;
  background-attachment: scroll;
  overflow: visible; /* 允许内容正常溢出 */
  /*padding-bottom: 30px;  调整底部padding为50px，控制底部到核心内容区域的间距 */
  height: auto; /* 让页面包装器高度随内容增长 */
  background-attachment: local; /* 确保背景图片随内容滚动 */
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 顶部栏样式 */
.top-bar {
  height: 70px;
  background-color: var(--primary-blue);
  display: flex;
  align-items: center;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo img {
  height: 50px;
}

.top-nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.top-nav a:hover {
  text-decoration: underline;
  opacity: 0.9;
}

/* 头部区域样式 */
.header-section {
  padding: 20px 0;
  text-align: center;
  margin-top: 0;
}

.main-title {
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-title .title-image {
  max-width: 100%;
  height: auto;
  animation: fadeInDown 1s ease;
  margin: 0;
  padding: 0;
  /* 确保标题图片正确居中 */
  display: block;
}

/* 平台导航区样式 */
.platform-navigation {
  padding: 20px 0;
  margin: 0;
}

.platform-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  /* 使用百分比宽度，确保在不同屏幕尺寸下自适应 */
  width: 100%;
  max-width: 1152px; /* 最大宽度限制，确保在大屏幕上保持一行四个按钮 */
  margin: 0 auto;
}

.platform-button {
  position: relative;
  /* 使用百分比宽度，确保在不同屏幕尺寸下自适应 */
  width: calc(25% - 20px); /* 25%宽度减去左右margin */
  max-width: 268px;
  height: auto;
  /* 保持按钮比例 */
  aspect-ratio: 268 / 94;
  /* 调整margin，确保按钮间距均匀 */
  margin: 0 10px 20px 10px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.platform-button .button-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.platform-button .platform-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 80%;
  max-height: 80%;
}

.platform-button:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.3));
}


/* 核心内容区样式 */
.main-content {
  padding: 20px 0 40px 0; /* 调整底部padding为50px，控制底部到核心内容区域的间距 */
  position: relative;
  overflow: visible; /* 允许绝对定位元素正常显示 */
  height: 600px; /* 设置足够的高度，确保能容纳所有内容 */
}

/* 内容包装器样式 */
.content-wrapper {
  position: relative;
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 核心内容三区域布局 */
.content-sections {
    position: absolute;
    top: 39px; /* 与8边形内框顶部对齐 */
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1039px; /* 与8边形内框宽度一致 */
    height: 461px; /* 与8边形内框高度一致 */
    display: flex;
    z-index: 3;
}

/* 左侧第一块区域 */
.section-left {
    /* width: 33.33%; */
    height: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    z-index: 3;
    padding-left: 10px;
    padding-top: 10px;
}

/* 中间第二块区域 */
.section-middle {
    width: 33.33%;
    height: 100%;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

/* 上半部分：二维码展示区域 */
.qr-code-section {
    width: 100%;
    height: 50%;
    display: flex;
    justify-content: center;
    align-items: flex-end;

}

.qr-code-container {
    width: 200px;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.qr-code-container:hover {
    transform: scale(1.2);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}
/* 上下跳动动画 */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* 应用跳动动画的类 */
.bounce-animation {
    animation: bounce 1.5s ease-in-out infinite;
}

/* 鼠标悬停文字样式 */
.hover-text {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

/* 二维码容器悬停时显示文字 */
.qr-code-container:hover .hover-text {
    opacity: 1;
}

/* 二维码图片样式 */
.qr-code-image {
    width: 180px;
    height: 180px;
    object-fit: contain;
}

/* 二维码图片边框样式，仅微信平台使用 */
.qr-code-image-bordered {
    border: 2px dashed #007BFF;
    border-radius: 10px;
}

/* 下半部分：文字介绍区域 */
.text-intro-section {
    width: 100%;
    height: 50%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 20px;
}

.intro-content {
    width: 80%;
    text-align: center;
    color: var(--darker-blue);
}

.intro-content h3 {
    font-size: 24px;
    margin-bottom: 15px;
    font-weight: bold;
    color: var(--primary-blue);
}

.intro-content p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 10px;
    color: var(--dark-gray);
}

/* 右侧第三块区域 */
.section-right {
    width: 33.33%;
    height: 100%;
    z-index: 3;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    /* 添加overflow: hidden，确保内容不会溢出该区域 */
    overflow: hidden;
}

/* 平台图片容器样式 */
.platform-image-container {
    /* 将宽度从100%改为auto，让容器根据图片内容调整宽度 */
    width: auto;
    /* 设置最大宽度，确保容器不会超出可用空间 */
    max-width: 100%;
    /* 设置固定高度，确保容器不会超出可用空间 */
    height: calc(100% - 40px); /* 40px = 20px padding * 2 */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
}

/* 平台图片样式 */
.platform-image {
    /* 确保图片宽度不超过容器 */
    max-width: 100%;
    /* 确保图片高度不超过容器 */
    max-height: 100%;
    /* 使用object-fit: contain确保图片完整显示并保持比例 */
    object-fit: contain;
    transition: all 0.3s ease;
    /* 使用Tailwind CSS风格的虚线边框，直接添加在图片上 */
    border: 2px dashed #007BFF;
    border-radius: 10px;
}

/* 鼠标悬停效果 */
.platform-image-container:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}



/* 8边形背景外框样式 */
.hexagon-background {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1121px;
  height: 539px;
  z-index: 1; /* 背景z-index值较低，确保内容显示在上面 */
}

.hexagon-frame {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1121px;
  height: 539px;
  object-fit: contain;
}

.hexagon-inner {
  position: absolute;
  top: 39px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1039px;
  height: 461px;
  object-fit: contain;
}

/* 小鹿IP形象区样式 */
.deer-ip-container {
    width: 280px;
    height: 480px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.deer-ip {
    position: absolute;
    width: 250px;
    height: 450px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 3;
    display: none;
}

.deer-ip.active {
    opacity: 1;
    z-index: 4;
    display: block;
}

/* 各平台小鹿图片样式 */
.deer-ip img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 上下浮动动画 */
@keyframes floatUpDown {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}


/* 底部区域样式 */
.footer {
  background-color: var(--light-gray);
  padding: 15px 0;
  border-top: 1px solid var(--border-color);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-align: center;
}

.copyright,
.contact-info {
  color: var(--dark-gray);
  font-size: 14px;
}

.copyright p {
  margin: 0;
  padding: 0;
}

.legal-links {
  display: flex;
  gap: 10px;
  align-items: center;
}

.legal-links a {
  color: var(--dark-gray);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.legal-links a:hover {
  color: var(--primary-blue);
  text-decoration: underline;
}

.phone-icon {
  margin-left: 5px;
}

/* 动画效果 */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 小鹿IP上下浮动动画 */
@keyframes floatUpDown {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* 媒体查询 - 平板设备 (768px - 1024px) */
@media (max-width: 1024px) {
  /* 标题图片适配 */
  .title-image {
    max-width: 100%;
    height: auto;
  }
  
  /* 平台按钮适配 */
  .platform-button {
    width: calc(50% - 15px); /* 平板端显示2个按钮/行 */
    max-width: 200px; /* 限制最大宽度，优化显示效果 */
    margin: 0 7.5px 20px 7.5px; /* 调整间距，提升触摸体验 */
  }
  
  /* 核心内容区适配 */
  .content-sections {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    height: auto;
    width: 100%;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
  }
  
  /* 三区域垂直堆叠 */
  .section-left,
  .section-middle,
  .section-right {
    width: 100%;
    height: auto;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  /* 8边形背景适配 */
  .hexagon-background {
    position: relative;
    height: auto;
    max-height: 400px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  .hexagon-frame,
  .hexagon-inner {
    max-height: 400px;
    max-width: 100%;
    height: auto;
  }
  
  /* 小鹿IP形象适配 */
  .deer-ip-container {
    width: 180px;
    height: 300px;
  }
  
  .deer-ip {
    width: 160px;
    height: 270px;
  }
}

/* 媒体查询 - 手机设备 (< 768px) */
@media (max-width: 768px) {
  /* 容器适配 */
  .container {
    padding: 0 10px;
  }
  
  /* 顶部栏适配 */
  .top-bar {
    height: 60px;
  }
  
  .logo img {
    height: 40px;
  }
  
  /* 平台按钮适配 */
  .platform-button {
    width: calc(50% - 15px); /* 手机端显示2个按钮/行 */
    max-width: 150px; /* 限制最大宽度，减小按钮尺寸 */
    margin: 0 7.5px 15px 7.5px; /* 调整间距，提升触摸体验 */
    aspect-ratio: 268 / 94; /* 保持按钮比例 */
  }
  
  /* 核心内容区适配 */
  .main-content {
    padding: 0 0 30px 0; /* 减少顶部padding，缩小与平台按钮区域的间距 */
    height: auto; /* 移除固定高度，让内容自适应 */
  }
  
  /* 核心内容区适配 */
  .content-sections {
    position: relative;
    top: 0;
    left: 0;
    transform: none;
    height: auto;
    width: 100%;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
  }
  
  /* 三区域布局 */
  .section-left {
    display: none; /* 完全隐藏小鹿区，不占据空间 */
  }
  
  .section-middle,
  .section-right {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  /* 二维码区内部横向排列 */
  .section-middle {
    flex-direction: row;
    justify-content: space-around;
    align-items: flex-start;
    padding: 0 10px;
  }
  
  /* 二维码图片和文字横向排列 */
  .qr-code-section,
  .text-intro-section {
    width: 45%;
    height: auto;
    margin: 0;
  }
  
  /* 二维码容器调整 */
  .qr-code-container {
    width: 120px;
    height: 120px;
  }
  
  .qr-code-image {
    width: 100px;
    height: 100px;
  }
  
  /* 文字介绍区域调整 */
  .text-intro-section {
    padding-top: 0;
  }
  
  .intro-content {
    width: 100%;
    text-align: left;
  }
  
  .intro-content h3 {
    font-size: 18px;
    margin-bottom: 8px;
  }
  
  .intro-content p {
    font-size: 12px;
    line-height: 1.4;
    margin-bottom: 6px;
  }
  
  /* 8边形背景适配 - 移动端隐藏八边形外框 */
  .hexagon-background {
    max-height: 300px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  
  /* 隐藏八边形外框 */
  .hexagon-frame {
    display: none;
  }
  
  /* 隐藏八边形内框 */
  .hexagon-inner {
    display: none;
  }
  
  /* 移动端隐藏小鹿IP形象 */
  .deer-ip-container {
    display: none;
  }
  
  /* 二维码容器适配 */
  .qr-code-container {
    width: 150px;
    height: 150px;
  }
  
  .qr-code-image {
    width: 130px;
    height: 130px;
  }
  
  /* 文字介绍区域适配 */
  .intro-content {
    width: 90%;
  }
  
  .intro-content h3 {
    font-size: 20px;
    margin-bottom: 10px;
  }
  
  .intro-content p {
    font-size: 14px;
  }
  
  /* 平台图片容器适配 */
  .platform-image-container {
    padding: 10px;
  }
}

