/* ========== CSS Variables ========== */
:root {
  --bg-primary: #0c1524;
  --bg-secondary: #111d30;
  --bg-card: #162033;
  --bg-card-hover: #1a273f;
  --blue: #2563eb;
  --blue-hover: #3b82f6;
  --blue-glow: rgba(37, 99, 235, 0.4);
  --gold: #f59e0b;
  --gold-hover: #fbbf24;
  --gold-glow: rgba(245, 158, 11, 0.35);
  --white: #ffffff;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: rgba(255,255,255,0.08);
  --border-light: rgba(255,255,255,0.04);
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-card: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-glow-blue: 0 0 30px rgba(37, 99, 235, 0.2);
  --shadow-glow-gold: 0 0 30px rgba(245, 158, 11, 0.2);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

/* ========== 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", "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); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--blue-hover); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* ========== Header / Navigation ========== */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(12, 21, 36, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font-size: 1.5rem; font-weight: 700; color: var(--white); display: flex; align-items: center; gap: 8px; }
.logo span { background: linear-gradient(135deg, var(--blue), var(--gold)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
nav ul { display: flex; gap: 32px; }
nav a { color: var(--text-secondary); font-size: 0.95rem; font-weight: 500; position: relative; }
nav a:hover, nav a.active { color: var(--white); }
nav a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--blue); border-radius: 2px; transition: width var(--transition); }
nav a:hover::after, nav a.active::after { width: 100%; }
.menu-toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.6rem; cursor: pointer; }

/* ========== Hero ========== */
#hero {
  min-height: 100vh; display: flex; align-items: center; position: relative;
  background: radial-gradient(ellipse at 80% 20%, rgba(37,99,235,0.12) 0%, transparent 55%),
              radial-gradient(ellipse at 20% 80%, rgba(245,158,11,0.08) 0%, transparent 55%);
  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; line-height: 1.2; margin-bottom: 20px;
  background: linear-gradient(135deg, var(--white) 30%, var(--gold) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-content p { font-size: 1.15rem; color: var(--text-secondary); margin-bottom: 32px; max-width: 500px; }
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; border-radius: var(--radius); font-size: 1rem; font-weight: 600; border: none; cursor: pointer; transition: var(--transition); text-decoration: none; }
.btn-primary { background: linear-gradient(135deg, var(--blue), #1d4ed8); color: var(--white); box-shadow: 0 4px 20px var(--blue-glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 30px rgba(37, 99, 235, 0.55); color: var(--white); }
.btn-gold { background: linear-gradient(135deg, var(--gold), #d97706); color: #1a1a2e; box-shadow: 0 4px 20px var(--gold-glow); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 6px 30px rgba(245, 158, 11, 0.5); color: #1a1a2e; }
.btn-outline { border: 2px solid var(--blue); color: var(--blue); background: transparent; }
.btn-outline:hover { background: var(--blue); color: var(--white); }
.btn-lg { padding: 16px 40px; font-size: 1.1rem; }
.hero-image img { border-radius: var(--radius-lg); box-shadow: var(--shadow-glow-blue); }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(245,158,11,0.12); border: 1px solid rgba(245,158,11,0.25);
  padding: 8px 18px; border-radius: 50px; font-size: 0.9rem; color: var(--gold);
  margin-bottom: 20px;
}
.hero-badge .dot { width: 8px; height: 8px; background: var(--gold); border-radius: 50%; animation: pulse-dot 1.5s infinite; }

/* ========== Features ========== */
#features { padding: 100px 0; }
#features .section-header { text-align: center; margin-bottom: 60px; }
#features .section-header h2 { font-size: 2.2rem; margin-bottom: 12px; }
.section-header .subtitle { color: var(--text-muted); font-size: 1.05rem; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.feature-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 36px 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(--blue), var(--gold));
  opacity: 0; transition: opacity var(--transition);
}
.feature-card:hover { background: var(--bg-card-hover); border-color: rgba(37,99,235,0.2); transform: translateY(-4px); box-shadow: var(--shadow-glow-blue); }
.feature-card:hover::before { opacity: 1; }
.feature-icon { font-size: 2.5rem; margin-bottom: 18px; }
.feature-card h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--white); }
.feature-card p { color: var(--text-secondary); font-size: 0.95rem; }

/* ========== License / Badge Section ========== */
#licenses { padding: 100px 0; background: var(--bg-secondary); }
.licenses-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.license-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 40px 28px; text-align: center; transition: var(--transition);
}
.license-card:hover { border-color: var(--gold); box-shadow: var(--shadow-glow-gold); transform: translateY(-4px); }
.license-card .badge-icon { font-size: 3rem; margin-bottom: 16px; }
.license-card h3 { font-size: 1.15rem; color: var(--white); margin-bottom: 8px; }
.license-card p { color: var(--text-secondary); font-size: 0.9rem; }
.license-badge-img { width: 100%; max-width: 160px; border-radius: var(--radius); margin-bottom: 16px; }

/* ========== CTA ========== */
#cta {
  padding: 100px 0; text-align: center;
  background: radial-gradient(ellipse at center, rgba(245,158,11,0.08) 0%, transparent 60%);
}
#cta h2 { font-size: 2.2rem; margin-bottom: 16px; }
#cta p { color: var(--text-secondary); margin-bottom: 32px; font-size: 1.1rem; }
#cta .btn { margin: 0 8px; }

/* ========== Page Hero (inner pages) ========== */
.page-hero {
  min-height: 45vh; display: flex; align-items: center; padding-top: 68px;
  background: radial-gradient(ellipse at 50% 30%, rgba(37,99,235,0.1) 0%, transparent 60%);
  text-align: center;
}
.page-hero h1 { font-size: 2.6rem; margin-bottom: 16px; }
.page-hero p { color: var(--text-secondary); max-width: 700px; margin: 0 auto; font-size: 1.1rem; }

/* ========== Content Sections ========== */
.content-section { padding: 80px 0; }
.content-section:nth-child(even) { background: var(--bg-secondary); }
.content-section h2 { font-size: 2rem; margin-bottom: 24px; text-align: center; }
.content-section h3 { font-size: 1.3rem; color: var(--gold); margin-bottom: 12px; }
.content-section p { color: var(--text-secondary); margin-bottom: 16px; }

.timeline { position: relative; padding-left: 40px; border-left: 2px solid var(--border); }
.timeline-item { position: relative; margin-bottom: 36px; }
.timeline-item::before { content: ''; position: absolute; left: -47px; top: 4px; width: 14px; height: 14px; background: var(--blue); border-radius: 50%; border: 3px solid var(--bg-primary); }
.timeline-item .year { font-size: 0.85rem; color: var(--gold); font-weight: 600; }
.timeline-item h4 { font-size: 1.1rem; color: var(--white); margin: 4px 0; }
.timeline-item p { font-size: 0.9rem; }

/* ========== Team ========== */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-card { background: var(--bg-card); border-radius: var(--radius-lg); padding: 28px 20px; text-align: center; transition: var(--transition); border: 1px solid var(--border); }
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-glow-blue); }
.team-card img { width: 90px; height: 90px; border-radius: 50%; margin: 0 auto 16px; object-fit: cover; }
.team-card h4 { color: var(--white); font-size: 1.05rem; }
.team-card .role { color: var(--blue); font-size: 0.85rem; margin-bottom: 6px; }

/* ========== Services ========== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.service-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 36px 28px; transition: var(--transition);
}
.service-card:hover { border-color: var(--blue); transform: translateY(-4px); box-shadow: var(--shadow-glow-blue); }
.service-card .service-icon { font-size: 2.5rem; margin-bottom: 16px; }
.service-card h3 { font-size: 1.2rem; color: var(--white); margin-bottom: 10px; }
.service-card ul { margin-top: 12px; }
.service-card li { color: var(--text-secondary); font-size: 0.9rem; padding: 5px 0; position: relative; padding-left: 18px; }
.service-card li::before { content: '→'; position: absolute; left: 0; color: var(--blue); }

/* ========== FAQ ========== */
.faq-list { max-width: 850px; margin: 0 auto; }
.faq-list details {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 16px; transition: var(--transition);
}
.faq-list details:hover { border-color: rgba(37,99,235,0.3); }
.faq-list summary {
  padding: 20px 24px; font-weight: 600; font-size: 1.05rem; color: var(--white);
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; font-size: 1.5rem; color: var(--blue); transition: transform var(--transition); }
.faq-list details[open] summary::after { content: '−'; transform: rotate(180deg); }
.faq-list details[open] { border-color: rgba(37,99,235,0.3); box-shadow: var(--shadow-glow-blue); }
.faq-answer { padding: 0 24px 20px; color: var(--text-secondary); font-size: 0.95rem; line-height: 1.8; }
.faq-search { margin-bottom: 32px; max-width: 500px; margin-left: auto; margin-right: auto; }
.faq-search input {
  width: 100%; padding: 14px 20px; border-radius: 50px; border: 1px solid var(--border);
  background: var(--bg-card); color: var(--white); font-size: 1rem; outline: none; transition: var(--transition);
}
.faq-search input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-glow); }
.faq-search input::placeholder { color: var(--text-muted); }

/* ========== Contact ========== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-info h3 { color: var(--gold); margin-bottom: 20px; font-size: 1.3rem; }
.contact-item { display: flex; gap: 14px; margin-bottom: 24px; }
.contact-item .icon { font-size: 1.4rem; min-width: 28px; }
.contact-item h4 { color: var(--white); font-size: 1rem; }
.contact-item p { color: var(--text-secondary); font-size: 0.9rem; }
.contact-form { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; }
.contact-form h3 { color: var(--white); margin-bottom: 24px; font-size: 1.3rem; }
.form-group { margin-bottom: 18px; }
.form-group label { display: block; color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--bg-secondary); color: var(--white); font-size: 0.95rem; outline: none; transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-glow); }
.form-group textarea { resize: vertical; min-height: 120px; }
.social-links { display: flex; gap: 16px; margin-top: 20px; }
.social-links a { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--bg-secondary); border: 1px solid var(--border); font-size: 1.2rem; transition: var(--transition); }
.social-links a:hover { background: var(--blue); border-color: var(--blue); color: var(--white); }

/* ========== Footer ========== */
footer {
  background: var(--bg-secondary); border-top: 1px solid var(--border);
  padding: 48px 0 24px; color: var(--text-muted); font-size: 0.9rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 32px; }
.footer-col h4 { color: var(--white); font-size: 1rem; margin-bottom: 16px; }
.footer-col p { margin-bottom: 8px; line-height: 1.6; }
.footer-col a { color: var(--text-muted); display: block; margin-bottom: 8px; }
.footer-col a:hover { color: var(--blue); }
.footer-bottom { text-align: center; padding-top: 24px; border-top: 1px solid var(--border); }

/* ========== Animations ========== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
@keyframes pulse-cta {
  0%, 100% { box-shadow: 0 4px 20px var(--blue-glow); }
  50% { box-shadow: 0 4px 40px rgba(37,99,235,0.6); }
}
.animate { animation: fadeInUp 0.7s ease forwards; opacity: 0; }
.animate:nth-child(1) { animation-delay: 0.1s; }
.animate:nth-child(2) { animation-delay: 0.2s; }
.animate:nth-child(3) { animation-delay: 0.3s; }
.animate:nth-child(4) { animation-delay: 0.4s; }
.animate:nth-child(5) { animation-delay: 0.5s; }
.animate:nth-child(6) { animation-delay: 0.6s; }
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.btn-pulse { animation: pulse-cta 2.5s infinite; }

/* ========== Table ========== */
.data-table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.data-table th, .data-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); }
.data-table th { color: var(--gold); font-weight: 600; font-size: 0.9rem; }
.data-table td { color: var(--text-secondary); font-size: 0.95rem; }
.data-table tr:hover td { background: rgba(37,99,235,0.04); }

/* ========== Stats ========== */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-item { padding: 28px; }
.stat-number { font-size: 2.5rem; font-weight: 800; background: linear-gradient(135deg, var(--blue), var(--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: 6px; }

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .features-grid, .licenses-grid, .services-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  nav ul { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; background: var(--bg-primary); border-bottom: 1px solid var(--border); padding: 16px 20px; gap: 12px; }
  nav ul.active { display: flex; }
  .menu-toggle { display: block; }
  #hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-content h1 { font-size: 2rem; }
  .hero-content p { max-width: 100%; }
  .hero-buttons { justify-content: center; }
  .hero-image { order: -1; max-width: 320px; margin: 0 auto; }
  .features-grid, .services-grid, .licenses-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }
  .page-hero h1 { font-size: 2rem; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.6rem; }
  .btn { padding: 12px 24px; font-size: 0.9rem; }
  .btn-lg { padding: 14px 28px; }
  .team-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
}
