/*
 * TCloud 风格主题（会员中心）
 * 只覆盖视觉，不改任何业务结构与交互；加载顺序在原版 clientarea CSS 之后。
 * 主色参考腾讯云：#0052D9 / #0E42D2，浅灰背景 #F2F4F7，白色卡片 + 12px 圆角。
 */

:root {
  --tc-primary: #0052d9;
  --tc-primary-hover: #266fe8;
  --tc-primary-active: #003cab;
  --tc-primary-light: #e8f3ff;
  --tc-bg: #f2f4f7;
  --tc-card: #ffffff;
  --tc-text: #1d2129;
  --tc-text-2: #4e5969;
  --tc-text-3: #86909c;
  --tc-border: #e5e6eb;
  --tc-radius: 12px;
  --tc-shadow: 0 1px 2px rgba(0, 21, 64, 0.04), 0 4px 16px rgba(0, 21, 64, 0.03);

  /* Element Plus 主题变量 */
  --el-color-primary: #0052d9;
  --el-color-primary-light-3: #4080ff;
  --el-color-primary-light-5: #6aa1ff;
  --el-color-primary-light-7: #bedaff;
  --el-color-primary-light-9: #e8f3ff;
  --el-color-primary-dark-2: #003cab;
  --el-border-radius-base: 6px;
  --el-border-radius-small: 4px;
  --el-text-color-primary: #1d2129;
  --el-text-color-regular: #4e5969;
  --el-border-color: #e5e6eb;
}

body {
  background: var(--tc-bg);
  color: var(--tc-text);
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei',
    'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ---------- 布局骨架 ---------- */
.template .el-container {
  background: var(--tc-bg);
}

.template .el-aside {
  background: #fff;
  border-right: 1px solid var(--tc-border);
  box-shadow: none;
}

.template .el-aside .menu-alink {
  display: block;
  padding: 20px 16px 8px;
}

.template .el-aside .ali-logo {
  max-height: 32px;
}

.template .el-aside .el-menu {
  background: transparent;
  border-right: 0;
  padding: 4px 12px;
}

.template .el-aside .el-menu-item,
.template .el-aside .el-sub-menu__title {
  height: 42px;
  line-height: 42px;
  border-radius: 8px;
  margin-bottom: 2px;
  color: var(--tc-text-2);
  font-size: 14px;
}

.template .el-aside .el-menu-item .aside-menu-text,
.template .el-aside .el-sub-menu__title .aside-menu-text {
  font-size: 14px;
}

.template .el-aside .el-menu-item:hover,
.template .el-aside .el-sub-menu__title:hover {
  background: #f2f4f7 !important;
  color: var(--tc-primary) !important;
}

.template .el-aside .el-menu-item.is-active {
  background: var(--tc-primary-light) !important;
  color: var(--tc-primary) !important;
  font-weight: 600;
}

.template .el-aside .el-menu-item.is-active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  bottom: 12px;
  width: 3px;
  border-radius: 2px;
  background: var(--tc-primary);
}

.template .el-header {
  background: #fff;
  border-bottom: 1px solid var(--tc-border);
  height: 64px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.template .el-header .header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.template .el-header .header-right-item {
  display: flex;
  align-items: center;
}

.template .el-header .head-box {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--tc-primary) !important;
  color: #fff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
}

.template .el-main {
  background: var(--tc-bg) !important;
  padding: 24px !important;
  min-height: calc(100vh - 64px);
  box-sizing: border-box;
}

/* 侧栏宽度与菜单文字（避免菜单文案被压缩截断） */
.template .el-aside {
  width: 252px !important;
}

.template .el-aside .el-menu {
  padding: 4px 8px;
}

.template .el-aside .el-menu-item,
.template .el-aside .el-sub-menu__title {
  padding-left: 12px !important;
  padding-right: 8px !important;
  overflow: visible;
}

.template .el-aside .aside-menu-text {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

.template .el-aside .iconfont {
  flex: 0 0 auto;
  margin-right: 8px;
}

/* ---------- 卡片 ---------- */
.main-card,
.home-user-card,
.credit-card,
.home-consume-card,
.home-product-card,
.home-side .side-card,
.el-card {
  background: var(--tc-card);
  border: 1px solid var(--tc-border);
  border-radius: var(--tc-radius);
  box-shadow: var(--tc-shadow);
}

.home-user-card {
  border-bottom: 1px solid var(--tc-border);
}

.main-card {
  padding: 20px 24px;
}

.main-card .el-tabs__item {
  font-size: 14px;
  padding: 0 16px;
  color: var(--tc-text-2);
}

.main-card .el-tabs__item.is-active {
  color: var(--tc-primary);
  font-weight: 600;
}

/* ---------- 表格 ---------- */
.el-table {
  --el-table-border-color: var(--tc-border);
  --el-table-header-bg-color: #f7f8fa;
  --el-table-row-hover-bg-color: #f7f9fc;
  border-radius: 8px;
  overflow: hidden;
}

.el-table th.el-table__cell {
  background: #f7f8fa !important;
  color: var(--tc-text-2);
  font-weight: 500;
  height: 44px;
}

.el-table td.el-table__cell {
  height: 52px;
  color: var(--tc-text);
}

/* ---------- 按钮 / 输入 ---------- */
.el-button {
  border-radius: 6px;
  font-weight: 500;
}

.el-button--primary {
  --el-button-bg-color: var(--tc-primary);
  --el-button-border-color: var(--tc-primary);
  --el-button-hover-bg-color: var(--tc-primary-hover);
  --el-button-hover-border-color: var(--tc-primary-hover);
  --el-button-active-bg-color: var(--tc-primary-active);
}

.el-input__wrapper,
.el-textarea__inner,
.el-select__wrapper {
  border-radius: 6px;
  box-shadow: 0 0 0 1px var(--tc-border) inset;
}

.el-input__wrapper.is-focus,
.el-select__wrapper.is-focused {
  box-shadow: 0 0 0 1px var(--tc-primary) inset;
}

.el-tag {
  border-radius: 4px;
}

.el-tag--primary,
.el-tag.el-tag--primary {
  background: var(--tc-primary-light);
  border-color: #bedaff;
  color: var(--tc-primary);
}

/* ---------- 链接 ---------- */
a,
.link {
  color: var(--tc-primary);
}

a:hover,
.link:hover {
  color: var(--tc-primary-hover);
}

/* ---------- 侧栏底部搜索（原版用户/ID 搜索） ---------- */
.template .el-aside .left-search,
.template .el-aside .aside-search {
  background: #fff;
}

/* ---------- 登录页（裸页） ---------- */
#login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(900px 480px at 12% 18%, rgba(0, 82, 217, 0.12), rgba(0, 82, 217, 0) 60%),
    radial-gradient(760px 420px at 88% 82%, rgba(64, 128, 255, 0.14), rgba(64, 128, 255, 0) 60%),
    #f2f4f7;
}

#login .login-container {
  width: 1080px;
  max-width: calc(100vw - 48px);
  min-height: 620px;
  display: flex;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 24px 64px rgba(0, 21, 64, 0.12);
  overflow: hidden;
  position: relative;
}

#login .container-back {
  width: 46%;
  min-height: 620px;
  background: linear-gradient(145deg, #0052d9 0%, #0e42d2 60%, #003cab 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 56px;
  box-sizing: border-box;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

#login .container-back .back-text {
  position: static;
  max-width: 100%;
  word-break: break-word;
}

#login .container-before {
  position: relative;
  z-index: 2;
  background: #fff;
  /* 原版残留 right:0.9rem 会让白区左移压住品牌区，这里归零 */
  right: 0 !important;
  left: 0 !important;
}

#login .container-back::after {
  content: '';
  position: absolute;
  right: -120px;
  bottom: -160px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

#login .container-back .back-line1,
#login .container-back .back-line2,
#login .container-back .back-line3 {
  display: none;
}

#login .container-back .text-welcome {
  font-size: 13px;
  letter-spacing: 4px;
  opacity: 0.75;
  margin-bottom: 16px;
}

#login .container-back .text-title {
  font-size: 30px;
  line-height: 1.4;
  font-weight: 600;
  max-width: 360px;
}

#login .container-back .text-level {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.7;
  opacity: 0.8;
  max-width: 340px;
}

#login .container-before {
  flex: 1;
  padding: 56px 64px;
  display: flex;
  align-items: center;
  box-sizing: border-box;
  position: relative;
}

#login .login {
  width: 100%;
}

#login .login-text-title {
  font-size: 26px;
  font-weight: 600;
  color: var(--tc-text);
}

#login .login-text-regist {
  margin-top: 10px;
  font-size: 13px;
  color: var(--tc-text-3);
}

#login .login-top {
  margin-top: 28px;
  display: flex;
  gap: 28px;
  border-bottom: 1px solid var(--tc-border);
}

#login .login-top > div {
  padding: 0 2px 12px;
  font-size: 15px;
  color: var(--tc-text-2);
  cursor: pointer;
}

#login .login-top > div.active {
  color: var(--tc-primary);
  font-weight: 600;
  border-bottom: 2px solid var(--tc-primary);
}

#login .form-main {
  margin-top: 24px;
}

#login .form-item {
  margin-bottom: 18px;
}

#login .el-input__wrapper {
  height: 44px;
  border-radius: 8px;
  background: #f7f8fa;
  box-shadow: 0 0 0 1px transparent inset;
}

#login .el-input__wrapper.is-focus {
  background: #fff;
  box-shadow: 0 0 0 1px var(--tc-primary) inset;
}

#login .login-btn {
  width: 100%;
  height: 44px;
  border-radius: 8px;
  font-size: 15px;
  margin-top: 8px;
}

#login .pass-btn {
  width: 100%;
  height: 40px;
  border-radius: 8px;
  margin: 10px 0 0;
  color: var(--tc-primary);
  border-color: #bedaff;
  background: var(--tc-primary-light);
}

#login .code-item {
  display: flex;
  gap: 10px;
}

#login .rember-item {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: var(--tc-text-3);
}

#login .login-jump-btn {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
}

#login .lang-box span {
  font-size: 12px;
  color: var(--tc-text-3);
  cursor: pointer;
  padding: 0 4px;
}

#login .lang-box span.active {
  color: var(--tc-primary);
  font-weight: 600;
}

/* ---------- 产品列表 / 详情通用卡片 ---------- */
.main-card .list-card-container,
.main-card .content-box {
  background: transparent;
}

/* ---------- 响应式 ---------- */
@media screen and (max-width: 1200px) {
  #login .login-container {
    width: 92vw;
    min-height: 560px;
  }
  #login .container-back {
    display: none;
  }
  #login .container-before {
    padding: 40px;
  }
}
/* ---------- 登录页 v2：单列居中大白卡（按设计稿重做） ---------- */
#login {
  min-height: 100vh;
  display: flex !important;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #eef2f9 0%, #e3e9f5 100%);
}

#login .login-container {
  display: block !important;
  width: 1000px;
  max-width: calc(100vw - 48px);
  min-height: 0 !important;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 16px 48px rgba(0, 21, 64, 0.08);
  padding: 44px 72px 56px;
  box-sizing: border-box;
  position: relative;
  overflow: visible;
}

#login .container-back {
  display: none !important;
}

#login .container-before {
  position: static !important;
  width: 100%;
  min-height: 0 !important;
  padding: 0 !important;
  display: block !important;
  background: #fff;
  right: auto !important;
  left: auto !important;
}

#login .login {
  width: 100%;
}

#login .login-text-title {
  font-size: 30px;
  font-weight: 600;
  color: #1d2129;
  line-height: 1.3;
}

#login .login-text-regist {
  margin-top: 10px;
  font-size: 14px;
  color: #86909c;
}

#login .login-text-regist a {
  color: #1e5eff;
  cursor: pointer;
  margin-left: 4px;
}

#login .login-jump-btn {
  position: absolute;
  top: 24px;
  right: 32px;
  left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 10;
}

#login .lang-box {
  display: flex;
  align-items: center;
  gap: 14px;
}

#login .lang-box span {
  font-size: 13px;
  color: #86909c;
  cursor: pointer;
}

#login .lang-box span.active {
  color: #1e5eff;
  font-weight: 600;
}

#login .login-jump-btn .el-button.btn {
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 8px;
  background: #1e5eff;
  border-color: #1e5eff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#login .login-jump-btn .el-button.btn a {
  display: block;
  width: 100%;
  height: 100%;
  font-size: 0;
  line-height: 34px;
}

#login .login-jump-btn .el-button.btn a::after {
  content: '＋';
  font-size: 18px;
  line-height: 34px;
  color: #fff;
}

#login .login-top {
  margin-top: 36px;
  display: flex;
  gap: 32px;
  border-bottom: 1px solid #ebedf0;
}

#login .login-top > div {
  padding: 0 2px 14px;
  font-size: 16px;
  color: #4e5969;
  cursor: pointer;
}

#login .login-top > div.active {
  color: #1e5eff;
  font-weight: 600;
  border-bottom: 2px solid #1e5eff;
}

#login .form-main {
  margin-top: 22px;
}

#login .form-item {
  margin-bottom: 20px;
}

#login .el-input__wrapper {
  height: 46px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 0 0 1px #e5e6eb inset;
}

#login .el-input__wrapper.is-focus {
  box-shadow: 0 0 0 1px #1e5eff inset;
}

#login .el-input__inner {
  font-size: 14px;
}

#login .code-item {
  display: flex;
  gap: 12px;
  align-items: center;
}

#login .code-item .el-input {
  flex: 1;
}

#login .code-btn {
  width: 128px;
  height: 46px;
  border-radius: 8px;
  background: #1e5eff;
  border-color: #1e5eff;
  font-size: 14px;
}

#login .rember-item {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: #86909c;
}

#login .rember-item .read-text {
  color: #86909c;
}

#login .rember-item .read-text a {
  color: #1e5eff;
}

#login .rember-item > span:last-child {
  margin-left: auto;
}

#login .rember-item > span:last-child a {
  color: #4e5969;
}

#login .login-btn {
  width: 100%;
  height: 48px;
  margin-top: 10px;
  border-radius: 8px;
  background: #1e5eff;
  border-color: #1e5eff;
  font-size: 16px;
  font-weight: 500;
}

#login .pass-btn {
  width: 100%;
  height: 44px;
  margin: 14px 0 0;
  border: none;
  border-radius: 8px;
  background: #e8f0fe;
  color: #1e5eff;
  font-size: 15px;
}

@media screen and (max-width: 900px) {
  #login .login-container {
    padding: 40px 28px;
  }
  #login .login-jump-btn {
    top: 16px;
    right: 16px;
  }
}
/* 登录表单宽度修正：原版残留固定宽度会让表单/按钮溢出白卡 */
#login .login {
  width: 100% !important;
  max-width: 100% !important;
  /* 原版 login.css 的左右内边距会把表单撑出白卡 */
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box;
}

#login .form-main {
  width: 100%;
}

#login .form-item {
  width: 100%;
}

#login .form-item .el-input,
#login .form-item .el-input-group,
#login .form-item .el-input__wrapper,
#login .form-item .select-input,
#login .form-item .select-input .el-input-group__prepend + .el-input__wrapper {
  width: 100% !important;
}

#login .code-item .el-input {
  flex: 1 1 auto;
  width: auto !important;
}

#login .code-item {
  justify-content: space-between;
}

#login .login-jump-btn .el-button.btn {
  overflow: hidden;
}

#login .login-jump-btn .el-button.btn > span {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

#login .login-jump-btn .el-button.btn a {
  width: 34px !important;
  height: 34px !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}
/* 输入组 / 白卡高度：清掉原版 login.css 残留的固定尺寸与内容盒溢出 */
#login .container-before {
  height: auto !important;
  min-height: 0 !important;
}

#login .form-item .el-input__wrapper {
  box-sizing: border-box;
}

#login .form-item .input-with-select,
#login .form-item .el-input-group {
  display: flex;
  width: 100% !important;
}

#login .form-item .el-input-group__prepend {
  flex: 0 0 auto;
}

#login .form-item .el-input-group .el-input__wrapper {
  flex: 1 1 auto;
  width: auto !important;
  min-width: 0;
  box-sizing: border-box;
}
/* ---------- 登录页 v3：紧凑白卡 + 更强层次（视觉精修） ---------- */
#login {
  background:
    radial-gradient(720px 420px at 18% 12%, rgba(37, 99, 235, 0.1), rgba(37, 99, 235, 0) 60%),
    radial-gradient(680px 400px at 82% 88%, rgba(96, 165, 250, 0.12), rgba(96, 165, 250, 0) 60%),
    linear-gradient(180deg, #f4f7fb 0%, #eaeff7 100%);
}

#login .login-container {
  width: 900px;
  max-width: calc(100vw - 40px);
  padding: 44px 64px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 24px 64px rgba(15, 42, 95, 0.12), 0 2px 8px rgba(15, 42, 95, 0.06);
}

#login .login-text-title {
  font-size: 32px;
  letter-spacing: 0.5px;
}

#login .login-text-regist {
  margin-top: 8px;
  font-size: 14px;
}

#login .login-top {
  margin-top: 32px;
  gap: 28px;
}

#login .login-top > div {
  font-size: 15px;
  padding-bottom: 12px;
}

#login .form-main {
  margin-top: 20px;
}

#login .form-item {
  margin-bottom: 16px;
}

#login .el-input__wrapper {
  height: 48px;
  border-radius: 10px;
  background: #f8fafc;
  box-shadow: 0 0 0 1px #e2e8f0 inset;
}

#login .el-input__wrapper.is-focus {
  background: #fff;
  box-shadow: 0 0 0 1.5px #2563eb inset;
}

#login .el-input__inner {
  font-size: 14px;
  color: #0f172a;
}

#login .code-btn {
  width: 116px;
  height: 48px;
  border-radius: 10px;
  background: #e8f0fe;
  color: #2563eb;
  border: none;
  font-weight: 500;
}

#login .code-btn:hover {
  background: #dbe7fe;
}

#login .login-btn {
  height: 50px;
  margin-top: 8px;
  border-radius: 10px;
  background: #2563eb;
  border-color: #2563eb;
  font-size: 16px;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.22);
}

#login .login-btn:hover {
  background: #1d4ed8;
}

#login .pass-btn {
  height: 46px;
  margin-top: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  color: #334155;
}

#login .pass-btn:hover {
  color: #2563eb;
  border-color: #bfdbfe;
  background: #f8fbff;
}

#login .rember-item {
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.6;
  color: #94a3b8;
}

#login .login-jump-btn {
  top: 20px;
  right: 24px;
  gap: 12px;
}

#login .lang-box span {
  font-size: 12px;
  color: #94a3b8;
}

#login .lang-box span.active {
  color: #2563eb;
}

#login .login-jump-btn .el-button.btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #2563eb;
  border-color: #2563eb;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.24);
}