:root {

  --color-navy: #081824;

  --color-navy-mid: #0c2433;

  --color-navy-light: #123347;

  --color-orange: #e85d04;

  --color-orange-hover: #d45303;

  --color-orange-soft: rgba(232, 93, 4, 0.12);

  --color-bg: #eef1f5;

  --color-sidebar-width: 228px;

  --header-height: 52px;

}



* {

  box-sizing: border-box;

}



html,

body {

  margin: 0;

  padding: 0;

  height: 100%;

  font-family: "Helvetica Neue", Helvetica, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;

  background: var(--color-bg);

  color: #303133;

}



#app {

  height: 100%;

}



/* —— 登录页 —— */

.login-page {

  min-height: 100vh;

  display: flex;

  align-items: center;

  justify-content: center;

  padding: 24px;

  background: linear-gradient(145deg, #061018 0%, var(--color-navy) 35%, #1a4a63 100%);

  position: relative;

  overflow: auto;

  flex-direction: column;

}



.login-page::before {

  content: "";

  position: absolute;

  width: 480px;

  height: 480px;

  border-radius: 50%;

  background: radial-gradient(circle, rgba(232, 93, 4, 0.15) 0%, transparent 70%);

  top: -120px;

  right: -80px;

  pointer-events: none;

}



.login-page::after {

  content: "";

  position: absolute;

  width: 320px;

  height: 320px;

  border-radius: 50%;

  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);

  bottom: -60px;

  left: -40px;

  pointer-events: none;

}



.login-wrap {

  position: relative;

  z-index: 1;

  width: 100%;

  max-width: 420px;

}



.login-slogan {

  text-align: center;

  color: rgba(255, 255, 255, 0.92);

  margin-bottom: 20px;

}



.login-slogan .brand-mark {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  width: 48px;

  height: 48px;

  border-radius: 12px;

  background: var(--color-orange);

  font-size: 22px;

  font-weight: 800;

  color: #fff;

  margin-bottom: 12px;

  box-shadow: 0 8px 24px rgba(232, 93, 4, 0.35);

}



.login-slogan h2 {

  margin: 0 0 6px;

  font-size: 20px;

  font-weight: 600;

  letter-spacing: 0.02em;

}



.login-slogan p {

  margin: 0;

  font-size: 13px;

  opacity: 0.75;

  line-height: 1.5;

}



.login-card {

  border-radius: 12px;

  overflow: hidden;

  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.28);

  background: #fff;

}



.login-header {

  background: var(--color-navy-mid);

  color: #fff;

  padding: 22px 24px 18px;

  border-bottom: 3px solid var(--color-orange);

}



.login-header h1 {

  margin: 0 0 6px;

  font-size: 20px;

  font-weight: 600;

}



.login-header p {

  margin: 0;

  opacity: 0.8;

  font-size: 12px;

}



.login-body {

  padding: 26px 24px 22px;

  background: #fff;

}



.login-tip {

  margin-top: 16px;

  font-size: 12px;

  color: #909399;

  line-height: 1.65;

  padding-top: 14px;

  border-top: 1px dashed #ebeef5;

}



/* —— 主框架 —— */

.layout-root {

  height: 100vh;

  display: flex;

}



.layout-sidebar {

  width: var(--color-sidebar-width);

  background: linear-gradient(180deg, var(--color-navy) 0%, #061018 100%);

  color: #fff;

  display: flex;

  flex-direction: column;

  flex-shrink: 0;

  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.12);

}



.sidebar-brand {

  padding: 22px 18px 18px;

  border-bottom: 1px solid rgba(255, 255, 255, 0.08);

}



.sidebar-brand .title {

  font-size: 17px;

  font-weight: 700;

  color: #fff;

  line-height: 1.35;

  letter-spacing: 0.02em;

}



.sidebar-brand .sub {

  font-size: 11px;

  opacity: 0.55;

  margin-top: 6px;

  text-transform: uppercase;

  letter-spacing: 0.08em;

}



.sidebar-menu {

  flex: 1;

  border-right: none !important;

  background: transparent !important;

  padding: 8px 0 16px;

}



.sidebar-menu.el-menu {

  --el-menu-bg-color: transparent;

  --el-menu-text-color: rgba(255, 255, 255, 0.78);

  --el-menu-hover-bg-color: rgba(255, 255, 255, 0.06);

  --el-menu-active-color: #fff;

}



.sidebar-menu .el-menu-item {

  position: relative;

  height: 46px;

  line-height: 46px;

  margin: 2px 10px;

  border-radius: 6px;

  font-size: 14px;

}



.sidebar-menu .el-menu-item.is-active {

  background: rgba(255, 255, 255, 0.08) !important;

  color: #fff !important;

  font-weight: 600;

}



.sidebar-menu .el-menu-item.is-active::after {

  content: "";

  position: absolute;

  left: 0;

  right: 0;

  bottom: 0;

  height: 3px;

  background: var(--color-orange);

  border-radius: 3px 3px 0 0;

}



.layout-main {

  flex: 1;

  display: flex;

  flex-direction: column;

  min-width: 0;

  overflow: hidden;

}



.layout-header {

  height: var(--header-height);

  background: #fff;

  border-bottom: 1px solid #e8eaed;

  display: flex;

  align-items: center;

  justify-content: space-between;

  padding: 0 22px;

  flex-shrink: 0;

  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);

}



.header-title {

  font-size: 15px;

  font-weight: 600;

  color: #1f2d3d;

}



.header-user {

  display: flex;

  align-items: center;

  gap: 10px;

  font-size: 13px;

  color: #606266;

}



.header-user .user-name {

  font-weight: 500;

  color: #303133;

}



.layout-content {

  flex: 1;

  padding: 18px 20px 24px;

  overflow: auto;

}



.page-card {

  background: #fff;

  border-radius: 8px;

  padding: 18px 20px;

  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);

  border: 1px solid #eef0f3;

}



.page-toolbar {

  display: flex;

  flex-wrap: wrap;

  gap: 10px;

  margin-bottom: 14px;

  align-items: center;

}



.page-toolbar .spacer {

  flex: 1;

}



/* KPI */

.kpi-row {

  display: grid;

  grid-template-columns: repeat(4, 1fr);

  gap: 14px;

  margin-bottom: 18px;

}



@media (max-width: 1200px) {

  .kpi-row {

    grid-template-columns: repeat(2, 1fr);

  }

}



@media (max-width: 640px) {

  .kpi-row {

    grid-template-columns: 1fr;

  }

}



.kpi-card {

  background: #fff;

  border-radius: 8px;

  padding: 18px 20px 16px;

  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);

  border: 1px solid #eef0f3;

  border-top: 3px solid var(--color-orange);

  position: relative;

}



.kpi-card:nth-child(2) {

  border-top-color: #409eff;

}



.kpi-card:nth-child(3) {

  border-top-color: #e6a23c;

}



.kpi-card:nth-child(4) {

  border-top-color: #67c23a;

}



.kpi-card .label {

  font-size: 13px;

  color: #909399;

  margin-bottom: 10px;

}



.kpi-card .value {

  font-size: 30px;

  font-weight: 700;

  color: var(--color-navy-light);

  line-height: 1.1;

  font-variant-numeric: tabular-nums;

}



.kpi-card .value.money {

  font-size: 26px;

}



.kpi-card .value.money::before {

  content: "¥";

  font-size: 15px;

  font-weight: 600;

  margin-right: 2px;

  color: #909399;

}



.dashboard-grid {

  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 14px;

}



@media (max-width: 992px) {

  .dashboard-grid {

    grid-template-columns: 1fr;

  }

}



.section-title {

  font-size: 14px;

  font-weight: 600;

  margin-bottom: 12px;

  color: #303133;

  padding-left: 10px;

  border-left: 3px solid var(--color-orange);

}



.section-title-row {

  display: flex;

  align-items: center;

  justify-content: space-between;

  margin-bottom: 12px;

}



.section-title-row .section-title {

  margin-bottom: 0;

}



/* 账款汇总 */

.ledger-summary-row {

  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 14px;

  margin-bottom: 18px;

}



@media (max-width: 900px) {

  .ledger-summary-row {

    grid-template-columns: 1fr;

  }

}



.ledger-stat {

  background: #fafbfc;

  border-radius: 8px;

  padding: 16px 18px;

  border-left: 4px solid var(--color-orange);

}



.ledger-stat.paid {

  border-left-color: #67c23a;

}



.ledger-stat.unpaid {

  border-left-color: #e6a23c;

}



.ledger-stat .label {

  font-size: 12px;

  color: #909399;

  margin-bottom: 6px;

}



.ledger-stat .value {

  font-size: 22px;

  font-weight: 700;

  color: #303133;

}



.report-thumb {

  width: 40px;

  height: 40px;

  object-fit: cover;

  border-radius: 4px;

  border: 1px solid #e4e7ed;

  vertical-align: middle;

}



.report-content-cell {

  font-size: 12px;

  color: #606266;

  line-height: 1.45;

  max-height: 2.9em;

  overflow: hidden;

  display: -webkit-box;

  -webkit-line-clamp: 2;

  -webkit-box-orient: vertical;

}



/* 紧凑表格 */

.layout-content .el-table {

  font-size: 13px;

  --el-table-header-bg-color: #f5f7fa;

  --el-table-header-text-color: #606266;

}



.layout-content .el-table .el-table__cell {

  padding: 7px 0;

}



.layout-content .el-table th.el-table__cell {

  font-weight: 600;

  font-size: 12px;

}



.layout-content .el-table--border .el-table__cell {

  border-color: #ebeef5;

}



/* 状态 Tag */

.tag-status-pending.el-tag {

  --el-tag-bg-color: #fdf6ec;

  --el-tag-border-color: #f5dab1;

  --el-tag-text-color: #b88230;

}



.tag-status-approved.el-tag {

  --el-tag-bg-color: #f0f9eb;

  --el-tag-border-color: #c2e7b0;

  --el-tag-text-color: #529b2e;

}



.tag-status-rejected.el-tag {

  --el-tag-bg-color: #fef0f0;

  --el-tag-border-color: #fbc4c4;

  --el-tag-text-color: #c45656;

}



.tag-status-paying.el-tag {

  --el-tag-bg-color: #ecf5ff;

  --el-tag-border-color: #b3d8ff;

  --el-tag-text-color: #337ecc;

}



.tag-status-paid.el-tag {

  --el-tag-bg-color: #f4f4f5;

  --el-tag-border-color: #d3d4d6;

  --el-tag-text-color: #606266;

}



.media-grid {

  display: flex;

  flex-wrap: wrap;

  gap: 8px;

  margin-top: 8px;

}



.media-thumb {

  width: 80px;

  height: 80px;

  object-fit: cover;

  border-radius: 4px;

  cursor: pointer;

  border: 1px solid #dcdfe6;

}



.detail-block {

  margin-bottom: 16px;

}



.detail-block .label {

  font-size: 12px;

  color: #909399;

  margin-bottom: 4px;

}



.detail-block .value {

  font-size: 14px;

  color: #303133;

  line-height: 1.6;

}



.el-button--primary {

  --el-button-bg-color: var(--color-orange);

  --el-button-border-color: var(--color-orange);

  --el-button-hover-bg-color: var(--color-orange-hover);

  --el-button-hover-border-color: var(--color-orange-hover);

  --el-button-active-bg-color: var(--color-orange-hover);

  --el-button-active-border-color: var(--color-orange-hover);

}



.drawer-actions {

  margin-top: 24px;

  padding-top: 16px;

  border-top: 1px solid #ebeef5;

  display: flex;

  gap: 12px;

  flex-wrap: wrap;

}



.msg-preview {

  font-size: 13px;

  color: #909399;

  overflow: hidden;

  text-overflow: ellipsis;

  white-space: nowrap;

  max-width: 280px;

}



.finance-fallback-tip {

  font-size: 12px;

  color: #909399;

  margin-bottom: 12px;

}

.login-support {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  margin-top: 16px;
  text-align: center;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.62);
}

.sidebar-support {
  padding: 12px 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11px;
  line-height: 1.55;
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
}


