/* ==================== 全局及 PC 端重构：腾讯云 Console 企业旗舰级设计 ==================== */
.main-card-title {
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1;
  margin-bottom: 24px;
}

.content-box {
  margin-top: 24px;
}

/* 个人资料卡片头部 */
.box-top {
  background: #ffffff;
  border: 1px solid #eaedf3;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
  height: auto;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  display: flex;
  align-items: center;
  box-sizing: border-box;
}

.right-name {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.name-text {
  font-size: 22px;
  font-family: system-ui, -apple-system, sans-serif;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.name-country {
  margin-top: 8px;
  display: flex;
  align-items: center;
}

.country-img {
  height: 16px;
  width: auto;
  border-radius: 2px;
}

.attestation-status {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 6px 12px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.attestation-status:hover {
  background: #dcfce7;
  border-color: #86efac;
}

.attestation-status > img {
  width: 16px;
  height: 16px;
  margin-right: 6px;
}

.attestation-text {
  font-size: 12px;
  font-weight: 600;
  color: #15803d;
}

.attestation-text .bule-text {
  color: #0052d9 !important;
  margin-left: 4px;
}

/* 表单分组卡片化设计 */
.basic,
.account,
.oauth,
.wx-switch {
  background: #ffffff;
  border: 1px solid #eaedf3;
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  box-sizing: border-box;
  width: 100%;
}

.account {
  margin-top: 0 !important; /* 移除 PC 原生大外边距 */
}

/* 分组小标题 */
.account-title,
.basic-title {
  border-left: 4px solid #0052d9;
  padding-left: 12px;
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 12px;
}

.basic > .el-row,
.account > .el-row {
  margin-top: 0;
}

.el-row {
  margin-bottom: 0;
}

/* 每个表单项容器 */
.box-item {
  margin-bottom: 20px;
}

.box-item-t {
  font-size: 14px;
  font-weight: 600;
  color: #475569;
  margin-bottom: 8px;
  height: auto;
  line-height: 1.4;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 输入框高端扁平化重构 */
.box-item-b > .el-input,
.box-item-b .el-select,
.box-item-b .el-textarea {
  width: 100% !important; /* 自适应 el-col 的宽度 */
  max-width: 320px; /* 限制最大宽度保持规整 */
  border: none !important;
}

/* 恢复 element-ui input 标准美观边框 */
.box-item-b .el-input__inner,
.box-item-b .el-textarea__inner {
  border: 1px solid #cbd5e1 !important;
  border-radius: 4px !important;
  height: 38px !important;
  line-height: 38px !important;
  padding: 0 12px !important;
  font-size: 13px !important;
  background-color: #ffffff !important;
  color: #1e293b !important;
  transition: all 0.2s ease !important;
}

.box-item-b .el-textarea__inner {
  height: auto !important;
  line-height: 1.5 !important;
  padding: 8px 12px !important;
}

/* input focus 腾讯蓝状态 */
.box-item-b .el-input__inner:focus,
.box-item-b .el-textarea__inner:focus {
  border-color: #0052d9 !important;
  box-shadow: 0 0 0 3px rgba(0, 82, 217, 0.1) !important;
}

/* 只读和禁用状态 */
.box-item-b .el-input.is-disabled .el-input__inner,
.box-item-b .el-input__inner[readonly] {
  background-color: #f1f5f9 !important;
  color: #64748b !important;
  border-color: #e2e8f0 !important;
  cursor: not-allowed;
}

/* 保存按钮 */
.btn-save {
  width: 120px !important;
  height: 40px !important;
  background: #0052d9 !important;
  border-color: #0052d9 !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  border-radius: 4px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-top: 12px !important;
  box-shadow: 0 2px 4px rgba(0, 82, 217, 0.1) !important;
  transition: all 0.2s ease !important;
}

.btn-save:hover {
  background: #0045bb !important;
  border-color: #0045bb !important;
}

.edit-icon {
  color: #0052d9 !important;
  font-size: 15px;
  cursor: pointer;
  padding: 8px !important;
}

.edit-icon:hover {
  color: #0045bb !important;
}

/* 弹窗 design */
.el-dialog {
  border-radius: 8px !important;
  overflow: hidden !important;
  box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

.el-dialog__header {
  padding: 20px 24px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  background: #f8fafc !important;
}

.dialog-title {
  font-size: 18px;
  font-weight: 700;
  color: #0f172a;
}

.el-dialog__body {
  padding: 24px !important;
}

.dialog-footer {
  padding: 16px 24px !important;
  border-top: 1px solid #f1f5f9 !important;
  background: #f8fafc !important;
  display: flex !important;
  justify-content: flex-end !important;
  gap: 12px !important;
}

.dialog-footer .btn-ok {
  background: #0052d9 !important;
  border-color: #0052d9 !important;
  color: #ffffff !important;
}

.dialog-footer .btn-no {
  background: #ffffff !important;
  border-color: #dcdfe6 !important;
  color: #606266 !important;
}

/* 选项卡栏腾讯云风格 */
.el-tabs__item {
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #64748b !important;
}

.el-tabs__item.is-active {
  color: #0052d9 !important;
  font-weight: 700 !important;
}

.el-tabs__active-bar {
  background-color: #0052d9 !important;
}

.el-popconfirm .el-popconfirm__main {
  margin: 14px 0;
}

.el-popconfirm .el-popconfirm__action .el-button {
  display: initial !important;
}

.oauth-box {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  column-gap: 20px;
}

.input-with-select .el-input-group__prepend {
  width: 60px;
  border: none;
  background: #ffffff;
}

.code-btn {
  margin-left: 12px;
  width: 130px;
  background: #eef4ff;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0052d9;
}

.select-input {
  width: auto !important;
  min-width: 114px;
}

.com-search {
  display: flex;
  justify-content: flex-end;
  padding: 16px 0;
}

.msg-search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.msgsearch-left {
  display: flex;
  align-items: center;
}

.msgsearch-left .el-button {
  border-radius: 3px;
  border: 1px solid #0052d9;
  color: #0052d9;
  font-size: 14px;
  margin-right: 10px;
}

.msgsearch-right {
  display: flex;
}

.msgsearch-right .el-select {
  width: 240px;
  margin-right: 10px;
  border: none;
}

.msgsearch-right .search-btn {
  margin-left: 10px;
  background: #0052d9;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
}

.a-text {
  color: #171725;
}

.a-text:hover {
  color: #0052d9;
  cursor: pointer;
  text-decoration: underline;
}

.msg-status {
  margin-right: 5px;
}

.is-read {
  color: #8692b0;
}

.no-read {
  color: #0052d9;
}

tr > td, th {
  padding-left: 20px !important;
}

.forget-pass {
  display: flex;
  justify-content: flex-end;
  line-height: 14px;
  font-size: 14px;
  margin-top: 4px;
}

.forget-pass > a {
  color: #0052d9;
  cursor: pointer;
}

.login-top {
  display: flex;
  flex-direction: row;
  margin-top: 20px;
}

.login-email,
.login-phone {
  color: #666b80;
  cursor: pointer;
}

.login-phone {
  margin-left: 40px;
}

.active {
  color: #0052d9;
  padding-bottom: 14px;
  border-bottom: 2px solid #0052d9;
}

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

.form-item {
  margin-top: 20px;
}

.code-item {
  display: flex;
  flex-direction: row;
}

.rember-item {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rember-item a {
  color: #0052d9;
  cursor: pointer;
}

.login-btn {
  width: 100%;
  height: 46px;
  background: #0052d9;
}

.read-item {
  margin-top: 20px;
}

.read-item a {
  color: #0052d9;
  cursor: pointer;
}

.line-item {
  margin-top: 40px;
}

.line-item text {
  font-size: 16px;
  color: #1e2736;
}

.type-btn {
  width: 100%;
  height: 46px;
  font-size: 16px;
}

.code-pass-select {
  width: auto;
  height: 44px;
  border: 1px solid #e6e7eb;
  border-right: none;
}

.el-message-box__btns {
  display: flex;
  flex-direction: row-reverse;
}

.el-message-box__btns > .el-button {
  display: inline-block;
  margin-left: 10px;
}

.mobel {
  display: none;
}

/* ==================== 移动端适配 (Tencent Cloud Mobile Console Style) ==================== */
@media screen and (max-width: 768px) {
  /* 强行拦截并规范化外层容器，彻底消灭横向滚动条并完美对称留边 */
  body, html, .template {
    overflow-x: hidden !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .template > .el-container,
  .template > .el-container > .el-container {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  /* 强力覆盖 element-comment.css 中 PC 端的 0.24rem margin，消灭右侧溢出裁剪痛点 */
  .el-main {
    padding: 76px 12px 100px 12px !important; /* 顶部留出 60px 导航栏 + 16px 留白 */
    margin: 0 !important; /* 彻底清除 PC 端偏移 margin */
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    background-color: #f5f7fa !important;
    overflow-x: hidden !important;
  }

  .main-card {
    padding: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    border: none !important;
    width: 100% !important;
  }

  /* 移动标题 */
  .main-card-title {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    margin-bottom: 16px !important;
    padding: 0 4px !important;
  }

  /* 个人资料卡片头部移动端优化 */
  .box-top {
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 16px !important;
    gap: 12px !important;
    margin-bottom: 16px !important;
  }

  .right-name {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }

  .name-text {
    font-size: 18px !important;
  }

  .attestation-status {
    margin-left: 0 !important;
  }

  /* 分组卡片移动端优化 */
  .basic,
  .account,
  .oauth,
  .wx-switch {
    padding: 16px !important;
    margin-bottom: 16px !important;
    border-radius: 6px !important;
  }

  /* 分组小标题 */
  .account-title,
  .basic-title {
    font-size: 15px !important;
    border-left: 3px solid #0052d9 !important;
    padding-left: 8px !important;
    margin-bottom: 16px !important;
  }

  /* 表单项间距 */
  .el-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
  }

  .el-col {
    width: 100% !important;
  }

  .box-item {
    margin-bottom: 16px !important;
  }

  .box-item-t {
    font-size: 13px !important;
    margin-bottom: 6px !important;
  }

  /* 输入框全宽自适应 */
  .box-item-b > .el-input,
  .box-item-b .el-select,
  .box-item-b .el-textarea {
    width: 100% !important;
    max-width: none !important;
    margin-bottom: 0 !important;
  }

  .box-item-b .el-input__inner,
  .box-item-b .el-textarea__inner {
    height: 38px !important;
    line-height: 38px !important;
    font-size: 13px !important;
  }

  /* 各种弹窗适配 */
  .el-dialog__wrapper .el-dialog {
    width: 90% !important;
    margin: 20px auto !important;
  }

  .el-dialog__body {
    padding: 16px !important;
  }

  .el-form-item__label {
    font-size: 13px !important;
    padding-bottom: 4px !important;
  }

  .dialog-footer {
    padding: 12px 16px !important;
    flex-direction: row !important; /* 允许横排 */
    gap: 8px !important;
  }

  .dialog-footer .btn-ok,
  .dialog-footer .btn-no {
    flex: 1 !important;
    width: auto !important;
    height: 36px !important;
    font-size: 13px !important;
    margin: 0 !important;
  }

  /* 保存按钮 */
  .btn-save {
    width: 100% !important;
    height: 40px !important;
    font-size: 14px !important;
    margin: 16px 0 0 0 !important;
  }

  /* 隐藏 PC 端日志搜索栏，由移动端专用搜索栏呈现，消灭双搜索框 Bug */
  .searchbar {
    display: none !important;
  }

  /* PC表格在移动端隐藏 */
  .content_table {
    display: none !important;
  }

  /* 移动端操作日志列表样式 */
  .mobel {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
  }

  .mob-searchbar {
    margin-top: 0 !important;
    margin-bottom: 12px !important;
  }

  .mob-search-input .el-input__inner {
    height: 38px !important;
    line-height: 38px !important;
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 4px !important;
    font-size: 13px !important;
    color: #1e293b !important;
    padding-left: 12px !important;
    transition: all 0.2s ease !important;
  }

  .mob-search-input .el-input__inner:focus {
    border-color: #0052d9 !important;
    box-shadow: 0 0 0 3px rgba(0, 82, 217, 0.1) !important;
  }

  /* 移动端操作日志卡片组 */
  .mob-tabledata {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    border: none !important;
    background: transparent !important;
  }

  .mob-tabledata-item {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 16px !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.01) !important;
  }

  .mob-item-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin: 0 !important;
    font-size: 12px !important;
  }

  .mob-item-row1 {
    color: #64748b !important;
  }

  /* 突出展示日志ID与IP */
  .mob-item-row1 span:first-child {
    background: #f1f5f9 !important;
    padding: 2px 6px !important;
    border-radius: 4px !important;
    font-family: monospace !important;
    font-weight: 600 !important;
  }

  .mob-item-row1 span:last-child {
    font-family: monospace !important;
    color: #0052d9 !important;
    font-weight: 600 !important;
  }

  .mob-item-row2-name {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #1e293b !important;
    line-height: 1.4 !important;
    text-align: left !important;
  }

  .mob-item-row3 {
    margin-bottom: 0 !important;
    color: #94a3b8 !important;
  }

  /* 微信推送通知开关适配 */
  .wx-switch .box-item {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  .wx-switch .box-item-t {
    margin-bottom: 0 !important;
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  /* 消息中心移动端筛选框自适应 */
  .msg-search {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    padding: 12px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    margin-bottom: 16px !important;
  }

  .msgsearch-left {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .msgsearch-left .el-button {
    flex: 1 !important;
    min-width: 80px !important;
    height: 32px !important;
    font-size: 12px !important;
    margin: 0 !important;
  }

  .msgsearch-right {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
  }

  .msgsearch-right .el-select,
  .msgsearch-right .el-input {
    width: 100% !important;
    margin: 0 !important;
  }

  .msgsearch-right .el-input__inner {
    height: 38px !important;
    line-height: 38px !important;
  }

  .msgsearch-right .search-btn {
    width: 100% !important;
    height: 38px !important;
    margin: 0 !important;
  }
}
