/* XT交易所移动端样式 */

/* 基本移动端覆盖样式 */
@media screen and (max-width: 768px) {
  body {
    font-size: 14px;
  }
  
  .container {
    padding: 0 15px;
  }
  
  /* 头部适配 */
  .header-container {
    padding: 10px 0;
  }
  
  .logo-container img {
    height: 30px;
  }
  
  /* 英雄区域适配 */
  .hero {
    padding: 90px 0 50px;
  }
  
  .hero h1 {
    font-size: 28px;
    margin-bottom: 15px;
  }
  
  .hero p {
    font-size: 16px;
  }
  
  /* 按钮适配 */
  .btn {
    padding: 10px 20px;
    font-size: 14px;
  }
  
  /* 部分样式适配 */
  .section {
    padding: 50px 0;
  }
  
  .section-title {
    margin-bottom: 30px;
  }
  
  .section-title h2 {
    font-size: 24px;
    margin-bottom: 10px;
  }
  
  .section-title p {
    font-size: 16px;
  }
  
  /* 优势部分适配 */
  .advantage-item {
    padding: 20px;
  }
  
  .advantage-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 15px;
  }
  
  .advantage-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
  }
  
  /* 产品部分适配 */
  .product-item {
    padding: 20px;
  }
  
  .product-icon {
    width: 100%;
    height: auto;
    max-height: 120px;
    margin-bottom: 15px;
  }
  
  .product-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
  }
  
  /* 统计部分适配 */
  .stat-number {
    font-size: 32px;
    margin-bottom: 10px;
  }
  
  .stat-item h3 {
    font-size: 16px;
    margin-bottom: 15px;
  }
  
  /* 应用下载部分适配 */
  .app-content h2 {
    font-size: 24px;
    margin-bottom: 15px;
  }
  
  .app-buttons {
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
  }
  
  .app-store-btn {
    width: 100%;
    justify-content: center;
  }
  
  .app-image img {
    max-width: 100%;
  }
  
  /* 页脚适配 */
  footer {
    padding: 40px 0 15px;
  }
  
  .footer-container {
    gap: 30px;
    margin-bottom: 30px;
  }
  
  .footer-links h3,
  .footer-contact h3 {
    font-size: 16px;
    margin-bottom: 15px;
  }
}

/* 小屏幕手机适配 */
@media screen and (max-width: 375px) {
  .hero h1 {
    font-size: 24px;
  }
  
  .section-title h2 {
    font-size: 22px;
  }
  
  .advantage-item,
  .product-item {
    padding: 15px;
  }
  
  .stat-number {
    font-size: 28px;
  }
  
  .steps-container {
    gap: 20px;
  }
  
  .step-number {
    width: 40px;
    height: 40px;
    font-size: 20px;
    margin-bottom: 15px;
  }
  
  .step-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
  }
}

/* 横屏适配 */
@media screen and (max-width: 850px) and (orientation: landscape) {
  .hero {
    padding: 60px 0 40px;
  }
  
  .section {
    padding: 40px 0;
  }
  
  .advantages-container,
  .products-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .steps-container {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .app-container {
    flex-direction: row;
  }
  
  .app-content {
    padding-right: 20px;
  }
}

/* 触摸优化 */
@media (hover: none) {
  .btn,
  nav ul li a,
  .app-store-btn,
  .footer-links ul li a {
    transition: none;
  }
  
  .advantage-item:hover,
  .product-item:hover {
    transform: none;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  }
  
  .partner-item:hover img {
    filter: grayscale(0%);
    opacity: 1;
  }
}

/* 暗黑模式支持 */
@media (prefers-color-scheme: dark) {
  :root {
    --light-color: #121926;
    --white: #1a2534;
    --text-color: #e2e8f0;
    --text-light: #94a3b8;
    --gray-light: #334155;
  }
  
  .market-table tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
  }
  
  .advantage-item,
  .product-item {
    background-color: #1a2534;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  }
  
  .advantage-item:hover,
  .product-item:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  }
  
  .partner-item img {
    filter: grayscale(100%) brightness(0.8) contrast(1.2);
  }
  
  .partner-item:hover img {
    filter: grayscale(0%) brightness(1) contrast(1);
  }
} 