/* ============================================================
   欧义官网 / 欧义交易平台 - 主样式表
   配色：深色背景 #0a1628 | 科技蓝 #2563eb | 金色点缀 #f59e0b
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #0a1628;
  color: #e2e8f0;
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: #2563eb; text-decoration: none; transition: color 0.3s; }
a:hover { color: #f59e0b; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- 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 pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37,99,235,0.4); }
  50%      { box-shadow: 0 0 0 15px rgba(37,99,235,0); }
}
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes glowPulse {
  0%, 100% { text-shadow: 0 0 10px rgba(245,158,11,0.3); }
  50%      { text-shadow: 0 0 25px rgba(245,158,11,0.6); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Header & Navigation --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(10,22,40,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(37,99,235,0.15);
  transition: background 0.3s;
}
.site-header.scrolled {
  background: rgba(10,22,40,0.98);
  box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
}
.brand span { color: #2563eb; }
.brand small { color: #f59e0b; font-size: 0.75rem; margin-left: 4px; }

.main-nav ul {
  display: flex;
  gap: 8px;
}
.main-nav a {
  color: #cbd5e1;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all 0.3s;
}
.main-nav a:hover,
.main-nav a.active {
  color: #fff;
  background: rgba(37,99,235,0.2);
}
.nav-cta {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  color: #fff !important;
  border-radius: 20px !important;
  padding: 8px 22px !important;
}
.nav-cta:hover { background: linear-gradient(135deg, #3b82f6, #2563eb) !important; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  padding: 4px;
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: radial-gradient(ellipse at 50% 30%, rgba(37,99,235,0.12) 0%, transparent 70%),
              linear-gradient(180deg, #0a1628 0%, #0f1f3a 100%);
  padding-top: 68px;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-content h1 {
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 20px;
}
.hero-content h1 .highlight { color: #f59e0b; animation: glowPulse 3s infinite; }
.hero-content h1 .blue { color: #2563eb; }
.hero-content .subtitle {
  font-size: 1.2rem;
  color: #94a3b8;
  margin-bottom: 32px;
  max-width: 480px;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 28px;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  animation: pulse 2s infinite;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(37,99,235,0.4); color: #fff; }
.btn-gold {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0a1628;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(245,158,11,0.4); color: #0a1628; }
.btn-outline {
  border: 2px solid #2563eb;
  color: #2563eb;
  background: transparent;
}
.btn-outline:hover { background: rgba(37,99,235,0.1); transform: translateY(-2px); color: #2563eb; }
.hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: fadeInRight 1s ease-out;
}
.hero-image img {
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(37,99,235,0.2);
}

/* --- Section Common --- */
.section {
  padding: 100px 0;
}
.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header h2 {
  font-size: 2.4rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}
.section-header p {
  font-size: 1.1rem;
  color: #94a3b8;
  max-width: 640px;
  margin: 0 auto;
}
.section-header h2 .gold { color: #f59e0b; }
.section-header h2 .blue { color: #2563eb; }

/* --- Features Grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.feature-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(37,99,235,0.1);
  border-radius: 16px;
  padding: 36px 28px;
  transition: all 0.35s;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #2563eb, #f59e0b);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.35s;
}
.feature-card:hover::before { transform: scaleY(1); }
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(37,99,235,0.12);
  border-color: rgba(37,99,235,0.3);
  background: rgba(255,255,255,0.05);
}
.feature-icon {
  width: 56px;
  height: 56px;
  background: rgba(37,99,235,0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: #2563eb;
  transition: all 0.35s;
}
.feature-card:hover .feature-icon {
  background: #2563eb;
  color: #fff;
}
.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
}
.feature-card p {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.7;
}

/* --- Stats Section --- */
.stats-section {
  background: linear-gradient(135deg, rgba(37,99,235,0.08), rgba(245,158,11,0.05));
  border-top: 1px solid rgba(37,99,235,0.1);
  border-bottom: 1px solid rgba(37,99,235,0.1);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}
.stat-item .stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: #f59e0b;
  line-height: 1;
}
.stat-item .stat-label {
  color: #94a3b8;
  margin-top: 8px;
  font-size: 0.95rem;
}

/* --- CTA Section --- */
.cta-section {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  text-align: center;
}
.cta-section h2 {
  font-size: 2.2rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}
.cta-section p {
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
  font-size: 1.1rem;
}
.cta-section .btn-primary {
  background: #f59e0b;
  color: #0a1628;
  font-size: 1.15rem;
  padding: 16px 40px;
  animation: none;
}
.cta-section .btn-primary:hover {
  background: #fbbf24;
  box-shadow: 0 8px 25px rgba(245,158,11,0.5);
}

/* --- Timeline (About) --- */
.timeline {
  position: relative;
  padding: 40px 0;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, #2563eb, #f59e0b);
  transform: translateX(-50%);
}
.timeline-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 48px;
  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%;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background: #2563eb;
  border-radius: 50%;
  border: 3px solid #0a1628;
  box-shadow: 0 0 0 4px rgba(37,99,235,0.3);
  z-index: 2;
}
.timeline-content {
  width: 42%;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(37,99,235,0.1);
  border-radius: 12px;
  padding: 24px;
}
.timeline-item:nth-child(odd) .timeline-content { margin-right: 58%; }
.timeline-item:nth-child(even) .timeline-content { margin-left: 58%; }
.timeline-content h3 { color: #2563eb; margin-bottom: 6px; font-size: 1.1rem; }
.timeline-content .year { color: #f59e0b; font-weight: 700; font-size: 0.9rem; }
.timeline-content p { color: #94a3b8; font-size: 0.95rem; margin-top: 6px; }

/* --- Team Grid --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.team-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(37,99,235,0.1);
  border-radius: 16px;
  padding: 30px 20px;
  transition: all 0.35s;
}
.team-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(37,99,235,0.12); }
.team-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 3px solid rgba(37,99,235,0.3);
}
.team-card h4 { color: #fff; font-size: 1.05rem; margin-bottom: 4px; }
.team-card .role { color: #2563eb; font-size: 0.85rem; }

/* --- Services Grid --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.service-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(37,99,235,0.1);
  border-radius: 16px;
  padding: 40px 28px;
  transition: all 0.35s;
  text-align: center;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(37,99,235,0.12);
  border-color: rgba(37,99,235,0.3);
}
.service-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 20px;
}
.service-card h3 { color: #fff; font-size: 1.2rem; margin-bottom: 10px; }
.service-card p { color: #94a3b8; font-size: 0.95rem; }

/* --- FAQ --- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(37,99,235,0.1);
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
}
.faq-item summary {
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600;
  color: #fff;
  font-size: 1.05rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 1.5rem;
  color: #2563eb;
  transition: transform 0.3s;
}
.faq-item[open] summary::after {
  content: '−';
  transform: rotate(180deg);
}
.faq-item[open] { border-color: rgba(37,99,235,0.3); }
.faq-item .faq-answer {
  padding: 0 24px 20px;
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.8;
}

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
}
.contact-form .form-group { margin-bottom: 20px; }
.contact-form label {
  display: block;
  color: #cbd5e1;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 0.9rem;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: 8px;
  color: #fff;
  font-size: 0.95rem;
  transition: border-color 0.3s;
  font-family: inherit;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37,99,235,0.15);
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form select { appearance: none; }
.contact-form select option { background: #0f1f3a; color: #fff; }
.contact-info-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(37,99,235,0.1);
  border-radius: 16px;
  padding: 32px;
}
.contact-info-card h3 { color: #fff; margin-bottom: 20px; font-size: 1.3rem; }
.contact-info-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 20px;
}
.contact-info-item .info-icon {
  width: 40px;
  height: 40px;
  background: rgba(37,99,235,0.12);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.contact-info-item .info-text { color: #94a3b8; font-size: 0.95rem; }
.contact-info-item .info-text strong { color: #fff; display: block; margin-bottom: 2px; }
.social-links { display: flex; gap: 12px; margin-top: 20px; }
.social-link {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(37,99,235,0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  transition: all 0.3s;
}
.social-link:hover { background: #2563eb; color: #fff; }

/* --- Page Hero (内页通用) --- */
.page-hero {
  background: radial-gradient(ellipse at 50% 30%, rgba(37,99,235,0.1) 0%, transparent 70%),
              linear-gradient(180deg, #0a1628 0%, #0f1f3a 100%);
  padding: 140px 0 80px;
  text-align: center;
}
.page-hero h1 { font-size: 2.8rem; font-weight: 800; color: #fff; margin-bottom: 16px; }
.page-hero p { color: #94a3b8; font-size: 1.15rem; max-width: 600px; margin: 0 auto; }

/* --- Footer --- */
.site-footer {
  background: #060e1a;
  border-top: 1px solid rgba(37,99,235,0.1);
  padding: 60px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-col h4 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 16px;
}
.footer-col p, .footer-col a { color: #94a3b8; font-size: 0.9rem; line-height: 2; }
.footer-col a:hover { color: #f59e0b; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 20px;
  text-align: center;
  color: #64748b;
  font-size: 0.85rem;
}

/* --- Breadcrumb --- */
.breadcrumb {
  padding: 12px 0;
  font-size: 0.9rem;
  color: #94a3b8;
}
.breadcrumb a { color: #2563eb; }
.breadcrumb span { color: #64748b; }

/* --- Responsive --- */
@media (max-width: 992px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-content .subtitle { margin: 0 auto 32px; }
  .hero-image { order: -1; }
  .hero-buttons { justify-content: center; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .timeline::before { left: 20px; }
  .timeline-dot { left: 20px; }
  .timeline-content { width: calc(100% - 50px); margin: 0 0 0 50px !important; }
  .timeline-item { flex-direction: row !important; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .main-nav.open { display: block; position: absolute; top: 68px; left: 0; width: 100%; background: rgba(10,22,40,0.98); padding: 20px; }
  .main-nav.open ul { flex-direction: column; gap: 4px; }
  .menu-toggle { display: block; }
  .features-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 2.2rem; }
  .section-header h2 { font-size: 1.8rem; }
  .page-hero h1 { font-size: 2rem; }
}
