* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  background: #f0f2f5;
  color: #333;
}
a { text-decoration: none; color: inherit; }

.header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 20px;
}
.logo {
  font-size: 22px;
  font-weight: 700;
  color: #2b6cff;
  margin-right: 40px;
  white-space: nowrap;
}
.nav { display: flex; gap: 28px; font-size: 15px; color: #555; }
.nav a:hover, .nav a.active { color: #2b6cff; }
.search {
  margin-left: auto;
  display: flex;
  background: #f5f6f8;
  border-radius: 20px;
  overflow: hidden;
}
.search input {
  border: none;
  background: transparent;
  padding: 8px 16px;
  outline: none;
  width: 160px;
  font-size: 14px;
}
.search button {
  border: none;
  background: #2b6cff;
  color: #fff;
  padding: 8px 18px;
  cursor: pointer;
  font-size: 14px;
}

.banner {
  max-width: 1200px;
  margin: 20px auto 0;
  height: 220px;
  border-radius: 12px;
  background: linear-gradient(135deg, #2b6cff, #6a9cff);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  letter-spacing: 1px;
}
.banner h2 { font-size: 30px; margin-bottom: 12px; }
.banner p { font-size: 15px; opacity: .9; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 20px;
}

.cate-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 18px;
  padding-left: 10px;
  border-left: 4px solid #2b6cff;
}

.cate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 40px;
}
.cate-item {
  background: #fff;
  border-radius: 10px;
  padding: 24px 16px;
  text-align: center;
  font-size: 15px;
  color: #444;
  transition: all .2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.cate-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(43,108,255,0.15);
  color: #2b6cff;
}

/* 资源卡片 */
.list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.list-item {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: all .2s;
  display: flex;
  flex-direction: column;
}
.list-item:hover { box-shadow: 0 6px 16px rgba(43,108,255,0.12); }
.list-item h3 { font-size: 16px; margin-bottom: 10px; color: #222; }
.list-item h3 a:hover { color: #2b6cff; }
.list-item p {
  font-size: 13px;
  color: #888;
  line-height: 1.8;
  margin-bottom: 14px;
  flex: 1;
}
.meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #aaa;
}
.tag {
  display: inline-block;
  font-size: 12px;
  color: #2b6cff;
  background: #eef3ff;
  padding: 2px 10px;
  border-radius: 10px;
}

/* 详情页 */
.detail {
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.detail h1 { font-size: 24px; color: #222; margin-bottom: 14px; }
.detail .detail-meta {
  font-size: 13px;
  color: #999;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #eee;
}
.detail .detail-body { font-size: 15px; line-height: 2; color: #555; }
.detail .detail-body p { margin-bottom: 16px; }
.detail .detail-body h3 { font-size: 17px; color: #222; margin: 24px 0 12px; }
.detail .detail-body ul { padding-left: 22px; margin-bottom: 16px; }
.detail .detail-body li { margin-bottom: 8px; }
.btn-line {
  display: inline-block;
  margin-top: 20px;
  padding: 10px 26px;
  background: #2b6cff;
  color: #fff;
  border-radius: 6px;
  font-size: 14px;
}

/* 文章 */
.article {
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  line-height: 2;
  font-size: 15px;
  color: #555;
}
.article h1 { font-size: 22px; color: #222; margin-bottom: 20px; }
.article p { margin-bottom: 16px; }

.footer {
  background: #1f2430;
  color: #9aa3b2;
  text-align: center;
  padding: 30px 20px;
  font-size: 13px;
  line-height: 2;
  margin-top: 40px;
}
.footer a { color: #9aa3b2; }
.footer a:hover { color: #fff; text-decoration: underline; }