:root {
  --bg: #070c18;
  --bg-2: #0d1730;
  --panel: rgba(18, 32, 64, 0.55);
  --line: rgba(100, 160, 255, 0.35);
  --text: #eef4ff;
  --muted: #9eb0d4;
  --blue: #3d7cff;
  --blue-2: #5aa8ff;
  --magenta: #b24dff;
  --cyan: #4de6ff;
  --radius: 18px;
  --shadow: 0 20px 60px rgba(0, 10, 40, 0.45);
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "Orbitron", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 70% -10%, rgba(61, 124, 255, 0.28), transparent 60%),
    radial-gradient(900px 500px at 10% 20%, rgba(178, 77, 255, 0.16), transparent 55%),
    linear-gradient(180deg, var(--bg), #050912 40%, #081124);
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; }
.container {
  box-sizing: border-box;
  width: 100%;
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.site-particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 25;
  pointer-events: none;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px);
  background: rgba(7, 12, 24, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 8px;
  flex-shrink: 0;
}
.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background:
    conic-gradient(from 210deg, var(--cyan), var(--blue), var(--magenta), var(--cyan));
  box-shadow: 0 0 18px rgba(77, 230, 255, 0.45);
  position: relative;
  flex-shrink: 0;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  background: #07101f;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}
.site-nav {
  display: flex;
  gap: 1.25rem;
  margin-left: auto;
  margin-right: 1rem;
}
.site-nav a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.2s;
}
.site-nav a:hover { color: #fff; }
.header-cta { flex-shrink: 0; }
.nav-toggle {
  display: none;
  margin-left: auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  padding: 0;
  cursor: pointer;
  position: relative;
  z-index: 60;
  color: #fff;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--blue), #2f64ff 55%, #6a5cff);
  color: #fff;
  box-shadow: 0 10px 30px rgba(61, 124, 255, 0.35);
}
.btn-ghost {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.hero {
  position: relative;
  min-height: min(88vh, 820px);
  padding: 5.5rem 0 4rem;
  overflow: hidden;
  display: block;
  background:
    linear-gradient(90deg, rgba(5, 10, 22, 0.88) 0%, rgba(5, 12, 28, 0.55) 42%, rgba(5, 12, 28, 0.22) 100%),
    linear-gradient(180deg, rgba(5, 10, 22, 0.35) 0%, rgba(5, 10, 22, 0.15) 50%, rgba(5, 10, 22, 0.75) 100%),
    url("/uploads/hero-bg.png") center / cover no-repeat;
}
.hero-glow {
  display: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  position: relative;
  z-index: 1;
  min-height: min(70vh, 640px);
  align-content: center;
}
.hero-copy {
  max-width: 36rem;
  margin: 0;
}
.eyebrow {
  color: var(--cyan);
  font-family: var(--display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin: 0 0 0.8rem;
}
.hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.12;
  letter-spacing: 0.02em;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
}
.hero-sub {
  margin: 1rem 0 0.5rem;
  font-size: 1.2rem;
  color: #d7e5ff;
}
.hero-desc {
  margin: 0 0 1.6rem;
  color: var(--muted);
  max-width: 36rem;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.hero-visual {
  display: none;
}

.section { padding: 4.5rem 0; }
.section-head {
  text-align: center;
  margin-bottom: 2rem;
}
.section-head h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
}
.section-head p { margin: 0; color: var(--muted); }
.section-cta { text-align: center; margin-top: 2rem; }

.carousel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
}
.carousel-viewport { overflow: hidden; }
.carousel-track {
  display: flex;
  gap: 1rem;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.carousel-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(10, 20, 40, 0.7);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
}
.carousel-btn:hover { background: rgba(61, 124, 255, 0.25); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.product-card {
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 100%;
}
.glass-card {
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(36, 58, 110, 0.45), rgba(12, 22, 45, 0.7));
  border: 1px solid rgba(120, 180, 255, 0.35);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03) inset, var(--shadow);
  backdrop-filter: blur(10px);
}
.card-media {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.card-media img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.45s;
}
.product-card:hover .card-media img { transform: scale(1.05); }
.product-card h3 { margin: 0; font-size: 1.15rem; }
.product-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}
.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.product-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  line-height: 1.3;
  color: #fff;
  white-space: nowrap;
  background: linear-gradient(90deg, #3d7cff 0%, #6a5cff 55%, #b24dff 100%);
  box-shadow: 0 4px 14px rgba(61, 124, 255, 0.28);
}
.text-link { color: var(--blue-2); font-size: 0.95rem; }

.case-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.case-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(140, 120, 255, 0.35);
  aspect-ratio: 3 / 4;
  min-height: 0;
  box-shadow: var(--shadow);
}
.case-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}
.case-card:hover img { transform: scale(1.06); }
.case-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1rem;
  background: linear-gradient(180deg, transparent 35%, rgba(4, 8, 20, 0.92));
}
.case-plus {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(10, 20, 40, 0.45);
  font-size: 1.5rem;
  opacity: 0.9;
}
.case-card h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.4;
}

.contact {
  background:
    radial-gradient(700px 300px at 20% 0%, rgba(61, 124, 255, 0.18), transparent 60%),
    radial-gradient(500px 280px at 90% 80%, rgba(178, 77, 255, 0.12), transparent 55%);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.contact-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: start;
}
.contact-form-wrap,
.contact-info,
.contact-qr {
  border-radius: 22px;
  padding: 1.6rem;
  background: linear-gradient(180deg, rgba(36, 58, 110, 0.45), rgba(12, 22, 45, 0.78));
  color: var(--text);
  border: 1px solid rgba(120, 180, 255, 0.32);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.03) inset, var(--shadow);
  backdrop-filter: blur(12px);
}
.contact-side {
  display: grid;
  gap: 1rem;
}
.contact-form-wrap h2,
.contact-info h3 {
  margin-top: 0;
  color: #fff;
}
.contact-form {
  display: grid;
  gap: 0.35rem;
}
.contact-form label {
  display: grid;
  gap: 1rem;
  font-size: 0.92rem;
  color: var(--muted);
}
.contact-form input {
  border: 1px solid rgba(120, 180, 255, 0.28);
  border-radius: 12px;
  padding: 1.6rem 1rem;
  background: rgba(7, 14, 28, 0.65);
  color: #eef4ff;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form input::placeholder {
  color: #6f809f;
}
.contact-form input:focus {
  border-color: rgba(90, 168, 255, 0.7);
  box-shadow: 0 0 0 3px rgba(61, 124, 255, 0.18);
}
.contact-form .btn-primary { width: 100%; border: none; }
.form-msg { margin: 0; font-size: 0.92rem; }
.form-msg.ok { color: #5ddea0; }
.form-msg.err { color: #ff8b8b; }
.contact-info ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}
.contact-info li {
  display: grid;
  gap: 0.25rem;
}
.contact-info span { color: var(--muted); font-size: 0.88rem; }
.contact-info strong { color: #eef4ff; font-weight: 600; }
.contact-qr {
  text-align: center;
  padding: 1.2rem;
}
.contact-qr img {
  width: min(180px, 70%);
  margin: 0 auto;
  border-radius: 12px;
  background: #fff;
  padding: 0.45rem;
  border: 1px solid rgba(120, 180, 255, 0.25);
}
.contact-qr p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2rem 0 2.5rem;
}
.footer-inner {
  display: grid;
  gap: 1rem;
  justify-items: center;
  text-align: center;
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.footer-nav { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.footer-nav a { color: var(--muted); }
.footer-copy { margin: 0; color: #6f809f; font-size: 0.88rem; }

.article-main {
  padding: 2.5rem 0 4rem;
}
.back-link {
  color: var(--muted);
  display: inline-block;
  margin-bottom: 1rem;
  transition: color 0.2s;
}
.back-link:hover { color: #fff; }
.article-layout { max-width: 880px; }
.article-panel {
  border-radius: 24px;
  background: #fff;
  color: #132038;
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.article-hero {
  display: grid;
  gap: 0;
}
.article-cover {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: 0;
  border: 0;
  background: #0b1428;
}
.article-meta {
  padding: 1.6rem 1.8rem 0.5rem;
}
.article-meta h1 {
  margin: 0.4rem 0 0.7rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.25;
  color: #0f1b33;
}
.page-article .tag {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(61, 124, 255, 0.35);
  color: #3d7cff;
  background: rgba(61, 124, 255, 0.08);
  font-size: 0.8rem;
  margin-bottom: 0.35rem;
}
.article-summary {
  margin: 0;
  color: #5b6b86;
  line-height: 1.75;
}
.article-tags { margin-top: 1rem; }
.article-body {
  padding: 0.5rem 1.8rem 0.5rem;
}
.prose {
  line-height: 1.9;
  color: #24324a;
  font-size: 1.02rem;
}
.prose > *:first-child { margin-top: 0; }
.prose h2,
.prose h3 {
  color: #0f1b33;
  margin-top: 1.8rem;
  margin-bottom: 0.7rem;
  line-height: 1.35;
}
.prose h2 { font-size: 1.35rem; }
.prose h3 { font-size: 1.15rem; }
.prose p { margin: 0.85rem 0; }
.prose ul,
.prose ol {
  padding-left: 1.25rem;
  margin: 0.85rem 0;
}
.prose li { margin: 0.35rem 0; }
.prose a { color: #3d7cff; }
.prose strong { color: #0f1b33; }
.prose img {
  border-radius: 14px;
  margin: 1rem 0;
}
.prose blockquote {
  margin: 1rem 0;
  padding: 0.75rem 1rem;
  border-left: 3px solid #3d7cff;
  background: #f4f7fc;
  color: #40506c;
  border-radius: 0 10px 10px 0;
}
.prose code {
  background: #eef3fb;
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  font-size: 0.92em;
}
.article-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
  padding: 1.2rem 1.8rem 1.8rem;
  border-top: 1px solid #e8eef8;
}
.article-back-btn {
  color: #132038;
  border-color: #c9d6ec;
  background: #f5f8fc;
}
.article-back-btn:hover {
  background: #ebf1fa;
}

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

@media (max-width: 1100px) {
  .case-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .hero-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: repeat(2, 1fr); }
  .hero {
    min-height: auto;
    padding: 3.5rem 0 3rem;
    background:
      linear-gradient(180deg, rgba(5, 10, 22, 0.72) 0%, rgba(5, 12, 28, 0.55) 45%, rgba(5, 10, 22, 0.85) 100%),
      url("/uploads/hero-bg.png") center / cover no-repeat;
  }
  .nav-toggle { display: inline-flex; flex-direction: column; }
  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    z-index: 55;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 1.25rem 1.25rem;
    background: rgba(7, 12, 24, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    margin: 0;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 0.65rem 0; }
  .header-cta { display: none; }
}

@media (max-width: 600px) {
  .product-grid { grid-template-columns: 1fr; }
  .case-grid { grid-template-columns: 1fr; }
  .article-meta,
  .article-body,
  .article-cta {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-track { transition: none; }
  .site-particles,
  .hero-particles { display: none; }
}
