/* XT交易所网站样式 */

/* 全局样式 */
:root {
  --primary-color: #0052cc;
  --secondary-color: #ff7a00;
  --dark-color: #0a1428;
  --light-color: #f8fafc;
  --text-color: #333;
  --text-light: #666;
  --white: #fff;
  --success: #10b981;
  --danger: #ef4444;
  --gray-light: #eee;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--light-color);
}

/* 容器 */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 头部样式 */
header {
  background-color: var(--white);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: transform 0.3s ease;
}

header.hide {
  transform: translateY(-100%);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo-container img {
  height: 40px;
}

/* 导航 */
nav ul {
  display: flex;
  list-style: none;
}

nav ul li {
  margin-left: 25px;
}

nav ul li a {
  color: var(--text-color);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s ease;
}

nav ul li a:hover {
  color: var(--primary-color);
}

.nav-active {
  color: var(--primary-color);
  font-weight: 600;
}

/* 移动端菜单按钮 */
.menu-toggle {
  display: none;
  cursor: pointer;
  font-size: 24px;
}

/* 英雄区域 */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
  color: var(--white);
  padding: 120px 0 80px;
  text-align: center;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
  font-weight: 700;
}

.hero p {
  font-size: 20px;
  max-width: 700px;
  margin: 0 auto;
  opacity: 0.9;
}

/* 按钮样式 */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background-color: #0043a3;
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: #e56c00;
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline:hover {
  background-color: var(--primary-color);
  color: var(--white);
}

/* 部分通用样式 */
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--dark-color);
  margin-bottom: 15px;
}

.section-title p {
  font-size: 18px;
  color: var(--text-light);
  max-width: 700px;
  margin: 0 auto;
}

/* 市场数据 */
.market {
  background-color: var(--white);
  padding: 40px 0;
}

.market-table {
  width: 100%;
  border-collapse: collapse;
}

.market-table th {
  padding: 15px 10px;
  text-align: left;
  border-bottom: 1px solid var(--gray-light);
  font-weight: 600;
}

.market-table td {
  padding: 15px 10px;
  border-bottom: 1px solid var(--gray-light);
}

.market-table tr:hover {
  background-color: rgba(0, 82, 204, 0.05);
}

.price-up {
  color: var(--success);
}

.price-down {
  color: var(--danger);
}

/* 优势部分 */
.advantages {
  background-color: var(--light-color);
}

.advantages-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.advantage-item {
  background-color: var(--white);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.advantage-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.advantage-icon {
  width: 64px;
  height: 64px;
  margin-bottom: 20px;
}

.advantage-item h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--dark-color);
}

.advantage-item p {
  color: var(--text-light);
  font-size: 16px;
}

/* 产品部分 */
.products {
  background-color: var(--white);
}

.products-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.product-item {
  border-radius: 8px;
  padding: 30px;
  border: 1px solid var(--gray-light);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-color: transparent;
}

.product-icon {
  width: 200px;
  height: 150px;
  margin-bottom: 20px;
}

.product-item h3 {
  font-size: 22px;
  margin-bottom: 15px;
  color: var(--dark-color);
}

.product-item p {
  color: var(--text-light);
  font-size: 16px;
  margin-bottom: 20px;
}

/* 统计部分 */
.stats {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
  color: var(--white);
  text-align: center;
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
}

.stat-item h3 {
  font-size: 18px;
  margin-bottom: 20px;
  opacity: 0.9;
}

.stat-number {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 15px;
}

/* 关于我们 */
.about {
  background-color: var(--light-color);
}

.about-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.about-text {
  flex: 1;
}

.about-text h2 {
  font-size: 36px;
  margin-bottom: 20px;
  color: var(--dark-color);
}

.about-text p {
  margin-bottom: 20px;
  color: var(--text-light);
  font-size: 16px;
}

.about-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-image img {
  max-width: 100%;
  border-radius: 8px;
}

/* 应用下载部分 */
.app {
  background-color: var(--white);
  overflow: hidden;
}

.app-container {
  display: flex;
  align-items: center;
  gap: 50px;
}

.app-content {
  flex: 1;
}

.app-content h2 {
  font-size: 36px;
  margin-bottom: 20px;
  color: var(--dark-color);
}

.app-content p {
  margin-bottom: 30px;
  color: var(--text-light);
  font-size: 16px;
}

.app-buttons {
  display: flex;
  gap: 15px;
  margin-bottom: 30px;
}

.app-store-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: var(--dark-color);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.app-store-btn:hover {
  background-color: #000;
}

.app-store-icon {
  width: 24px;
  height: 24px;
}

.app-qrcode {
  width: 120px;
  height: 120px;
}

.app-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.app-image img {
  max-width: 300px;
}

/* 合作伙伴部分 */
.partners {
  background-color: var(--light-color);
  text-align: center;
}

.partners-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}

.partner-item img {
  max-width: 150px;
  max-height: 60px;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.partner-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* 注册引导 */
.register-guide {
  background-color: var(--white);
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.step-number {
  width: 50px;
  height: 50px;
  background-color: var(--primary-color);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
}

.step-item h3 {
  font-size: 20px;
  margin-bottom: 15px;
  color: var(--dark-color);
}

.step-item p {
  color: var(--text-light);
  font-size: 16px;
}

/* 页脚 */
footer {
  background-color: var(--dark-color);
  color: var(--white);
  padding: 60px 0 20px;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.footer-logo img {
  height: 40px;
  margin-bottom: 20px;
}

.footer-about p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 20px;
}

.footer-links h3 {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--white);
}

.footer-links ul {
  list-style: none;
}

.footer-links ul li {
  margin-bottom: 10px;
}

.footer-links ul li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links ul li a:hover {
  color: var(--white);
}

.footer-contact h3 {
  font-size: 18px;
  margin-bottom: 20px;
  color: var(--white);
}

.footer-contact p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 10px;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.social-icons a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 20px;
  transition: color 0.3s ease;
}

.social-icons a:hover {
  color: var(--white);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
}

/* 动画效果 */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 媒体查询 - 响应式设计 */
@media screen and (max-width: 992px) {
  .hero h1 {
    font-size: 36px;
  }
  
  .hero p {
    font-size: 18px;
  }
  
  .section-title h2 {
    font-size: 30px;
  }
  
  .about-content, 
  .app-container {
    flex-direction: column;
  }
  
  .about-image, 
  .app-image {
    order: -1;
    margin-bottom: 30px;
  }
}

@media screen and (max-width: 768px) {
  .menu-toggle {
    display: block;
  }
  
  nav {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    padding: 20px;
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    z-index: 1000;
  }
  
  nav.active {
    transform: translateY(0);
  }
  
  nav ul {
    flex-direction: column;
  }
  
  nav ul li {
    margin: 0 0 15px 0;
  }
  
  .hero h1 {
    font-size: 30px;
  }
  
  .section-title h2 {
    font-size: 24px;
  }
  
  .stat-number {
    font-size: 36px;
  }
}

@media screen and (max-width: 576px) {
  .hero {
    padding: 100px 0 60px;
  }
  
  .section {
    padding: 60px 0;
  }
  
  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }
  
  .app-buttons {
    flex-direction: column;
  }
} 