:root {
  --blue: #287cc2;
  --blue-deep: #125b98;
  --orange: #f7941d;
  --ink: #15324a;
  --muted: #607382;
  --paper: #f7fbfe;
  --line: #d8e6ef;
  --white: #ffffff;
  --danger: #b9382d;
  --shadow: 0 18px 48px rgba(18, 91, 152, 0.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 8%, rgba(247, 148, 29, 0.14), transparent 24rem),
    linear-gradient(180deg, #f4faff 0, var(--white) 34rem);
  font-family: "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

a { color: inherit; }

.site-header {
  width: min(1180px, calc(100% - 40px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img { display: block; width: 178px; height: 58px; object-fit: contain; }
.site-header nav { display: flex; align-items: center; gap: 10px; }
.site-header nav a, .site-header nav span { padding: 10px 14px; text-decoration: none; font-size: 14px; font-weight: 700; }
.site-header nav span { color: var(--blue-deep); background: #e4f2fb; border-radius: 999px; }

main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.hero {
  min-height: 440px;
  padding: 68px 64px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 70px;
  overflow: hidden;
  color: var(--white);
  border-radius: 30px;
  background:
    linear-gradient(125deg, rgba(9, 62, 104, 0.96), rgba(40, 124, 194, 0.9)),
    repeating-linear-gradient(45deg, transparent 0 26px, rgba(255,255,255,.05) 26px 27px);
  box-shadow: var(--shadow);
}

.eyebrow { margin: 0 0 14px; color: var(--orange); font-size: 12px; font-weight: 900; letter-spacing: .14em; }
h1 { max-width: 610px; margin: 0; font-size: clamp(36px, 5vw, 64px); line-height: 1.08; letter-spacing: -.04em; }
.hero-copy > p:not(.eyebrow) { max-width: 610px; margin: 24px 0 0; color: #d9ecfa; font-size: 17px; line-height: 1.8; }
.trust-row { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.trust-row span { padding: 8px 12px; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; color: #edf8ff; font-size: 13px; }

.route-visual { position: relative; min-height: 245px; display: flex; align-items: center; justify-content: space-between; }
.route-visual::before { content: ""; position: absolute; inset: 14px 4px; border: 1px solid rgba(255,255,255,.1); border-radius: 50%; transform: rotate(-10deg); }
.port-node { z-index: 1; width: 118px; text-align: center; }
.port-node i { display: block; width: 20px; height: 20px; margin: 0 auto 16px; border: 5px solid var(--white); border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 10px rgba(247,148,29,.18); }
.port-node strong, .port-node small { display: block; }
.port-node small { margin-top: 5px; color: #bfe0f6; letter-spacing: .18em; }
.route-line { position: relative; flex: 1; height: 2px; margin: 0 8px 42px; background: repeating-linear-gradient(90deg, #fff 0 8px, transparent 8px 15px); }
.ship { position: absolute; left: 44%; top: -19px; display: grid; place-items: center; width: 42px; height: 42px; color: var(--blue-deep); background: var(--orange); border: 4px solid rgba(255,255,255,.8); border-radius: 50%; transform: rotate(-8deg); }

.finder { padding: 80px 0 70px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.section-heading h2 { margin: 0; font-size: clamp(28px, 4vw, 42px); }
.section-heading > p { margin: 0; color: var(--muted); }

.filters {
  padding: 22px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto auto;
  align-items: end;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  box-shadow: 0 12px 34px rgba(21, 50, 74, .07);
}

.filters label { display: grid; gap: 8px; color: #3b5365; font-size: 13px; font-weight: 800; }
select, button { min-height: 48px; border-radius: 11px; font: inherit; }
select { width: 100%; padding: 0 38px 0 13px; color: var(--ink); border: 1px solid #cbdce7; background: var(--white); }
button { padding: 0 20px; color: var(--white); border: 0; background: var(--orange); cursor: pointer; font-weight: 800; }
button:hover { filter: brightness(.96); }
.reset-button { color: var(--blue-deep); border: 1px solid #bdd7e8; background: #edf7fd; }

.status-panel { min-height: 240px; margin-top: 28px; display: grid; place-items: center; align-content: center; padding: 32px; text-align: center; border: 1px dashed #bad4e5; border-radius: 20px; background: #f7fbfe; }
.status-panel[hidden] { display: none; }
.status-panel strong { margin-top: 16px; font-size: 20px; }
.status-panel p { margin: 8px 0 0; color: var(--muted); }
.status-icon { width: 38px; height: 38px; border: 4px solid #c9e1f0; border-top-color: var(--blue); border-radius: 50%; }
.loading .status-icon { animation: spin .8s linear infinite; }
.empty .status-icon { border: 0; border-radius: 8px; background: linear-gradient(135deg, var(--blue), var(--orange)); transform: rotate(45deg); }
.error { border-color: #efc3bf; background: #fff8f7; }
.error .status-icon { border-color: var(--danger); position: relative; }
.error .status-icon::after { content: "!"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--danger); font-weight: 900; }

.forwarder-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.forwarder-grid[hidden] { display: none; }
.forwarder-card { padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: var(--white); box-shadow: 0 12px 32px rgba(21, 50, 74, .08); }
.company-name-en { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.card-head, .identity, .card-footer { display: flex; align-items: center; }
.card-head, .card-footer { justify-content: space-between; gap: 14px; }
.identity { gap: 12px; }
.company-mark { width: 48px; height: 48px; display: grid; place-items: center; color: var(--white); border-radius: 14px; background: linear-gradient(145deg, var(--blue-deep), var(--blue)); font-size: 20px; font-weight: 900; }
.card-head h3 { margin: 0 0 4px; font-size: 18px; }
.location { color: var(--muted); font-size: 13px; }
.verified { flex: 0 0 auto; padding: 6px 9px; color: #12643c; border-radius: 999px; background: #e7f6ee; font-size: 12px; font-weight: 800; }
.verified::before { content: "✓ "; }
.card-route { margin: 20px 0 16px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 15px; color: var(--blue-deep); border-radius: 13px; background: #eef7fc; font-weight: 800; }
.card-route span:last-child { text-align: right; }
.card-route i { color: var(--orange); font-style: normal; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag { padding: 6px 9px; color: #3c5d72; border: 1px solid #d3e4ee; border-radius: 7px; background: #fbfdff; font-size: 12px; }
.mode-tags .tag { color: #914a00; border-color: #ffdcb0; background: #fff7ec; }
.description { min-height: 48px; margin: 17px 0; color: var(--muted); line-height: 1.65; }
.service-tags { margin-bottom: 18px; }
.card-footer { padding-top: 16px; border-top: 1px solid #edf2f5; }
.card-footer small { color: #80909b; }
.contact-button { padding: 9px 12px; color: var(--white); border-radius: 9px; background: var(--blue); text-decoration: none; font-size: 13px; font-weight: 800; }
.contact-button.disabled { color: #7b8992; background: #edf1f3; }

footer { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 28px 0 38px; display: flex; justify-content: space-between; color: var(--muted); border-top: 1px solid var(--line); font-size: 13px; }
footer strong { color: var(--blue-deep); }

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 24px; padding: 48px 32px; }
  .route-visual { min-height: 170px; }
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .forwarder-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .site-header { width: min(100% - 28px, 1180px); min-height: 68px; }
  .brand img { width: 130px; height: 46px; }
  .site-header nav a { display: none; }
  .site-header nav span { padding: 8px 11px; }
  main { width: min(100% - 24px, 1180px); }
  .hero { min-height: auto; padding: 38px 22px; border-radius: 22px; }
  h1 { font-size: 38px; }
  .hero-copy > p:not(.eyebrow) { font-size: 15px; }
  .route-visual { min-height: 145px; }
  .port-node { width: 88px; font-size: 13px; }
  .ship { left: 35%; }
  .finder { padding: 55px 0; }
  .section-heading { align-items: start; flex-direction: column; }
  .filters { grid-template-columns: 1fr; padding: 16px; }
  .filters button { width: 100%; }
  .forwarder-card { padding: 18px; }
  .card-head { align-items: flex-start; }
  .card-footer { align-items: flex-start; flex-direction: column; }
  .contact-button { width: 100%; text-align: center; }
  footer { width: min(100% - 28px, 1180px); flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  .loading .status-icon { animation: none; }
}
