@charset "UTF-8";

/* ==========================================================================
   VARIABLES
   ========================================================================== */
:root {
  --color-primary: #0077ff;
  --color-primary-light: #3399ff;
  --color-primary-dark: #0055cc;
  --color-accent: #0077ff;
  --color-white: #ffffff;
  --color-black: #0f1419;

  /* 布局关键变量 */
  --footer-height: 48px;   /* 底部备案栏高度（可按实际调整） */
  --header-height: 87px;   /* 顶部导航栏高度 */
}

/* ==========================================================================
   RESET
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  scroll-behavior: smooth;
  height: 100%;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: #8892a8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #0a0e13;

  height: 100%;
  overflow: hidden;          /* 禁止滚动条 */
}

a {
  color: #00d9ff;
  text-decoration: none;
  transition: all 0.3s ease-in-out;
}
a:hover { color: #00c2e6; }

img, svg {
  vertical-align: middle;
  max-width: 100%;
  height: auto;
}

ul, ol { list-style: none; padding: 0; margin: 0; }

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  margin: 0;
}
button, [type=button], [type=reset], [type=submit] { cursor: pointer; }
:focus { outline: 0; }

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: "Poppins", "Inter", sans-serif;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
  line-height: 1.2;
}
h1 { font-size: 1.5rem; }
@media (min-width: 1024px) { h1 { font-size: 1.875rem; } }
h2 { font-size: 1.875rem; }
@media (max-width: 576px) { h2 { font-size: 1.125rem; } }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ==========================================================================
   UTILITIES
   ========================================================================== */
.container {
  width: 100%;
  padding-right: 10px;
  padding-left: 10px;
  margin-right: auto;
  margin-left: auto;
}
@media (min-width: 1440px) {
  .container { max-width: 1296px; }
}

.d-flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}
.d-flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.position-relative { position: relative !important; }
.overlay-link {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
  background-color: transparent;
}

/* ==========================================================================
   BUTTON
   ========================================================================== */
.btn-get-quotes {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 1rem;
  border: 2px solid var(--color-primary);
  border-radius: 16px;
  background-color: #111827;
  color: #ffffff !important;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
  transition: all 0.4s ease, box-shadow 0.4s ease, transform 0.3s ease;
}
.btn-get-quotes:hover {
  box-shadow: 0 0 12px var(--color-primary);
  transform: translateY(-2px);
}
.btn-get-quotes:active { transform: translateY(0); }
@media (max-width: 576px) {
  .btn-get-quotes { padding: 10px; font-size: 0.7rem; }
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 0;
  z-index: 800;
  height: var(--header-height);
}
.header .container { position: relative; }
@media (max-width: 1024px) {
  .header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

/* Logo 文字版 */
.header .logo {
  height: auto;
  width: auto;
  z-index: 1001;
  display: flex;
  align-items: center;
}

.header .logo .logo-text {
  font-family: "Poppins", "Inter", sans-serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: #00d9ff;
  letter-spacing: 0.05em;
  text-shadow: 0 0 20px rgba(0, 217, 255, 0.6);
  transition: all 0.3s ease-in-out;
  white-space: nowrap;
}

.header .logo .logo-text:hover {
  color: #4de4ff;
  text-shadow: 0 0 30px rgba(0, 217, 255, 0.8);
}

@media (max-width: 1024px) {
  .header .logo .logo-text { font-size: 1.5rem; }
}

@media (max-width: 576px) {
  .header .logo .logo-text { font-size: 1.2rem; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative;
  width: 100%;
  /* 高度 = 视口 - 底部 footer */
  height: calc(100vh - var(--footer-height));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 10px;
  padding-top: 70px;
  background-color: transparent;
  z-index: 2;
  box-sizing: border-box;
  overflow: hidden;
}

@media (max-width: 1024px) {
  .hero {
    height: calc(100vh - var(--footer-height));
    padding-top: 100px;
    padding-bottom: 80px;
  }
}

@media (max-width: 576px) {
  .hero {
    padding-bottom: 70px;
  }
}

/* ==========================================================================
   机器人
   ========================================================================== */
.hero #robot {
  position: fixed;                            /* 桌面也 fixed，直接贴屏幕 */
  left: 0;
  bottom: 0;                                  /* JS 会动态调整为 footer 高度 */
  opacity: 0;
  z-index: 2;
  pointer-events: none;
  max-width: 200px;
  height: auto;
  will-change: left, bottom, opacity;
}

@media (max-width: 1024px) {
  .hero #robot {
    max-width: 180px;
  }
}

@media (max-width: 576px) {
  .hero #robot {
    max-width: 160px;
  }
}

/* ==========================================================================
   暗角
   ========================================================================== */
.hero .vignette {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(10,14,19,0.5) 100%);
  z-index: 1;
}

/* ==========================================================================
   内容容器
   ========================================================================== */
.hero .contents-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 3;
}

/* ==========================================================================
   服务信息卡片
   ========================================================================== */
.hero .contents-box .service-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  width: 100%;
  max-width: 700px;
  height: 350px;
  border: 2px solid #00d9ff;
  border-radius: 10px;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  background: rgba(22, 27, 34, 0.6);
  box-shadow: 0 0 40px rgba(0, 217, 255, 0.3);
  animation: infoFloat 4s ease-in-out infinite;
  position: relative;
  overflow: hidden;
}
@media (max-width: 1024px) {
  .hero .contents-box .service-info { max-width: 360px; height: 290px; }
}

@keyframes infoFloat {
  0%, 100% { transform: translateZ(0) rotateX(0deg); }
  50%      { transform: translateZ(20px) rotateX(2deg); }
}

/* 全息框内部 */
.hero .contents-box .service-info .hologram-frame {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hero .contents-box .service-info .hologram-frame #serviceName {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #00d9ff;
  text-shadow: 0 0 20px rgba(0, 217, 255, 0.8);
}
@media (max-width: 1024px) {
  .hero .contents-box .service-info .hologram-frame #serviceName {
    font-size: 1.7rem;
    margin-bottom: 1.1rem;
  }
}

.hero .contents-box .service-info .hologram-frame .typewriter {
  text-align: center;
  position: relative;
  display: inline-block;
  border-right: 3px solid #00d9ff;
  animation: blinkCursor 0.9s infinite;
}
@keyframes blinkCursor {
  0%, 100% { border-color: transparent; }
  50%      { border-color: #00d9ff; }
}

.hero .contents-box .service-info .hologram-frame #serviceDesc {
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.5;
  max-width: 520px;
  margin: 0 auto 2rem;
}
@media (max-width: 1024px) {
  .hero .contents-box .service-info .hologram-frame #serviceDesc {
    font-size: 1rem;
    max-width: 290px;
    margin-bottom: 1rem;
  }
}

/* 统计数字 */
.hero .contents-box .service-info .hologram-frame .stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  margin-top: 2rem;
}
.hero .contents-box .service-info .hologram-frame .stats .stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.hero .contents-box .service-info .hologram-frame .stats .stat .stat-value {
  font-size: 2.1rem;
  font-weight: 600;
  background: linear-gradient(135deg, #00d9ff, #00d9ff);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero .contents-box .service-info .hologram-frame .stats .stat .stat-label {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.1rem;
}
@media (max-width: 1024px) {
  .hero .contents-box .service-info .hologram-frame .stats .stat .stat-value { font-size: 1.3rem; }
  .hero .contents-box .service-info .hologram-frame .stats .stat .stat-label { font-size: 0.5rem; }
}

/* ==========================================================================
   切换动画（fade-in / fade-out）
   ========================================================================== */
#serviceName.fade-out,
#serviceDesc.fade-out {
  animation: descFadeOut 0.5s ease-out forwards;
}
#serviceName.fade-in,
#serviceDesc.fade-in {
  animation: descFadeIn 0.6s ease-out forwards;
  opacity: 0;
}

@keyframes descFadeOut {
  0%   { opacity: 1; transform: translateX(0) scale(1); filter: blur(0); }
  100% { opacity: 0; transform: translateX(-40px) scale(0.9); filter: blur(8px); }
}
@keyframes descFadeIn {
  0%   { opacity: 0; transform: translateX(40px) scale(0.9); filter: blur(8px); }
  100% { opacity: 1; transform: translateX(0) scale(1); filter: blur(0); }
}

.stats .stat.fade-out {
  animation: statFadeOut 0.4s ease-out forwards;
}
.stats .stat.fade-in {
  animation: statFadeIn 0.5s ease-out forwards;
  opacity: 0;
}
@keyframes statFadeOut {
  0%   { opacity: 1; transform: translateY(0) scale(1) rotate(0); filter: blur(0); }
  100% { opacity: 0; transform: translateY(-20px) scale(0.7) rotate(-45deg); filter: blur(6px); }
}
@keyframes statFadeIn {
  0%   { opacity: 0; transform: translateY(20px) scale(0.7) rotate(45deg); filter: blur(6px); }
  100% { opacity: 1; transform: translateY(0) scale(1) rotate(0); filter: blur(0); }
}

/* ==========================================================================
   ANIMATED TITLE / GLITCH
   ========================================================================== */
.animated-title {
  position: relative;
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 1rem;
  letter-spacing: 0.3rem;
  background: linear-gradient(45deg, #00d9ff, #4de4ff, #00d9ff, #00d9ff);
  background-size: 300% 300%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 40px rgba(0, 217, 255, 0.6);
  animation: titleFloat 3s ease-in-out infinite;
}
@media (max-width: 1024px) {
  .animated-title { font-size: 1.5rem; max-width: 300px; }
}

.glitch {
  animation: gradientShift 2s ease infinite, titleFloat 3s ease-in-out infinite;
}
.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(45deg, #00d9ff, #4de4ff, #00d9ff, #00d9ff);
  background-size: 300% 300%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 2s ease infinite;
}
.glitch::before {
  animation: glitch1 3s infinite;
  clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
}
.glitch::after {
  animation: glitch2 3s infinite;
  clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
}
@keyframes glitch1 {
  0%, 96%   { transform: translate(0); }
  97%       { transform: translate(-5px, 2px); }
  98%       { transform: translate(3px, -2px); }
  99%, 100% { transform: translate(0); }
}
@keyframes glitch2 {
  0%, 96%   { transform: translate(0); }
  97%       { transform: translate(4px, -2px); }
  98%       { transform: translate(-3px, 3px); }
  99%, 100% { transform: translate(0); }
}
@keyframes titleFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-28px); }
}
@keyframes gradientShift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* ==========================================================================
   ENERGY BAR
   ========================================================================== */
.energy-bar {
  width: 260px;
  height: 3px;
  margin: 1rem 0;
  background: linear-gradient(90deg, transparent, #00d9ff, transparent);
  box-shadow: 0 0 12px #00d9ff;
}

/* ==========================================================================
   SCAN EFFECT
   ========================================================================== */
.scan-effect {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, transparent, #00d9ff, transparent);
  box-shadow: 0 0 20px #00d9ff;
  animation: scanMove 2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes scanMove {
  0%   { top: 0; }
  100% { top: 100%; }
}

/* ==========================================================================
   PARTICLES BACKGROUND
   ========================================================================== */
.particles-background {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100vh;
  z-index: 1;
  pointer-events: none;
}

/* ==========================================================================
   SELECTION
   ========================================================================== */
::selection { background-color: #00d9ff; color: #ffffff; }
::-moz-selection { background-color: #00d9ff; color: #ffffff; }

/* ==========================================================================
   FLOATING FOOTER（底部备案信息栏）
   ========================================================================== */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: var(--footer-height);
  padding: 0 16px;
  background: rgba(10, 14, 19, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(0, 217, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  z-index: 900;
  pointer-events: auto;
  box-sizing: border-box;
}

.footer .footer-info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer .footer-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 0.75rem;
}

.footer .footer-link:hover {
  color: #00d9ff;
}

.footer .footer-link svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex-shrink: 0;
}

.footer > span {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
}

/* 小屏适配 */
@media (max-width: 768px) {
  .footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    padding: 6px 10px;
    height: auto;
    min-height: var(--footer-height);
  }

  .footer .footer-info {
    justify-content: center;
    gap: 10px;
  }

  .footer .footer-link,
  .footer > span {
    font-size: 0.7rem;
  }
}