/* ============================================
   焦作星越互动科技有限公司 - 官网样式
   严格还原参考站点效果
   ============================================ */

:root {
  --brand: #1A6FEF;
  --brand-dark: #0D47A1;
  --brand-light: #F5F9FF;
  --brand-accent: #00E5FF;
  --brand-footer: #0D1B2A;
  --ink: #1A1A2E;
  --ink-muted: #5A6A7E;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-width: 0;
  border-style: solid;
  border-color: #e5e7eb;
}

html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
  text-decoration: inherit;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

img,
svg {
  display: block;
}

.hidden {
  display: none !important;
}

/* ---------- 通用容器 ---------- */
.container {
  max-width: 80rem;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 640px) {
  .container { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 1024px) {
  .container { padding-left: 2rem; padding-right: 2rem; }
}

/* ============================================
   导航栏
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.3s;
  background: transparent;
}
.navbar.scrolled {
  background: #fff;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.nav-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) {
  .nav-inner { padding: 0 1.5rem; }
}
@media (min-width: 1024px) {
  .nav-inner { padding: 0 2rem; }
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.nav-logo {
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 700;
  color: #ffffff;
  transition: color 0.3s;
  cursor: pointer;
}
.navbar.scrolled .nav-logo {
  color: var(--brand);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}
@media (min-width: 768px) {
  .nav-links { display: flex; }
}

.nav-link {
  position: relative;
  font-size: 0.875rem;
  font-weight: 500;
  color: #ffffff;
  transition: color 0.2s;
  cursor: pointer;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #ffffff;
  transition: all 0.3s;
}
/* 顶部（透明导航、蓝底）：hover 保持白色 + 白色下划线 */
.nav-link:hover {
  color: #ffffff;
}
.nav-link:hover::after {
  width: 100%;
}
/* 滚动后（白底导航）：字体深色，hover 变蓝色 + 蓝色下划线 */
.navbar.scrolled .nav-link {
  color: var(--ink);
}
.navbar.scrolled .nav-link::after {
  background: var(--brand);
}
.navbar.scrolled .nav-link:hover {
  color: var(--brand);
}

.nav-btn {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.375rem;
  border-width: 1px;
  border-style: solid;
  color: #ffffff;
  border-color: #ffffff;
  transition: all 0.3s;
}
.nav-btn:hover {
  background: #fff;
  color: var(--brand);
}
.navbar.scrolled .nav-btn {
  border-color: var(--brand);
  color: var(--brand);
}
.navbar.scrolled .nav-btn:hover {
  background: var(--brand);
  color: #fff;
}

.nav-toggle {
  display: block;
  padding: 0.5rem;
  color: #ffffff;
  transition: color 0.3s;
}
@media (min-width: 768px) {
  .nav-toggle { display: none; }
}
.navbar.scrolled .nav-toggle {
  color: var(--ink);
}

/* 移动端菜单 */
.mobile-menu {
  background: #fff;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  border-top-width: 1px;
  border-top-style: solid;
  border-color: #e5e7eb;
}
@media (min-width: 768px) {
  .mobile-menu { display: none !important; }
}

.mobile-menu-inner {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-link {
  display: block;
  color: var(--ink);
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color 0.2s;
  cursor: pointer;
}
.mobile-link:hover {
  color: var(--brand);
}

.mobile-btn {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 0.375rem;
  border-width: 1px;
  border-style: solid;
  border-color: var(--brand);
  color: var(--brand);
  transition: all 0.3s;
}
.mobile-btn:hover {
  background: var(--brand);
  color: #fff;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #0D47A1 0%, #1A6FEF 50%, #0D47A1 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
}
.hero-glow-1 {
  top: 25%;
  right: 25%;
  width: 24rem;
  height: 24rem;
  opacity: 0.2;
  background: radial-gradient(circle, #00E5FF 0%, transparent 70%);
}
.hero-glow-2 {
  bottom: 33.333333%;
  left: 16.666667%;
  width: 16rem;
  height: 16rem;
  opacity: 0.15;
  background: radial-gradient(circle, #1A6FEF 0%, transparent 70%);
}
.hero-glow-3 {
  top: 50%;
  right: 33.333333%;
  width: 12rem;
  height: 12rem;
  opacity: 0.1;
  filter: blur(40px);
  background: radial-gradient(circle, #00E5FF 0%, transparent 70%);
}
@media (max-width: 640px) {
  .hero-glow-1 { width: 14rem; height: 14rem; }
  .hero-glow-2 { width: 10rem; height: 10rem; }
  .hero-glow-3 { width: 8rem; height: 8rem; }
}

.hero-dot {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand-accent);
  opacity: 0.4;
  animation: float 3s ease-in-out infinite;
}

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

.hero-content {
  position: relative;
  z-index: 10;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
  width: 100%;
}
@media (min-width: 640px) {
  .hero-content { padding: 0 1.5rem; }
}
@media (min-width: 1024px) {
  .hero-content { padding: 0 2rem; }
}

.hero-text {
  max-width: 48rem;
}

.hero-title {
  font-size: 1.875rem;
  line-height: 1.25;
  font-weight: 700;
  color: #fff;
  transition: all 0.7s;
  transition-timing-function: ease;
}
@media (min-width: 640px) {
  .hero-title { font-size: 2.25rem; line-height: 2.5rem; }
}
@media (min-width: 1024px) {
  .hero-title { font-size: 3rem; line-height: 1; }
}

.hero-subtitle {
  margin-top: 1.5rem;
  font-size: 1rem;
  line-height: 1.5rem;
  color: #fff;
  opacity: 0.7;
  transition: all 0.7s;
}
@media (min-width: 640px) {
  .hero-subtitle { font-size: 1.125rem; line-height: 1.75rem; }
}
@media (min-width: 1024px) {
  .hero-subtitle { font-size: 1.25rem; line-height: 1.75rem; }
}

.hero-desc {
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: #fff;
  opacity: 0.6;
  transition: all 0.7s;
}
@media (min-width: 640px) {
  .hero-desc { font-size: 1rem; line-height: 1.5rem; }
}

.hero-cta {
  margin-top: 2.5rem;
  transition: all 0.7s;
}

.hero-btn {
  padding: 0.75rem 2rem;
  background: #fff;
  color: var(--brand);
  font-weight: 500;
  border-radius: 0.375rem;
  transition: all 0.3s;
}
.hero-btn:hover {
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  transform: translateY(-2px);
}

/* 入场动画（JS 控制） */
.anim-item {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 0.7s, transform 0.7s;
  transition-timing-function: ease;
}
.anim-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   关于我们
   ============================================ */
.about {
  padding: 5rem 0;
  background: #fff;
}
@media (min-width: 1024px) {
  .about { padding: 6rem 0; }
}

.section-title {
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 700;
  color: var(--ink);
  text-align: center;
}
@media (min-width: 1024px) {
  .section-title { font-size: 1.875rem; line-height: 2.25rem; }
}

.about-text {
  margin: 2rem auto 0;
  max-width: 48rem;
}
.about-text p {
  font-size: 1rem;
  line-height: 1.625;
  color: var(--ink-muted);
  text-align: center;
}

.stats {
  margin: 3rem auto 0;
  max-width: 48rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem;
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  transition: box-shadow 0.3s;
}
.stat-card:hover {
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

.stat-value {
  font-size: 2.25rem;
  line-height: 2.5rem;
  font-weight: 700;
  color: var(--brand);
}

.stat-label {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.25rem;
  color: var(--ink-muted);
}

/* 滚动入场动画 */
.scroll-anim,
.scroll-anim-title,
.scroll-card {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 0.7s, transform 0.7s;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.scroll-anim.visible,
.scroll-anim-title.visible,
.scroll-card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   核心服务
   ============================================ */
.services {
  padding: 5rem 0;
  background-color: #F5F9FF;
}
@media (min-width: 1024px) {
  .services { padding: 6rem 0; }
}

.services-grid {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .services-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .services-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.service-card {
  background: #fff;
  border-radius: 0.5rem;
  padding: 2rem;
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  transition: all 0.3s;
  cursor: default;
  text-align: center;
}
.service-card:hover {
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  transform: translateY(-0.5rem);
}

.service-icon {
  width: 4.5rem;
  height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  border-radius: 0.75rem;
  background: var(--brand-light);
  transition: background 0.3s;
  color: var(--brand);
}
.service-icon svg {
  width: 2.25rem;
  height: 2.25rem;
  transition: color 0.3s;
}
.service-card:hover .service-icon {
  background: var(--brand);
  color: #fff;
}

.service-title {
  margin-top: 1.25rem;
  font-size: 1.125rem;
  line-height: 1.75rem;
  font-weight: 600;
  color: var(--ink);
}

.service-desc {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.625;
  color: var(--ink-muted);
}

/* ============================================
   项目资源库
   ============================================ */
.resources {
  position: relative;
  padding: 5rem 0;
  overflow: hidden;
  background: linear-gradient(135deg, #0D47A1 0%, #1A6FEF 100%);
}
@media (min-width: 1024px) {
  .resources { padding: 6rem 0; }
}

.resources-grid-bg {
  position: absolute;
  inset: 0;
  opacity: 0.1;
}
.resources-grid {
  width: 100%;
  height: 100%;
}

.resources-inner {
  position: relative;
  z-index: 10;
  max-width: 48rem;
  margin: 0 auto;
  padding: 0 1rem;
  text-align: center;
}
@media (min-width: 640px) {
  .resources-inner { padding: 0 1.5rem; }
}
@media (min-width: 1024px) {
  .resources-inner { padding: 0 2rem; }
}

.resources-title {
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 700;
  color: #fff;
}
@media (min-width: 1024px) {
  .resources-title { font-size: 1.875rem; line-height: 2.25rem; }
}

.resources-desc {
  margin-top: 1.5rem;
  font-size: 1rem;
  line-height: 1.625;
  color: #fff;
  opacity: 0.8;
}

.resources-cta {
  margin-top: 2.5rem;
}

.resources-btn {
  position: relative;
  display: inline-block;
  padding: 1rem 2.75rem;
  background: #fff;
  color: var(--brand);
  font-weight: 600;
  border-radius: 9999px;
  box-shadow: 0 4px 14px rgba(0, 229, 255, 0.3);
  border: 1px solid transparent;
  transition: all 0.3s;
  overflow: hidden;
  cursor: pointer;
}
.resources-btn::before,
.resources-btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--brand);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
}
.resources-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.15), 0 10px 10px -5px rgb(0 0 0 / 0.06);
  transform: translateY(-3px);
}
/* 文字浮在涟漪之上 */
.resources-btn > * {
  position: relative;
  z-index: 2;
}
.resources-btn:hover::before {
  opacity: 1;
  animation: resource-ripple 1.2s ease-out infinite;
}
.resources-btn:hover::after {
  opacity: 1;
  animation: resource-ripple 1.2s ease-out infinite 0.5s;
}
@keyframes resource-ripple {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0.65;
  }
  70% {
    opacity: 0.3;
  }
  100% {
    transform: translate(-50%, -50%) scale(12);
    opacity: 0;
  }
}

/* ============================================
   页脚
   ============================================ */
.footer {
  padding: 2rem 0 1.5rem;
  background-color: #0D1B2A;
}

.footer-center {
  text-align: center;
}

.footer-title {
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 700;
  color: #fff;
}

/* 灰色分隔线在联系方式上方 */
.footer-contact {
  margin-top: 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 2.5rem;
}
@media (max-width: 640px) {
  .footer-contact { flex-direction: column; gap: 0.75rem; }
}

.footer-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #fff;
  opacity: 0.7;
}
.footer-item svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}
.footer-item span {
  font-size: 0.875rem;
}

/* 备案 + 版权合并一行 */
.footer-bottom {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
}
.footer-bottom a {
  font-size: 0.8125rem;
  color: #fff;
  opacity: 0.5;
  transition: opacity 0.2s;
}
.footer-bottom a:hover {
  opacity: 0.9;
}
.bq{
  margin-top:1rem;
  font-size: 0.8125rem;
  color: #fff;
  opacity: 0.5;
  transition: opacity 0.2s;
}
/* 公安备案：国徽徽章 + 文字对齐 */
.beian-ga {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.beian-ga .beian-badge {
  width: 15px;
  height: 17px;
  flex-shrink: 0;
  opacity: 0.9;
}
/* 仅外层版权文字生效，避免年份嵌套 span 二次叠加 opacity */
.footer-bottom > span {
  font-size: 0.8125rem;
  color: #fff;
  opacity: 0.5;
}
.footer-bottom > span #footer-year {
  opacity: 1;
}

/* ---------- 减少动画偏好 ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-dot { animation: none; }
  .resources-btn:hover::before,
  .resources-btn:hover::after { animation: none; opacity: 0; }
  .anim-item, .scroll-anim, .scroll-anim-title, .scroll-card { transition: none; }
  html { scroll-behavior: auto; }
}
