/* 上海优判科技 — 全局样式 */
:root {
  --primary: #58b0f5;
  --primary-dark: #2d8fd9;
  --primary-light: #e8f4fd;
  --text: #2c3e50;
  --text-light: #5c6b7a;
  --text-muted: #8a96a3;
  --bg-soft: #f5f7fa;
  --white: #fff;
  --max-width: 1200px;
  --header-h: 72px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 12px rgba(45, 143, 217, 0.08);
  --shadow: 0 8px 32px rgba(45, 143, 217, 0.12);
  --section-y: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

main {
  flex: 1;
}

.container {
  width: min(var(--max-width), 92vw);
  margin: 0 auto;
}

.section-head {
  text-align: center;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: 28px;
  font-weight: 600;
  color: var(--text);
}

.section-head p {
  margin-top: 8px;
  font-size: 15px;
  color: var(--text-muted);
}

/* ========== Header ========== */
#site-header {
  position: sticky;
  top: 0;
  z-index: 200;
}

.header {
  background: var(--white);
  border-bottom: 1px solid rgba(88, 176, 245, 0.15);
  box-shadow: var(--shadow-sm);
}

.nav_container {
  width: min(var(--max-width), 92vw);
  margin: 0 auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  height: 44px;
  padding: 4px 0;
}

.logo_header_img {
  height: 40px;
  width: auto;
  max-width: 128px;
  object-fit: contain;
  object-position: left center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px 24px;
  margin-left: auto;
}

.nav-link {
  font-size: 15px;
  color: var(--text);
  padding: 8px 2px;
  position: relative;
  white-space: nowrap;
  transition: color 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--primary-dark);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

.header .line {
  display: none;
}

.mobile-nav-toggle {
  display: none;
  margin-left: auto;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(88, 176, 245, 0.35);
  border-radius: 8px;
  background: var(--white);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: var(--primary-dark);
  flex-shrink: 0;
}

/* ========== Buttons ========== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 40px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  border: none;
  border-radius: 28px;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(45, 143, 217, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45, 143, 217, 0.45);
}

.btn-primary.btn-sm {
  padding: 10px 28px;
  font-size: 15px;
}

.btn-wrap {
  text-align: center;
  margin: 36px 0 8px;
}

.btn-wrap--left {
  text-align: left;
  margin-top: 28px;
}

/* ========== Hero (首页) ========== */
.hero {
  background: linear-gradient(165deg, #eef6fc 0%, #f8fbfe 45%, var(--white) 100%);
  padding: 48px 0 0;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  width: min(var(--max-width), 92vw);
  margin: 0 auto;
  min-height: 380px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.hero-brand img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.hero-brand-text {
  font-size: 22px;
  font-weight: 600;
  color: var(--primary-dark);
  letter-spacing: 0.5px;
}

.hero-copy h1 {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.25;
  letter-spacing: 1px;
}

.hero-sub {
  margin-top: 14px;
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.6;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(88, 176, 245, 0.12);
}

.hero-machine {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
}

/* 统计条 — 与首屏连成一体 */
.hero-stats {
  width: min(var(--max-width), 92vw);
  margin: 40px auto 0;
  background: var(--white);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 -4px 24px rgba(45, 143, 217, 0.06);
  border: 1px solid rgba(88, 176, 245, 0.1);
  border-bottom: none;
}

.stats-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.stat-item {
  text-align: center;
  padding: 32px 20px;
  position: relative;
}

.stat-item:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 25%;
  height: 50%;
  width: 1px;
  background: rgba(88, 176, 245, 0.2);
}

.stat-item .num {
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.stat-item .num .suffix {
  font-size: 0.65em;
  font-weight: 600;
  margin-left: 2px;
}

.stat-item .label {
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 8px;
}

.stats-bar {
  padding: 0 0 var(--section-y);
  background: var(--white);
}

.stats-bar.standalone .stats-inner {
  width: min(var(--max-width), 92vw);
  margin: 0 auto;
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(88, 176, 245, 0.1);
}

.stats-bar.standalone .stat-item:not(:last-child)::after {
  display: block;
}

/* ========== Intro ========== */
.intro-section {
  padding: var(--section-y) 0;
  background: var(--bg-soft);
}

.intro-section p {
  font-size: 16px;
  line-height: 2;
  color: var(--text-light);
  text-align: justify;
  max-width: 960px;
  margin: 0 auto;
}

/* ========== Advantages ========== */
.advantages {
  padding: var(--section-y) 0;
}

.advantages-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.advantage_content {
  text-align: center;
  padding: 28px 18px;
  background: var(--white);
  border: 1px solid rgba(88, 176, 245, 0.12);
  border-radius: var(--radius-lg);
  transition: box-shadow 0.25s, transform 0.25s;
  height: 100%;
}

.advantage_content:hover {
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.advantage_img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  margin: 0 auto 18px;
}

.advantage_title {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.advantage_sub {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.75;
}

/* ========== Journey ========== */
.journey-section {
  padding: var(--section-y) 0;
  background: linear-gradient(180deg, var(--primary-light) 0%, #f8fbfe 100%);
  text-align: center;
}

.journey-section > h2 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 40px;
  padding: 0 16px;
  line-height: 1.4;
}

.journey-grid {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 16px;
}

.journey_item {
  flex: 1 1 140px;
  max-width: 160px;
  padding: 24px 12px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(88, 176, 245, 0.1);
}

.journey_item.down,
.journey_item.up {
  transform: none;
}

.journey_time {
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-dark);
}

.journey_label {
  font-size: 15px;
  margin-top: 6px;
  color: var(--text-light);
}

/* ========== Page hero (内页) ========== */
.page-hero {
  padding: 40px 0 36px;
  text-align: center;
  background: linear-gradient(180deg, #eef6fc, var(--white));
}

.page-hero h1 {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  color: var(--primary-dark);
}

.page-hero .hero-lines {
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--text-light);
  margin-top: 14px;
  line-height: 1.6;
  font-weight: 400;
}

.page-hero .hero-lines span {
  display: block;
}

.page-hero .page-hero-desc {
  margin-top: 12px;
  font-size: 16px;
  color: var(--text-muted);
}

.page-hero .btn-wrap {
  margin-top: 24px;
}

/* ========== Feature blocks ========== */
.feature-list {
  padding: 16px 0 var(--section-y);
}

.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 40px 0;
  width: min(var(--max-width), 92vw);
  margin: 0 auto;
}

.feature-block.reverse {
  direction: rtl;
}

.feature-block.reverse > * {
  direction: ltr;
}

.feature-title {
  font-size: clamp(20px, 2.5vw, 26px);
  font-weight: 600;
  line-height: 1.5;
  margin-bottom: 18px;
  color: var(--text);
}

.feature-title span {
  display: block;
}

.feature-desc,
.sub-item p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.9;
}

.sub-item {
  margin-bottom: 18px;
  padding-left: 14px;
  border-left: 3px solid var(--primary);
}

.sub-item h4 {
  font-size: 17px;
  color: var(--primary-dark);
  margin-bottom: 6px;
  font-weight: 600;
}

.feature-img-wrap {
  background: var(--bg-soft);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid rgba(88, 176, 245, 0.1);
}

.feature-img-wrap img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: contain;
  max-height: 340px;
  margin: 0 auto;
}

/* ========== School cases ========== */
.case-stats {
  padding: 32px 0 0;
}

.school-cases {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding: 32px 0 48px;
}

.school_case {
  display: flex;
  gap: 20px;
  background: var(--white);
  border: 1px solid rgba(88, 176, 245, 0.12);
  border-radius: var(--radius-lg);
  padding: 24px;
  align-items: flex-start;
  transition: box-shadow 0.2s;
}

.school_case:hover {
  box-shadow: var(--shadow-sm);
}

.school_logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--bg-soft);
  padding: 6px;
}

.school_logo.wide {
  width: 88px;
  height: 88px;
}

.school_body {
  flex: 1;
  min-width: 0;
}

.school_desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.8;
  margin-bottom: 14px;
}

.school_name_tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: var(--white);
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

/* ========== Partners ========== */
.partners-section {
  padding: var(--section-y) 0;
}

.partners-section h2 {
  text-align: center;
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 32px;
  color: var(--text);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  padding: 28px 24px;
  background: var(--white);
  border: 1px solid rgba(88, 176, 245, 0.15);
  border-radius: var(--radius-lg);
}

.partner_item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 10px;
  min-height: 72px;
  background: var(--bg-soft);
  border-radius: var(--radius);
}

.partner_item img {
  max-height: 48px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.2s, transform 0.2s;
}

.partner_item:hover img {
  opacity: 1;
  transform: scale(1.05);
}

/* ========== About & Contact ========== */
.about-company {
  background: var(--bg-soft);
  padding: 32px 36px;
  border-radius: var(--radius-lg);
  margin: 24px 0 32px;
  border: 1px solid rgba(88, 176, 245, 0.1);
}

.about-company h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 14px;
}

.about-company p {
  font-size: 15px;
  line-height: 2;
  color: var(--text-light);
  margin-bottom: 1em;
}

.about-company p:last-child {
  margin-bottom: 0;
}

.about-block {
  padding: 32px 0;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 32px;
  align-items: start;
}

.about-block h2 {
  font-size: 22px;
  font-weight: 600;
  color: var(--primary-dark);
}

.about-block .about-text {
  font-size: 15px;
  line-height: 2;
  color: var(--text-light);
}

.contact-groups {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding: 24px 0 40px;
  max-width: 560px;
  margin: 0 auto;
}

.contact_group {
  background: var(--white);
  border: 1px solid rgba(88, 176, 245, 0.12);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
}

.contact_company {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--primary-light);
}

.contact_row {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
  align-items: flex-start;
}

.contact_row:last-child {
  margin-bottom: 0;
}

.contact_row .icon-wrap {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-light);
  border-radius: 50%;
}

.contact_row .icon-wrap img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.contact_row .contact-text p {
  font-size: 15px;
  line-height: 1.65;
  color: var(--text-light);
}

.contact_qr {
  width: 108px;
  margin-top: 10px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

/* ========== Forms ========== */
.form-page {
  max-width: 520px;
  margin: 0 auto;
  padding: 24px 24px 64px;
}

.form-page h1 {
  font-size: 28px;
  text-align: center;
  font-weight: 600;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.form-page .form-desc {
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 28px;
  font-size: 14px;
  line-height: 1.7;
}

.form-field {
  margin-bottom: 14px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid #dce4ec;
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  background: var(--white);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(88, 176, 245, 0.2);
}

.form-field textarea {
  min-height: 110px;
  resize: vertical;
}

.form-message {
  text-align: center;
  margin-top: 14px;
  font-size: 14px;
}

.form-message.success { color: #389e0d; }
.form-message.error { color: #cf1322; }

.free-note {
  text-align: center;
  font-size: 15px;
  color: var(--text-muted);
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px dashed #dce4ec;
}

/* ========== Footer ========== */
.footer {
  background: var(--bg-soft);
  border-top: 1px solid rgba(88, 176, 245, 0.12);
  margin-top: auto;
}

.footer_main_container {
  width: min(var(--max-width), 92vw);
  margin: 0 auto;
  padding: 48px 0 32px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: start;
}

.qr_code_content {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 16px 24px;
}

.qr_code_content .logo_img {
  height: 44px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  flex: 0 0 auto;
}

.qr_code_content .footer-meta {
  flex: 1 1 180px;
  min-width: 0;
}

.footer_tip {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 10px;
}

.footer_qr {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.footer_nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 120px;
}

.footer_text {
  font-size: 16px;
  color: var(--text-light);
  transition: color 0.2s;
}

.footer_text:hover {
  color: var(--primary-dark);
}

.footer_icp {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  padding: 20px 16px 24px;
  border-top: 1px solid rgba(88, 176, 245, 0.1);
}

/* ========== Responsive ========== */
@media (max-width: 1024px) {
  .advantages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .partners-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .hero-inner {
    gap: 32px;
    min-height: auto;
  }
}

@media (max-width: 768px) {
  :root {
    --section-y: 48px;
    --header-h: 60px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px 16px;
    background: var(--white);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(88, 176, 245, 0.15);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-link {
    padding: 12px 8px;
    border-bottom: 1px solid var(--bg-soft);
  }

  .nav-link.active::after {
    display: none;
  }

  .mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .hero {
    padding-top: 32px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-brand {
    justify-content: center;
  }

  .btn-wrap--left {
    text-align: center;
  }

  .hero-visual {
    order: -1;
    padding: 20px;
  }

  .hero-machine {
    max-height: 240px;
  }

  .stats-inner {
    grid-template-columns: 1fr;
  }

  .stat-item:not(:last-child)::after {
    display: none;
  }

  .stat-item:not(:last-child) {
    border-bottom: 1px solid rgba(88, 176, 245, 0.15);
  }

  .feature-block,
  .feature-block.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
    gap: 24px;
    padding: 28px 0;
  }

  .school-cases {
    grid-template-columns: 1fr;
  }

  .contact-groups {
    grid-template-columns: 1fr;
  }

  .about-block {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .footer_main_container {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .qr_code_content {
    justify-content: center;
    text-align: center;
  }

  .qr_code_content .footer-meta {
    flex: 1 1 100%;
  }

  .footer_qr {
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .advantages-grid,
  .partners-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .school_case {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
