/* ============================================================
   青衿网络 · QINGJIN TECH —— Futuristic Youth Tech Style
   ============================================================ */
:root {
  --bg: #050816;
  --bg-2: #0a0f24;
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.09);
  --text: #eaf0ff;
  --text-dim: #93a0c4;
  --cyan: #22d3ee;
  --violet: #8b5cf6;
  --pink: #ec4899;
  --grad: linear-gradient(120deg, #22d3ee 0%, #8b5cf6 55%, #ec4899 100%);
  --radius: 18px;
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-num: "Orbitron", "Noto Sans SC", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(139, 92, 246, 0.5); }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--cyan), var(--violet));
  border-radius: 6px;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, 92%); margin: 0 auto; }

/* ============ 背景光效 ============ */
.bg-glow { position: fixed; inset: 0; z-index: -1; overflow: hidden; background:
  radial-gradient(ellipse 80% 50% at 50% -10%, rgba(139, 92, 246, 0.18), transparent),
  var(--bg);
}
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; animation: orbFloat 14s ease-in-out infinite alternate; }
.orb-1 { width: 480px; height: 480px; background: rgba(34, 211, 238, 0.28); top: -120px; left: -120px; }
.orb-2 { width: 520px; height: 520px; background: rgba(139, 92, 246, 0.28); top: 35%; right: -180px; animation-delay: -5s; }
.orb-3 { width: 420px; height: 420px; background: rgba(236, 72, 153, 0.2); bottom: -140px; left: 22%; animation-delay: -9s; }
@keyframes orbFloat {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(60px, -40px) scale(1.12); }
}
.grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 75%);
}

/* ============ 导航 ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s;
}
.nav.scrolled {
  background: rgba(5, 8, 22, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.07), 0 10px 40px rgba(0, 0, 0, 0.45);
}
.nav-inner {
  width: min(1180px, 92%); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  font-family: var(--font-num); font-weight: 900; font-size: 15px;
  width: 42px; height: 42px; display: grid; place-items: center;
  border-radius: 12px; color: #fff;
  background: var(--grad);
  box-shadow: 0 0 22px rgba(139, 92, 246, 0.55);
}
.logo-text { font-weight: 700; font-size: 17px; line-height: 1.2; display: flex; flex-direction: column; }
.logo-text em { font-style: normal; font-family: var(--font-num); font-size: 9px; letter-spacing: 3px; color: var(--text-dim); }
.nav-links { display: flex; gap: 34px; list-style: none; }
.nav-links a {
  font-size: 15px; color: var(--text-dim); position: relative; padding: 6px 0;
  transition: color 0.25s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 2px;
  background: var(--grad); border-radius: 2px; transition: width 0.3s ease;
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: #fff; }
.nav-burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-burger span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; border-radius: 2px; transition: 0.3s; }

/* ============ Hero ============ */
.hero {
  min-height: 100vh; position: relative;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 120px 20px 80px;
}
#particleCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-content { position: relative; z-index: 2; max-width: 900px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; letter-spacing: 2px; color: var(--text-dim);
  border: 1px solid var(--card-border); border-radius: 999px;
  padding: 8px 20px; background: var(--card); backdrop-filter: blur(8px);
  margin-bottom: 34px;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); animation: pulse 1.8s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.35; transform: scale(0.75); } }

.hero-title { font-size: clamp(40px, 7.5vw, 84px); font-weight: 900; line-height: 1.16; letter-spacing: 2px; }
.hero-title .line { display: block; }
.hero-title .thin { font-weight: 300; color: var(--text-dim); font-size: 0.62em; margin-top: 10px; letter-spacing: 8px; }
.grad-text {
  background: var(--grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.hero-sub { margin: 28px auto 40px; color: var(--text-dim); font-size: clamp(15px, 2vw, 18px); font-weight: 300; }

.hero-actions { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 36px; border-radius: 999px; font-size: 16px; font-weight: 500;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s;
}
.btn:hover { transform: translateY(-3px) scale(1.02); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 30px rgba(139, 92, 246, 0.45); }
.btn-primary:hover { box-shadow: 0 12px 42px rgba(139, 92, 246, 0.65); }
.btn-primary .arrow { font-style: normal; transition: transform 0.3s; }
.btn-primary:hover .arrow { transform: translateX(5px); }
.btn-ghost { border: 1px solid var(--card-border); color: var(--text); background: var(--card); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: rgba(34, 211, 238, 0.6); box-shadow: 0 0 24px rgba(34, 211, 238, 0.2); }

.hero-stats {
  margin-top: 70px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.stat {
  padding: 20px 10px; border: 1px solid var(--card-border); border-radius: var(--radius);
  background: var(--card); backdrop-filter: blur(10px);
  transition: transform 0.3s, border-color 0.3s;
}
.stat:hover { transform: translateY(-5px); border-color: rgba(139, 92, 246, 0.5); }
.stat b { font-family: var(--font-num); font-size: clamp(24px, 3.4vw, 36px); font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat span { display: block; margin-top: 4px; font-size: 13px; color: var(--text-dim); }

.scroll-hint {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(255,255,255,0.25); border-radius: 14px;
}
.scroll-hint span {
  position: absolute; top: 7px; left: 50%; margin-left: -2px;
  width: 4px; height: 8px; border-radius: 3px; background: var(--cyan);
  animation: scrollHint 1.8s ease-in-out infinite;
}
@keyframes scrollHint { 60% { transform: translateY(14px); opacity: 0; } 100% { transform: translateY(14px); opacity: 0; } }

/* ============ 通用 Section ============ */
.section { padding: 110px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, transparent, rgba(10, 15, 36, 0.7) 18%, rgba(10, 15, 36, 0.7) 82%, transparent); }
.section-head { margin-bottom: 60px; }
.tag {
  display: inline-block; font-family: var(--font-num); font-size: 12px; letter-spacing: 4px;
  color: var(--cyan); border: 1px solid rgba(34, 211, 238, 0.35); border-radius: 999px;
  padding: 6px 18px; margin-bottom: 18px; background: rgba(34, 211, 238, 0.06);
}
.section-head h2 { font-size: clamp(30px, 4.6vw, 50px); font-weight: 900; line-height: 1.25; letter-spacing: 1px; }

/* ============ 关于我们 ============ */
.about-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }
.about-text p { color: var(--text-dim); margin-bottom: 18px; font-size: 16px; }
.about-points { list-style: none; margin-top: 34px; display: grid; gap: 18px; }
.about-points li { display: flex; gap: 18px; align-items: flex-start; padding: 18px 20px; border: 1px solid var(--card-border); border-radius: var(--radius); background: var(--card); transition: transform 0.3s, border-color 0.3s; }
.about-points li:hover { transform: translateX(8px); border-color: rgba(34, 211, 238, 0.45); }
.about-points i { font-style: normal; font-family: var(--font-num); font-weight: 700; font-size: 20px; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.about-points b { display: block; font-size: 16px; }
.about-points span { font-size: 13.5px; color: var(--text-dim); }

.about-visual { position: relative; }
.visual-frame {
  position: relative; border-radius: 22px; overflow: hidden;
  border: 1px solid var(--card-border);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 60px rgba(139, 92, 246, 0.18);
  transform: perspective(1000px) rotateY(-4deg);
  transition: transform 0.5s ease;
}
.visual-frame:hover { transform: perspective(1000px) rotateY(0deg) scale(1.02); }
.visual-frame img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.visual-scan {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(34, 211, 238, 0.12) 48%, rgba(34, 211, 238, 0.35) 50%, rgba(34, 211, 238, 0.12) 52%, transparent 100%);
  background-size: 100% 240%;
  animation: scan 4.5s linear infinite;
  mix-blend-mode: screen;
}
@keyframes scan { from { background-position: 0 -120%; } to { background-position: 0 220%; } }
.floating-chip {
  position: absolute; font-size: 12.5px; font-weight: 500; padding: 9px 16px;
  border-radius: 999px; border: 1px solid var(--card-border);
  background: rgba(10, 15, 36, 0.85); backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  animation: chipFloat 5s ease-in-out infinite;
}
.chip-1 { top: 8%; left: -22px; color: var(--cyan); }
.chip-2 { bottom: 26%; right: -18px; color: var(--violet); animation-delay: -1.6s; }
.chip-3 { bottom: -16px; left: 18%; color: var(--pink); animation-delay: -3.2s; }
@keyframes chipFloat { 50% { transform: translateY(-12px); } }

/* ============ 产品服务 ============ */
.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.product-card {
  position: relative; overflow: hidden;
  padding: 42px 38px; border-radius: 24px;
  border: 1px solid var(--card-border); background: var(--card);
  backdrop-filter: blur(10px);
  transition: transform 0.4s ease, border-color 0.4s;
}
.product-card:hover { transform: translateY(-8px); border-color: rgba(139, 92, 246, 0.55); }
.card-glow {
  position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.22), transparent 70%);
  top: -120px; right: -120px; opacity: 0; transition: opacity 0.5s;
  pointer-events: none;
}
.product-card:hover .card-glow { opacity: 1; }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 26px; }
.product-icon {
  width: 66px; height: 66px; border-radius: 18px; display: grid; place-items: center;
  color: #fff; background: linear-gradient(135deg, rgba(34, 211, 238, 0.25), rgba(139, 92, 246, 0.25));
  border: 1px solid rgba(34, 211, 238, 0.35);
  box-shadow: 0 0 26px rgba(34, 211, 238, 0.18);
}
.product-icon svg { width: 34px; height: 34px; color: var(--cyan); }
.icon-b { background: linear-gradient(135deg, rgba(139, 92, 246, 0.25), rgba(236, 72, 153, 0.25)); border-color: rgba(236, 72, 153, 0.35); box-shadow: 0 0 26px rgba(236, 72, 153, 0.18); }
.icon-b svg { color: var(--pink); }
.product-no { font-family: var(--font-num); font-size: 40px; font-weight: 900; color: rgba(255, 255, 255, 0.07); line-height: 1; }
.product-card h3 { font-size: 26px; margin-bottom: 12px; }
.product-card p { color: var(--text-dim); font-size: 15px; margin-bottom: 22px; }
.tech-tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tech-tags span {
  font-size: 12.5px; padding: 6px 14px; border-radius: 999px;
  color: var(--text-dim); border: 1px solid var(--card-border); background: rgba(255, 255, 255, 0.03);
}

/* ============ 产品案例 ============ */
.filter-tabs { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.tab {
  font-family: var(--font); font-size: 15px; cursor: pointer;
  padding: 11px 30px; border-radius: 999px; color: var(--text-dim);
  border: 1px solid var(--card-border); background: var(--card);
  transition: all 0.3s ease;
}
.tab:hover { color: #fff; border-color: rgba(34, 211, 238, 0.5); }
.tab.active {
  color: #fff; background: var(--grad); border-color: transparent;
  box-shadow: 0 6px 24px rgba(139, 92, 246, 0.45);
}

.case-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.case-card {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--card-border); background: var(--card);
  transition: transform 0.4s ease, box-shadow 0.4s, border-color 0.4s, opacity 0.35s;
}
.case-card:hover {
  transform: translateY(-8px);
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45), 0 0 40px rgba(34, 211, 238, 0.12);
}
.case-card.hide { opacity: 0; transform: scale(0.9); pointer-events: none; position: absolute; visibility: hidden; }
.case-thumb { position: relative; overflow: hidden; aspect-ratio: 4/3; }
.case-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.case-card:hover .case-thumb img { transform: scale(1.08); }
.case-mask {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(5, 8, 22, 0.1), rgba(5, 8, 22, 0.82));
  opacity: 0; transition: opacity 0.4s;
}
.case-card:hover .case-mask { opacity: 1; }
.view-btn {
  font-size: 14px; color: #fff; padding: 10px 24px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.5); backdrop-filter: blur(6px);
  transform: translateY(12px); transition: transform 0.4s;
}
.case-card:hover .view-btn { transform: translateY(0); }
.case-info { padding: 22px 24px 26px; }
.case-tag {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: 1px;
  padding: 4px 12px; border-radius: 6px; margin-bottom: 12px;
}
.tag-web { color: var(--cyan); background: rgba(34, 211, 238, 0.12); border: 1px solid rgba(34, 211, 238, 0.35); }
.tag-mobile { color: var(--pink); background: rgba(236, 72, 153, 0.12); border: 1px solid rgba(236, 72, 153, 0.35); }
.tag-research { color: var(--violet); background: rgba(139, 92, 246, 0.14); border: 1px solid rgba(139, 92, 246, 0.4); }
.case-info h3 { font-size: 19px; margin-bottom: 8px; }
.case-info p { font-size: 14px; color: var(--text-dim); }

/* ============ 联系我们 ============ */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.contact-card {
  text-align: center; padding: 44px 28px; border-radius: 24px;
  border: 1px solid var(--card-border); background: var(--card);
  transition: transform 0.35s, border-color 0.35s, box-shadow 0.35s;
}
.contact-card:hover {
  transform: translateY(-8px); border-color: rgba(34, 211, 238, 0.5);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 40px rgba(34, 211, 238, 0.1);
}
.contact-icon {
  width: 62px; height: 62px; margin: 0 auto 20px; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.18), rgba(139, 92, 246, 0.18));
  border: 1px solid rgba(34, 211, 238, 0.35);
  box-shadow: 0 0 30px rgba(34, 211, 238, 0.15);
}
.contact-icon svg { width: 28px; height: 28px; color: var(--cyan); }
.contact-card h3 { font-size: 18px; margin-bottom: 10px; }
.contact-card p { color: var(--text-dim); font-size: 15px; }
.contact-card a { color: var(--cyan); border-bottom: 1px dashed rgba(34, 211, 238, 0.5); transition: color 0.25s; }
.contact-card a:hover { color: #fff; }

/* ============ Footer ============ */
.footer { border-top: 1px solid var(--card-border); padding: 44px 0; background: rgba(5, 8, 22, 0.85); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand b { font-size: 17px; }
.footer-brand p { font-size: 12.5px; color: var(--text-dim); }
.footer-links { display: flex; gap: 26px; }
.footer-links a { font-size: 14px; color: var(--text-dim); transition: color 0.25s; }
.footer-links a:hover { color: var(--cyan); }
.copyright { width: 100%; text-align: center; margin-top: 22px; font-size: 12.5px; color: rgba(147, 160, 196, 0.55); letter-spacing: 1px; }

/* ============ 滚动入场动画 ============ */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============ 响应式 ============ */
@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; gap: 50px; }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links {
    position: fixed; top: 72px; right: 0; left: 0;
    flex-direction: column; gap: 0; padding: 10px 0;
    background: rgba(5, 8, 22, 0.96); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--card-border);
    transform: translateY(-130%); transition: transform 0.4s ease;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links li { text-align: center; }
  .nav-links a { display: block; padding: 16px 0; font-size: 16px; }
  .nav-burger { display: block; }
  .nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-burger.open span:nth-child(2) { opacity: 0; }
  .nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .product-grid { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .floating-chip { display: none; }
  .section { padding: 80px 0; }
}
