/* ============================================
   okb交易所 - 数字资产安全托管平台
   配色：深色(#060e1a)+科技蓝(#2563eb)+安全绿(#10b981)+AI紫(#8b5cf6)+白色
   ============================================ */

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

:root {
  --bg-primary: #060e1a;
  --bg-secondary: #0d1b2a;
  --bg-card: #111f33;
  --blue: #2563eb;
  --blue-light: #3b82f6;
  --green: #10b981;
  --green-light: #34d399;
  --purple: #8b5cf6;
  --purple-light: #a78bfa;
  --text-primary: #ffffff;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: #1e3a5f;
  --glow-blue: rgba(37, 99, 235, 0.3);
  --glow-green: rgba(16, 185, 129, 0.3);
  --glow-purple: rgba(139, 92, 246, 0.3);
}

html { scroll-behavior: smooth; }

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 { color: var(--blue-light); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--blue); }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.3; }

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }

section { padding: 100px 0; position: relative; }

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

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--glow-blue); }
  50%      { box-shadow: 0 0 0 15px rgba(37, 99, 235, 0); }
}

@keyframes scanLine {
  0%   { top: -10%; opacity: 0.8; }
  100% { top: 110%; opacity: 0; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 5px var(--glow-blue), 0 0 20px var(--glow-blue); }
  50%      { box-shadow: 0 0 20px var(--glow-blue), 0 0 40px var(--glow-blue); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Header / Nav ---------- */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(6, 14, 26, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo {
  font-size: 1.5rem; font-weight: 800;
  background: linear-gradient(135deg, var(--blue-light), var(--green), var(--purple-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo span { font-size: 0.85rem; font-weight: 400; display: block; letter-spacing: 2px; }

nav ul { list-style: none; display: flex; gap: 32px; }
nav a {
  color: var(--text-secondary); font-weight: 500; font-size: 0.95rem;
  position: relative; padding: 4px 0;
}
nav a::after {
  content: ""; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px;
  background: var(--blue-light); transition: width 0.3s;
}
nav a:hover, nav a.active { color: var(--text-primary); }
nav a:hover::after, nav a.active::after { width: 100%; }

.menu-toggle { display: none; background: none; border: none; cursor: pointer; }
.menu-toggle span {
  display: block; width: 24px; height: 2px; background: var(--text-primary);
  margin: 5px 0; transition: 0.3s;
}

/* ---------- Hero ---------- */
#hero {
  min-height: 100vh; display: flex; align-items: center;
  background: radial-gradient(ellipse at 20% 50%, rgba(37,99,235,0.15), transparent 60%),
              radial-gradient(ellipse at 80% 50%, rgba(139,92,246,0.1), transparent 60%),
              var(--bg-primary);
  position: relative; overflow: hidden; padding-top: 72px;
}
#hero::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: urlimage/svg+xml,%3Csvg width='60' height='60' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='30' cy='30' r='1' fill='%232563eb' opacity='0.15'/%3E%3C/svg%3E");
  opacity: 0.5;
}
.hero-content { position: relative; z-index: 2; max-width: 750px; }
.hero-content h1 {
  background: linear-gradient(135deg, #fff 0%, var(--blue-light) 50%, var(--green) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 24px;
}
.hero-content p {
  font-size: 1.15rem; color: var(--text-secondary); margin-bottom: 16px; line-height: 1.8;
}
.hero-badges { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px; border-radius: 20px; font-size: 0.85rem; font-weight: 600;
  background: rgba(37, 99, 235, 0.15); color: var(--blue-light); border: 1px solid rgba(37, 99, 235, 0.3);
}
.badge.green { background: rgba(16,185,129,0.15); color: var(--green); border-color: rgba(16,185,129,0.3); }
.badge.purple { background: rgba(139,92,246,0.15); color: var(--purple-light); border-color: rgba(139,92,246,0.3); }

.hero-stats { display: flex; gap: 40px; margin: 32px 0; flex-wrap: wrap; }
.hero-stats .stat { text-align: center; }
.hero-stats .stat-number {
  font-size: 2.2rem; font-weight: 800;
  background: linear-gradient(135deg, var(--blue-light), var(--green));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-stats .stat-label { font-size: 0.85rem; color: var(--text-muted); margin-top: 4px; }

.cta-group { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 36px; border-radius: 8px; font-size: 1rem; font-weight: 700;
  border: none; cursor: pointer; transition: all 0.3s; text-align: center;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: #fff; animation: pulse 2s infinite;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px var(--glow-blue); color: #fff; }
.btn-secondary {
  background: transparent; color: var(--text-primary);
  border: 2px solid var(--border);
}
.btn-secondary:hover { border-color: var(--blue-light); color: var(--blue-light); }
.btn-green {
  background: linear-gradient(135deg, var(--green), var(--green-light));
  color: #fff;
}
.btn-green:hover { transform: translateY(-2px); box-shadow: 0 8px 30px var(--glow-green); color: #fff; }

/* ---------- AI Scan Line Animation ---------- */
.ai-scan-container { position: relative; overflow: hidden; }
.ai-scan-line {
  position: absolute; left: 0; width: 100%; height: 3px;
  background: linear-gradient(90deg, transparent, var(--blue-light), var(--green), var(--blue-light), transparent);
  animation: scanLine 3s linear infinite;
  z-index: 1;
}

/* ---------- Sections Common ---------- */
.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2 {
  background: linear-gradient(135deg, var(--blue-light), var(--green));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 16px;
}
.section-header p { color: var(--text-secondary); max-width: 650px; margin: 0 auto; }

/* ---------- Features ---------- */
#features { background: var(--bg-secondary); }
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px;
}
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px;
  padding: 40px 32px; transition: all 0.4s; position: relative; overflow: hidden;
}
.feature-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--green), var(--purple));
  opacity: 0; transition: opacity 0.4s;
}
.feature-card:hover { transform: translateY(-8px); border-color: var(--blue); box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 64px; height: 64px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; margin-bottom: 24px; position: relative;
}
.feature-icon.blue   { background: rgba(37,99,235,0.15); color: var(--blue-light); }
.feature-icon.green  { background: rgba(16,185,129,0.15); color: var(--green); }
.feature-icon.purple { background: rgba(139,92,246,0.15); color: var(--purple-light); }

.feature-card h3 { margin-bottom: 12px; color: var(--text-primary); }
.feature-card p  { color: var(--text-secondary); font-size: 0.95rem; }

/* ---------- About Timeline ---------- */
.timeline { position: relative; padding-left: 40px; }
.timeline::before {
  content: ""; position: absolute; left: 15px; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, var(--blue), var(--green), var(--purple));
}
.timeline-item { position: relative; margin-bottom: 40px; }
.timeline-item::before {
  content: ""; position: absolute; left: -33px; top: 4px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--blue); border: 3px solid var(--bg-primary);
}
.timeline-item:nth-child(even)::before { background: var(--green); }
.timeline-item:nth-child(3n)::before  { background: var(--purple); }
.timeline-year { font-size: 1.1rem; font-weight: 700; color: var(--blue-light); margin-bottom: 4px; }
.timeline-title { font-size: 1.05rem; font-weight: 600; margin-bottom: 6px; }
.timeline-desc { color: var(--text-secondary); font-size: 0.9rem; }

/* ---------- Services ---------- */
#services { background: var(--bg-primary); }
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px;
}
.service-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px;
  padding: 40px 32px; text-align: center; transition: all 0.4s;
}
.service-card:hover { transform: translateY(-8px); border-color: var(--green); box-shadow: 0 20px 60px rgba(0,0,0,0.3); }
.service-icon {
  width: 80px; height: 80px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 2rem; margin: 0 auto 24px;
  background: rgba(16,185,129,0.15); color: var(--green);
}
.service-card h3 { margin-bottom: 12px; }
.service-card p { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 20px; }
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.service-tag {
  padding: 4px 12px; border-radius: 12px; font-size: 0.8rem;
  background: rgba(37,99,235,0.1); color: var(--blue-light); border: 1px solid rgba(37,99,235,0.2);
}

/* ---------- CTA Section ---------- */
#cta {
  background: radial-gradient(ellipse at center, rgba(37,99,235,0.2), transparent 70%), var(--bg-secondary);
  text-align: center;
}
#cta h2 {
  background: linear-gradient(135deg, #fff, var(--blue-light));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 16px;
}
#cta p { color: var(--text-secondary); max-width: 600px; margin: 0 auto 32px; }

/* ---------- FAQ ---------- */
#faq { background: var(--bg-secondary); }
.faq-search {
  max-width: 600px; margin: 0 auto 40px; position: relative;
}
.faq-search input {
  width: 100%; padding: 16px 24px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--bg-card); color: var(--text-primary); font-size: 1rem;
  outline: none; transition: border-color 0.3s;
}
.faq-search input:focus { border-color: var(--blue-light); }
.faq-search input::placeholder { color: var(--text-muted); }
.faq-categories { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 32px; }
.faq-cat {
  padding: 8px 20px; border-radius: 20px; font-size: 0.9rem; cursor: pointer;
  background: var(--bg-card); color: var(--text-secondary); border: 1px solid var(--border);
  transition: all 0.3s;
}
.faq-cat.active, .faq-cat:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  margin-bottom: 16px; overflow: hidden; transition: border-color 0.3s;
}
.faq-item:hover { border-color: var(--blue); }
.faq-item summary {
  padding: 20px 24px; cursor: pointer; font-weight: 600; font-size: 1.05rem;
  list-style: none; display: flex; align-items: center; justify-content: space-between;
  color: var(--text-primary); transition: color 0.3s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 1.5rem; color: var(--blue-light); transition: transform 0.3s;
  flex-shrink: 0; margin-left: 16px;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:hover { color: var(--blue-light); }
.faq-answer { padding: 0 24px 24px; color: var(--text-secondary); line-height: 1.8; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.contact-form input, .contact-form select, .contact-form textarea {
  padding: 14px 18px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--bg-card); color: var(--text-primary); font-size: 0.95rem;
  outline: none; transition: border-color 0.3s; font-family: inherit;
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  border-color: var(--blue-light);
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form label { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: -12px; }

.contact-info { display: flex; flex-direction: column; gap: 24px; }
.info-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  padding: 24px; display: flex; align-items: flex-start; gap: 16px; transition: border-color 0.3s;
}
.info-card:hover { border-color: var(--blue); }
.info-icon {
  width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
  background: rgba(37,99,235,0.15); color: var(--blue-light);
}
.info-card h4 { font-size: 1rem; margin-bottom: 4px; }
.info-card p { color: var(--text-secondary); font-size: 0.9rem; }

.social-links { display: flex; gap: 12px; margin-top: 8px; }
.social-link {
  width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: var(--bg-card); border: 1px solid var(--border); color: var(--text-secondary);
  font-size: 1.2rem; transition: all 0.3s;
}
.social-link:hover { border-color: var(--blue-light); color: var(--blue-light); transform: translateY(-3px); }

/* ---------- Footer ---------- */
footer {
  background: var(--bg-secondary); border-top: 1px solid var(--border); padding: 60px 0 30px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 40px;
}
.footer-brand p { color: var(--text-secondary); font-size: 0.9rem; margin-top: 16px; }
.footer-col h4 { font-size: 1rem; margin-bottom: 20px; color: var(--text-primary); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 12px; }
.footer-col a { color: var(--text-secondary); font-size: 0.9rem; transition: color 0.3s; }
.footer-col a:hover { color: var(--blue-light); }

.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.footer-bottom p { color: var(--text-muted); font-size: 0.85rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  nav ul {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: rgba(6,14,26,0.98); flex-direction: column; padding: 24px;
    border-bottom: 1px solid var(--border);
  }
  nav ul.open { display: flex; }
  .contact-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  section { padding: 70px 0; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.8rem; }
  .cta-group { flex-direction: column; }
  .btn { width: 100%; }
  .hero-stats { flex-direction: column; gap: 16px; }
}
