/* ================= 全局重置与基础样式 ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Microsoft YaHei", Arial, sans-serif;
  background-color: #060e17;
  color: #eaf2f8;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ================= 通用容器与区块 ================= */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
}

/* ================= 字体样式 ================= */
h1 {
  font-size: 48px;
  line-height: 1.3;
  margin-bottom: 15px;
}

h2 {
  font-size: 32px;
  margin-bottom: 30px;
  text-align: center;
}

h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #fff;
}

h4 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #fff;
}

p {
  color: #9fb3c8;
  font-size: 16px;
}

/* ================= 按钮样式 ================= */
.btn {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(135deg, #00c6ff, #0072ff);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 114, 255, 0.3);
}

/* ================= 首屏Banner ================= */
.hero {
  background: radial-gradient(circle at 70% 30%, rgba(0, 180, 255, 0.15), transparent 60%), #060e17;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-left {
  width: 50%;
}

.hero-right {
  width: 45%;
}

.hero img {
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* ================= 产品卡片网格 ================= */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.card {
  background-color: #0c1a28;
  padding: 25px;
  border-radius: 10px;
  transition: all 0.3s ease;
  text-align: center;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0, 150, 255, 0.2);
}

.card img {
  border-radius: 6px;
  margin-bottom: 15px;
  height: 200px;
  object-fit: cover;
}

/* ================= 产品分类 ================= */
.category {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.category div {
  background-color: #0c1a28;
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
}

.category div:hover {
  background-color: #122233;
}

/* ================= 结构展示 ================= */
.structure {
  display: flex;
  gap: 40px;
  align-items: center;
}

.structure img {
  width: 50%;
  border-radius: 10px;
}

.structure ul li {
  margin-bottom: 12px;
  color: #c6d4e1;
  font-size: 16px;
  padding-left: 20px;
  position: relative;
}

.structure ul li::before {
  content: "•";
  color: #00c6ff;
  position: absolute;
  left: 0;
  font-weight: bold;
}

/* ================= 性能参数 ================= */
.params {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.param {
  background-color: #0c1a28;
  padding: 25px;
  text-align: center;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.param:hover {
  transform: translateY(-3px);
}

.param h3 {
  font-size: 28px;
  color: #00c6ff;
  margin-bottom: 5px;
}

/* ================= 表单样式 ================= */
form {
  max-width: 600px;
  margin: 0 auto;
}

form input,
form textarea {
  width: 100%;
  padding: 14px;
  margin-bottom: 12px;
  background-color: #0c1a28;
  border: 1px solid #122233;
  border-radius: 4px;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  transition: border-color 0.3s ease;
}

form input:focus,
form textarea:focus {
  outline: none;
  border-color: #00c6ff;
}

form textarea {
  resize: vertical;
  min-height: 120px;
}

form .btn {
  width: 100%;
  padding: 14px;
  font-size: 18px;
}

/* ================= 页脚样式 ================= */
footer {
  background-color: #050b12;
  border-top: 1px solid #122233;
  padding: 60px 0 80px;
  color: #9fb3c8;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-info h3 {
  margin-bottom: 15px;
}

.footer-links p {
  margin-bottom: 8px;
}

.footer-links a:hover {
  color: #00c6ff;
}

.footer-qr {
  text-align: center;
}

.footer-qr img {
  width: 120px;
  height: 120px;
  border-radius: 6px;
  margin: 0 auto 10px;
}

.footer-qr p {
  font-size: 12px;
}

.copyright {
  border-top: 1px solid #122233;
  padding-top: 20px;
  text-align: center;
  font-size: 12px;
}

/* ================= 手机底部悬浮栏 ================= */
.mobile-bar {
  display: none;
}

/* ================= 响应式适配 ================= */
/* 平板设备 */
@media (max-width: 992px) {
  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 28px;
  }

  .grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .category {
    grid-template-columns: repeat(2, 1fr);
  }

  .params {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* 手机设备 */
@media (max-width: 768px) {
  .section {
    padding: 50px 0;
  }

  h1 {
    font-size: 30px;
  }

  h2 {
    font-size: 24px;
  }

  .hero {
    min-height: auto;
    padding-top: 60px;
  }

  .hero-wrap {
    flex-direction: column;
    text-align: center;
  }

  .hero-left,
  .hero-right {
    width: 100%;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .category {
    grid-template-columns: 1fr;
  }

  .params {
    grid-template-columns: 1fr;
  }

  .structure {
    flex-direction: column;
  }

  .structure img {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-qr img {
    margin: 0 auto 10px;
  }

  /* 手机底部悬浮栏 */
  .mobile-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background-color: #0c1a28;
    border-top: 1px solid #122233;
  }

  .mobile-bar a {
    flex: 1;
    text-align: center;
    padding: 12px 0;
    color: #cfe6ff;
    text-decoration: none;
    font-size: 13px;
  }

  .mobile-bar a:nth-child(2) {
    background-color: #00c6ff;
    color: #fff;
  }
}