:root {
  --primary: #005fbf;
  --primary-dark: #004a94;
  --primary-light: #e6f1fb;
  --accent: #d4a017;
  --accent-light: #fbf3d6;
  --text: #1f2937;
  --text-light: #6b7280;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-dark: #0b2a4a;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 16px 40px rgba(0, 0, 0, 0.12);
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--bg);
}

.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
}

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

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

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 15px;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 95, 191, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 95, 191, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

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

/* 顶部导航 */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition: var(--transition);
}

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

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

.brand-logo {
  height: 48px;
  width: auto;
}

.brand-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-dark);
  letter-spacing: -0.3px;
}

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

.main-nav a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
  position: relative;
  padding: 6px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
}

.main-nav a:hover::after,
.main-nav a.active::after {
  width: 100%;
}

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

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

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--primary-dark);
  transition: var(--transition);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 76px;
  overflow: hidden;
  background: linear-gradient(135deg, #eaf4ff 0%, #ffffff 50%, #fff9e6 100%);
}

.hero-bg {
  position: absolute;
  top: -10%;
  right: -10%;
  width: 60%;
  height: 120%;
  background: radial-gradient(circle, rgba(0, 95, 191, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
  padding: 80px 0;
}

.hero-text h1 {
  font-size: 52px;
  line-height: 1.2;
  color: var(--primary-dark);
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-light);
  margin-bottom: 36px;
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px rgba(0, 74, 148, 0.15));
  display: block;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

/* 数据条 */
.stats-bar {
  background: var(--bg-dark);
  color: #fff;
  padding: 48px 0;
}

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

.stat-item strong {
  display: block;
  font-size: 42px;
  color: var(--accent);
  margin-bottom: 6px;
}

.stat-item span {
  font-size: 15px;
  opacity: 0.85;
}

/* 通用 section */
.section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: 36px;
  color: var(--primary-dark);
  margin-bottom: 14px;
}

.section-header p {
  font-size: 17px;
  color: var(--text-light);
  max-width: 640px;
  margin: 0 auto;
}

.section-header.light h2,
.section-header.light p {
  color: #fff;
}

.section-header.light .section-tag {
  color: var(--accent-light);
}

/* 关于我们 */
.about {
  background: var(--bg-alt);
}

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

.about-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

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

.icon-wrap {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
}

.about-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--primary-dark);
}

.about-card p {
  color: var(--text-light);
  font-size: 15px;
}

.about-intro {
  max-width: 920px;
  margin: 0 auto 48px;
  text-align: center;
}

.about-intro p {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-motto {
  margin-top: 48px;
  padding: 28px 32px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.about-motto p {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.about-motto p:last-child {
  margin-bottom: 0;
}

.about-motto strong {
  color: var(--primary-dark);
}

/* 产品 */
.products {
  background: linear-gradient(180deg, var(--bg-dark) 0%, #0a1f36 100%);
  color: #fff;
}

.product-carousel {
  position: relative;
  overflow: hidden;
  padding: 4px 0;
}

.product-track {
  display: flex;
  gap: 24px;
  transition: transform 0.5s ease;
  will-change: transform;
}

.product-card {
  flex: 0 0 auto;
  width: calc((100% - 48px) / 3);
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

.carousel-btn:hover {
  background: var(--accent);
  color: var(--primary-dark);
}

.carousel-btn.prev {
  left: 6px;
}

.carousel-btn.next {
  right: 6px;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}

.carousel-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition);
}

.carousel-dots button.active {
  width: 26px;
  border-radius: 6px;
  background: var(--accent);
}

.product-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 40px 30px;
  transition: var(--transition);
}

.product-card:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-8px);
  border-color: rgba(212, 160, 23, 0.4);
}

.product-icon {
  font-size: 42px;
  margin-bottom: 18px;
}

.product-card h3 {
  font-size: 22px;
  margin-bottom: 14px;
  color: #fff;
}

.product-card p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 20px;
}

.product-card ul {
  list-style: none;
}

.product-card li {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  padding-left: 18px;
  position: relative;
  margin-bottom: 8px;
}

.product-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* 产品展示 */
.screenshots {
  background: var(--bg-alt);
}

.screenshot-tabs {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.tab-btn {
  padding: 12px 28px;
  border-radius: 50px;
  border: 1px solid var(--primary);
  background: transparent;
  color: var(--primary);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.tab-btn:hover,
.tab-btn.active {
  background: var(--primary);
  color: #fff;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.screenshot-grid.single {
  grid-template-columns: minmax(0, 800px);
  justify-content: center;
}

.screenshot-item {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.screenshot-item:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.screenshot-item img {
  width: 100%;
  height: auto;
  border-bottom: 1px solid #eef2f6;
}

.screenshot-item figcaption {
  padding: 16px;
  font-size: 14px;
  color: var(--text-light);
  text-align: center;
}

/* 实训服务 */
.training {
  background: var(--bg);
}

.training-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 48px;
}

.training-content h3,
.training-cases h3,
.employment-process h3 {
  font-size: 22px;
  color: var(--primary-dark);
  margin-bottom: 22px;
}

.feature-list {
  list-style: none;
  margin-bottom: 40px;
}

.feature-list li {
  padding: 16px 0;
  border-bottom: 1px solid #e5e7eb;
  color: var(--text-light);
  font-size: 15px;
}

.feature-list li strong {
  color: var(--primary-dark);
  display: inline-block;
  min-width: 110px;
}

.model-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.model-card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 28px 22px;
  transition: var(--transition);
}

.model-card:hover {
  box-shadow: var(--shadow);
}

.model-num {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}

.model-card h4 {
  font-size: 17px;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.model-card p {
  font-size: 14px;
  color: var(--text-light);
}

.training-cases {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 32px;
  align-self: start;
}

.case-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.case-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 22px 10px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: var(--transition);
  text-align: center;
}

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

.case-logo {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.case-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.case-item strong {
  display: block;
  color: var(--primary-dark);
  font-size: 14px;
  line-height: 1.3;
}

/* 就业服务 */
.employment {
  background: linear-gradient(180deg, #0a1f36 0%, var(--bg-dark) 100%);
  color: #fff;
}

.employment-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-bottom: 0;
}

.employment-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 40px 30px;
  text-align: center;
  transition: var(--transition);
}

.employment-card:hover {
  transform: translateY(-8px);
  border-color: rgba(212, 160, 23, 0.4);
}

.emp-icon {
  font-size: 42px;
  margin-bottom: 18px;
}

.employment-card h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.employment-card p {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.75);
}

.emp-tools {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.emp-tools li {
  background: rgba(212, 160, 23, 0.15);
  border: 1px solid rgba(212, 160, 23, 0.3);
  color: var(--accent);
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 20px;
}

/* 联系我们 */
.contact {
  background: linear-gradient(180deg, var(--bg-dark) 0%, #072037 100%);
  color: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-item strong {
  display: block;
  font-size: 14px;
  color: var(--accent);
  margin-bottom: 6px;
}

.info-item p {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
}

.contact-form {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

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

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 14px 18px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 15px;
  outline: none;
  transition: var(--transition);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.12);
}

.contact-form .btn-primary {
  align-self: flex-start;
}

/* 表单提交成功弹窗 */
.form-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.form-modal.show {
  opacity: 1;
  visibility: visible;
}

.form-modal-content {
  background: #fff;
  color: var(--text);
  padding: 32px 40px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  text-align: center;
  max-width: 420px;
  margin: 20px;
  font-size: 16px;
  line-height: 1.6;
  transform: translateY(12px);
  transition: transform 0.3s ease;
}

.form-modal.show .form-modal-content {
  transform: translateY(0);
}

/* 页脚 */
.site-footer {
  background: #051626;
  color: rgba(255, 255, 255, 0.6);
  padding: 32px 0;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: #fff;
}

.footer-logo {
  height: 40px;
}

.copyright {
  font-size: 14px;
}

/* 回到顶部 */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  box-shadow: 0 6px 18px rgba(0, 95, 191, 0.3);
  z-index: 999;
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-3px);
}

/* 响应式 */
@media (max-width: 1024px) {
  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text h1 {
    font-size: 42px;
  }
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-logo {
    max-width: 320px;
  }
  .about-grid,
  .employment-grid,
  .screenshot-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-card {
    width: calc((100% - 24px) / 2);
  }
  .training-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: 76px;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: calc(100vh - 76px);
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    padding: 32px;
    gap: 18px;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: var(--transition);
  }
  .main-nav.open {
    right: 0;
  }
  .menu-toggle {
    display: flex;
  }
  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }
  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  .hero-text h1 {
    font-size: 32px;
  }
  .hero-subtitle {
    font-size: 17px;
  }
  .section {
    padding: 70px 0;
  }
  .section-header h2 {
    font-size: 28px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }
  .stat-item strong {
    font-size: 32px;
  }
  .about-grid,
  .employment-grid,
  .model-cards,
  .form-row,
  .screenshot-grid {
    grid-template-columns: 1fr;
  }
  .product-card {
    width: 100%;
  }
  .training-cases {
    padding: 24px;
  }
  .contact-form {
    padding: 24px;
  }
}
