/* 睿流 RelayFlows 官网 - 主样式 */

:root {
  --color-primary: #1a56db;
  --color-primary-dark: #123a82;
  --color-primary-darker: #0b1e3d;
  --color-accent: #22d3ee;
  --color-ink: #101828;
  --color-ink-soft: #475467;
  --color-bg: #f7f9fc;
  --color-bg-alt: #eef2fb;
  --color-line: #e3e8f2;
  --color-white: #ffffff;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  --radius-full: 999px;
  --shadow-card: 0 6px 24px rgba(16, 24, 40, 0.06);
  --shadow-card-hover: 0 16px 40px rgba(26, 86, 219, 0.14);
  --container-width: 1160px;
  --font-sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Helvetica Neue", Helvetica, Arial, "Noto Sans SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-ink);
  background: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4, p {
  margin: 0;
}

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

.section {
  padding: 88px 0;
}

.section--tight {
  padding: 64px 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section--dark {
  background: linear-gradient(160deg, var(--color-primary-darker) 0%, #142a5c 55%, var(--color-primary) 100%);
  color: var(--color-white);
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  background: rgba(26, 86, 219, 0.08);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.section--dark .eyebrow {
  color: var(--color-accent);
  background: rgba(34, 211, 238, 0.12);
}

.section-title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 16px;
  color: var(--color-ink-soft);
  max-width: 640px;
}

.section--dark .section-desc {
  color: rgba(255, 255, 255, 0.78);
}

.section-head {
  text-align: center;
  margin: 0 auto 48px;
  max-width: 720px;
}

.section-head .section-desc {
  margin: 0 auto;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 600;
  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: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 10px 24px rgba(26, 86, 219, 0.28);
}

.btn-primary:hover {
  background: #1445b8;
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--color-white);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn-ghost {
  background: var(--color-white);
  color: var(--color-primary);
  border-color: var(--color-line);
}

.btn-ghost:hover {
  border-color: var(--color-primary);
}

.btn-light {
  background: var(--color-white);
  color: var(--color-primary);
}

.btn-light:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  color: var(--color-ink);
}

.brand img {
  height: 32px;
  width: auto;
}

.brand__cn {
  color: var(--color-primary);
}

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

.nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--color-ink-soft);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.nav a:hover,
.nav a.is-active {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--color-ink);
  border-radius: 2px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding-top: 96px;
  padding-bottom: 96px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 140%;
  background:
    radial-gradient(48% 55% at 18% 20%, rgba(34, 211, 238, 0.35), transparent 70%),
    radial-gradient(55% 60% at 85% 15%, rgba(26, 86, 219, 0.55), transparent 65%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.hero h1 {
  font-size: 46px;
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
}

.hero__desc {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.82);
  max-width: 520px;
  margin-bottom: 34px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero__art {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 60px rgba(5, 12, 30, 0.45);
}

.hero__art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero {
  padding: 72px 0 56px;
}

.page-hero h1 {
  font-size: 38px;
  font-weight: 800;
  margin-bottom: 14px;
}

.page-hero__desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.82);
  max-width: 620px;
}

.breadcrumb {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 18px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.85);
}

/* ---------- Stats ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.stat {
  text-align: center;
}

.stat__num {
  font-size: 36px;
  font-weight: 800;
  color: var(--color-primary);
}

.section--dark .stat__num {
  color: var(--color-accent);
}

.stat__label {
  margin-top: 6px;
  font-size: 14px;
  color: var(--color-ink-soft);
}

.section--dark .stat__label {
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- Cards / Grid ---------- */

.grid {
  display: grid;
  gap: 24px;
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 28px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(26, 86, 219, 0.25);
}

.card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26, 86, 219, 0.1);
  color: var(--color-primary);
  margin-bottom: 18px;
  font-size: 22px;
}

.card__title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.card__desc {
  font-size: 14.5px;
  color: var(--color-ink-soft);
}

.card--dark {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--color-white);
}

.card--dark .card__desc {
  color: rgba(255, 255, 255, 0.75);
}

.tag {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(26, 86, 219, 0.09);
  color: var(--color-primary);
  margin-bottom: 14px;
}

/* ---------- Case card with image ---------- */

.case-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-line);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.case-card__img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.case-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.case-card:hover .case-card__img img {
  transform: scale(1.05);
}

.case-card__body {
  padding: 24px;
}

.case-card__metrics {
  display: flex;
  gap: 20px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--color-line);
}

.metric-num {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-primary);
}

.metric-label {
  font-size: 12.5px;
  color: var(--color-ink-soft);
}

/* ---------- Timeline ---------- */

.timeline {
  position: relative;
  padding-left: 32px;
  border-left: 2px solid var(--color-line);
}

.timeline__item {
  position: relative;
  padding-bottom: 40px;
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__item::before {
  content: "";
  position: absolute;
  left: -39px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(26, 86, 219, 0.15);
}

.timeline__year {
  font-size: 13px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 6px;
}

.timeline__title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.timeline__desc {
  font-size: 14.5px;
  color: var(--color-ink-soft);
}

/* ---------- News list ---------- */

.news-card {
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.news-card__img {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.news-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.news-card__body {
  padding: 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.news-card__date {
  font-size: 12.5px;
  color: var(--color-ink-soft);
  margin-bottom: 8px;
}

.news-card__title {
  font-size: 16.5px;
  font-weight: 700;
  margin-bottom: 10px;
}

.news-card__excerpt {
  font-size: 14px;
  color: var(--color-ink-soft);
  flex: 1;
}

/* ---------- CTA banner ---------- */

.cta-banner {
  background: linear-gradient(120deg, var(--color-primary) 0%, #143a94 60%, var(--color-primary-darker) 100%);
  border-radius: var(--radius-lg);
  padding: 56px 64px;
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.cta-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(40% 80% at 90% 10%, rgba(34, 211, 238, 0.35), transparent 70%);
  pointer-events: none;
}

.cta-banner__title {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 10px;
  position: relative;
}

.cta-banner__desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.82);
  position: relative;
}

.cta-banner__actions {
  position: relative;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ---------- Contact ---------- */

.contact-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
}

.info-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.info-item__icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: rgba(26, 86, 219, 0.1);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.info-item__label {
  font-size: 13px;
  color: var(--color-ink-soft);
  margin-bottom: 4px;
}

.info-item__value {
  font-size: 15.5px;
  font-weight: 600;
}

.form-card {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 18px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.form-field label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-ink);
}

.form-field input,
.form-field textarea {
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 14.5px;
  font-family: inherit;
  background: var(--color-bg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.14);
}

.map-embed {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-line);
  aspect-ratio: 16 / 8;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--color-primary-darker);
  color: rgba(255, 255, 255, 0.75);
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  color: var(--color-white);
  margin-bottom: 14px;
}

.footer-brand img {
  height: 28px;
}

.footer-desc {
  font-size: 13.5px;
  line-height: 1.8;
  max-width: 300px;
}

.footer-col-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 16px;
}

.footer-col a {
  display: block;
  font-size: 13.5px;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--color-white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 24px;
  font-size: 12.5px;
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.75);
}

.footer-bottom a:hover {
  color: var(--color-white);
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }

  .hero__art {
    order: -1;
  }

  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 18px;
    border-bottom: 1px solid var(--color-line);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .nav a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--color-line);
  }

  .nav-toggle {
    display: flex;
  }

  .header-actions .btn-primary {
    display: none;
  }

  .hero h1 {
    font-size: 32px;
  }

  .section {
    padding: 56px 0;
  }

  .section-title {
    font-size: 26px;
  }

  .grid--4,
  .grid--3,
  .grid--2 {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cta-banner {
    padding: 40px 28px;
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}
