/* ========================================
   OK交易官网 - OKX 风格样式表
   核心配色：纯黑 #000000 + 纯白 #FFFFFF
   设计风格：极简、科技、专业
   ======================================== */

/* ========== 全局样式 ========== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  padding: 0;
  background-color: #000000;
  color: #FFFFFF;
  font-family: 'OKX Sans', 'HarmonyOS Sans', 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 文本选择 */
::selection {
  background-color: #FFFFFF;
  color: #000000;
}

::-moz-selection {
  background-color: #FFFFFF;
  color: #000000;
}

/* 滚动条 */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: #000000;
}

::-webkit-scrollbar-thumb {
  background: #333333;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #555555;
}

/* 容器 */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 32px;
  }
}

/* 隐藏元素 */
.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* 文本对齐 */
.text-right {
  text-align: right;
}

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

/* ========== 导航栏 ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  transition: all 0.3s ease;
  padding: 20px 0;
  border-bottom: 1px solid transparent;
}

.navbar.glass-nav {
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.nav-left {
  display: flex;
  align-items: center;
  gap: 48px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.logo-link:hover {
  opacity: 0.8;
}

.logo-icon {
  height: 32px;
  width: auto;
  fill: #FFFFFF;
}

/* 面包屑导航 */
.breadcrumb {
  display: none;
}

@media (min-width: 768px) {
  .breadcrumb {
    display: block;
  }
}

.breadcrumb ol {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.breadcrumb a {
  color: #808080;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: #FFFFFF;
}

/* 导航右侧 */
.nav-right {
  display: none;
  align-items: center;
  gap: 16px;
}

@media (min-width: 1024px) {
  .nav-right {
    display: flex;
  }
}

.search-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #808080;
  transition: color 0.3s ease;
}

.search-icon:hover {
  color: #FFFFFF;
}

/* 移动端菜单按钮 */
.mobile-menu-btn {
  display: block;
  background: none;
  border: none;
  color: #FFFFFF;
  cursor: pointer;
  padding: 4px;
}

@media (min-width: 1024px) {
  .mobile-menu-btn {
    display: none;
  }
}

/* 移动端菜单 */
.mobile-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: #000000;
  border-top: 1px solid #222222;
  padding: 24px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.mobile-menu-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}

/* ========== 按钮样式 ========== */
.btn-primary,
.btn-secondary,
.btn-okx-white,
.btn-okx-dark {
  display: inline-block;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  border-radius: 9999px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  outline: none;
}

.btn-primary,
.btn-okx-white {
  background-color: #FFFFFF;
  color: #000000;
}

.btn-primary:hover,
.btn-okx-white:hover {
  background-color: #E0E0E0;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
}

.btn-secondary,
.btn-okx-dark {
  background-color: #1F1F1F;
  color: #FFFFFF;
  border: 1px solid #333333;
}

.btn-secondary:hover,
.btn-okx-dark:hover {
  background-color: #2F2F2F;
  border-color: #666666;
}

.btn-large {
  padding: 16px 40px;
  font-size: 16px;
}

/* ========== Hero 首屏 ========== */
.hero-section {
  position: relative;
  min-height: 95vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 96px;
  overflow: hidden;
  background-color: #000000;
}

.hero-background {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.glow-circle {
  position: absolute;
  top: 25%;
  left: 25%;
  width: 600px;
  height: 600px;
  background-color: #FFFFFF;
  opacity: 0.03;
  border-radius: 50%;
  filter: blur(150px);
}

.hero-content {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr;
  gap: 80px;
  align-items: center;
}

@media (min-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
  }
}

.hero-text {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

@media (min-width: 768px) {
  .hero-text {
    text-align: left;
  }
}

.hero-title {
  font-size: 48px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

@media (min-width: 768px) {
  .hero-title {
    font-size: 72px;
  }
}

.hero-description {
  font-size: 16px;
  line-height: 1.8;
  color: #808080;
  max-width: 600px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .hero-description {
    font-size: 18px;
    margin: 0;
  }
}

.hero-description strong {
  color: #FFFFFF;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 20px;
  justify-content: center;
}

@media (min-width: 640px) {
  .hero-actions {
    flex-direction: row;
  }
}

@media (min-width: 768px) {
  .hero-actions {
    justify-content: flex-start;
  }
}

/* 信任数据 */
.trust-stats {
  padding-top: 24px;
  border-top: 1px solid #222222;
  display: flex;
  justify-content: space-between;
  gap: 48px;
}

@media (min-width: 768px) {
  .trust-stats {
    justify-content: flex-start;
  }
}

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

@media (min-width: 768px) {
  .stat-item {
    text-align: left;
  }
}

.stat-value {
  font-size: 28px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 14px;
  color: #808080;
}

/* Hero 视觉演示 */
.hero-visual {
  display: none;
  position: relative;
}

@media (min-width: 768px) {
  .hero-visual {
    display: block;
  }
}

.trading-card {
  position: relative;
  z-index: 10;
  background-color: #121212;
  border-radius: 30px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid #333333;
  transform: rotate(-3deg);
  transition: transform 0.7s ease;
  width: 400px;
  margin: 0 auto;
}

.trading-card:hover {
  transform: rotate(0deg);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.card-title {
  color: #FFFFFF;
  font-weight: 700;
  font-size: 20px;
}

.card-subtitle {
  color: #808080;
  font-size: 14px;
}

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

.coin-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background-color: #000000;
  border-radius: 16px;
  border: 1px solid #222222;
}

.coin-info {
  display: flex;
  align-items: center;
  gap: 16px;
}

.coin-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.coin-okb {
  background-color: #FFFFFF;
  color: #000000;
}

.coin-btc {
  background-color: #F7931A;
  color: #FFFFFF;
}

.coin-eth {
  background-color: #627EEA;
  color: #FFFFFF;
}

.coin-symbol {
  color: #FFFFFF;
  font-weight: 700;
  font-size: 16px;
}

.coin-fullname {
  font-size: 12px;
  color: #808080;
}

.price-info {
  text-align: right;
}

.price {
  color: #FFFFFF;
  font-family: monospace;
  font-weight: 700;
  font-size: 16px;
}

.change {
  font-size: 12px;
}

.change-positive {
  color: #00C087;
}

.change-negative {
  color: #EF4444;
}

.decoration-circle {
  position: absolute;
  right: -40px;
  top: 80px;
  width: 128px;
  height: 128px;
  background-color: #FFFFFF;
  border-radius: 50%;
  mix-blend-mode: overlay;
  filter: blur(60px);
  opacity: 0.2;
}

/* ========== 市场行情 ========== */
.market-section {
  padding: 96px 0;
  background-color: #000000;
  border-top: 1px solid #222222;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 20px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 12px;
}

@media (min-width: 768px) {
  .section-title {
    font-size: 36px;
  }
}

.section-subtitle {
  font-size: 16px;
  color: #808080;
}

.text-highlight {
  color: #FFFFFF;
  font-weight: 700;
}

.link-arrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.link-arrow:hover {
  color: #808080;
}

/* 市场表格 */
.market-table {
  overflow-x: auto;
}

.market-table table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.market-table thead tr {
  border-bottom: 1px solid #333333;
  color: #808080;
  font-size: 14px;
}

.market-table th {
  padding: 24px 0;
  font-weight: 500;
}

.market-table tbody {
  color: #FFFFFF;
}

.market-table tbody tr {
  border-bottom: 1px solid #1A1A1A;
  transition: background-color 0.3s ease;
  cursor: pointer;
}

.market-table tbody tr:hover {
  background-color: #111111;
}

.market-table td {
  padding: 24px 0;
}

.coin-cell {
  display: flex;
  align-items: center;
  gap: 16px;
}

.price-cell {
  font-family: monospace;
}

.trade-link {
  display: inline-block;
  color: #FFFFFF;
  border: 1px solid #FFFFFF;
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s ease;
}

.trade-link:hover {
  background-color: #FFFFFF;
  color: #000000;
}

.hide-mobile {
  display: none;
}

@media (min-width: 768px) {
  .hide-mobile {
    display: table-cell;
  }
}

/* ========== 产品服务 ========== */
.products-section {
  padding: 96px 0;
  background-color: #000000;
}

.section-header-center {
  text-align: center;
  margin-bottom: 64px;
}

.section-title-large {
  font-size: 32px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 16px;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .section-title-large {
    font-size: 48px;
  }
}

.section-description {
  font-size: 16px;
  line-height: 1.8;
  color: #808080;
  max-width: 800px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .section-description {
    font-size: 18px;
  }
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.feature-card {
  background-color: #121212;
  border: 1px solid #222222;
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  background-color: #1A1A1A;
  border-color: #333333;
  transform: translateY(-4px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #FFFFFF;
  color: #000000;
  border-radius: 12px;
  margin-bottom: 20px;
}

.feature-title {
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.feature-description {
  font-size: 14px;
  line-height: 1.6;
  color: #808080;
}

/* ========== 为什么选择 ========== */
.why-section {
  padding: 96px 0;
  background-color: #000000;
}

.section-title-center {
  font-size: 32px;
  font-weight: 700;
  color: #FFFFFF;
  text-align: center;
  margin-bottom: 64px;
  line-height: 1.2;
}

@media (min-width: 768px) {
  .section-title-center {
    font-size: 40px;
  }
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.why-card {
  background-color: #121212;
  border: 1px solid #222222;
  border-radius: 20px;
  padding: 40px;
  text-align: center;
  transition: all 0.3s ease;
}

.why-card:hover {
  background-color: #1A1A1A;
  border-color: #333333;
  transform: translateY(-4px);
}

.why-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #FFFFFF;
  color: #000000;
  border-radius: 50%;
  margin: 0 auto 24px;
}

.why-title {
  font-size: 22px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 16px;
}

.why-description {
  font-size: 15px;
  line-height: 1.7;
  color: #808080;
}

/* ========== 新手指南 ========== */
.guide-section {
  padding: 96px 0;
  background-color: #000000;
}

.guide-steps {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 900px;
  margin: 0 auto 48px;
}

@media (min-width: 768px) {
  .guide-steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step-line {
  display: none;
}

@media (min-width: 768px) {
  .step-line {
    display: block;
    position: absolute;
    top: 32px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(to right, #333333, #555555, #333333);
    z-index: 0;
  }
}

.step-item {
  position: relative;
  z-index: 1;
  text-align: center;
}

.step-number {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #FFFFFF;
  color: #000000;
  border-radius: 50%;
  font-size: 24px;
  font-weight: 700;
  margin: 0 auto 20px;
  border: 4px solid #000000;
}

.step-title {
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.step-description {
  font-size: 14px;
  line-height: 1.6;
  color: #808080;
}

.guide-cta {
  text-align: center;
}

/* ========== FAQ ========== */
.faq-section {
  padding: 96px 0;
  background-color: #000000;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.faq-column {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.faq-item {
  background-color: #121212;
  border: 1px solid #222222;
  border-radius: 16px;
  padding: 32px;
  transition: all 0.3s ease;
}

.faq-item:hover {
  background-color: #1A1A1A;
  border-color: #333333;
}

.faq-question {
  font-size: 18px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 12px;
  line-height: 1.4;
}

.faq-answer {
  font-size: 15px;
  line-height: 1.7;
  color: #808080;
}

.faq-answer strong {
  color: #FFFFFF;
  font-weight: 600;
}

/* ========== SEO 内容 ========== */
.seo-section {
  padding: 96px 0;
  background-color: #000000;
  border-top: 1px solid #222222;
}

.seo-content {
  max-width: 900px;
  margin: 0 auto;
}

.seo-title {
  font-size: 28px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 32px;
  line-height: 1.3;
}

@media (min-width: 768px) {
  .seo-title {
    font-size: 32px;
  }
}

.seo-text {
  font-size: 16px;
  line-height: 1.9;
  color: #808080;
  margin-bottom: 24px;
}

.seo-text strong {
  color: #FFFFFF;
  font-weight: 600;
}

/* ========== 页脚 ========== */
.footer {
  background-color: #000000;
  border-top: 1px solid #222222;
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  }
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  font-size: 32px;
  font-weight: 900;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}

.footer-tagline {
  font-size: 14px;
  color: #808080;
}

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #1F1F1F;
  color: #FFFFFF;
  border-radius: 50%;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link:hover {
  background-color: #FFFFFF;
  color: #000000;
}

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

.footer-title {
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links a {
  font-size: 14px;
  color: #808080;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  padding-top: 40px;
  border-top: 1px solid #222222;
  text-align: center;
}

.copyright {
  font-size: 14px;
  color: #808080;
  margin-bottom: 16px;
}

.disclaimer {
  font-size: 13px;
  line-height: 1.6;
  color: #666666;
  max-width: 800px;
  margin: 0 auto;
}

.disclaimer strong {
  color: #808080;
}

/* ========== 性能优化 ========== */
.hero-section,
.trading-card,
.feature-card,
.why-card,
.faq-item {
  will-change: transform;
  transform: translateZ(0);
}

/* ========== 响应式优化 ========== */
@media (max-width: 767px) {
  .hero-title {
    font-size: 40px;
  }
  
  .section-title {
    font-size: 24px;
  }
  
  .section-title-large,
  .section-title-center {
    font-size: 28px;
  }
  
  .seo-title {
    font-size: 24px;
  }
}

/* ========== 打印样式 ========== */
@media print {
  .navbar,
  .mobile-menu,
  .hero-actions,
  .guide-cta,
  .footer {
    display: none;
  }
  
  body {
    background-color: #FFFFFF;
    color: #000000;
  }
}
