/* ================================================================
   RUKAI Logistics — service.css
   Shared styles for Phase 2/3 service pages & location pages.
   Follows the existing RUKAI Logistics design system (tokens in styles.css).
   ================================================================ */

/* ── Scroll reveal (matches existing fade-in-up) ── */
.fade-in-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 0.10s; }
.delay-2 { transition-delay: 0.20s; }
.delay-3 { transition-delay: 0.30s; }
.delay-4 { transition-delay: 0.40s; }
.delay-5 { transition-delay: 0.50s; }
.delay-6 { transition-delay: 0.60s; }

/* ── Hero (mirrors .hero-gradient from existing pages) ── */
.sp-hero {
  position: relative;
  min-height: 52vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.sp-hero-bg {
  position: absolute;
  inset: -12px;
  background: center 40% / cover no-repeat;
  filter: blur(2px);
  z-index: 0;
}
.sp-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 25, 47, 0.65) 0%, rgba(13, 34, 67, 0.78) 100%),
              radial-gradient(ellipse at 30% 40%, rgba(0, 86, 179, 0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 60%, rgba(0, 86, 179, 0.08) 0%, transparent 50%);
  z-index: 1;
  pointer-events: none;
}
.sp-hero-content {
  position: relative;
  text-align: center;
  max-width: 780px;
  padding: 72px 24px;
  z-index: 2;
}
.sp-hero-content h1 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 44px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.10;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
}
.sp-hero-content p {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
  max-width: 640px;
  margin: 0 auto 30px;
}
/* DG page: hero quote-response note */
.sp-hero-note {
  margin-top: 18px;
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);
}

.sp-hero-cta {
  display: inline-block;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #0A192F;
  background: #FFFFFF;
  padding: 15px 44px;
  border-radius: 10px;
  text-decoration: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.sp-hero-cta:hover {
  transform: scale(1.04);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}
.sp-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #60A5FA;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

/* ── Section scaffolding ── */
.sp-section { padding: 96px 0; }
.sp-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sp-container--narrow { max-width: 900px; margin: 0 auto; padding: 0 24px; }
.sp-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.sp-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 34px;
  font-weight: 700;
  color: #0A192F;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}
.sp-sub { font-size: 16px; color: #64748B; line-height: 1.7; }
.sp-lead { font-size: 16px; color: #4A5568; line-height: 1.8; }

/* ── Intro (text + image) ── */
.sp-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.sp-reverse .sp-col:first-child { order: 2; }
.sp-text-col { max-width: 540px; }
.sp-text-col .sp-title { text-align: left; }
.sp-image {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.sp-image:hover { transform: scale(1.02); }
.sp-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Check list ── */
.sp-check-list { list-style: none; margin: 22px 0 0; padding: 0; }
.sp-check-list li {
  position: relative;
  padding-left: 30px;
  font-size: 15px;
  color: #4A5568;
  line-height: 1.65;
  margin-bottom: 12px;
}
.sp-check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 18px;
  height: 18px;
  background: #0056B3;
  border-radius: 50%;
}
.sp-check-list li::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 9px;
  width: 8px;
  height: 5px;
  border-left: 2px solid #FFF;
  border-bottom: 2px solid #FFF;
  transform: rotate(-45deg);
}

/* ── Stats band ── */
.sp-stats { background: #FFFFFF; }
.sp-stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.sp-stat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px 24px;
  background: #F8FAFC;
  border: 1px solid #F1F5F9;
  border-radius: 14px;
  text-align: center;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.sp-stat:hover { border-color: #E2E8F0; box-shadow: 0 4px 16px rgba(0, 11, 26, 0.06); }
.sp-stat-num {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: #0056B3;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.sp-stat-label { font-size: 14px; color: #64748B; line-height: 1.55; }

/* Dark variant (homepage at-glance style) */
.sp-stats--dark { background: #0A192F; }
.sp-stats--dark .sp-stat { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.08); }
.sp-stats--dark .sp-stat-num { color: #FFFFFF; }
.sp-stats--dark .sp-stat-label { color: rgba(255, 255, 255, 0.65); }

/* ── Cards ── */
.sp-cards-grid { display: grid; gap: 24px; }
.sp-cols-2 { grid-template-columns: repeat(2, 1fr); }
.sp-cols-3 { grid-template-columns: repeat(3, 1fr); }
.sp-cols-4 { grid-template-columns: repeat(4, 1fr); }
.sp-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 26px;
  background: #F8FAFC;
  border: 1px solid #F1F5F9;
  border-radius: 16px;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease;
}
.sp-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 12px 32px rgba(0, 11, 26, 0.08);
  border-color: rgba(0, 86, 179, 0.2);
}
.sp-card h3 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: #0056B3;
  line-height: 1.3;
  margin: 0;
}
/* DG classification matrix — small class label above each class name */
.dg-class-num {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #64748B;
}
.sp-card p { font-size: 14.5px; color: #4A5568; line-height: 1.65; margin: 0; }
.sp-card-ico {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #EEF4FF;
  color: #0056B3;
}
.sp-card-ico svg { width: 22px; height: 22px; }

/* ── Steps ── */
.sp-steps { background: #F8FAFC; }
.sp-steps-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 36px 48px; }
.sp-step { display: flex; gap: 20px; align-items: flex-start; }
.sp-step-num {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  background: #0056B3;
  border-radius: 9px;
  padding: 6px 10px;
  min-width: 40px;
  text-align: center;
  flex-shrink: 0;
}
.sp-step h3 {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #0A192F;
  line-height: 1.3;
  margin: 2px 0 8px;
}
.sp-step p { font-size: 15px; color: #4A5568; line-height: 1.68; margin: 0; }

/* ── Comparison table ── */
.sp-table-wrap {
  overflow-x: auto;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  box-shadow: 0 1px 4px rgba(0, 11, 26, 0.04), 0 8px 24px rgba(0, 11, 26, 0.06);
}
.sp-table { width: 100%; border-collapse: separate; border-spacing: 0; font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; }
.sp-table thead th {
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  background: #0A192F;
  text-align: left;
  padding: 16px 24px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.sp-table thead th:first-child { background: #0D2242; width: 26%; }
.sp-table thead th:nth-child(2) { background: #132D4E; }
.sp-table thead th:nth-child(3) { background: #0056B3; }
.sp-table tbody td {
  font-size: 15px;
  color: #4A5568;
  padding: 18px 24px;
  border-bottom: 1px solid #F1F5F9;
  line-height: 1.5;
}
.sp-table tbody td:first-child { font-weight: 600; color: #0A192F; background: #F8FAFC; }
.sp-table tbody tr:last-child td { border-bottom: none; }
.sp-table tbody tr:hover td { background: #F4F7FC; }
.sp-table tbody tr:hover td:first-child { background: #EEF2F8; }

/* ── Network / related links ── */
.sp-network { background: #F8FAFC; }
.sp-net-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sp-net-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 22px 20px;
  background: #FFFFFF;
  border: 1px solid #E8ECF2;
  border-radius: 14px;
  text-decoration: none;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.3s ease;
}
.sp-net-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 10px 32px rgba(0, 11, 26, 0.09);
  border-color: #B8D4F8;
}
.sp-net-arrow { flex-shrink: 0; margin-top: 2px; }
.sp-net-label {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #0A192F;
  margin-bottom: 4px;
  line-height: 1.35;
}
.sp-net-note { font-size: 13px; color: #64748B; line-height: 1.5; }

/* ── FAQ ── */
.sp-faq { background: #FFFFFF; }
.sp-faq-more { text-align: center; margin-top: 28px; font-size: 15px; }
.sp-faq-more a { color: #0056B3; font-weight: 600; text-decoration: none; }
.sp-faq-more a:hover { text-decoration: underline; }

/* ── CTA band (mirrors footer-cta) ── */
.sp-cta {
  padding: 96px 0;
  background: linear-gradient(135deg, #0056B3 0%, #003D7A 100%);
  color: #FFFFFF;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.sp-cta::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.sp-cta h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  position: relative;
  z-index: 1;
}
.sp-cta p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  margin: 0 0 32px;
  position: relative;
  z-index: 1;
}
.sp-cta .btn-white-large {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  color: #0056B3;
  padding: 18px 48px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.18), 0 1px 4px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}
.sp-cta .btn-white-large:hover { transform: scale(1.05); box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25); }
.sp-cta .btn-white-large:active { transform: scale(0.98); }

/* ── Banner callout ── */
.sp-banner {
  padding: 34px 40px;
  background: linear-gradient(135deg, #EEF4FF 0%, #F0F5FC 100%);
  border: 1px solid rgba(0, 86, 179, 0.12);
  border-radius: 16px;
  text-align: center;
}
.sp-banner-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #0056B3;
  margin-bottom: 12px;
}
.sp-banner p { font-size: 16px; line-height: 1.9; color: #4A5568; margin: 0; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .sp-hero-content h1 { font-size: 34px; }
  .sp-section { padding: 72px 0; }
  .sp-title { font-size: 28px; }
  .sp-grid-2 { grid-template-columns: 1fr; gap: 40px; }
  .sp-cols-2, .sp-cols-3, .sp-cols-4 { grid-template-columns: repeat(2, 1fr); }
  .sp-stats-row { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .sp-steps-list { grid-template-columns: 1fr; gap: 28px; }
  .sp-net-grid { grid-template-columns: repeat(2, 1fr); }
  .sp-hero { min-height: 46vh; }
  .sp-hero-bg { filter: none; }
  .sp-table thead th, .sp-table tbody td { padding: 14px 16px; font-size: 13px; }
}
@media (max-width: 600px) {
  .sp-hero-content h1 { font-size: 26px; }
  .sp-cols-2, .sp-cols-3, .sp-cols-4 { grid-template-columns: 1fr; }
  .sp-stats-row { grid-template-columns: 1fr; }
  .sp-net-grid { grid-template-columns: 1fr; }
  .sp-title { font-size: 24px; }
  .sp-stat-num { font-size: 30px; }
  .sp-step { flex-direction: column; gap: 10px; }
  .sp-banner { padding: 26px 20px; }
}

/* ================================
   DG PAGE — PHOTO LAYOUT
   ================================ */
.dg-hero .sp-hero-content {
  max-width: 1160px;
  width: 100%;
  text-align: left;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 56px;
  align-items: center;
  padding: 76px 32px;
}
.dg-hero-media {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 26px 64px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.dg-hero-media img { width: 100%; height: auto; display: block; }
.dg-hero-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 25, 47, 0) 58%, rgba(10, 25, 47, 0.34) 100%);
  pointer-events: none;
}
.dg-shot { margin: 0; }
.dg-shot figcaption {
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.55;
  color: #64748B;
}
.dg-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.dg-duo img {
  width: 100%;
  aspect-ratio: 6 / 5;
  object-fit: cover;
  display: block;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.10);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.dg-duo img:hover { transform: scale(1.02); }
@media (max-width: 900px) {
  .dg-hero .sp-hero-content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 36px;
    padding: 64px 24px;
  }
  .dg-duo { grid-template-columns: 1fr; gap: 22px; }
  /* 移动端 hero 因文案较长而变高，cover 放大会把背景图右缘的旧标识裁进视野，取景左移 */
  .dg-hero .sp-hero-bg { background-position: 18% 40%; }
}
