/* ============================================
   Shanghai Panxunshi Tech - Global Stylesheet
   Theme: Deep Navy + Silver / White + Shanghai Night
   ============================================ */

:root {
  --navy-950: #050e1f;
  --navy-900: #081a33;
  --navy-800: #0d2748;
  --navy-700: #12345e;
  --navy-600: #1a4677;
  --accent: #5b8fd6;
  --accent-light: #9fc1ec;
  --gold: #f4c95d;
  --silver: #c7cedb;
  --silver-light: #eef1f6;
  --white: #ffffff;
  --ink: #1b2635;
  --muted: #5c6b81;
  --border: #e2e6ed;
  --shadow: 0 20px 50px -20px rgba(5, 14, 31, 0.35);
  --radius: 14px;
  --max-width: 1180px;
  --font: 'Inter', 'Segoe UI', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3, h4 { font-weight: 700; color: var(--navy-900); line-height: 1.25; }
h1 { font-size: clamp(2.1rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { color: var(--muted); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 12px;
}

.section { padding: 88px 0; }
.section-alt { background: var(--silver-light); }
.section-navy { background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy p { color: var(--silver); }

.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head p { margin-top: 14px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
  color: var(--white);
  box-shadow: 0 12px 24px -10px rgba(13, 39, 72, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(13, 39, 72, 0.6); }
.btn-outline {
  background: transparent;
  border-color: var(--silver);
  color: var(--navy-900);
}
.btn-outline:hover { border-color: var(--navy-700); background: var(--silver-light); }
.btn-light {
  background: var(--white);
  color: var(--navy-900);
}
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(0,0,0,0.25); }
.btn-ghost-light {
  background: transparent;
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
}
.btn-ghost-light:hover { background: rgba(255,255,255,0.12); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 26, 51, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--navy-900);
  font-size: 1.1rem;
  flex-shrink: 0;
  overflow: visible;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }
.brand-text { line-height: 1.15; max-width: 200px; }
.brand-text .cn { font-size: 0.8rem; font-weight: 700; display: block; letter-spacing: -0.01em; }
.brand-text .sub { font-size: 0.64rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--silver); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: nowrap;
}
.nav-links a {
  color: var(--silver-light);
  font-size: 0.94rem;
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--white);
  border-bottom-color: var(--accent-light);
}

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

/* Language switcher */
.lang-switch { position: relative; }
.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--white);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}
.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  background: var(--white);
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
  min-width: 150px;
  display: none;
  z-index: 200;
}
.lang-menu.open { display: block; }
.lang-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 11px 16px;
  background: none;
  border: none;
  font-size: 0.9rem;
  color: var(--ink);
  cursor: pointer;
}
.lang-menu button:hover { background: var(--silver-light); }
.lang-menu button.active { color: var(--navy-700); font-weight: 700; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; }

/* Hero - default reliable navy gradient (no external image dependency) */
.hero {
  position: relative;
  background: radial-gradient(circle at 20% 20%, var(--navy-700), var(--navy-950) 70%);
  color: var(--white);
  padding: 120px 0 100px;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Cpath d='M0 100L100 0' stroke='%23ffffff' stroke-opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 780px; }
.hero-inner .eyebrow { color: var(--accent-light); }
.hero-inner h1 { color: var(--white); margin-bottom: 20px; text-shadow: 0 4px 24px rgba(0,0,0,0.5); }
.hero-inner p.lead { color: var(--silver-light); font-size: 1.12rem; max-width: 620px; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-page {
  padding: 80px 0 74px;
}
.hero-page .eyebrow { color: var(--accent-light); }

@media (max-width: 760px) {
  .hero-page { padding: 92px 0 60px; }
}

/* Homepage hero - self-contained SVG dusk skyline (no external image, always renders) */
#mainHero {
  padding: 150px 0 130px;
  min-height: 760px;
  background: none;
}
#mainHero .sky-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
}
#mainHero .sky-bg svg { width: 100%; height: 100%; display: block; }
#mainHero .sky-bg img.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 68%;
  display: block;
}
@media (max-width: 760px) {
  #mainHero .sky-bg img.hero-photo { object-position: center 60%; }
}
#mainHero .sky-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,10,22,0.15) 0%, rgba(5,10,22,0.55) 75%, var(--navy-950) 100%);
}
@media (max-width: 760px) {
  #mainHero { padding: 110px 0 90px; }
}

#mainHero .hero-inner { position: relative; z-index: 2; }

/* Transparent floating header on the homepage - background photo shows through at the top */
body[data-page="home"] .site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: transparent;
  backdrop-filter: none;
  border-bottom: none;
  transition: background 0.3s ease, backdrop-filter 0.3s ease, border-color 0.3s ease;
}
body[data-page="home"] .site-header.scrolled {
  background: rgba(8, 26, 51, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
body[data-page="home"] .nav-links a,
body[data-page="home"] .brand,
body[data-page="home"] .lang-btn {
  text-shadow: 0 1px 5px rgba(0,0,0,0.55);
}

/* Thumbnail-style headline treatment (homepage only) */
#mainHero .hero-inner .eyebrow {
  font-family: 'Lilita One', var(--font);
  color: #f7f7f2;
  -webkit-text-fill-color: #f7f7f2;
  background: none;
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  letter-spacing: 0.1em;
}
#mainHero .hero-inner h1 {
  font-family: 'Lilita One', var(--font);
  font-weight: 400;
  text-shadow: none;
  letter-spacing: 0.01em;
  line-height: 1.1;
  font-size: clamp(2.8rem, 6vw, 5rem);
  background: linear-gradient(90deg, #9dff7a 0%, #2fe0e0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
#mainHero .hero-inner p.lead {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.5;
}


/* Global cargo network - interactive 3D globe */
.globe-section {
  background: var(--navy-950);
  padding: 90px 0 60px;
  position: relative;
}
.globe-section .section-head h2,
.globe-section .section-head p { color: var(--white); }
.globe-section .section-head p { color: var(--silver); }
.globe-panel {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  background: radial-gradient(circle at 50% 30%, rgba(91, 143, 214, 0.18), rgba(5, 14, 31, 0.4) 70%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
}
#globeViz, #chinaGlobeViz { width: 100%; height: 100%; }
.network-map-svg { width: 100%; height: 100%; display: block; }
.px-flow-path { animation: pxflow 3.2s linear infinite; }
@keyframes pxflow { to { stroke-dashoffset: -440; } }
.px-pulse-dot { animation: pxpulse 2.4s ease-in-out infinite; }
@keyframes pxpulse { 0%, 100% { opacity: 0.65; } 50% { opacity: 1; } }
.px-origin-dot { animation: pxpulseorigin 2s ease-in-out infinite; }
@keyframes pxpulseorigin { 0%, 100% { opacity: 0.85; } 50% { opacity: 1; } }
.globe-hint {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--silver-light);
  font-size: 0.8rem;
  padding: 8px 18px;
  border-radius: 999px;
  backdrop-filter: blur(6px);
  pointer-events: none;
  white-space: nowrap;
  z-index: 2;
}
.globe-routes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 28px;
}
.route-chip {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--silver-light);
  font-size: 0.82rem;
  padding: 8px 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.route-chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }

@media (max-width: 760px) {
  .globe-panel {
    height: 420px;
    background: radial-gradient(circle at 50% 32%, rgba(91, 143, 214, 0.3), rgba(5, 14, 31, 0.22) 75%);
    border: 1px solid rgba(255, 255, 255, 0.16);
  }
  .globe-hint { font-size: 0.72rem; padding: 7px 14px; }
}

/* Service cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg { width: 26px; height: 26px; stroke: var(--silver-light); }
.card h3 { margin-bottom: 10px; }
.card a.link { color: var(--navy-700); font-weight: 600; font-size: 0.9rem; display: inline-block; margin-top: 14px; }

/* Feature list (checkmarks) */
.feature-list { display: grid; gap: 16px; margin-top: 28px; }
.feature-item { display: flex; gap: 14px; align-items: flex-start; }
.feature-item .tick {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--navy-800); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; flex-shrink: 0; margin-top: 2px;
}
.feature-item div h4 { color: var(--navy-900); font-size: 1rem; margin-bottom: 4px; }
.feature-item div p { font-size: 0.92rem; }

/* Two column layout */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

/* Values / why-us */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.value-grid.five-cols { grid-template-columns: repeat(5, 1fr); }
.value-item { text-align: center; padding: 12px; }
.value-item .num { font-size: 2.1rem; font-weight: 800; color: var(--navy-800); }
.value-item h4 { margin: 10px 0 6px; }
.value-item p { font-size: 0.9rem; }
.section-navy .value-item h4 { color: var(--white); }
.section-navy .value-item p { color: var(--silver); }
.section-navy .value-item .num { color: var(--accent-light); }

/* About page - intro & directions */
.about-intro { font-size: 1.05rem; line-height: 1.7; color: var(--navy-800); max-width: 980px; }
.about-closing { font-size: 1.05rem; line-height: 1.6; color: var(--navy-800); text-align: center; max-width: 780px; margin: 0 auto 28px; font-weight: 600; }

/* About page - leadership */
.leader-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 44px;
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 36px;
  align-items: start;
}
.leader-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-600));
  flex-shrink: 0;
}
.leader-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.leader-info h3 { font-size: 1.5rem; margin-bottom: 4px; }
.leader-role { color: var(--accent); font-weight: 600; font-size: 0.95rem; margin-bottom: 14px; }
.leader-intro { color: var(--navy-800); font-size: 1rem; line-height: 1.6; margin-bottom: 22px; }
.leader-block { margin-bottom: 18px; }
.leader-block:last-child { margin-bottom: 0; }
.leader-block h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 6px;
}
.leader-block p { color: var(--navy-800); font-size: 0.95rem; line-height: 1.65; margin-bottom: 8px; }
.leader-block p:last-child { margin-bottom: 0; }

@media (max-width: 760px) {
  .leader-card { grid-template-columns: 1fr; padding: 24px; }
  .leader-photo { max-width: 240px; margin: 0 auto; }
}

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-800), var(--navy-950));
  color: var(--white);
  border-radius: 24px;
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.cta-banner h2 { color: var(--white); margin-bottom: 8px; }
.cta-banner p { color: var(--silver); }

/* Contact form */
.form-grid { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-row.form-row-3 { grid-template-columns: 1fr 1fr 1fr; }
.cf-status { font-size: 0.9rem; margin-top: 4px; min-height: 1.2em; }
.cf-status-ok { color: #1a7f4e; }
.cf-status-error { color: #c0392b; }
label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy-900); margin-bottom: 6px; }
input, textarea, select {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--white);
  color: var(--ink);
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); }
textarea { resize: vertical; min-height: 130px; }

.contact-info-card {
  background: var(--navy-900);
  color: var(--white);
  border-radius: var(--radius);
  padding: 36px;
}
.contact-info-card h3 { color: var(--white); }
.info-row { display: flex; gap: 14px; margin-top: 22px; align-items: flex-start; }
.info-row .icon-sm {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.info-row .icon-sm svg { width: 18px; height: 18px; stroke: var(--silver-light); }
.info-row h4 { color: var(--silver-light); font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 4px; }
.info-row p { color: var(--white); font-size: 0.95rem; }

/* Footer */
.site-footer {
  background: var(--navy-950);
  color: var(--silver);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-grid h4 { color: var(--white); font-size: 0.9rem; margin-bottom: 18px; letter-spacing: 0.04em; }
.footer-grid ul li { margin-bottom: 10px; font-size: 0.9rem; }
.footer-grid ul li a:hover { color: var(--white); }
.footer-brand p { color: var(--silver); font-size: 0.9rem; margin-top: 14px; max-width: 280px; }
.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: rgba(199, 206, 219, 0.7);
}
.credit-code {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: rgba(199, 206, 219, 0.65);
  letter-spacing: 0.02em;
}
.credit-code svg { width: 15px; height: 15px; stroke: var(--accent-light); flex-shrink: 0; }

/* Floating contact button (placeholder for future AI chat) */
.chat-fab {
  position: fixed;
  right: 22px;
  bottom: 90px;
  z-index: 300;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-light), var(--navy-700));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 14px 30px -8px rgba(5,14,31,0.5), 0 0 0 0 rgba(159, 193, 236, 0.6);
  border: none;
  cursor: pointer;
  animation: chat-fab-glow 2.2s ease-in-out infinite;
}
.chat-fab svg { width: 26px; height: 26px; stroke: var(--white); }

@keyframes chat-fab-glow {
  0% { box-shadow: 0 14px 30px -8px rgba(5,14,31,0.5), 0 0 0 0 rgba(159, 193, 236, 0.55); }
  70% { box-shadow: 0 14px 30px -8px rgba(5,14,31,0.5), 0 0 0 16px rgba(159, 193, 236, 0); }
  100% { box-shadow: 0 14px 30px -8px rgba(5,14,31,0.5), 0 0 0 0 rgba(159, 193, 236, 0); }
}

/* Responsive */
@media (max-width: 940px) {
  .grid-3, .grid-2, .value-grid, .value-grid.five-cols, .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row, .form-row.form-row-3 { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-900);
    padding: 20px 24px;
    gap: 18px;
    border-top: 1px solid rgba(255,255,255,0.08);
  }
  .cta-banner { flex-direction: column; text-align: center; }
  .footer-grid { grid-template-columns: 1fr; }
}
