/* ========================
   龙链科技站点公共样式
   ======================== */

/* 基础重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #333;
  background: #fff;
  line-height: 1.6;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* 布局容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 50px 0;
}

.section-title {
  text-align: center;
  font-size: 30px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #111;
}

.section-sub {
  text-align: center;
  color: #666;
  margin-bottom: 45px;
}

/* 按钮 */
.btn-yellow {
  display: inline-block;
  background: #ffd700;
  color: #111;
  padding: 10px 26px;
  border-radius: 6px;
  font-weight: 700;
  transition: opacity .2s, transform .2s;
}

.btn-yellow:hover {
  opacity: .9;
  transform: translateY(-2px);
}

/* 微弱跳动 */
.spring-bounce {
  animation: spring-bounce 5s ease-in-out infinite;
  will-change: transform;
}

.spring-bounce:hover {
  animation-play-state: paused;
}

@keyframes spring-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  25% {
    transform: translateY(-3px);
  }
  50% {
    transform: translateY(0);
  }
  75% {
    transform: translateY(-2px);
  }
}

/* 鼠标移上去，让图片跳动 */
.img-spring img {
  display: block;
}

.img-spring:hover img {
  animation: spring-kick 1s ease-out;
}

@keyframes spring-kick {
  0% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(-4px);
  }
  60% {
    transform: translateY(0);
  }
  80% {
    transform: translateY(-2px);
  }
  100% {
    transform: translateY(0);
  }
}

/* 首页 Hero 特有 */
.hero-home {
  position: relative;
  overflow: hidden;
}

.hero-home::after {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,215,0,0.45), transparent);
  transform: skewX(-25deg);
  animation: shimmer 10s infinite;
  pointer-events: none;
}

@keyframes shimmer {
  0% {
    left: -50%;
  }
  10% {
    left: 150%;
  }
  100% {
    left: 150%;
  }
}

/* Hero hover 光扫 */
.hero-home::before {
  content: '';
  position: absolute;
  top: 0;
  left: -70%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,215,0,0.45), transparent);
  transform: skewX(-25deg);
  pointer-events: none;
  z-index: 3;
  opacity: 0;
}

.hero-home:hover::before {
  animation: flash-shimmer 0.8s ease-in-out;
  opacity: 1;
}

/* 鼠标移上去就一闪而过 */
.donghua {
  overflow: hidden;
}

.donghua::after {
  content: '';
  position: absolute;
  top: 0;
  left: -70%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.5), transparent);
  transform: skewX(-25deg);
  pointer-events: none;
}

.donghua:hover::after {
  animation: flash-shimmer 0.8s ease-in-out;
}

@keyframes flash-shimmer {
  0% {
    left: -50%;
  }
  100% {
    left: 150%;
  }
}

.hero-home .container {
  text-align: center;
  position: absolute;
  bottom: 4%;
  left: 50%;
  transform: translate(-50%, -10%);
}

.hero-home .container p {
  color: #fff;
}

.hero-home .hero-bg {
  display: block;
  width: 100%;
  height: auto;
}

.hero-home .hero-banner-mobile {
  display: none;
}

/* 通用 Hero（子页面） */
.hero {
  color: #fff;
  text-align: center;
  padding: 110px 20px 80px;
}

.hero h1 {
  font-size: 42px;
  margin-bottom: 14px;
}

.hero p {
  font-size: 18px;
  opacity: .9;
}

/* 数字统计 */
.numbers {
  background: #f8f9fa;
}

.numbers-grid {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 20px;
}

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

.number-item strong {
  display: block;
  font-size: 36px;
  color: #ffd700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .15);
}

.number-item span {
  color: #666;
  font-size: 14px;
}

/* 关于我们 / 图文左右布局 */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.about-text p {
  margin-bottom: 16px;
  color: #555;
}

/* 案例卡片（小卡片） */
.case-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.case-card {
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
  transition: box-shadow .3s, transform .3s;
}

.case-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, .12);
  transform: translateY(-4px);
}

.case-card h4 {
  font-size: 16px;
  margin-bottom: 8px;
}

.case-card p {
  font-size: 13px;
  color: #777;
}

/* 案例展示行布局 */
.case-showcase-row {
  display: flex;
  gap: 40px;
  /* align-items: center; */
}

.case-showcase-img {
  flex: 0 0 45%;
}

.case-showcase-img img {
  border-radius: 10px;
}

.case-showcase-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.case-showcase-card {
  background: #F7F7F7;
  padding: 30px;
  display: flex;
  flex-direction: column;
  transition: box-shadow .3s, background .3s;
}

.case-showcase-card:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,.12);
  background: #fffef5;
  animation: spring-kick 1s ease-out;
}

/* 小卡片 hover 时箭头旋转 */
.case-showcase-card:hover .btn-yellow img {
  transform: rotate(360deg);
  transition: transform .5s ease;
}

.case-showcase-card .btn-yellow img {
  transition: transform .5s ease;
}

/* 左侧大卡片：donghua 光扫 */
.case-showcase-img {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  transition: box-shadow .3s, transform .3s;
}

.case-showcase-img:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,.12);
  transform: translateY(-3px);
}

.case-showcase-img::after {
  content: '';
  position: absolute;
  top: 0;
  left: -70%;
  width: 50%;
  height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.5), transparent);
  transform: skewX(-25deg);
  pointer-events: none;
}

.case-showcase-img:hover::after {
  animation: flash-shimmer .8s ease-in-out;
}

/* 大卡片 hover 时箭头旋转 */
.case-showcase-img:hover .btn-yellow img {
  transform: rotate(360deg);
  transition: transform .5s ease;
}

.case-showcase-img .btn-yellow img {
  transition: transform .5s ease;
}

.case-showcase-card h4 {
  color: #000;
  font-size: 18px;
  margin: 0 0 16px 0;
}

.case-showcase-date {
  color: #848484;
  font-size: 14px;
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

@media (max-width: 768px) {
  .case-showcase-row {
    flex-direction: column;
    align-items: stretch;
  }

  .case-showcase-grid {
    grid-template-columns: 1fr;
  }
}

/* 解决方案卡片 */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.solution-card {
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  color: #fff;
  display: flex;
  align-items: flex-end;
}

/* 为什么选择我们 */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.why-card {
  text-align: center;
  padding: 24px;
}

.why-icon {
  width: 60px;
  height: 60px;
  background: #ffd700;
  border-radius: 50%;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  transition: transform .4s ease;
}

.why-card:hover .why-icon {
  transform: rotate(360deg);
}

/* 品牌保障 */
.guarantee-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.guarantee-card {
  background: #fff;
  text-align: left;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.guarantee-card:hover {
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.1);
}

.guarantee-card h4 {
  margin: 20px;
  color: #FFBB04;
}

.guarantee-card p {
  margin: 20px;
}

/* 新闻 */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.news-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 20px;
}

.news-card .date {
  color: #999;
  font-size: 12px;
  margin-bottom: 8px;
}

/* 特性卡片（四列/三列通用） */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-3grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  text-align: center;
  padding: 24px;
}

.feature-card:hover {
  animation: spring-kick 1s ease-out;
}

.feature-card .feature-icon img {
  transition: transform .4s ease;
}

.feature-card:hover .feature-icon img {
  transform: rotate(360deg);
}

.plan-card:hover {
  animation: spring-kick 1s ease-out;
}

.plan-card .plan-icon img {
  transition: transform .4s ease;
}

.plan-card:hover .plan-icon img {
  transform: rotate(360deg);
}

.service-card:hover {
  animation: spring-kick 1s ease-out;
}

.service-card .service-icon img {
  transition: transform .4s ease;
}

.service-card:hover .service-icon img {
  transform: rotate(360deg);
}

.feature-icon {
  width: 60px;
  height: 60px;
  /* background: #ffd700; */
  border-radius: 50%;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

/* 服务卡片（三列） */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.service-card {
  text-align: center;
  padding: 24px;
}

.service-icon {
  width: 80px;
  height: 80px;
  background: #ffd700;
  border-radius: 16px;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

/* 方案卡片（四列） */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.plan-card {
  text-align: center;
  padding: 28px;
  /* background: #f8f9fa; */
  border-radius: 8px;
}

.plan-icon {
  width: 70px;
  height: 70px;
  /* background: #ffd700; */
  border-radius: 50%;
  margin: 0 auto 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

/* 流程 */
.process-grid {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.process-pc {
  display: block;
}

.process-pc img {
  width: 100%;
  height: auto;
}

.process-card {
  background: #fff;
  padding: 24px;
  border-radius: 8px;
  position: relative;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}

.process-num {
  position: absolute;
  top: -16px;
  left: 20px;
  width: 32px;
  height: 32px;
  background: #ffd700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* 优势（两列卡片） */
.advantage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.advantage-card {
  background: #fff;
  padding: 28px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}

/* 案例展示手机墙 */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.case-phone {
  aspect-ratio: 9/19;
  /* background: linear-gradient(135deg, #1a1a2e, #16213e); */
  border-radius: 16px;
  border: 1px solid #eee;
}

.case-phone:hover {
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.1);
}

/* 介绍卡片（两列） */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.intro-card {
  background: #f8f9fa;
  padding: 28px;
  border-radius: 8px;
}
.intro-card-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.intro-card ul {
  margin-top: 12px;
  padding-left: 18px;
  color: #555;
  font-size: 14px;
  list-style: disc;
}

/* 类型列表 */
.types-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.type-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  border-bottom: 1px solid #b5d0ff;
}

.type-icon {
  width: 50px;
  height: 50px;
  /* background: #ffd700; */
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

/* 适用场景 */
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.scenario-card {
  text-align: center;
  padding: 24px;
}

.scenario-img {
  height: 120px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 8px;
  margin-bottom: 14px;
}

/* 引擎标签与内容 */
.engine-tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.engine-tab-item {
  padding: 10px 24px;
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
  transition: all .3s;
}
.engine-tab-item.engine-tab {
  background: #ffd700;
  border-color: #ffd700;
}

.engine-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}

.engine-img {
  height: 300px;
  background: linear-gradient(135deg, #141e30, #243b55);
  border-radius: 8px;
}

/* 核心功能左右布局 */
.function-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.function-img {
  height: 340px;
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  border-radius: 12px;
}

.function-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.function-item {
  padding: 18px;
  background: #f8f9fa;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
  transition: box-shadow .3s, transform .3s, background .3s;
}
.function-item:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,.12);
  transform: translateY(-4px);
  background: #fff;
}

/* 公链系统特点 */
.system-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.system-center {
  width: 180px;
  height: 180px;
  background: #ffd700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  margin: 0 auto;
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.feature-list-item {
  background: #fff;
  padding: 18px;
  border-radius: 8px;
}

/* 运维卡片 */
.ops-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ops-card {
  display: flex;
  gap: 14px;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
  transition: box-shadow .3s, transform .3s;
}

.ops-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, .12);
  transform: translateY(-4px);
}

.ops-icon {
  width: 44px;
  height: 44px;
  /* background: #ffd700; */
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

/* 技术栈 */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.tech-card {
  text-align: center;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .05);
}

.tech-icon {
  width: 50px;
  height: 50px;
  background: #ffd700;
  border-radius: 50%;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

/* 表格 */
table {
  width: 100%;
  background: #fff;
  border-collapse: collapse;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .05);
}

th,
td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid #eee;
  font-size: 14px;
}

th {
  background: #ffd700;
  color: #111;
}

/* 架构图占位 */
.arch-img {
  /* height: 320px; */
  background: linear-gradient(135deg, #e0eafc, #cfdef3);
  border-radius: 12px;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
}

/* 流程小卡片（DApp） */
.flow-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  width: 100%;
}

.flow-card {
  background: #111;
  color: #fff;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  font-size: 13px;
  box-sizing: border-box;
  width: calc(16.666% - 11.666px);
  min-width: 0;
  overflow: hidden;
}
.flow-card.jonlen-card {
  text-align: left;
}
.flow-card.jonlen-card p {
  font-weight: 100;
}

/* 宣发案例画廊 */
.case-gallery {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.gallery-row {
  display: flex;
  gap: 12px;
}
.gallery-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.gallery-grid-3 {
  display: flex;
  gap: 12px;
  height: 100%;
}
.gallery-grid-3 .gallery-item {
  flex: 1;
}
.gallery-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 12px;
  height: 100%;
}
.gallery-item {
  overflow: hidden;
  border-radius: 8px;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* 公链对比 */
.chain-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.chain-card {
  border: 1px solid #eee;
  padding: 24px;
  border-radius: 8px;
}

/* NFT 画廊 */
.why-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}

.nft-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.nft-item {
  aspect-ratio: 1;
  /* background: linear-gradient(135deg, #ff9a9e, #fecfef); */
  border-radius: 8px;
}

.game-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}

.game-img {
  height: 300px;
  background: linear-gradient(135deg, #141e30, #243b55);
  border-radius: 12px;
}

/* 宣发 */
.map-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.map-card {
  background: #fff;
  padding: 24px;
  border-radius: 8px;
}

.service-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
}

.service-img {
  height: 300px;
  background: linear-gradient(135deg, #434343, #000);
  border-radius: 8px;
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.package-card {
  background: #fff;
  border: 1px solid #eee;
  padding: 20px;
  border-radius: 8px;
}

.package-card h4 {
  margin-bottom: 10px;
  color: #111;
}

.package-card ul {
  padding-left: 16px;
  font-size: 13px;
  color: #555;
  list-style: disc;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.gallery-item {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #667eea, #764ba2);
  border-radius: 8px;
}

/* 通用深色 CTA */
.future {
  background: #111;
  color: #fff;
  text-align: center;
  padding: 60px 20px;
}

.advantage-dark {
  background: #111;
  color: #fff;
}

.advantage-dark .section-title {
  color: #ffd700;
}

.advantage-dark-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.advantage-dark-card {
  background: #1a1a1a;
  padding: 24px;
  border-radius: 8px;
}

.advantage-dark-card h4 {
  color: #ffd700;
}

/* 背景色辅助 */
.bg-light {
  background: #f8f9fa;
}

/* ========================
   通用头部 / 底部样式
   ======================== */

/* 顶部灰色条 */
.top-bar {
  background: #f3f3f3;
  color: #2b2b2b;
  font-size: 14px;
  line-height: 36px;
}

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

.top-bar-left span {
  margin-right: 18px;
}

.top-bar-left span:last-child {
  font-weight: 700;
}

.top-bar-right a {
  color: #2b2b2b;
  margin-left: 12px;
  transition: color .2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.top-bar-right a img {
  display: inline-block;
  width: 14px;
  height: 14px;
}

.top-bar-right a:hover {
  color: #ffd700;
}

/* 导航栏 */
.site-header {
  background: #ffd700;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #111;
  font-weight: 700;
}

.logo img {
  animation: logo-glow 2s ease-in-out infinite;
}

@keyframes logo-glow {
  0%, 100% {
    filter: brightness(1) drop-shadow(0 0 3px rgba(180,130,0,.4));
    transform: scale(1);
  }
  50% {
    filter: brightness(1.15) drop-shadow(0 0 12px rgba(180,130,0,.7));
    transform: scale(1.06);
  }
}

.logo-badge {
  background: #111;
  color: #ffd700;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
}

.main-nav {
  display: flex;
  gap: 6px;
}

.main-nav a {
  color: #222;
  font-size: 16px;
  padding: 8px 12px;
  border-radius: 4px;
  transition: background .2s, color .2s;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  background: #111;
  color: #ffd700;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .main-nav {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: #ffd700;
    flex-direction: column;
    padding: 10px 20px;
    display: none;
    box-shadow: 0 6px 12px rgba(0, 0, 0, .1);
  }

  .main-nav.open {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }
}

/* 底部 CTA */
.footer-cta {
  background: linear-gradient(180deg, #ffd700 0%, #ffc400 100%);
  padding: 60px 20px 30px;
  text-align: center;
}

.footer-cta h2 {
  font-size: 32px;
  color: #111;
  margin-bottom: 10px;
}

.footer-cta p {
  color: #333;
  margin-bottom: 30px;
}

.partners-title {
  font-size: 30px;
  font-weight: 700;
  color: #111;
  margin-bottom: 8px;
}

.partners-sub {
  color: #444;
  font-size: 14px;
  margin-bottom: 22px;
}

.partners {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-bottom: 40px;
}

.partners img {
  width: 100%;
  height: auto;
}

.partner-item {
  background: #fff;
  color: #333;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .06);
}

.cta-button {
  display: inline-block;
  background: #111;
  color: #ffd700;
  padding: 14px 48px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 40px;
  transition: transform .2s, box-shadow .2s;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .25);
}

.contact-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
  float: left;
}

.contact-bar .content {
  background: #FFED8D;
  color: #222;
  /* display: flex;
  flex-wrap: nowrap;
  justify-content: center; */
  gap: 30px;
  padding: 18px 60px;
  border-radius: 30px;
  font-size: 14px;
  margin-top: -30px;
}

.contact-bar span {
  white-space: nowrap;
  margin: 10px;
}

/* 黑色页脚 */
.site-footer {
  background: #111;
  color: #aaa;
  padding: 60px 20px 20px;
}

.site-footer .container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 30px;
}

.footer-col h4 {
  color: #fff;
  font-size: 16px;
  margin-bottom: 18px;
}

.footer-col p,
.footer-col a {
  color: #aaa;
  font-size: 13px;
  line-height: 2;
  display: block;
}

.footer-col a:hover {
  color: #ffd700;
}

.qr-box {
  width: 110px;
  height: 110px;
  background: #fff;
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  text-align: center;
  border: 3px solid #ffd700;
  border-radius: 8px;
  box-shadow: 0 0 16px rgba(255, 215, 0, .35), 0 0 40px rgba(255, 215, 0, .12);
  animation: qr-glow 2s ease-in-out infinite;
}

@keyframes qr-glow {
  0%, 100% {
    box-shadow: 0 0 16px rgba(255, 215, 0, .35), 0 0 40px rgba(255, 215, 0, .12);
  }
  50% {
    box-shadow: 0 0 24px rgba(255, 215, 0, .55), 0 0 60px rgba(255, 215, 0, .22);
  }
}

.copyright {
  text-align: center;
  padding-top: 30px;
  margin-top: 30px;
  border-top: 1px solid #333;
  font-size: 12px;
  color: #777;
}

/* ========================
   响应式
   ======================== */
@media (max-width: 1024px) {

  .feature-3grid,
  .feature-grid,
  .plan-grid,
  .service-grid,
  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cases-grid,
  .tech-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .flow-grid {
    display: flex;
    flex-wrap: wrap;
  }
  .flow-grid .flow-card {
    width: calc(33.333% - 9.333px);
  }
}

@media (max-width: 768px) {
  .section {
    padding: 50px 0;
  }

  .section-title {
    font-size: 24px;
  }

  .about-grid,
  .case-grid,
  .solutions-grid,
  .why-grid,
  .guarantee-grid,
  .news-grid,
  .feature-grid,
  .intro-grid,
  .service-grid,
  .plan-grid,
  .process-grid,
  .advantage-grid,
  .cases-grid,
  .scenario-grid,
  .engine-content,
  .function-layout,
  .system-layout,
  .ops-grid,
  .tech-grid,
  .flow-grid,
  .chain-grid,
  .why-box,
  .game-grid,
  .map-grid,
  .service-layout,
  .package-grid,
  .gallery-grid,
  .advantage-dark-grid {
    grid-template-columns: 1fr;
  }
  .process-grid {
    display: grid;
  }
  .process-pc {
    display: none;
  }
  .nft-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .flow-grid {
    display: flex;
    flex-wrap: wrap;
  }
  .flow-grid .flow-card {
    width: 100%;
  }

  .ai-feature-row {
    flex-direction: column;
    gap: 20px !important;
  }

  .case-gallery {
    gap: 12px;
  }
  .gallery-row {
    flex-direction: column;
    gap: 12px;
  }
  .gallery-grid-3 {
    flex-direction: column;
    gap: 12px;
  }
  .gallery-grid-4 {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4, 1fr);
    gap: 12px;
  }

  .site-footer .container {
    grid-template-columns: 1fr 1fr;
  }

  .contact-bar {
    gap: 12px;
    float: none;
  }

  .contact-bar .content {
    border-radius: 0px;
    margin-top: 0px;
  }

  .contact-bar .content span {
    width: calc(50% - 6px);
    text-align: center;
  }

  .hero-home .container {
    display: none;
  }

  .top-bar-left {
    display: none;
  }

  .hero-home .hero-bg {
    display: none;
  }

  .hero-home .hero-banner-mobile {
    display: block;
  }

  .partners {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 480px) {
  .cases-grid {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer .container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========================
   动态效果增强
   ======================== */

/* ---- 粒子画布层 ---- */
#particles-js {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.hero-home {
  position: relative;
}

.hero-home > :not(#particles-js) {
  position: relative;
  z-index: 2;
}

/* ---- 导航栏滚动效果 ---- */
.site-header.scrolled {
  height: 70px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .15);
}

.site-header.scrolled .container {
  height: 70px;
}

.site-header.scrolled .logo img {
  height: 38px;
  transition: height .3s;
}

.site-header .logo img {
  transition: height .3s;
}

.site-header {
  transition: height .3s, box-shadow .3s;
}

.site-header .container {
  transition: height .3s;
}

/* ---- 卡片底部光晕 ---- */
.case-card,
.guarantee-card,
.advantage-card,
.ops-card,
.tech-card,
.feature-card,
.plan-card,
.service-card {
  position: relative;
  overflow: hidden;
}

.case-card::after,
.guarantee-card::after,
.advantage-card::after,
.ops-card::after,
.tech-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, #ffd700, transparent);
  transition: width .4s ease;
}

.case-card:hover::after,
.guarantee-card:hover::after,
.advantage-card:hover::after,
.ops-card:hover::after,
.tech-card:hover::after {
  width: 100%;
}

/* ---- 按钮涟漪效果 ---- */
.btn-yellow,
.cta-button {
  position: relative;
  overflow: hidden;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, .5);
  transform: scale(0);
  animation: ripple-effect .6s ease-out;
  pointer-events: none;
}

@keyframes ripple-effect {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

/* ---- 合作伙伴轮播 ---- */
.partners-carousel {
  overflow: hidden;
  position: relative;
  width: 100%;
}

.partners-track {
  display: flex;
  gap: 12px;
  animation: partners-scroll 30s linear infinite;
  width: max-content;
}

.partners-track:hover {
  animation-play-state: paused;
}

.partners-track img {
  width: 130px;
  height: auto;
  flex-shrink: 0;
}

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

/* ---- Hero 标题渐入 ---- */
.hero-title-anim {
  opacity: 0;
  transform: translateY(30px);
  animation: hero-fade-up .8s ease-out forwards;
}

.hero-sub-anim {
  opacity: 0;
  transform: translateY(20px);
  animation: hero-fade-up .8s .2s ease-out forwards;
}

@keyframes hero-fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- 金色脉冲 ---- */
.golden-pulse {
  animation: golden-pulse 2s ease-in-out infinite;
}

@keyframes golden-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 215, 0, .4);
  }
  50% {
    box-shadow: 0 0 0 15px rgba(255, 215, 0, 0);
  }
}

/* ---- 浮动动画 ---- */
.float-anim {
  animation: float 3s ease-in-out infinite;
}

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

/* ---- 背景光条扫描 ---- */
.bg-scan {
  position: relative;
  overflow: hidden;
}

.bg-scan::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 215, 0, .08), transparent);
  transform: skewX(-20deg);
  animation: scan-line 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes scan-line {
  0% {
    left: -60%;
  }
  100% {
    left: 120%;
  }
}

/* ---- 渐显（JS fallback） ---- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}

.reveal-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================
   右侧悬浮客服栏
   ======================== */
.side-float-bar {
  position: fixed;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  width: 120px;
  z-index: 9999;
}

/* ---- 顶部：头像 + 电话 ---- */
.float-box-top {
  background: #fff;
  border-radius: 63px 63px 4px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .2);
  cursor: pointer;
}

.float-kefu-avatar {
  width: 90px;
  height: 90px;
  margin-top: 16px;
  border-radius: 50%;
  box-shadow: 0 3px 10px #eef5ff;
  border: 6px solid #eef5ff;
  object-fit: cover;
  display: block;
  position: relative;
}

/* 金光闪闪 —— 用伪元素避免重绘 */
.float-kefu-avatar::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 3px solid rgba(255, 215, 0, .6);
  animation: avatar-glow 1.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes avatar-glow {
  0%, 100% {
    opacity: 0;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

.float-phone-text {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: #999;
  margin-top: 7px;
  gap: 3px;
}

.float-phone-num {
  font-size: 14px;
  font-weight: 700;
  color: #333;
  margin: 6px 0 12px;
}

/* ---- 二维码 ---- */
.float-box-qrcode {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border-radius: 4px;
  padding: 8px;
  margin-top: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .2);
  cursor: pointer;
}

.float-box-qrcode img {
  width: 100%;
  border-radius: 2px;
  position: relative;
}

/* 二维码金光 —— 外发光效果 */
.float-box-qrcode .qrcode-img-wrap {
  position: relative;
  display: block;
  width: 100%;
  border-radius: 4px;
  box-shadow: 0 0 2px rgba(255, 215, 0, .05), 0 0 6px rgba(255, 215, 0, .02);
  animation: qrcode-glow 2s ease-in-out infinite;
}

@keyframes qrcode-glow {
  0%, 100% {
    box-shadow: 0 0 2px rgba(255, 215, 0, .05), 0 0 6px rgba(255, 215, 0, .02);
  }
  50% {
    box-shadow: 0 0 28px rgba(255, 215, 0, .85), 0 0 70px rgba(255, 215, 0, .4), 0 0 110px rgba(255, 215, 0, .15);
  }
}

.float-box-qrcode img {
  width: 100%;
  border-radius: 2px;
}

.float-box-qrcode div {
  font-size: 13px;
  color: #666;
  margin-top: 5px;
}

/* ---- 返回顶部 ---- */
.float-box-backtop {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #fff;
  border-radius: 4px;
  padding: 8px;
  margin-top: 10px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .2);
  font-size: 14px;
  color: #333;
  cursor: pointer;
  transition: opacity .3s, visibility .3s;
  opacity: 0;
  visibility: hidden;
}

.float-box-backtop.show {
  opacity: 1;
  visibility: visible;
}

.float-box-backtop:hover {
  color: #ffb700;
}

/* ---- 关闭按钮 ---- */
.float-close-btn {
  position: absolute;
  right: 0;
  top: -8px;
  font-size: 22px;
  line-height: 20px;
  color: #999;
  cursor: pointer;
  z-index: 10;
  width: 24px;
  height: 24px;
  text-align: center;
  transition: color .2s;
}

.float-close-btn:hover {
  color: #ffb700;
}

/* ---- 收起状态 ---- */
.side-float-bar.collapsed {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .3s, visibility .3s;
}

/* ---- 关闭后的小缩略图 ---- */
.kefu-fixed-thumb {
  position: fixed;
  right: 40px;
  bottom: 40px;
  width: 60px;
  height: 60px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 3px 10px rgba(5, 36, 82, .08);
  display: none;
  cursor: pointer;
  z-index: 9999;
}

.kefu-fixed-thumb img {
  width: 36px;
  height: 36px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  object-fit: cover;
}

/* ---- 移动端隐藏 ---- */
@media (max-width: 768px) {
  .side-float-bar {
    display: none;
  }
  .kefu-fixed-thumb {
    display: none !important;
  }
}

/* ========================
   联系我们弹出层
   ======================== */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, .55);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.popup-dialog {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 40px 50px 36px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
  transform: translateY(20px);
  transition: transform .3s ease;
  max-width: 380px;
  width: 90%;
}

.popup-overlay.active .popup-dialog {
  transform: translateY(0);
}

.popup-title {
  font-size: 22px;
  font-weight: 700;
  color: #111;
  margin-bottom: 8px;
}

.popup-subtitle {
  font-size: 14px;
  color: #888;
  margin-bottom: 24px;
}

.popup-qrcode {
  width: 200px;
  height: 200px;
  margin: 0 auto;
  display: block;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 0 2px rgba(255, 215, 0, .05), 0 0 6px rgba(255, 215, 0, .02);
  animation: qrcode-glow 2s ease-in-out infinite;
}

.popup-close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: none;
  font-size: 24px;
  color: #999;
  cursor: pointer;
  line-height: 32px;
  text-align: center;
  border-radius: 50%;
  transition: color .2s, background .2s;
}

.popup-close:hover {
  color: #333;
  background: #f0f0f0;
}