:root {
  --xy-home-blue: var(--xy-console-primary, var(--color-primary, #1677ff));
  --xy-home-blue-dark: var(--xy-console-primary-dark, #0b63f6);
  --xy-home-orange: #f59e0b;
  --xy-home-green: #20bf6b;
  --xy-home-bg: var(--xy-console-bg, #f3f6fb);
  --xy-home-panel: #ffffff;
  --xy-home-line: var(--xy-console-line, #e5eaf3);
  --xy-home-soft: #f8fafc;
  --xy-home-text: #1f2a44;
  --xy-home-muted: #667085;
  --xy-home-side: var(--xy-console-side, 228px);
  --xy-home-head: var(--xy-console-head, 64px);
}

.xy-consume-chart {
  position: relative;
  overflow: visible;
}

.xy-consume-total b {
  margin-left: 6px;
  color: #ff4d5f;
  font-weight: 600;
}

.xy-consume-total a {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: #1f2937;
  background: transparent;
  text-decoration: none;
  font-weight: 600;
}

.xy-consume-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.xy-consume-area {
  fill: url(#xyConsumeArea);
}

.xy-consume-line {
  fill: none;
  stroke: #42caff;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.xy-consume-guide {
  stroke: #b8c7da;
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

.xy-consume-dot {
  fill: #42caff;
  stroke: #ffffff;
  stroke-width: 2;
}

.xy-consume-hit {
  fill: transparent;
  outline: none;
  cursor: pointer;
}

.xy-consume-tooltip {
  position: absolute;
  z-index: 2;
  min-width: 98px;
  padding: 10px 12px;
  color: #677386;
  background: #ffffff;
  border: 1px solid #edf1f6;
  border-radius: 4px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
  transform: translateX(-50%);
  pointer-events: none;
}

.xy-consume-tooltip strong,
.xy-consume-tooltip span {
  display: block;
  white-space: nowrap;
}

.xy-consume-tooltip strong {
  margin-bottom: 7px;
  color: #5f6b7c;
  font-size: 14px;
  font-weight: 500;
}

.xy-consume-tooltip span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #5f6b7c;
  font-size: 13px;
}

.xy-consume-tooltip i {
  width: 10px;
  height: 10px;
  background: #42caff;
  border-radius: 50%;
}

.xy-consume-tooltip b {
  margin-left: auto;
  color: #667085;
  font-weight: 700;
}

.xy-home-admin-page {
  --xy-console-side: 216px;
  min-height: 100vh;
  background: var(--xy-home-bg);
}

.xy-home-admin-page .home-main {
  background: var(--xy-home-bg) !important;
}

@media (min-width: 769px) {
  .template.xy-home-admin-page > .el-container > .el-container {
    width: calc(100vw - var(--xy-console-side)) !important;
    max-width: calc(100vw - var(--xy-console-side)) !important;
    flex: 0 0 calc(100vw - var(--xy-console-side)) !important;
    margin-left: var(--xy-console-side) !important;
  }

  .template.xy-home-admin-page.xy-console-sidebar-hidden > .el-container > .el-container {
    width: calc(100vw - var(--xy-console-side-collapsed)) !important;
    max-width: calc(100vw - var(--xy-console-side-collapsed)) !important;
    flex: 0 0 calc(100vw - var(--xy-console-side-collapsed)) !important;
    margin-left: var(--xy-console-side-collapsed) !important;
  }

  .template.xy-home-admin-page > .el-container .home-main,
  .template.xy-home-admin-page.xy-console-sidebar-hidden > .el-container .home-main {
    padding: 8px 8px 20px 0 !important;
  }
}

.xy-home-shell {
  width: 100%;
  min-width: 0;
}

@media (min-width: 769px) {
  .xy-home-shell {
    display: grid;
    gap: 12px;
    width: 100%;
    margin-left: 0;
  }

  .xy-home-grid {
    display: grid;
    gap: 12px;
  }

  .xy-home-grid-top {
    grid-template-columns: minmax(360px, 1fr) minmax(360px, 1fr) minmax(390px, 1fr);
  }

  .xy-home-grid-middle {
    grid-template-columns: minmax(0, 1.8fr) minmax(390px, 0.9fr);
  }

  .xy-home-grid-bottom {
    grid-template-columns: minmax(0, 1.8fr) minmax(390px, 0.9fr);
  }

  .xy-home-card {
    min-width: 0;
    background: var(--xy-home-panel);
    border: 1px solid var(--xy-home-line);
    border-radius: 8px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
    overflow: hidden;
  }

  .xy-card-head {
    height: 54px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--xy-home-line);
  }

  .xy-card-head h3 {
    margin: 0;
    color: var(--xy-home-text);
    font-size: 16px;
    font-weight: 700;
  }

  .xy-consume-card .xy-card-head {
    border-bottom: 0;
  }

  .xy-card-head button {
    border: 0;
    background: transparent;
    color: var(--xy-home-blue);
    cursor: pointer;
  }

  .xy-account-type {
    padding: 6px 12px;
    color: #009a57;
    background: #eafaf2;
    border-radius: 16px;
    font-size: 12px;
  }

  .xy-account-main {
    min-height: 128px;
    padding: 20px 24px 14px;
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr) 128px;
    align-items: center;
    gap: 16px;
  }

  .xy-avatar {
    width: 104px;
    height: 104px;
    border: 6px solid #eaf4ff;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--xy-home-blue), #60a5fa);
    font-size: 36px;
    font-weight: 700;
    cursor: pointer;
  }

  .xy-welcome {
    margin: 0 0 12px;
    color: #7e899a;
    font-size: 13px;
  }

  .xy-account-text h2 {
    margin: 0 0 12px;
    color: var(--xy-home-blue);
    font-size: 24px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .xy-member-id {
    height: 28px;
    padding: 0 10px;
    color: #667085;
    background: #f8fafc;
    border: 1px solid #dce3ed;
    border-radius: 4px;
    cursor: pointer;
  }

  .xy-agent-btn,
  .xy-primary-btn {
    height: 36px;
    padding: 0 24px;
    color: #ffffff;
    background: var(--xy-home-blue);
    border: 1px solid var(--xy-home-blue);
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
  }

  .xy-agent-btn {
    color: var(--xy-home-blue);
    background: #ffffff;
    border-color: #b8d7ff;
  }

  .xy-account-status {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 0 24px 16px;
  }

  .xy-account-status .xy-status-link {
    height: 32px;
    width: 100%;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: #8a96a8;
    background: #fafafa;
    border: 1px solid #edf1f6;
    border-radius: 4px;
    appearance: none;
    box-sizing: border-box;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    line-height: 1;
    white-space: nowrap;
  }

  .xy-account-status .xy-status-link.is-ok {
    color: #10a762;
    background: #effcf5;
    border-color: #c9f2dd;
  }

  .xy-account-status .xy-status-link:hover {
    color: #1677ff;
    background: #f3f8ff;
    border-color: #b9d7ff;
  }

  .xy-finance-main {
    min-height: 126px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 20px;
    padding: 20px;
  }

  .xy-money-block span,
  .xy-finance-side span {
    display: block;
    color: #111827;
    font-size: 13px;
  }

  .xy-money-block strong {
    display: block;
    margin: 18px 0;
    color: var(--xy-home-blue);
    font-size: 24px;
  }

  .xy-money-block small,
  .xy-finance-side small {
    margin-right: 4px;
    font-size: 13px;
    font-weight: 400;
  }

  .xy-finance-side {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    border-left: 1px dashed var(--xy-home-line);
  }

  .xy-finance-side > div {
    padding-left: 24px;
  }

  .xy-finance-side strong {
    display: block;
    margin-top: 18px;
    color: #1f2937;
    font-size: 22px;
  }

  .xy-finance-side > div:nth-child(2) strong {
    color: #1e90ff;
  }

  .xy-card-tabs {
    height: 44px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 28px;
    padding: 0 20px;
    border-top: 1px solid var(--xy-home-line);
  }

  .xy-card-tabs a {
    color: #44566c;
    text-decoration: none;
    font-size: 14px;
  }

  .xy-consume-chart {
    position: relative;
    height: 158px;
    padding: 4px 18px 18px;
    overflow: visible;
  }

  .xy-consume-total {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 26px;
    padding: 0 20px;
    color: #39475c;
    font-size: 13px;
  }

  .xy-consume-total span {
    white-space: nowrap;
  }

  .xy-consume-total b {
    margin-left: 6px;
    color: #ff4d5f;
    font-size: 20px;
    font-weight: 600;
  }

  .xy-consume-total a {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 0;
    color: #1f2937;
    background: transparent;
    text-decoration: none;
    font-weight: 600;
  }

  .xy-consume-svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
  }

  .xy-consume-area {
    fill: url(#xyConsumeArea);
  }

  .xy-consume-line {
    fill: none;
    stroke: #42caff;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .xy-consume-guide {
    stroke: #b8c7da;
    stroke-width: 1;
    stroke-dasharray: 4 4;
  }

  .xy-consume-dot {
    fill: #42caff;
    stroke: #ffffff;
    stroke-width: 2;
  }

  .xy-consume-hit {
    fill: transparent;
    outline: none;
    cursor: pointer;
  }

  .xy-consume-tooltip {
    position: absolute;
    z-index: 2;
    min-width: 98px;
    padding: 10px 12px;
    color: #677386;
    background: #ffffff;
    border: 1px solid #edf1f6;
    border-radius: 4px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.14);
    transform: translateX(-50%);
    pointer-events: none;
  }

  .xy-consume-tooltip strong,
  .xy-consume-tooltip span {
    display: block;
    white-space: nowrap;
  }

  .xy-consume-tooltip strong {
    margin-bottom: 7px;
    color: #5f6b7c;
    font-size: 14px;
    font-weight: 500;
  }

  .xy-consume-tooltip span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #5f6b7c;
    font-size: 13px;
  }

  .xy-consume-tooltip i {
    width: 10px;
    height: 10px;
    background: #42caff;
    border-radius: 50%;
  }

  .xy-consume-tooltip b {
    margin-left: auto;
    color: #667085;
    font-weight: 700;
  }

  .xy-todo-card {
    min-height: 236px;
  }

  .xy-todo-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    padding: 20px;
  }

  .xy-todo-item {
    width: 100%;
    height: 74px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e5eef9;
    border-radius: 6px;
    cursor: pointer;
  }

  .xy-todo-item strong {
    color: var(--xy-home-blue);
    font-size: 22px;
    font-weight: 500;
  }

  .xy-service-main {
    min-height: 172px;
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
  }

  .xy-service-text {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
  }

  .xy-service-text h4 {
    margin: 0 0 6px;
    color: #1f2937;
    font-size: 18px;
    font-weight: 700;
  }

  .xy-service-text p {
    margin: 0;
    color: #6b7a90;
    line-height: 1.5;
  }

  .xy-service-qq-link {
    height: 34px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 0 0 auto;
    color: var(--xy-home-blue);
    background: #f4f9ff;
    border: 1px solid #d8eaff;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
  }

  .xy-service-qq-link img {
    width: 18px;
    height: 18px;
    object-fit: contain;
  }

  .xy-service-qrcode-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .xy-service-qrcode-card {
    margin: 0;
    min-width: 0;
    min-height: 172px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #dceafe;
    border-radius: 10px;
    text-align: center;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
  }

  .xy-service-qrcode-card:hover {
    border-color: #9fc7ff;
    box-shadow: 0 6px 14px rgba(22, 119, 255, 0.06);
  }

  .xy-service-qrcode-card img {
    width: 96px;
    height: 96px;
    flex: 0 0 auto;
    object-fit: contain;
    background: #ffffff;
    border-radius: 8px;
  }

  .xy-service-qrcode-card figcaption {
    width: 100%;
    min-width: 0;
    display: grid;
    gap: 4px;
  }

  .xy-service-qrcode-card strong {
    color: #1f2937;
    font-size: 14px;
    font-weight: 700;
  }

  .xy-service-qrcode-card span {
    overflow: hidden;
    color: #6b7a90;
    font-size: 13px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .xy-service-qrcode-card em {
    color: #64748b;
    font-size: 12px;
    font-style: normal;
    line-height: 1.35;
  }

  .xy-product-panel {
    min-height: 402px;
    padding: 12px 20px 20px;
    position: relative;
  }

  .xy-product-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .xy-product-row {
    min-width: 0;
    min-height: 72px;
    padding: 12px 16px;
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) 82px 112px 16px;
    align-items: center;
    gap: 12px;
    color: #20304a;
    background: #fbfdff;
    border: 1px solid #dbe9f8;
    border-radius: 5px;
    cursor: pointer;
    text-align: left;
  }

  .xy-product-row:hover {
    border-color: #b8d6f6;
    background: #f6fbff;
  }

  .xy-product-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #18b17d;
  }

  .xy-product-status.is-danger {
    background: var(--xy-home-orange);
  }

  .xy-product-info {
    min-width: 0;
    display: grid;
    gap: 6px;
  }

  .xy-product-info b,
  .xy-product-info em,
  .xy-product-time strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .xy-product-info b {
    color: #172033;
    font-size: 15px;
    font-weight: 600;
  }

  .xy-product-info em {
    color: #64748b;
    font-size: 13px;
    font-style: normal;
  }

  .xy-product-time {
    min-width: 0;
    display: grid;
    gap: 5px;
    text-align: right;
  }

  .xy-product-badge {
    min-width: 0;
    padding: 5px 9px;
    overflow: hidden;
    color: var(--xy-home-blue);
    background: #eef6ff;
    border-radius: 4px;
    font-size: 12px;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .xy-product-badge.is-danger {
    color: var(--xy-home-orange);
    background: #fff4ec;
  }

  .xy-product-time small {
    color: #8a96a8;
    font-size: 12px;
  }

  .xy-product-time strong {
    color: #52627a;
    font-size: 13px;
    font-weight: 500;
  }

  .xy-product-row i {
    color: #93a4ba;
    font-size: 16px;
  }

  .xy-product-empty {
    min-height: 180px;
    display: grid;
    place-content: center;
    gap: 12px;
  }

  .xy-product-empty p {
    margin: 0;
  }

  .xy-product-manage-grid {
    min-height: 0;
    padding: 16px 18px 18px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .xy-product-manage-item {
    position: relative;
    min-width: 0;
    min-height: 82px;
    padding: 14px 16px;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto 16px;
    align-items: center;
    gap: 12px;
    color: #172033;
    background: #ffffff;
    border: 1px solid #dce9f8;
    border-radius: 6px;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  }

  .xy-product-manage-item:hover b {
    color: var(--xy-home-blue);
  }

  .xy-product-manage-item:hover {
    border-color: #9bc7ff;
    box-shadow: 0 8px 18px rgba(22, 119, 255, 0.08);
    transform: translateY(-1px);
  }

  .xy-product-manage-item i {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--xy-home-blue);
    background: #eef6ff;
    border: 1px solid #d8eaff;
    border-radius: 6px;
    font-size: 22px;
    line-height: 1;
  }

  .xy-product-manage-item span {
    min-width: 0;
    display: grid;
    gap: 4px;
  }

  .xy-product-manage-item b {
    overflow: hidden;
    color: #172033;
    font-size: 16px;
    font-weight: 500;
    line-height: 22px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .xy-product-manage-item em {
    overflow: hidden;
    color: #6f7e93;
    font-size: 13px;
    font-style: normal;
    line-height: 18px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .xy-product-online-count {
    min-width: 58px;
    padding: 4px 8px;
    color: var(--xy-home-blue);
    background: #f2f8ff;
    border: 1px solid #d8eaff;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    text-align: center;
    white-space: nowrap;
  }

  .xy-product-manage-item::after {
    content: "";
    width: 7px;
    height: 7px;
    border-top: 1px solid #9aabc0;
    border-right: 1px solid #9aabc0;
    transform: rotate(45deg);
    justify-self: end;
  }

  .xy-product-manage-item:hover::after {
    border-color: var(--xy-home-blue);
  }

  .xy-news-list {
    padding: 14px 20px;
  }

  .xy-news-list button {
    width: 100%;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0;
    color: #4a5d75;
    background: transparent;
    border: 0;
    border-bottom: 1px dashed var(--xy-home-line);
    cursor: pointer;
  }

  .xy-news-list span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
  }

  .xy-news-list time {
    flex: 0 0 auto;
    color: #52627a;
  }

  .xy-empty {
    padding: 36px 20px;
    color: var(--xy-home-muted);
    text-align: center;
  }
}

@media (min-width: 1441px) {
  .xy-home-grid-middle,
  .xy-home-grid-bottom {
    grid-template-columns: minmax(360px, 1fr) minmax(360px, 1fr) minmax(390px, 1fr);
  }

  .xy-todo-card,
  .xy-product-manage-card {
    grid-column: 1 / 3;
  }
}

@media (max-width: 1440px) {
  .xy-home-grid-top {
    grid-template-columns: 1fr 1fr;
  }

  .xy-consume-card {
    grid-column: 1 / 3;
  }
}

@media (max-width: 1180px) {
  .xy-home-grid-top,
  .xy-home-grid-middle,
  .xy-home-grid-bottom {
    grid-template-columns: 1fr;
  }

  .xy-consume-card {
    grid-column: auto;
  }

  .xy-product-list {
    grid-template-columns: 1fr;
  }

  .xy-product-manage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .xy-todo-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .xy-home-admin-page .home-main {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .xy-home-shell,
  .xy-home-grid,
  .xy-account-text,
  .xy-product-info,
  .xy-product-time {
    min-width: 0;
  }

  .xy-home-shell,
  .xy-home-grid,
  .xy-account-main,
  .xy-finance-main,
  .xy-finance-side,
  .xy-todo-list,
  .xy-service-main,
  .xy-product-list,
  .xy-product-manage-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .xy-home-card {
    min-width: 0;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--xy-home-line);
    border-radius: 8px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
  }

  .xy-card-head {
    min-height: 50px;
    padding: 0 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-bottom: 1px solid var(--xy-home-line);
  }

  .xy-card-head h3 {
    margin: 0;
    color: var(--xy-home-text);
    font-size: 15px;
    font-weight: 700;
  }

  .xy-card-head button {
    color: var(--xy-home-blue);
    background: transparent;
    border: 0;
  }

  .xy-account-main,
  .xy-finance-main,
  .xy-service-main,
  .xy-product-panel,
  .xy-product-manage-grid,
  .xy-news-list {
    padding: 14px;
  }

  .xy-avatar {
    width: 76px;
    height: 76px;
    border: 5px solid #eaf4ff;
    border-radius: 50%;
    color: #ffffff;
    background: linear-gradient(135deg, var(--xy-home-blue), #60a5fa);
    font-size: 26px;
    font-weight: 700;
  }

  .xy-account-main {
    justify-items: start;
  }

  .xy-account-text h2 {
    max-width: 100%;
    margin: 0 0 10px;
    overflow: hidden;
    color: var(--xy-home-blue);
    font-size: 20px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .xy-welcome {
    margin: 0 0 8px;
    color: var(--xy-home-muted);
  }

  .xy-member-id,
  .xy-agent-btn,
  .xy-primary-btn {
    min-height: 34px;
    padding: 0 14px;
    border-radius: 4px;
  }

  .xy-agent-btn,
  .xy-primary-btn {
    color: #ffffff;
    background: var(--xy-home-blue);
    border: 1px solid var(--xy-home-blue);
  }

  .xy-account-status {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 0 14px 14px;
  }

  .xy-account-status span {
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8a96a8;
    background: #fafafa;
    border: 1px solid #edf1f6;
    border-radius: 4px;
  }

  .xy-account-status span.is-ok {
    color: #10a762;
    background: #effcf5;
    border-color: #c9f2dd;
  }

  .xy-money-block strong,
  .xy-finance-side strong,
  .xy-todo-item strong {
    color: var(--xy-home-blue);
  }

  .xy-card-tabs,
  .xy-service-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    padding: 12px 14px;
  }

  .xy-consume-chart {
    height: 150px;
    padding: 4px 12px 16px;
  }

  .xy-consume-total {
    padding: 12px 14px 0;
    justify-content: flex-start;
    gap: 8px 16px;
  }

  .xy-consume-total b {
    font-size: 18px;
  }

  .xy-consume-total a {
    flex: 1 1 100%;
  }

  .xy-consume-tooltip {
    min-width: 92px;
    padding: 8px 10px;
  }

  .xy-todo-item,
  .xy-product-manage-item {
    width: 100%;
    min-width: 0;
    min-height: 64px;
    padding: 12px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    color: #475569;
    background: #fbfdff;
    border: 1px solid #e5eef9;
    border-radius: 6px;
    text-align: left;
  }

  .xy-service-mark {
    width: 88px;
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--xy-home-blue);
    background: #f2f8ff;
    border: 1px dashed #bddcff;
    border-radius: 8px;
    font-size: 34px;
  }

  .xy-product-row {
    min-width: 0;
    padding: 12px;
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) auto;
    gap: 10px;
    background: #fbfdff;
    border: 1px solid #dbe9f8;
    border-radius: 6px;
  }

  .xy-product-badge,
  .xy-product-time,
  .xy-product-row > .el-icon-arrow-right {
    grid-column: 2 / 4;
    text-align: left;
  }

  .xy-product-info b,
  .xy-product-info em,
  .xy-product-manage-item b,
  .xy-product-manage-item em,
  .xy-news-list span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .xy-news-list button {
    width: 100%;
    min-height: 44px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: 0;
    border-bottom: 1px dashed var(--xy-home-line);
  }

  .xy-empty {
    padding: 30px 14px;
    color: var(--xy-home-muted);
    text-align: center;
  }
}

/* Xiaoyue home final polish: visual and safety-display only. */
.xy-home-admin-page,
.xy-home-admin-page .home-main,
.xy-home-shell {
  max-width: 100%;
  overflow-x: hidden;
}

.xy-home-admin-page .xy-home-card {
  background: #ffffff;
  border: 1px solid #e5eaf3;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(15, 35, 80, 0.04);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.xy-home-admin-page .xy-home-card:hover {
  border-color: #c9daf2;
  box-shadow: 0 8px 22px rgba(15, 35, 80, 0.06);
}

.xy-home-admin-page .xy-card-head {
  min-height: 54px;
  padding-left: 22px;
  padding-right: 22px;
}

.xy-home-admin-page .xy-card-head h3 {
  font-size: 16px;
  font-weight: 600;
}

.xy-home-admin-page .xy-card-head button {
  font-weight: 500;
}

.xy-home-admin-page .xy-card-head button:hover,
.xy-home-admin-page .xy-card-tabs a:hover,
.xy-home-admin-page .xy-consume-total a:hover {
  color: var(--xy-home-blue);
}

.xy-home-admin-page .xy-account-type,
.xy-home-admin-page .xy-member-id,
.xy-home-admin-page .xy-account-status span,
.xy-home-admin-page .xy-product-online-count {
  white-space: nowrap;
}

.xy-home-admin-page .xy-account-main {
  align-items: center;
}

.xy-home-admin-page .xy-account-text {
  min-width: 0;
}

.xy-home-admin-page .xy-avatar {
  line-height: 1;
}

.xy-home-admin-page .xy-account-status span {
  min-width: 0;
  height: 34px;
  padding: 0 10px;
  box-sizing: border-box;
}

.xy-home-admin-page .xy-account-status span i {
  flex: 0 0 auto;
}

.xy-home-admin-page .xy-money-block strong,
.xy-home-admin-page .xy-finance-side strong {
  line-height: 1.15;
}

.xy-home-admin-page .xy-card-tabs a {
  transition: color 0.18s ease;
}

.xy-home-admin-page .xy-consume-chart {
  max-width: 100%;
  box-sizing: border-box;
}

.xy-home-admin-page .xy-consume-empty {
  min-height: 158px;
}

.xy-home-admin-page .xy-todo-item {
  position: relative;
  box-sizing: border-box;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.xy-home-admin-page .xy-todo-item:hover {
  background: #f4f9ff;
  border-color: #bfd9ff;
  box-shadow: 0 6px 14px rgba(22, 119, 255, 0.06);
}

.xy-home-admin-page .xy-todo-item i {
  flex: 0 0 auto;
  color: #7f8fa8;
  font-size: 14px;
}

.xy-home-admin-page .xy-service-qrcode-card {
  min-height: 172px;
  box-sizing: border-box;
}

.xy-home-admin-page .xy-service-qrcode-card img,
.xy-home-admin-page .xy-service-qrcode-placeholder {
  width: 96px;
  height: 96px;
  flex: 0 0 96px;
  box-sizing: border-box;
}

.xy-home-admin-page .xy-service-qrcode-card img {
  object-fit: contain;
  image-rendering: auto;
}

.xy-home-admin-page .xy-service-qrcode-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #91a4bd;
  background: #f1f5f9;
  border: 1px dashed #cbd7e6;
  border-radius: 8px;
  font-size: 28px;
}

.xy-home-admin-page .xy-service-empty {
  min-height: 140px;
}

.xy-home-admin-page .xy-product-manage-item {
  min-height: 84px;
  border-radius: 8px;
  transform: none;
}

.xy-home-admin-page .xy-product-manage-item:hover {
  border-color: #8fbfff;
  box-shadow: 0 8px 18px rgba(22, 119, 255, 0.08);
  transform: none;
}

.xy-home-admin-page .xy-product-manage-item i {
  font-size: 20px;
}

.xy-home-admin-page .xy-product-manage-item b {
  font-weight: 600;
}

.xy-home-admin-page .xy-product-manage-item em {
  color: #64748b;
}

.xy-home-admin-page .xy-news-list button {
  min-height: 46px;
  height: auto;
  padding: 8px 0;
  box-sizing: border-box;
}

.xy-home-admin-page .xy-news-list span {
  display: -webkit-box;
  white-space: normal;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-height: 1.45;
}

.xy-home-admin-page .xy-news-list time {
  text-align: right;
}

.xy-home-admin-page .xy-empty {
  display: grid;
  place-items: center;
  gap: 8px;
  color: #8a97ab;
}

.xy-home-admin-page .xy-empty i {
  color: #b8c6d8;
  font-size: 28px;
}

.xy-home-admin-page .xy-empty strong {
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
}

.xy-home-admin-page .xy-empty span {
  color: #94a3b8;
  font-size: 12px;
}

@media (max-width: 768px) {
  .xy-home-admin-page .home-main {
    padding: 8px 10px 18px !important;
  }

  .xy-home-admin-page .xy-home-card {
    border-radius: 10px;
  }

  .xy-home-admin-page .xy-card-head {
    min-height: 50px;
    padding-left: 14px;
    padding-right: 14px;
  }

  .xy-home-admin-page .xy-account-main,
  .xy-home-admin-page .xy-finance-main,
  .xy-home-admin-page .xy-product-manage-grid,
  .xy-home-admin-page .xy-news-list {
    padding: 14px;
  }

  .xy-home-admin-page .xy-account-main {
    grid-template-columns: 76px minmax(0, 1fr);
    align-items: center;
  }

  .xy-home-admin-page .xy-agent-btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  .xy-home-admin-page .xy-account-status span {
    justify-content: flex-start;
  }

  .xy-home-admin-page .xy-finance-side {
    border-left: 0;
    border-top: 1px dashed var(--xy-home-line);
    padding-top: 12px;
  }

  .xy-home-admin-page .xy-finance-side > div {
    padding-left: 0;
  }

  .xy-home-admin-page .xy-todo-item {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .xy-home-admin-page .xy-service-qrcode-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .xy-home-admin-page .xy-service-qrcode-card {
    min-width: 0;
    min-height: 166px;
    margin: 0;
    padding: 12px;
    display: grid;
    justify-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #dceafe;
    border-radius: 10px;
    text-align: center;
  }

  .xy-home-admin-page .xy-service-qrcode-card img,
  .xy-home-admin-page .xy-service-qrcode-placeholder {
    width: 92px;
    height: 92px;
    flex-basis: 92px;
  }

  .xy-home-admin-page .xy-product-manage-item {
    grid-template-columns: 36px minmax(0, 1fr) auto;
  }

  .xy-home-admin-page .xy-product-manage-item::after {
    display: none;
  }

  .xy-home-admin-page .xy-product-online-count {
    justify-self: end;
  }

  .xy-home-admin-page .xy-news-list button {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (max-width: 480px) {
  .xy-home-admin-page .xy-service-qrcode-list {
    grid-template-columns: 1fr;
  }

  .xy-home-admin-page .xy-consume-total span {
    white-space: normal;
  }
}

.xy-home-admin-page {
  --xy-home-blue: #1677ff;
  --xy-home-blue-dark: #0b63f6;
  --xy-home-navy: #0b2f63;
  --xy-home-accent: #2563eb;
  --xy-home-orange-red: #e66a3a;
  --xy-home-card-shadow: 0 6px 18px rgba(15, 35, 80, 0.04);
}

.xy-home-admin-page > .el-container > .el-aside .el-menu-item,
.xy-home-admin-page > .el-container > .el-aside .el-submenu__title {
  height: 46px !important;
  line-height: 46px !important;
  margin: 2px 0;
  color: #20304a !important;
  font-size: 14px;
}

.xy-home-admin-page > .el-container > .el-aside .el-menu-item i,
.xy-home-admin-page > .el-container > .el-aside .el-submenu__title i {
  width: 18px;
  min-width: 18px;
  margin-right: 12px;
  color: #52657f !important;
  font-size: 16px !important;
  line-height: 1;
}

.xy-home-admin-page > .el-container > .el-aside .el-menu-item:hover,
.xy-home-admin-page > .el-container > .el-aside .el-submenu__title:hover {
  color: var(--xy-home-blue) !important;
  background: #f1f7ff !important;
}

.xy-home-admin-page > .el-container > .el-aside .el-menu-item:hover i,
.xy-home-admin-page > .el-container > .el-aside .el-submenu__title:hover i {
  color: var(--xy-home-blue) !important;
}

.xy-home-admin-page > .el-container > .el-aside .el-menu-item.is-active {
  color: var(--xy-home-blue) !important;
  background: #eaf4ff !important;
  font-weight: 600;
}

.xy-home-admin-page > .el-container > .el-aside .el-menu-item.is-active::before {
  top: 8px;
  width: 3px;
  height: 30px;
  background: var(--xy-home-blue);
}

.xy-home-admin-page > .el-container > .el-aside .el-menu-item.is-active i {
  color: var(--xy-home-blue) !important;
}

.xy-home-admin-page .xy-home-card {
  border-color: #e5eaf3;
  border-radius: 10px;
  box-shadow: var(--xy-home-card-shadow);
}

.xy-home-admin-page .xy-home-card:hover {
  border-color: #c9daf2;
  box-shadow: 0 8px 22px rgba(15, 35, 80, 0.055);
}

.xy-home-admin-page .xy-card-head {
  min-height: 54px;
  border-bottom-color: #e5eaf3;
}

.xy-home-admin-page .xy-card-head h3 {
  color: #1f2a44;
  font-size: 16px;
  font-weight: 600;
}

.xy-home-admin-page .xy-card-head button {
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
}

.xy-home-admin-page .xy-card-head button:hover {
  color: var(--xy-home-blue);
}

.xy-home-admin-page .xy-avatar {
  color: #ffffff;
  background: linear-gradient(135deg, #3d7fd1 0%, #74a9ea 100%);
  border-color: #e4f0ff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}

.xy-home-admin-page .xy-account-text h2 {
  color: #1f2a44;
  font-weight: 700;
}

.xy-home-admin-page .xy-account-type {
  color: #167155;
  background: #eaf8f2;
  border: 1px solid #ccefe0;
}

.xy-home-admin-page .xy-member-id {
  color: #64748b;
  background: #f8fafc;
  border-color: #dce7f4;
}

.xy-home-admin-page .xy-agent-btn {
  height: 36px;
  color: var(--xy-home-blue);
  background: #ffffff;
  border-color: #bfdcff;
}

.xy-home-admin-page .xy-agent-btn:hover {
  color: var(--xy-home-blue-dark);
  background: #f3f8ff;
  border-color: #92c3ff;
}

.xy-home-admin-page .xy-account-status {
  align-items: stretch;
}

.xy-home-admin-page .xy-account-status .xy-status-link {
  min-width: 0;
  height: 34px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #64748b;
  background: #f8fafc;
  border-color: #e1eaf5;
  border-radius: 6px;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}

.xy-home-admin-page .xy-account-status .xy-status-link.is-ok {
  color: #167155;
  background: #effaf5;
  border-color: #ccefe0;
}

.xy-home-admin-page .xy-account-status .xy-status-link i {
  font-size: 14px;
  line-height: 1;
}

.xy-home-admin-page .xy-money-block strong,
.xy-home-admin-page .xy-finance-side > div:nth-child(2) strong {
  color: var(--xy-home-accent);
}

.xy-home-admin-page .xy-primary-btn {
  background: var(--xy-home-blue);
  border-color: var(--xy-home-blue);
}

.xy-home-admin-page .xy-primary-btn:hover {
  background: var(--xy-home-blue-dark);
  border-color: var(--xy-home-blue-dark);
}

.xy-home-admin-page .xy-card-tabs a {
  color: #64748b;
  font-weight: 500;
}

.xy-home-admin-page .xy-consume-total b {
  color: var(--xy-home-orange-red);
  font-weight: 600;
}

.xy-home-admin-page .xy-consume-total a {
  color: #64748b;
  font-weight: 500;
}

.xy-home-admin-page .xy-consume-total a:hover {
  color: var(--xy-home-blue);
}

.xy-home-admin-page .xy-consume-svg stop:first-child {
  stop-color: #5ca7ff;
  stop-opacity: 0.28;
}

.xy-home-admin-page .xy-consume-svg stop:last-child {
  stop-color: #5ca7ff;
  stop-opacity: 0.05;
}

.xy-home-admin-page .xy-consume-line {
  stroke: #2f8dff;
  stroke-width: 2.25;
}

.xy-home-admin-page .xy-consume-dot {
  fill: #2f8dff;
}

.xy-home-admin-page .xy-consume-guide {
  stroke: #c7d5e8;
}

.xy-home-admin-page .xy-consume-tooltip {
  border-color: #e5eaf3;
  border-radius: 6px;
  box-shadow: 0 8px 18px rgba(15, 35, 80, 0.10);
}

.xy-home-admin-page .xy-todo-list {
  gap: 12px;
}

.xy-home-admin-page .xy-todo-item {
  height: 78px;
  padding: 0 14px;
  display: grid;
  grid-template-columns: 34px auto minmax(0, 1fr) 16px;
  justify-content: initial;
  gap: 10px;
  color: #475569;
  background: #f8fbff;
  border-color: #e5eaf3;
  border-radius: 8px;
  text-align: left;
}

.xy-home-admin-page .xy-todo-item::before {
  content: "";
  width: 34px;
  height: 34px;
  display: block;
  border: 1px solid #d8eaff;
  border-radius: 9px;
  background: #eef6ff;
  box-shadow: inset 0 0 0 5px rgba(255, 255, 255, 0.55);
}

.xy-home-admin-page .xy-todo-item:nth-child(2)::before {
  background: #fff7ed;
  border-color: #fed7aa;
}

.xy-home-admin-page .xy-todo-item:nth-child(3)::before {
  background: #fff1f2;
  border-color: #fecdd3;
}

.xy-home-admin-page .xy-todo-item:nth-child(4)::before {
  background: #f0f9ff;
  border-color: #bae6fd;
}

.xy-home-admin-page .xy-todo-item:nth-child(5)::before {
  background: #f5f3ff;
  border-color: #ddd6fe;
}

.xy-home-admin-page .xy-todo-item:nth-child(6)::before {
  background: #ecfdf5;
  border-color: #bbf7d0;
}

.xy-home-admin-page .xy-todo-item:hover {
  background: #f4f9ff;
  border-color: #9fc7ff;
  box-shadow: 0 6px 14px rgba(22, 119, 255, 0.06);
}

.xy-home-admin-page .xy-todo-item strong {
  color: var(--xy-home-blue);
  font-size: 22px;
  font-weight: 700;
  text-align: right;
}

.xy-home-admin-page .xy-todo-item span {
  min-width: 0;
  overflow: hidden;
  color: #64748b;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xy-home-admin-page .xy-todo-item i {
  justify-self: end;
  color: #94a3b8;
}

.xy-home-admin-page .xy-service-main {
  gap: 12px;
}

.xy-home-admin-page .xy-service-text {
  justify-content: center;
  text-align: center;
}

.xy-home-admin-page .xy-service-text p {
  color: #64748b;
  font-size: 13px;
}

.xy-home-admin-page .xy-service-qrcode-list {
  gap: 12px;
}

.xy-home-admin-page .xy-service-qrcode-card {
  min-height: 180px;
  padding: 16px;
  border-color: #dceafe;
  border-radius: 10px;
}

.xy-home-admin-page .xy-service-qrcode-card:hover {
  border-color: #9fc7ff;
  box-shadow: 0 6px 14px rgba(22, 119, 255, 0.06);
}

.xy-home-admin-page .xy-service-qrcode-card img,
.xy-home-admin-page .xy-service-qrcode-placeholder {
  width: 102px;
  height: 102px;
  flex-basis: 102px;
}

.xy-home-admin-page .xy-service-qrcode-card img {
  filter: contrast(1.06) saturate(1.04);
}

.xy-home-admin-page .xy-service-qrcode-card figcaption {
  justify-items: center;
  text-align: center;
}

.xy-home-admin-page .xy-service-qrcode-card strong {
  color: #1f2a44;
  font-size: 14px;
  font-weight: 600;
}

.xy-home-admin-page .xy-service-qrcode-card span,
.xy-home-admin-page .xy-service-qrcode-card em {
  color: #64748b;
}

.xy-home-admin-page .xy-product-manage-grid {
  gap: 12px;
}

.xy-home-admin-page .xy-product-manage-item {
  min-height: 88px;
  grid-template-columns: 42px minmax(0, 1fr) auto 16px;
  border-color: #e5eaf3;
}

.xy-home-admin-page .xy-product-manage-item:hover {
  border-color: #9fc7ff;
}

.xy-home-admin-page .xy-product-manage-item i {
  width: 40px;
  height: 40px;
  color: var(--xy-home-blue);
  background: #eef6ff;
  border-color: #d8eaff;
  font-size: 20px !important;
}

.xy-home-admin-page .xy-product-manage-item b {
  color: #1f2a44;
  font-weight: 600;
}

.xy-home-admin-page .xy-product-manage-item em {
  color: #64748b;
}

.xy-home-admin-page .xy-product-online-count {
  min-height: 24px;
  padding: 3px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--xy-home-blue);
  background: #f2f8ff;
  border-color: #d8eaff;
  border-radius: 999px;
}

.xy-home-admin-page .xy-product-manage-item::after {
  border-color: #94a3b8;
}

.xy-home-admin-page .xy-product-manage-item:hover::after {
  border-color: var(--xy-home-blue);
}

.xy-home-admin-page .xy-news-card .xy-card-head button {
  color: #64748b;
}

.xy-home-admin-page .xy-news-card .xy-card-head button:hover {
  color: var(--xy-home-blue);
}

.xy-home-admin-page .xy-news-list button:hover span {
  color: var(--xy-home-blue);
}

.xy-home-admin-page .xy-empty {
  min-height: 138px;
  padding: 28px 18px;
  color: #8a97ab;
}

.xy-home-admin-page .xy-empty i {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9fb3cc;
  background: #f3f7fc;
  border: 1px solid #e5eaf3;
  border-radius: 50%;
  font-size: 22px;
}

.xy-home-admin-page .xy-empty strong {
  color: #475569;
  font-size: 14px;
  font-weight: 600;
}

.xy-home-admin-page .xy-empty span {
  color: #94a3b8;
  font-size: 12px;
}

@media (max-width: 768px) {
  .xy-home-admin-page .xy-home-shell,
  .xy-home-admin-page .xy-home-grid,
  .xy-home-admin-page .xy-home-card {
    max-width: 100%;
  }

  .xy-home-admin-page .xy-home-card {
    border-radius: 10px;
  }

  .xy-home-admin-page .xy-card-head h3 {
    font-size: 15px;
  }

  .xy-home-admin-page .xy-account-status .xy-status-link {
    justify-content: flex-start;
  }

  .xy-home-admin-page .xy-todo-item {
    height: 72px;
    grid-template-columns: 32px auto minmax(0, 1fr) 14px;
    gap: 8px;
  }

  .xy-home-admin-page .xy-todo-item::before {
    width: 32px;
    height: 32px;
  }

  .xy-home-admin-page .xy-service-qrcode-card {
    min-height: 168px;
  }

  .xy-home-admin-page .xy-service-qrcode-card img,
  .xy-home-admin-page .xy-service-qrcode-placeholder {
    width: 92px;
    height: 92px;
    flex-basis: 92px;
  }

  .xy-home-admin-page .xy-product-manage-item {
    min-height: 82px;
    grid-template-columns: 38px minmax(0, 1fr) auto;
  }

  .xy-home-admin-page .xy-product-manage-item i {
    width: 36px;
    height: 36px;
  }
}

.xy-home-admin-page .xy-home-grid-middle {
  align-items: stretch;
}

.xy-home-admin-page .xy-todo-card {
  min-height: 0;
}

.xy-home-admin-page .xy-todo-list {
  padding-bottom: 18px;
}

.xy-home-admin-page .xy-service-card {
  align-self: stretch;
  display: flex;
  flex-direction: column;
}

.xy-home-admin-page .xy-service-main {
  min-height: 0;
  padding: 12px 20px 16px;
  justify-content: flex-start;
  gap: 10px;
}

.xy-home-admin-page .xy-service-text p {
  line-height: 1.35;
}

.xy-home-admin-page .xy-service-qrcode-list {
  gap: 10px;
}

.xy-home-admin-page .xy-service-qrcode-card {
  min-height: 142px;
  padding: 12px;
  gap: 6px;
}

.xy-home-admin-page .xy-service-qrcode-card img,
.xy-home-admin-page .xy-service-qrcode-placeholder {
  width: 82px;
  height: 82px;
  flex-basis: 82px;
}

.xy-home-admin-page .xy-service-qrcode-card figcaption {
  gap: 2px;
}

.xy-home-admin-page .xy-service-qrcode-card strong {
  line-height: 1.25;
}

.xy-home-admin-page .xy-service-qrcode-card span,
.xy-home-admin-page .xy-service-qrcode-card em {
  line-height: 1.25;
}

@media (max-width: 768px) {
  .xy-home-admin-page .xy-service-main {
    padding: 12px 14px 14px;
  }

  .xy-home-admin-page .xy-service-qrcode-card {
    min-height: 138px;
    padding: 10px;
  }

  .xy-home-admin-page .xy-service-qrcode-card img,
  .xy-home-admin-page .xy-service-qrcode-placeholder {
    width: 78px;
    height: 78px;
    flex-basis: 78px;
  }
}

.xy-home-admin-page .xy-service-card .xy-service-main {
  min-height: 0;
  padding: 20px 22px 22px;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(145px, 0.42fr) 1px minmax(0, 0.58fr);
  align-items: center;
  gap: 20px;
}

.xy-home-admin-page .xy-service-qr-panel {
  min-width: 0;
  display: grid;
  justify-items: center;
  align-content: center;
  align-self: center;
  gap: 11px;
  text-align: center;
}

.xy-home-admin-page .xy-service-main-qrcode {
  width: 128px;
  height: 128px;
  display: block;
  flex: 0 0 auto;
  object-fit: contain;
  background: #ffffff;
  border-radius: 6px;
  image-rendering: auto;
}

.xy-home-admin-page .xy-service-main-qrcode.xy-service-qrcode-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #16a34a;
  background: #f0fdf4;
  border: 1px dashed #bbf7d0;
  font-size: 32px;
}

.xy-home-admin-page .xy-service-wechat-label {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #16a34a;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.xy-home-admin-page .xy-service-wechat-label i {
  font-size: 15px;
  line-height: 1;
}

.xy-home-admin-page .xy-service-divider {
  width: 1px;
  min-height: 0;
  height: 76%;
  align-self: center;
  background: #e5eaf3;
}

.xy-home-admin-page .xy-service-manager-panel {
  min-width: 0;
  min-height: 158px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  align-content: stretch;
}

.xy-home-admin-page .xy-service-manager-panel h4 {
  margin: 0 0 13px;
  color: #1f2a44;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.xy-home-admin-page .xy-service-manager-list {
  margin: 0;
  display: grid;
  align-content: center;
  gap: 11px;
}

.xy-home-admin-page .xy-service-manager-list > div {
  min-width: 0;
  min-height: 20px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #334155;
  font-size: 14px;
  line-height: 1.42;
}

.xy-home-admin-page .xy-service-manager-list dt {
  margin: 0;
  flex: 0 0 auto;
  color: #64748b;
  font-weight: 500;
}

.xy-home-admin-page .xy-service-manager-list dd {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  color: #334155;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.xy-home-admin-page .xy-service-manager-list dd span {
  color: #64748b;
  font-weight: 400;
}

.xy-home-admin-page .xy-service-contact-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-self: end;
  gap: 10px 20px;
}

.xy-home-admin-page .xy-service-contact-link {
  min-width: 0;
  min-height: 32px;
  padding: 5px 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #2563eb;
  background: transparent;
  border: 0;
  border-radius: 0;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.25;
  white-space: nowrap;
}

.xy-home-admin-page .xy-service-contact-qq {
  cursor: pointer;
}

.xy-home-admin-page .xy-service-contact-qq:hover {
  color: #1d4ed8;
}

.xy-home-admin-page .xy-service-contact-link img {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  object-fit: contain;
}

.xy-home-admin-page .xy-service-contact-qq img {
  width: 18px;
  height: 18px;
  flex-basis: 18px;
}

.xy-home-admin-page .xy-service-contact-link b {
  min-width: 0;
  overflow: hidden;
  font-weight: 600;
  text-overflow: ellipsis;
}

.xy-home-admin-page .xy-service-contact-wechat {
  color: #16a34a;
}

@media (max-width: 768px) {
  .xy-home-admin-page .xy-service-card .xy-service-main {
    padding: 18px 16px 20px;
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 16px;
  }

  .xy-home-admin-page .xy-service-divider {
    display: none;
  }

  .xy-home-admin-page .xy-service-main-qrcode {
    width: 124px;
    height: 124px;
  }

  .xy-home-admin-page .xy-service-qr-panel {
    gap: 10px;
  }

  .xy-home-admin-page .xy-service-manager-panel {
    min-height: 0;
    grid-template-rows: none;
    justify-items: stretch;
  }

  .xy-home-admin-page .xy-service-manager-panel h4 {
    margin-bottom: 12px;
    text-align: center;
    font-size: 16px;
  }

  .xy-home-admin-page .xy-service-manager-list {
    align-content: start;
    gap: 10px;
  }

  .xy-home-admin-page .xy-service-manager-list > div {
    align-items: flex-start;
  }

  .xy-home-admin-page .xy-service-manager-list dd {
    white-space: normal;
  }

  .xy-home-admin-page .xy-service-contact-actions {
    margin-top: 14px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-self: auto;
    gap: 10px;
  }

  .xy-home-admin-page .xy-service-contact-link {
    justify-content: center;
    min-height: 36px;
    padding: 8px 10px;
    background: #f8fbff;
    border: 1px solid #e5eaf3;
    border-radius: 8px;
  }
}

@media (max-width: 480px) {
  .xy-home-admin-page .xy-service-contact-actions {
    grid-template-columns: 1fr;
  }
}

.xy-home-admin-page .xy-finance-card .xy-card-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  align-items: stretch;
}

.xy-home-admin-page .xy-finance-card .xy-card-tabs a {
  min-width: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 8px;
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 560px) {
  .xy-home-admin-page .xy-finance-card .xy-card-tabs {
    height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .xy-home-admin-page .xy-finance-card .xy-card-tabs a {
    min-height: 40px;
  }
}

.xy-home-admin-page .xy-todo-item {
  grid-template-columns: 36px auto minmax(0, 1fr) 16px;
}

.xy-home-admin-page .xy-todo-item::before {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 19px 19px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.68), 0 4px 10px rgba(22, 119, 255, 0.06);
}

.xy-home-admin-page .xy-todo-item:nth-child(1)::before {
  background-color: #eef6ff;
  border-color: #cfe3ff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none' stroke='%231677ff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='14' height='5' rx='1.5'/%3E%3Crect x='3' y='11' width='14' height='5' rx='1.5'/%3E%3Cpath d='M6 6.5h.01M6 13.5h.01M10 8.5h4M10 15.5h4'/%3E%3C/svg%3E");
}

.xy-home-admin-page .xy-todo-item:nth-child(2)::before {
  background-color: #fff7ed;
  border-color: #fed7aa;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none' stroke='%23f59e0b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10' cy='10.5' r='6.5'/%3E%3Cpath d='M10 7v4l3 1.8M5.2 4.6 4 3.5M14.8 4.6 16 3.5'/%3E%3C/svg%3E");
}

.xy-home-admin-page .xy-todo-item:nth-child(3)::before {
  background-color: #fff1f2;
  border-color: #fecdd3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none' stroke='%23ef4444' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 3 18 17H2L10 3Z'/%3E%3Cpath d='M10 8v4M10 15h.01'/%3E%3C/svg%3E");
}

.xy-home-admin-page .xy-todo-item:nth-child(4)::before {
  background-color: #f0f9ff;
  border-color: #bae6fd;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none' stroke='%230ea5e9' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='14' height='10' rx='2'/%3E%3Cpath d='M3 8h14M6 12h3'/%3E%3C/svg%3E");
}

.xy-home-admin-page .xy-todo-item:nth-child(5)::before {
  background-color: #f5f3ff;
  border-color: #ddd6fe;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none' stroke='%238b5cf6' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5' y='4' width='10' height='13' rx='2'/%3E%3Cpath d='M8 4.5h4M8 9h4M8 12h4M8 15h2'/%3E%3C/svg%3E");
}

.xy-home-admin-page .xy-todo-item:nth-child(6)::before {
  background-color: #ecfdf5;
  border-color: #bbf7d0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none' stroke='%2316a34a' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5.5' width='14' height='10' rx='2'/%3E%3Cpath d='m4 7.5 6 4 6-4'/%3E%3Ccircle cx='15.2' cy='5.2' r='2.2' fill='%2322c55e' stroke='%23ffffff' stroke-width='1.3'/%3E%3C/svg%3E");
}

.xy-home-admin-page .xy-todo-item:nth-child(-n + 6)::before {
  background-repeat: no-repeat;
  background-position: center;
  background-size: 19px 19px;
}

@media (max-width: 768px) {
  .xy-home-admin-page .xy-todo-item {
    grid-template-columns: 34px auto minmax(0, 1fr) 14px;
  }

  .xy-home-admin-page .xy-todo-item::before {
    width: 34px;
    height: 34px;
    background-size: 18px 18px;
  }

  .xy-home-admin-page .xy-todo-item:nth-child(-n + 6)::before {
    background-size: 18px 18px;
  }
}

.xy-home-admin-page:not(.xy-console-sidebar-hidden) > .el-container > .el-aside .el-menu-item,
.xy-home-admin-page:not(.xy-console-sidebar-hidden) > .el-container > .el-aside .el-submenu__title {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  line-height: 1 !important;
}

.xy-home-admin-page:not(.xy-console-sidebar-hidden) > .el-container > .el-aside .el-submenu__title {
  padding-right: 38px !important;
}

.xy-home-admin-page:not(.xy-console-sidebar-hidden) > .el-container > .el-aside .el-menu-item > i.iconfont,
.xy-home-admin-page:not(.xy-console-sidebar-hidden) > .el-container > .el-aside .el-submenu__title > i.iconfont:not(.el-submenu__icon-arrow) {
  width: 20px;
  min-width: 20px;
  height: 20px;
  margin-right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 20px;
  font-size: 16px !important;
  line-height: 20px !important;
  vertical-align: middle;
}

.xy-home-admin-page:not(.xy-console-sidebar-hidden) > .el-container > .el-aside .el-submenu__title .el-submenu__icon-arrow {
  position: absolute;
  top: 50%;
  right: 18px;
  width: 16px;
  min-width: 16px;
  height: 16px;
  margin: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b !important;
  font-size: 12px !important;
  line-height: 16px !important;
  transform: translateY(-50%);
  transform-origin: center;
}

.xy-home-admin-page:not(.xy-console-sidebar-hidden) > .el-container > .el-aside .el-submenu.is-opened > .el-submenu__title .el-submenu__icon-arrow {
  transform: translateY(-50%) rotateZ(180deg);
}
