/* ============ 基础 ============ */
:root {
  --primary: #1a6bff;
  --primary-light: #4d8dff;
  --primary-dark: #0b2a5b;
  --primary-deep: #071d40;
  --accent: #00c2ff;
  --bg: #ffffff;
  --bg-alt: #f5f8ff;
  --text: #3a4658;
  --text-light: #6b7890;
  --border: #e3eaf6;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(11, 42, 91, 0.10);
  --shadow-sm: 0 3px 12px rgba(11, 42, 91, 0.08);
  --transition: 0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Source Han Sans SC", "Noto Sans CJK SC", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

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

section[id] { scroll-margin-top: 72px; }

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

.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ============ 导航栏 ============ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.navbar.scrolled {
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

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

.brand { display: flex; align-items: center; gap: 10px; color: var(--primary-dark); }
.brand:hover { color: var(--primary-dark); }
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}
.brand-text { font-size: 17px; font-weight: 700; letter-spacing: 0.5px; }

.nav-menu { display: flex; gap: 28px; }
.nav-menu a {
  color: var(--text);
  font-size: 15px;
  position: relative;
  padding: 4px 0;
}
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  transition: width var(--transition);
}
.nav-menu a:hover { color: var(--primary); }
.nav-menu a:hover::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 18px; }

.lang-switch {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #eef3fc;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 8px 4px 12px;
  transition: box-shadow var(--transition);
}
.lang-switch:hover { box-shadow: var(--shadow-sm); }

.lang-globe {
  width: 16px;
  height: 16px;
  color: var(--primary);
  flex-shrink: 0;
}

.lang-track { position: relative; display: flex; }

.lang-track button {
  position: relative;
  z-index: 1;
  width: 52px;
  padding: 5px 0;
  border: none;
  background: none;
  font-size: 13px;
  font-family: inherit;
  text-align: center;
  color: var(--text-light);
  cursor: pointer;
  transition: color var(--transition);
}
.lang-track button:hover { color: var(--primary); }
.lang-track button.active { color: #fff; font-weight: 600; }

.lang-slider {
  position: absolute;
  top: 2px;
  bottom: 2px;
  left: 2px;
  width: 52px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 2px 8px rgba(26, 107, 255, 0.35);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.lang-switch.en .lang-slider { transform: translateX(52px); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--primary-dark);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============ 首页横幅 ============ */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--primary-deep) 0%, var(--primary-dark) 45%, #14408f 100%);
  color: #fff;
  padding: 150px 0 90px;
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, #000 30%, transparent 100%);
}
.hero-inner { position: relative; text-align: center; }

.hero-kicker {
  display: inline-block;
  font-size: 15px;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  padding: 6px 20px;
  margin-bottom: 24px;
}
html[lang="en"] .hero-title,
html[lang="en"] .hero-slogan,
html[lang="en"] .section-title { letter-spacing: 0.5px; }

.hero-title {
  font-size: clamp(26px, 4.5vw, 44px);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 16px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.25);
}
.hero-slogan {
  font-size: clamp(17px, 2.4vw, 22px);
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.hero-desc {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 620px;
  margin: 0 auto 34px;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 1px;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 6px 20px rgba(26, 107, 255, 0.45);
}
.btn-primary:hover { color: #fff; box-shadow: 0 10px 28px rgba(26, 107, 255, 0.55); }
.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, 0.14); }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: clamp(28px, 6vw, 72px);
  margin-top: 60px;
  flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num {
  display: block;
  font-size: 34px;
  font-weight: 700;
  background: linear-gradient(180deg, #fff, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.stat-label { font-size: 14px; color: rgba(255, 255, 255, 0.72); letter-spacing: 1px; }

/* ============ 通用区块 ============ */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }

.section-title {
  text-align: center;
  font-size: clamp(24px, 3.2vw, 32px);
  color: var(--primary-dark);
  font-weight: 700;
  letter-spacing: 2px;
  margin-bottom: 12px;
  position: relative;
  padding-bottom: 18px;
}
.section-title::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 0;
  transform: translateX(-50%);
  width: 56px; height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}
.section-sub {
  text-align: center;
  color: var(--text-light);
  max-width: 640px;
  margin: 0 auto 52px;
  font-size: 15px;
}

/* ============ 公司简介 ============ */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 44px;
  align-items: start;
}
.about-text p { margin-bottom: 16px; font-size: 15.5px; }
.about-motto {
  color: var(--primary-dark);
  font-size: 16px;
  border-left: 4px solid var(--primary);
  background: var(--bg-alt);
  border-radius: 0 10px 10px 0;
  padding: 14px 20px;
}
.about-motto strong { color: var(--primary); }

.about-tech {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 30px 30px 22px;
}
.about-tech h3 {
  color: var(--primary-dark);
  font-size: 18px;
  margin-bottom: 18px;
  letter-spacing: 1px;
}
.tech-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 18px; }
.tech-list li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  color: var(--text);
}
.tech-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 14px; height: 14px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}
.tech-list li::after {
  content: "";
  position: absolute;
  left: 4px; top: 12px;
  width: 6px; height: 3px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

/* ============ 开发案例 ============ */
.case-card {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 44px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  padding: 34px;
  margin-bottom: 40px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.case-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.case-card:last-child { margin-bottom: 0; }

.case-card.reverse .case-media { order: 2; }
.case-card.reverse .case-body { order: 1; }

.case-media img {
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
  width: 100%;
}
.case-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.case-thumbs img {
  width: calc((100% - 20px) / 3);
  aspect-ratio: 16 / 10;
  object-fit: cover;
  flex-shrink: 0;
}
.case-thumbs img:only-child { width: 40%; }

.case-body h3 {
  color: var(--primary-dark);
  font-size: 22px;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
.case-partner {
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 14px;
}
.case-body > p { font-size: 15px; margin-bottom: 14px; }

.case-features { list-style: none; margin-bottom: 12px; }
.case-features li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  margin-bottom: 8px;
  color: var(--text);
}
.case-features li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: rgba(26, 107, 255, 0.12);
}
.case-features li::after {
  content: "";
  position: absolute;
  left: 5px; top: 10px;
  width: 7px; height: 4px;
  border-left: 2px solid var(--primary);
  border-bottom: 2px solid var(--primary);
  transform: rotate(-45deg);
}
.case-note {
  font-size: 14px;
  color: var(--text-light);
  background: var(--bg-alt);
  border-radius: 10px;
  padding: 12px 16px;
}

/* ============ 软件著作权 ============ */
.certs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.cert-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 18px 18px 14px;
  text-align: center;
  transition: box-shadow var(--transition), transform var(--transition);
}
.cert-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.cert-card img {
  border-radius: 8px;
  border: 1px solid var(--border);
  cursor: zoom-in;
  width: 100%;
}
.cert-card figcaption {
  margin-top: 12px;
  font-size: 14px;
  color: var(--text-light);
}

/* ============ 联系我们 ============ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 26px 24px;
  color: var(--text);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
a.contact-card:hover {
  color: var(--text);
  border-color: var(--primary);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}
.contact-card svg { color: var(--primary); flex-shrink: 0; margin-top: 4px; }
.contact-card h3 { color: var(--primary-dark); font-size: 17px; margin-bottom: 4px; }
.contact-card p { font-size: 14.5px; color: var(--text-light); }
.contact-phone { font-size: 19px !important; font-weight: 700; color: var(--primary) !important; letter-spacing: 1px; }

/* ============ 页脚 ============ */
.footer {
  background: var(--primary-deep);
  color: rgba(255, 255, 255, 0.75);
  text-align: center;
  padding: 46px 0 40px;
  font-size: 14px;
}
.footer-name { color: #fff; font-size: 16px; font-weight: 700; letter-spacing: 1px; margin-bottom: 8px; }
.footer-addr { margin-bottom: 6px; }
.footer-icp a { color: rgba(255, 255, 255, 0.55); }
.footer-icp a:hover { color: var(--accent); }
.footer-copy { margin-top: 14px; color: rgba(255, 255, 255, 0.45); font-size: 13px; }

/* ============ 灯箱 ============ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(4, 12, 30, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  padding: 40px;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img {
  max-width: min(94vw, 1100px);
  max-height: 88vh;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}
.lightbox-close {
  position: absolute;
  top: 18px; right: 26px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  transition: color var(--transition);
}
.lightbox-close:hover { color: #fff; }

/* ============ 滚动渐入动画 ============ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* ============ 响应式 ============ */
@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: 28px; }
  .case-card { grid-template-columns: 1fr; gap: 24px; padding: 26px; }
  .case-card.reverse .case-media { order: 0; }
  .case-card.reverse .case-body { order: 0; }
  .certs-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    position: fixed;
    top: 64px; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition);
  }
  .nav-menu.open { max-height: 320px; }
  .nav-menu a { padding: 15px 24px; border-top: 1px solid var(--border); }
  .nav-menu a::after { display: none; }
  .hero { padding: 120px 0 64px; }
  .tech-list { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}
