/* ============================================
   柳州五维教育科技有限公司 官网 - 教育科技型新版样式
   设计基调：知识蓝 + 成长绿，克制科技感、非模板化结构
   ============================================ */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --green: #16a34a;
  --accent: #f97316;
  --amber: #fbbf24;
  --ink: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --surface: #ffffff;
  --surface-muted: #f8fafc;
  --shadow: 0 12px 40px rgba(15, 23, 42, 0.08);
  --radius: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Alibaba PuHuiTi', 'Inter', 'Microsoft YaHei', 'PingFang SC', sans-serif;
  color: var(--ink);
  background: #f4f7fb;
  line-height: 1.6;
  letter-spacing: 0.2px;
}

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

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

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

.section {
  padding: 90px 0;
}

.section.alt {
  background: var(--surface-muted);
}

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

.section-heading {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px;
}

.section-heading.align-left {
  text-align: left;
  margin-left: 0;
}

.section-heading .eyebrow {
  margin-bottom: 10px;
}

.section-heading h2 {
  margin: 0 0 14px;
  font-size: 32px;
  line-height: 1.3;
  color: var(--ink);
}

.section-heading p.lead {
  margin: 0;
  color: var(--muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--primary-dark);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

h1,
h2,
h3,
h4,
h5 {
  margin: 0 0 12px;
  font-weight: 700;
  color: var(--ink);
}

h1 {
  font-size: 44px;
  line-height: 1.2;
}

h2 {
  font-size: 32px;
}

h3 {
  font-size: 22px;
}

p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.7;
}

.lead {
  font-size: 18px;
  color: #334155;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--ink);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav a {
  color: var(--muted);
  font-weight: 600;
  position: relative;
  padding: 8px 0;
  transition: color 0.2s ease;
}

.nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.2s ease;
}

.nav a:hover {
  color: var(--primary);
}

.nav a:hover::after {
  width: 100%;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.button.primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow);
}

.button.primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

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

.button.outline:hover {
  background: rgba(37, 99, 235, 0.06);
}

.button.ghost {
  background: rgba(22, 163, 74, 0.12);
  color: var(--green);
  border-color: rgba(22, 163, 74, 0.2);
}

.button.link {
  padding: 0;
  border: none;
  border-radius: 0;
  color: var(--primary);
  background: none;
  font-weight: 700;
}

.button.full {
  width: 100%;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  background: var(--surface-muted);
  color: var(--muted);
}

.pill.green {
  background: rgba(22, 163, 74, 0.12);
  color: var(--green);
}

.pill.accent {
  background: rgba(249, 115, 22, 0.12);
  color: var(--accent);
}

.pill.amber {
  background: rgba(251, 191, 36, 0.16);
  color: #92400e;
}

.masthead {
  padding: 110px 0 90px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(22, 163, 74, 0.08));
}

.masthead-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
  align-items: center;
}

.masthead-copy h1 {
  margin-bottom: 16px;
}

.masthead-copy .lead {
  margin-bottom: 26px;
}

.cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.bullet-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.bullet {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: #1f2937;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
}

.dot.green {
  background: var(--green);
}

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

.dot.amber {
  background: var(--amber);
}

.masthead-visual {
  position: relative;
}

.media-frame {
  background: #fff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.media-frame img {
  border-radius: 12px;
}

.floating-card {
  position: absolute;
  bottom: -24px;
  right: -12px;
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  min-width: 220px;
}

.floating-card h4 {
  margin: 0 0 8px;
  font-size: 15px;
  color: var(--muted);
}

.floating-card .statline {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

.matrix-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}

.matrix-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.matrix-card h3 {
  margin: 8px 0 6px;
}

.matrix-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.list {
  padding: 0;
  margin: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.list li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.list li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 3px;
  background: var(--primary);
  display: inline-block;
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.scenario-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.scenario-card img {
  height: 180px;
  object-fit: cover;
  width: 100%;
}

.scenario-body {
  padding: 18px;
}

.scenario-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.case-rail {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 20px;
}

.case-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  background: #fff;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  align-items: center;
}

.case-logo {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--surface-muted);
}

.case-body h3 {
  margin-bottom: 10px;
}

.stat-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.stat-tile {
  padding: 18px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.stat-number {
  font-size: 34px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 6px;
}

.stat-label {
  color: var(--muted);
  font-weight: 600;
}

.progress {
  height: 8px;
  background: var(--surface-muted);
  border-radius: 999px;
  overflow: hidden;
  margin: 10px 0;
}

.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--green));
}

.panel {
  padding: 24px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 22px;
  align-items: start;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.news-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.news-card img {
  height: 180px;
  object-fit: cover;
}

.news-body {
  padding: 18px;
}

.news-meta {
  display: flex;
  gap: 10px;
  color: #6b7280;
  font-size: 13px;
  margin-bottom: 10px;
}

.page-hero {
  padding: 80px 0 50px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 {
  margin-bottom: 8px;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
  color: #6b7280;
  font-size: 14px;
}

.breadcrumb a {
  color: var(--primary);
}

.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table td {
  padding: 12px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
}

.info-table td:first-child {
  color: var(--ink);
  font-weight: 700;
  width: 28%;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--surface-muted);
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
}

.timeline {
  position: relative;
  padding-left: 26px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 9px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding: 12px 0 12px 22px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -2px;
  top: 16px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.feature-card {
  padding: 20px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.feature-card .pseudo-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
  background: var(--primary);
}

.surface-muted {
  background: var(--surface-muted);
  padding: 20px;
  border-radius: var(--radius);
  border: 1px dashed var(--border);
}

form .form-group {
  margin-bottom: 16px;
}

label {
  display: block;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 6px;
}

input,
textarea,
select {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.faq {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
}

.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.faq-item h3 {
  margin-bottom: 8px;
}

.footer {
  background: #0b1220;
  color: #cbd5e1;
  padding: 60px 0 30px;
  margin-top: 50px;
}

.footer-top {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

.footer h3 {
  color: #e2e8f0;
}

.footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.footer a {
  color: #cbd5e1;
}

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

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  margin-top: 28px;
  padding-top: 18px;
  text-align: center;
  font-size: 13px;
  color: #94a3b8;
}

.back-to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  box-shadow: var(--shadow);
  display: none;
  z-index: 990;
}

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .site-header .container {
    gap: 12px;
  }

  .nav {
    gap: 16px;
  }

  h1 {
    font-size: 36px;
  }

  .masthead {
    padding: 90px 0 70px;
  }
}

@media (max-width: 720px) {
  .site-header {
    position: relative;
  }

  .site-header .container {
    flex-wrap: wrap;
    height: auto;
    padding: 14px 20px;
  }

  .nav {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px 18px;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-start;
    margin-top: 10px;
  }

  .masthead {
    padding-top: 70px;
  }
}
