/* ========== 芝麻交易平台 - 全局样式 ========== */
:root {
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-card: #1a2332;
  --accent-teal: #14b8a6;
  --accent-teal-light: #2dd4bf;
  --accent-orange: #f97316;
  --accent-orange-light: #fb923c;
  --accent-gold: #eab308;
  --accent-gold-light: #facc15;
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border-color: #334155;
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.3);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

*, *::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', '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; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }

/* ========== 导航栏 ========== */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(15, 23, 42, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(20, 184, 166, 0.15);
  transition: var(--transition);
}
.header.scrolled { box-shadow: 0 4px 20px rgba(0,0,0,0.4); }

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

.nav-brand {
  font-size: 1.35rem; font-weight: 800;
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: 1px;
}

.nav-links { display: flex; align-items: center; gap: 8px; list-style: none; }
.nav-links a {
  padding: 8px 18px; border-radius: var(--radius-sm);
  font-size: 0.95rem; font-weight: 500; color: var(--text-secondary);
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active { color: var(--accent-teal); background: rgba(20,184,166,0.1); }

.nav-download {
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-gold)) !important;
  color: #fff !important; font-weight: 700 !important;
  padding: 10px 22px !important; border-radius: 50px !important;
  box-shadow: 0 4px 16px rgba(249,115,22,0.35);
  animation: pulse-cta 2s infinite;
}
.nav-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(249,115,22,0.5);
}

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 26px; height: 2.5px; background: var(--text-primary); margin: 6px 0; border-radius: 2px; transition: var(--transition); }

/* ========== Hero ========== */
.hero {
  padding: 140px 24px 100px;
  max-width: var(--max-width); margin: 0 auto;
  text-align: center;
  position: relative;
}
.hero::before {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(20,184,166,0.08), transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block; padding: 6px 20px; border-radius: 50px;
  background: rgba(20,184,166,0.12); color: var(--accent-teal);
  font-size: 0.9rem; font-weight: 600; margin-bottom: 24px;
  border: 1px solid rgba(20,184,166,0.2);
  animation: fadeInUp 0.8s ease;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900;
  line-height: 1.2; margin-bottom: 20px;
  background: linear-gradient(135deg, #fff, #14b8a6, #eab308);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s ease 0.15s both;
}

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

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

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 50px;
  font-size: 1rem; font-weight: 700; cursor: pointer;
  transition: var(--transition); border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-orange), var(--accent-gold));
  color: #fff; box-shadow: 0 4px 20px rgba(249,115,22,0.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(249,115,22,0.5); }

.btn-outline {
  background: transparent; border: 2px solid var(--accent-teal);
  color: var(--accent-teal);
}
.btn-outline:hover { background: rgba(20,184,166,0.1); transform: translateY(-3px); }

.hero-image {
  margin-top: 60px; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(20,184,166,0.2);
  animation: fadeInUp 0.8s ease 0.6s both;
}

/* ========== 特性 / 服务 / CTA 通用 ========== */
.section {
  max-width: var(--max-width); margin: 0 auto;
  padding: 80px 24px;
}

.section-header {
  text-align: center; margin-bottom: 56px;
  animation: fadeInUp 0.8s ease both;
}

.section-header h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800;
  margin-bottom: 12px;
}
.section-header h2 span { color: var(--accent-teal); }
.section-header p { color: var(--text-secondary); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }

.features-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius); padding: 32px 28px;
  transition: var(--transition); position: relative; overflow: hidden;
}
.feature-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-teal), var(--accent-gold));
  opacity: 0; transition: opacity 0.3s;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: 0 12px 36px rgba(20,184,166,0.1); border-color: var(--accent-teal); }
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 56px; height: 56px; border-radius: var(--radius-sm);
  background: rgba(20,184,166,0.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px; font-size: 1.6rem;
}

.feature-card h3 {
  font-size: 1.2rem; font-weight: 700; margin-bottom: 10px;
  color: var(--text-primary);
}

.feature-card p {
  color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7;
}

/* ========== 数据统计 ========== */
.stats-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  padding: 40px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-top: 20px;
}

.stat-item { text-align: center; }
.stat-number {
  font-size: 2.2rem; font-weight: 900;
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-gold));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { color: var(--text-muted); font-size: 0.9rem; margin-top: 4px; }

/* ========== CTA ========== */
.cta-section {
  text-align: center; padding: 80px 24px;
  background: linear-gradient(180deg, transparent, rgba(20,184,166,0.04), transparent);
}

.cta-section h2 {
  font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; margin-bottom: 16px;
}
.cta-section p { color: var(--text-secondary); margin-bottom: 36px; font-size: 1.05rem; }

/* ========== 关于页 ========== */
.about-hero {
  padding: 140px 24px 60px; max-width: var(--max-width); margin: 0 auto;
  text-align: center;
}

.timeline {
  max-width: 800px; margin: 0 auto; padding: 0 24px 80px;
  position: relative;
}
.timeline::before {
  content: ''; position: absolute; left: 50%; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(180deg, var(--accent-teal), var(--accent-gold));
  transform: translateX(-50%);
}
.timeline-item {
  display: flex; align-items: flex-start; margin-bottom: 40px;
  position: relative; animation: fadeInUp 0.6s ease both;
}
.timeline-item:nth-child(odd) { flex-direction: row; }
.timeline-item:nth-child(even) { flex-direction: row-reverse; }
.timeline-dot {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--accent-teal); border: 3px solid var(--bg-primary);
  position: absolute; left: 50%; transform: translateX(-50%);
  z-index: 1; margin-top: 4px;
}
.timeline-content {
  width: 44%; padding: 20px; background: var(--bg-card);
  border-radius: var(--radius); border: 1px solid var(--border-color);
}
.timeline-content h3 { color: var(--accent-teal); font-size: 1.05rem; margin-bottom: 6px; }
.timeline-content p { color: var(--text-secondary); font-size: 0.9rem; }

.security-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px; max-width: var(--max-width); margin: 0 auto; padding: 0 24px;
}

.security-item {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius); padding: 28px;
  border-left: 3px solid var(--accent-teal);
}

.team-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px; max-width: var(--max-width); margin: 0 auto; padding: 0 24px 80px;
}

.team-card {
  background: var(--bg-card); border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border-color);
  transition: var(--transition);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.team-card img { width: 100%; height: 200px; object-fit: cover; }
.team-info { padding: 20px; }
.team-info h3 { font-size: 1.1rem; margin-bottom: 4px; }
.team-info span { color: var(--accent-teal); font-size: 0.85rem; font-weight: 600; }
.team-info p { color: var(--text-secondary); font-size: 0.88rem; margin-top: 8px; }

/* ========== 服务页 ========== */
.service-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius); padding: 36px 28px;
  transition: var(--transition);
  display: flex; gap: 24px; align-items: flex-start;
}
.service-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(20,184,166,0.08); border-color: var(--accent-teal); }
.service-icon {
  font-size: 2.4rem; flex-shrink: 0; width: 64px; height: 64px;
  background: rgba(20,184,166,0.1); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
}
.service-content h3 { font-size: 1.2rem; margin-bottom: 8px; }
.service-content p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; margin-bottom: 12px; }
.service-content ul { list-style: none; }
.service-content ul li { padding: 4px 0; color: var(--text-muted); font-size: 0.88rem; }
.service-content ul li::before { content: '▸ '; color: var(--accent-teal); }

.services-table {
  max-width: var(--max-width); margin: 0 auto 80px; padding: 0 24px;
}
.services-table table {
  width: 100%; border-collapse: collapse;
  background: var(--bg-card); border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border-color);
}
.services-table th {
  background: rgba(20,184,166,0.1); padding: 16px 20px; text-align: left;
  font-weight: 700; color: var(--accent-teal); font-size: 0.9rem;
}
.services-table td {
  padding: 14px 20px; border-top: 1px solid var(--border-color);
  color: var(--text-secondary); font-size: 0.9rem;
}
.services-table tr:hover td { background: rgba(20,184,166,0.03); }

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

.faq-search {
  max-width: 600px; margin: 0 auto 40px;
}
.faq-search input {
  width: 100%; padding: 14px 20px; border-radius: 50px;
  background: var(--bg-card); border: 1px solid var(--border-color);
  color: var(--text-primary); font-size: 1rem; outline: none;
  transition: var(--transition);
}
.faq-search input:focus { border-color: var(--accent-teal); box-shadow: 0 0 0 3px rgba(20,184,166,0.15); }
.faq-search input::placeholder { color: var(--text-muted); }

details {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius-sm); margin-bottom: 12px;
  transition: var(--transition); overflow: hidden;
}
details:hover { border-color: var(--accent-teal); }
details[open] { border-color: var(--accent-teal); }

summary {
  padding: 18px 24px; font-weight: 700; font-size: 1rem;
  cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  color: var(--text-primary);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+'; font-size: 1.3rem; color: var(--accent-teal);
  font-weight: 400; transition: transform 0.3s;
}
details[open] summary::after { content: '−'; transform: rotate(180deg); }
details .faq-answer {
  padding: 0 24px 20px; color: var(--text-secondary);
  font-size: 0.95rem; line-height: 1.8;
}

.faq-category { margin-bottom: 40px; }
.faq-category h3 { color: var(--accent-teal); font-size: 1.2rem; margin-bottom: 16px; padding-left: 8px; border-left: 3px solid var(--accent-teal); }

/* ========== 联系页 ========== */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 40px; max-width: var(--max-width); margin: 0 auto;
}

.contact-form { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 36px; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; margin-bottom: 6px; font-weight: 600; font-size: 0.9rem; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px; border-radius: var(--radius-sm);
  background: var(--bg-secondary); border: 1px solid var(--border-color);
  color: var(--text-primary); font-size: 0.95rem; outline: none;
  transition: var(--transition); font-family: inherit;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--accent-teal); box-shadow: 0 0 0 3px rgba(20,184,166,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit {
  width: 100%; padding: 14px; border-radius: 50px; border: none;
  background: linear-gradient(135deg, var(--accent-teal), var(--accent-gold));
  color: #fff; font-size: 1rem; font-weight: 700; cursor: pointer;
  transition: var(--transition);
}
.form-submit:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(20,184,166,0.35); }

.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-info-card {
  background: var(--bg-card); border: 1px solid var(--border-color);
  border-radius: var(--radius); padding: 28px;
}
.contact-info-card h3 { color: var(--accent-teal); margin-bottom: 12px; font-size: 1.1rem; }
.contact-info-card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.8; }
.social-links { display: flex; gap: 12px; margin-top: 12px; }
.social-link {
  padding: 10px 18px; border-radius: 50px; background: var(--bg-secondary);
  color: var(--text-secondary); font-size: 0.9rem; font-weight: 600;
  border: 1px solid var(--border-color); transition: var(--transition);
}
.social-link:hover { background: rgba(20,184,166,0.1); border-color: var(--accent-teal); color: var(--accent-teal); }

/* ========== 页脚 ========== */
.footer {
  background: var(--bg-secondary); border-top: 1px solid var(--border-color);
  padding: 40px 24px 24px; text-align: center;
}
.footer-links { display: flex; gap: 32px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.footer-links a { color: var(--text-muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--accent-teal); }
.footer p { color: var(--text-muted); font-size: 0.85rem; }

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

@keyframes pulse-cta {
  0%, 100% { box-shadow: 0 4px 16px rgba(249,115,22,0.35); }
  50% { box-shadow: 0 4px 28px rgba(249,115,22,0.6); }
}

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

/* ========== 响应式 ========== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute;
    top: 68px; left: 0; right: 0; background: var(--bg-primary);
    padding: 16px; border-bottom: 1px solid var(--border-color);
  }
  .nav-toggle { display: block; }

  .hero { padding: 120px 20px 60px; }

  .features-grid { grid-template-columns: 1fr; }

  .stats-bar { grid-template-columns: repeat(2, 1fr); gap: 20px; }

  .timeline::before { left: 24px; }
  .timeline-item, .timeline-item:nth-child(even) { flex-direction: row; }
  .timeline-dot { left: 24px; }
  .timeline-content { width: calc(100% - 56px); margin-left: 40px; }

  .contact-grid { grid-template-columns: 1fr; }

  .service-card { flex-direction: column; }

  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.7rem; }
  .hero-subtitle { font-size: 1rem; }
  .btn { padding: 12px 24px; font-size: 0.9rem; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .footer-links { gap: 16px; }
  .security-grid { grid-template-columns: 1fr; }
}
