/* =========================================================
   xloscloud · 账户信息页 · 绿色科技风
   覆盖 default/account.css，只作用于 xloscloud 主题
   ========================================================= */

/* 主题变量（从壳层继承一部分）*/
:root {
  --ac-deep: #04291A;
  --ac-brand: #0B9D5C;
  --ac-bright: #12B36C;
  --ac-soft: #E8F8F0;
  --ac-line: #DFF2E8;
  --ac-title: #0A3D2A;
  --ac-text: #1E2736;
  --ac-text-2: #5C7A6B;
  --ac-shadow: 0 14px 34px -18px rgba(3, 32, 20, 0.16);
  --ac-shadow-sm: 0 8px 20px -12px rgba(3, 32, 20, 0.12);
}

/* ====== 页面容器 ====== */
#account .el-main {
  padding: 28px 32px 48px;
  background: transparent;
}
.ac-wrap {
  max-width: 1200px;
  margin: 0 auto;
}

/* ====== 自定义 Tab ====== */
.ac-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid rgba(3, 24, 15, 0.08);
}
.ac-tab {
  padding: 12px 22px;
  font-size: 15px;
  color: var(--ac-text-2);
  font-weight: 500;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}
.ac-tab:hover {
  color: var(--ac-brand);
}
.ac-tab.is-active {
  color: var(--ac-brand);
  border-bottom-color: var(--ac-brand);
  font-weight: 600;
}

/* ====== 卡片通用 ====== */
.ac-card {
  background: #fff;
  border-radius: 18px;
  padding: 28px 32px;
  box-shadow: var(--ac-shadow);
  margin-bottom: 20px;
}
.ac-card-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--ac-title);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.ac-card-title > i {
  display: inline-block;
  width: 4px;
  height: 18px;
  background: linear-gradient(180deg, var(--ac-bright), var(--ac-brand));
  border-radius: 3px;
}

/* ====== Hero 用户名片 ====== */
.ac-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px;
  background: linear-gradient(135deg, #0B9D5C 0%, #12B36C 100%);
  border-radius: 18px;
  color: #fff;
  margin-bottom: 20px;
  box-shadow: 0 12px 28px -14px rgba(11, 157, 92, 0.55);
}
.ac-hero-left {
  display: flex;
  align-items: center;
  gap: 18px;
}
.ac-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -1px;
}
.ac-name-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ac-name {
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}
.ac-level {
  font-weight: 500;
  margin-left: 4px;
}
.ac-country .country-img {
  height: 14px;
  width: auto;
  vertical-align: middle;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.ac-auth {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  color: #fff;
  cursor: pointer;
  transition: background .2s ease;
}
.ac-auth:hover {
  background: rgba(255, 255, 255, 0.26);
}
.ac-auth img {
  width: 16px;
  height: 16px;
  filter: brightness(0) invert(1);
}
.ac-link {
  color: var(--ac-brand);
  font-weight: 500;
  margin-left: 4px;
  cursor: pointer;
}
.ac-link:hover {
  color: var(--ac-bright);
  text-decoration: underline;
}
/* hero 里的 link 颜色覆盖 */
.ac-hero .ac-link {
  color: #fff;
  opacity: 0.9;
}
.ac-hero .ac-link:hover {
  opacity: 1;
}

/* ====== 表单字段 grid ====== */
.ac-fields {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px 24px;
}
@media (max-width: 1100px) {
  .ac-fields { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .ac-fields { grid-template-columns: 1fr; }
}

.ac-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.ac-field-label {
  font-size: 13px;
  color: var(--ac-text-2);
  font-weight: 500;
  display: flex;
  align-items: center;
}
.ac-field .el-input__inner,
.ac-field .el-input__suffix,
.ac-field .el-select .el-input__inner {
  font-size: 14px;
  border-radius: 10px;
  border-color: rgba(3, 24, 15, 0.12);
  background: #FAFDFB;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.ac-field .el-input__inner:focus,
.ac-field .el-select .el-input.is-focus .el-input__inner {
  border-color: var(--ac-brand);
  box-shadow: 0 0 0 3px rgba(11, 157, 92, 0.12);
  background: #fff;
}
.ac-field .el-input.is-disabled .el-input__inner {
  background: #F3F7F5;
  color: var(--ac-text-2);
}

/* 操作图标 */
.ac-field .edit-icon {
  color: var(--ac-brand);
  cursor: pointer;
}

/* Switch 对齐 */
.ac-field-label .el-switch {
  margin-left: 6px;
}

/* ====== 保存按钮 ====== */
.ac-actions {
  display: flex;
  justify-content: flex-end;
  padding: 20px 0 8px;
}
.ac-btn-save {
  background: linear-gradient(135deg, var(--ac-bright), var(--ac-brand)) !important;
  border: none !important;
  border-radius: 10px;
  padding: 10px 32px;
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 8px 20px -10px rgba(11, 157, 92, 0.6);
}
.ac-btn-save:hover {
  background: linear-gradient(135deg, var(--ac-brand), #097A48) !important;
  box-shadow: 0 10px 22px -10px rgba(11, 157, 92, 0.7);
}

/* ====== 搜索条 ====== */
.ac-searchbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
}
.ac-searchbar .msgsearch-right {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.ac-searchbar .msgsearch-left {
  display: flex;
  gap: 8px;
}

/* ====== 表格绿色化 ====== */
#account .el-table th {
  background: #F0F7F3 !important;
  color: var(--ac-title) !important;
  font-weight: 600;
}
#account .el-table td {
  color: var(--ac-text);
}
#account .el-table--border::before,
#account .el-table--group::before,
#account .el-table__inner-wrapper::before {
  background-color: rgba(3, 24, 15, 0.06);
}

/* ====== 分页 ====== */
#account .el-pagination.is-background .el-pager li:not(.disabled).active {
  background: linear-gradient(135deg, var(--ac-bright), var(--ac-brand));
}

/* ====== Tab 下的 content_table 间距 ====== */
.ac-pane .content_table {
  padding: 0;
}
