/* ============ CSS Variables & Reset ============ */
:root {
  --primary: #1a1a2e;
  --primary-light: #16213e;
  --accent: #6c63ff;
  --accent-light: #8b83ff;
  --blue: #3b82f6;
  --gradient: linear-gradient(135deg, #6c63ff, #3b82f6);
  --gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dark: #1e293b;
  --bg: #0f172a;
  --bg-card: rgba(30, 41, 59, 0.6);
  --border: rgba(148, 163, 184, 0.1);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-lg: 0 8px 48px rgba(0,0,0,0.4);
  --max-width: 1200px;
  --header-h: 72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--accent-light); text-decoration: none; }

img { max-width: 100%; display: block; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* ============ Header / Nav ============ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h);
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center;
}

.header .container {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
}

.logo {
  font-size: 1.5rem; font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav { display: flex; gap: 32px; align-items: center; }
.nav a { color: var(--text-muted); font-size: 0.9rem; transition: color 0.2s; }
.nav a:hover { color: #fff; }
.nav a.nav-active { color: var(--accent-light); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 24px; border-radius: 50px; font-size: 0.9rem;
  font-weight: 600; cursor: pointer; border: none; transition: all 0.3s;
  white-space: nowrap;
}
.btn-primary { background: var(--gradient); color: #fff; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 4px 20px rgba(108,99,255,0.4); }
.btn-outline { background: transparent; border: 1px solid rgba(255,255,255,0.3); color: #fff; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent-light); }
.btn-lg { padding: 14px 36px; font-size: 1rem; }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; z-index: 1001; }
.hamburger span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: 0.3s; }

/* ============ Hero ============ */
.hero {
  padding: calc(var(--header-h) + 80px) 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: var(--gradient-dark);
}

.hero::before {
  content: '';
  position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 50%, rgba(108,99,255,0.15) 0%, transparent 50%),
              radial-gradient(circle at 70% 30%, rgba(59,130,246,0.1) 0%, transparent 50%);
  animation: heroGlow 8s ease-in-out infinite alternate;
}
@keyframes heroGlow {
  0% { transform: translate(0, 0); }
  100% { transform: translate(2%, 1%); }
}

.hero .container { position: relative; z-index: 1; }

.hero-badge {
  display: inline-block; padding: 6px 16px; border-radius: 50px;
  background: rgba(108,99,255,0.15); border: 1px solid rgba(108,99,255,0.3);
  font-size: 0.85rem; color: var(--accent-light); margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; line-height: 1.2;
  margin-bottom: 24px;
}
.hero h1 span { background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem); color: var(--text-muted);
  max-width: 640px; margin: 0 auto 40px;
}

.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-mockup {
  margin-top: 64px; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

/* ============ Page Banner (sub-pages) ============ */
.page-banner {
  padding: calc(var(--header-h) + 48px) 0 48px;
  background: var(--gradient-dark);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: '';
  position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(108,99,255,0.12) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(59,130,246,0.08) 0%, transparent 50%);
  animation: heroGlow 10s ease-in-out infinite alternate;
}

.page-banner .container { position: relative; z-index: 1; }

.page-banner h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800;
  margin-bottom: 12px;
}

.page-banner p {
  color: var(--text-muted); max-width: 560px; margin: 0 auto;
  font-size: clamp(0.9rem, 1.5vw, 1.05rem);
}

.breadcrumb {
  display: flex; gap: 8px; align-items: center; justify-content: center;
  margin-bottom: 24px; font-size: 0.85rem; color: var(--text-muted);
}
.breadcrumb a { color: var(--accent-light); }
.breadcrumb span { color: var(--text-muted); }

/* ============ Section Common ============ */
.section { padding: 100px 0; }

.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; margin-bottom: 16px; }
.section-header p { color: var(--text-muted); max-width: 560px; margin: 0 auto; }

/* ============ Capabilities Grid ============ */
.caps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.cap-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  transition: all 0.3s;
  backdrop-filter: blur(8px);
}
.cap-card:hover { transform: translateY(-4px); border-color: rgba(108,99,255,0.3); box-shadow: var(--shadow); }

.cap-icon {
  width: 52px; height: 52px; border-radius: var(--radius-sm);
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 20px;
}

.cap-card h3 { font-size: 1.1rem; margin-bottom: 10px; }
.cap-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }

/* ============ Highlights ============ */
.highlights {
  background: var(--primary-light);
}

.highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.highlight-item {
  display: flex; gap: 20px;
  padding: 32px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.highlight-num {
  font-size: 2rem; font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.highlight-content h3 { font-size: 1.05rem; margin-bottom: 8px; }
.highlight-content p { color: var(--text-muted); font-size: 0.9rem; }

/* ============ Showcase Tabs ============ */
.tabs { display: flex; justify-content: center; gap: 8px; margin-bottom: 40px; flex-wrap: wrap; }

.tab-btn {
  padding: 10px 24px; border-radius: 50px; border: 1px solid var(--border);
  background: transparent; color: var(--text-muted); cursor: pointer;
  font-size: 0.9rem; transition: all 0.3s;
}
.tab-btn.active { background: var(--gradient); color: #fff; border-color: transparent; }
.tab-btn:hover:not(.active) { border-color: var(--accent); color: #fff; }
.tab-btn-highlight { background: linear-gradient(135deg, #667eea, #764ba2); color: #fff !important; border-color: transparent !important; animation: pulse-glow 2s infinite; }
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 8px rgba(102,126,234,0.4); }
  50% { box-shadow: 0 0 20px rgba(118,75,162,0.6); }
}
.tab-btn-highlight.active { background: linear-gradient(135deg, #764ba2, #667eea); }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

.showcase-img {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

.showcase-img img { width: 100%; height: auto; }

/* ============ Stats ============ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-card { text-align: center; padding: 40px 20px; }

.stat-num { font-size: 2.5rem; font-weight: 800; background: var(--gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-label { color: var(--text-muted); margin-top: 8px; font-size: 0.95rem; }

/* ============ Footer CTA ============ */
.cta-section {
  text-align: center;
  padding: 100px 0;
  background: var(--gradient-dark);
}

.cta-section h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; margin-bottom: 16px; }
.cta-section p { color: var(--text-muted); margin-bottom: 36px; }

.footer { text-align: center; padding: 40px 0; color: var(--text-muted); font-size: 0.85rem; border-top: 1px solid var(--border); }

/* ============ About ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 700; margin-bottom: 24px; }
.about-text p { color: var(--text-muted); margin-bottom: 16px; line-height: 1.8; font-size: 0.95rem; }

.about-values { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
.about-values-4col { grid-template-columns: repeat(4, 1fr); }

.value-item {
  padding: 20px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.value-item h4 { font-size: 0.95rem; margin-bottom: 6px; }
.value-item p { font-size: 0.85rem; color: var(--text-muted); margin: 0; }

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.about-image img { width: 100%; height: auto; }

/* ============ Contact ============ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.contact-card {
  padding: 36px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: all 0.3s;
}
.contact-card:hover { border-color: rgba(108,99,255,0.3); transform: translateY(-2px); }

.contact-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--gradient);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 16px;
}

.contact-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.contact-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }
.contact-card a { color: var(--accent-light); }

/* ============ Detail Page Feature Blocks ============ */
.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 60px 0;
}

.feature-block + .feature-block { border-top: 1px solid var(--border); }

.feature-block.reverse .feature-image { order: -1; }

.feature-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
.feature-image img { width: 100%; height: auto; }

.feature-text h2 {
  font-size: 1.4rem; font-weight: 700; margin-bottom: 16px;
  display: flex; align-items: center; gap: 12px;
}
.feature-text h2 .fi-icon {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  background: var(--gradient);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.feature-text p { color: var(--text-muted); margin-bottom: 12px; line-height: 1.8; }

.feature-list {
  list-style: none; padding: 0; margin-top: 16px;
}
.feature-list li {
  padding: 6px 0; color: var(--text-muted); font-size: 0.9rem;
  display: flex; align-items: flex-start; gap: 8px;
}
.feature-list li::before {
  content: '✓'; color: var(--accent-light); font-weight: 700; flex-shrink: 0;
}

/* ============ Timeline (About page) ============ */
.timeline {
  position: relative; padding: 40px 0;
}
.timeline::before {
  content: ''; position: absolute; left: 50%; top: 0; bottom: 0;
  width: 2px; background: var(--border); transform: translateX(-50%);
}
.timeline-item {
  display: flex; align-items: flex-start; margin-bottom: 48px;
  position: relative;
}
.timeline-item:nth-child(odd) { padding-right: calc(50% + 40px); text-align: right; }
.timeline-item:nth-child(even) { padding-left: calc(50% + 40px); }
.timeline-dot {
  position: absolute; left: 50%; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--gradient); transform: translateX(-50%);
  box-shadow: 0 0 12px rgba(108,99,255,0.5);
}
.timeline-year {
  font-weight: 800; font-size: 1.2rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.timeline-content h3 { font-size: 1rem; margin: 4px 0 6px; }
.timeline-content p { color: var(--text-muted); font-size: 0.9rem; }

/* ============ Mobile ============ */
@media (max-width: 768px) {
  .nav { display: none; }
  .hamburger { display: flex; }

  .nav.open {
    display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: var(--primary); padding: 100px 32px 32px;
    align-items: flex-start; gap: 24px; z-index: 1000;
  }
  .nav.open a { font-size: 1.2rem; }

  .caps-grid { grid-template-columns: 1fr; }
  .highlights-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .about-values { grid-template-columns: 1fr; }
  .about-values-4col { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .feature-block { grid-template-columns: 1fr; gap: 32px; }
  .feature-block.reverse .feature-image { order: 0; }

  .timeline::before { left: 20px; }
  .timeline-item:nth-child(odd),
  .timeline-item:nth-child(even) { padding: 0 0 0 48px; text-align: left; }
  .timeline-dot { left: 20px; }

  .section { padding: 60px 0; }
  .hero { padding: calc(var(--header-h) + 40px) 0 60px; }
  .page-banner { padding: calc(var(--header-h) + 32px) 0 36px; }

  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 280px; }

  .tabs { gap: 6px; }
  .tab-btn { padding: 8px 16px; font-size: 0.8rem; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .highlight-item { flex-direction: column; gap: 12px; }
  .about-values-4col { grid-template-columns: 1fr; }
}
