/* 全局初始化 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "微软雅黑", "Microsoft YaHei", sans-serif;
}
body {
  background-color: #ffffff;
  display: flex;
  min-height: 100vh;
}

/* ========== 左侧侧边栏（固定宽度） ========== */

/* ========== 右侧主内容区（核心宽度1024px） ========== */
.main-content {
  flex: 1;
  margin-left: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 20px;
}
/* 顶部操作栏 */
.top-bar {
  width: 1024px;
  height: 60px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 30px;
}
.subscribe-btn {
  background-color: #ff9500;
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 6px 12px;
  margin-right: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}
.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: url("https://via.placeholder.com/32") center/cover no-repeat;
  cursor: pointer;
}

/* ========== 法律护航核心模块（1024px宽） ========== */
.legal-protect {
  width: 1024px;
}
/* 模块标题 */
.module-title {
  font-size: 24px;
  font-weight: bold;
  color: #000;
  margin-bottom: 20px;
}
/* 标签切换栏（法律知识库/工具包） */
.tab-switch {
  display: flex;
  gap: 30px;
  margin-bottom: 15px;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}
.tab-item {
  font-size: 16px;
  cursor: pointer;
  padding-bottom: 8px;
}
.tab-item.active {
  color: #1c3a60;
  border-bottom: 2px solid #1c3a60;
  font-weight: 500;
}
/* 分类筛选标签 */
.category-tags {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 30px;
  flex-wrap: wrap;
}
.tag-item {
  padding: 6px 18px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 14px;
  border: 1px solid #ddd;
}
.tag-item.all {
  background-color: #0d47a1;
  color: #fff;
  font-weight: bold;
}
.tag-item.normal {
  border: 1px solid #ddd;
  color: #444444;
}
/* 内容卡片区域（两列布局） */
.content-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}
.card-item {
  background-color: #eef2f6;
  border-radius: 6px;
  padding: 15px 20px;
  cursor: pointer;
  transition: background-color 0.2s;
}
.card-item:hover {
  background-color: #e8f3ff;
}
.card-title {
  font-size: 15px;
  color: #333;
  margin-bottom: 5px;
  font-weight: bold;
}
.card-tag {
  font-size: 12px;
  color: #999;
}



/* 图标库引入 */
@import url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css");
