/* ============================================================
   PAGE 0016 — Emerald Green Modern Minimal
   PHP Multi-Page Stylesheet
   ============================================================ */

:root {
  --emerald-50: #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-200: #a7f3d0;
  --emerald-300: #6ee7b7;
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-700: #047857;
  --emerald-800: #065f46;
  --emerald-900: #064e3b;
  --text-primary: #111827;
  --text-secondary: #6b7280;
  --text-muted: #9ca3af;
  --bg-white: #ffffff;
  --bg-gray: #f9fafb;
  --border-light: #e5e7eb;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', -apple-system, sans-serif;
  color: var(--text-primary);
  background: var(--bg-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---------- Navbar ---------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.92); backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow 0.3s ease;
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.nav-container {
  max-width: 1200px; margin: 0 auto;
  padding: 0 24px; display: flex;
  align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-logo {
  font-size: 1.35rem; font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
  background: linear-gradient(135deg, var(--emerald-600), var(--emerald-400));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links { display: flex; gap: 32px; list-style: none; align-items: center; }
.nav-links a {
  text-decoration: none; color: var(--text-secondary);
  font-size: 0.925rem; font-weight: 500;
  transition: color 0.2s ease; position: relative;
}
.nav-links a:hover, .nav-links a.active { color: var(--emerald-600); }
.nav-links a.active::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--emerald-500); border-radius: 2px;
}
.nav-btn {
  background: var(--emerald-600); color: #fff; border: none;
  padding: 9px 22px; border-radius: var(--radius-sm);
  font-size: 0.875rem; font-weight: 600; cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
  text-decoration: none; display: inline-block;
}
.nav-btn:hover { background: var(--emerald-700); transform: translateY(-1px); }
.nav-toggler {
  display: none; background: none; border: none;
  font-size: 1.5rem; color: var(--text-primary); cursor: pointer;
}
@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: #fff; padding: 20px 24px;
    gap: 16px; border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-lg);
  }
  .nav-toggler { display: block; }
}

/* ---------- Hero ---------- */
.hero-section {
  padding: 140px 24px 100px;
  text-align: center;
  max-width: 900px; margin: 0 auto;
}
.hero-badge {
  display: inline-block; padding: 6px 16px;
  background: var(--emerald-50); color: var(--emerald-700);
  border-radius: 20px; font-size: 0.8rem; font-weight: 600;
  margin-bottom: 24px; letter-spacing: 0.04em;
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 900; line-height: 1.15;
  letter-spacing: -0.03em; margin-bottom: 20px;
}
.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--emerald-600), var(--emerald-400), #06d6a0);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 1.125rem; color: var(--text-secondary);
  max-width: 600px; margin: 0 auto 36px;
  line-height: 1.8;
}
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: var(--emerald-600); color: #fff;
  padding: 14px 36px; border-radius: var(--radius-sm);
  font-size: 1rem; font-weight: 600; text-decoration: none;
  transition: all 0.2s ease; display: inline-flex; align-items: center; gap: 8px;
}
.btn-primary:hover { background: var(--emerald-700); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(5,150,105,0.3); }
.btn-outline {
  background: transparent; color: var(--emerald-600);
  border: 2px solid var(--emerald-300); padding: 14px 36px;
  border-radius: var(--radius-sm); font-size: 1rem; font-weight: 600;
  text-decoration: none; transition: all 0.2s ease;
}
.btn-outline:hover { background: var(--emerald-50); border-color: var(--emerald-500); }

/* ---------- Section Common ---------- */
.section { padding: 90px 24px; }
.section-container { max-width: 1200px; margin: 0 auto; }
.section-label {
  display: inline-block; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--emerald-600); margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800; letter-spacing: -0.02em; margin-bottom: 16px;
}
.section-desc {
  font-size: 1.05rem; color: var(--text-secondary);
  max-width: 560px; margin-bottom: 48px;
}
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- Features: Icon-Left Horizontal Cards ---------- */
.feature-h-card {
  display: flex; gap: 28px; align-items: flex-start;
  padding: 32px 28px; border: 1px solid var(--border-light);
  border-radius: var(--radius-md); margin-bottom: 20px;
  transition: all 0.3s ease; background: var(--bg-white);
}
.feature-h-card:hover {
  border-color: var(--emerald-200);
  box-shadow: var(--shadow-lg); transform: translateX(4px);
}
.feature-h-card:nth-child(even) { flex-direction: row-reverse; }
.feature-h-card:nth-child(even):hover { transform: translateX(-4px); }
.feature-h-icon {
  flex-shrink: 0; width: 56px; height: 56px;
  border-radius: var(--radius-sm); display: flex;
  align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--emerald-600);
  background: var(--emerald-50);
}
.feature-h-content h3 {
  font-size: 1.2rem; font-weight: 700; margin-bottom: 6px;
}
.feature-h-content p {
  font-size: 0.95rem; color: var(--text-secondary); line-height: 1.7;
}

/* ---------- Stats: Simple Text Counters ---------- */
.stats-row {
  display: flex; justify-content: center; align-items: center;
  gap: 0; flex-wrap: wrap; padding: 40px 0;
}
.stat-item {
  text-align: center; padding: 0 48px;
  border-right: 1px solid var(--border-light);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-size: clamp(2.2rem, 4.5vw, 3.5rem);
  font-weight: 900; letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--emerald-600), var(--emerald-400));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label {
  font-size: 0.9rem; color: var(--text-muted); margin-top: 4px;
  font-weight: 500;
}
@media (max-width: 640px) {
  .stat-item { padding: 16px 24px; border-right: none; border-bottom: 1px solid var(--border-light); }
  .stat-item:last-child { border-bottom: none; }
}

/* ---------- Testimonials: Single Column Carousel ---------- */
.testimonial-carousel {
  max-width: 720px; margin: 0 auto; position: relative;
}
.testimonial-quote {
  text-align: center; padding: 48px 40px;
}
.testimonial-quote .quote-icon {
  font-size: 3rem; color: var(--emerald-200); line-height: 1;
  margin-bottom: 16px;
}
.testimonial-quote blockquote {
  font-size: 1.2rem; color: var(--text-primary);
  line-height: 1.9; font-style: italic;
  margin-bottom: 24px;
}
.testimonial-quote .author-name {
  font-weight: 700; font-size: 1rem; color: var(--emerald-700);
}
.testimonial-quote .author-role {
  font-size: 0.85rem; color: var(--text-muted);
}
.testimonial-quote .author-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  object-fit: cover; margin: 0 auto 12px;
  border: 3px solid var(--emerald-100);
}
.carousel-dots {
  display: flex; justify-content: center; gap: 8px; margin-top: 20px;
}
.carousel-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--border-light); border: none; cursor: pointer;
  transition: all 0.3s ease;
}
.carousel-dot.active { background: var(--emerald-500); width: 28px; border-radius: 6px; }

/* ---------- FAQ: Two-Column Grid ---------- */
.faq-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.faq-item {
  padding: 24px; border: 1px solid var(--border-light);
  border-radius: var(--radius-md); transition: border-color 0.2s ease;
}
.faq-item:hover { border-color: var(--emerald-300); }
.faq-item h4 {
  font-size: 1.05rem; font-weight: 700; margin-bottom: 8px;
  color: var(--text-primary);
}
.faq-item p {
  font-size: 0.925rem; color: var(--text-secondary); line-height: 1.7;
}
@media (max-width: 640px) {
  .faq-grid { grid-template-columns: 1fr; }
}

/* ---------- CTA ---------- */
.cta-section {
  padding: 80px 24px; text-align: center;
}
.cta-banner {
  max-width: 700px; margin: 0 auto;
  padding: 60px 40px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--emerald-600), var(--emerald-500), #34d399);
  color: #fff;
}
.cta-banner h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800; margin-bottom: 12px; letter-spacing: -0.02em;
}
.cta-banner p {
  font-size: 1rem; opacity: 0.9; margin-bottom: 28px; line-height: 1.7;
}
.cta-banner .btn-white {
  background: #fff; color: var(--emerald-700);
  padding: 14px 36px; border-radius: var(--radius-sm);
  font-size: 1rem; font-weight: 700; text-decoration: none;
  transition: all 0.2s ease; display: inline-block;
}
.cta-banner .btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.15); }

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-gray); border-top: 1px solid var(--border-light);
  padding: 28px 24px; text-align: center;
}
.footer-content {
  max-width: 1200px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-logo {
  font-weight: 700; font-size: 1rem;
  background: linear-gradient(135deg, var(--emerald-600), var(--emerald-400));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-copy { font-size: 0.85rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 20px; list-style: none; }
.footer-links a { text-decoration: none; color: var(--text-secondary); font-size: 0.85rem; }
.footer-links a:hover { color: var(--emerald-600); }

/* ---------- About Page ---------- */
.about-hero { background: var(--emerald-50); padding: 120px 24px 80px; text-align: center; }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: center; max-width: 1000px; margin: 0 auto; padding: 60px 24px;
}
.about-grid img { width: 100%; border-radius: var(--radius-lg); }
.about-grid h3 { font-size: 1.75rem; font-weight: 800; margin-bottom: 16px; }
.about-grid p { color: var(--text-secondary); line-height: 1.9; margin-bottom: 12px; }
@media (max-width: 768px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------- Download Page ---------- */
.download-hero { background: var(--emerald-50); padding: 120px 24px 80px; text-align: center; }
.download-cards {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px; max-width: 1000px; margin: 0 auto; padding: 0 24px 80px;
}
.download-card {
  text-align: center; padding: 40px 28px; border: 1px solid var(--border-light);
  border-radius: var(--radius-md); transition: all 0.3s ease;
}
.download-card:hover { border-color: var(--emerald-300); box-shadow: var(--shadow-lg); }
.download-card i { font-size: 2.5rem; color: var(--emerald-500); margin-bottom: 16px; }
.download-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.download-card p { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 20px; }

/* ---------- Contact Page ---------- */
.contact-hero { background: var(--emerald-50); padding: 120px 24px 80px; text-align: center; }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  max-width: 1000px; margin: 0 auto; padding: 0 24px 80px;
}
.contact-info h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 20px; }
.contact-info .info-item { display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start; }
.contact-info .info-item i { color: var(--emerald-500); font-size: 1.2rem; margin-top: 4px; }
.contact-info .info-item span { color: var(--text-secondary); font-size: 0.95rem; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form input, .contact-form textarea, .contact-form select {
  padding: 12px 16px; border: 1px solid var(--border-light);
  border-radius: var(--radius-sm); font-size: 0.95rem;
  font-family: inherit; transition: border-color 0.2s ease; outline: none;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--emerald-400); }
.contact-form textarea { min-height: 130px; resize: vertical; }
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}
/* Page header bar for sub-pages */
.page-header {
  background: var(--emerald-50); padding: 120px 24px 60px;
  text-align: center;
}
.page-header h1 {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 800;
  background: linear-gradient(135deg, var(--emerald-600), var(--emerald-400));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.page-header p { font-size: 1.05rem; color: var(--text-secondary); margin-top: 10px; }
