/* 新安送官网 · 同城货运 */

:root {
  --ink: #132238;
  --ink-soft: #3d5168;
  --muted: #7a8ea3;
  --paper: #f3f8fc;
  --paper-deep: #e4eef7;
  --accent: #2f8ffb;
  --accent-deep: #1a6fd4;
  --accent-soft: #9ecfff;
  --wash: rgba(47, 143, 251, 0.12);
  --hero-veil: linear-gradient(
    105deg,
    rgba(12, 28, 48, 0.82) 0%,
    rgba(18, 42, 72, 0.52) 48%,
    rgba(26, 111, 212, 0.28) 100%
  );
  --nav-bg: rgba(243, 248, 252, 0.86);
  --line: rgba(19, 34, 56, 0.1);
  --footer-bg: #0f1c2e;
  --footer-fg: #d7e6f5;
  --footer-muted: #8aa3bc;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}

/* —— Nav —— */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: var(--nav-bg);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.95rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
}

.brand-mark {
  font-family: "Outfit", "Noto Sans SC", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.brand-en {
  font-family: "Outfit", sans-serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link {
  display: none;
  padding: 0.4rem 0.75rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--accent-deep);
}

@media (min-width: 720px) {
  .nav-link {
    display: inline-block;
  }
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #f5f9fd;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  transform: scale(1.04);
  animation: hero-drift 18s ease-in-out infinite alternate;
}

.hero-veil {
  position: absolute;
  inset: 0;
  background: var(--hero-veil);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 7.5rem 1.5rem 4.5rem;
}

.hero-brand {
  font-family: "Outfit", "Noto Sans SC", sans-serif;
  font-size: clamp(2.8rem, 8vw, 5rem);
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.05;
  margin: 0 0 1.1rem;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s 0.15s ease forwards;
}

.hero-lead {
  max-width: 28rem;
  margin: 0 0 2rem;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  font-weight: 300;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.9);
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s 0.35s ease forwards;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  opacity: 0;
  transform: translateY(18px);
  animation: rise 0.9s 0.55s ease forwards;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0.65rem 1.35rem;
  border-radius: 4px;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease,
    border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: #fff;
  color: var(--accent-deep);
  font-weight: 500;
}

.btn-primary:hover {
  background: var(--paper);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
}

.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.hero-scroll {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 1;
  font-family: "Outfit", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  writing-mode: vertical-rl;
  opacity: 0;
  animation: fade 1s 1s ease forwards;
}

/* —— Sections —— */
.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 5.5rem 1.5rem;
}

.section-label {
  font-family: "Outfit", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 0.85rem;
}

.section-title {
  font-family: "Noto Sans SC", sans-serif;
  font-size: clamp(1.7rem, 3.5vw, 2.25rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.3;
  margin: 0 0 0.85rem;
  color: var(--ink);
}

.section-desc {
  max-width: 36rem;
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

.capabilities {
  background: linear-gradient(
    180deg,
    var(--paper) 0%,
    var(--paper-deep) 48%,
    var(--paper) 100%
  );
}

.cap-grid {
  display: grid;
  gap: 0;
  margin-top: 3rem;
  border-top: 1px solid var(--line);
}

.cap-item {
  display: grid;
  gap: 0.75rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.cap-item.is-in {
  opacity: 1;
  transform: none;
}

@media (min-width: 800px) {
  .cap-item {
    grid-template-columns: 4.5rem 1fr 1.4fr;
    align-items: baseline;
    gap: 1.5rem;
    padding: 1.9rem 0;
  }
}

.cap-index {
  font-family: "Outfit", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.cap-name {
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin: 0;
}

.cap-text {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* —— Experience —— */
.experience {
  background: linear-gradient(
    180deg,
    var(--paper) 0%,
    var(--paper-deep) 55%,
    var(--paper) 100%
  );
  overflow: hidden;
}

.experience-inner {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 880px) {
  .experience-inner {
    grid-template-columns: 1fr minmax(14rem, 17.5rem);
    gap: 3.5rem;
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
  }
}

.experience-copy .section-desc {
  margin-bottom: 1.5rem;
}

.experience-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.experience-tab {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  background: color-mix(in srgb, var(--paper) 80%, white);
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.experience-tab:hover {
  color: var(--accent-deep);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
}

.experience-tab[aria-selected="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.experience-stage {
  display: flex;
  justify-content: center;
}

.phone-showcase {
  width: min(13.25rem, 56vw);
}

.phone-frame--stage {
  position: relative;
  border-radius: 1.35rem;
  padding: 0.42rem;
  background: linear-gradient(160deg, #1a2d44 0%, #2a4a6e 100%);
  box-shadow:
    0 24px 48px -20px rgba(15, 40, 70, 0.45),
    0 0 0 1px rgba(19, 34, 56, 0.12);
}

.phone-frame--stage::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  left: 50%;
  width: 26%;
  height: 0.26rem;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.35);
  z-index: 2;
  pointer-events: none;
}

.phone-slides {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 2 / 3;
  background: #f4f8fc;
}

.phone-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.phone-slide.is-active {
  opacity: 1;
  z-index: 1;
}

/* —— Phone mock screens —— */
.mock {
  height: 100%;
  padding: 1.35rem 0.7rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  position: relative;
  font-size: 0.58rem;
  color: var(--ink);
  background: #f4f8fc;
}

.mock-sky {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4.2rem;
  background: linear-gradient(
    180deg,
    #7dc9f8 0%,
    #a6ddfb 55%,
    rgba(244, 248, 252, 0) 100%
  );
  pointer-events: none;
}

.mock-bar {
  position: relative;
  z-index: 1;
  text-align: center;
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  margin-bottom: 0.15rem;
}

.mock-card {
  position: relative;
  z-index: 1;
  background: #fff;
  border-radius: 0.55rem;
  padding: 0.55rem 0.5rem;
  box-shadow: 0 4px 14px rgba(31, 70, 110, 0.06);
  display: flex;
  gap: 0.45rem;
}

.mock-card.thin {
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0.55rem;
}

.mock-card.thin span {
  color: var(--muted);
}

.mock-route {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding-top: 0.15rem;
}

.mock-route .dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
}

.mock-route .dot.start {
  background: var(--accent);
}

.mock-route .dot.end {
  background: #25b879;
}

.mock-route .line {
  width: 2px;
  flex: 1;
  min-height: 1.4rem;
  background: #d5e4f2;
}

.mock-lines {
  display: grid;
  gap: 0.12rem;
  flex: 1;
}

.mock-lines b {
  font-size: 0.58rem;
}

.mock-lines span {
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.mock-price {
  position: relative;
  z-index: 1;
  margin-top: auto;
  text-align: center;
  font-family: "Outfit", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent-deep);
}

.mock-cta {
  position: relative;
  z-index: 1;
  text-align: center;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 0.45rem;
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
}

.mock-status {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  background: rgba(47, 143, 251, 0.15);
  color: var(--accent-deep);
  font-weight: 600;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.55rem;
}

.mock-map {
  position: relative;
  z-index: 1;
  height: 6.2rem;
  border-radius: 0.55rem;
  background:
    radial-gradient(circle at 30% 40%, rgba(47, 143, 251, 0.18), transparent 45%),
    linear-gradient(145deg, #d7e8f7, #eef5fb);
  overflow: hidden;
}

.mock-map .pin {
  position: absolute;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 0.45rem;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.mock-map .pin.a {
  left: 12%;
  top: 58%;
  color: var(--accent);
}

.mock-map .pin.b {
  right: 14%;
  top: 22%;
  color: #25b879;
}

.mock-map .truck {
  position: absolute;
  left: 42%;
  top: 38%;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 0.35rem;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.42rem;
  font-weight: 700;
}

.mock-map .route {
  position: absolute;
  left: 18%;
  top: 35%;
  width: 58%;
  height: 28%;
  border: 2px dashed rgba(47, 143, 251, 0.45);
  border-radius: 40% 60% 50% 50%;
  border-left: 0;
  border-bottom: 0;
}

.mock-steps {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 0.28rem;
  justify-content: center;
  margin-top: 0.2rem;
}

.mock-steps i {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: #d5e0ec;
}

.mock-steps i.on {
  background: var(--accent);
}

.mock-hint {
  position: relative;
  z-index: 1;
  margin: 0.15rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.52rem;
}

.mock-driver .order-row {
  align-items: center;
  justify-content: space-between;
}

.mock-driver .order-row div {
  display: grid;
  gap: 0.12rem;
}

.mock-driver .order-row span {
  color: var(--muted);
}

.mock-driver .order-row strong {
  font-family: "Outfit", sans-serif;
  color: var(--accent-deep);
  font-size: 0.78rem;
}

.mock-driver .order-row.dim {
  opacity: 0.55;
}

.mock-driver .mock-cta {
  margin-top: auto;
}

.mock-tabs {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 0.35rem;
}

.mock-tabs span {
  flex: 1;
  text-align: center;
  padding: 0.3rem 0;
  border-radius: 999px;
  background: #e8f1fa;
  color: var(--muted);
  font-size: 0.52rem;
}

.mock-tabs span.on {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
}

.mock-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  flex: 1;
}

.mock-grid i {
  border-radius: 0.4rem;
  background:
    linear-gradient(160deg, #c9dff5, #eaf3fb),
    #dbeaf8;
  min-height: 2.4rem;
}

.experience-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 1.15rem;
}

.experience-nav {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 1.25rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.experience-nav:hover {
  color: var(--accent-deep);
  border-color: var(--accent);
  background: var(--wash);
}

.experience-dots {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.experience-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  padding: 0;
  background: color-mix(in srgb, var(--muted) 45%, transparent);
  transition: width 0.25s ease, background 0.25s ease;
}

.experience-dot[aria-current="true"] {
  width: 1.15rem;
  background: var(--accent);
}

/* —— About —— */
.about-layout {
  display: grid;
  gap: 2.5rem;
  margin-top: 2.5rem;
}

@media (min-width: 860px) {
  .about-layout {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: start;
  }
}

.about-copy p {
  margin: 0 0 1.1rem;
  color: var(--ink-soft);
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.about-panel {
  padding: 1.75rem 1.5rem;
  background: var(--wash);
  border-left: 3px solid var(--accent);
}

.about-panel h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin: 0 0 1rem;
}

.about-meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.about-meta li {
  display: grid;
  gap: 0.15rem;
}

.about-meta span {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.about-meta strong {
  font-weight: 500;
  color: var(--ink);
  font-size: 0.95rem;
}

/* —— Contact —— */
.contact-strip {
  max-width: 1120px;
  margin: 0 auto 4rem;
  padding: 0 1.5rem;
}

.contact-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.75rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.contact-inner p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 32rem;
}

.contact-cta {
  display: inline-flex;
  align-items: center;
  min-height: 2.6rem;
  padding: 0.5rem 1.2rem;
  border-radius: 4px;
  background: var(--accent);
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: background 0.2s ease, transform 0.2s ease;
}

.contact-cta:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
}

/* —— Footer —— */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-fg);
  padding: 3rem 1.5rem 2rem;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .footer-inner {
    grid-template-columns: 1.2fr 1fr;
  }
}

.footer-brand {
  font-family: "Outfit", "Noto Sans SC", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  margin: 0 0 0.5rem;
}

.footer-legal {
  margin: 0;
  color: var(--footer-muted);
  font-size: 0.9rem;
}

.footer-links {
  display: grid;
  gap: 0.55rem;
  font-size: 0.9rem;
  color: var(--footer-muted);
}

.footer-links a:hover {
  color: #fff;
}

.footer-bottom {
  max-width: 1120px;
  margin: 2.25rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--footer-muted);
}

/* —— Motion —— */
@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes fade {
  to {
    opacity: 1;
  }
}

@keyframes hero-drift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.08) translate3d(-1.2%, -0.8%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-media img,
  .hero-brand,
  .hero-lead,
  .hero-ctas,
  .hero-scroll,
  .cap-item,
  .phone-slide {
    animation: none !important;
    transform: none;
  }

  .phone-slide.is-active {
    opacity: 1;
  }

  .phone-slide:not(.is-active) {
    opacity: 0;
  }
}
