/* 首页专用样式 */

/* 主体内容区 */
.main-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  gap: 20px;
  background-color: #EEF5FB;
}

/* ==================== 左侧功能栏 ==================== */
.sidebar {
  width: 220px;
  flex-shrink: 0;
}

.sidebar-card {
  background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
  overflow: hidden;
  margin-bottom: 10px;
  position: relative;
  height: 120px;
}

.sidebar-card-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('/templates/pc/images/left-1.png');
  background-size: cover;
}

.sidebar-card-title {
  position: relative;
  z-index: 1;
  padding: 30px 20px;
  color: var(--text-white);
  font-size: 22px;
  font-weight: bold;
}

.sidebar-menu {
  background: #fff;
  border-radius: 0px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.sidebar-menu-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 50px;
  background-image: url('/templates/pc/images/left-2.png');
  color: var(--text-white);
  font-size: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 220px;
  height: 91px;
  box-sizing: border-box;
  background-size: 100% 100%;
  margin-bottom: 15px;
}

.sidebar-menu-item:last-child {
  border-bottom: none;
}

.sidebar-menu-item:hover {
  background: linear-gradient(90deg, #1565c0 0%, #0d47a1 100%);
  padding-left: 25px;
}

.sidebar-menu-item .arrow {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-menu-item .arrow::after {
  content: "";
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--text-white);
  border-right: 2px solid var(--text-white);
  transform: rotate(45deg);
}

/* ==================== 右侧内容区 ==================== */
.content-area {
  flex: 1;
  padding: 0 20px;
}

/* 内容列表 */
.list-container {
  /* 列表容器 */
  margin-top: -20px;
}

.list-item {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
  transition: background 0.3s ease;
}

.list-item:last-child {
  border-bottom: none;
}

.list-item:hover {
  background: #fafafa;
  margin: 0 -20px;
  padding: 20px;
}

.list-thumb {
  width: 180px;
  height: 120px;
  flex-shrink: 0;
  overflow: hidden;
  background: #e0e0e0;
}

.list-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.list-item:hover .list-thumb img {
  transform: scale(1.05);
}

.list-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.list-title {
  font-size: 18px;
  font-weight: bold;
  color: var(--text-dark);
  margin-bottom: 10px;
  transition: color 0.3s ease;
  cursor: pointer;
}

.list-title:hover {
  color: var(--primary-blue);
}

.list-desc {
  font-size: 14px;
  color: var(--text-gray);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
}

.list-date {
  font-size: 14px;
  color: var(--primary-blue);
}

.list-actions {
  display: flex;
  gap: 10px;
}

.list-action-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-blue);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.list-action-btn:hover {
  background: var(--primary-dark);
  transform: scale(1.1);
}

.list-action-btn svg {
  width: 16px;
  height: 16px;
  fill: var(--text-white);
}

.empty-tip {
  font-size: 18px;
  text-align: center;
  margin-top: 30px;
}

/* ==================== 响应式适配 ==================== */
@media screen and (max-width: 992px) {
  .main-container {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
  }

  .sidebar-card {
    height: auto;
  }

  .sidebar-menu {
    display: flex;
    flex-wrap: wrap;
  }

  .sidebar-menu-item {
    flex: 1;
    min-width: 120px;
    justify-content: center;
  }
}

@media screen and (max-width: 768px) {
  .list-item {
    flex-direction: column;
    gap: 15px;
  }

  .list-thumb {
    width: 100%;
    height: 180px;
  }

  .list-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .list-actions {
    width: 100%;
    justify-content: flex-end;
  }
}