/* =====================================================================
 * ouyun_1 紧凑型账户页样式 (2026-10-06 重构, 布局源 intlcloud/_account_page_work/)
 * 设计语言对齐 ouyun_1 系列: 直角白卡 / 1px 边框 / 无阴影 / 行式紧凑布局
 * 仅作用于 #account 页; 不影响其他页面
 * ===================================================================== */
#account.oyac-scope,
#account {
  /* 站点主题变量链, 与 mf-cloud 详情页一致 */
  --oyac-primary: var(--member-color-primary, var(--color-primary, #165dff));
  --oyac-primary-hover: var(--member-color-primary-hover, #5c8eff);
  --oyac-text-1: var(--member-text-primary, #414141);
  --oyac-text-2: var(--member-text-regular, #606266);
  --oyac-text-3: var(--member-text-secondary, #8e8e8e);
  --oyac-border: var(--member-border-lighter, #eaedf1);
  --oyac-border-strong: var(--member-border-light, #d2d2d2);
  --oyac-fill: var(--member-fill-base, #f2f4f8);
  --oyac-fill-soft: var(--member-fill-soft, #fafafa);
  --oyac-danger: var(--member-color-danger, #f94747);
  --oyac-success: var(--member-color-success, #6ad95f);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Microsoft YaHei", sans-serif;
}

/* ---------- 页面容器 ---------- */
#account .oyac-page {
  padding: 18px 28px 28px;
  min-width: 0;
}
#account .oyac-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}
#account .oyac-page-title {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--oyac-text-1);
  line-height: 24px;
}

/* ---------- 标签页 ---------- */
#account .el-tabs__header {
  margin: 0 0 18px;
}
#account .el-tabs__nav-wrap::after {
  height: 1px;
  background-color: var(--oyac-border);
}
#account .el-tabs__item {
  height: 42px;
  line-height: 42px;
  font-size: 14px;
  color: var(--oyac-text-2);
}
#account .el-tabs__item.is-active {
  color: var(--oyac-primary);
  font-weight: 600;
}
#account .el-tabs__active-bar {
  height: 2px;
}
#account .el-tabs__content {
  overflow: visible;
}

/* ---------- 身份条 ---------- */
#account .oyac-profile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: var(--oyac-fill-soft);
  border: 1px solid var(--oyac-border);
  margin-bottom: 6px;
}
#account .oyac-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3c7bff, var(--oyac-primary));
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  user-select: none;
}
#account .oyac-profile-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
#account .oyac-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}
#account .oyac-username {
  font-size: 16px;
  font-weight: 600;
  color: var(--oyac-text-1);
  word-break: break-all;
}
#account .oyac-level {
  font-size: 12px;
  line-height: 20px;
  padding: 0 8px;
  border: 1px solid #e6e9ef;
  background: #f7f8fb;
  border-radius: 2px;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#account .oyac-country-img {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
}
/* 认证徽标(可点) */
#account .oyac-cert {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  cursor: pointer;
  font-size: 12px;
  line-height: 20px;
  color: var(--oyac-text-2);
  padding: 1px 8px 1px 4px;
  border: 1px solid transparent;
  border-radius: 2px;
  transition: border-color .15s, background-color .15s;
}
#account .oyac-cert:hover {
  border-color: var(--oyac-border);
  background: #fff;
}
#account .oyac-cert-ico {
  width: 16px;
  height: 16px;
  object-fit: contain;
}
#account .oyac-cert-text {
  color: var(--oyac-text-2);
}
#account .oyac-cert-link {
  color: var(--oyac-primary);
  margin-left: 2px;
}
#account .oyac-cert-link .el-icon-arrow-right {
  font-size: 12px;
}

/* ---------- 分区与行式表单 ---------- */
#account .oyac-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  column-gap: 48px;
  align-items: start;
}
#account .oyac-section {
  min-width: 0;
}
#account .oyac-sec-title {
  margin: 18px 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--oyac-text-1);
  display: flex;
  align-items: center;
  gap: 8px;
}
#account .oyac-sec-title::before {
  content: "";
  width: 3px;
  height: 12px;
  background: var(--oyac-primary);
  flex-shrink: 0;
}
#account .oyac-rows {
  min-width: 0;
}
#account .oyac-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 5px 0;
  border-bottom: 1px solid var(--oyac-fill);
}
#account .oyac-row:last-child {
  border-bottom: none;
}
#account .oyac-label {
  width: 108px;
  flex-shrink: 0;
  font-size: 13px;
  color: var(--oyac-text-3);
  line-height: 20px;
  word-break: break-all;
}
#account .oyac-field {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
#account .oyac-field--inline {
  gap: 10px;
}
#account .oyac-field .el-select {
  width: 100%;
}
#account .oyac-notice-select {
  width: 110px !important;
  flex-shrink: 0;
}
#account .oyac-field .el-input__inner,
#account .oyac-field .el-textarea__inner {
  height: 34px;
  line-height: 34px;
  font-size: 13px;
}
#account .oyac-field .el-textarea__inner {
  height: auto;
  line-height: 20px;
  padding: 6px 10px;
}
#account .oyac-field .el-input .el-input__suffix {
  height: 34px;
  line-height: 34px;
}

/* 账户信息(值 + 编辑铅笔) */
#account .oyac-field--action {
  cursor: pointer;
}
#account .oyac-value {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  color: var(--oyac-text-1);
  word-break: break-all;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#account .oyac-row--action:hover .oyac-value {
  color: var(--oyac-primary);
}
#account .oyac-edit {
  font-size: 15px;
  color: var(--oyac-text-3);
  flex-shrink: 0;
}
#account .oyac-row--action:hover .oyac-edit {
  color: var(--oyac-primary);
}

/* 自定义字段表单 */
#account .oyac-cf-form .el-form-item {
  margin-bottom: 0;
}
#account .oyac-cf-form .el-form-item__content {
  margin-left: 0 !important;
  line-height: normal;
}
#account .oyac-cf-form .el-form-item__error {
  padding-top: 2px;
}
#account .oyac-cf-form .el-checkbox {
  color: var(--oyac-text-2);
}
#account .oyac-cf-form .input-with-select .el-input-group__prepend {
  background: #fff;
}
#account .oyac-cf-form .input-with-select .el-input-group__prepend .el-input__inner {
  height: 32px;
}

/* ---------- 三方登录(官方绑定行) ---------- */
#account .oyac-oauth-list {
  min-width: 0;
}
#account .oyac-oauth-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  padding: 5px 0;
  border-bottom: 1px solid var(--oyac-fill);
}
#account .oyac-oauth-item:last-child {
  border-bottom: none;
}
#account .oyac-oauth-name {
  flex: 1;
  min-width: 0;
  font-size: 14px;
  color: var(--oyac-text-1);
}
#account .oyac-oauth-status {
  font-size: 12px;
  line-height: 20px;
  padding: 0 8px;
  border-radius: 2px;
  flex-shrink: 0;
}
#account .oyac-oauth-status.is-on {
  color: var(--oyac-primary);
  background: rgba(22, 93, 255, .08);
}
#account .oyac-oauth-status.is-off {
  color: var(--oyac-text-3);
  background: var(--oyac-fill);
}
#account .oyac-oauth-op {
  width: 72px;
  text-align: right;
  flex-shrink: 0;
}
#account .oyac-link {
  color: var(--oyac-primary);
  font-size: 13px;
  cursor: pointer;
}
#account .oyac-link:hover {
  color: var(--oyac-primary-hover);
}
#account .oyac-link--danger {
  color: var(--oyac-danger);
}
#account .oyac-link--danger:hover {
  opacity: .8;
}

/* ---------- 保存按钮 ---------- */
#account .oyac-save-bar {
  display: flex;
  justify-content: flex-end;
  margin-top: 20px;
}
#account .btn-save {
  min-width: 88px;
  padding: 9px 20px;
}

/* ---------- 工具栏(搜索/站内信) ---------- */
#account .oyac-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  min-width: 0;
}
#account .oyac-toolbar .oyac-search-input {
  width: 260px;
}
#account .oyac-search-input .el-input__inner {
  height: 34px;
  line-height: 34px;
  font-size: 13px;
}
#account .oyac-search-ico {
  cursor: pointer;
  line-height: 34px;
}
#account .oyac-toolbar--msg {
  justify-content: space-between;
}
#account .msgsearch-left {
  display: flex;
  gap: 8px;
}
#account .msgsearch-left .el-button {
  padding: 8px 15px;
  font-size: 13px !important;
  height: auto !important;
  min-height: 32px;
  line-height: 20px;
}
#account .msgsearch-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
#account .msgsearch-right .el-select {
  width: 130px;
}
#account .msgsearch-right .el-select .el-input__inner {
  height: 34px;
  line-height: 34px;
  font-size: 13px;
}
#account .oyac-search-btn {
  padding: 8px 15px;
  font-size: 13px !important;
  height: auto !important;
  min-height: 32px;
  line-height: 20px;
}

/* ---------- 表格紧凑化 ---------- */
#account .oyac-table.el-table {
  font-size: 13px;
}
#account .oyac-table.el-table th,
#account .oyac-table.el-table td {
  padding: 8px 0;
}
#account .oyac-table.el-table th > .cell {
  color: var(--oyac-text-3);
  font-weight: 600;
  font-size: 12px;
}
#account .oyac-table.el-table .cell {
  padding: 0 12px;
  line-height: 20px;
}
#account .oyac-table.el-table td .cell {
  color: var(--oyac-text-2);
}
#account .oyac-table.el-table .el-table__row:hover > td {
  background: var(--oyac-fill-soft);
}
#account .oyac-table .el-table__empty-block {
  min-height: 120px;
}
#account .tabledata .el-pagination {
  margin-top: 4px;
}
/* 反压壳层 .myPage rem 字号(pager/jump=.13rem, 桌面≈9.7px/手机≈6.8px), 统一 13px */
#account .el-pagination,
#account .el-pagination span:not([class*="sr-only"]),
#account .el-pagination .el-pagination__total,
#account .myPage .el-pagination .el-pagination__jump,
#account .myPage .el-pagination .el-pager li,
#account .el-pagination .el-pager li,
#account .el-pagination .el-pagination__sizes .el-input__inner,
#account .el-pagination .el-pagination__editor.el-input .el-input__inner {
  font-size: 13px !important;
}
#account .myPage .el-pagination .el-input__inner,
#account .el-pagination .el-pagination__sizes .el-input__inner,
#account .el-pagination .el-pagination__editor.el-input .el-input__inner {
  height: 28px !important;
  line-height: 28px !important;
}
#account .el-pagination .el-pager li,
#account .el-pagination button {
  height: 28px !important;
  line-height: 28px !important;
}
#account .el-pagination .el-pager li.active {
  color: var(--oyac-primary);
}
#account .a-text {
  color: var(--oyac-primary);
  cursor: pointer;
}
#account .a-text:hover {
  opacity: .85;
}
#account .msg-status {
  font-size: 12px;
}
#account .msg-status.is-read {
  color: var(--oyac-text-3);
}
#account .msg-status.no-read {
  color: var(--oyac-primary);
}

/* ---------- 移动端日志列表(默认隐藏, ≤750 显示) ---------- */
#account .mobel {
  display: none;
}

/* =====================================================================
 * ouyun_oauth_pro 多账号绑定卡片适配(注入于 .oauth 区块内)
 * ===================================================================== */
#account .oyoa-card {
  background: #fff;
  border: 1px solid var(--oyac-border);
  border-radius: 0;
  box-shadow: none;
  padding: 0;
  margin-top: 14px;
}
#account .oyoa-card-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--oyac-text-1);
  margin: 14px 16px 4px;
}
#account .oyoa-card-sub {
  font-size: 12px;
  color: var(--oyac-text-3);
  margin: 0 16px 12px;
}
#account .oyoa-table {
  border-color: var(--oyac-border);
  border-radius: 0;
  margin: 0 16px 16px;
  font-size: 13px;
}
#account .oyoa-thead {
  background: var(--oyac-fill-soft);
  color: var(--oyac-text-3);
}
#account .oyoa-tr-ch:hover {
  background: var(--oyac-fill-soft);
}
#account .oyoa-btn {
  border-radius: 2px;
}

/* ouyun_coin_pro 账户页横幅适配(内联样式, 需 !important 覆写观感) */
#account #oycoin-account-item {
  border-radius: 0 !important;
  border-color: var(--oyac-border) !important;
  margin: 0 0 14px !important;
  padding: 10px 14px !important;
}

/* =====================================================================
 * 弹窗(沿用系统结构, 轻量重塑)
 * ===================================================================== */
#account .el-dialog {
  border-radius: 0;
}
#account .el-dialog__body {
  padding: 8px 28px 12px;
}
#account .dialog-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--oyac-text-1);
  padding: 18px 28px 0;
}
#account .mian-form {
  margin-top: 8px;
}
#account .mian-form .el-form-item {
  margin-bottom: 14px;
}
#account .mian-form .el-form-item__label {
  font-size: 13px;
  color: var(--oyac-text-2);
  padding-bottom: 4px;
  line-height: 22px;
}
#account .mian-form .el-input__inner {
  height: 36px;
  line-height: 36px;
}
#account .dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0;
  padding: 4px 28px 20px;
}
#account .dialog-footer .btn-ok,
#account .dialog-footer .btn-no {
  min-width: 80px;
  padding: 9px 18px;
  font-size: 13px;
}
#account .dialog-footer .btn-no {
  margin-left: 10px;
}
#account .forget-pass {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--oyac-text-3);
}
#account .forget-pass > a {
  color: var(--oyac-primary);
  cursor: pointer;
}
/* 验证码行 */
#account .input-btn {
  display: flex;
  align-items: center;
  gap: 8px;
}
#account .input-btn .el-input {
  flex: 1;
}
#account .code-btn {
  height: 36px;
  padding: 0 14px;
  font-size: 13px;
}
/* 邮箱/手机切换头 */
#account .login-top {
  display: flex;
  margin-top: 10px;
  font-size: 14px;
  color: var(--oyac-text-3);
}
#account .login-top > div {
  padding: 6px 0;
  margin-right: 24px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
#account .login-top > div.active {
  color: var(--oyac-primary);
  border-bottom-color: var(--oyac-primary);
  font-weight: 600;
}
#account .form-main {
  margin-top: 12px;
}
#account .form-item {
  margin-top: 12px;
}
#account .form-item .el-input__inner {
  height: 36px;
  line-height: 36px;
}
#account .code-item {
  display: flex;
  flex-direction: row;
  gap: 8px;
}
#account .read-item {
  margin-top: 12px;
}
#account .code-pass-select {
  width: auto;
  height: 36px;
  border: 1px solid #e6e7eb;
  border-right: none;
}
#account .select-input > .el-input--suffix {
  width: 1.7rem;
}
#account .input-with-select .el-input-group__prepend {
  background: #fff;
}
/* 密码规则浮层 */
#account .password-rule-form-item {
  position: relative;
}
#account .password-rule-popover {
  position: absolute;
  left: 0;
  top: calc(100% + 6px);
  z-index: 20;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  background: #ffffff;
  border: 1px solid var(--oyac-border);
  border-radius: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  line-height: 1.4;
}
#account .password-rule-title {
  margin-bottom: 6px;
  color: var(--oyac-text-1);
  font-size: 13px;
  font-weight: 600;
}
#account .password-rule-item {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  color: var(--oyac-text-3);
  font-size: 12px;
  line-height: 19px;
}
#account .password-rule-item + .password-rule-item {
  margin-top: 3px;
}
#account .password-rule-item i {
  margin-top: 2px;
  flex: 0 0 auto;
}
#account .password-rule-item.is-pass {
  color: var(--oyac-success);
}
/* popconfirm 按钮 */
#account .el-popconfirm .el-popconfirm__main {
  font-size: 13px;
}
#account .el-message-box__btns {
  display: flex;
  flex-direction: row-reverse;
}

/* =====================================================================
 * 响应式
 * ===================================================================== */
@media screen and (max-width: 960px) {
  #account .oyac-grid {
    grid-template-columns: 1fr;
    column-gap: 0;
  }
  #account .oyac-page {
    padding: 14px 18px 20px;
  }
}

@media screen and (max-width: 750px) {
  #account .oyac-page {
    padding: 10px 12px 16px;
  }
  #account .oyac-page-title {
    font-size: 15px;
  }
  #account .el-tabs__item {
    padding: 0 12px;
  }
  #account .oyac-profile {
    padding: 12px;
    gap: 10px;
  }
  #account .oyac-avatar {
    width: 38px;
    height: 38px;
    font-size: 16px;
  }
  #account .oyac-username {
    font-size: 15px;
  }
  /* 操作日志: 隐藏 PC 表格(仅日志页, 站内信页保持表格), 显示移动列表 */
  #account .searchbar,
  #account .searchbar .el-input {
    display: none;
  }
  #account .oyac-log-table {
    display: none;
  }
  #account .mobel {
    display: block;
  }
  #account .mob-searchbar {
    margin-top: 4px;
    margin-bottom: 10px;
  }
  #account .mob-search-input,
  #account .mob-search-input > input {
    height: 38px;
    background: var(--oyac-fill-soft);
    border-radius: 2px;
    font-size: 13px;
  }
  #account .mob-tabledata {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--oyac-border);
  }
  #account .mob-tabledata-item {
    border-bottom: 1px solid var(--oyac-border);
    display: flex;
    flex-direction: column;
    padding: 10px 12px;
  }
  #account .mob-tabledata-item:last-child {
    border-bottom: none;
  }
  #account .mob-item-row {
    display: flex;
    justify-content: space-between;
    margin-top: 4px;
  }
  #account .mob-item-row1,
  #account .mob-item-row3 {
    font-size: 12px;
    color: var(--oyac-text-3);
  }
  #account .mob-item-row2-name {
    font-size: 13px;
    color: var(--oyac-text-2);
    line-height: 19px;
  }
  #account .mob-item-row3 {
    margin-bottom: 4px;
  }
  #account .bottom-text {
    font-size: 12px;
    color: var(--oyac-text-3);
    margin: 14px 0;
    display: flex;
    justify-content: center;
  }
  #account .back-top-img {
    width: 38px;
    position: fixed;
    right: 14px;
    bottom: 80px;
  }
  /* 行式表单 */
  #account .oyac-row {
    gap: 8px;
  }
  #account .oyac-label {
    width: 88px;
    font-size: 12px;
  }
  #account .oyac-oauth-op {
    width: auto;
  }
  /* 工具栏与保存 */
  #account .oyac-toolbar {
    justify-content: stretch;
  }
  #account .oyac-toolbar .oyac-search-input {
    width: 100%;
    flex: 1;
  }
  #account .oyac-toolbar--msg {
    flex-direction: column;
    align-items: stretch;
  }
  #account .msgsearch-left {
    justify-content: space-between;
  }
  #account .msgsearch-left .el-button,
  #account .oyac-search-btn {
    font-size: 14px !important;
    min-height: 38px;
    padding: 9px 16px;
  }
  #account .msgsearch-right .el-select {
    flex: 1;
    width: auto;
  }
  #account .oyac-save-bar {
    justify-content: stretch;
    margin-top: 16px;
  }
  #account .btn-save {
    width: 100%;
  }
  /* 弹窗按钮纵向铺满 */
  #account .dialog-footer {
    flex-direction: column;
  }
  #account .dialog-footer .btn-ok,
  #account .dialog-footer .btn-no {
    width: 100%;
    height: 40px;
  }
  #account .dialog-footer .btn-no {
    margin-left: 0;
    margin-top: 8px;
  }
}
