/* 碳资产数字化管理系统 - 共享样式 */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --green-1: #14532d; --green-2: #1a5c38; --green-3: #2e8b57; --green-4: #43b47a;
  --green-bg: #f4f8f5; --line: #e7efe9; --carbon: #0f3d2e; --gold: #d4a017;
  --text-1: #1f2d27; --text-2: #5b6b63; --text-3: #93a39a;
  --shadow-sm: 0 2px 8px rgba(15,61,46,.06);
  --shadow-md: 0 8px 24px rgba(15,61,46,.10);
  --shadow-lg: 0 16px 40px rgba(15,61,46,.14);
}
html, body { height: 100%; font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif; color: var(--text-1); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(46,139,87,.25); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(46,139,87,.45); }

/* ============ 登录页 ============ */
.login-wrap {
  height: 100vh; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(1200px 600px at 12% 18%, rgba(67,180,122,.35), transparent 60%),
    radial-gradient(1000px 700px at 88% 82%, rgba(212,160,23,.18), transparent 55%),
    linear-gradient(135deg, #0c3325 0%, #14532d 45%, #1f7a4d 100%);
  position: relative; overflow: hidden;
}
.login-wrap::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 22px 22px; opacity: .5;
}
.login-card {
  width: 940px; max-width: 94vw; min-height: 540px; display: flex; border-radius: 22px; overflow: hidden;
  box-shadow: 0 30px 90px rgba(0,0,0,.45); position: relative; z-index: 2; background: #fff;
}
.login-left {
  flex: 1.05; background: linear-gradient(165deg, #0c3325, #14532d 60%, #1a5c38);
  color: #fff; padding: 50px 42px; display: flex; flex-direction: column; justify-content: center; position: relative;
}
.login-left::before {
  content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(212,160,23,.22), transparent 70%); border-radius: 50%;
}
.login-left h1 { font-size: 27px; letter-spacing: 1px; margin-bottom: 14px; line-height: 1.4; }
.login-left .sub { color: #b9d8c6; font-size: 13.5px; line-height: 1.95; margin-bottom: 36px; }
.login-left .feat { display: flex; flex-wrap: wrap; gap: 10px; }
.login-left .feat span {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  padding: 7px 15px; border-radius: 22px; font-size: 12.5px; color: #d6ecdd;
  backdrop-filter: blur(4px);
}
.login-right { flex: 1; padding: 50px 46px; display: flex; flex-direction: column; justify-content: center; }
.login-right h2 { color: #14532d; margin-bottom: 6px; font-size: 22px; }
.login-right .tip { color: #98a89f; font-size: 12.5px; margin-bottom: 28px; }
.quick-accounts { margin-top: 24px; }
.quick-accounts .qa-title { font-size: 12px; color: #98a89f; margin-bottom: 10px; }
.qa-list { display: flex; flex-wrap: wrap; gap: 8px; }
.qa-list button {
  cursor: pointer; border: 1px solid #d3e6da; background: #f3faf5; color: #14532d;
  border-radius: 8px; padding: 6px 13px; font-size: 12px; transition: .18s;
}
.qa-list button:hover { background: #14532d; color: #fff; border-color: #14532d; transform: translateY(-1px); }

/* ============ 主应用布局 ============ */
.app-shell { display: flex; height: 100vh; background: var(--green-bg); }
.app-side {
  width: 244px; flex-shrink: 0; color: #d7e7dc;
  background:
    radial-gradient(420px 220px at 50% -10%, rgba(67,180,122,.28), transparent 70%),
    linear-gradient(180deg, #0c3325, #103d2c 55%, #0c3325);
  display: flex; flex-direction: column; box-shadow: 4px 0 24px rgba(0,0,0,.18); z-index: 10;
}
.app-logo {
  padding: 20px 20px 16px; border-bottom: 1px solid rgba(255,255,255,.07);
  display: flex; align-items: center; gap: 12px;
}
.app-logo .emblem {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  background: linear-gradient(145deg, #43b47a, #1a5c38);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(67,180,122,.45), inset 0 1px 0 rgba(255,255,255,.3);
}
.app-logo .t1 { font-size: 15.5px; font-weight: 700; color: #fff; letter-spacing: .5px; line-height: 1.25; }
.app-logo .t2 { font-size: 10.5px; color: #7fae8f; margin-top: 2px; letter-spacing: 1.5px; }
.app-menu { flex: 1; overflow-y: auto; padding: 12px 0; }
.menu-group {
  font-size: 10.5px; color: #6f9d80; padding: 16px 22px 6px; letter-spacing: 2px; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
.menu-group::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,.07); }
.menu-item {
  display: flex; align-items: center; gap: 11px; padding: 11px 22px; cursor: pointer;
  font-size: 13.5px; color: #bcd3c4; border-left: 3px solid transparent; transition: .16s; white-space: nowrap;
}
.menu-item .mi { font-size: 17px; color: #8fb6a0; transition: .16s; }
.menu-item:hover { background: rgba(255,255,255,.06); color: #fff; }
.menu-item:hover .mi { color: #cdeadd; }
.menu-item.active {
  background: linear-gradient(90deg, rgba(67,180,122,.22), rgba(67,180,122,.04));
  color: #fff; border-left-color: var(--green-4); font-weight: 600;
}
.menu-item.active .mi { color: #6ee7a8; }

.app-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.app-header {
  height: 60px; background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: space-between; padding: 0 26px;
  box-shadow: var(--shadow-sm); border-bottom: 1px solid var(--line); z-index: 5;
}
.app-header .crumb { font-size: 16px; color: var(--text-1); font-weight: 700; display: flex; align-items: center; gap: 9px; }
.app-header .crumb .ci { color: var(--green-3); font-size: 18px; }
.app-header .right { display: flex; align-items: center; gap: 14px; }
.user-chip { display: flex; align-items: center; gap: 9px; cursor: pointer; padding: 5px 12px; border-radius: 10px; transition: .15s; }
.user-chip:hover { background: var(--green-bg); }
.avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, #2e8b57, #43b47a); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600;
  box-shadow: 0 3px 8px rgba(46,139,87,.35);
}
.app-body { flex: 1; overflow-y: auto; padding: 20px 24px 28px; }

/* ============ 卡片 ============ */
.page-card {
  background: #fff; border-radius: 16px; padding: 20px 22px;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line); margin-bottom: 18px;
  transition: box-shadow .2s, transform .2s;
}
.page-card:hover { box-shadow: var(--shadow-md); }
.page-title {
  font-size: 15.5px; font-weight: 700; color: var(--green-2); margin-bottom: 16px;
  display: flex; align-items: center; gap: 9px;
}
.page-title::before {
  content: ""; width: 4px; height: 16px; background: linear-gradient(var(--green-4), var(--green-3));
  border-radius: 3px;
}
.page-title .pt-icon { color: var(--green-3); font-size: 18px; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }

/* ============ 统计卡 ============ */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 18px; }
.stat-card {
  background: #fff; border-radius: 16px; padding: 18px 20px; position: relative; overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--line); transition: transform .2s, box-shadow .2s;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat-card::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--accent, #2e8b57); opacity: .85;
}
.stat-icon {
  position: absolute; right: 16px; top: 16px; width: 40px; height: 40px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center; font-size: 20px; color: #fff;
  background: var(--accent, #2e8b57);
  box-shadow: 0 6px 14px -4px var(--accent, #2e8b57);
}
.stat-card .label { font-size: 12.5px; color: var(--text-3); position: relative; z-index: 1; }
.stat-card .value {
  font-size: 25px; font-weight: 800; color: var(--accent, #14472f); margin-top: 8px;
  font-family: "DIN Alternate", Consolas, monospace; letter-spacing: .3px;
}
.stat-card .unit { font-size: 12px; color: var(--text-3); font-weight: 600; margin-left: 4px; }

.mono { font-family: Consolas, monospace; font-size: 12px; }
.linkish { color: #2e8b57; cursor: pointer; }
.linkish:hover { text-decoration: underline; }
.mt10 { margin-top: 10px; } .mb10 { margin-bottom: 10px; }
.chart-box { width: 100%; height: 320px; }
.el-tag--dark { border: none !important; }

/* 让 Element Plus 主色调贴合品牌 */
:root { --el-color-primary: #1a5c38; }

/* ============================================================
   视觉升级 V3.0 · Element Plus 深度定制 + 整体质感提升
   ============================================================ */
:root {
  --el-color-primary: #1a5c38;
  --el-color-primary-light-3: #2e8b57;
  --el-color-primary-light-5: #43b47a;
  --el-color-primary-light-7: #a7d8bf;
  --el-color-primary-light-8: #cfeadd;
  --el-color-primary-light-9: #eef8f2;
  --el-color-primary-dark-2: #14532d;
  --el-border-radius-base: 10px;
  --el-border-radius-small: 8px;
  --el-border-radius-round: 999px;
  --el-font-size-base: 13.5px;
  --el-text-color-primary: #1f2d27;
  --el-text-color-regular: #46564e;
  --el-border-color: #e2ece6;
  --el-border-color-light: #eaf1ec;
  --el-box-shadow-light: 0 6px 20px rgba(15,61,46,.08);
  --radius-lg: 16px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- 表格（后台主力组件） ---------- */
.el-table {
  --el-table-border-color: #eef4f0;
  --el-table-header-bg-color: #f6faf7;
  --el-table-row-hover-bg-color: #f2f9f4;
  border-radius: 12px;
  overflow: hidden;
  font-size: 13px;
}
.el-table th.el-table__cell {
  background: linear-gradient(180deg, #f8fbf9, #f1f7f3) !important;
  color: #35584a !important;
  font-weight: 700 !important;
  font-size: 12.5px;
  letter-spacing: .3px;
  padding: 11px 0 !important;
  border-bottom: 1px solid #e4efe8 !important;
}
.el-table td.el-table__cell {
  padding: 11px 0 !important;
  border-bottom: 1px solid #f1f6f3 !important;
  color: #46564e;
}
.el-table--striped .el-table__body tr.el-table__row--striped td.el-table__cell {
  background: #fafcfb;
}
.el-table__body tr:hover > td.el-table__cell {
  background: #f2f9f4 !important;
}
.el-table__body tr:last-child td.el-table__cell { border-bottom: none !important; }
.el-table .cell { padding: 0 14px; line-height: 1.55; }
.el-table__empty-block { min-height: 120px; }
.el-table__empty-text { color: #93a39a; }
.el-table .el-button.is-link, .el-table .el-button.is-text {
  padding: 0 4px !important; font-size: 12.5px; font-weight: 600;
}

/* ---------- 按钮 ---------- */
.el-button { border-radius: 10px; font-weight: 600; transition: all .2s var(--ease); }
.el-button:not(.is-text):not(.is-link):not(.is-circle) { padding: 9px 18px; }
.el-button--primary {
  background: linear-gradient(135deg, #23845a, #1a5c38);
  border: none;
  box-shadow: 0 4px 12px -3px rgba(26,92,56,.45);
}
.el-button--primary:hover {
  background: linear-gradient(135deg, #2e9a68, #1f6b42);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -4px rgba(26,92,56,.5);
}
.el-button--primary:active { transform: translateY(0); }
.el-button--default:not(.is-text):not(.is-link) { border-color: #dbe8e0; color: #46625a; background: #fff; }
.el-button--default:not(.is-text):not(.is-link):hover { border-color: #b9d8c6; color: #1a5c38; background: #f6fbf8; }
.el-button--success { background: linear-gradient(135deg, #34a06b, #23845a); border: none; }
.el-button--warning { background: linear-gradient(135deg, #e0a92e, #c48f14); border: none; }
.el-button--danger  { background: linear-gradient(135deg, #e5645c, #c93f37); border: none; }

/* ---------- 表单控件 ---------- */
.el-input__wrapper, .el-select__wrapper, .el-textarea__inner {
  border-radius: 10px !important;
  box-shadow: 0 0 0 1px #e2ece6 inset !important;
  padding: 2px 12px;
  transition: box-shadow .18s var(--ease);
  background: #fff;
}
.el-input__wrapper:hover, .el-select__wrapper:hover { box-shadow: 0 0 0 1px #bfdccc inset !important; }
.el-input__wrapper.is-focus, .el-select__wrapper.is-focused, .el-textarea__inner:focus {
  box-shadow: 0 0 0 1px #2e8b57 inset, 0 0 0 3px rgba(46,139,87,.12) !important;
}
.el-form-item__label { color: #46625a; font-weight: 600; font-size: 13px; }
.el-form-item { margin-bottom: 18px; }

/* ---------- 标签 ---------- */
.el-tag { border-radius: 999px; padding: 0 11px; font-weight: 600; font-size: 11.5px; border: none; }
.el-tag--success { background: #e8f7ee !important; color: #1f7a4d !important; }
.el-tag--warning { background: #fdf3dd !important; color: #a8780f !important; }
.el-tag--danger  { background: #fdeae8 !important; color: #c93f37 !important; }
.el-tag--info    { background: #eef2f0 !important; color: #5b6b63 !important; }
.el-tag--primary { background: #e9f5ef !important; color: #1a5c38 !important; }

/* ---------- 弹窗 ---------- */
.el-dialog { border-radius: 18px; overflow: hidden; box-shadow: 0 24px 70px rgba(10,40,28,.28); }
.el-dialog__header {
  padding: 20px 24px 14px; margin: 0;
  border-bottom: 1px solid #eef4f0;
  background: linear-gradient(180deg, #fbfdfc, #fff);
}
.el-dialog__title { font-weight: 700; color: #1f2d27; font-size: 16px; }
.el-dialog__body { padding: 22px 24px; }
.el-dialog__footer { padding: 14px 24px 20px; border-top: 1px solid #eef4f0; }

/* ---------- 分页 ---------- */
.el-pagination { font-weight: 600; padding: 6px 0; }
.el-pagination button, .el-pagination .el-pager li { border-radius: 9px !important; transition: all .18s var(--ease); }
.el-pagination .el-pager li.is-active {
  background: linear-gradient(135deg, #23845a, #1a5c38) !important;
  box-shadow: 0 4px 10px -3px rgba(26,92,56,.5);
}

/* ---------- 提示 / 结果 / 下拉 ---------- */
.el-alert { border-radius: 12px; padding: 12px 16px; border: none; }
.el-alert--info.is-light { background: #eef6f1; }
.el-result__title { font-weight: 700; }
.el-dropdown-menu { border-radius: 12px; padding: 6px; box-shadow: 0 12px 34px rgba(15,61,46,.16); }
.el-dropdown-menu__item { border-radius: 8px; font-size: 13px; padding: 8px 14px; }
.el-dropdown-menu__item:hover { background: #eef8f2 !important; color: #1a5c38 !important; }
.el-select-dropdown { border-radius: 12px; box-shadow: 0 12px 34px rgba(15,61,46,.16); }
.el-select-dropdown__item.is-selected { color: #1a5c38; font-weight: 700; }
.el-popper.is-light { border-radius: 12px; border-color: #e4efe8; }
.el-popper.is-dark { background: #14382a; border-radius: 8px; }
.el-empty__description p { color: #93a39a; }

/* ---------- 内容区与卡片质感 ---------- */
.app-body {
  background:
    radial-gradient(900px 420px at 100% 0, rgba(67,180,122,.06), transparent 60%),
    var(--green-bg);
  scroll-behavior: smooth;
}
.app-body > * { animation: pageIn .32s var(--ease); }
@keyframes pageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.page-card {
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 3px rgba(15,61,46,.04), 0 8px 24px -16px rgba(15,61,46,.18);
}
.page-card:hover { box-shadow: 0 1px 3px rgba(15,61,46,.05), 0 16px 34px -18px rgba(15,61,46,.28); }
.stat-card { border-radius: var(--radius-lg); }
.stat-card .value { letter-spacing: .2px; }
.stat-icon { border-radius: 13px; }

/* ---------- 侧边栏细节 ---------- */
.app-menu::-webkit-scrollbar { width: 6px; }
.app-menu::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 3px; }
.menu-item { border-radius: 0 10px 10px 0; margin-right: 10px; }
.menu-item.active { position: relative; }
.menu-item.active::after {
  content: ""; position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: #6ee7a8; box-shadow: 0 0 8px #6ee7a8;
}
.user-chip { border-radius: 12px; }
.toolbar { gap: 12px; }
::selection { background: rgba(67,180,122,.28); color: #14382a; }
