/* 首页 · Apple / iOS 风格（仅 body.page-front） */

:root {
    --ios-bg: #f2f2f7;
    --ios-card: #ffffff;
    --ios-label: #8e8e93;
    --ios-text: #000000;
    --ios-blue: #007aff;
    --ios-blue-press: #0062d9;
    --ios-sep: rgba(60, 60, 67, 0.29);
    --ios-sep-light: rgba(60, 60, 67, 0.12);
    --ios-search-bg: rgba(118, 118, 128, 0.12);
    /* 顶栏快捷入口：新建订单 / 收款码（同为实心胶囊，蓝 / 绿） */
    --ios-top-new-bg: linear-gradient(165deg, #288bff 0%, #007aff 38%, #0066dd 100%);
    --ios-top-new-shadow: 0 2px 10px rgba(0, 122, 255, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.28);
    --ios-top-pay-bg: linear-gradient(165deg, #34c759 0%, #2fb350 38%, #30c85a 100%);
    --ios-top-pay-shadow: 0 2px 10px rgba(52, 199, 89, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.28);
    --ios-danger: #ff3b30;
    --ios-orange: #c65a00;
    --ios-purple: #af52de;
    --ios-success-bg: rgba(52, 199, 89, 0.12);
    --ios-success-text: #248a3d;
    --ios-radius-lg: 12px;
    --ios-radius-xl: 14px;
    --ios-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    --ios-shell-max: 430px;
    --ios-shell-pad-x: 16px;
    --ios-tabbar-height: 64px;
    --ios-tabbar-icon-box: 32px;
    --ios-tabbar-icon-size: 28px;
    --ios-tabbar-label-size: 11px;
}

html {
    -webkit-text-size-adjust: 100%;
}

body.page-front {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "PingFang SC", "Helvetica Neue", sans-serif;
    background: var(--ios-bg);
    color: var(--ios-text);
    line-height: 1.4;
    -webkit-tap-highlight-color: transparent;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

body.page-front a {
    color: var(--ios-blue);
    text-decoration: none;
}

body.page-front a:active {
    opacity: 0.55;
}

.ios-shell {
    max-width: var(--ios-shell-max);
    margin: 0 auto;
    padding: calc(12px + env(safe-area-inset-top, 0)) var(--ios-shell-pad-x)
        calc(var(--ios-tabbar-height) + env(safe-area-inset-bottom, 0) + 8px);
}

/* 查询订单 */
.ios-search-card {
    margin-top: 8px;
    background: var(--ios-card);
    border-radius: var(--ios-radius-xl);
    box-shadow: var(--ios-shadow);
    padding: 12px 14px;
}

/* 搜索卡片：桌号搜索（快捷导航已移至底部悬浮栏） */
body.page-front .ios-search-topline {
    display: block;
}

body.page-front .ios-search-topline .ios-search-form--topline .ios-search-row {
    min-width: 0;
}

body.page-front .ios-search-toplink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 8px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    border-radius: 11px;
    background: var(--ios-top-new-bg);
    box-shadow: var(--ios-top-new-shadow);
    text-shadow: 0 0.5px 1px rgba(0, 0, 0, 0.12);
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, opacity 0.12s ease;
}

body.page-front .ios-search-toplink:visited {
    color: #fff;
}

body.page-front .ios-search-toplink:active {
    background: linear-gradient(165deg, #006ee6 0%, #0062d9 38%, #0058c7 100%);
    box-shadow: 0 1px 5px rgba(0, 122, 255, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transform: scale(0.98);
    opacity: 1;
}

body.page-front .ios-search-toplink--admin {
    background: linear-gradient(165deg, #aeaeb2 0%, #8e8e93 40%, #7c7c80 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

body.page-front .ios-search-toplink--admin:visited {
    color: #fff;
}

body.page-front .ios-search-toplink--admin:active {
    background: linear-gradient(165deg, #8e8e93 0%, #6d6d72 40%, #57575a 100%);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transform: scale(0.98);
    opacity: 1;
}

body.page-front .ios-search-topline-actions .ios-pay-qr-open-btn--topline {
    min-height: 44px;
    padding: 0 10px;
    border-radius: 11px;
    background: var(--ios-top-pay-bg);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    box-shadow: var(--ios-top-pay-shadow);
    text-shadow: 0 0.5px 1px rgba(0, 0, 0, 0.12);
    transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

body.page-front .ios-search-topline-actions .ios-pay-qr-open-btn--topline:active {
    background: linear-gradient(165deg, #2fb350 0%, #2aa849 38%, #2bad4d 100%);
    box-shadow: 0 1px 5px rgba(52, 199, 89, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transform: scale(0.98);
}

@media (min-width: 360px) {
    body.page-front .ios-search-toplink {
        padding: 0 10px;
        font-size: 13px;
    }

    body.page-front .ios-search-topline-actions .ios-pay-qr-open-btn--topline {
        font-size: 13px;
    }
}

.ios-search-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--ios-label);
    margin-bottom: 8px;
    display: block;
}

.ios-search-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.ios-search-field-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--ios-search-bg);
    border-radius: 10px;
    padding: 0 10px;
    min-height: 44px;
}

.ios-search-field-wrap svg {
    flex-shrink: 0;
    opacity: 0.45;
}

.ios-search-input {
    flex: 1;
    border: 0;
    background: transparent;
    font-size: 17px;
    color: var(--ios-text);
    min-width: 0;
    outline: none;
}

.ios-search-input::placeholder {
    color: rgba(60, 60, 67, 0.45);
}

.ios-btn-search {
    flex-shrink: 0;
    min-width: 72px;
    border: 0;
    border-radius: 10px;
    background: var(--ios-blue);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 0 14px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.ios-btn-search:active {
    background: var(--ios-blue-press);
}

/* 分组列表 */
.ios-section-title {
    margin: 22px 0 8px 16px;
    font-size: 13px;
    font-weight: 400;
    color: var(--ios-label);
    text-transform: uppercase;
    letter-spacing: -0.08px;
}

/* 与订单小票「全票数」等标签同字号（桌号搜索标题、新建订单等） */
body.page-front .ios-section-title-lg {
    font-size: 16px;
    font-weight: 500;
    color: var(--ios-label);
    text-transform: none;
    letter-spacing: -0.2px;
}

/* 订单信息：大标题（区别于分组小标题） */
body.page-front .ios-section-title-bill {
    margin: 20px 0 10px 16px;
    font-size: 16px;
    font-weight: 600;
    color: var(--ios-text);
    text-transform: none;
    letter-spacing: -0.28px;
}

.ios-group {
    background: var(--ios-card);
    border-radius: var(--ios-radius-lg);
    box-shadow: var(--ios-shadow);
    overflow: hidden;
}

.ios-group + .ios-group {
    margin-top: 10px;
}

.ios-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    min-height: 44px;
    border-bottom: 0.5px solid var(--ios-sep-light);
    font-size: 17px;
}

.ios-row:last-child {
    border-bottom: 0;
}

.ios-row-label {
    color: var(--ios-text);
    flex-shrink: 0;
}

.ios-row-value {
    text-align: right;
    color: var(--ios-label);
    word-break: break-all;
}

.ios-row-value.ios-em {
    color: var(--ios-text);
    font-weight: 600;
}

/* 订单详情：一行三列（人数 / 全票单价 / 半票单价） */
body.page-front .ios-row-triple {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 0;
    padding: 0 !important;
    min-height: 0;
    border-bottom: 0.5px solid var(--ios-sep-light);
}

body.page-front .ios-row-triple .ios-pair-cell {
    flex: 1;
    min-width: 0;
    padding: 12px 10px;
}

body.page-front .ios-row-triple .ios-pair-cell:not(:last-child) {
    border-right: 0.5px solid var(--ios-sep-light);
}

body.page-front .ios-row-triple .ios-pair-label {
    font-size: 12px;
}

body.page-front .ios-row-triple .ios-pair-value {
    font-size: 15px;
}

/* 订单详情：六项合并为三行（每行两列） */
.ios-row-pair {
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 0;
    padding: 0 !important;
    min-height: 0;
    border-bottom: 0.5px solid var(--ios-sep-light);
}

.ios-row-pair:last-of-type {
    border-bottom: 0;
}

.ios-group .ios-row-pair + .ios-row:not(.ios-row-pair) {
    border-top: 0.5px solid var(--ios-sep-light);
}

.ios-pair-cell {
    flex: 1;
    min-width: 0;
    padding: 12px 16px;
}

.ios-pair-cell:first-child {
    border-right: 0.5px solid var(--ios-sep-light);
}

.ios-pair-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--ios-label);
    margin-bottom: 4px;
}

.ios-pair-value {
    font-size: 17px;
    color: var(--ios-text);
    letter-spacing: -0.2px;
}

.ios-pair-value.ios-em {
    font-weight: 600;
}

.ios-pair-value.ios-paid {
    color: var(--ios-blue);
    font-weight: 600;
}

/* 当前桌号下方：两列表格；覆盖 .ios-row 的 flex；无外框，仅单元格之间的内部分隔线 */
body.page-front .ios-order-bill .ios-order-bill-count-price-row.ios-row {
    display: block;
    padding: 0;
    min-height: 0;
    margin-top: 6px;
    border: 0;
    border-radius: 0;
    overflow: visible;
    background: transparent;
    gap: 0;
    align-items: stretch;
    justify-content: flex-start;
    font-size: inherit;
    box-shadow: none;
    outline: 0;
}

body.page-front .ios-order-bill .ios-order-count-price {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    text-align: left;
    border: 0;
    outline: 0;
    background: transparent;
    box-shadow: none;
}

body.page-front .ios-order-bill .ios-order-count-price td {
    width: 50%;
    padding: 12px 14px;
    vertical-align: middle;
    border: 0;
    outline: 0;
    background: transparent;
    box-shadow: none;
}

/* 内横线：行间（不含表格外底边 → 最后一行不画底边） */
body.page-front .ios-order-bill .ios-order-count-price tr:not(:last-child) td {
    border-bottom: 1px solid rgba(60, 60, 67, 0.14);
}

/* 内竖线：两列之间（不含表格外左/右 → 仅左列右侧） */
body.page-front .ios-order-bill .ios-order-count-price td:nth-child(1):not(.ios-oc-cell--full) {
    border-right: 1px solid rgba(60, 60, 67, 0.14);
}

body.page-front .ios-order-bill .ios-order-count-price tr {
    border: 0;
}

body.page-front .ios-order-bill .ios-order-count-price td.ios-oc-cell--full {
    width: 100%;
    border-right: none;
}

body.page-front .ios-order-bill .ios-oc-pair {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    width: 100%;
    min-width: 0;
}

body.page-front .ios-order-bill .ios-oc-lb {
    flex-shrink: 0;
    max-width: 42%;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.3;
    color: var(--ios-label);
    text-align: left;
}

body.page-front .ios-order-bill .ios-oc-v {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ios-text);
    text-align: right;
    font-variant-numeric: tabular-nums;
    word-break: break-word;
}

body.page-front .ios-order-bill .ios-oc-v-datetime {
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

body.page-front .ios-order-bill .ios-oc-pair--full .ios-oc-lb {
    max-width: none;
}

body.page-front .ios-order-bill .ios-oc-payment-time-block {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    min-width: 0;
}

body.page-front .ios-order-bill .ios-oc-payment-time-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    min-width: 0;
}

body.page-front .ios-order-bill .ios-oc-payment-time-row > .ios-oc-lb {
    flex-shrink: 0;
    white-space: nowrap;
}

body.page-front .ios-order-bill .ios-oc-order-time-only {
    flex-shrink: 0;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

body.page-front .ios-order-bill .ios-oc-payment-pills {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
}

body.page-front .ios-order-bill .ios-oc-payment-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    margin: 0;
    padding: 0 6px;
    border: 0;
    border-radius: 10px;
    background: var(--ios-search-bg);
    box-shadow: inset 0 0 0 1px rgba(60, 60, 67, 0.08);
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--ios-text);
    text-align: center;
    cursor: default;
    transition: background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

body.page-front .ios-order-bill button.ios-oc-payment-pill {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

body.page-front .ios-order-bill button.ios-oc-payment-pill:active {
    opacity: 0.85;
}

body.page-front .ios-order-bill .ios-oc-payment-pill.is-active {
    background: #34c759;
    box-shadow: none;
    color: #fff;
}

body.page-front .ios-payment-method-form {
    display: none;
}

/* 订单详情整块：不要卡片外圈阴影/描边（仅屏幕） */
body.page-front .ios-group.ios-order-bill {
    box-shadow: none;
    border: 0;
    outline: 0;
}

/* 窄屏：仍为表格；极窄时可横滑查看 */
@media screen and (max-width: 639px) {
    body.page-front .ios-order-bill .ios-order-bill-count-price-row {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-x: contain;
    }

    body.page-front .ios-order-bill .ios-order-count-price {
        min-width: 280px;
    }
}

body.page-front .ios-order-bill .ios-pair-cell,
body.page-front .ios-order-bill .ios-pair-label,
body.page-front .ios-order-bill .ios-pair-value {
    text-align: left;
}

.ios-row-link {
    color: var(--ios-blue);
    font-size: 15px;
}

.ios-list-meta {
    font-size: 13px;
    color: var(--ios-label);
    padding: 8px 16px 12px;
    border-top: 0.5px solid var(--ios-sep-light);
}

/* 表单区 */
.ios-form-section {
    margin-top: 8px;
}

/* 新建订单 · 收银卡片 */
body.page-front .ios-new-order {
    margin-top: 12px;
}

body.page-front .ios-new-order-alert {
    margin-bottom: 10px;
}

body.page-front .ios-new-order-card {
    padding: 16px 16px 18px;
    border: 0;
}

body.page-front .ios-new-order-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

body.page-front .ios-new-order-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: var(--ios-text);
}

body.page-front .ios-new-order-voice-btn {
    flex-shrink: 0;
    min-height: 36px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #f0f4ff 0%, #e8eeff 100%);
    color: #1a4fb8;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: inset 0 0 0 0.5px rgba(26, 79, 184, 0.18);
}

body.page-front .ios-new-order-voice-btn:active {
    opacity: 0.82;
}

body.page-front .ios-new-order-voice-btn:disabled {
    opacity: 0.55;
}

body.page-front .ios-new-order-voice-hint {
    margin: -8px 0 12px;
    font-size: 13px;
    line-height: 1.4;
    color: var(--ios-label);
}

body.page-front .ios-new-order-voice-hint[hidden] {
    display: none;
}

body.page-front .ios-new-order-field-label {
    display: block;
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ios-label);
}

body.page-front .ios-new-order-field-hint {
    margin: 6px 0 0;
    font-size: 12px;
    color: var(--ios-label);
}

body.page-front .ios-new-order-field-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}

body.page-front .ios-new-order-field-head .ios-new-order-field-label {
    margin: 0;
}

body.page-front .ios-new-order-field-range {
    font-size: 12px;
    font-weight: 500;
    color: var(--ios-label);
    font-variant-numeric: tabular-nums;
}

body.page-front .ios-new-order-table {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 0.5px solid var(--ios-sep-light);
}

body.page-front .ios-new-order-table-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px 6px 6px;
    border-radius: 12px;
    background: var(--ios-search-bg);
    box-shadow: inset 0 0 0 1px rgba(60, 60, 67, 0.08);
}

body.page-front .ios-new-order-table-row:focus-within {
    box-shadow: inset 0 0 0 2px var(--ios-blue);
    background: var(--ios-card);
}

body.page-front .ios-new-order-table-input {
    flex: 1;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    min-height: 0;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    text-align: right;
    font-variant-numeric: tabular-nums;
    color: var(--ios-text);
    -webkit-appearance: none;
    appearance: none;
}

body.page-front .ios-new-order-table-input:focus {
    outline: none;
}

body.page-front .ios-new-order-table-input::placeholder {
    color: rgba(60, 60, 67, 0.28);
}

body.page-front .ios-new-order-table-unit {
    flex-shrink: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--ios-label);
}

body.page-front .ios-new-order-table-select-wrap {
    position: relative;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

body.page-front .ios-new-order-table-select-wrap::after {
    content: "选桌";
    position: absolute;
    top: 5px;
    left: 0;
    right: 22px;
    text-align: center;
    font-size: 9px;
    font-weight: 600;
    color: var(--ios-label);
    pointer-events: none;
}

body.page-front select.ios-new-order-table-select {
    width: auto;
    min-width: 72px;
    height: 44px;
    margin: 0;
    padding: 15px 26px 5px 12px;
    border: 0;
    border-radius: 10px;
    background-color: var(--ios-card);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%23007aff' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    color: var(--ios-blue);
    font-size: 16px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    box-shadow: var(--ios-shadow);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

body.page-front select.ios-new-order-table-select:focus {
    outline: 2px solid rgba(0, 122, 255, 0.35);
    outline-offset: 1px;
}

body.page-front .ios-new-order-counts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

body.page-front .ios-new-order-count-cell {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 9px 8px;
    border-radius: 12px;
    background: var(--ios-search-bg);
}

body.page-front .ios-new-order-count-label {
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.04em;
}

body.page-front .ios-new-order-count-cell--adult .ios-new-order-count-label {
    color: #b35c00;
}

body.page-front .ios-new-order-count-cell--child .ios-new-order-count-label {
    color: #0070c9;
}

body.page-front .ios-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

body.page-front .ios-stepper-btn {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: var(--ios-card);
    color: var(--ios-blue);
    font-size: 19px;
    font-weight: 500;
    line-height: 1;
    font-family: inherit;
    cursor: pointer;
    box-shadow: var(--ios-shadow);
    -webkit-appearance: none;
    appearance: none;
}

body.page-front .ios-stepper-btn:active {
    background: #ebebf0;
    transform: scale(0.96);
}

body.page-front .ios-stepper-input {
    width: 2.6rem;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    font-variant-numeric: tabular-nums;
    color: var(--ios-text);
    -moz-appearance: textfield;
    -webkit-appearance: none;
    appearance: none;
}

body.page-front .ios-stepper-input:focus {
    outline: none;
}

body.page-front .ios-stepper-input::-webkit-outer-spin-button,
body.page-front .ios-stepper-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

body.page-front .ios-new-order-payment {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 0.5px solid var(--ios-sep-light);
}

body.page-front .ios-new-order-payment .ios-new-order-field-label {
    margin-bottom: 10px;
}

body.page-front .ios-new-order-payment-pills {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

body.page-front .ios-new-order-payment-pill {
    position: relative;
    display: block;
    margin: 0;
    cursor: pointer;
}

body.page-front .ios-new-order-payment-pill input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    pointer-events: none;
}

body.page-front .ios-new-order-payment-pill span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 6px;
    border-radius: 10px;
    background: var(--ios-search-bg);
    box-shadow: inset 0 0 0 1px rgba(60, 60, 67, 0.08);
    font-size: 14px;
    font-weight: 600;
    color: var(--ios-text);
    text-align: center;
    transition: background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

body.page-front .ios-new-order-payment-pill:active span {
    opacity: 0.82;
}

body.page-front .ios-new-order-payment-pill:has(input:checked) span {
    background: var(--ios-blue);
    box-shadow: none;
    color: #fff;
}

body.page-front .ios-new-order-money {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}

body.page-front .ios-new-order-money-cell {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 0;
    padding: 9px 12px 11px;
    border-radius: 12px;
    background: var(--ios-search-bg);
    box-shadow: inset 0 0 0 1px rgba(60, 60, 67, 0.08);
    cursor: text;
}

body.page-front .ios-new-order-money-cell:focus-within {
    background: var(--ios-card);
    box-shadow: inset 0 0 0 2px var(--ios-blue);
}

body.page-front .ios-new-order-money-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--ios-label);
}

body.page-front .ios-new-order-money-cell--paid .ios-new-order-money-label {
    color: var(--ios-blue);
}

body.page-front .ios-new-order-money-field {
    display: flex;
    align-items: baseline;
    gap: 3px;
}

body.page-front .ios-new-order-money-sign {
    flex-shrink: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--ios-label);
}

body.page-front .ios-new-order-money-cell--paid .ios-new-order-money-sign {
    color: var(--ios-blue);
}

body.page-front .ios-new-order-money-input {
    flex: 1;
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    min-height: 0;
    background: transparent;
    box-shadow: none;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    color: var(--ios-text);
    text-align: left;
    -webkit-appearance: none;
    appearance: none;
}

body.page-front .ios-new-order-money-input:focus {
    outline: none;
}

body.page-front .ios-new-order-money-input--paid {
    font-size: 24px;
    font-weight: 800;
    color: var(--ios-blue);
}

body.page-front .ios-new-order-submit {
    min-height: 52px;
    font-size: 18px;
    letter-spacing: 0.02em;
}

@media (min-width: 768px) {
    body.page-front .ios-new-order-card {
        padding: 18px 20px 20px;
    }

    body.page-front .ios-new-order-table-input {
        font-size: 48px;
    }

    body.page-front .ios-new-order-counts,
    body.page-front .ios-new-order-money,
    body.page-front .ios-new-order-payment-pills {
        gap: 14px;
    }
}

/* 用餐看板：排序切换 */
body.page-front .ios-board-sort {
    display: flex;
    gap: 4px;
    margin: 4px 0 12px;
    padding: 3px;
    border-radius: 11px;
    background: var(--ios-search-bg);
}

body.page-front .ios-board-sort-btn {
    flex: 1 1 0;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 6px 6px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ios-label);
    text-decoration: none;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

body.page-front .ios-board-sort-btn:active {
    opacity: 0.7;
}

body.page-front .ios-board-sort-btn.is-active {
    color: var(--ios-text);
    background: var(--ios-card);
    box-shadow: var(--ios-shadow);
}

/* 底部 Tab 栏 · 标准 iOS 风格，与页面浅灰底 + 白卡片统一 */
body.page-front .ios-tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 120;
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: saturate(1.8) blur(20px);
    backdrop-filter: saturate(1.8) blur(20px);
    border-top: 0.5px solid var(--ios-sep-light);
    padding-bottom: env(safe-area-inset-bottom, 0);
    box-sizing: border-box;
}

body.page-front .ios-tabbar-inner {
    display: flex;
    align-items: stretch;
    max-width: var(--ios-shell-max);
    margin: 0 auto;
    padding: 0 var(--ios-shell-pad-x);
    min-height: var(--ios-tabbar-height);
}

body.page-front .ios-tabbar-item {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    padding: 6px 0 4px;
    color: var(--ios-label);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.15s ease;
}

body.page-front .ios-tabbar-item:visited {
    color: var(--ios-label);
}

body.page-front .ios-tabbar-item:active {
    opacity: 0.65;
}

body.page-front .ios-tabbar-item.is-active {
    color: var(--ios-blue);
}

body.page-front .ios-tabbar-item.is-active:visited {
    color: var(--ios-blue);
}

body.page-front .ios-tabbar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--ios-tabbar-icon-box);
    height: var(--ios-tabbar-icon-box);
}

body.page-front .ios-tabbar-icon svg {
    display: block;
    width: var(--ios-tabbar-icon-size);
    height: var(--ios-tabbar-icon-size);
}

body.page-front .ios-tabbar-item:not(.is-active) .ios-tabbar-icon svg {
    opacity: 0.72;
}

body.page-front .ios-tabbar-label {
    font-size: var(--ios-tabbar-label-size);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.01em;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.page-front .ios-tabbar-item.is-active .ios-tabbar-label {
    font-weight: 600;
}

@media (min-width: 360px) {
    body.page-front .ios-tabbar-label {
        font-size: 12px;
    }
}

body.page-front .ios-board-finished-hint {
    margin: -4px 0 12px;
    padding: 0 4px;
    font-size: 13px;
    color: var(--ios-label);
    text-align: center;
}

/* 首页：今日统计 + 桌号瀑布看板 */
body.page-front .ios-front-board {
    margin-top: 12px;
}

body.page-front .ios-front-stat-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
    padding: 12px 14px;
    background: var(--ios-card);
    border-radius: var(--ios-radius-xl);
    box-shadow: var(--ios-shadow);
}

body.page-front .ios-front-stat-date {
    flex: 1 1 100%;
    margin: 0 0 2px;
    font-size: 13px;
    color: var(--ios-label);
}

body.page-front .ios-front-stat-item {
    flex: 1 1 calc(33.333% - 6px);
    min-width: 5.5rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 10px;
    border-radius: 10px;
    background: var(--ios-search-bg);
}

body.page-front .ios-front-stat-label {
    font-size: 12px;
    color: var(--ios-label);
}

body.page-front .ios-front-stat-value {
    font-size: 22px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.15;
}

body.page-front .ios-front-board-hint {
    margin: -4px 0 10px;
    padding: 0 2px;
    font-size: 13px;
    color: var(--ios-label);
}

body.page-front .ios-table-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.page-front .ios-table-grid > li {
    display: flex;
    margin: 0;
    padding: 0;
    min-width: 0;
}

body.page-front .ios-table-board-empty {
    padding: 28px 16px;
    text-align: center;
    font-size: 16px;
    color: var(--ios-label);
    background: var(--ios-card);
    border-radius: var(--ios-radius-xl);
    box-shadow: var(--ios-shadow);
}

body.page-front .ios-table-tile {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    box-sizing: border-box;
    width: 100%;
    min-height: 122px;
    padding: 14px 10px;
    border-radius: var(--ios-radius-lg);
    background: var(--ios-card);
    box-shadow: var(--ios-shadow);
    color: var(--ios-text);
    text-decoration: none;
    text-align: center;
}

body.page-front .ios-table-tile:active {
    opacity: 0.82;
    transform: scale(0.98);
}

body.page-front .ios-table-tile-head {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: center;
    line-height: 1.1;
}

body.page-front .ios-table-tile-num {
    display: inline;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

body.page-front .ios-table-tile-unit {
    display: inline;
    margin-left: 1px;
    font-size: 13px;
    font-weight: 400;
    color: var(--ios-label);
}

body.page-front .ios-table-tile-status {
    display: inline-block;
    margin-top: 8px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

body.page-front .ios-table-tile--dining .ios-table-tile-foot {
    position: static;
    align-self: stretch;
    flex-shrink: 0;
    margin-top: auto;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    padding: 8px 8px;
    border-radius: 0;
    border-bottom-left-radius: calc(var(--ios-radius-lg) - 1px);
    border-bottom-right-radius: calc(var(--ios-radius-lg) - 1px);
    font-size: clamp(12px, 7.5cqi, 14px);
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: 0.01em;
    white-space: nowrap;
    text-align: center;
    font-variant-numeric: tabular-nums;
    transform: none;
    box-shadow: none;
}

body.page-front .ios-table-tile--dining .ios-table-tile-foot strong {
    font-weight: inherit;
}

body.page-front .ios-table-tile--dining .ios-table-tile-foot--pay {
    background: linear-gradient(180deg, #ffae42 0%, #ff9500 100%);
    color: #fff;
}

body.page-front .ios-table-tile--dining .ios-table-tile-foot--pay strong {
    color: #fff;
}

body.page-front .ios-table-tile--dining .ios-table-tile-foot--refund {
    background: linear-gradient(180deg, #3cd070 0%, #34c759 100%);
    color: #fff;
}

body.page-front .ios-table-tile--dining .ios-table-tile-foot--refund strong {
    color: #fff;
}

body.page-front .ios-table-tile--dining .ios-table-tile-foot--even {
    background: rgba(118, 118, 128, 0.16);
    color: #636366;
}

body.page-front .ios-table-tile-meta {
    display: block;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--ios-label);
}

body.page-front .ios-table-tile-time {
    display: block;
    margin-top: auto;
    padding-top: 6px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.25;
    font-variant-numeric: tabular-nums;
    color: var(--ios-tertiary-label, #8e8e93);
    word-break: break-all;
}

body.page-front .ios-table-tile--idle .ios-table-tile-status {
    background: #e5e5ea;
    color: #636366;
}

body.page-front .ios-table-tile--dining {
    width: 100%;
    height: 100%;
    min-height: 136px;
    background: var(--ios-card);
    border: 1px solid var(--ios-sep-light);
    padding: 0;
    gap: 0;
    justify-content: flex-start;
    align-items: stretch;
    text-align: center;
    container-type: inline-size;
    box-shadow: var(--ios-shadow);
}

body.page-front .ios-table-tile--dining .ios-table-tile-head {
    flex-shrink: 0;
    display: block;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 0;
}

body.page-front .ios-table-tile--dining .ios-table-tile-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    box-sizing: border-box;
    width: 100%;
    min-height: 0;
    padding: 8px 8px 6px;
    gap: 6px;
}

body.page-front .ios-table-tile--dining .ios-table-tile-table {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    box-sizing: border-box;
    width: 100%;
    padding: 9px 10px;
    border: none;
    border-radius: 0;
    border-top-left-radius: calc(var(--ios-radius-lg) - 1px);
    border-top-right-radius: calc(var(--ios-radius-lg) - 1px);
    background: linear-gradient(180deg, #ffae42 0%, #ff9500 100%);
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
}

body.page-front .ios-table-tile--dining .ios-table-tile-table-num {
    font-size: clamp(24px, 14cqi, 30px);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    color: #fff;
}

body.page-front .ios-table-tile--dining .ios-table-tile-table-label {
    font-size: clamp(12px, 7cqi, 15px);
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.92);
}

body.page-front .ios-table-tile--dining .ios-table-tile-guests {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding: 0;
    border-radius: 10px;
    background: var(--ios-search-bg);
    overflow: hidden;
}

body.page-front .ios-table-tile--dining .ios-table-tile-guest {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 8px 4px;
    border: none;
    border-radius: 0;
    background: transparent;
    line-height: 1.2;
    text-align: center;
}

body.page-front .ios-table-tile--dining .ios-table-tile-guest--adult {
    border-right: 0.5px solid var(--ios-sep-light);
}

body.page-front .ios-table-tile--dining .ios-table-tile-guest-label {
    font-size: clamp(10px, 6cqi, 12px);
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--ios-label);
}

body.page-front .ios-table-tile--dining .ios-table-tile-guest-num {
    font-size: clamp(16px, 9.5cqi, 21px);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    color: var(--ios-text);
}

body.page-front .ios-table-tile--dining .ios-table-tile-guest--adult .ios-table-tile-guest-label {
    color: #b35c00;
}

body.page-front .ios-table-tile--dining .ios-table-tile-guest--child .ios-table-tile-guest-label {
    color: #0070c9;
}

body.page-front .ios-table-tile-duration {
    display: block;
    box-sizing: border-box;
    width: 100%;
    padding: 7px 8px;
    border-radius: 10px;
    background: #fff6e8;
    font-size: clamp(10px, 6cqi, 12px);
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    letter-spacing: 0.01em;
    font-variant-numeric: tabular-nums;
    color: #8a4a00;
}

body.page-front .ios-table-tile--finished .ios-table-tile-status {
    background: var(--ios-success-bg);
    color: var(--ios-success-text);
}

body.page-front .ios-table-tile--finished {
    width: 100%;
    height: 100%;
    min-height: 136px;
    background: var(--ios-card);
    border: 1px solid var(--ios-sep-light);
    padding: 0;
    gap: 0;
    justify-content: flex-start;
    align-items: stretch;
    text-align: center;
    container-type: inline-size;
    box-shadow: var(--ios-shadow);
}

body.page-front .ios-table-tile--finished .ios-table-tile-head {
    flex-shrink: 0;
    display: block;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding: 0;
}

body.page-front .ios-table-tile--finished .ios-table-tile-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    box-sizing: border-box;
    width: 100%;
    min-height: 0;
    padding: 8px 8px 6px;
    gap: 6px;
}

body.page-front .ios-table-tile--finished .ios-table-tile-table {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    box-sizing: border-box;
    width: 100%;
    padding: 9px 10px;
    border: none;
    border-radius: 0;
    border-top-left-radius: calc(var(--ios-radius-lg) - 1px);
    border-top-right-radius: calc(var(--ios-radius-lg) - 1px);
    background: linear-gradient(180deg, #3cd070 0%, #34c759 100%);
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
}

body.page-front .ios-table-tile--finished .ios-table-tile-table-num {
    font-size: clamp(24px, 14cqi, 30px);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    color: #fff;
}

body.page-front .ios-table-tile--finished .ios-table-tile-table-label {
    font-size: clamp(12px, 7cqi, 15px);
    font-weight: 600;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.92);
}

body.page-front .ios-table-tile--finished .ios-table-tile-guests {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding: 0;
    border-radius: 10px;
    background: var(--ios-search-bg);
    overflow: hidden;
}

body.page-front .ios-table-tile--finished .ios-table-tile-guest {
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 8px 4px;
    border: none;
    border-radius: 0;
    background: transparent;
    line-height: 1.2;
    text-align: center;
}

body.page-front .ios-table-tile--finished .ios-table-tile-guest--adult {
    border-right: 0.5px solid var(--ios-sep-light);
}

body.page-front .ios-table-tile--finished .ios-table-tile-guest-label {
    font-size: clamp(10px, 6cqi, 12px);
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--ios-label);
}

body.page-front .ios-table-tile--finished .ios-table-tile-guest-num {
    font-size: clamp(16px, 9.5cqi, 21px);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1;
    color: var(--ios-text);
}

body.page-front .ios-table-tile--finished .ios-table-tile-guest--adult .ios-table-tile-guest-label {
    color: #b35c00;
}

body.page-front .ios-table-tile--finished .ios-table-tile-guest--child .ios-table-tile-guest-label {
    color: #0070c9;
}

body.page-front .ios-table-tile--finished .ios-table-tile-duration--finished {
    background: rgba(52, 199, 89, 0.12);
    color: var(--ios-success-text);
}

body.page-front .ios-table-tile--finished .ios-table-tile-duration--process {
    background: #fff6e8;
    color: #8a4a00;
}

body.page-front .ios-table-tile--finished .ios-table-tile-foot {
    position: static;
    align-self: stretch;
    flex-shrink: 0;
    margin-top: auto;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    padding: 8px 8px;
    border-radius: 0;
    border-bottom-left-radius: calc(var(--ios-radius-lg) - 1px);
    border-bottom-right-radius: calc(var(--ios-radius-lg) - 1px);
    font-size: clamp(12px, 7.5cqi, 14px);
    font-weight: 400;
    line-height: 1.25;
    letter-spacing: 0.01em;
    white-space: nowrap;
    text-align: center;
    font-variant-numeric: tabular-nums;
    background: rgba(118, 118, 128, 0.16);
    color: #636366;
}

body.page-front .ios-table-tile--finished .ios-table-tile-foot--pay {
    background: linear-gradient(180deg, #ffae42 0%, #ff9500 100%);
    color: #fff;
}

body.page-front .ios-table-tile--finished .ios-table-tile-foot--pay strong {
    color: #fff;
}

body.page-front .ios-table-tile--finished .ios-table-tile-foot--refund {
    background: linear-gradient(180deg, #3cd070 0%, #34c759 100%);
    color: #fff;
}

body.page-front .ios-table-tile--finished .ios-table-tile-foot--refund strong {
    color: #fff;
}

body.page-front .ios-table-tile--cancelled .ios-table-tile-status {
    background: rgba(255, 59, 48, 0.14);
    color: #c41e14;
}

body.page-front .ios-search-toplink--board {
    background: linear-gradient(165deg, #f0e6ff 0%, #e8d4ff 45%, #dfc8ff 100%);
    color: #5b2d82;
    box-shadow: 0 2px 8px rgba(175, 82, 222, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

body.page-front .ios-search-toplink--active {
    outline: 2px solid var(--ios-blue);
    outline-offset: 1px;
}

@media (min-width: 380px) {
    body.page-front .ios-table-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.ios-banner-dining {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: var(--ios-radius-lg);
    background: rgba(255, 149, 0, 0.18);
    color: #a34c00;
    font-size: 15px;
    line-height: 1.45;
}

.ios-banner-dining strong {
    font-weight: 700;
}

.ios-row-actions {
    justify-content: flex-end;
    padding-top: 10px;
    padding-bottom: 14px;
}

.ios-inline-form {
    margin: 0;
    width: 100%;
    display: flex;
    justify-content: flex-end;
}

.ios-btn-secondary {
    display: inline-block;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 10px;
    border: 0;
    background: #e5e5ea;
    color: var(--ios-text);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.ios-btn-secondary:active {
    opacity: 0.75;
}

.ios-btn-block {
    display: block;
    width: 100%;
    margin-top: 12px;
}

.ios-end-meal-form {
    margin: 0 0 8px;
}

body.page-front .ios-order-meal-actions {
    margin: 12px 0 8px;
    width: 100%;
    max-width: none;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 10px;
    box-sizing: border-box;
}

body.page-front .ios-order-meal-actions .ios-end-meal-form,
body.page-front .ios-order-meal-actions .ios-cancel-order-form,
body.page-front .ios-order-meal-actions .ios-resume-meal-form {
    margin: 0;
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

body.page-front .ios-order-meal-actions--resume .ios-resume-meal-form {
    flex: 1 1 100%;
}

body.page-front .ios-order-meal-actions .ios-btn-block {
    margin-top: 0;
    flex: 1 1 auto;
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    font-size: 16px;
    font-weight: 600;
    border-radius: 12px;
}

body.page-front .ios-btn-resume-dining {
    background: var(--ios-success-bg);
    color: var(--ios-success-text);
    font-weight: 600;
}

body.page-front .ios-btn-resume-dining:active {
    opacity: 0.85;
}

body.page-front .ios-resume-meal-form {
    margin: 0;
}

body.page-front .ios-checkout-hint-foot {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 0.5px solid var(--ios-sep-light);
}

body.page-front .ios-checkout-hint--under-detail .ios-checkout-hint-foot {
    margin-top: 10px;
    padding-top: 10px;
}

body.page-front .ios-checkout-hint-foot .ios-btn-resume-dining {
    margin: 0;
}

body.page-front .ios-btn-cancel-order {
    background: rgba(255, 59, 48, 0.14);
    color: var(--ios-danger);
}

body.page-front .ios-btn-cancel-order:active {
    opacity: 0.85;
}

.ios-checkout-hint {
    margin: 12px 0 10px;
    padding: 12px 16px;
    border-radius: var(--ios-radius-lg);
    background: rgba(118, 118, 128, 0.1);
}

.ios-checkout-hint-main {
    font-size: 16px;
    line-height: 1.35;
    color: var(--ios-text);
}

.ios-checkout-hint-pay,
.ios-checkout-hint-pay strong {
    color: var(--ios-danger);
    font-weight: 700;
}

.ios-checkout-hint-refund,
.ios-checkout-hint-refund strong {
    color: var(--ios-success-text);
    font-weight: 700;
}

.ios-checkout-hint-even {
    color: var(--ios-label);
    font-size: 15px;
}

.ios-checkout-hint-caption {
    font-size: 13px;
    font-weight: 600;
    color: var(--ios-label);
    margin-bottom: 8px;
}

body.page-front .ios-checkout-hint--after-finished {
    margin: 0;
    border-top: 0.5px solid var(--ios-sep-light);
    border-radius: 0;
}

/* 收退提示：嵌在「已加菜品」明细行下方，右对齐 */
body.page-front .ios-checkout-hint--under-detail {
    margin: 0;
    padding: 4px 16px 12px;
    text-align: right;
    background: transparent;
    border-radius: 0;
}

body.page-front .ios-checkout-hint--under-detail .ios-checkout-hint-main {
    text-align: right;
    margin: 0;
    padding: 0;
    font-size: 15px;
}

.ios-add-wrap {
    margin-top: 10px;
    margin-bottom: 8px;
}

.ios-subsection-title {
    margin: 16px 0 8px 16px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ios-label);
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.ios-add-list .ios-add-line {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
}

.ios-add-line-actions {
    flex-shrink: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

.ios-add-paid-form-root {
    margin: 0;
    padding: 0;
    border: 0;
}

.ios-add-del-slot {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ios-add-paid-cell {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

button.ios-add-line-pm {
    margin: 0;
    padding: 3px 8px;
    border: 0;
    border-radius: 6px;
    background: rgba(52, 199, 89, 0.14);
    color: #248a3d;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

button.ios-add-line-pm:active {
    opacity: 0.75;
}

.ios-add-del-form,
.ios-add-paid-form {
    margin: 0;
    padding: 0;
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

button.ios-btn-delete-add.ios-add-del-align {
    visibility: hidden;
    pointer-events: none;
}

.ios-btn-delete-add {
    box-sizing: border-box;
    margin: 0;
    padding: 4px 8px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    color: var(--ios-danger, #c00);
    background: rgba(255, 59, 48, 0.12);
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    -webkit-appearance: none;
    appearance: none;
}

.ios-btn-delete-add:active {
    opacity: 0.85;
}

.ios-btn-delete-add:disabled {
    color: var(--ios-tertiary-label, #8e8e93);
    background: rgba(142, 142, 147, 0.16);
    cursor: not-allowed;
    opacity: 1;
}

.ios-add-line-main {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 12px;
    flex: 1;
    min-width: 0;
}

.ios-add-name {
    font-weight: 600;
    font-size: 17px;
}

.ios-add-meta {
    font-size: 15px;
    color: var(--ios-label);
}

.ios-add-meta-formula {
    display: inline;
    white-space: nowrap;
}

.ios-add-guest-qty-form {
    display: inline;
    margin: 0;
    padding: 0;
    border: 0;
    vertical-align: baseline;
}

select.ios-add-guest-qty-select {
    display: inline;
    width: auto;
    min-width: 0;
    max-width: 3ch;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
    background-color: transparent;
    color: var(--ios-blue);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    line-height: inherit;
    vertical-align: baseline;
    cursor: pointer;
    text-align: center;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}

select.ios-add-guest-qty-select:focus,
select.ios-add-guest-qty-select:active {
    outline: none;
    border: 0;
    box-shadow: none;
}

select.ios-add-guest-qty-select::-ms-expand {
    display: none;
}

.ios-add-paid-label {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    user-select: none;
}

.ios-add-paid-cb {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--ios-blue);
    cursor: pointer;
}

.ios-add-save-paid-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 6px 12px 8px;
}

body.page-front .ios-add-list .ios-add-save-paid-btn {
    width: auto;
    max-width: 100%;
    min-width: 0;
    min-height: 30px;
    padding: 5px 12px;
    border-radius: 8px;
    border: 0;
    background: var(--ios-blue);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

body.page-front .ios-add-list .ios-add-save-paid-btn:active {
    background: var(--ios-blue-press);
}

.ios-add-total-row {
    background: rgba(118, 118, 128, 0.08);
    font-weight: 600;
}

.ios-add-total-row.ios-add-total-one-line {
    flex-wrap: wrap;
    gap: 8px 12px;
    align-items: center;
}

.ios-add-total-inline {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-end;
    gap: 6px 10px;
    font-size: 14px;
    line-height: 1.3;
    text-align: right;
}

.ios-add-ti {
    white-space: nowrap;
}

.ios-add-ti-sep {
    color: var(--ios-label);
    font-weight: 400;
    user-select: none;
}

.ios-add-total-k {
    color: var(--ios-label);
    font-weight: 500;
}

.ios-add-total-num {
    font-weight: 600;
    color: var(--ios-text);
}

.ios-add-total-paid {
    font-weight: 600;
    color: var(--ios-blue);
}

.ios-add-total {
    font-size: 17px;
    color: var(--ios-blue);
}

.ios-add-slot {
    flex-wrap: wrap;
    gap: 10px 12px;
    align-items: flex-end;
    padding-top: 12px;
    padding-bottom: 12px;
}

.ios-add-slot-dish {
    flex: 1 1 160px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

select.ios-add-dish-select {
    width: 100%;
    padding: 8px 28px 8px 10px;
    border-radius: 8px;
    border: 0;
    background-color: rgba(118, 118, 128, 0.12);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%238e8e93' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    font-size: 16px;
    color: var(--ios-text);
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

select.ios-add-dish-select:focus {
    outline: 2px solid rgba(0, 122, 255, 0.35);
    outline-offset: 1px;
}

.ios-add-qty-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--ios-label);
    letter-spacing: 0.02em;
}

select.ios-add-qty {
    width: 100%;
    padding: 8px 28px 8px 10px;
    border-radius: 8px;
    border: 0;
    background-color: rgba(118, 118, 128, 0.12);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%238e8e93' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    font-size: 17px;
    text-align: left;
    color: var(--ios-text);
    -webkit-appearance: none;
    appearance: none;
    cursor: pointer;
}

select.ios-add-qty:focus {
    outline: 2px solid rgba(0, 122, 255, 0.35);
    outline-offset: 1px;
}

.ios-add-submit-wrap {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: stretch;
    align-self: flex-end;
}

.ios-add-submit-wrap .ios-add-qty-label {
    visibility: hidden;
}

body.page-front .ios-add-form .ios-add-submit-btn {
    width: auto;
    min-width: 56px;
    min-height: 34px;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

.ios-add-form > .ios-add-slot:last-child {
    border-bottom: 0;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


body.page-front .field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--ios-label);
    margin: 0 0 6px 16px;
}

body.page-front .row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

body.page-front .row.order-form-row {
    gap: 24px;
}

body.page-front .order-form-row .order-form-twin {
    flex: 1 1 0;
    min-width: 0;
}

body.page-front .order-voice-toolbar {
    margin: 0 0 14px;
    padding: 0 4px;
}

body.page-front .order-voice-btn {
    margin-top: 0;
    background: linear-gradient(180deg, #f0f4ff 0%, #e8eeff 100%);
    color: #1a4fb8;
}

body.page-front .order-voice-btn:active {
    opacity: 0.82;
}

body.page-front .order-voice-btn:disabled {
    opacity: 0.55;
}

body.page-front .order-voice-hint {
    margin-top: 8px;
    margin-bottom: 0;
}

body.page-front .input,
body.page-front select.input {
    width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 0;
    background: var(--ios-card);
    color: var(--ios-text);
    font-size: 17px;
    line-height: 1.35;
    box-sizing: border-box;
    min-height: 50px;
    box-shadow: var(--ios-shadow);
    -webkit-appearance: none;
    appearance: none;
}

body.page-front select.input {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%238e8e93' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
}

body.page-front .input:focus,
body.page-front select.input:focus {
    outline: 2px solid rgba(0, 122, 255, 0.35);
    outline-offset: 0;
}

body.page-front .form-grid {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

body.page-front .field.full,
body.page-front .actions.full {
    width: 100%;
}

body.page-front .hint {
    margin: 6px 0 0 16px;
    font-size: 13px;
    color: var(--ios-label);
}

body.page-front .btn-primary {
    width: 100%;
    min-height: 50px;
    border-radius: 12px;
    border: 0;
    background: var(--ios-blue);
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

body.page-front .btn-primary:active {
    background: var(--ios-blue-press);
}

body.page-front .alert {
    margin: 0 0 12px;
    padding: 12px 14px;
    border-radius: var(--ios-radius-lg);
    font-size: 15px;
    border: 0;
}

body.page-front .alert-success {
    background: var(--ios-success-bg);
    color: var(--ios-success-text);
}

body.page-front .ios-front-toast {
    position: fixed;
    z-index: 10000;
    max-width: min(calc(100vw - 32px), calc(var(--ios-shell-max) - 32px));
    padding: 10px 16px;
    border-radius: 18px;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.35;
    text-align: center;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease, transform 0.28s ease;
}

body.page-front .ios-front-toast--popup {
    background: #34c759;
    color: #fff;
    box-shadow: 0 6px 18px rgba(52, 199, 89, 0.38);
}

body.page-front .ios-front-toast--popup[data-ios-toast-anchor="payment"] {
    transform: translate(-50%, calc(-100% - 28px)) translateY(6px);
}

body.page-front .ios-front-toast--popup[data-ios-toast-anchor="payment"].is-visible {
    opacity: 1;
    transform: translate(-50%, calc(-100% - 28px)) translateY(0);
}

body.page-front .ios-front-toast--popup[data-ios-toast-anchor="add-paid"] {
    transform: translate(-50%, calc(-100% - 4px)) translateY(6px);
}

body.page-front .ios-front-toast--popup[data-ios-toast-anchor="add-paid"].is-visible {
    opacity: 1;
    transform: translate(-50%, calc(-100% - 4px)) translateY(0);
}

body.page-front .ios-front-toast--popup[data-ios-toast-anchor="add-dishes"] {
    transform: translate(-50%, calc(-100% - 12px)) translateY(6px);
}

body.page-front .ios-front-toast--popup[data-ios-toast-anchor="add-dishes"].is-visible {
    opacity: 1;
    transform: translate(-50%, calc(-100% - 12px)) translateY(0);
}

body.page-front .ios-front-toast--popup[data-ios-toast-anchor="delete-add"] {
    transform: translate(-50%, calc(-100% - 8px)) translateY(6px);
}

body.page-front .ios-front-toast--popup[data-ios-toast-anchor="delete-add"].is-visible {
    opacity: 1;
    transform: translate(-50%, calc(-100% - 8px)) translateY(0);
}

body.page-front .ios-front-toast--popup[data-ios-toast-anchor="deposit"],
body.page-front .ios-front-toast--popup[data-ios-toast-anchor="amount-paid"] {
    transform: translate(-50%, calc(-100% - 10px)) translateY(6px);
}

body.page-front .ios-front-toast--popup[data-ios-toast-anchor="deposit"].is-visible,
body.page-front .ios-front-toast--popup[data-ios-toast-anchor="amount-paid"].is-visible {
    opacity: 1;
    transform: translate(-50%, calc(-100% - 10px)) translateY(0);
}

body.page-front .alert-error {
    background: rgba(255, 59, 48, 0.12);
    color: #c62828;
}

.ios-empty {
    padding: 16px;
    text-align: center;
    font-size: 15px;
    color: var(--ios-label);
}

body.page-front a.ios-inline-link {
    color: var(--ios-blue);
    font-weight: 600;
    text-decoration: underline;
}

.ios-search-order-detail {
    margin-bottom: 12px;
}

.ios-search-order-detail:last-of-type {
    margin-bottom: 4px;
}

.ios-footnote {
    margin: 16px 16px 0;
    font-size: 13px;
    color: var(--ios-label);
    text-align: center;
}

/* 删除加菜 · 确认弹层（<dialog>） */
body.page-front dialog.ios-dialog {
    margin: auto;
    padding: 0;
    border: none;
    max-width: calc(100vw - 40px);
    width: 300px;
    background: transparent;
    box-shadow: none;
    z-index: 500;
}

body.page-front dialog.ios-dialog::backdrop {
    background: rgba(0, 0, 0, 0.38);
    -webkit-backdrop-filter: saturate(1.2) blur(8px);
    backdrop-filter: saturate(1.2) blur(8px);
}

body.page-front .ios-dialog-card {
    background: var(--ios-card);
    border-radius: var(--ios-radius-xl);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    text-align: center;
}

body.page-front .ios-dialog-text {
    margin: 0;
    padding: 22px 20px 20px;
    font-size: 15px;
    color: var(--ios-text);
    line-height: 1.45;
    opacity: 0.92;
}

body.page-front #iosVoiceConfirm .ios-dialog-text {
    white-space: pre-line;
    text-align: left;
}

body.page-front .ios-dialog-footer {
    display: flex;
    border-top: 1px solid var(--ios-sep-light);
}

body.page-front .ios-dialog-foot-btn {
    flex: 1;
    margin: 0;
    padding: 14px 12px;
    font-size: 17px;
    font-weight: 600;
    font-family: inherit;
    border: none;
    background: var(--ios-card);
    color: var(--ios-blue);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

body.page-front .ios-dialog-foot-btn:active {
    background: rgba(0, 0, 0, 0.04);
}

body.page-front .ios-dialog-foot-btn + .ios-dialog-foot-btn {
    border-left: 1px solid var(--ios-sep-light);
}

body.page-front .ios-dialog-foot-btn-danger {
    color: var(--ios-danger);
    font-weight: 700;
}

body.page-front .ios-dialog-foot-btn-primary {
    color: var(--ios-blue);
    font-weight: 700;
}

body.page-front .ios-paid-payment-dialog-title {
    margin: 0;
    padding: 18px 16px 12px;
    font-size: 17px;
    font-weight: 600;
    text-align: center;
    color: var(--ios-text, #000);
}

body.page-front .ios-paid-payment-picks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 4px 16px 16px;
}

body.page-front .ios-paid-payment-pick {
    margin: 0;
    min-height: 44px;
    padding: 10px 12px;
    border: 0;
    border-radius: 12px;
    background: rgba(118, 118, 128, 0.12);
    color: var(--ios-blue);
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

body.page-front .ios-paid-payment-pick.is-active {
    background: var(--ios-blue);
    color: #fff;
}

body.page-front .ios-paid-payment-pick:active {
    opacity: 0.82;
}

body.page-front .ios-dialog-foot-btn-success {
    color: var(--ios-success-text);
    font-weight: 700;
}

body.page-front .ios-order-bill .ios-oc-amount-paid-btn {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ios-blue);
    text-align: right;
    font-variant-numeric: tabular-nums;
    word-break: break-word;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
}

body.page-front .ios-order-bill .ios-oc-amount-paid-btn:active {
    opacity: 0.65;
}

body.page-front .ios-amount-paid-dialog-form {
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
}

body.page-front .ios-amount-paid-dialog-body {
    padding: 18px 20px 16px;
    text-align: left;
}

body.page-front .ios-amount-paid-dialog-title {
    margin: 0 0 14px;
    font-size: 17px;
    font-weight: 700;
    color: var(--ios-text);
    text-align: center;
}

body.page-front .ios-amount-paid-dialog-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--ios-label);
}

body.page-front .ios-amount-paid-dialog-input {
    box-sizing: border-box;
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(60, 60, 67, 0.2);
    border-radius: 10px;
    font-size: 17px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    color: var(--ios-text);
    background: rgba(118, 118, 128, 0.08);
}

body.page-front select.ios-table-dialog-select {
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238e8e93' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

body.page-front .ios-amount-paid-dialog-input:focus {
    outline: none;
    border-color: var(--ios-blue);
    background: var(--ios-card);
}

/* 可选顶栏：未设置 $payment_qr_hide_top_dock 时显示（新建订单、后台、收款码）；首页已并入搜索卡片同一行 */
body.page-front .ios-front-dock {
    position: static;
    z-index: auto;
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 0 0 12px;
    padding: 0;
    box-sizing: border-box;
}

body.page-front .ios-front-dock-surface {
    width: 100%;
    max-width: var(--ios-shell-max);
}

body.page-front .ios-front-dock-inner {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.86);
    -webkit-backdrop-filter: saturate(1.2) blur(16px);
    backdrop-filter: saturate(1.2) blur(16px);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.1),
        0 0 0 0.5px rgba(60, 60, 67, 0.1);
}

body.page-front .ios-front-dock-slot {
    display: flex;
    align-items: center;
    min-width: 0;
}

body.page-front .ios-front-dock-slot--start {
    justify-content: flex-start;
}

body.page-front .ios-front-dock-slot--center {
    justify-content: center;
}

body.page-front .ios-front-dock-slot--end {
    justify-content: flex-end;
}

/* 顶栏链接：独立圆角块（左 / 中各一） */
body.page-front .ios-front-dock-inner .ios-front-nav-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    max-width: 100%;
    padding: 6px 10px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    line-height: 1.2;
    color: var(--ios-text);
    text-decoration: none;
    border-radius: 10px;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    white-space: nowrap;
    background: var(--ios-search-bg);
    box-shadow: inset 0 0 0 0.5px rgba(60, 60, 67, 0.12);
}

body.page-front .ios-front-dock-inner .ios-front-nav-item:active {
    background: rgba(255, 255, 255, 0.75);
}

body.page-front .ios-front-dock-inner .ios-front-nav-item:focus-visible {
    outline: 2px solid rgba(0, 122, 255, 0.45);
    outline-offset: 1px;
}

body.page-front .ios-pay-qr-open-btn {
    flex-shrink: 0;
    min-height: 30px;
    padding: 0 10px;
    border-radius: 8px;
    border: 0;
    background: var(--ios-blue);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

body.page-front .ios-pay-qr-open-btn:active {
    background: var(--ios-blue-press);
}

body.page-front dialog.ios-pay-qr-dialog {
    margin: auto;
    padding: 0;
    border: none;
    max-width: calc(100vw - 24px);
    width: min(400px, calc(100vw - 24px));
    max-height: calc(100vh - 24px);
    max-height: calc(100dvh - 24px);
    background: transparent;
    box-shadow: none;
}

body.page-front dialog.ios-pay-qr-dialog::backdrop {
    background: rgba(0, 0, 0, 0.38);
    -webkit-backdrop-filter: saturate(1.2) blur(8px);
    backdrop-filter: saturate(1.2) blur(8px);
}

body.page-front .ios-pay-qr-dialog-card {
    display: flex;
    flex-direction: column;
    max-height: min(85vh, 720px);
    max-height: min(85dvh, 720px);
    background: var(--ios-card);
    border-radius: var(--ios-radius-xl);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

body.page-front .ios-pay-qr-dialog-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px 12px;
    border-bottom: 1px solid var(--ios-sep-light);
    flex-shrink: 0;
}

body.page-front .ios-pay-qr-dialog-head-main {
    flex: 1;
    min-width: 0;
}

body.page-front .ios-pay-qr-title {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: var(--ios-text);
}

body.page-front .ios-pay-qr-amount-line {
    margin: 6px 0 0;
    font-size: 15px;
    color: var(--ios-label);
    line-height: 1.35;
}

body.page-front .ios-pay-qr-amount-line strong {
    font-size: 20px;
    font-weight: 700;
    color: var(--ios-text);
    letter-spacing: -0.3px;
}

body.page-front .ios-pay-qr-close {
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--ios-label);
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

body.page-front .ios-pay-qr-close:active {
    background: rgba(0, 0, 0, 0.06);
}

body.page-front .ios-pay-qr-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 16px 12px;
    border-bottom: 1px solid var(--ios-sep-light);
    flex-shrink: 0;
}

body.page-front .ios-pay-qr-picker-btn {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 34px;
    padding: 6px 12px;
    border: 0;
    border-radius: 8px;
    background: var(--ios-search-bg);
    color: var(--ios-label);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    line-height: 1.25;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: inset 0 0 0 0.5px rgba(60, 60, 67, 0.12);
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

body.page-front .ios-pay-qr-picker-btn.is-active {
    background: var(--ios-blue);
    color: #fff;
    box-shadow: none;
}

body.page-front .ios-pay-qr-picker-btn:active:not(.is-active) {
    opacity: 0.75;
}

body.page-front .ios-pay-qr-scroll {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px 16px 18px;
}

body.page-front .ios-pay-qr-fig {
    margin: 0;
    padding: 0;
    text-align: center;
}

body.page-front .ios-pay-qr-fig[hidden] {
    display: none !important;
}

body.page-front .ios-pay-qr-img {
    display: block;
    width: 100%;
    max-width: 280px;
    height: auto;
    margin: 0 auto;
    border-radius: 10px;
    border: 1px solid var(--ios-sep-light);
    background: #fafafa;
}

body.page-front .ios-pay-qr-cap {
    margin-top: 8px;
    font-size: 14px;
    color: var(--ios-text);
    line-height: 1.35;
}

body.page-front .ios-pay-qr-hint {
    margin: 6px 0 0;
    font-size: 12px;
    line-height: 1.4;
    color: var(--ios-text-secondary);
}

body.page-front .ios-pay-qr-status {
    margin: 0 16px 8px;
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
    color: var(--ios-text-secondary);
}

body.page-front .ios-pay-qr-status--ok {
    color: var(--ios-green, #34c759);
}

body.page-front .ios-pay-qr-status--error {
    color: var(--ios-danger);
}

body.page-front .ios-pay-qr-status--loading {
    color: var(--ios-text-secondary);
}

body.page-front .ios-pay-qr-dynamic-mount {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 260px;
}

body.page-front .ios-pay-qr-dynamic-mount img {
    display: block;
    border-radius: 8px;
}

body.page-front .ios-pay-qr-loading,
body.page-front .ios-pay-qr-fallback {
    font-size: 14px;
    color: var(--ios-text-secondary);
    text-align: center;
}

body.page-front .ios-pay-qr-refund-row {
    padding: 0 16px 16px;
}

body.page-front .ios-checkout-hint-pay-row {
    margin-top: 10px;
}

/* 订单信息页 · 打印（仅账单 + 已加菜品与结账提示） */
body.page-front .ios-order-print-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 20px 0 10px 16px;
}

body.page-front .ios-order-print-header .ios-section-title-bill {
    margin: 0;
    flex: 1;
    min-width: 0;
}

body.page-front .ios-order-print-actions {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 8px;
}

body.page-front .ios-order-print-btn {
    flex-shrink: 0;
    min-height: 0;
    padding: 4px 12px;
    border-radius: 8px;
    border: 0;
    background: var(--ios-search-bg);
    color: var(--ios-blue);
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    line-height: 1.25;
    letter-spacing: -0.28px;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: inset 0 0 0 0.5px rgba(60, 60, 67, 0.12);
}

body.page-front .ios-order-print-btn:active {
    opacity: 0.65;
}

a.ios-order-print-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    box-sizing: border-box;
}

body.page-front a.ios-order-print-btn--wechat {
    color: var(--ios-wechat, #07c160);
}

/* 仅打印时显示的店名标题 */
body.page-front .front-print-shop-title {
    display: none;
}

/* 平板 / 宽屏：放宽主栏宽度，优化看板栅格与表单布局 */
@media (min-width: 600px) {
    :root {
        --ios-shell-max: 720px;
        --ios-shell-pad-x: 24px;
    }

    body.page-front .ios-table-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 16px 12px;
    }

    body.page-front .ios-front-stat-item {
        flex: 1 1 calc(25% - 6px);
    }

    body.page-front .ios-front-stat-date {
        flex: 1 1 auto;
        margin-bottom: 0;
    }

    body.page-front .ios-add-slot {
        flex-wrap: nowrap;
    }

    body.page-front .ios-add-slot-dish {
        flex: 1 1 0;
    }

    body.page-front dialog.ios-dialog {
        width: 340px;
    }

    body.page-front dialog.ios-pay-qr-dialog {
        width: min(440px, calc(100vw - 48px));
    }

    body.page-front .ios-order-meal-actions {
        gap: 12px;
    }

    body.page-front .ios-order-meal-actions .ios-btn-block {
        min-height: 48px;
    }
}

@media (min-width: 768px) {
    :root {
        --ios-shell-max: 860px;
        --ios-shell-pad-x: 32px;
    }

    body.page-front .ios-table-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 18px 14px;
    }

    body.page-front .ios-front-stat-strip {
        flex-wrap: nowrap;
        align-items: stretch;
        padding: 14px 18px;
    }

    body.page-front .ios-front-stat-date {
        flex: 0 0 auto;
        align-self: center;
        margin: 0 12px 0 0;
        padding-right: 12px;
        border-right: 0.5px solid var(--ios-sep-light);
    }

    body.page-front .ios-front-stat-item {
        flex: 1 1 0;
        min-width: 0;
    }

    body.page-front .form-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px 20px;
    }

    body.page-front .form-grid > .field.full:first-of-type,
    body.page-front .form-grid > .field.full:last-of-type,
    body.page-front .actions.full,
    body.page-front .order-voice-toolbar {
        grid-column: 1 / -1;
    }

    body.page-front .order-form-row {
        flex-wrap: nowrap;
    }

    body.page-front .ios-order-meal-actions {
        margin-top: 16px;
        gap: 14px;
    }

    body.page-front .ios-order-meal-actions .ios-btn-block {
        min-height: 50px;
        font-size: 17px;
        border-radius: 12px;
    }

    body.page-front .ios-add-list .ios-add-line {
        padding-left: 20px;
        padding-right: 20px;
    }

    body.page-front .ios-add-form .ios-add-slot {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (min-width: 1024px) {
    :root {
        --ios-shell-max: 1024px;
        --ios-shell-pad-x: 40px;
    }

    body.page-front .ios-table-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 20px 16px;
    }

    body.page-front .ios-search-card {
        padding: 14px 18px;
    }

    body.page-front .ios-group .ios-row,
    body.page-front .ios-group .ios-row-pair .ios-pair-cell {
        padding-left: 20px;
        padding-right: 20px;
    }

    body.page-front .ios-order-meal-actions {
        margin-top: 18px;
        margin-bottom: calc(8px + env(safe-area-inset-bottom, 0));
        gap: 16px;
    }

    body.page-front .ios-order-meal-actions .ios-btn-block {
        min-height: 52px;
        font-size: 18px;
    }
}

@page {
    margin: 10mm;
    size: auto;
}

@media print {
    body.page-front .ios-tabbar {
        display: none !important;
    }

    body.page-front:has(.front-order-print-area) * {
        visibility: hidden !important;
    }

    body.page-front:has(.front-order-print-area) .front-order-print-area,
    body.page-front:has(.front-order-print-area) .front-order-print-area * {
        visibility: visible !important;
    }

    body.page-front:has(.front-order-print-area) .front-order-print-area .front-no-print {
        display: none !important;
        visibility: hidden !important;
    }

    /* 小票：窄栏、居中、等宽字；最外黑框已去掉，内文分区仍用表格线等 */
    body.page-front:has(.front-order-print-area) .front-order-print-area {
        position: absolute !important;
        left: 0 !important;
        right: 0 !important;
        margin-left: auto !important;
        margin-right: auto !important;
        top: 0 !important;
        transform: none !important;
        width: 72mm !important;
        max-width: calc(100% - 16mm) !important;
        margin: 0 !important;
        padding: 8px 7px 10px !important;
        box-sizing: border-box !important;
        background: #fff !important;
        color: #000 !important;
        border: 0 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        font-family: "Courier New", Courier, "Noto Sans Mono CJK SC", ui-monospace, monospace !important;
        font-size: 9.5pt !important;
        line-height: 1.35 !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }

    body.page-front:has(.front-order-print-area) .front-print-shop-title {
        display: block !important;
        visibility: visible !important;
        margin: 0 0 6px !important;
        padding: 0 2px 6px !important;
        font-size: 11pt !important;
        font-weight: 700 !important;
        line-height: 1.2 !important;
        text-align: center !important;
        letter-spacing: 0.04em !important;
        color: #000 !important;
        border-bottom: 1px dashed #000 !important;
    }

    body.page-front:has(.front-order-print-area) .ios-order-print-header {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 0 6px !important;
        padding: 0 0 6px !important;
        border-bottom: 1px dashed #000 !important;
        gap: 8px !important;
    }

    body.page-front:has(.front-order-print-area) .ios-order-print-header .ios-section-title-bill {
        flex: none !important;
        margin: 0 !important;
        font-size: 9.5pt !important;
        font-weight: 700 !important;
        text-align: center !important;
        color: #000 !important;
    }

    body.page-front:has(.front-order-print-area) .front-order-print-area .ios-group.ios-order-bill {
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    body.page-front:has(.front-order-print-area) .front-order-print-area .ios-order-bill-count-price-row {
        padding: 0 !important;
        min-height: 0 !important;
        margin-top: 0 !important;
        border-radius: 0 !important;
        overflow: visible !important;
        border: none !important;
        background: transparent !important;
    }

    body.page-front:has(.front-order-print-area) .front-order-print-area .ios-order-count-price {
        width: 100% !important;
    }

    body.page-front:has(.front-order-print-area) .front-order-print-area .ios-order-count-price td {
        padding: 3px 4px !important;
        vertical-align: middle !important;
        border: 1px solid #000 !important;
        background: #fff !important;
    }

    body.page-front:has(.front-order-print-area) .front-order-print-area .ios-order-bill .ios-oc-lb {
        font-size: 7.5pt !important;
        font-weight: 600 !important;
        color: #444 !important;
    }

    body.page-front:has(.front-order-print-area) .front-order-print-area .ios-order-bill .ios-oc-v {
        font-size: 8.5pt !important;
        font-weight: 700 !important;
        color: #000 !important;
    }

    body.page-front:has(.front-order-print-area) .front-order-print-area .ios-order-bill .ios-oc-amount-paid-btn {
        color: #000 !important;
        text-decoration: none !important;
        cursor: default !important;
        border: 0 !important;
        background: transparent !important;
        padding: 0 !important;
        -webkit-appearance: none !important;
        appearance: none !important;
    }

    body.page-front:has(.front-order-print-area) .front-order-print-area .ios-order-bill .ios-oc-v-datetime {
        font-size: 8.5pt !important;
        font-weight: 600 !important;
    }

    body.page-front:has(.front-order-print-area) .front-order-print-area .ios-add-wrap {
        margin-top: 6px !important;
        margin-bottom: 0 !important;
        padding-top: 6px !important;
        border-top: 1px dashed #000 !important;
    }

    body.page-front:has(.front-order-print-area) .front-order-print-area .ios-subsection-title {
        margin: 0 0 6px !important;
        padding: 0 !important;
        font-size: 8.5pt !important;
        font-weight: 700 !important;
        text-align: center !important;
        letter-spacing: 0.35em !important;
        text-indent: 0.35em !important;
        color: #000 !important;
    }

    body.page-front:has(.front-order-print-area) .front-order-print-area .ios-add-list {
        margin: 0 !important;
        padding: 0 !important;
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    body.page-front:has(.front-order-print-area) .front-order-print-area .ios-add-line {
        justify-content: flex-start !important;
        min-height: 0 !important;
        padding: 3px 0 !important;
        margin: 0 !important;
        font-size: 8.5pt !important;
        border-bottom: 1px dotted #999 !important;
        gap: 6px !important;
    }

    body.page-front:has(.front-order-print-area) .front-order-print-area .ios-add-name {
        font-weight: 600 !important;
    }

    body.page-front:has(.front-order-print-area) .front-order-print-area .ios-add-meta {
        color: #000 !important;
        font-size: 8.5pt !important;
    }

    body.page-front:has(.front-order-print-area) .front-order-print-area .ios-add-total-row {
        margin-top: 4px !important;
        padding-top: 6px !important;
        padding-bottom: 2px !important;
        min-height: 0 !important;
        border-top: 2px solid #000 !important;
        border-bottom: none !important;
        font-size: 8.5pt !important;
        font-weight: 700 !important;
    }

    body.page-front:has(.front-order-print-area) .front-order-print-area .ios-row-label {
        color: #000 !important;
    }

    body.page-front:has(.front-order-print-area) .front-order-print-area .ios-add-total-inline {
        font-weight: 700 !important;
    }

    body.page-front:has(.front-order-print-area) .front-order-print-area .ios-add-total-k {
        color: #000 !important;
    }

    body.page-front:has(.front-order-print-area) .front-order-print-area .ios-checkout-hint--under-detail {
        margin: 0 !important;
        padding: 4px 0 0 !important;
        background: transparent !important;
        border-top: 1px dashed #000 !important;
    }

    body.page-front:has(.front-order-print-area) .front-order-print-area .ios-checkout-hint--under-detail .ios-checkout-hint-main {
        font-size: 8.5pt !important;
        font-weight: 700 !important;
        color: #000 !important;
    }

    body.page-front:has(.front-order-print-area) .front-order-print-area .ios-checkout-hint-pay strong,
    body.page-front:has(.front-order-print-area) .front-order-print-area .ios-checkout-hint-refund strong {
        color: #000 !important;
    }

    body.page-front:has(.front-order-print-area) .front-order-print-area .ios-checkout-hint--after-finished {
        margin: 0 !important;
        padding: 8px 0 0 !important;
        background: transparent !important;
        border-top: 1px solid #000 !important;
    }

    body.page-front:has(.front-order-print-area) .front-order-print-area .ios-checkout-hint--after-finished .ios-checkout-hint-caption {
        font-size: 8pt !important;
        color: #000 !important;
    }

    body.page-front:has(.front-order-print-area) .front-order-print-area .ios-checkout-hint--after-finished .ios-checkout-hint-main {
        font-size: 9pt !important;
        font-weight: 700 !important;
        color: #000 !important;
    }
}

/* ── 暗黑磨砂背景（html.theme-dark，点击右上角按钮切换） ── */

html.theme-dark body.page-front {
    --ios-bg: #0c0c14;
    --ios-card: rgba(38, 38, 50, 0.62);
    --ios-label: #9898a0;
    --ios-text: #f2f2f7;
    --ios-blue: #0a84ff;
    --ios-blue-press: #006ee6;
    --ios-sep: rgba(255, 255, 255, 0.14);
    --ios-sep-light: rgba(255, 255, 255, 0.08);
    --ios-search-bg: rgba(255, 255, 255, 0.08);
    --ios-shadow: 0 4px 24px rgba(0, 0, 0, 0.32);
    --ios-success-bg: rgba(52, 199, 89, 0.16);
    --ios-success-text: #5dd879;
    background:
        radial-gradient(ellipse 820px 520px at 18% -8%, rgba(88, 86, 214, 0.28), transparent 62%),
        radial-gradient(ellipse 640px 420px at 92% 6%, rgba(10, 132, 255, 0.22), transparent 58%),
        radial-gradient(ellipse 520px 360px at 50% 102%, rgba(175, 82, 222, 0.14), transparent 60%),
        var(--ios-bg);
    color: var(--ios-text);
}

html.theme-dark body.page-front .ios-search-card,
html.theme-dark body.page-front .ios-group,
html.theme-dark body.page-front .ios-new-order-card,
html.theme-dark body.page-front .ios-front-stat-strip,
html.theme-dark body.page-front .ios-table-board-empty,
html.theme-dark body.page-front .ios-table-tile,
html.theme-dark body.page-front .ios-table-tile--dining,
html.theme-dark body.page-front .ios-table-tile--finished,
html.theme-dark body.page-front dialog.ios-dialog .ios-dialog-card,
html.theme-dark body.page-front .ios-pay-qr-dialog-card {
    background: rgba(38, 38, 50, 0.62);
    -webkit-backdrop-filter: saturate(1.45) blur(24px);
    backdrop-filter: saturate(1.45) blur(24px);
    border: 0.5px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.28);
}

html.theme-dark body.page-front .ios-board-sort {
    background: rgba(28, 28, 38, 0.55);
    -webkit-backdrop-filter: saturate(1.4) blur(20px);
    backdrop-filter: saturate(1.4) blur(20px);
    border: 0.5px solid rgba(255, 255, 255, 0.08);
}

html.theme-dark body.page-front .ios-board-sort-btn.is-active {
    background: rgba(58, 58, 72, 0.78);
    border: 0.5px solid rgba(255, 255, 255, 0.1);
}

html.theme-dark body.page-front .ios-tabbar {
    background: rgba(18, 18, 26, 0.82);
    -webkit-backdrop-filter: saturate(1.5) blur(24px);
    backdrop-filter: saturate(1.5) blur(24px);
    border-top-color: rgba(255, 255, 255, 0.08);
}

html.theme-dark body.page-front .ios-front-dock-inner {
    background: rgba(28, 28, 38, 0.72);
    -webkit-backdrop-filter: saturate(1.45) blur(20px);
    backdrop-filter: saturate(1.45) blur(20px);
    box-shadow:
        0 4px 24px rgba(0, 0, 0, 0.35),
        0 0 0 0.5px rgba(255, 255, 255, 0.08);
}

html.theme-dark body.page-front .ios-front-dock-inner .ios-front-nav-item:active {
    background: rgba(255, 255, 255, 0.1);
}

html.theme-dark body.page-front .ios-search-input::placeholder,
html.theme-dark body.page-front .ios-new-order-table-input::placeholder {
    color: rgba(235, 235, 245, 0.38);
}

html.theme-dark body.page-front .ios-table-tile--idle .ios-table-tile-status {
    background: rgba(255, 255, 255, 0.1);
    color: #aeaeb2;
}

html.theme-dark body.page-front .ios-table-tile-duration {
    background: rgba(255, 149, 0, 0.14);
    color: #ffb340;
}

html.theme-dark body.page-front .ios-table-tile--dining .ios-table-tile-guest--adult .ios-table-tile-guest-label {
    color: #ffb340;
}

html.theme-dark body.page-front .ios-table-tile--dining .ios-table-tile-guest--child .ios-table-tile-guest-label {
    color: #64b5ff;
}

html.theme-dark body.page-front .ios-pay-qr-img {
    background: rgba(255, 255, 255, 0.06);
}

html.theme-dark body.page-front dialog.ios-dialog::backdrop,
html.theme-dark body.page-front dialog.ios-pay-qr-dialog::backdrop {
    background: rgba(0, 0, 0, 0.55);
    -webkit-backdrop-filter: saturate(1.2) blur(12px);
    backdrop-filter: saturate(1.2) blur(12px);
}

/* 底部 Tab：主题切换（管理后面） */
body.page-front .ios-tabbar-item.ios-theme-toggle {
    border: 0;
    background: transparent;
    font: inherit;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

body.page-front .ios-tabbar-item.ios-theme-toggle:focus-visible {
    outline: 2px solid rgba(0, 122, 255, 0.45);
    outline-offset: -2px;
    border-radius: 8px;
}

body.page-front .ios-theme-toggle .ios-tabbar-icon {
    position: relative;
}

body.page-front .ios-theme-toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: var(--ios-tabbar-icon-size);
    height: var(--ios-tabbar-icon-size);
}

body.page-front .ios-theme-toggle-icon svg {
    display: block;
    width: var(--ios-tabbar-icon-size);
    height: var(--ios-tabbar-icon-size);
}

body.page-front .ios-theme-toggle-icon--dark {
    display: none;
}

body.page-front .ios-theme-toggle.is-active {
    color: var(--ios-blue);
}

body.page-front .ios-theme-toggle.is-active .ios-tabbar-icon svg {
    opacity: 1;
}

html.theme-dark body.page-front .ios-theme-toggle.is-active {
    color: #ffd60a;
}

html.theme-dark body.page-front .ios-theme-toggle-icon--light {
    display: none;
}

html.theme-dark body.page-front .ios-theme-toggle-icon--dark {
    display: flex;
}

/* 下拉刷新 */
body.page-front[data-pull-refresh="1"] {
    overscroll-behavior-y: contain;
}

body.page-front .ios-ptr {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: calc(56px + env(safe-area-inset-top, 0px));
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: 8px;
    pointer-events: none;
    opacity: 0;
    transform: translate3d(0, -100%, 0);
    transition: opacity 0.2s ease, transform 0.25s ease;
    will-change: transform;
}

body.page-front .ios-ptr--dragging {
    transition: none;
}

body.page-front .ios-shell {
    transition: transform 0.25s ease;
}

body.page-front .ios-shell.ios-ptr-content-dragging {
    transition: none;
}

body.page-front .ios-ptr--visible {
    opacity: 1;
}

body.page-front .ios-ptr-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(0, 122, 255, 0.22);
    border-top-color: var(--ios-blue);
    border-radius: 50%;
    margin-bottom: 4px;
    opacity: 0;
    transform: rotate(0deg);
    transition: opacity 0.15s ease;
}

body.page-front .ios-ptr--pulling .ios-ptr-spinner {
    opacity: 0.45;
}

body.page-front .ios-ptr--ready .ios-ptr-spinner,
body.page-front .ios-ptr--refreshing .ios-ptr-spinner {
    opacity: 1;
}

body.page-front .ios-ptr--refreshing .ios-ptr-spinner {
    animation: ios-ptr-spin 0.75s linear infinite;
}

body.page-front .ios-ptr-label {
    font-size: 12px;
    font-weight: 500;
    color: var(--ios-label);
    letter-spacing: 0.02em;
}

@keyframes ios-ptr-spin {
    to {
        transform: rotate(360deg);
    }
}

html.theme-dark body.page-front .ios-ptr-spinner {
    border-color: rgba(10, 132, 255, 0.28);
    border-top-color: #0a84ff;
}

html.theme-dark body.page-front .ios-ptr-label {
    color: rgba(235, 235, 245, 0.6);
}
