/* ===== 基础重置 ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-tap-highlight-color: transparent; }
html, body { min-height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
               "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-user-select: none;
  user-select: none;
  color: #f8fafc;
  background-color: #0b1120;
  overflow-x: hidden;
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }

/* ===== 渐变文字 ===== */
.gradient-text {
  background: linear-gradient(135deg, #0EA5E9, #A855F7, #FF8C42);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ===== 导航栏 ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .3s, box-shadow .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11, 17, 32, .92);
  backdrop-filter: blur(10px);
  border-bottom-color: rgba(148, 163, 184, .15);
  box-shadow: 0 4px 20px rgba(0, 0, 0, .3);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo-text { font-size: 1.35rem; font-weight: 700; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-link { color: rgba(248, 250, 252, .8); font-weight: 500; transition: color .2s; }
.nav-link:hover { color: #0EA5E9; }

.menu-btn {
  display: none; width: 44px; height: 44px; border: none; background: transparent;
  cursor: pointer; position: relative;
}
.menu-icon, .menu-icon::before, .menu-icon::after {
  content: ""; display: block; width: 24px; height: 2px; background: #f8fafc;
  border-radius: 2px; transition: transform .3s, opacity .3s; margin: 0 auto;
}
.menu-icon::before { transform: translateY(-7px); }
.menu-icon::after { transform: translateY(5px); }
.menu-btn.open .menu-icon { background: transparent; }
.menu-btn.open .menu-icon::before { transform: rotate(45deg); }
.menu-btn.open .menu-icon::after { transform: translateY(-2px) rotate(-45deg); }

/* ===== Banner 第一屏轮播 ===== */
.banner {
  background: radial-gradient(ellipse at top, #1e293b, #0f172a, #020617);
  padding: 80px 0 8px; position: relative; overflow: hidden;
}
.banner-frame {
  position: relative; width: 100%; max-width: 1024px; margin: 0 auto;
  border-radius: 1rem; overflow: hidden; border: 1px solid rgba(14, 165, 233, .2);
  box-shadow: 0 25px 60px rgba(14, 165, 233, .2);
  aspect-ratio: 1536 / 688; user-select: none;
}
.banner-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity .7s ease-in-out;
}
.banner-img.active { opacity: 1; }
.banner-arrow {
  display: none; position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(0, 0, 0, .4); color: #fff; cursor: pointer; padding: 0;
  align-items: center; justify-content: center; backdrop-filter: blur(4px); transition: background .2s;
}
.banner-arrow:hover { background: rgba(0, 0, 0, .6); }
.banner-arrow svg { width: 24px; height: 24px; }
.banner-arrow-prev { left: 16px; }
.banner-arrow-next { right: 16px; }
.banner-dots {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px;
}
.banner-dot {
  width: 8px; height: 8px; border-radius: 999px; border: none; cursor: pointer;
  background: rgba(255, 255, 255, .6); transition: all .3s; padding: 0;
}
.banner-dot.active { width: 28px; background: #0EA5E9; }
@media (min-width: 768px) {
  .banner { padding: 96px 0 12px; }
  .banner-arrow { display: flex; }
}

/* ===== 首屏 ===== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  background: radial-gradient(ellipse at top, #1e293b, #0f172a, #020617);
  padding: 120px 0 80px;
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .35; z-index: 0; }
.hero-glow-1 { top: 15%; left: 8%; width: 280px; height: 280px; background: #0EA5E9; animation: pulse 5s ease-in-out infinite; }
.hero-glow-2 { top: 35%; right: 12%; width: 320px; height: 320px; background: #A855F7; animation: pulse 5s ease-in-out 1s infinite; }
.hero-glow-3 { bottom: 12%; right: 20%; width: 360px; height: 360px; background: #FF8C42; animation: pulse 5s ease-in-out 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: .25; } 50% { opacity: .45; } }

.hero-content { position: relative; z-index: 1; text-align: center; max-width: 880px; }
.hero-title { font-size: 2.6rem; font-weight: 800; line-height: 1.2; }
.hero-subtitle { font-size: 1.1rem; color: #94a3b8; margin: 1.5rem auto 0; max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2rem; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2.5rem; }
.tag {
  padding: .5rem 1rem; border-radius: 999px; font-size: .9rem;
  background: rgba(30, 41, 59, .6); border: 1px solid rgba(14, 165, 233, .25);
}

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 2rem; border-radius: .65rem; font-weight: 600; font-size: 1rem;
  transition: transform .2s, background .2s, border-color .2s;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  color: #06212b; background: linear-gradient(135deg, #0EA5E9, #38BDF8);
  box-shadow: 0 8px 24px rgba(14, 165, 233, .35);
}
.btn-primary:hover { box-shadow: 0 10px 30px rgba(14, 165, 233, .5); }
.btn-outline {
  color: #e2e8f0; border: 1px solid rgba(14, 165, 233, .4); background: rgba(14, 165, 233, .08);
}
.btn-outline:hover { background: rgba(14, 165, 233, .18); border-color: #0EA5E9; }

/* ===== 通用区块 ===== */
.section { padding: 96px 0; position: relative; }
.section-alt { background: radial-gradient(ellipse at top, #141d33, #0b1120); }
.section-head { text-align: center; margin-bottom: 3rem; }
.section-title { font-size: 2.2rem; font-weight: 800; }
.section-desc { color: #94a3b8; margin-top: .75rem; font-size: 1.05rem; }

/* ===== 网格 ===== */
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }

/* ===== 科技卡片 ===== */
.tech-card {
  position: relative; background: rgba(23, 28, 38, .8);
  border: 1px solid rgba(14, 165, 233, .2); border-radius: 1rem;
  overflow: hidden; transition: transform .3s, border-color .3s, box-shadow .3s;
}
.tech-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(14,165,233,.12), rgba(168,85,247,.1), rgba(255,140,66,.08));
  opacity: 0; transition: opacity .3s;
}
.tech-card:hover { transform: translateY(-4px); border-color: rgba(14, 165, 233, .5); box-shadow: 0 16px 40px rgba(14, 165, 233, .12); }
.tech-card:hover::before { opacity: 1; }

.service-card, .case-card { padding: 2rem; }
.service-card > *, .case-card > * { position: relative; z-index: 1; }
.service-card h3, .case-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: .75rem; }
.card-desc { color: #94a3b8; font-size: .95rem; margin-bottom: 1rem; }

.icon-box {
  width: 60px; height: 60px; border-radius: .9rem; display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
}
.icon-box svg { width: 30px; height: 30px; }
.icon-primary { background: rgba(14, 165, 233, .12); color: #38BDF8; }
.icon-secondary { background: rgba(255, 140, 66, .12); color: #FFB366; }

.feature-list li {
  font-size: .95rem; color: rgba(226, 232, 240, .85); padding: .25rem 0;
}
.feature-list li::before { content: "▸"; color: #0EA5E9; margin-right: .5rem; }

.case-icon {
  width: 100%; height: 170px; border-radius: .75rem; margin-bottom: 1.25rem;
  background: linear-gradient(135deg, rgba(14,165,233,.12), rgba(168,85,247,.12), rgba(255,140,66,.1));
  display: flex; align-items: center; justify-content: center; color: #38BDF8;
}
.case-icon svg { width: 64px; height: 64px; }
.case-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.case-tags span {
  padding: .25rem .7rem; font-size: .8rem; border-radius: 999px;
  background: rgba(14, 165, 233, .1); color: #38BDF8; border: 1px solid rgba(14, 165, 233, .25);
}

/* ===== 联系我们 ===== */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: stretch; }
.wechat-card { padding: 2rem; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.wechat-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: .5rem; }
.qrcode-img {
  width: 176px; height: 176px; border-radius: .75rem; background: #fff; padding: 8px; object-fit: contain;
}
.qrcode-tip { color: #94a3b8; font-size: .85rem; margin-top: .75rem; }

.contact-side { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item {
  display: flex; align-items: center; gap: 1rem; padding: 1.5rem 2rem; flex: 1;
}
.contact-item .icon-box { margin-bottom: 0; flex-shrink: 0; }
.contact-item-text { min-width: 0; }
.contact-item-text h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: .25rem; }
.contact-item-text p { color: #94a3b8; font-size: 1rem; word-break: break-all; }

.cta-card { padding: 3rem 2rem; text-align: center; margin-top: 3rem; }
.cta-card h3 { font-size: 1.6rem; font-weight: 800; }
.cta-card p { color: #94a3b8; margin: 1rem auto 0; max-width: 560px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 1.5rem; }

.service-targets { text-align: center; margin-top: 3rem; }
.service-targets > p { color: #94a3b8; margin-bottom: 1.25rem; }
.target-tags { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.target-tags span {
  padding: .75rem 1.5rem; border-radius: .6rem; background: rgba(30, 41, 59, .6);
  border: 1px solid rgba(14, 165, 233, .2); font-weight: 500;
}

/* ===== 页脚 ===== */
.footer { background: #0e1525; border-top: 1px solid rgba(148, 163, 184, .15); padding: 3rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-col h4 { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; }
.footer-col ul li { color: #94a3b8; font-size: .9rem; padding: .3rem 0; }
.footer-desc { color: #94a3b8; font-size: .9rem; margin-top: 1rem; max-width: 320px; }
.footer-copy { text-align: center; color: #64748b; font-size: .85rem; padding-top: 1.5rem; border-top: 1px solid rgba(148, 163, 184, .15); }

/* ===== 响应式：平板及以上 ===== */
@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr 1.2fr; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .hero-title { font-size: 4rem; }
  .section-title { font-size: 2.8rem; }
}

/* ===== 移动端菜单 ===== */
@media (max-width: 767px) {
  .menu-btn { display: block; }
  .nav-links {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(11, 17, 32, .98); backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(148, 163, 184, .15);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .nav-links.open { max-height: 320px; }
  .nav-link { padding: 1rem 1.25rem; border-top: 1px solid rgba(148, 163, 184, .1); }
}
