/* ============================================================
   HUBMESH.COM — Green & Gold Design System (名爵竞速)
   Tailwind-compatible custom overrides
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --primary: #16a34a;
  --primary-dark: #065f46;
  --primary-light: #22c55e;
  --accent: #facc15;
  --accent-dark: #eab308;
  --bg-body: #f9fafb;
  --bg-card: #ffffff;
  --bg-dark: #020617;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --shadow: 0 4px 24px rgba(15,23,42,0.08);
  --radius: 16px;
  --radius-lg: 24px;
  --header-h: 72px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  font-family: var(--font);
  color: var(--text-dark);
  background: var(--bg-body);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: var(--primary); text-decoration: none; transition: color 0.25s; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* Gradient banner */
.bg-main-gradient {
  background: linear-gradient(135deg, #022c22 0%, #047857 35%, #16a34a 60%, #facc15 100%);
}
.bg-section-gradient {
  background: linear-gradient(135deg, #022c22 0%, #065f46 50%, #047857 100%);
}

/* Header */
.header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-h); z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s;
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; max-width: 1280px; margin: 0 auto; padding: 0 20px;
}
.logo { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 22px; }
.logo .logo-icon { color: var(--primary); }
.logo .logo-text { color: var(--text-dark); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 14px; font-weight: 500;
  color: var(--text-muted); padding: 8px 14px;
  border-radius: 8px; transition: all 0.25s;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--primary); background: rgba(22, 163, 74, 0.06);
}
.mobile-toggle {
  display: none; background: none; border: none;
  color: var(--text-dark); font-size: 22px; cursor: pointer;
  padding: 8px;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font); font-weight: 600; font-size: 14px;
  padding: 12px 28px; border-radius: 999px;
  border: none; cursor: pointer; transition: all 0.3s;
  white-space: nowrap; text-decoration: none;
}
.btn-primary {
  background: var(--primary); color: #fff;
  box-shadow: 0 4px 14px rgba(22,163,74,0.3);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px); color: #fff; }
.btn-accent {
  background: var(--accent); color: #1e293b;
  box-shadow: 0 4px 14px rgba(250,204,21,0.3);
}
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-2px); }
.btn-outline {
  background: rgba(255,255,255,0.1); color: #fff;
  border: 2px solid rgba(255,255,255,0.25);
}
.btn-outline:hover { background: rgba(255,255,255,0.18); transform: translateY(-2px); color: #fff; }
.btn-ghost {
  background: transparent; color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { color: var(--primary); border-color: var(--primary); }
.btn-sm { padding: 8px 18px; font-size: 12px; }

/* Section */
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-label {
  display: inline-block; font-size: 12px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--primary); margin-bottom: 8px;
}
.section-title {
  font-size: clamp(26px, 3.5vw, 40px); font-weight: 700;
  color: var(--text-dark); margin-bottom: 12px;
}
.section-desc {
  font-size: 15px; color: var(--text-muted);
  max-width: 640px; margin: 0 auto; line-height: 1.7;
}

/* Cards */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
  transition: all 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(15,23,42,0.1);
  border-color: var(--primary);
}

/* Footer */
.footer {
  background: var(--bg-dark); color: #fff; padding: 60px 0 30px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px; margin-bottom: 40px;
}
.footer-brand .logo { font-size: 22px; }
.footer-brand p { color: var(--text-light); font-size: 14px; margin-top: 12px; line-height: 1.7; }
.footer-col h4 {
  font-size: 13px; font-weight: 600; letter-spacing: 1px;
  text-transform: uppercase; color: #fff; margin-bottom: 16px;
}
.footer-col a { display: block; color: var(--text-light); font-size: 14px; padding: 4px 0; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 20px; display: flex;
  justify-content: space-between; align-items: center;
  font-size: 13px; color: var(--text-light);
}

/* Page hero */
.page-hero {
  padding: 120px 0 60px; position: relative; overflow: hidden;
}
.page-hero-sm { padding: 100px 0 50px; }

/* Breadcrumb */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; color: rgba(255,255,255,0.6); margin-bottom: 16px;
}
.breadcrumb a { color: rgba(255,255,255,0.6); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: rgba(255,255,255,0.3); }

/* Stats */
.stat-number { font-weight: 800; font-size: clamp(28px,4vw,42px); font-variant-numeric: tabular-nums; display: inline-block; transition: color 0.3s; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-body); }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

/* Responsive */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 60px 0; }
}
@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .nav-links {
    display: none; position: absolute; top: var(--header-h);
    left: 0; right: 0; background: rgba(255,255,255,0.98);
    backdrop-filter: blur(16px); flex-direction: column;
    padding: 12px 16px; border-bottom: 1px solid var(--border);
    gap: 2px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; width: 100%; font-size: 14px; }
  .mobile-toggle { display: block; }
  .section { padding: 48px 0; }
  .section-header { margin-bottom: 32px; }
  .card { padding: 20px; }
  .btn { padding: 10px 20px; font-size: 13px; }
  .footer-grid { grid-template-columns: 1fr !important; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .page-hero { padding: 100px 0 40px; }
  [style*="grid-template-columns"] { gap: 16px !important; }
  /* Collapse multi-col grids */
  .section [style*="grid-template-columns:1fr 1fr;gap:40px"],
  .page-hero [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
  @media (min-width: 481px) {
    [style*="repeat(4"] { grid-template-columns: repeat(2,1fr) !important; }
    [style*="repeat(3"] { grid-template-columns: repeat(2,1fr) !important; }
  }
}
@media (max-width: 480px) {
  .container { padding: 0 14px; }
  .section { padding: 36px 0; }
  .page-hero { padding: 90px 0 28px; }
  .card { padding: 16px; }
  .section-title { font-size: clamp(20px,7vw,26px) !important; }
  [style*="repeat(4"] { grid-template-columns: repeat(2,1fr) !important; gap: 12px !important; }
  [style*="repeat(3"] { grid-template-columns: repeat(2,1fr) !important; gap: 12px !important; }
  h1 { font-size: clamp(22px,9vw,28px) !important; }
  .footer { padding: 32px 0 20px; }
}
