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

/* ========== 顶部导航栏（返回+订购+头像） ========== */
.top-header {
  width: 100%;
  height: 50px;
  border-bottom: 1px solid #eee;
  display: flex;
  align-items: center;
  padding: 0 20px;
}
.back-home {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #1c3a60;
  cursor: pointer;
  margin-right: auto;
}
.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居中） ========== */
.main-container {
  display: flex;
  flex: 1;
  padding: 20px 0;
}

/* ========== 左侧功能侧边栏 ========== */
.left-sidebar {
  width: 180px;
  margin-right: 20px;
}
/* 管理后台标题 */
.sidebar-title {
  font-size: 18px;
  font-weight: bold;
  color: #000;
  margin-bottom: 20px;
}
/* 业务主标签（社群管理等） */
.main-tabs {
  display: flex;
  gap: 30px;
  justify-content: space-between;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.content-main {
  background-color: #f8fafb;
  width: 100%;
  border-radius: 8px;
  padding: 30px;
}
.main-tab-item {
  font-size: 15px;
  cursor: pointer;
  padding-bottom: 8px;
  padding: 8px 20px;
  text-align: center;
}
.main-tab-item.active > span {
  color: #1c3a60;
  padding-bottom: 6px;
  border-bottom: 2px solid #1c3a60;
  font-weight: bold;
}

/* 子侧边栏（内容管理子菜单） */
.sub-sidebar {
  width: 100%;
  background-color: #f8f9fa;
  border-radius: 6px;
  padding: 10px 0;
}
.sub-menu-item {
  padding: 10px 15px;
  cursor: pointer;
  font-size: 14px;
}
.sub-menu-item.active {
  background-color: #e8f3ff;
  color: #1c3a60;
  font-weight: 500;
}

/* ========== 右侧内容管理区 ========== */
.content-manage {
  margin-left: 170px;
  padding: 0 350px;
}
/* 内容列表项 */
.content-item {
  padding: 0;
}

.line {
  width: 100%;
  height: 1px;
  background-color: #eee;
  margin: 20px 0;
}
.content-title {
  font-size: 15px;
  color: #333;
  font-weight: 500;
  margin-bottom: 8px;
}
.content-meta {
  font-size: 12px;
  color: #999;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
}
.content-meta-left {
  color: #999;
}
.content-meta-right {
  color: #999;
}
.content-desc {
  font-size: 13px;
  color: #666;
  margin-bottom: 10px;
  line-height: 1.6;
}
/* 内容配图 */
.content-imgs {
  display: flex;
  gap: 18px;
  margin-bottom: 10px;
}
.content-img-item {
  width: 80px;
  height: 80px;
  margin-top: 10px;
  border-radius: 4px;
  overflow: hidden;
  background: url("https://via.placeholder.com/80x80?text=内容配图")
    center/cover no-repeat;
}
.content-img-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* 数据统计+操作按钮 */
.content-stats {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 12px;
  color: #999;
}

.btn-area {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 20px;
}
.stat-item {
  display: flex;
  align-items: center;
  gap: 3px;
}
.content-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
button {
}
.edit-btn {
  padding: 4px 8px;
  border: 1px solid #ddd;
  border-radius: 3px;
  background: #fff;
  color: #666;
  cursor: pointer;
  font-size: 12px;
}
.delete-btn {
  padding: 4px 8px;
  border: 1px solid #f00;
  border-radius: 3px;
  background: #fff;
  color: #f00;
  cursor: pointer;
  font-size: 12px;
}

/* ========== 底部信息区（1024px宽） ========== */
.footer {
  width: 1024px;
  margin: 0 auto;
  padding-top: 30px;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  font-size: 12px;
  color: #999;
}
/* 公司信息 */
.company-info {
  width: 40%;
}
.company-info p {
  font-size: 12px;
  color: #999;
  line-height: 1.6;
}
/* 关于AI路牌 */
.about-ailp {
  width: 15%;
}
.about-title {
  font-size: 12px;
  font-weight: 500;
  color: #666;
  margin-bottom: 8px;
}
.about-item {
  font-size: 12px;
  color: #999;
  margin-bottom: 4px;
  cursor: pointer;
}
/* 功能入口 */
.function-entry {
  gap: 20px;
  display: flex;
  justify-content: space-around;
}
.entry-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.entry-icon {
  font-size: 20px;
  color: #666;
}
.entry-text {
  font-size: 12px;
  color: #999;
}

.left-menu {
  width: 130px;
  background-color: #f1f1f1;
  border-radius: 8px;
  margin-right: 20px;
  padding: 20px 10px;
}

.menu-item {
  font-size: 15px;
  cursor: pointer;
  padding: 4px 10px;
  text-align: center;
  margin-bottom: 20px;
}
.menu-item.active a{
  padding-bottom: 6px;
  color: #1c3a60;
  font-weight: bold;
}

.manage-title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 30px;
}

.top-nav {
  padding-left: 520px;
  display: flex;
  align-items: center;
}

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

/* ========== 商品管理页面样式 ========== */

/* 筛选器区域 */
.filter-section {
  margin-bottom: 20px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-row {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.filter-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.filter-item label {
  font-size: 14px;
  color: #333;
  font-weight: 500;
}

.filter-select {
  padding: 4px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #fff;
  min-width: 150px;
  font-size: 14px;
}

.filter-input {
  padding: 4px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #fff;
  min-width: 150px;
  font-size: 14px;
}

.filter-input:focus {
  outline: none;
  border-color: #1c3a60;
}

.search-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 18px 15px;
  height: 32px;
  background-color: #1c3a60 !important;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.search-btn:hover {
  background-color: #152a47;
}

/* 统计信息区域 */
.stats-section {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  font-size: 14px;
  color: #333;
}

/* 表格区域 */
.table-section {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.product-table {
  width: 100%;
  border-collapse: collapse;
}

.product-table th {
  background-color: #f5f7fa;
  padding: 12px 15px;
  text-align: left;
  font-weight: 500;
  color: #333;
  font-size: 14px;
  border-bottom: 1px solid #eee;
}

.product-table td {
  padding: 15px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
  color: #333;
}

.product-table tr:last-child td {
  border-bottom: none;
}

.product-img {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 4px;
}

.status-tag {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.status-tag.active {
  color: #52c41a;
}

.status-tag.inactive {
  color: #ff4d4f;
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.action-btn {
  padding: 4px;
  border: 1px solid #ddd;
  border-radius: 3px;
  background: #fff;
  color: #1c3a60;
  cursor: pointer;
  font-size: 12px;
  text-align: center;
  transition: all 0.2s;
}

.action-btn:hover {
  border-color: #1c3a60;
  color: #1c3a60;
}

.edit-btn:hover {
  border-color: #1890ff;
  color: #1890ff;
}

.offshelf-btn:hover {
  border-color: #fa8c16;
  color: #fa8c16;
}

.delete-btn {
  border-color: #ff4d4f;
  color: #ff4d4f;
}
