/* ==========================================================================
   路飞智通 官网公共样式
   设计：专业、合规、可信。深蓝主色 + 中性灰，移动优先响应式。
   ========================================================================== */

:root {
  --color-primary: #0b2545;
  --color-primary-2: #13315c;
  --color-accent: #1d6fe0;
  --color-accent-dark: #1554ad;
  --color-bg: #ffffff;
  --color-bg-soft: #f5f7fb;
  --color-bg-dark: #0b2545;
  --color-text: #1f2937;
  --color-text-soft: #4b5563;
  --color-text-muted: #6b7280;
  --color-border: #e5e7eb;
  --color-success: #16a34a;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 6px 20px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.12);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --container: 1160px;
  --header-h: 68px;

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: var(--color-accent);
  text-decoration: none;
}

a:hover {
  color: var(--color-accent-dark);
  text-decoration: underline;
}

h1, h2, h3, h4 {
  color: var(--color-primary);
  line-height: 1.3;
  margin: 0 0 0.6em;
  font-weight: 700;
}

h1 { font-size: clamp(28px, 4vw, 40px); }
h2 { font-size: clamp(24px, 3vw, 30px); }
h3 { font-size: 20px; }

p { margin: 0 0 1em; }

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

.section {
  padding: 72px 0;
}

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

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

.section-head p {
  color: var(--color-text-soft);
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn:hover { text-decoration: none; }

.btn--primary {
  background: var(--color-accent);
  color: #fff;
}
.btn--primary:hover {
  background: var(--color-accent-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

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

.btn--outline {
  background: #fff;
  color: var(--color-primary);
  border-color: var(--color-border);
}
.btn--outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

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

.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--color-primary);
}
.brand:hover { text-decoration: none; color: var(--color-primary); }

.brand__logo {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand__sub {
  font-size: 12px;
  color: var(--color-text-muted);
  font-weight: 500;
  margin-left: 2px;
}

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

.site-nav a {
  color: var(--color-text-soft);
  font-size: 15px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.site-nav a:hover {
  color: var(--color-primary);
  background: var(--color-bg-soft);
  text-decoration: none;
}

.site-nav a.is-active {
  color: var(--color-accent);
  background: rgba(29, 111, 224, 0.08);
}

.lang-switch {
  margin-left: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-soft);
  border: 1px solid var(--color-border);
  padding: 6px 12px;
  border-radius: 999px;
}
.lang-switch:hover {
  color: var(--color-accent);
  border-color: var(--color-accent);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-primary);
  margin: 5px 0;
  transition: 0.2s;
}

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(29, 111, 224, 0.35), transparent 60%),
    linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-2) 100%);
  color: #fff;
  padding: 96px 0 88px;
}

.hero h1 {
  color: #fff;
  max-width: 720px;
}

.hero p.lead {
  color: rgba(255, 255, 255, 0.85);
  font-size: 18px;
  max-width: 640px;
  margin-bottom: 32px;
}

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

.hero__badges {
  margin-top: 40px;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
}

.hero__badges span::before {
  content: "✓";
  color: #6ee7b7;
  margin-right: 8px;
  font-weight: 700;
}

/* ---------- Page hero (sub pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-2));
  color: #fff;
  padding: 64px 0 56px;
}
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero p { color: rgba(255, 255, 255, 0.85); max-width: 720px; margin: 0; }

.breadcrumb {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 16px;
}
.breadcrumb a { color: rgba(255, 255, 255, 0.85); }

/* ---------- Cards / Grids ---------- */
.grid {
  display: grid;
  gap: 24px;
}
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all 0.2s ease;
}
.card:hover {
  border-color: rgba(29, 111, 224, 0.4);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card__icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(29, 111, 224, 0.1);
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}

.card h3 { margin-bottom: 8px; }
.card p { color: var(--color-text-soft); margin: 0; font-size: 15px; }

/* ---------- Stat strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stats .num {
  font-size: 32px;
  font-weight: 800;
  color: var(--color-primary);
}
.stats .label {
  color: var(--color-text-muted);
  font-size: 14px;
}

/* ---------- Article (legal pages) ---------- */
.article {
  max-width: 860px;
  margin: 0 auto;
  background: #fff;
}

.article h2 {
  margin-top: 2em;
  padding-top: 0.6em;
  border-top: 1px solid var(--color-border);
  font-size: 22px;
}
.article h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0.5em; }

.article h3 { margin-top: 1.6em; font-size: 17px; }

.article ul, .article ol { padding-left: 1.4em; color: var(--color-text-soft); }
.article li { margin-bottom: 0.4em; }
.article strong { color: var(--color-text); }

.article .meta {
  color: var(--color-text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.callout {
  background: rgba(29, 111, 224, 0.06);
  border-left: 4px solid var(--color-accent);
  padding: 16px 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--color-text-soft);
  margin: 24px 0;
}

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 16px 0 24px; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: top;
}
th {
  background: var(--color-bg-soft);
  color: var(--color-primary);
  font-weight: 600;
}

/* ---------- Forms ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-field { display: flex; flex-direction: column; }
.form-field--full { grid-column: 1 / -1; }

.form-field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}
.form-field label .req { color: #dc2626; margin-left: 2px; }

.form-field input,
.form-field textarea,
.form-field select {
  font: inherit;
  padding: 11px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--color-text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(29, 111, 224, 0.15);
}
.form-field textarea { min-height: 140px; resize: vertical; }

.form-tip {
  font-size: 13px;
  color: var(--color-text-muted);
  margin-top: 6px;
}

.form-status {
  margin-top: 14px;
  font-size: 14px;
  min-height: 22px;
}
.form-status.is-ok { color: var(--color-success); }
.form-status.is-err { color: #dc2626; }

/* ---------- Contact info list ---------- */
.contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 18px;
}
.contact-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.contact-list .ico {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(29, 111, 224, 0.1);
  color: var(--color-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}
.contact-list .label {
  font-size: 13px;
  color: var(--color-text-muted);
}
.contact-list .value {
  font-weight: 600;
  color: var(--color-text);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-bg-dark);
  color: rgba(255, 255, 255, 0.78);
  padding: 56px 0 28px;
  font-size: 14px;
}

.site-footer h4 {
  color: #fff;
  font-size: 15px;
  margin-bottom: 16px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 36px;
  margin-bottom: 36px;
}

.site-footer a { color: rgba(255, 255, 255, 0.78); }
.site-footer a:hover { color: #fff; }

.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 10px; }

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 14px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
}

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

/* ---------- Misc ---------- */
.text-muted { color: var(--color-text-muted); }
.text-soft { color: var(--color-text-soft); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

.divider {
  height: 1px;
  background: var(--color-border);
  border: 0;
  margin: 32px 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .hero { padding: 72px 0 64px; }

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

  .nav-toggle { display: block; }

  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 20px;
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 14px; }
  .lang-switch { margin: 8px 0 0; text-align: center; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .site-footer, .hero__actions, .nav-toggle { display: none !important; }
  body { color: #000; }
}
