/* 全局重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Microsoft YaHei", sans-serif;
  scroll-behavior: smooth;
}

/* 主题色 */
:root {
  --color-pink: #e79796;
  --color-yellow: #FFC988;
  --color-text: #333;
  --color-white: #fff;
}

body {
  color: var(--color-text);
  line-height: 1.6;
}

/* 导航栏 */
header {
  background: linear-gradient(90deg, var(--color-pink), var(--color-yellow));
  padding: 15px 30px;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  height: 40px;
}
.nav-title {
  font-size: 22px;
  font-weight: bold;
  color: #fff;
}
.nav-links a {
  color: #fff;
  text-decoration: none;
  margin-left: 25px;
  font-size: 16px;
  transition: 0.3s;
}
.nav-links a:hover {
  opacity: 0.8;
}

/* 容器 */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* 首页banner */
.banner {
  text-align: center;
  margin: 30px 0;
  position: relative;
}
.banner-img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}
.banner-text {
  margin-top: 20px;
}
.banner-text h1 {
  font-size: 30px;
  color: var(--color-pink);
  margin-bottom: 10px;
}
.banner-text p {
  font-size: 18px;
  max-width: 800px;
  margin: 0 auto;
}

/* 按钮 */
.btns {
  margin: 30px 0;
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.btn {
  padding: 14px 30px;
  border-radius: 50px;
  border: none;
  font-size: 16px;
  cursor: pointer;
  transition: 0.3s;
  text-decoration: none;
  color: #fff;
}
.btn-pink {
  background: var(--color-pink);
}
.btn-yellow {
  background: var(--color-yellow);
}
.btn:hover {
  transform: translateY(-3px);
  opacity: 0.9;
}

/* 数据统计 */
.data-box {
  display: flex;
  justify-content: center;
  gap: 50px;
  margin: 50px 0;
  text-align: center;
  flex-wrap: wrap;
}
.data-item h2 {
  color: var(--color-pink);
  font-size: 28px;
}
.data-item p {
  font-size: 16px;
  margin-top: 5px;
}

/* 模块标题 */
.section-title {
  text-align: center;
  font-size: 26px;
  color: var(--color-pink);
  margin: 40px 0 20px;
}

/* 功能卡片 */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin: 30px 0;
}
.card {
  background: #f9f9f9;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  transition: 0.3s;
  border-top: 4px solid var(--color-yellow);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.card h3 {
  color: var(--color-pink);
  margin: 15px 0;
}

/* 折叠文章 */
.article-item {
  margin: 15px 0;
  border: 1px solid #eee;
  border-radius: 8px;
  overflow: hidden;
}
.article-title {
  padding: 15px 20px;
  background: var(--color-yellow);
  color: #333;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.article-content {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.article-content.show {
  max-height: 500px;
  padding: 20px;
}

/* 安装步骤 */
.step-box {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 30px 0;
  flex-wrap: wrap;
}
.step {
  width: 200px;
  text-align: center;
}
.step-num {
  width: 50px;
  height: 50px;
  background: var(--color-pink);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 20px;
  font-weight: bold;
}

/* 底部 */
footer {
  background: #333;
  color: #fff;
  text-align: center;
  padding: 25px;
  margin-top: 50px;
}

/* 动画 */
.fade {
  animation: fade 0.8s ease forwards;
  opacity: 0;
}
@keyframes fade {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}