/* 1. 重置样式（比reset更友好，保留原生样式，消除浏览器差异，SEO友好） */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent; /* 移动端点击高亮消除 */
}
html {
  font-size: 16px;
  scroll-behavior: smooth; /* 平滑滚动，提升体验，SEO不抵触 */
}
body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #333;
  line-height: 1.6;
  background: #f5f7fa;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease; /* 统一过渡，企业级交互 */
}
a:hover {
  color: #007bff; /* 主色调，可自定义 */
}
img {
  display: block;
  max-width: 100%;
  height: auto; /* 响应式图片，SEO友好 */
  border: 0;
}
/* SEO友好：h1-h6层级清晰，不重置默认样式，爬虫优先识别 */
h1 {
  font-size: 2rem;
  line-height: 1.3;
}
h2 {
  font-size: 1.8rem;
  margin: 2rem 0 1rem;
}
h3 {
  font-size: 1.5rem;
  margin: 1.5rem 0 0.8rem;
}
p {
  margin: 0.8rem 0;
}
/* 2. 自定义CSS变量（企业级维护，一键修改主题） */
:root {
  --primary: #007bff; /* 主色调-蓝色（科技感，适配钱包官网） */
  --primary-dark: #0056b3; /* 主色调加深 */
  --secondary: #6c757d; /* 次要色调 */
  --light: #f8f9fa; /* 浅色背景 */
  --dark: #343a40; /* 深色文字 */
  --white: #fff; /* 白色 */
  --shadow: 0 0 15px rgba(0, 0, 0, 0.1); /* 通用阴影 */
  --container-width: 1200px; /* PC端容器宽度 */
  --gap: 1.5rem; /* 通用间距 */
  --radius: 8px; /* 通用圆角 */
}
/* 3. 通用工具类（企业级复用，减少冗余） */
.container {
  width: 90%;
  max-width: var(--container-width);
  margin: 0 auto; /* 居中容器，SEO友好：内容居中，爬虫易识别 */
}
.flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.flex-col {
  flex-direction: column;
}
.flex-center {
  justify-content: center;
}
.flex-wrap {
  flex-wrap: wrap;
}
.text-center {
  text-align: center;
}
.text-primary {
  color: var(--primary);
}
.bg-primary {
  background: var(--primary);
}
.bg-white {
  background: var(--white);
}
.py-5 {
  padding: 5rem 0;
}
.py-3 {
  padding: 3rem 0;
}
.px-2 {
  padding: 0 2rem;
}
.mb-5 {
  margin-bottom: 5rem;
}
.mb-3 {
  margin-bottom: 3rem;
}
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  text-align: center;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.btn-big {
  padding: 1rem 2.5rem;
  font-size: 1.2rem;
}
/* 懒加载占位样式（SEO友好：占位不影响爬虫识别，加载后替换） */
.img-lazy {
  background: #eee;
  border-radius: var(--radius);
}
/* 回到顶部按钮基础样式 */
.back-to-top {
  position: fixed;
  bottom: 3rem;
  right: 3rem;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999; /* 置顶，不被遮挡 */
}
.back-to-top.show {
  opacity: 1;
  visibility: visible;
}
/* 4. 头部样式（企业级固定导航，滚动吸顶，SEO友好：导航链接清晰） */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  z-index: 9999; /* 最高层级，保证导航不被遮挡 */
  padding: 1rem 0;
  transition: all 0.3s ease;
}
.header .logo {
  width: 200px; /* 匹配logo.png 200*60px */
  height: 60px;
}
/* 桌面端导航 */
.nav-list {
  gap: 2rem;
}
.nav-list a {
  font-size: 1.1rem;
  font-weight: 500;
  padding: 0.5rem 0;
  position: relative;
}
/* 导航当前页高亮（JS动态添加），SEO友好：爬虫识别当前页面 */
.nav-list a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary);
  border-radius: 3px;
}
/* 移动端汉堡菜单（默认隐藏） */
.hamburger {
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
}
/* 5. 核心横幅样式（index页专属，突出下载，SEO核心区域） */
.banner {
  margin-top: 80px; /* 适配固定导航，避免内容遮挡 */
  height: calc(100vh - 80px);
  background: linear-gradient(135deg, #e8f4ff, #f5f7fa);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 0;
}
.banner-title {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: var(--dark);
}
.banner-title span {
  color: var(--primary); /* 关键词标色，视觉+SEO突出 */
}
.banner-desc {
  font-size: 1.2rem;
  color: var(--secondary);
  max-width: 800px;
  margin: 0 auto 2rem;
}
.banner-download {
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}
/* 6. 下载核心区样式（index页，企业级卡片布局，突出正版/最新） */
.download-section {
  background: var(--white);
  padding: 5rem 0;
}
.download-card {
  width: 30%;
  background: var(--light);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
  transition: all 0.3s ease;
}
.download-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}
.download-card-icon {
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 1rem;
}
.download-card-title {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.download-card-desc {
  color: var(--secondary);
  margin-bottom: 1.5rem;
}
/* 7. 通用页面主体样式（download/tutorial/news/about页，SEO友好：内容区宽屏，易读） */
.main-page {
  margin-top: 100px;
  padding: 5rem 0;
  background: var(--white);
  min-height: calc(100vh - 200px);
}
.page-title {
  text-align: center;
  margin-bottom: 3rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
  left: 50%;
  transform: translateX(-50%);
  position: relative;
}
.page-content {
  line-height: 1.8;
  font-size: 1.1rem;
  color: var(--dark);
}
.page-content section {
  margin-bottom: 3rem;
}
/* 新闻中心卡片样式（news.html，高频率更新区，SEO友好：卡片布局，爬虫易抓取） */
.news-list {
  gap: var(--gap);
  flex-wrap: wrap;
}
.news-card {
  width: 31%;
  background: var(--light);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all 0.3s ease;
}
.news-card:hover {
  transform: translateY(-5px);
}
.news-card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.news-card-content {
  padding: 1.5rem;
}
.news-card-date {
  color: var(--secondary);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}
.news-card-title {
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.news-card-desc {
  color: var(--secondary);
  font-size: 0.9rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
/* 8. 页脚样式（企业级，SEO友好：站内链接+版权+联系方式，提升站点权重） */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: 3rem 0 1rem;
}
.footer-top {
  gap: var(--gap);
  flex-wrap: wrap;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-col {
  width: 23%;
}
.footer-col-title {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--primary);
  display: inline-block;
}
.footer-col-list a {
  color: #ccc;
  display: block;
  margin: 0.5rem 0;
}
.footer-col-list a:hover {
  color: var(--primary);
  padding-left: 0.5rem;
}
.footer-bottom {
  text-align: center;
  color: #999;
  font-size: 0.9rem;
}
/* 9. 响应式媒体查询（移动端优先，适配搜索引擎移动端索引，SEO核心） */
/* 平板端（768-1199px） */
@media (max-width: 1199px) {
  :root {
    --container-width: 900px;
  }
  .banner-title {
    font-size: 2.5rem;
  }
  .download-card, .news-card, .footer-col {
    width: 48%;
    margin-bottom: 1.5rem;
  }
}
/* 移动端（≤767px） */
@media (max-width: 767px) {
  :root {
    --container-width: 100%;
    font-size: 14px;
  }
  /* 移动端导航隐藏，汉堡菜单显示 */
  .hamburger {
    display: block;
  }
  .nav-list {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 80%;
    height: calc(100vh - 80px);
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    gap: 3rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    z-index: 9998;
  }
  .nav-list.show {
    right: 0;
  }
  /* 横幅适配 */
  .banner {
    height: auto;
  }
  .banner-title {
    font-size: 2rem;
  }
  .banner-download {
    flex-direction: column;
    gap: 1rem;
  }
  /* 卡片适配为100% */
  .download-card, .news-card, .footer-col {
    width: 100%;
    margin-bottom: 1.5rem;
  }
  /* 回到顶部按钮适配 */
  .back-to-top {
    bottom: 2rem;
    right: 2rem;
    width: 2.5rem;
    height: 2.5rem;
  }
  /* 通用页面主体适配 */
  .main-page {
    margin-top: 90px;
    padding: 3rem 0;
  }
}
/* 10. 懒加载动画（提升体验，不影响SEO） */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.img-lazy.loaded {
  animation: fadeIn 0.5s ease;
}

/* 移动端banner适配 */
@media (max-width: 768px) {
  #banner {
    min-height: 400px !important;
  }
  .banner-title {
    font-size: 1.8rem !important;
  }
  .banner-desc {
    font-size: 0.9rem !important;
  }
  .banner-download {
    flex-direction: column !important;
    gap: 1rem !important;
  }
}