/* 全局变量 & 通用 */
:root {
  --primary: #ff5e00;
  --dark: #1a1a1a;
  --gray: #f5f5f5;
  --radius: 4px;
  --max-width: 1200px;
  --font: "PingFang SC", "Microsoft YaHei", sans-serif;
}

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

body {
  font-family: var(--font);
  color: #222;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

ul {
  list-style: none;
}

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

section {
  padding: 80px 12px;
}

.container {
  max-width: var(--max-width);
  margin: auto;
}

.sectionTitle {
  text-align: center;
  margin-bottom: 40px;
  font-size: 1.8rem;
  position: relative;
}

.sectionTitle::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  height: 3px;
  width: 50px;
  background: var(--primary);
  transform: translateX(-50%);
}

/* 导航 */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--dark);
  z-index: 99;
}

#nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}

#logo {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
}

#navList {
  display: flex;
  gap: 24px;
}

#navList a {
  color: #fff;
  font-size: .95rem;
  transition: .3s;
}

#navList a:hover {
  color: var(--primary);
}

#hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

#hamburger span {
  width: 26px;
  height: 3px;
  background: #fff;
}

/* Hero */
#hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.heroSlide {
  position: absolute;
  inset: 0;
  background: center/cover no-repeat;
  opacity: 0;
  transition: 1s;
}

.heroSlide.active {
  opacity: 1;
}

#heroCaption {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
}

#heroTitle {
  font-size: 2.8rem;
  margin-bottom: .5em;
}

.btnPrimary {
  background: var(--primary);
  color: #fff;
  padding: .7em 1.8em;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1rem;
}

/* 服务特色 */
#features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.featureIcon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 30px;
}

.featureName {
  margin: 10px 0;
  font-size: 1.1rem;
  font-weight: 700;
}

/* 设备/案例 卡片 */
.grid {
  display: grid;
  gap: 20px;
}

.grid.col4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid.col3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
  transition: .3s;
}

.card:hover {
  transform: translateY(-6px);
}

.cardBody {
  padding: 15px;
  text-align: center;
}

.bgLight {
  background: var(--gray);
}

/* 评价轮播 */
#reviewWrapper {
  position: relative;
  max-width: 700px;
  margin: auto;
  overflow: hidden;
  text-align: center;
}

.reviewSlide {
  display: none;
}

.reviewSlide.active {
  display: block;
}

.arrowBtn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, .5);
  color: #fff;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 20px;
}

#prev {
  left: 0;
}

#next {
  right: 0;
}

/* 页脚 */
#footer {
  background: var(--dark);
  color: #aaa;
  padding: 60px 20px 30px;
}

#footerGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

#footerGrid h6 {
  margin-bottom: 12px;
  color: #fff;
}

#footerGrid input {
  width: 100%;
  padding: 8px;
  border: none;
  border-radius: var(--radius);
  margin-bottom: 8px;
}

#footerGrid button {
  width: 100%;
  padding: 8px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
}

#copy {
  text-align: center;
  margin-top: 30px;
  font-size: .85rem;
  color: #666;
}

/* 响应式 */
@media screen and (max-width: 767px) {
  #navList {
    position: absolute;
    top: 60px;
    right: 20px;
    background: var(--dark);
    flex-direction: column;
    padding: 10px 20px;
    border-radius: var(--radius);
    display: none;
  }
  
  #navList.show {
    display: flex;
  }
  
  #hamburger {
    display: flex;
  }
  
  #heroTitle {
    font-size: 2rem;
  }
  
  #features,
  .grid.col4,
  .grid.col3,
  #footerGrid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  #navList {
    position: absolute;
    top: 60px;
    right: 20px;
    background: var(--dark);
    flex-direction: column;
    padding: 10px 20px;
    border-radius: var(--radius);
    display: none;
  }
  
  #navList.show {
    display: flex;
  }
  
  #hamburger {
    display: flex;
  }
  
  #heroTitle {
    font-size: 2rem;
  }
  
  #features,
  .grid.col4,
  .grid.col3,
  #footerGrid {
    grid-template-columns: 1fr;
  }
}