/* 全局基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Microsoft YaHei", sans-serif;
  transition: all 0.4s ease;
}

:root {
  --theme-color: #F4C2C2; /* 初始小猪粉 */
  --text-white: #ffffff;
  --dark: #333;
}

body {
  color: var(--dark);
  background: #fff;
}

.container {
  width: 1200px;
  margin: 0 auto;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  background: var(--theme-color);
  color: #fff;
  border-radius: 50px;
  font-size: 16px;
  font-weight: bold;
  border: none;
  cursor: pointer;
}

.btn:hover {
  opacity: 0.9;
  transform: scale(1.03);
}

/* 头部导航 */
.header {
  height: 80px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 999;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  font-weight: bold;
  color: var(--theme-color);
}

.nav-menu {
  display: flex;
  gap: 30px;
  font-size: 16px;
}

.nav-menu a.active {
  color: var(--theme-color);
  font-weight: bold;
}

/* 轮播图 */
.banner {
  height: 500px;
  position: relative;
  overflow: hidden;
}

.banner-item {
  position: absolute;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.banner-item.active {
  opacity: 1;
}

.banner-text {
  width: 1200px;
  margin: 0 auto;
  color: var(--text-white);
}

.banner-text h2 {
  font-size: 42px;
  margin-bottom: 15px;
}

.banner-text p {
  font-size: 18px;
  max-width: 600px;
  line-height: 1.6;
}

/* 首页内容 */
.home-main {
  padding: 60px 0;
  text-align: center;
}

.home-main h1 {
  font-size: 36px;
  margin-bottom: 15px;
  color: var(--theme-color);
}

.home-main .desc {
  font-size: 18px;
  margin-bottom: 40px;
}

.template-box {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 20px;
  margin: 40px 0;
}

.template-item {
  height: 160px;
  background: #f5f5f5;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: bold;
  color: #666;
}

/* 下载页 */
.download-main {
  padding: 60px 0;
}

.download-top {
  text-align: center;
  margin-bottom: 50px;
}

.download-top h1 {
  font-size: 36px;
  color: var(--theme-color);
  margin-bottom: 10px;
}

.download-btns {
  display: flex;
  justify-content: center;
  gap: 30px;
  margin: 40px 0;
}

.download-btn {
  width: 180px;
  height: 180px;
  border-radius: 15px;
  background: #f8f8f8;
  display: grid;
  place-items: center;
  text-align: center;
  font-weight: bold;
}

.article-list {
  margin-top: 60px;
}

.article-list h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 30px;
  color: var(--theme-color);
}

.article-item {
  padding: 20px;
  background: #f9f9f9;
  border-radius: 10px;
  margin-bottom: 15px;
}

.article-item h3 {
  color: var(--theme-color);
  margin-bottom: 8px;
}

/* 404页 */
.page-404 {
  height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
}

.page-404 h1 {
  font-size: 120px;
  color: var(--theme-color);
}

.page-404 p {
  font-size: 20px;
  margin: 20px 0;
}

/* 底部 */
.footer {
  background: #2a2a2a;
  color: #fff;
  padding: 50px 0 20px;
  margin-top: 60px;
}

.footer-wrap {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
}

.footer-col h3 {
  margin-bottom: 15px;
  color: var(--theme-color);
}

.footer-col li {
  margin-bottom: 8px;
  font-size: 14px;
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #444;
  font-size: 14px;
}