
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background-color: #0b162a;
  color: #e5e7eb;
  line-height: 1.6;
}

/* ---------- 导航栏（永不竖排） ---------- */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 3rem;
  background-color: #07102a;
  position: sticky;
  top: 0;
  z-index: 999;
}

.logo {
  font-size: 1.6rem; 
  font-weight: 700;
  letter-spacing: 2px;
  color: #ffffff;
  white-space: nowrap;
}

nav {
  display: flex;
  align-items: center;
  flex-wrap: nowrap; /* 禁止换行 */
}

nav a {
  color: #cbd5e1;
  margin-right: 1.8rem;
  text-decoration: none;
  font-size: 1rem;
  white-space: nowrap;
}

nav button {
  background: transparent;
  border: 1px solid #3b82f6;
  color: #3b82f6;
  padding: 0.35rem 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  font-size: 0.9rem;
}

/* ---------- Hero Banner（全屏背景 · 内容上浮） ---------- */
/* ---------- Hero Banner（强制压缩高度） ---------- */
/* ---------- Hero Banner（桌面端 · 强制压扁） ---------- */
.hero {
  height: 46vh;      
  max-height: 46vh;
  padding-top: 8vh;


  background:
    linear-gradient(
      135deg,
      rgba(5, 10, 22, 0.94),
      rgba(11, 22, 42, 0.88)
    ),
    url('../images/banner.jpg') center/cover no-repeat;

  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  text-align: center;      
  overflow: hidden;         
}
/* ---------- 主口号（最大最醒目） ---------- */
.hero-text h1 {
  font-size: 5.5rem;         
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: 1px;
  text-shadow:
    0 2px 14px rgba(0, 0, 0, 0.9),
    0 0 40px rgba(37, 99, 235, 0.3);
}

.positioning {
  margin-top: 1.2rem;
  font-size: 2.8rem;
  color: #60a5fa;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.7);
}

.sub {
  margin-top: 0.8rem;
  font-size: 1.5rem;
  color: #cbd5e1;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}

/* ---------- About 正文 ---------- */
.about-text {
  font-size: 1.25rem;
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto 2rem;
}

/* ---------- 六大能力 ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.features li {
  list-style: none;
  background: #0f1a33;
  padding: 1.2rem;
  font-size: 1.15rem;
  font-weight: 600;
  border-left: 4px solid #3b82f6;
}

/* ---------- 通用 Section ---------- */
.section {
  padding: 5rem 6rem;
}

.dark {
  background-color: #07102a;
}

.center {
  text-align: center;
}

/* ---------- Products ---------- */
/* ---------- Products ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.product-card {
  background: #0f1a33;
  padding: 0;
  overflow: hidden;
}

.product-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center;
  background: #1e293b;
  display: block;
}

.product-card h3 {
  padding: 1rem;
}


/* ---------- Contact Form ---------- */
form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  max-width: 600px;
  margin: 2rem auto 0;
}

input,
textarea {
  padding: 1rem;
  font-size: 1rem;
  background: #1e293b;
  border: none;
  color: white;
}

textarea {
  min-height: 160px;
  resize: vertical;
}

button {
  background: #2563eb;
  color: white;
  padding: 1rem;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

/* ---------- WhatsApp 悬浮 ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  color: white;
  padding: 0.6rem 1rem;
  border-radius: 30px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* ---------- 双语控制 ---------- */
.lang-zh {
  display: none;
  font-family: "PingFang TC", "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}

.lang-en {
  display: block;
}

/* ---------- 响应式（保护桌面布局） ---------- */
/* ===============================
   手机端适配（Mobile Responsive）
   风格：左对齐 / 工业留白
   =============================== */
/* ---------- 手机端 ---------- */
@media (max-width: 768px) {

  /* ---- Logo ---- */
  .logo {
    font-size: 1.3rem;
  }

  /* ---- 导航栏 ---- */
  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
  }

  .navbar nav {
    margin-top: 0.8rem;
    width: 100%;
    justify-content: flex-start;
  }

  .navbar nav a {
    margin-right: 1rem;
    font-size: 0.9rem;
  }

  /* ---- Hero ---- */
  .hero {
    padding: 0 1.5rem;
    height: auto;
    min-height: unset;
    justify-content: flex-start;
    text-align: left;
  }

  .hero-text {
    max-width: 100%;
  }

  .hero-text h1 {
    font-size: 2.6rem;
  }

  .positioning {
    font-size: 1.3rem;
  }

  .sub {
    font-size: 1rem;
  }

  /* ---- Section ---- */
  .section {
    padding: 3rem 1.5rem;
    text-align: left;
  }

  .center {
    text-align: left;
  }

  .about-text {
    padding: 0;
  }

  /* ---- 表单 ---- */
  form {
    width: 100%;
    padding: 0;
    margin-left: 0;
    margin-right: 0;
  }

  input,
  textarea {
    font-size: 1rem;
  }

  /* ---- 产品 ---- */
  .product-grid {
    grid-template-columns: 1fr;
  }

  /* ---- 六大能力 ---- */
  .features {
    grid-template-columns: 1fr;
  }

  /* ---------- 手机端语言切换 ---------- */
  .lang-zh {
    display: none;
  }

  .lang-en {
    display: block;
  }

  body.zh .lang-zh {
    display: block;
  }

  body.zh .lang-en {
    display: none;
  }
}


#products.section {
  padding-top: 0.5rem;
}