/* 全局重置：严格匹配设计图视觉基准 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "微软雅黑", "Microsoft YaHei", sans-serif;
}

body {
  background: #ffffff;
  padding: 0;
  margin: 0;
}

/* ========== 顶部栏：严格匹配设计图 ========== */
.header {
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  border-bottom: 1px solid #e5e7eb;
}

/* 左侧logo+返回 */
.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo-box {
  display: flex;
  flex-direction: column;
}

.logo-text {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  line-height: 1;
}

.logo-sub {
  font-size: 10px;
  color: #9ca3af;
  line-height: 1;
  margin-top: 2px;
}

.back-link {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #6b7280;
  text-decoration: none;
  cursor: pointer;
}

.back-link i {
  font-size: 10px;
  color: #6b7280;
}

/* 右侧订购+头像 */
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.subscribe-btn {
  background: #ff9500;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  line-height: 1;
}

.avatar-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #d1d5db;
  cursor: pointer;
}

/* ========== 主体容器：左侧（主导航横向+次导航纵向 上下）+ 右侧内容 ========== */
.main-container {
  width: 100%;
  margin: 0 auto;
  display: flex;
}

.content-manage {
  margin-left: 170px;
  padding: 0 350px;
}

/* ========== 左侧导航区：主导航（横向）+ 次导航（纵向） 上下结构 ========== */
.left-nav-wrapper {
  width: 180px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  /* 主导航和次导航的上下间距 */
}

/* 管理后台标题 */
.admin-title {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  line-height: 1;
  margin: 0;
}

/* 主导航（一级：横向排列） */
.main-nav {
  display: flex;
  flex-wrap: nowrap;
  /* 强制横向不换行 */
  gap: 12px;
  /* 主导航项之间的横向间距 */
  padding-bottom: 8px;
  border-bottom: 1px solid #e5e7eb;
  /* 底部分隔线 */
  overflow-x: auto;
  /* 防止溢出 */
}

.main-nav-item {
  font-size: 14px;
  color: #4b5563;
  font-weight: 400;
  padding: 6px 0;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  /* 底部选中下划线 */
  white-space: nowrap;
  /* 不换行 */
}

.main-nav-item.active {
  color: #2563eb;
  font-weight: 500;
  border-bottom: 2px solid #2563eb;
  /* 选中态底部蓝色下划线 */
}

/* 次导航（二级：纵向排列，在主导航下方） */
.sub-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  /* 次导航项之间的纵向间距 */
  background: #f9fafb;
  border-radius: 6px;
  padding: 8px 0;
}

.sub-nav-item {
  font-size: 13px;
  color: #4b5563;
  padding: 10px 16px;
  cursor: pointer;
  border-left: 3px solid transparent;
  /* 左侧选中竖线 */
}

.sub-nav-item.active {
  color: #2563eb;
  font-weight: 500;
  background: #eff6ff;
  border-left: 3px solid #2563eb;
  /* 选中态左侧蓝色竖线 */
}

/* ========== 右侧会员中心内容区 ========== */
.right-content {
  background: #f9fafb;
  border-radius: 8px;
  padding: 24px;
}

/* 会员身份栏 */
.member-status {
  font-size: 14px;
  color: #1f2937;
  font-weight: 500;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.upgrade-tip {
  font-size: 12px;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.upgrade-tip i {
  font-size: 12px;
  color: #ff9500;
}

/* 会员权益表格 */
.member-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 28px;
}

.member-table th {
  background: #cbd3dc;
  font-size: 13px;
  color: #4b5563;
  font-weight: 500;
  padding: 12px 16px;
  text-align: left;
  border: 1px solid #e5e7eb;
  text-align: center;
  font-weight: bold;
}

.member-table td {
  font-size: 12px;
  color: #6b7280;
  padding: 12px 16px;
  border: 1px solid #e5e7eb;
}

.table-col1 {
  width: 15%;
}

.table-col2 {
  width: 40%;
}

.table-col3 {
  width: 45%;
  background: #fff3e0;
}

.free-member-tr td {
  background: #f9fafb;
}

.vl {
  vertical-align: vertical-lr !important;
  color: red;
}

.shop-member-tr td {
  background: #faebe3;
}

.member-table ul {
  padding-left: 0;
  margin: 0;
}

.member-table li {
  list-style: none;
  margin-bottom: 4px;
  line-height: 1.4;
}

/* 开通会员标题 */
.open-member-title {
  font-size: 14px;
  color: #1f2937;
  font-weight: 500;
  margin-bottom: 16px;
}

/* 价格卡片 */
.price-card-group {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
}

.price-card {
  flex: 1;
  background: #f1f1f1;
  border: 2px solid #e5e7eb;
  border-radius: 6px;
  padding: 24px 16px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-line {
  height: 100%;
  width: 1px;
  background-color: #754132;
  margin: 0 30px;
}

.price-card.vip5 {
  background: linear-gradient(to right, #ffead1, #fef4e8);
  border: 2px solid #754132;
  color: #754132;
}

.card-period {
  font-size: 16px;
  margin-bottom: 6px;
}

.card-price {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 4px;
}

.card-original {
  font-size: 12px;
  text-decoration: line-through;
}

/* 支付区域 */
.pay-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.protocol-check {
  display: flex;
  align-items: center;
  gap: 8px;
}

.protocol-check input {
  width: 14px;
  height: 14px;
}

.protocol-check label {
  font-size: 12px;
  color: #6b7280;
  cursor: pointer;
}

.pay-btn {
  width: fit-content;
  background: #1c3a60;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 8px 44px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

/* 业务主标签（社群管理等） */
.main-tabs {
  display: flex;
  gap: 30px;
  justify-content: space-between;
  padding-bottom: 10px;
  margin-bottom: 15px;
}

.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;
  white-space: nowrap;
}

.menu-item.active a{
  padding-bottom: 6px;
  color: #1c3a60;
  font-weight: bold;
}

.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;
}

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

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

.right-content1 {
  width: 100%;
  background-color: #f8fafb;
  border-radius: 8px;
  padding: 30px;
}

.user-tip {
  display: flex;
}

.user-vip {
  color: #1c3a60;
  font-size: 12px;
}

.member-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 20px;
}

.up {
  color: #f29645;
  margin-left: 50px;
  margin-right: 10px;
}

.img-box > img {
  width: 70px;
}

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