/* ============================================
   策略实验室 - Strategy Lab
   Dashboard Trading Terminal Style
   ============================================ */

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

:root {
  --green: #28A745;
  --red: #DC3545;
  --gray: #6C757D;
  --dark: #000000;
  --darker: #0a0a0f;
  --card-bg: #111118;
  --card-border: #1a1a25;
  --gold: #FFC107;
  --white: #ffffff;
  --text-primary: #e0e0e0;
  --text-secondary: #9a9a9a;
  --font-heading: 'Arial', sans-serif;
  --font-body: 'Helvetica Neue', 'Helvetica', sans-serif;
}

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

body {
  font-family: var(--font-body);
  background-color: var(--dark);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: var(--green);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #34d058;
}

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

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 1rem;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.2rem; }

p {
  margin-bottom: 1rem;
  color: var(--text-primary);
}

/* === Grid System === */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

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

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* === Navigation === */
.nav-header {
  background: var(--darker);
  border-bottom: 1px solid var(--card-border);
  padding: 12px 0;
  position: relative;
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo img {
  width: 40px;
  height: 40px;
}

.nav-logo span {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--green);
  font-weight: bold;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 5px;
}

.nav-links a {
  display: block;
  padding: 8px 14px;
  color: var(--text-primary);
  font-size: 0.9rem;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active {
  background: rgba(40, 167, 69, 0.15);
  color: var(--green);
}

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--green);
  color: var(--green);
  padding: 6px 10px;
  font-size: 1.2rem;
  cursor: pointer;
  border-radius: 4px;
}

/* === Mobile Sidebar === */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.7);
  z-index: 998;
}

.sidebar-overlay.active {
  display: block;
}

.sidebar-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100%;
  background: var(--darker);
  border-left: 1px solid var(--green);
  z-index: 999;
  transition: right 0.3s ease;
  padding: 20px;
  overflow-y: auto;
}

.sidebar-menu.active {
  right: 0;
}

.sidebar-close {
  background: none;
  border: none;
  color: var(--green);
  font-size: 1.5rem;
  cursor: pointer;
  position: absolute;
  top: 15px;
  right: 15px;
}

.sidebar-menu .sidebar-links {
  list-style: none;
  margin-top: 50px;
}

.sidebar-menu .sidebar-links li {
  border-bottom: 1px solid var(--card-border);
}

.sidebar-menu .sidebar-links a {
  display: block;
  padding: 14px 10px;
  color: var(--text-primary);
  font-size: 1rem;
}

.sidebar-menu .sidebar-links a:hover {
  color: var(--green);
  background: rgba(40, 167, 69, 0.1);
}

/* === Hero Section === */
.hero-section {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 2px solid var(--green);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 40px 20px;
}

.hero-content h1 {
  font-size: 2.5rem;
  color: var(--green);
  text-shadow: 0 0 20px rgba(40, 167, 69, 0.5);
  margin-bottom: 1rem;
}

.hero-slogan {
  font-size: 1.2rem;
  color: var(--text-secondary);
  font-style: italic;
  margin-bottom: 2rem;
}

/* === Dashboard Cards === */
.dashboard-section {
  padding: 60px 0;
  border-bottom: 1px solid var(--card-border);
}

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

.section-header h2 {
  color: var(--green);
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 2px;
  background: var(--green);
}

.section-header p {
  color: var(--text-secondary);
  margin-top: 10px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 20px;
  transition: all 0.3s ease;
}

.card:hover {
  border-color: var(--green);
  box-shadow: 0 0 15px rgba(40, 167, 69, 0.15);
}

.card-img {
  border-radius: 4px;
  margin-bottom: 15px;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  transition: transform 0.3s ease;
}

.card:hover .card-img img {
  transform: scale(1.02);
}

.card h3 {
  color: var(--green);
  font-size: 1.15rem;
  margin-bottom: 10px;
}

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

/* === Timeline === */
.timeline-container {
  position: relative;
  padding: 30px 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--green);
  transform: translateX(-50%);
}

.timeline-item {
  position: relative;
  width: 45%;
  padding: 20px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  margin-bottom: 30px;
}

.timeline-item:nth-child(odd) {
  margin-left: 5%;
}

.timeline-item:nth-child(even) {
  margin-left: 50%;
}

.timeline-item::before {
  content: '';
  position: absolute;
  top: 25px;
  width: 12px;
  height: 12px;
  background: var(--green);
  border-radius: 50%;
}

.timeline-item:nth-child(odd)::before {
  right: -30px;
}

.timeline-item:nth-child(even)::before {
  left: -30px;
}

.timeline-year {
  color: var(--gold);
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: 8px;
}

/* === Stats Bar === */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  padding: 30px 0;
}

.stat-item {
  text-align: center;
  padding: 20px 10px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 6px;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--green);
  font-weight: bold;
}

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

/* === CTA Buttons === */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 4px;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-align: center;
}

.btn-green {
  background: var(--green);
  color: var(--dark);
}

.btn-green:hover {
  background: #34d058;
  color: var(--dark);
  box-shadow: 0 0 15px rgba(40, 167, 69, 0.4);
}

.btn-red {
  background: var(--red);
  color: var(--white);
}

.btn-red:hover {
  background: #e04050;
  box-shadow: 0 0 15px rgba(220, 53, 69, 0.4);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--green);
  color: var(--green);
}

.btn-outline:hover {
  background: var(--green);
  color: var(--dark);
}

/* === Data Table === */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

.data-table th {
  background: rgba(40, 167, 69, 0.15);
  color: var(--green);
  padding: 12px 15px;
  text-align: left;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  border-bottom: 2px solid var(--green);
}

.data-table td {
  padding: 10px 15px;
  border-bottom: 1px solid var(--card-border);
  font-size: 0.9rem;
}

.data-table tr:hover td {
  background: rgba(40, 167, 69, 0.05);
}

.text-green { color: var(--green); }
.text-red { color: var(--red); }
.text-gold { color: var(--gold); }

/* === Code Block === */
.code-block {
  background: var(--darker);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 20px;
  font-family: 'Courier New', monospace;
  font-size: 0.85rem;
  color: var(--green);
  overflow-x: auto;
  margin: 20px 0;
  line-height: 1.6;
}

/* === Trader Notes === */
.trader-note {
  background: linear-gradient(135deg, rgba(40, 167, 69, 0.08), rgba(0,0,0,0.3));
  border-left: 4px solid var(--gold);
  padding: 25px;
  margin: 25px 0;
  border-radius: 0 6px 6px 0;
}

.trader-note h4 {
  color: var(--gold);
  margin-bottom: 10px;
}

/* === Footer === */
.site-footer {
  background: var(--darker);
  border-top: 2px solid var(--green);
  padding: 50px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 30px;
}

.footer-col h4 {
  color: var(--green);
  font-size: 1rem;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--card-border);
}

.footer-col ul {
  list-style: none;
}

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

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

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

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 10px;
}

.footer-social a img {
  width: 36px;
  height: 36px;
  border-radius: 4px;
  transition: transform 0.3s ease;
}

.footer-social a img:hover {
  transform: scale(1.1);
}

.footer-bottom {
  border-top: 1px solid var(--card-border);
  padding-top: 20px;
  text-align: center;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 5px;
}

.footer-payments {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin: 15px 0;
  flex-wrap: wrap;
}

.footer-payments img {
  height: 30px;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.footer-payments img:hover {
  opacity: 1;
}

.footer-age {
  display: inline-block;
  margin: 10px 0;
}

.footer-age img {
  width: 50px;
  height: 50px;
}

.footer-license {
  display: flex;
  justify-content: center;
  margin: 15px 0;
}

.footer-license img {
  height: 60px;
}

.footer-ticker {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  padding: 8px 0;
  overflow: hidden;
  margin-top: 15px;
  border-radius: 4px;
}

.ticker-content {
  display: inline-block;
  white-space: nowrap;
  animation: ticker-scroll 30s linear infinite;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

@keyframes ticker-scroll {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* === Inner Page === */
.page-hero {
  padding: 60px 0 40px;
  background: linear-gradient(180deg, var(--darker), var(--dark));
  border-bottom: 1px solid var(--card-border);
}

.page-hero h1 {
  color: var(--green);
  text-align: center;
}

.page-hero p {
  text-align: center;
  color: var(--text-secondary);
  max-width: 700px;
  margin: 0 auto;
}

.page-content {
  padding: 50px 0;
}

.content-block {
  margin-bottom: 40px;
}

.content-block h2,
.content-block h3 {
  color: var(--green);
  margin-bottom: 15px;
}

.content-img {
  margin: 20px 0;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--card-border);
}

/* === Animations === */
@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 5px rgba(40, 167, 69, 0.3); }
  50% { box-shadow: 0 0 20px rgba(40, 167, 69, 0.6); }
}

@keyframes data-flash {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.pulse {
  animation: pulse-green 2s infinite;
}

.data-flash {
  animation: data-flash 1.5s infinite;
}

/* === Breadcrumb === */
.breadcrumb {
  padding: 12px 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.breadcrumb a {
  color: var(--text-secondary);
}

.breadcrumb a:hover {
  color: var(--green);
}

.breadcrumb span {
  margin: 0 8px;
  color: var(--gray);
}

/* === FAQ === */
.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  padding: 15px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
  color: var(--white);
}

.faq-question:hover {
  background: rgba(40, 167, 69, 0.05);
}

.faq-answer {
  padding: 0 20px 15px;
  color: var(--text-secondary);
  display: none;
  font-size: 0.92rem;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-toggle {
  color: var(--green);
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

/* === APP Download === */
.app-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 30px 0;
}

.app-feature-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 6px;
  padding: 25px;
  text-align: center;
}

.app-feature-item h4 {
  color: var(--green);
  margin-bottom: 8px;
}

.qr-section {
  display: flex;
  justify-content: center;
  gap: 60px;
  margin: 40px 0;
}

.qr-item {
  text-align: center;
}

.qr-item img {
  width: 160px;
  height: 160px;
  border: 2px solid var(--green);
  border-radius: 8px;
  padding: 5px;
}

.qr-item p {
  margin-top: 10px;
  color: var(--green);
  font-weight: bold;
}

/* === Responsive === */
@media (max-width: 992px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
}

@media (max-width: 768px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  
  .hero-content h1 { font-size: 1.6rem; }
  .hero-slogan { font-size: 1rem; }
  
  .timeline-line { left: 20px; }
  .timeline-item { width: calc(100% - 50px); margin-left: 50px !important; }
  .timeline-item::before { left: -35px !important; right: auto !important; }
  
  .qr-section { flex-direction: column; align-items: center; gap: 30px; }
  .app-features { grid-template-columns: 1fr; }
  
  .dashboard-section { padding: 40px 0; }
  .container { padding: 0 12px; }
}

@media (max-width: 480px) {
  html { font-size: 14px; }
  .stats-bar { grid-template-columns: 1fr; }
  .hero-section { min-height: 400px; }
}
