.body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 14px; /* 基础字号，手机端自适应 */
}

.first-child {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* 可选：设置z-index控制层级 */
    z-index: 100;
    display: flex;
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
}

.mdui-chip-online {
    color: green;
    background-color: #00ff2e26;
    border-color: #00ff2e26;
}

.mdui-chip-offline {
    color: red;
    background-color: #ff000026;
    border-color: #ff000026;
}

.mdui-chip-yellow {
    color: #434343;
    background-color: #ffaf00;
    border-color: #ffaf00;
}

.mdui-chip-orange {
    color: #e8e8e8;
    background-color: #ed7621;
    border-color: #ed7621;
}

.mdui-chip-blue {
    color: #434343;
    background-color: #0082aa;
    border-color: #0082aa;
}

.mdui-chip-default {
    color: #fff;
    background-color: rgb(var(--mdui-color-primary));
    border-color: rgb(var(--mdui-color-primary));
}

.mdui-chip-default > button {
    padding-right: 0.25rem !important;
    padding-left: 0.25rem !important;
}

.mdui-switch-tr {
    transform: scale(0.8);
}

.button-delete {
    background-color: #ff000052;
}

.button-yellow {
    background-color: rgba(255, 196, 2, 0.8);
}

.table-scroll-container {
    width: 100%; /* 容器宽度，可设固定值如800px，或100%自适应 */
    max-width: 100%; /* 限制最大宽度，触发横向滚动 */
    max-height: 70vh;
    overflow: auto !important; /* 核心：内容溢出时显示滚动条 */
    border: 1px solid #eee; /* 可选：容器边框，和表格边框呼应 */
}

.table-scroll-container::-webkit-scrollbar {
    width: 6px; /* 纵向滚动条宽度 */
    height: 6px; /* 横向滚动条高度 */
}

.table-scroll-container::-webkit-scrollbar-thumb {
    background-color: #ddd;
    border-radius: 3px;
}

.table-scroll-container::-webkit-scrollbar-track {
    background-color: #f5f5f5;
}

.edit-account-select-container {
    display: flex;
    align-items: center;
    gap: 1rem
}

.cell-content {
    display: inline-flex !important; /* 弹性布局，保证元素垂直对齐 */
    align-items: center !important; /* 子元素垂直居中 */
    justify-content: center !important; /* 子元素水平居中 */
}

.combo-content {
    display: flex;
    flex-direction: column;
    max-height: 100px;
}

.combo-content-row {
    display: flex;
    flex-direction: row;
}

/* 核心：缩小mdui-table整体样式（自定义class：mdui-table-sm） */
.mdui-table.mdui-table-sm {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    font-size: 14px !important; /* 默认14px，缩小为12px */
    line-height: 1.2 !important; /* 行高适配小字体 */
    border-spacing: 0 !important; /* 消除单元格间距 */
    width: 100%; /* 保持宽度自适应，可改为固定宽度如600px */
}

/* 缩小表头样式 */
.mdui-table-sm thead > tr > th {
    padding: 6px 8px !important; /* 默认12px，缩小内边距 */
    height: 36px !important; /* 表头行高缩小 */
    font-size: 14px !important;
    font-weight: 500 !important; /* 保持表头加粗但不夸张 */
    position: sticky;
    top: 0;
    background: rgb(var(--mdui-color-surface-container-low));
    z-index: 10;
}

/* 缩小tbody单元格样式 */
.mdui-table-sm tbody > tr > td {
    padding: 4px 8px !important; /* 核心：大幅缩小单元格内边距 */
    height: 32px !important; /* 行高缩小（默认48px） */
    font-size: 14px !important;
    vertical-align: middle !important; /* 内容垂直居中 */
    text-align: center
}

/* 缩小表格边框（可选，更精致） */
.mdui-table-sm,
.mdui-table-sm th,
.mdui-table-sm td {
    border-width: 1px !important; /* 边框宽度保持1px，避免过粗 */
    border-color: #eee !important; /* 浅边框更适配小表格 */
}

/* 适配表格内的mdui-switch（同步缩小） */
.table-switch {
    transform: scale(0.75) !important; /* 开关同步缩小到75% */
    transform-origin: left center !important;
    margin: 0 !important;
    display: inline-block !important;
}

.scroll-cell {
    /* 固定宽度，超出则显示滚动条 */
    max-width: 100px;
    /* 核心：让单元格内容可滚动 */
    overflow: auto;
    /* 防止内容换行（可选，根据需求调整） */
    white-space: nowrap;
    /* 重置单元格默认的垂直对齐，避免滚动条错位 */
    vertical-align: top;
}

.scroll-cell::-webkit-scrollbar {
    height: 6px; /* 水平滚动条高度 */
    width: 6px;  /* 垂直滚动条宽度 */
}
.scroll-cell::-webkit-scrollbar-thumb {
    background-color: #ddd;
    border-radius: 3px;
}

.center-card {
    width: 90%; /* 手机端占90%宽度 */
    max-width: 600px; /* 电脑端最大宽度，避免太宽 */
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); /* 可选：增强阴影 */
}

.admin-top-bar {
    background-color: rgb(var(--mdui-color-surface-container));
}

.container-list {
    flex-direction: column;
    align-items: center;
    display: flex;
    box-sizing: border-box;
    margin: 0 auto;
}

.card-list {
    flex-direction: column;
    align-items: center;
    display: flex;
    box-sizing: border-box;
    margin: 0 auto;
    overflow-y: auto;
}

.card-data-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.card-data-chart {
    display: grid;
    gap: 1rem;
    grid-auto-rows: auto;
    grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
}

.card-data-echarts {
    display: grid;
    gap: 1rem;
    grid-auto-rows: auto;
    grid-template-columns: repeat(auto-fill, minmax(700px, 1fr));
}

.card-data-chart > mdui-card > div {
    margin: 20px;
}

.card-data-chart > mdui-card > div > div{
    display: flex;
    align-items: center;
    gap: 10px;
}

.chart-circular {
    margin: 30px;
    position: relative;
}

.chart-circular > div {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.chart-circular > div > div {
    font-size: 12px;
    color: gray;
}

.chart-circular > mdui-circular-progress {
    left: 35%;
    width: 30%;
    height: 100%;
}

.chart-title {
    font-size: 32px;
    font-weight: bold;
}

.chart-subtitle {
    font-size: 18px;
}

.card-data-text {
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1.25rem 1.75rem 1.25rem;
    margin-top: 2rem;
}

.card-data-text > h1 {
    font-size: 2.2rem;
    font-weight: 600;
    margin: 0.25rem 0 0.5rem 0;
    letter-spacing: -0.01em;
    background: linear-gradient(135deg, #1e2b3c, #2c4c6c);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    /* 也可使用纯色深色，但为了现代感使用渐变，亦可保证深色易读，同时保留原始金额样式强调 */
    line-height: 1.2;
}

@media (max-width: 480px) {
    .card-data-chart {
        display: grid;
        gap: 1rem;
        grid-auto-rows: auto;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .card-data-echarts {
        display: grid;
        gap: 1rem;
        grid-auto-rows: auto;
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }

    .card-data-text > h1 {
        font-size: 2rem;
        font-weight: 600;
        margin: 0.25rem 0 0.5rem 0;
        letter-spacing: -0.01em;
        background: linear-gradient(135deg, #1e2b3c, #2c4c6c);
        background-clip: text;
        -webkit-background-clip: text;
        color: transparent;
        /* 也可使用纯色深色，但为了现代感使用渐变，亦可保证深色易读，同时保留原始金额样式强调 */
        line-height: 1.2;
    }

    .chart-title {
        font-size: 16px;
        font-weight: bold;
    }
}

.card-data-text > span {
    font-size: 0.9rem;
    color: #6c7a8e;
    font-weight: 500;
    letter-spacing: 0.3px;
    display: inline-block;
    background: #f0f2f5;
    padding: 0.25rem 0.9rem;
    border-radius: 30px;
    backdrop-filter: blur(2px);
}

.list-header {
    align-self: flex-start;
    padding-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navigation-drawer::part(panel) {
    background-color: rgb(var(--mdui-color-surface-container-low));
}

.layout-main {
    background-color: rgb(var(--mdui-color-surface-container-lowest));
}

.mdui-theme-light {
    background-color: rgba(59, 130, 246, 0.1);
}

.login-card {
    width: 100%;
    max-width: 420px;
    border-radius: 16px;
    overflow: hidden;
}

.login-header {
    background: rgb(var(--mdui-color-primary));
    color: white;
    padding: 24px;
    text-align: center;
}

.login-body {
    padding: 24px;
}

.form-item {
    margin-bottom: 16px;
}

.captcha-group {
    display: flex;
    align-items: center; /* 垂直居中对齐 */
    gap: 10px; /* 输入框和图片之间的间距 */
}

.responsive-img {
    width: 150px;
    /* 固定高度可能导致图片变形，推荐只设置一个维度 */
    max-height: 52px; /* 最大高度，不超过这个值 */
    object-fit: cover; /* 保持比例并裁剪多余部分（常用） */
    max-width: 100%;
}

.menu-card {
    width: 100%;
}

.price-group {
    width: 80%;
}

.price-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* 每行容器：分类 + 商品 + 输入框（关键：单行对齐） */
.price-row {
    display: flex;
    align-items: center; /* 整行垂直居中，统一对齐基准 */
    width: 100%;
}

/* 分类标签：每行固定宽度，仅第一行显示文字 */
.category-label {
    font-size: 14px;
    width: 150px; /* 固定宽度 */
    padding-right: 16px;
    box-sizing: border-box;
    display: inline-block;
    line-height: 28.8px; /* 匹配缩放后输入框高度 */
}

/* 商品+输入框组合容器 */
.product-input-wrap {
    display: flex;
    align-items: center; /* 垂直居中 */
    justify-content: space-evenly; /* 水平均匀分布 */
    flex: 1; /* 占据剩余宽度 */
}

/* 商品名称样式 */
.product-text {
    font-size: 14px;
    line-height: 28.8px;
    min-width: 180px; /* 固定最小宽度，保证对齐 */
    flex: 1;
}

.menuTabs {
    /* 设置最大高度300px */
    max-height: 300px;
    /* 启用垂直滚动，水平滚动隐藏 */
    overflow-y: auto;
    overflow-x: hidden;
    /* 确保高度计算正确 */
    display: flex;
    padding: 0 !important;
    margin: 0 !important;
    /* 关键3：确保容器高度计算正确，包含边框和内边距 */
    box-sizing: border-box;
    /* 关键4：防止内容溢出被裁剪 */
    align-items: flex-start;

}

.menu-price-p {
    color: red;
}

.menu-price-p > s {
    color: black;
}

#timeA::part(menu) {
    max-height: 300px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

.output_Goods_Combo::part(menu) {
    max-height: 300px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

/* 核心修复：给mdui-list-item清除默认内边距+强制撑满宽度 */
mdui-list-item.menu-list-item-container {
    width: 98%;
}

/* 让testB完全撑满test的宽度 */
.menu-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100% !important; /* 强制撑满父元素宽度（优先级拉满） */
    height: 100%;
    padding: 0 16px; /* 可选：手动加内边距，替代mdui的默认padding，保证内容不贴边 */
}

.menu-list-item-img {
    height: 100%;
    width: auto;
    object-fit: contain;
    max-width: 130px;
    flex-shrink: 0;
}

.menu-list-item > div {
    text-align: right;
    margin-left: 16px;
    flex-shrink: 0;
}

.menu-list-item p {
    margin: 0;
    line-height: 1.5;
}

.menu-list-item mdui-chip {
    color: white;
    background-color: red;
    border: 0;
    padding: 2px 8px;
    margin-top: 4px;
}

.round-item-p {
    font-size: 18px;
    padding-left: 25px;
}

.round-item-div {
    display: flex;
    align-items: center;
    justify-content: center
}

.round-item-div-container {
    width: 95%;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.combo-item-card {
    width: 160px;
    min-height: 230px;
    max-height: 320px;
    margin-left: 30px;
    margin-bottom: 30px;
    user-select: none;
}

.combo-item-container {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
}

.combo-item-img {
    width: auto;
    object-fit: contain;
    max-width: 160px;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .combo-item-card {
        width: 140px;
        min-height: 230px;
        max-height: 320px;
        margin-left: 5px;
        margin-bottom: 5px;
        user-select: none;
    }

    .combo-item-img {
        width: auto;
        object-fit: contain;
        max-width: 140px;
        flex-shrink: 0;
    }
}

.combo-item-p-name {
    font-size: 14px;
}

.combo-item-p-price {
    font-size: 15px;
    padding-left: 25px;
    color: red;
}

.custom-text-field {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 56px;
    box-sizing: border-box;
    box-shadow: inset 0 0 0 .0625rem rgb(var(--mdui-color-outline));
    border-radius: var(--mdui-shape-corner-extra-small);
    font-family: var(--mdui-font-family);
    font-size: 16px;
    line-height: 24px;
    align-items: center;
}

.custom-text-field__label {
    margin: 0 -.25rem;
    position: absolute;
    top: 0;
    left: 12px;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 12px;
    color: var(--mdui-color-on-surface-variant);
    background-color: rgb(var(--mdui-color-background));
    padding: 0 4px;
    white-space: nowrap;
}

.custom-text-field__container {
    margin-left: 15px;
    margin-right: 15px;
    gap: 8px 12px;
    height: 100%;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
}

@media (max-width: 480px) {
    .login-card {
        max-width: 100%;
        margin: 0 auto;
    }

    .login-body {
        padding: 16px;
    }

    .login-header {
        padding: 16px;
    }

    /* 验证码区域移动端适配 */
    .form-item.mdui-row {
        flex-direction: column;
    }

    .mdui-col-xs-8, .mdui-col-xs-4 {
        width: 100%;
    }

    .mdui-col-xs-4 {
        margin-top: 12px;
        text-align: left !important;
    }

    .mdui-col-xs-4 img {
        margin-top: 8px !important;
        max-width: 120px;
    }
}

@media (max-height: 600px) {
    body {
        align-items: flex-start;
        padding-top: 20px;
    }
}

.goods-list {
    display: flex;
    align-items: center;
    flex-direction: row;
    margin: 1rem;
}

.dialog-goods-code {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.city-list-div-container {
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.city-list-div {
    width: 98%;
    margin: 1rem;
}

.city-list {
    max-height: 50vh;
    overflow-y: scroll;
}

.city-history-list {
    max-height: 20vh;
    overflow-y: scroll;
}

.city-list-item {
    margin: 1rem;
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.city-list-item-title-container {
    font-size: 20px;
    font-weight: bold;
    display: block
}

.city-list-item-text-container {
    font-size: 15px;
    display: flex;
    align-items: center;
}

.city-list-item-icon {
    font-size: 20px
}

.order-button-container {
    width: 100%;
    display: flex;
    justify-content: center;
}

.order-dialog-button-container {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.order-title-container {
    display: flex;
    align-items: center;
    margin: 1rem;
    font-size: 20px;
    justify-content: space-between;
}

.order-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.order-description {
    display: flex;
    margin-left: 1rem;
    align-items: center;
    justify-content: space-between;
    width: 95%;
}

.order-card {
    width: 100%;
    margin-top: 1rem;
}

.order-input-container {
    display: flex;
    align-items: center;
    margin-left: 1rem;
    width: 95%
}

.order-back-button {
    display: flex;
    align-items: center;
    font-size: 15px;
    justify-content: space-between;
}

.order-city-input-container {
    height: 5%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.order-city-list-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-around;
}

.order-city-list-name {
    margin-top: 2rem;
    max-height: 80vh;
    overflow-y: scroll;
}

.order-city-list-sort {
    width: 40px;
    position: fixed;
    right: 2%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
}

.order-segmented-container {
    display: flex;
    align-items: center;
    margin-left: 1rem;
    font-size: 20px;
}

.order-submit {
    width: 100%;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.order-main-container {
    height: 95vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
@supports (height: 1svh) {
    .order-main-container {
        height: 95svh;
    }
}

.order-wait {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
    margin-left: 1rem;
    margin-right: 1rem;
}

.order-booking-list {
    max-height: 300px;
    overflow-y: scroll;
}

.index-top-app-container {
    margin-left: 2rem;
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 15px;
}

.index-top-app-item-container {
    margin-right: 3rem;
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 15px;
}

.index-home {
    width: 100%;
    background-color: rgba(var(--mdui-color-on-secondary-container-dark))
}

.index-home-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    min-height: 500px;
}

.index-home-container h1{
    font-size: 3.5rem;
    margin: 0;
}

.index-home-container p {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.index-home-button-container {
    display: flex;
    gap: 2rem;
}

.index-advantages-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    padding-bottom: 5rem;
}

.index-title-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.index-title-container p {
    font-size: 1.5rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.index-title-container h2 {
    font-size: 3rem;
    margin: 0;
}

.index-item-container {
    display: flex;
    flex-wrap: wrap;
    gap: 5rem;
    justify-content: center;
}

.index-item-container mdui-card {
    width: 350px;
    height: 250px
}

.index-item {
    width: 350px;
    height: 150px;
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: center;
}

.support-body {
    background: linear-gradient(145deg, #f5f7fc 0%, #eef2f8 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    font-family: 'Roboto', system-ui, -apple-system, 'Segoe UI', 'Helvetica Neue', sans-serif;
}

.maintenance-card {
    max-width: 560px;
    width: 100%;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(0px);
    transition: all 0.25s ease;
}

.animate-pulse {
    animation: softPulse 2s infinite ease-in-out;
}

@keyframes softPulse {
    0% { transform: scale(1); opacity: 0.9; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); opacity: 0.9; }
}

/* 确保响应式内边距舒适 */
@media (max-width: 600px) {
    body {
        padding: 16px;
    }
    .maintenance-card {
        border-radius: 28px;
    }
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffe8df;
    padding: 6px 16px 6px 12px;
    border-radius: 100px;
    color: #c73606;
    font-weight: 500;
}