/* ============================================
   猫虾 — 出海企业的 Agent 引擎
   Design: 灰白底 + 浅绿 · 国际简约
   ============================================ */

:root {
  --green: #7ecf5e;
  --green-dark: #5cb83a;
  --green-light: #e8f7e2;
  --bg: #f2f2f4;
  --surface: #ffffff;
  --border: #e5e5e7;
  --text: #1c1c1e;
  --text-secondary: #6e6e73;
  --text-tertiary: #aeaeb2;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.08);
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--green-dark); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--green); }

/* Nav */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; padding: 0 1.5rem;
}
.nav-brand {
  font-size: 1.2rem; font-weight: 700; color: var(--text);
  display: flex; align-items: center; gap: 0.4rem;
}
.nav-brand .icon { font-size: 1.4rem; }
.nav-brand .accent { color: var(--green); }
.nav-links { display: flex; gap: 2rem; }
.nav-links a { font-size: 0.9rem; color: var(--text-secondary); font-weight: 500; }
.nav-links a:hover { color: var(--green-dark); }
.lang-switch { font-size: 0.8rem; color: var(--text-tertiary); margin-left: 1rem; }
.lang-switch a { color: var(--text-secondary); margin: 0 0.3rem; }
.lang-switch a.active { color: var(--green); font-weight: 600; }

/* Hero */
.hero {
  min-height: 90vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 6rem 1.5rem 4rem; position: relative;
}
.hero-content { max-width: 720px; position: relative; z-index: 1; }
.hero-badge {
  display: inline-block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em;
  color: var(--green-dark); background: var(--green-light);
  padding: 0.3rem 1rem; border-radius: 100px; margin-bottom: 1.5rem;
  text-transform: uppercase;
}
.hero h1 { font-size: 3rem; font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 1.25rem; }
.hero h1 .hl { color: var(--green); }
.hero p { font-size: 1.1rem; color: var(--text-secondary); max-width: 560px; margin: 0 auto 2.5rem; line-height: 1.8; }
.hero-actions { display: flex; gap: 1rem; justify-content: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.7rem 1.8rem; font-size: 0.9rem; font-weight: 600;
  border-radius: 100px; border: none; cursor: pointer;
  transition: all 0.2s; letter-spacing: 0.02em;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); }
.btn-outline { background: var(--surface); color: var(--green-dark); border: 1.5px solid var(--green); }
.btn-outline:hover { background: var(--green-light); }
.btn-lg { padding: 0.9rem 2.4rem; font-size: 1rem; }

/* Sections */
.section { padding: 5rem 1.5rem; max-width: 1100px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-label {
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--green); margin-bottom: 0.75rem;
}
.section-header h2 { font-size: 2rem; font-weight: 800; letter-spacing: -0.01em; margin-bottom: 0.75rem; }
.section-header p { color: var(--text-secondary); font-size: 1rem; max-width: 560px; margin: 0 auto; }

/* Engine metaphor section */
.engine-visual {
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.engine-core {
  background: var(--surface); border-radius: var(--radius-xl);
  padding: 2rem 3rem; border: 2px solid var(--green);
  text-align: center; max-width: 500px; width: 100%;
  box-shadow: 0 0 30px rgba(126,207,94,0.12);
  position: relative;
}
.engine-core .e-icon { font-size: 2.5rem; margin-bottom: 0.5rem; }
.engine-core h3 { font-size: 1.4rem; margin-bottom: 0.3rem; }
.engine-core p { color: var(--text-secondary); font-size: 0.9rem; }
.engine-lines {
  display: flex; gap: 2.5rem; flex-wrap: wrap; justify-content: center;
  margin-top: 2rem; width: 100%;
}
.engine-line {
  flex: 1; min-width: 260px; max-width: 340px;
  background: var(--surface); border-radius: var(--radius-lg);
  padding: 2rem 1.5rem; text-align: center;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}
.engine-line:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.engine-line .l-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.engine-line h4 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.engine-line .l-tag {
  display: inline-block; font-size: 0.7rem; font-weight: 600;
  background: var(--green-light); color: var(--green-dark);
  padding: 0.15rem 0.7rem; border-radius: 100px; margin-bottom: 0.75rem;
}
.engine-line p { color: var(--text-secondary); font-size: 0.85rem; line-height: 1.6; }

/* Scenario grid */
.scenario-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.scenario-card {
  background: var(--surface); border-radius: var(--radius);
  padding: 1.5rem; border: 1px solid var(--border);
  display: flex; align-items: flex-start; gap: 0.75rem;
  transition: all 0.2s;
}
.scenario-card:hover { box-shadow: var(--shadow-md); border-color: var(--green); }
.scenario-card .s-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 0.1rem; }
.scenario-card .s-info h5 { font-size: 0.95rem; margin-bottom: 0.2rem; }
.scenario-card .s-info p { font-size: 0.8rem; color: var(--text-secondary); line-height: 1.5; }

/* Capability cards (3 pillars) */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.pillar-card {
  background: var(--surface); border-radius: var(--radius-lg);
  padding: 2.5rem 2rem; border: 1px solid var(--border);
  text-align: center; transition: all 0.2s;
}
.pillar-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.pillar-card .p-icon { font-size: 2.5rem; margin-bottom: 1rem; display: block; }
.pillar-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.pillar-card .p-badge {
  display: inline-block; font-size: 0.7rem; font-weight: 600;
  padding: 0.15rem 0.7rem; border-radius: 100px; margin-bottom: 0.75rem;
}
.pillar-card .p-badge.product { background: var(--green-light); color: var(--green-dark); }
.pillar-card .p-badge.service { background: #fff3e0; color: #e65100; }
.pillar-card .p-badge.eco { background: #f3e5f5; color: #7b1fa2; }
.pillar-card p { color: var(--text-secondary); font-size: 0.88rem; margin-bottom: 1.5rem; }
.pillar-card ul { list-style: none; text-align: left; margin-bottom: 1.5rem; }
.pillar-card ul li {
  font-size: 0.83rem; color: var(--text-secondary);
  padding: 0.35rem 0; padding-left: 1.2rem; position: relative;
}
.pillar-card ul li::before { content: '▸'; position: absolute; left: 0; color: var(--green); font-size: 0.65rem; }

/* CTA */
.cta {
  background: var(--text); color: #fff; text-align: center;
  padding: 5rem 1.5rem;
}
.cta h2 { font-size: 2rem; font-weight: 800; margin-bottom: 0.75rem; }
.cta p { font-size: 1rem; opacity: 0.75; margin-bottom: 2rem; }
.cta .btn { background: var(--green); color: var(--text); }

/* Footer */
.footer {
  background: #fff; border-top: 1px solid var(--border);
  padding: 3rem 1.5rem 1.5rem;
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem;
}
.footer h5 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-tertiary); margin-bottom: 0.75rem; }
.footer a { font-size: 0.85rem; color: var(--text-secondary); display: block; margin-bottom: 0.4rem; }
.footer a:hover { color: var(--green-dark); }
.footer p { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 0.5rem; }
.footer-bottom {
  max-width: 1100px; margin: 2rem auto 0; padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem; color: var(--text-tertiary);
  display: flex; justify-content: space-between;
}

/* Language bar */
.lang-bar {
  text-align: center; padding: 0.5rem; font-size: 0.75rem;
  background: var(--surface); border-bottom: 1px solid var(--border);
}
.lang-bar a { color: var(--text-tertiary); margin: 0 0.4rem; }
.lang-bar a.active { color: var(--green); font-weight: 600; }

/* Responsive */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .section { padding: 3.5rem 1rem; }
  .section-header h2 { font-size: 1.5rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .engine-lines { flex-direction: column; align-items: center; }
  .engine-line { max-width: 100%; }
  .scenario-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .nav-links { display: none; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate { animation: fadeUp 0.5s ease-out forwards; }
/* Modal */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--surface); border-radius: var(--radius-xl);
  padding: 2.5rem 2rem; text-align: center;
  max-width: 380px; width: 90%;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  position: relative; animation: modalIn 0.3s ease-out;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-close {
  position: absolute; top: 0.75rem; right: 1rem;
  background: none; border: none; font-size: 1.5rem;
  cursor: pointer; color: var(--text-tertiary); line-height: 1;
}
.modal-close:hover { color: var(--text); }
.modal h3 { font-size: 1.2rem; margin-bottom: 0.3rem; }
.modal p { color: var(--text-secondary); font-size: 0.9rem; margin-bottom: 1.5rem; }
.modal .qr-wrap {
  display: inline-block; padding: 0.75rem;
  border: 1px solid var(--border); border-radius: var(--radius);
  margin-bottom: 1rem;
}
.modal .qr-wrap img { width: 180px; height: 180px; }
.modal .wx-id {
  font-size: 0.85rem; color: var(--text-secondary);
  padding: 0.4rem 1rem; background: var(--bg); border-radius: 100px;
  display: inline-block;
}
