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

:root {
  --bg-primary: #0a1628;
  --bg-secondary: #0f1f3a;
  --bg-card: #132544;
  --bg-card-hover: #1a3058;
  --blue: #1d4ed8;
  --blue-light: #3b82f6;
  --blue-dark: #1e3a8a;
  --green: #10b981;
  --green-light: #34d399;
  --white: #ffffff;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: rgba(29, 78, 216, 0.2);
  --border-hover: rgba(29, 78, 216, 0.5);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-blue: 0 4px 24px rgba(29, 78, 216, 0.15);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--blue-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--green-light); }
img { max-width: 100%; height: auto; display: block; }

/* ========== Header & Nav ========== */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.nav-brand {
  font-size: 1.4rem; font-weight: 700; color: var(--white);
  letter-spacing: 0.5px;
}
.nav-brand span { color: var(--blue-light); }

.nav-links { display: flex; list-style: none; gap: 8px; }
.nav-links a {
  color: var(--text-secondary); padding: 8px 16px; border-radius: var(--radius-sm);
  font-size: 0.95rem; font-weight: 500; transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--white); background: rgba(29, 78, 216, 0.2);
}

.nav-toggle {
  display: none; background: none; border: none; color: var(--white);
  font-size: 1.5rem; cursor: pointer; padding: 4px;
}

/* ========== Hero Section ========== */
.hero {
  min-height: 100vh; display: flex; align-items: center; position: relative;
  padding: 100px 20px 60px; overflow: hidden;
  background: linear-gradient(135deg, var(--bg-primary) 0%, #0f2044 50%, var(--bg-primary) 100%);
}
.hero::before {
  content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(29,78,216,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: ''; position: absolute; bottom: -30%; left: -10%; width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(16,185,129,0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-inner {
  max-width: var(--max-width); margin: 0 auto; display: grid;
  grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  position: relative; z-index: 1;
}

.hero-text h1 {
  font-size: 2.8rem; font-weight: 800; line-height: 1.3; margin-bottom: 20px;
  background: linear-gradient(135deg, var(--white), #a5b4fc);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-text p {
  font-size: 1.15rem; color: var(--text-secondary); margin-bottom: 32px; max-width: 480px;
}
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px;
  border-radius: 50px; font-size: 1rem; font-weight: 600; cursor: pointer;
  transition: var(--transition); border: none; text-decoration: none;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  color: var(--white); box-shadow: 0 4px 20px rgba(29, 78, 216, 0.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 30px rgba(29, 78, 216, 0.6); color: var(--white); }
.btn-secondary {
  background: transparent; color: var(--white);
  border: 2px solid var(--border-hover);
}
.btn-secondary:hover { background: rgba(29, 78, 216, 0.15); border-color: var(--blue-light); color: var(--white); }
.btn-pulse { animation: pulse 2s infinite; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(29, 78, 216, 0.4); }
  50% { box-shadow: 0 4px 40px rgba(29, 78, 216, 0.8), 0 0 60px rgba(16, 185, 129, 0.3); }
}

.hero-img img {
  width: 100%; border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(29, 78, 216, 0.2);
}

/* ========== Sections Common ========== */
section { padding: 80px 20px; }
.section-inner { max-width: var(--max-width); margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-header h2 {
  font-size: 2.2rem; font-weight: 700; margin-bottom: 12px; color: var(--white);
}
.section-header p { color: var(--text-secondary); font-size: 1.05rem; max-width: 640px; margin: 0 auto; }

/* ========== Features Grid ========== */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.feature-card {
  background: var(--bg-card); border-radius: var(--radius); padding: 32px 28px;
  border: 1px solid var(--border); 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(--green));
  opacity: 0; transition: var(--transition);
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-blue); border-color: var(--border-hover); }
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 56px; height: 56px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; margin-bottom: 20px;
  background: rgba(29, 78, 216, 0.15); color: var(--blue-light);
}
.feature-card:nth-child(odd) .feature-icon { background: rgba(16, 185, 129, 0.15); color: var(--green-light); }
.feature-card h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--white); }
.feature-card p { color: var(--text-secondary); font-size: 0.95rem; line-height: 1.7; }

/* ========== CTA Section ========== */
.cta-section {
  background: linear-gradient(135deg, #0f2044 0%, var(--bg-primary) 100%);
  text-align: center; position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(29,78,216,0.08) 0%, transparent 70%);
  border-radius: 50%;
}
.cta-section .section-inner { position: relative; z-index: 1; }
.cta-section h2 { font-size: 2rem; margin-bottom: 16px; }
.cta-section p { color: var(--text-secondary); margin-bottom: 32px; font-size: 1.05rem; }
.cta-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ========== Stats ========== */
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  margin-top: 60px;
}
.stat-item { text-align: center; padding: 20px; }
.stat-number { font-size: 2.4rem; font-weight: 800; color: var(--green-light); }
.stat-label { color: var(--text-secondary); font-size: 0.9rem; margin-top: 4px; }

/* ========== Page Banner ========== */
.page-banner {
  padding: 120px 20px 60px; text-align: center; position: relative;
  background: linear-gradient(135deg, var(--bg-primary), #0f2044);
}
.page-banner h1 { font-size: 2.6rem; font-weight: 800; color: var(--white); margin-bottom: 12px; }
.page-banner p { color: var(--text-secondary); font-size: 1.1rem; }

/* ========== About Page ========== */
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-text h2 { font-size: 1.8rem; margin-bottom: 16px; color: var(--white); }
.about-text p { color: var(--text-secondary); margin-bottom: 12px; line-height: 1.8; }
.about-img img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }

.timeline { position: relative; padding-left: 40px; margin-top: 40px; }
.timeline::before {
  content: ''; position: absolute; left: 18px; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(180deg, var(--blue), var(--green));
}
.timeline-item { position: relative; margin-bottom: 36px; }
.timeline-item::before {
  content: ''; position: absolute; left: -31px; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--blue-light); border: 3px solid var(--bg-primary);
  box-shadow: 0 0 0 3px var(--border-hover);
}
.timeline-year { font-size: 0.85rem; color: var(--blue-light); font-weight: 600; }
.timeline-item h3 { font-size: 1.1rem; color: var(--white); margin: 4px 0; }
.timeline-item p { color: var(--text-secondary); font-size: 0.9rem; }

.security-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 24px; }
.security-item {
  background: var(--bg-card); border-radius: var(--radius-sm); padding: 20px;
  border: 1px solid var(--border); text-align: center;
}
.security-item h3 { color: var(--green-light); margin-bottom: 8px; font-size: 1.05rem; }
.security-item p { color: var(--text-secondary); font-size: 0.9rem; }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 24px; }
.team-member {
  background: var(--bg-card); border-radius: var(--radius); padding: 24px;
  border: 1px solid var(--border); text-align: center; transition: var(--transition);
}
.team-member:hover { transform: translateY(-4px); box-shadow: var(--shadow-blue); }
.team-member img {
  width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 16px;
  border: 3px solid var(--border-hover);
}
.team-member h3 { color: var(--white); font-size: 1rem; }
.team-member .role { color: var(--blue-light); font-size: 0.85rem; }

/* ========== Services Page ========== */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: var(--bg-card); border-radius: var(--radius); padding: 36px 28px;
  border: 1px solid var(--border); transition: var(--transition); text-align: center;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-blue); border-color: var(--border-hover); }
.service-card .service-icon {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center; font-size: 1.8rem;
  background: linear-gradient(135deg, var(--blue-dark), var(--blue));
  color: var(--white);
}
.service-card h3 { font-size: 1.15rem; margin-bottom: 10px; color: var(--white); }
.service-card p { color: var(--text-secondary); font-size: 0.9rem; }

.services-table {
  margin-top: 48px; overflow-x: auto;
}
.services-table table {
  width: 100%; border-collapse: collapse;
  background: var(--bg-card); border-radius: var(--radius); overflow: hidden;
}
.services-table th {
  background: rgba(29, 78, 216, 0.2); color: var(--white); padding: 14px 20px;
  text-align: left; font-size: 0.9rem; font-weight: 600;
}
.services-table td { padding: 12px 20px; color: var(--text-secondary); border-bottom: 1px solid var(--border); }
.services-table tr:hover td { background: rgba(29, 78, 216, 0.05); }

/* ========== FAQ Page ========== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-category { margin-bottom: 40px; }
.faq-category h2 {
  font-size: 1.5rem; color: var(--green-light); margin-bottom: 16px;
  padding-bottom: 8px; border-bottom: 2px solid var(--border);
}
details {
  background: var(--bg-card); border-radius: var(--radius-sm); margin-bottom: 12px;
  border: 1px solid var(--border); transition: var(--transition);
}
details:hover { border-color: var(--border-hover); }
details[open] { border-color: var(--border-hover); box-shadow: var(--shadow-blue); }
summary {
  padding: 18px 20px; cursor: pointer; font-weight: 600; color: var(--white);
  list-style: none; display: flex; justify-content: space-between; align-items: center;
  font-size: 1.05rem;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+'; font-size: 1.3rem; color: var(--blue-light); transition: var(--transition);
}
details[open] summary::after { content: '−'; color: var(--green-light); }
.faq-answer { padding: 0 20px 20px; color: var(--text-secondary); line-height: 1.8; }

.faq-search { margin-bottom: 32px; }
.faq-search input {
  width: 100%; padding: 14px 20px; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 50px; color: var(--white); font-size: 1rem; outline: none; transition: var(--transition);
}
.faq-search input:focus { border-color: var(--blue-light); box-shadow: 0 0 0 3px rgba(29,78,216,0.15); }
.faq-search input::placeholder { color: var(--text-muted); }

/* ========== Contact Page ========== */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.contact-form { background: var(--bg-card); border-radius: var(--radius); padding: 36px; border: 1px solid var(--border); }
.contact-form h2 { margin-bottom: 24px; color: var(--white); font-size: 1.5rem; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; margin-bottom: 6px; color: var(--text-primary); font-weight: 500; font-size: 0.9rem;
}
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 16px; background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--white); font-size: 0.95rem; outline: none; transition: var(--transition);
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--blue-light); box-shadow: 0 0 0 3px rgba(29,78,216,0.1);
}
.form-group textarea { resize: vertical; min-height: 120px; }

.contact-info {}
.contact-info h2 { font-size: 1.5rem; margin-bottom: 24px; color: var(--white); }
.contact-item {
  display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px;
  padding: 16px; background: var(--bg-card); border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.contact-item-icon {
  width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: rgba(29, 78, 216, 0.15); color: var(--blue-light); font-size: 1.1rem; flex-shrink: 0;
}
.contact-item h3 { color: var(--white); font-size: 0.95rem; margin-bottom: 4px; }
.contact-item p { color: var(--text-secondary); font-size: 0.85rem; }

.social-links { display: flex; gap: 12px; margin-top: 16px; }
.social-link {
  width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--bg-card); border: 1px solid var(--border); color: var(--text-secondary);
  transition: var(--transition); font-size: 1.1rem; text-decoration: none;
}
.social-link:hover { background: var(--blue); color: var(--white); border-color: var(--blue); }

.business-coop { margin-top: 40px; }
.business-coop h2 { font-size: 1.5rem; margin-bottom: 20px; color: var(--white); }
.coop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.coop-card {
  background: var(--bg-card); border-radius: var(--radius-sm); padding: 20px;
  border: 1px solid var(--border); text-align: center; transition: var(--transition);
}
.coop-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.coop-card h3 { color: var(--green-light); font-size: 0.95rem; margin-bottom: 6px; }
.coop-card p { color: var(--text-secondary); font-size: 0.8rem; }

/* ========== Footer ========== */
footer {
  background: #070f1c; border-top: 1px solid var(--border);
  padding: 48px 20px 24px; text-align: center;
}
.footer-inner { max-width: var(--max-width); margin: 0 auto; }
.footer-links { display: flex; justify-content: center; gap: 32px; margin-bottom: 24px; flex-wrap: wrap; }
.footer-links a { color: var(--text-secondary); font-size: 0.9rem; }
.footer-links a:hover { color: var(--green-light); }
footer p { color: var(--text-muted); font-size: 0.85rem; }

/* ========== Animations ========== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ========== Responsive ========== */
@media (max-width: 992px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-text p { max-width: 100%; }
  .hero-btns { justify-content: center; }
  .hero-img { order: -1; }
  .hero-img img { max-width: 400px; margin: 0 auto; }
  .features-grid, .services-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .about-content { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .security-list { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .coop-grid { grid-template-columns: 1fr; }
  .hero-text h1 { font-size: 2.2rem; }
}

@media (max-width: 640px) {
  .nav-links { display: none; position: absolute; top: 64px; left: 0; right: 0;
    background: rgba(10, 22, 40, 0.98); flex-direction: column; padding: 16px;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.active { display: flex; }
  .nav-toggle { display: block; }

  .features-grid, .services-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
  .security-list { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .hero-text h1 { font-size: 1.8rem; }
  section { padding: 60px 16px; }
  .section-header h2 { font-size: 1.6rem; }
  .page-banner h1 { font-size: 1.8rem; }
  .btn { padding: 12px 24px; font-size: 0.9rem; }
}
