/* ============================================================
   GATE官网 - 世界顶级加密货币交易所
   主样式表
   ============================================================ */

/* CSS Custom Properties */
:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-card: #1a1f2e;
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --gate-blue: #2563eb;
  --gate-blue-light: #3b82f6;
  --gate-blue-dark: #1d4ed8;
  --sesame-gold: #f59e0b;
  --sesame-gold-light: #fbbf24;
  --premium-purple: #8b5cf6;
  --premium-purple-light: #a78bfa;
  --trade-green: #10b981;
  --trade-green-light: #34d399;
  --border-color: #1e293b;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1280px;
}

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   Header & Navigation
   ============================================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 14, 23, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gate-blue-light), var(--premium-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.main-nav { display: flex; gap: 8px; }

.main-nav a {
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text-primary);
  background: rgba(37, 99, 235, 0.12);
}

.mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero {
  padding: 140px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(37, 99, 235, 0.08) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 60%, rgba(139, 92, 246, 0.06) 0%, transparent 40%);
  animation: heroPulse 8s ease-in-out infinite;
  pointer-events: none;
}

@keyframes heroPulse {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

.hero-badge {
  display: inline-block;
  padding: 6px 20px;
  background: rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--gate-blue-light);
  margin-bottom: 28px;
  animation: fadeInUp 0.8s ease-out;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -1px;
  animation: fadeInUp 0.8s ease-out 0.15s both;
}

.hero h1 .highlight {
  background: linear-gradient(135deg, var(--sesame-gold), var(--sesame-gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto 36px;
  animation: fadeInUp 0.8s ease-out 0.3s both;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 40px;
  animation: fadeInUp 0.8s ease-out 0.45s both;
}

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

.hero-stat .stat-number {
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--gate-blue-light), var(--premium-purple-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stat .stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.hero-cta {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  gap: 8px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gate-blue), var(--gate-blue-dark));
  color: #fff;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
  animation: ctaPulse 2s ease-in-out infinite;
}

@keyframes ctaPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4); }
  50% { box-shadow: 0 4px 28px rgba(37, 99, 235, 0.7); }
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(37, 99, 235, 0.6);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: var(--gate-blue-light);
}

.btn-gold {
  background: linear-gradient(135deg, var(--sesame-gold), #d97706);
  color: #000;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(245, 158, 11, 0.5);
}

/* ============================================================
   Section Common
   ============================================================ */
section {
  padding: 80px 0;
}

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

.section-header h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================================
   Advantages Grid
   ============================================================ */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.adv-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.adv-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gate-blue), var(--premium-purple));
  opacity: 0;
  transition: var(--transition);
}

.adv-card:hover::before { opacity: 1; }

.adv-card:hover {
  transform: translateY(-6px);
  border-color: var(--gate-blue);
  box-shadow: var(--shadow-lg);
}

.adv-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
  font-weight: 700;
}

.adv-icon.blue { background: rgba(37, 99, 235, 0.15); color: var(--gate-blue-light); }
.adv-icon.gold { background: rgba(245, 158, 11, 0.15); color: var(--sesame-gold); }
.adv-icon.purple { background: rgba(139, 92, 246, 0.15); color: var(--premium-purple-light); }
.adv-icon.green { background: rgba(16, 185, 129, 0.15); color: var(--trade-green); }

.adv-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.adv-card p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ============================================================
   Coin Showcase
   ============================================================ */
.coin-showcase {
  background: var(--bg-secondary);
}

.coin-marquee {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

.coin-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  animation: floatIn 0.6s ease-out both;
}

.coin-chip:nth-child(1) { animation-delay: 0s; }
.coin-chip:nth-child(2) { animation-delay: 0.05s; }
.coin-chip:nth-child(3) { animation-delay: 0.1s; }
.coin-chip:nth-child(4) { animation-delay: 0.15s; }
.coin-chip:nth-child(5) { animation-delay: 0.2s; }
.coin-chip:nth-child(6) { animation-delay: 0.25s; }
.coin-chip:nth-child(7) { animation-delay: 0.3s; }
.coin-chip:nth-child(8) { animation-delay: 0.35s; }

@keyframes floatIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.coin-chip:hover {
  transform: translateY(-4px);
  border-color: var(--sesame-gold);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.15);
}

.coin-chip img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.coin-chip .coin-name {
  font-weight: 600;
  font-size: 0.9rem;
}

.coin-chip .coin-price {
  font-size: 0.85rem;
  color: var(--trade-green);
  font-weight: 600;
}

/* ============================================================
   Market Table
   ============================================================ */
.market-table-wrap {
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
}

.market-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}

.market-table th,
.market-table td {
  padding: 16px 20px;
  text-align: left;
  font-size: 0.9rem;
}

.market-table th {
  background: rgba(37, 99, 235, 0.08);
  color: var(--text-secondary);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border-color);
}

.market-table td {
  border-bottom: 1px solid rgba(30, 41, 59, 0.5);
}

.market-table tr:hover td {
  background: rgba(37, 99, 235, 0.04);
}

.change-up { color: var(--trade-green); font-weight: 600; }
.change-down { color: #ef4444; font-weight: 600; }

.market-table .pair {
  display: flex;
  align-items: center;
  gap: 10px;
}

.market-table .pair img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

/* ============================================================
   Statistics
   ============================================================ */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-card {
  text-align: center;
  padding: 36px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.stat-card:hover {
  border-color: var(--gate-blue);
  transform: translateY(-4px);
}

.stat-card .stat-value {
  font-size: 2.5rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--gate-blue-light), var(--sesame-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}

.stat-card .stat-desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ============================================================
   CTA Section
   ============================================================ */
.cta-section {
  text-align: center;
  padding: 80px 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(139, 92, 246, 0.06));
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.cta-section h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-section p {
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 48px 0 24px;
}

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

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul li a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-col ul li a:hover { color: var(--gate-blue-light); }

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ============================================================
   Page Hero (Sub Pages)
   ============================================================ */
.page-hero {
  padding: 120px 0 60px;
  text-align: center;
}

.page-hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.page-hero p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ============================================================
   About Page
   ============================================================ */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 60px;
}

.about-content.reverse { direction: rtl; }
.about-content.reverse > * { direction: ltr; }

.about-text h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.about-text p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 12px;
  line-height: 1.8;
}

.about-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.timeline {
  position: relative;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--gate-blue), var(--premium-purple));
}

.timeline-item {
  position: relative;
  margin-bottom: 36px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -26px;
  top: 6px;
  width: 14px;
  height: 14px;
  background: var(--gate-blue);
  border-radius: 50%;
  border: 3px solid var(--bg-primary);
}

.timeline-item .tl-year {
  font-weight: 700;
  color: var(--gate-blue-light);
  margin-bottom: 4px;
}

.timeline-item .tl-title {
  font-weight: 600;
  margin-bottom: 4px;
}

.timeline-item .tl-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ============================================================
   Services Page
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--gate-blue);
  box-shadow: var(--shadow-lg);
}

.service-card .svc-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}

.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.service-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 12px;
}

.service-card ul {
  padding-left: 18px;
}

.service-card ul li {
  list-style: disc;
  color: var(--text-secondary);
  font-size: 0.88rem;
  margin-bottom: 6px;
}

/* ============================================================
   FAQ Page
   ============================================================ */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-list details {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: var(--transition);
}

.faq-list details[open] {
  border-color: var(--gate-blue);
}

.faq-list summary {
  padding: 20px 24px;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
  transition: color var(--transition);
}

.faq-list summary:hover { color: var(--gate-blue-light); }

.faq-list summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--gate-blue-light);
  font-weight: 300;
  transition: transform var(--transition);
}

.faq-list details[open] summary::after {
  content: '−';
  transform: rotate(180deg);
}

.faq-list .faq-answer {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.8;
}

/* ============================================================
   Contact Page
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.contact-form {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.contact-form h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.9rem;
  transition: border-color var(--transition);
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gate-blue-light);
}

.form-group textarea { min-height: 120px; resize: vertical; }

.contact-info-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
}

.info-card:hover {
  border-color: var(--gate-blue-light);
  transform: translateX(4px);
}

.info-card h4 {
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 1rem;
}

.info-card p {
  color: var(--text-secondary);
  font-size: 0.88rem;
}

/* ============================================================
   Scroll Reveal
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Animations
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes numberCount {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .advantages-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: 1fr; }
  .about-content { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.4rem; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--bg-secondary);
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    gap: 4px;
  }
  .mobile-toggle { display: flex; }
  .advantages-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: 24px; }
  .hero h1 { font-size: 1.9rem; }
  .hero { padding: 110px 0 60px; }
  .coin-marquee { flex-direction: column; align-items: center; }
  .market-table-wrap { margin: 0 -24px; }
  .section-header h2 { font-size: 1.7rem; }
}
