/* ============================================================
   北京开元信科信息技术有限公司官网 — 科技蓝 · 深色主题
   ============================================================ */

:root {
  --bg: #060d1f;
  --bg-alt: #0a142e;
  --bg-card: #0e1a38;
  --line: rgba(88, 141, 255, 0.16);
  --text: #dbe6ff;
  --text-dim: #8ea3cc;
  --accent: #2f7bff;
  --accent-2: #00d4ff;
  --grad: linear-gradient(90deg, #2f7bff, #00d4ff);
  --radius: 14px;
  --shadow: 0 10px 40px rgba(0, 20, 60, 0.45);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container { width: min(1200px, 92%); margin: 0 auto; }

/* ---------------- 导航 ---------------- */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(6, 13, 31, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.navbar.scrolled { border-bottom-color: var(--line); background: rgba(6, 13, 31, 0.92); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }

.logo { display: flex; align-items: center; gap: 11px; }
.logo-mark {
  width: 48px; height: 40px; display: block; object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(0, 166, 255, .28));
}
.logo-text { font-size: 18px; font-weight: 700; letter-spacing: 1px; line-height: 1.15; display: flex; flex-direction: column; }
.logo-text small { font-size: 10px; font-weight: 500; color: var(--text-dim); letter-spacing: 2px; }

.nav-links { display: flex; gap: 26px; }
.nav-links a {
  font-size: 15px; color: var(--text-dim); position: relative; padding: 6px 0;
  transition: color .25s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--grad); transition: width .25s;
}
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: .3s; }

/* ---------------- Hero ---------------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
  background:
    radial-gradient(1000px 500px at 70% -10%, rgba(47, 123, 255, .28), transparent 60%),
    radial-gradient(800px 500px at 15% 110%, rgba(0, 212, 255, .18), transparent 60%),
    var(--bg);
}
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-overlay {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(88, 141, 255, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(88, 141, 255, .07) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; padding: 120px 0 80px; }
.hero-tag { color: var(--accent-2); letter-spacing: 4px; font-size: 13px; margin-bottom: 18px; }
.hero h1 {
  font-size: clamp(40px, 7vw, 76px); font-weight: 800; letter-spacing: 6px; color: #fff;
  text-shadow: 0 0 40px rgba(47, 123, 255, .35);
}
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin-top: 10px; font-size: clamp(15px, 2vw, 20px); color: var(--text-dim); letter-spacing: 3px; }
.hero-desc { margin: 26px auto 0; max-width: 760px; color: var(--text-dim); font-size: 16px; }
.hero-actions { margin-top: 40px; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 13px 34px; border-radius: 999px;
  font-size: 15px; letter-spacing: 1px; cursor: pointer; border: 1px solid transparent;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn-primary { background: var(--grad); color: #04122e; font-weight: 700; box-shadow: 0 8px 26px rgba(0, 150, 255, .35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0, 180, 255, .45); }
.btn-ghost { border-color: rgba(0, 212, 255, .5); color: var(--accent-2); background: rgba(0, 212, 255, .06); }
.btn-ghost:hover { background: rgba(0, 212, 255, .14); transform: translateY(-2px); }
.btn-block { width: 100%; }

.scroll-down {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  font-size: 34px; color: var(--accent-2); z-index: 2; animation: bounce 1.8s infinite;
}
@keyframes bounce { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 10px); } }

/* ---------------- 数据条 ---------------- */
.stats { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 38px 10px; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat strong {
  display: block; font-size: clamp(30px, 4vw, 44px); font-weight: 800;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { color: var(--text-dim); font-size: 14px; letter-spacing: 2px; }

/* ---------------- 通用 Section ---------------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; margin-bottom: 56px; }
.eyebrow { color: var(--accent-2); letter-spacing: 5px; font-size: 13px; margin-bottom: 8px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); color: #fff; letter-spacing: 3px; }
.divider { width: 64px; height: 3px; margin: 16px auto 0; background: var(--grad); border-radius: 2px; }
.section-desc { margin: 18px auto 0; max-width: 720px; color: var(--text-dim); font-size: 15px; }
.section-desc strong { color: var(--accent-2); }

/* ---------------- 关于我们 ---------------- */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.about-text h3 { font-size: 24px; color: #fff; margin-bottom: 18px; }
.about-text p { color: var(--text-dim); margin-bottom: 14px; }
.about-points { margin-top: 20px; }
.about-points li {
  position: relative; padding: 10px 0 10px 26px; color: var(--text);
  border-bottom: 1px dashed var(--line);
}
.about-points li::before {
  content: ""; position: absolute; left: 2px; top: 19px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--grad);
  box-shadow: 0 0 10px rgba(0, 212, 255, .6);
}
.about-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.info-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px; transition: transform .25s, border-color .25s;
}
.info-card:hover { transform: translateY(-4px); border-color: rgba(0, 212, 255, .45); }
.info-label { display: block; font-size: 13px; color: var(--accent-2); letter-spacing: 2px; margin-bottom: 8px; }
.info-value { font-size: 16px; color: #fff; font-weight: 600; }

/* ---------------- 解决方案能力 ---------------- */
.solution-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.solution-card {
  position: relative;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .3s, border-color .3s, box-shadow .3s;
}
.solution-card:hover {
  transform: translateY(-6px); border-color: rgba(0, 212, 255, .5);
  box-shadow: 0 16px 44px rgba(0, 40, 110, .5);
}
.solution-visual {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  background: #07142e; border-bottom: 1px solid var(--line);
}
.solution-visual::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(6, 13, 31, .62) 100%);
  pointer-events: none;
}
.solution-visual img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .55s ease, filter .35s ease;
}
.solution-card:hover .solution-visual img { transform: scale(1.045); filter: brightness(1.06); }
.solution-index {
  position: absolute; left: 20px; bottom: 18px; z-index: 1;
  width: 52px; height: 52px; display: grid; place-items: center;
  border: 1px solid rgba(0, 212, 255, .5); border-radius: 12px;
  background: rgba(6, 18, 43, .82); backdrop-filter: blur(8px);
  color: var(--accent-2); font-size: 18px; font-weight: 800; letter-spacing: 1px;
  box-shadow: 0 8px 24px rgba(0, 20, 60, .38), inset 0 0 20px rgba(0, 120, 255, .1);
}
.solution-content {
  padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1;
}
.solution-content h3 { margin-bottom: 12px; font-size: 20px; color: #fff; }
.solution-content p { margin-bottom: 22px; font-size: 14px; color: var(--text-dim); flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span {
  font-size: 12px; color: var(--accent-2);
  border: 1px solid rgba(0, 212, 255, .35); border-radius: 999px; padding: 3px 12px;
  background: rgba(0, 212, 255, .06);
}

/* ---------------- 服务流程 ---------------- */
.flow { display: flex; align-items: stretch; justify-content: center; gap: 10px; flex-wrap: wrap; }
.flow-step {
  flex: 1 1 180px; max-width: 220px;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 20px; text-align: center; transition: transform .25s, border-color .25s;
}
.flow-step:hover { transform: translateY(-4px); border-color: rgba(0, 212, 255, .45); }
.flow-step em {
  display: block; font-style: normal; font-size: 30px; font-weight: 800;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.flow-step h4 { color: #fff; margin: 8px 0 6px; font-size: 18px; }
.flow-step p { font-size: 13px; color: var(--text-dim); }
.flow-arrow { align-self: center; color: var(--accent-2); font-size: 22px; }
.service-areas { margin-top: 44px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.service-areas span {
  padding: 10px 26px; border-radius: 999px; font-size: 15px; letter-spacing: 1px;
  border: 1px solid var(--line); background: var(--bg-card); color: var(--text);
  transition: border-color .25s, color .25s;
}
.service-areas span:hover { border-color: var(--accent-2); color: #fff; }

/* ---------------- 外包服务 ---------------- */
.outsourcing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.client-card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px; transition: transform .25s, border-color .25s;
}
.client-card:hover { transform: translateY(-4px); border-color: rgba(0, 212, 255, .45); }
.client-card h4 { color: #fff; font-size: 16px; margin-bottom: 8px; }
.client-card h4::before { content: "▸ "; color: var(--accent-2); }
.client-card p { font-size: 13px; color: var(--text-dim); }

.table-title { margin: 52px 0 18px; text-align: center; color: #fff; font-size: 22px; letter-spacing: 2px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.case-table { width: 100%; border-collapse: collapse; min-width: 640px; background: var(--bg-card); }
.case-table th, .case-table td { padding: 12px 16px; text-align: center; font-size: 14px; }
.case-table thead th {
  background: linear-gradient(90deg, rgba(47, 123, 255, .25), rgba(0, 212, 255, .25));
  color: #fff; letter-spacing: 2px;
}
.case-table tbody td { border-top: 1px solid var(--line); color: var(--text-dim); }
.case-table tbody tr:hover td { background: rgba(47, 123, 255, .08); color: var(--text); }

/* ---------------- 资质荣誉 ---------------- */
.honor-feature {
  display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center;
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px; margin-bottom: 40px;
}
.honor-cert img { border-radius: 10px; box-shadow: var(--shadow); }
.honor-text h3 { color: #fff; font-size: 24px; margin-bottom: 12px; }
.honor-text p { color: var(--text-dim); margin-bottom: 10px; }
.honor-text strong { color: var(--accent-2); }

.cert-marquee { overflow: hidden; position: relative; padding: 10px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.cert-track { display: flex; gap: 22px; width: max-content; animation: marquee 40s linear infinite; }
.cert-marquee:hover .cert-track { animation-play-state: paused; }
.cert-track img {
  height: 220px; width: auto; border-radius: 8px; border: 1px solid var(--line);
  background: #fff;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------------- 合作伙伴 ---------------- */
.partner-wall {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px;
}
.partner-item {
  background: #fff; border-radius: 10px; height: 86px;
  display: grid; place-items: center; padding: 12px;
  filter: grayscale(35%); opacity: .85;
  transition: filter .25s, opacity .25s, transform .25s;
}
.partner-item:hover { filter: none; opacity: 1; transform: translateY(-3px); }
.partner-item img { max-height: 60px; max-width: 100%; object-fit: contain; }

/* ---------------- 联系我们 ---------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.contact-img { border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; box-shadow: var(--shadow); }
.contact-list li {
  display: flex; gap: 18px; padding: 14px 0; border-bottom: 1px dashed var(--line);
}
.ci-label { flex: 0 0 86px; color: var(--accent-2); font-size: 14px; letter-spacing: 2px; }
.ci-value { min-width: 0; color: var(--text); overflow-wrap: anywhere; }

.contact-form {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px;
}
.contact-form h3 { color: #fff; margin-bottom: 20px; font-size: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form input, .contact-form textarea {
  width: 100%; margin-bottom: 14px; padding: 13px 16px;
  background: rgba(6, 13, 31, .6); border: 1px solid var(--line); border-radius: 10px;
  color: var(--text); font-size: 14px; font-family: inherit; outline: none;
  transition: border-color .25s, box-shadow .25s; resize: vertical;
}
.contact-form input:focus, .contact-form textarea:focus {
  border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(0, 212, 255, .12);
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #5d7099; }
/* ---------------- 页脚 ---------------- */
.footer { border-top: 1px solid var(--line); background: #04091a; padding: 44px 0; }
.footer-inner { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.footer-brand { display: flex; gap: 14px; align-items: center; }
.footer-brand strong { color: #fff; font-size: 16px; }
.footer-brand p { color: var(--text-dim); font-size: 13px; }
.footer-meta { text-align: right; color: var(--text-dim); font-size: 13px; }
.footer-meta .copyright { margin-top: 6px; color: #5d7099; }

/* ---------------- 滚动显现动画 ---------------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ---------------- 响应式 ---------------- */
@media (max-width: 1024px) {
  .solution-grid { grid-template-columns: repeat(2, 1fr); }
  .outsourcing-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-wall { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 68px; right: 0; bottom: 0; width: min(280px, 78vw);
    flex-direction: column; gap: 0; padding: 20px 0;
    background: rgba(6, 13, 31, .97); border-left: 1px solid var(--line);
    transform: translateX(100%); transition: transform .3s;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { padding: 14px 28px; display: block; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat { border-top: 1px solid var(--line); }
  .stat:nth-child(-n+2) { border-top: 0; }

  .about-grid, .contact-grid, .honor-feature { grid-template-columns: 1fr; }
  .honor-cert { max-width: 280px; margin: 0 auto; }
  .solution-grid { grid-template-columns: 1fr; }
  .flow-arrow { display: none; }
  .partner-wall { grid-template-columns: repeat(3, 1fr); }
  .hero h1 { letter-spacing: 2px; }
  .hero-tag { letter-spacing: 2px; font-size: 11px; }
  .section { padding: 68px 0; }
  .pc-br { display: none; }
  .footer-meta { text-align: left; }
}

@media (max-width: 480px) {
  .outsourcing-grid { grid-template-columns: 1fr; }
  .partner-wall { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
}
