/* 校企派官网样式 — 与应用主题色 #1a56db 保持一致 */

:root {
  --primary: #1a56db;
  --primary-dark: #1648b8;
  --primary-light: #eff6ff;
  --bg: #f4f6f9;
  --surface: #ffffff;
  --text: #111827;
  --text-secondary: #4b5563;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --shadow: 0 4px 24px rgba(17, 24, 39, 0.08);
  --shadow-lg: 0 20px 60px rgba(26, 86, 219, 0.18);
  --radius: 16px;
  --radius-sm: 12px;
  --header-h: 72px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB",
    "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

.container {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

/* Header */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(229, 231, 235, 0.8);
  transition: box-shadow 0.2s ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--text);
}

.brand-icon {
  width: 36px;
  height: 36px;
  color: var(--primary);
}

.brand-icon-sm {
  width: 32px;
  height: 32px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.site-nav a {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: var(--primary);
}

.nav-cta {
  padding: 10px 20px;
  background: var(--primary);
  color: #fff !important;
  border-radius: 999px;
  font-weight: 600;
}

.nav-cta:hover {
  background: var(--primary-dark);
  color: #fff !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero */

.hero {
  padding: calc(var(--header-h) + 24px) 0 48px;
  background: linear-gradient(160deg, #1a56db 0%, #2563eb 45%, #3b82f6 100%);
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
  pointer-events: none;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.18fr);
  gap: 28px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-intro {
  color: #fff;
}

.hero-intro .hero-desc {
  margin-left: 0;
  margin-right: 0;
  max-width: none;
}

.hero-intro .hero-actions {
  justify-content: flex-start;
}

.hero-preview {
  min-width: 0;
  padding: 16px 16px 14px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  backdrop-filter: blur(12px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.12);
}

.hero-preview-head {
  margin-bottom: 12px;
  text-align: center;
}

.hero-preview-head h2 {
  margin: 0 0 4px;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.hero-preview-head p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}

.hero-badge {
  display: inline-block;
  margin: 0 0 10px;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
}

.hero h1 {
  margin: 0 0 4px;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hero-tagline {
  margin: 0 0 12px;
  font-size: 1.0625rem;
  font-weight: 500;
  opacity: 0.92;
}

.hero-desc {
  margin: 0 0 20px;
  font-size: 0.9375rem;
  line-height: 1.65;
  opacity: 0.88;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions .btn {
  padding: 10px 18px;
  font-size: 0.875rem;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-icon {
  width: 20px;
  height: 20px;
}

.btn-primary {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.btn-primary:hover {
  background: var(--primary-light);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
}

.btn-ghost {
  background: var(--primary-light);
  color: var(--primary);
}

.btn-ghost:hover {
  background: #dbeafe;
}

/* Hero carousel */

.hero-carousel {
  position: relative;
  padding: 0 36px;
}

.hero-carousel-viewport {
  overflow: hidden;
}

.hero-carousel-track {
  display: flex;
  transition: transform 0.45s ease;
  will-change: transform;
}

.hero-slide {
  flex: 0 0 100%;
  min-width: 100%;
  margin: 0;
  text-align: center;
}

.hero-slide figcaption {
  margin-top: 10px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.4;
}

.carousel-btn {
  position: absolute;
  top: 42%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.6);
}

.carousel-btn svg {
  width: 20px;
  height: 20px;
}

.carousel-prev {
  left: 0;
}

.carousel-next {
  right: 0;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel-dot.is-active {
  background: #fff;
  transform: scale(1.2);
}

@media (prefers-reduced-motion: reduce) {
  .hero-carousel-track {
    transition: none;
  }
}

/* Phone mockup */

.phone-mockup {
  width: min(280px, 100%);
  margin: 0 auto;
  padding: 10px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 32px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(8px);
}

.phone-mockup img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
  background: var(--bg);
}

/* Sections */

.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--surface);
}

.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-head-left {
  text-align: left;
  margin-bottom: 0;
}

.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section-head p {
  margin: 0;
  font-size: 1.0625rem;
  color: var(--text-muted);
}

/* Features */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  padding: 28px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  padding: 12px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  color: var(--primary);
}

.feature-icon svg {
  width: 100%;
  height: 100%;
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--text);
}

.feature-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* About */

.about-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}

.about-lead {
  margin: 0 0 32px;
  font-size: 1.125rem;
  line-height: 1.85;
  color: var(--text-secondary);
}

.about-highlights {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.about-highlights li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 20px 24px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--primary);
}

.about-highlights strong {
  font-size: 0.9375rem;
  color: var(--primary);
}

.about-highlights span {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

/* Contact */

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 48px;
  background: linear-gradient(135deg, var(--primary) 0%, #2563eb 100%);
  border-radius: var(--radius);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.contact-info h2 {
  margin: 0 0 12px;
  font-size: 1.75rem;
  font-weight: 800;
}

.contact-info p {
  margin: 0 0 16px;
  opacity: 0.9;
  max-width: 420px;
}

.contact-email {
  display: inline-block;
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
  border-bottom: 2px solid rgba(255, 255, 255, 0.5);
  transition: border-color 0.2s ease;
}

.contact-email:hover {
  border-color: #fff;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
}

.contact-actions .btn-primary {
  min-width: 160px;
}

/* Footer */

.site-footer {
  padding: 48px 0;
  background: var(--text);
  color: rgba(255, 255, 255, 0.7);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand strong {
  display: block;
  color: #fff;
  font-size: 1rem;
}

.footer-brand span {
  font-size: 0.8125rem;
  opacity: 0.7;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
}

.footer-links a {
  font-size: 0.875rem;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  margin: 0;
  font-size: 0.8125rem;
  opacity: 0.5;
}

/* Toast */

.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--text);
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 8px 32px rgba(17, 24, 39, 0.24);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  z-index: 200;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  visibility: visible;
}

.toast-icon {
  width: 20px;
  height: 20px;
  color: #fbbf24;
  flex-shrink: 0;
}

.toast-icon svg {
  width: 100%;
  height: 100%;
}

.toast-text {
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
}

/* Responsive */

@media (max-width: 960px) {
  .hero-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .hero-intro {
    text-align: center;
  }

  .hero-intro .hero-desc {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero-intro .hero-actions {
    justify-content: center;
  }

  .hero-preview {
    padding: 14px 12px 12px;
  }

  .phone-mockup {
    width: min(300px, 72vw);
  }

  .hero-carousel {
    padding: 0 28px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-head-left {
    text-align: center;
  }
}

@media (max-width: 720px) {
  .container {
    width: calc(100% - 32px);
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s ease;
  }

  .site-nav.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .site-nav a {
    width: 100%;
    padding: 14px 8px;
    text-align: center;
    border-bottom: 1px solid var(--border);
  }

  .site-nav a:last-child {
    border-bottom: none;
    margin-top: 8px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .hero-preview {
    margin-left: -8px;
    margin-right: -8px;
    border-radius: var(--radius-sm);
  }

  .hero-carousel {
    padding: 0 32px;
  }

  .phone-mockup {
    width: min(320px, 82vw);
  }

  .carousel-btn {
    width: 32px;
    height: 32px;
  }

  .contact-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
  }

  .contact-actions {
    width: 100%;
  }

  .contact-actions .btn {
    width: 100%;
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    padding-bottom: 40px;
  }
}
