/* ========================================
   炒币app - 主样式表
   数字资产守护者主题
   ======================================== */

/* === CSS Variables === */
:root {
  --bg-primary: #0f1923;
  --bg-secondary: #162230;
  --bg-card: #1a2d3d;
  --bg-dark: #0a1118;
  --gold: #d4a84b;
  --gold-light: #e8c97a;
  --gold-dark: #b8922f;
  --red: #e74c3c;
  --orange: #f39c12;
  --white: #ffffff;
  --text-primary: #e8edf2;
  --text-secondary: #a0b0c0;
  --text-muted: #6b7d8e;
  --border: #2a3d4f;
  --gradient-warm: linear-gradient(135deg, #e74c3c, #f39c12);
  --gradient-gold: linear-gradient(135deg, #d4a84b, #f0d68a);
  --gradient-dark: linear-gradient(180deg, #0f1923 0%, #162230 100%);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.5);
  --shadow-gold: 0 0 20px rgba(212,168,75,0.3);
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition: 0.3s ease;
  --font-primary: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --max-width: 1200px;
}

/* === Reset === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-primary);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

/* === Utility === */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 3rem;
}
.gradient-text {
  background: var(--gradient-warm);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* === Buttons === */
.btn {
  display: inline-block;
  padding: 14px 36px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--gradient-warm);
  color: var(--white);
  box-shadow: 0 4px 15px rgba(231,76,60,0.4);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(231,76,60,0.6);
}
.btn-gold {
  background: var(--gradient-gold);
  color: var(--bg-primary);
  box-shadow: 0 4px 15px rgba(212,168,75,0.4);
}
.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(212,168,75,0.6);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--gold);
  color: var(--gold);
}
.btn-outline:hover {
  background: var(--gold);
  color: var(--bg-primary);
  transform: translateY(-3px);
}
.btn-lg { padding: 16px 48px; font-size: 1.15rem; }

/* === Header / Navigation === */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15,25,35,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(212,168,75,0.15);
  transition: all var(--transition);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--gold);
  text-decoration: none;
  letter-spacing: 1px;
}
.brand span { color: var(--white); }
.nav-links { display: flex; list-style: none; gap: 8px; }
.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all var(--transition);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--gold);
  background: rgba(212,168,75,0.1);
}
.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.8rem; cursor: pointer; }

/* === Hero Section === */
#hero {
  padding: 140px 0 100px;
  background: var(--gradient-dark);
  position: relative;
  overflow: hidden;
}
#hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(212,168,75,0.05) 0%, transparent 50%),
              radial-gradient(circle at 70% 50%, rgba(231,76,60,0.04) 0%, transparent 50%);
  animation: heroGlow 8s ease-in-out infinite;
}
@keyframes heroGlow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -20px); }
}
.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.hero-content h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 1.5rem;
}
.hero-content h1 .gold { color: var(--gold); }
.hero-content p {
  font-size: 1.2rem;
  color: var(--text-secondary);
  margin-bottom: 2.5rem;
  line-height: 1.8;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-image {
  text-align: center;
  margin-top: 3rem;
  position: relative;
  z-index: 1;
}
.hero-image img {
  max-width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* === Features === */
#features {
  padding: 80px 0;
  background: var(--bg-secondary);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gradient-warm);
  opacity: 0;
  transition: opacity var(--transition);
}
.feature-card:hover::before { opacity: 1; }
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-gold);
  border-color: rgba(212,168,75,0.4);
}
.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  font-size: 1.8rem;
  background: rgba(212,168,75,0.1);
  border: 1px solid rgba(212,168,75,0.2);
}
.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--white);
}
.feature-card p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* === Market Ticker === */
#market {
  padding: 80px 0;
  background: var(--bg-primary);
}
.market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.market-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  border: 1px solid var(--border);
  text-align: center;
  transition: all var(--transition);
}
.market-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.market-card .coin-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  background: var(--gradient-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--bg-primary);
}
.market-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.market-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.market-change {
  font-size: 1rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  display: inline-block;
}
.market-change.up { background: rgba(46,204,113,0.15); color: #2ecc71; }
.market-change.down { background: rgba(231,76,60,0.15); color: #e74c3c; }

/* === Services === */
#services {
  padding: 80px 0;
  background: var(--bg-secondary);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}
.service-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
  border-color: var(--gold);
}
.service-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  color: var(--gold);
}
.service-card p { color: var(--text-secondary); font-size: 0.95rem; }

/* === CTA === */
#cta {
  padding: 100px 0;
  background: linear-gradient(135deg, #1a1a2e 0%, #162230 50%, #0f1923 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
#cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse at center, rgba(212,168,75,0.06) 0%, transparent 70%);
}
#cta .container { position: relative; z-index: 1; }
#cta h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: var(--white);
}
#cta p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem;
}
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* === Page Banner === */
.page-banner {
  padding: 130px 0 70px;
  background: var(--gradient-dark);
  text-align: center;
  border-bottom: 1px solid rgba(212,168,75,0.1);
}
.page-banner h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 1rem;
}
.page-banner p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* === About Page === */
.timeline {
  position: relative;
  padding: 40px 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), var(--red));
  transform: translateX(-50%);
}
.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 40px;
  position: relative;
}
.timeline-item:nth-child(odd) { flex-direction: row; }
.timeline-item:nth-child(even) { flex-direction: row-reverse; }
.timeline-dot {
  position: absolute;
  left: 50%;
  width: 16px;
  height: 16px;
  background: var(--gold);
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 12px rgba(212,168,75,0.5);
  z-index: 1;
}
.timeline-content {
  width: 45%;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border);
}
.timeline-item:nth-child(odd) .timeline-content { margin-right: 5%; }
.timeline-item:nth-child(even) .timeline-content { margin-left: 5%; }
.timeline-content h3 {
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.timeline-content .year {
  display: inline-block;
  background: var(--gradient-warm);
  color: var(--white);
  padding: 4px 14px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}
.team-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 32px 20px;
  text-align: center;
  border: 1px solid var(--border);
  transition: all var(--transition);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-gold); }
.team-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-bottom: 1rem;
  border: 3px solid var(--gold);
}
.team-card h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.team-card .role { color: var(--gold); font-size: 0.9rem; margin-bottom: 0.8rem; }

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.stat-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 32px 20px;
  text-align: center;
  border: 1px solid var(--border);
}
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 0.3rem;
}
.stat-label { color: var(--text-secondary); font-size: 0.95rem; }

/* === FAQ === */
.faq-section {
  padding: 60px 0;
  background: var(--bg-primary);
}
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: all var(--transition);
}
.faq-item:hover { border-color: rgba(212,168,75,0.3); }
.faq-item summary {
  padding: 20px 24px;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--white);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--gold);
  font-weight: 300;
  transition: transform var(--transition);
}
.faq-item[open] summary::after {
  content: '\2013';
  transform: rotate(180deg);
}
.faq-item .faq-answer {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 0.95rem;
}
.faq-categories {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.faq-cat {
  padding: 8px 20px;
  border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all var(--transition);
  text-decoration: none;
}
.faq-cat:hover, .faq-cat.active {
  background: rgba(212,168,75,0.15);
  border-color: var(--gold);
  color: var(--gold);
}

/* === Contact === */
.contact-section { padding: 60px 0; background: var(--bg-primary); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}
.contact-form {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 36px;
  border: 1px solid var(--border);
}
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: var(--text-primary);
  font-size: 0.95rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: var(--font-primary);
  transition: border var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--gold);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.contact-info {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 36px;
  border: 1px solid var(--border);
}
.contact-info h3 {
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  color: var(--gold);
}
.contact-info-item {
  display: flex;
  gap: 14px;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}
.contact-info-item .info-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(212,168,75,0.1);
  border: 1px solid rgba(212,168,75,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
  color: var(--gold);
}
.contact-info-item h4 { font-size: 0.95rem; margin-bottom: 0.2rem; }
.contact-info-item p { color: var(--text-secondary); font-size: 0.9rem; }
.social-links { display: flex; gap: 12px; margin-top: 1.5rem; }
.social-link {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition);
  text-decoration: none;
}
.social-link:hover { background: var(--gold); color: var(--bg-primary); border-color: var(--gold); }

/* === Footer === */
.site-footer {
  background: var(--bg-dark);
  border-top: 1px solid rgba(212,168,75,0.1);
  padding: 40px 0;
  text-align: center;
}
.site-footer p { color: var(--text-muted); font-size: 0.9rem; }
.footer-links { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; margin-bottom: 1rem; }
.footer-links a { color: var(--text-secondary); text-decoration: none; font-size: 0.9rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--gold); }

/* === Animations === */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes countUp {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,168,75,0.4); }
  50% { box-shadow: 0 0 0 15px rgba(212,168,75,0); }
}

.animate-fadeInUp { animation: fadeInUp 0.8s ease forwards; }
.animate-fadeInLeft { animation: fadeInLeft 0.8s ease forwards; }
.animate-fadeInRight { animation: fadeInRight 0.8s ease forwards; }
.animate-delay-1 { animation-delay: 0.2s; }
.animate-delay-2 { animation-delay: 0.4s; }
.animate-delay-3 { animation-delay: 0.6s; }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === Responsive === */
@media (max-width: 1024px) {
  .hero-content h1 { font-size: 2.4rem; }
  .section-title { font-size: 1.8rem; }
  .page-banner h1 { font-size: 2.2rem; }
  .timeline::before { left: 20px; }
  .timeline-item,
  .timeline-item:nth-child(even) { flex-direction: row; }
  .timeline-dot { left: 20px; }
  .timeline-content { width: calc(100% - 50px); margin-left: 40px !important; margin-right: 0 !important; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(15,25,35,0.98);
    flex-direction: column;
    padding: 20px;
    gap: 4px;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(20px);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; font-size: 1rem; }
  .nav-toggle { display: block; }
  .hero-content h1 { font-size: 2rem; }
  .hero-content p { font-size: 1rem; }
  .features-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .market-grid { grid-template-columns: 1fr; }
  .page-banner { padding: 110px 0 50px; }
  .page-banner h1 { font-size: 1.8rem; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.6rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .btn { padding: 12px 28px; font-size: 0.95rem; }
  .section-title { font-size: 1.5rem; }
  .stat-number { font-size: 2rem; }
}
