/* ==================== 全局重置 ==================== */
* {
  margin: 0; /* 去除默认外边距 */
  padding: 0; /* 去除默认内边距 */
  box-sizing: border-box; /* 盒模型包括padding和border */
}

body {
  font-family: 'Microsoft YaHei', sans-serif; /* 中文字体优先 */
  background: #0a0c1a; /* 深蓝背景 */
  color: #e0f9f4; /* 文字颜色 */
  line-height: 1.6; /* 行间距 */
  scroll-behavior: smooth; /* 滚动平滑 */
}

/* 链接样式 */
a {
  color: #00ffc3;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #00a87e;
}

/* ==================== 头部 ==================== */
header {
  background: #121429;
  padding: 0.75rem 2rem;
  position: sticky; /* 固定顶部 */
  top: 0;
  z-index: 1000;
  box-shadow: 0 0 20px #00ffc3;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo区域 */
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.logo img {
  width: 40px;
  height: 40px;
  filter: drop-shadow(0 0 4px #00ffc3);
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: rotate(15deg);
}

.logo span {
  font-size: 1.8rem;
  font-weight: 700;
  color: #00ffc3;
  text-shadow: 0 0 8px #00ffc3;
}

/* 导航菜单 */
.nav-menu {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-weight: 600;
  font-size: 1rem;
  padding: 0.4rem 0;
  position: relative;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: #00ffc3;
  transition: width 0.3s ease;
}

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

.nav-link:hover {
  color: #00ffa1;
}

/* ==================== 汉堡菜单按钮 ==================== */
.nav-toggle {
  display: none; /* 默认隐藏 */
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: #00ffc3;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* ==================== 主体内容 ==================== */
main {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 6rem;
}

/* ==================== 首页模块 ==================== */
.home-section {
  position: relative;
  display: flex;
  height: 70vh;
  background: #001f2d;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 0 30px #00ffc3aa;
  color: #00ffc3;
  align-items: center;
  justify-content: space-around;
  gap: 2rem;
  padding: 1rem;
}

/* 首页大图：用伪元素和背景图展示 */
.home-image {
  flex: 1;
  height: 500px;
  width: 500px;
  background: url("1.png") no-repeat center center/cover;
  border-radius: 15px;
  box-shadow: 0 0 20px #00ffc3aa;
}

/* 首页简介文字 */
.home-intro {
  flex: 1;
  padding: 1rem 2rem;
}

.home-intro h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 10px #00ffc3;
}

.home-intro p {
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.4;
  color: #9effde;
}

/* ==================== 关于模块 ==================== */
.about-section {
  display: flex;
  gap: 3rem;
  align-items: center;
  color: #c1f1e8;
}

.about-section img {
  flex: 1;
  border-radius: 15px;
  box-shadow: 0 0 30px #00ffc3cc;
}

.about-text {
  flex: 1;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: #00ffc3;
  text-shadow: 0 0 10px #00ffc3;
}

.about-text p {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #c0f4e1;
}

/* ==================== 技术模块 ==================== */
.tech-section h2 {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 3rem;
  color: #00ffc3;
  text-shadow: 0 0 10px #00ffc3;
}

.tech-cards {
  display: flex;
  gap: 2rem;
  justify-content: space-around;
  margin-bottom: 2rem;
}

.tech-card {
  background: #022f2e;
  flex: 1;
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 0 15px #00ffc3aa;
  transition: transform 0.3s ease;
  cursor: default;
  color: #9effde;
  text-align: center;
}

.tech-card:hover {
  transform: translateY(-10px);
}

.tech-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.tech-card p {
  font-size: 1rem;
  line-height: 1.4;
}

.tech-section img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 0 30px #00ffc3cc;
}

/* ==================== 应用场景模块 ==================== */
.usecases-section h2 {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 3rem;
  color: #00ffc3;
  text-shadow: 0 0 10px #00ffc3;
}

.usecases-cards {
  display: flex;
  gap: 2rem;
  justify-content: space-around;
  margin-bottom: 2rem;
}

.usecase-card {
  background: #022f2e;
  flex: 1;
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 0 15px #00ffc3aa;
  cursor: default;
  color: #9effde;
  text-align: center;
  transition: transform 0.3s ease;
}

.usecase-card:hover {
  transform: translateY(-10px);
}

.usecase-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.usecase-card p {
  font-size: 1rem;
  line-height: 1.4;
}

.usecases-section img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 0 30px #00ffc3cc;
}

/* ==================== 代币经济学 ==================== */
.economics-section {
  text-align: center;
  color: #00ffc3;
}

.economics-section h2 {
  font-size: 2.8rem;
  margin-bottom: 2rem;
  text-shadow: 0 0 10px #00ffc3;
}

.token-logo {
  width: 100px;
  filter: drop-shadow(0 0 12px #00ffc3);
  margin-bottom: 1.5rem;
}

.economics-section p {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.2rem;
  color: #9effde;
  line-height: 1.5;
}

/* ==================== 区块链模块 ==================== */
.blockchain-section h2 {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 3rem;
  color: #00ffc3;
  text-shadow: 0 0 10px #00ffc3;
}

.blockchain-cards {
  display: flex;
  gap: 2rem;
  justify-content: space-around;
}

.blockchain-card {
  background: #022f2e;
  flex: 1;
  border-radius: 15px;
  padding: 1.5rem;
  box-shadow: 0 0 15px #00ffc3aa;
  cursor: default;
  color: #9effde;
  text-align: center;
  transition: transform 0.3s ease;
}

.blockchain-card:hover {
  transform: translateY(-10px);
}

.blockchain-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.blockchain-card p {
  font-size: 1rem;
  line-height: 1.4;
}

/* ==================== 路线图模块 ==================== */
.roadmap-section h2 {
  text-align: center;
  font-size: 2.8rem;
  margin-bottom: 2rem;
  color: #00ffc3;
  text-shadow: 0 0 10px #00ffc3;
}

.roadmap-section ul {
  list-style: none;
  max-width: 700px;
  margin: 0 auto;
  padding-left: 0;
  color: #9effde;
}

.roadmap-section ul li {
  background: #013232;
  margin-bottom: 1rem;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  box-shadow: 0 0 15px #00ffc3aa inset;
  font-size: 1.1rem;
  font-weight: 600;
  transition: background 0.3s;
  cursor: default;
}

.roadmap-section ul li:hover {
  background: rgba(0,255,195,0.1);
  border-radius: 15px;
}

/* ==================== 加入我们模块 ==================== */
.join-section {
  text-align: center;
  color: #00ffc3;
}

.join-section h2 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  text-shadow: 0 0 10px #00ffc3;
}

.join-section p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  font-weight: 600;
  color: #9effde;
}

/* 社交图标容器 */
.social-icons {
  display: flex;
  justify-content: center;
  gap: 3rem;
}

/* 社交图标图片 */
.social-icons a img {
  width: 50px;
  height: 50px;
  filter: drop-shadow(0 0 10px #00ffc3);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.social-icons a img:hover {
  transform: scale(1.2) rotate(15deg);
}

/* ==================== 页脚 ==================== */
footer {
  text-align: center;
  padding: 1rem 0;
  background: #001f2d;
  color: #004f41;
  font-weight: 600;
  letter-spacing: 1.2px;
  user-select: none;
  margin-top: 3rem;
}

/* ==================== 响应式 ==================== */

/* 手机导航切换显示 */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    right: 0;
    background: #021f28;
    height: calc(100vh - 70px);
    width: 200px;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem;
    box-shadow: -4px 0 15px rgba(0,255,195,0.5);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 2000;
  }

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

  .nav-link {
    font-size: 1.3rem;
    padding: 1rem 0;
  }

  .nav-toggle {
    display: flex;
  }
  
  /* 主体内容区间距减少，单列排布 */
  main {
    margin: 1rem auto;
    padding: 0 1rem;
    gap: 4rem;
  }

  .home-section {
    flex-direction: column;
    height: auto;
  }

  .home-image,
  .home-intro {
    width: 100%;
  }

  .about-section {
    flex-direction: column;
  }

  .about-section img {
    width: 100%;
  }

  .about-text {
    width: 100%;
  }

  .tech-cards,
  .usecases-cards,
  .blockchain-cards {
    flex-direction: column;
  }
}
/* ==================== 合约地址框模块 ==================== */
.contract-section {
  text-align: center;
  color: #00ffc3;
  margin-top: 3rem;
}

.contract-section h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 10px #00ffc3;
}

/* 合约框容器 */
.contract-box {
  display: inline-flex;
  align-items: center;
  background: #022f2e;
  border-radius: 10px;
  padding: 0.5rem 1rem;
  box-shadow: 0 0 20px #00ffc3aa;
}

/* 合约地址输入框 */
#contract-address {
  border: none;
  background: transparent;
  color: #9effde;
  font-size: 1.1rem;
  width: 360px;
  outline: none;
}

/* 复制按钮 */
#copy-btn {
  margin-left: 1rem;
  background: #00ffc3;
  color: #001f2d;
  border: none;
  padding: 0.4rem 1rem;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

#copy-btn:hover {
  background: #00e6b5;
}

/* 成功提示框样式 */
.copy-toast {
  margin-top: 1rem;
  background: #00ffc3;
  color: #001f2d;
  display: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: bold;
  box-shadow: 0 0 10px #00ffc3aa;
  animation: fadeInOut 2s ease;
}

/* 动画：渐显渐隐 */
@keyframes fadeInOut {
  0%   { opacity: 0; transform: translateY(10px); }
  10%  { opacity: 1; transform: translateY(0); }
  90%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(-10px); }
}

/* 小屏自适应 */
@media (max-width: 600px) {
  #contract-address {
    width: 250px;
    font-size: 0.95rem;
  }
}
/* ==================== 为什么选择我们模块 ==================== */
.whyus-section {
  text-align: center;
  color: #00ffc3;
  margin: 4rem 0;
}

.whyus-section h2 {
  font-size: 2.8rem;
  margin-bottom: 2rem;
  text-shadow: 0 0 10px #00ffc3;
}

/* 卡片容器：横向排列 */
.whyus-cards {
  display: flex;
  justify-content: space-around;
  gap: 2rem;
  flex-wrap: wrap;
}

/* 单个卡片 */
.whyus-card {
  background: #022f2e;
  border-radius: 15px;
  padding: 2rem;
  flex: 1;
  min-width: 260px;
  max-width: 320px;
  box-shadow: 0 0 20px #00ffc3aa;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #9effde;
}

/* 卡片悬停动画 */
.whyus-card:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 0 25px #00ffd5;
}

/* 图标图片 */
.whyus-card img {
  width: 64px;
  height: 64px;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 6px #00ffc3aa);
}

/* 小标题 */
.whyus-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.8rem;
  color: #00ffc3;
}

/* 文本内容 */
.whyus-card p {
  font-size: 1rem;
  line-height: 1.5;
  color: #b7f5e6;
}

/* 移动端布局调整 */
@media (max-width: 768px) {
  .whyus-cards {
    flex-direction: column;
    align-items: center;
  }
}
