/* ═══════════════════════════════════════════════════════
   DS Logistics Web — Common Styles
   Theme: Ocean Depth (方案C)
   Deep navy #040d1a + Electric blue #0ea5e9
════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@700;800&family=DM+Sans:wght@300;400;500;600&family=IBM+Plex+Mono:wght@400;600&display=swap');

:root {
  --bg-base:        #040d1a;
  --bg-surface:     #071426;
  --bg-card:        rgba(255,255,255,0.03);
  --bg-card-hover:  rgba(14,165,233,0.04);

  --border-faint:   rgba(255,255,255,0.05);
  --border-blue:    rgba(14,165,233,0.15);
  --border-blue-hi: rgba(14,165,233,0.3);

  --text-primary:   #cce4ff;
  --text-secondary: rgba(204,228,255,0.6);
  --text-muted:     rgba(204,228,255,0.35);

  --blue:           #0ea5e9;
  --blue-light:     #38bdf8;
  --blue-dim:       rgba(14,165,233,0.1);

  --amber:          #fbbf24;
  --green:          #34d399;
  --red:            #f87171;

  --radius-sm:      6px;
  --radius-md:      10px;
  --radius-lg:      14px;

  --max-width:      1200px;
  --nav-h:          66px;

  --transition:     all 0.18s ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: 'DM Sans', -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ── Navigation ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
  background: rgba(4,13,26,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-blue);
}

.nav-logo {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: #fff;
  letter-spacing: -0.5px;
  text-decoration: none;
}

.nav-logo span { color: var(--blue); }

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 14px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--blue); }

.nav-right { display: flex; align-items: center; gap: 12px; }

/* Language toggle */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--blue-dim);
  border: 1px solid var(--border-blue);
  border-radius: var(--radius-sm);
  padding: 3px;
  overflow: hidden;
}

.lang-btn {
  padding: 4px 13px;
  border-radius: 4px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: var(--transition);
}

.lang-btn.active {
  background: rgba(14,165,233,0.2);
  color: var(--blue);
}

/* ── Footer ── */
.footer {
  padding: 32px 60px;
  border-top: 1px solid var(--border-faint);
  text-align: center;
}

.footer p {
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Utility ── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 60px;
}

/* Status chips */
.status-chip {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 4px;
  letter-spacing: 0.3px;
}

.status-in_transit  { background: rgba(251,191,36,0.1); color: var(--amber); }
.status-delivered   { background: rgba(52,211,153,0.1); color: var(--green); }
.status-exception   { background: rgba(248,113,113,0.1); color: var(--red); }

/* Node badges */
.badge-collected, .badge-signed    { background: rgba(52,211,153,0.1); color: var(--green); font-size:11px; padding: 2px 8px; border-radius: 3px; font-weight: 600; }
.badge-sorted                       { background: var(--blue-dim); color: var(--blue); font-size:11px; padding: 2px 8px; border-radius: 3px; font-weight: 600; }
.badge-transit, .badge-delivering  { background: rgba(251,191,36,0.1); color: var(--amber); font-size:11px; padding: 2px 8px; border-radius: 3px; font-weight: 600; }
.badge-exception                    { background: rgba(248,113,113,0.1); color: var(--red); font-size:11px; padding: 2px 8px; border-radius: 3px; font-weight: 600; }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

.anim-fade-up { animation: fadeUp 0.4s ease both; }
.anim-fade-up-1 { animation: fadeUp 0.4s 0.1s ease both; }
.anim-fade-up-2 { animation: fadeUp 0.4s 0.2s ease both; }
.anim-fade-up-3 { animation: fadeUp 0.4s 0.3s ease both; }
.anim-fade-up-4 { animation: fadeUp 0.4s 0.4s ease both; }

/* ── H5 Mobile ── */
@media (max-width: 768px) {
  .nav { padding: 0 20px; }
  .nav-links { display: none; }
  .container { padding: 0 20px; }
  .footer { padding: 24px 20px; }
}
