        :root {
            --primary-color: #2c3e50;
            --accent-color: #3498db;
            --bg-color: #f8f9fa;
            --card-bg: #ffffff;
            --error-color: #e74c3c;
            --success-color: #27ae60;
            
            /* Layout heights */
            --header-height: calc(55px + env(safe-area-inset-top));
            --list-switcher-height: 51px;
            --store-selector-height: 52px;
            --sync-indicator-height: 15px;
            --input-section-height: 70px;
            --action-buttons-height: 40px;
            --total-top-height: calc(
                var(--header-height) + 
                var(--list-switcher-height) +
                var(--store-selector-height) + 
                var(--sync-indicator-height) + 
                var(--input-section-height) + 
                var(--action-buttons-height) +
                env(safe-area-inset-bottom)
            );
        }

        * {
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, system-ui, sans-serif;
            background-color: var(--bg-color);
            margin: 0;
            padding: 0;
            color: var(--primary-color);
            min-height: 100vh;
            /* overflow: hidden; 禁止 body 滚动 - 已注释以恢复下拉刷新 */
            overflow-y: auto;
        }

        /* ===== 认证页面样式 ===== */
        #authContainer {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            min-height: 100vh;
            padding: 20px;
            position: relative;
            z-index: 1;
        }

        .auth-box {
            background: white;
            border-radius: 16px;
            padding: 30px;
            width: 100%;
            max-width: 360px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
            position: relative;
        }

        .auth-language-btn {
            position: absolute;
            top: 12px;
            right: 12px;
            min-width: 62px;
            height: 32px;
            border: 1px solid #d7dde4;
            border-radius: 16px;
            background: white;
            color: #34495e;
            font-size: 13px;
            font-weight: 700;
            cursor: pointer;
        }

        .auth-language-btn:active {
            background: #f1f5f9;
        }

        .auth-title {
            text-align: center;
            font-size: 28px;
            margin-bottom: 8px;
            padding: 12px 54px 0;
        }

        .auth-subtitle {
            text-align: center;
            color: #666;
            margin-bottom: 24px;
            font-size: 14px;
        }

        .auth-input {
            width: 100%;
            padding: 14px;
            border: 1px solid #ddd;
            border-radius: 8px;
            font-size: 16px;
            margin-bottom: 12px;
            transition: border-color 0.2s;
        }

        .auth-input:focus {
            outline: none;
            border-color: var(--accent-color);
        }

        .auth-btn {
            width: 100%;
            padding: 14px;
            background: var(--accent-color);
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            font-weight: bold;
            cursor: pointer;
            margin-bottom: 12px;
            transition: background 0.2s;
        }

        .auth-btn:hover {
            background: #2980b9;
        }

        .auth-btn:disabled {
            background: #bdc3c7;
            cursor: not-allowed;
        }

        .auth-btn-secondary {
            background: transparent;
            color: var(--accent-color);
            border: 1px solid var(--accent-color);
        }

        .auth-btn-secondary:hover {
            background: rgba(52, 152, 219, 0.1);
        }

        .auth-error {
            background: #fdeaea;
            color: var(--error-color);
            padding: 10px;
            border-radius: 6px;
            font-size: 14px;
            margin-bottom: 12px;
            display: none;
        }

        .auth-error.auth-info {
            background: #eaf4fd;
            color: #2c3e50;
        }

        .auth-switch {
            text-align: center;
            margin-top: 16px;
            font-size: 14px;
            color: #666;
        }

        .auth-switch a {
            color: var(--accent-color);
            text-decoration: none;
            font-weight: bold;
        }

        .auth-secondary-action {
            text-align: right;
            margin-top: -4px;
            margin-bottom: 12px;
            font-size: 13px;
        }

        .auth-secondary-action a {
            color: #64748b;
            text-decoration: none;
            font-weight: 700;
        }

        .auth-divider {
            display: flex;
            align-items: center;
            margin: 20px 0;
            color: #999;
            font-size: 12px;
        }

        .auth-divider::before,
        .auth-divider::after {
            content: '';
            flex: 1;
            height: 1px;
            background: #ddd;
        }

        .auth-divider span {
            padding: 0 10px;
        }

        /* ===== 加载状态 ===== */
        #loadingScreen {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: var(--bg-color);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 9999;
        }

        .spinner {
            width: 40px;
            height: 40px;
            border: 4px solid #ddd;
            border-top-color: var(--accent-color);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }

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

        /* ===== 主应用样式 (从原版继承) ===== */
        #mainApp {
            display: none;
            flex-direction: column;
            height: 100vh;
            height: 100dvh;
            overflow: hidden;
        }

        .header {
            background-color: var(--primary-color);
            color: white;
            padding: 15px;
            padding-top: calc(env(safe-area-inset-top) + 10px);
            text-align: center;
            font-weight: bold;
            position: sticky;
            top: 0;
            z-index: 100;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-shrink: 0;
        }

        /* 固定顶部区域 */
        .store-selector {
            position: sticky;
            top: calc(var(--header-height) + var(--list-switcher-height));
            z-index: 90;
            flex-shrink: 0;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            scrollbar-width: none; /* Firefox */
            height: var(--store-selector-height);
            display: flex;
            align-items: flex-start;
            padding-top: 4px;
        }
        
        .store-selector::-webkit-scrollbar {
            display: none; /* Chrome, Safari, Edge */
        }

        .input-section {
            position: sticky;
            top: calc(var(--header-height) + var(--list-switcher-height) + var(--store-selector-height));
            z-index: 90;
        }

        #syncIndicator {
            position: sticky;
            top: calc(var(--header-height) + var(--list-switcher-height) + var(--store-selector-height));
            z-index: 89;
        }

        .header-title {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .header-left,
        .header-right {
            min-width: 44px;
            display: flex;
            align-items: center;
        }

        .header-left {
            justify-content: flex-start;
        }

        .header-right {
            justify-content: flex-end;
            gap: 4px;
        }

        .app-title-refresh {
            appearance: none;
            border: none;
            background: transparent;
            color: inherit;
            font: inherit;
            font-weight: inherit;
            padding: 6px 10px;
            border-radius: 8px;
            cursor: pointer;
            min-height: 34px;
            touch-action: manipulation;
        }

        .app-title-refresh:active,
        .app-title-refresh.refreshing {
            background: rgba(255, 255, 255, 0.16);
        }

        .app-title-refresh:disabled {
            opacity: 0.72;
            cursor: default;
        }

        .user-info {
            font-size: 11px;
            opacity: 0.8;
            font-weight: normal;
        }

        .list-switcher-bar {
            display: flex;
            align-items: center;
            gap: 8px;
            padding: 8px 12px;
            background: #f8fafc;
            border-bottom: 1px solid #e5e7eb;
            flex-shrink: 0;
            overflow: visible;
            position: relative;
            z-index: 125;
        }

        .list-switcher-bar::-webkit-scrollbar {
            display: none;
        }

        .list-switcher {
            flex: 1;
            min-width: 0;
            height: 34px;
            border: 1px solid #d1d5db;
            border-radius: 6px;
            background: white;
            color: #1f2937;
            font-size: 14px;
            padding: 0 8px;
        }

        .list-role {
            color: #64748b;
            font-size: 12px;
            min-width: 42px;
            text-align: center;
        }

        .list-action-btn {
            border: 1px solid #cbd5e1;
            background: white;
            color: #334155;
            height: 34px;
            border-radius: 6px;
            padding: 0 8px;
            font-size: 13px;
            white-space: nowrap;
        }

        .list-action-btn.danger {
            border-color: #fecaca;
            color: #b91c1c;
        }

        .list-edit-menu-trigger {
            min-width: 50px;
            cursor: pointer;
        }

        .list-edit-menu {
            position: relative;
            flex: 0 0 auto;
        }

        .list-edit-menu-content {
            position: absolute;
            right: 0;
            top: calc(100% + 6px);
            min-width: 112px;
            background: white;
            border: 1px solid #cbd5e1;
            border-radius: 6px;
            box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
            padding: 4px;
            display: none;
            z-index: 1000;
        }

        .list-edit-menu.open .list-edit-menu-content {
            display: block;
        }

        .list-menu-item {
            width: 100%;
            border: none;
            background: white;
            color: #334155;
            text-align: left;
            border-radius: 4px;
            padding: 9px 10px;
            font-size: 13px;
            white-space: nowrap;
        }

        .list-menu-item:active,
        .list-menu-item:hover {
            background: #f1f5f9;
        }

        .list-menu-item.danger {
            color: #b91c1c;
        }

        .list-menu-separator {
            height: 1px;
            background: #e2e8f0;
            margin: 4px 2px;
        }

        .list-switcher-bar.disabled {
            opacity: 0.68;
        }

        .list-action-btn:disabled,
        .list-switcher:disabled,
        .list-menu-item:disabled {
            cursor: not-allowed;
            background: #f1f5f9;
            color: #94a3b8;
        }

        .header .header-create-list-btn {
            width: 34px;
            height: 34px;
            min-width: 34px;
            padding: 0;
            border: none;
            background: transparent;
            color: white;
            border-radius: 8px;
            font-size: 30px;
            line-height: 30px;
            font-weight: 900;
        }

        .header .header-create-list-btn:disabled {
            background: transparent;
            color: rgba(255, 255, 255, 0.45);
        }

        .pending-invites-panel {
            flex-shrink: 0;
            background: #fff7ed;
            border-bottom: 1px solid #fed7aa;
            padding: 8px 12px;
        }

        .invite-card {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 10px;
        }

        .invite-copy {
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 2px;
            font-size: 13px;
            color: #7c2d12;
        }

        .invite-copy strong,
        .invite-copy span {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .invite-actions {
            display: flex;
            gap: 6px;
            flex-shrink: 0;
        }

        .invite-actions button {
            border: 1px solid #ea580c;
            background: #ea580c;
            color: white;
            height: 30px;
            border-radius: 6px;
            padding: 0 10px;
            font-size: 12px;
        }

        .invite-actions button.secondary {
            background: white;
            color: #9a3412;
        }

        .invite-actions button:disabled,
        .invite-actions button.loading {
            opacity: 0.65;
            cursor: wait;
        }

        .list-role-dialog-overlay {
            position: fixed;
            inset: 0;
            z-index: 1600;
            background: rgba(15, 23, 42, 0.48);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 18px;
        }

        .list-role-dialog {
            width: min(360px, 100%);
            background: white;
            border-radius: 10px;
            padding: 18px;
            box-shadow: 0 16px 40px rgba(15, 23, 42, 0.24);
        }

        .list-role-dialog h3 {
            margin: 0 0 14px;
            font-size: 18px;
            color: #0f172a;
        }

        .list-role-dialog label {
            display: block;
            margin-bottom: 12px;
            font-size: 13px;
            color: #475569;
        }

        .list-role-dialog label span {
            display: block;
            margin-bottom: 5px;
            font-weight: 600;
        }

        .list-role-dialog input,
        .list-role-dialog select {
            width: 100%;
            height: 42px;
            border: 1px solid #cbd5e1;
            border-radius: 8px;
            padding: 0 10px;
            box-sizing: border-box;
            font-size: 14px;
            background: white;
        }

        .share-method-btn {
            width: 100%;
            min-height: 54px;
            display: flex;
            flex-direction: column;
            align-items: flex-start;
            justify-content: center;
            gap: 3px;
            margin: 0 0 12px;
            padding: 10px 12px;
            border: 1px solid var(--accent-color);
            border-radius: 8px;
            background: #eff6ff;
            color: #0f172a;
            text-align: left;
            cursor: pointer;
        }

        .share-method-btn span {
            font-size: 14px;
            font-weight: 700;
            line-height: 1.25;
        }

        .share-method-btn small {
            color: #475569;
            font-size: 12px;
            line-height: 1.25;
        }

        .invite-contact-section {
            margin: -2px 0 12px;
        }

        .invite-contact-title {
            margin-bottom: 6px;
            color: #475569;
            font-size: 13px;
            font-weight: 600;
        }

        .invite-contact-list {
            display: flex;
            flex-direction: column;
            gap: 6px;
            max-height: 148px;
            overflow-y: auto;
        }

        .invite-contact-state {
            border: 1px dashed #cbd5e1;
            border-radius: 8px;
            padding: 10px;
            background: #f8fafc;
            color: #64748b;
            font-size: 12px;
            line-height: 1.35;
        }

        .invite-contact-state.error {
            border-color: #fecaca;
            background: #fff7f7;
            color: #b91c1c;
        }

        .invite-contact-choice {
            width: 100%;
            min-height: 46px;
            box-sizing: border-box;
            display: flex;
            align-items: center;
            gap: 8px;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            background: #f8fafc;
            padding: 7px 9px;
            color: #0f172a;
            text-align: left;
            cursor: pointer;
        }

        .invite-contact-choice.selected {
            border-color: var(--accent-color);
            background: #eff6ff;
        }

        .invite-contact-avatar {
            width: 28px;
            height: 28px;
            flex: 0 0 auto;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: var(--accent-color);
            color: white;
            font-size: 12px;
            font-weight: 700;
        }

        .invite-contact-copy {
            min-width: 0;
            display: flex;
            flex-direction: column;
            gap: 1px;
        }

        .invite-contact-copy strong,
        .invite-contact-copy span {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .invite-contact-copy strong {
            font-size: 13px;
            line-height: 1.25;
        }

        .invite-contact-copy span {
            color: #64748b;
            font-size: 12px;
            line-height: 1.25;
        }

        .list-role-dialog-actions {
            display: flex;
            gap: 8px;
            margin-top: 6px;
        }

        .list-role-dialog-actions button {
            flex: 1;
            min-height: 40px;
            border: 1px solid var(--accent-color);
            background: var(--accent-color);
            color: white;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 600;
        }

        .list-role-dialog-actions button.secondary {
            background: white;
            color: var(--accent-color);
        }

        .app-dialog-overlay,
        #appBusyOverlay {
            position: fixed;
            inset: 0;
            z-index: 1800;
            background: rgba(15, 23, 42, 0.48);
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 18px;
        }

        #appBusyOverlay {
            display: none;
            z-index: 1900;
        }

        .app-dialog-card,
        .app-busy-card {
            width: min(360px, 100%);
            background: white;
            border-radius: 10px;
            padding: 18px;
            box-shadow: 0 16px 40px rgba(15, 23, 42, 0.24);
        }

        .app-dialog-message {
            color: #0f172a;
            font-size: 15px;
            line-height: 1.45;
            white-space: pre-wrap;
            margin-bottom: 16px;
        }

        .app-dialog-label {
            display: block;
            color: #475569;
            font-size: 13px;
        }

        .app-dialog-stack {
            display: grid;
            gap: 12px;
        }

        .app-dialog-label span {
            display: block;
            margin-bottom: 6px;
            font-weight: 600;
        }

        .app-dialog-label input {
            width: 100%;
            height: 42px;
            border: 1px solid #cbd5e1;
            border-radius: 8px;
            padding: 0 10px;
            box-sizing: border-box;
            font-size: 14px;
        }

        .app-dialog-error {
            min-height: 18px;
            margin-top: 10px;
            color: #c0392b;
            font-size: 12px;
            line-height: 1.4;
        }

        .app-dialog-actions {
            display: flex;
            gap: 8px;
            margin-top: 16px;
        }

        .app-dialog-actions button {
            flex: 1;
            min-height: 40px;
            border: 1px solid var(--accent-color);
            background: var(--accent-color);
            color: white;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 600;
        }

        .app-dialog-actions button.secondary {
            background: white;
            color: var(--accent-color);
        }

        .app-dialog-actions button.danger {
            border-color: #e74c3c;
            background: #e74c3c;
        }

        .ai-import-overlay {
            position: fixed;
            inset: 0;
            z-index: 1750;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 16px;
            background: rgba(15, 23, 42, 0.48);
        }

        .ai-import-panel {
            width: min(560px, 100%);
            max-height: min(88vh, 720px);
            display: flex;
            flex-direction: column;
            background: white;
            border-radius: 8px;
            box-shadow: 0 16px 40px rgba(15, 23, 42, 0.24);
            overflow: hidden;
        }

        .ai-import-header {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 12px;
            padding: 16px 16px 12px;
            border-bottom: 1px solid #e2e8f0;
        }

        .ai-import-title {
            color: #0f172a;
            font-size: 17px;
            font-weight: 700;
            line-height: 1.25;
        }

        .ai-import-subtitle {
            margin-top: 4px;
            color: #64748b;
            font-size: 12px;
            line-height: 1.4;
        }

        .ai-import-close {
            width: 34px;
            height: 34px;
            flex: 0 0 34px;
            border: 1px solid #cbd5e1;
            border-radius: 8px;
            background: white;
            color: #334155;
            font-size: 22px;
            line-height: 1;
        }

        .ai-import-textarea {
            width: calc(100% - 32px);
            min-height: 150px;
            margin: 14px 16px 0;
            padding: 12px;
            resize: vertical;
            border: 1px solid #cbd5e1;
            border-radius: 8px;
            color: #0f172a;
            font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
            font-size: 12px;
            line-height: 1.45;
        }

        .ai-import-summary,
        .ai-import-error {
            display: none;
            margin: 10px 16px 0;
            padding: 10px 12px;
            border-radius: 8px;
            font-size: 13px;
            line-height: 1.4;
        }

        .ai-import-summary {
            background: #eff6ff;
            color: #1e3a8a;
            border: 1px solid #bfdbfe;
        }

        .ai-import-error {
            background: #fef2f2;
            color: #991b1b;
            border: 1px solid #fecaca;
        }

        .ai-import-preview {
            overflow: auto;
            padding: 12px 16px 0;
        }

        .ai-import-preview-card {
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            overflow: hidden;
        }

        .ai-import-preview-title {
            padding: 12px 12px 4px;
            color: #0f172a;
            font-size: 15px;
            font-weight: 700;
        }

        .ai-import-preview-meta {
            padding: 0 12px 10px;
            color: #64748b;
            font-size: 12px;
        }

        .ai-import-store-row,
        .ai-import-action-row {
            padding: 10px 12px;
            border-top: 1px solid #e2e8f0;
        }

        .ai-import-store-name,
        .ai-import-action-name {
            color: #0f172a;
            font-size: 13px;
            font-weight: 700;
        }

        .ai-import-store-items,
        .ai-import-action-message {
            margin-top: 3px;
            color: #475569;
            font-size: 12px;
            line-height: 1.35;
        }

        .ai-import-action-row.failed .ai-import-action-message {
            color: #b91c1c;
        }

        .ai-import-actions {
            display: flex;
            gap: 8px;
            padding: 14px 16px 16px;
            border-top: 1px solid #e2e8f0;
        }

        .ai-import-actions button {
            flex: 1;
            min-width: 0;
            min-height: 40px;
            border: 1px solid var(--accent-color);
            border-radius: 8px;
            background: var(--accent-color);
            color: white;
            font-size: 14px;
            font-weight: 700;
        }

        .ai-import-actions button.secondary {
            background: white;
            color: var(--accent-color);
        }

        .ai-import-actions button:disabled {
            border-color: #cbd5e1;
            background: #e2e8f0;
            color: #64748b;
        }

        .app-busy-card {
            display: flex;
            align-items: center;
            gap: 12px;
            width: auto;
            max-width: min(360px, 90%);
            color: #0f172a;
            font-weight: 600;
        }

        .app-busy-spinner {
            width: 22px;
            height: 22px;
            border: 3px solid #dbeafe;
            border-top-color: var(--accent-color);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
            flex-shrink: 0;
        }

        .join-link-modal {
            position: fixed;
            inset: 0;
            z-index: 1500;
            background: rgba(15, 23, 42, 0.48);
            display: none;
            align-items: center;
            justify-content: center;
            padding: 20px;
        }

        .join-link-card {
            width: min(360px, 100%);
            background: white;
            border-radius: 12px;
            padding: 18px;
            box-shadow: 0 16px 40px rgba(15, 23, 42, 0.22);
        }

        .join-link-card h3 {
            margin: 0 0 14px;
            font-size: 18px;
            color: #0f172a;
            text-align: center;
        }

        .join-qr-wrap {
            min-height: 236px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: #f8fafc;
            border: 1px solid #e2e8f0;
            border-radius: 8px;
            padding: 8px;
            margin-bottom: 12px;
        }

        #joinQrCanvas {
            width: 220px;
            height: 220px;
        }

        .join-qr-fallback {
            min-height: 160px;
            align-items: center;
            justify-content: center;
            text-align: center;
            color: #64748b;
            font-size: 14px;
            line-height: 1.5;
        }

        .join-link-input {
            width: 100%;
            border: 1px solid #cbd5e1;
            border-radius: 8px;
            padding: 10px;
            font-size: 13px;
            color: #334155;
            background: #f8fafc;
            margin-bottom: 12px;
        }

        .join-link-actions {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 8px;
        }

        .join-link-actions button {
            min-height: 40px;
            border: 1px solid var(--accent-color);
            background: var(--accent-color);
            color: white;
            border-radius: 8px;
            font-size: 14px;
        }

        .join-link-actions button.primary {
            grid-column: 1 / -1;
        }

        .join-link-actions button.secondary {
            background: white;
            color: var(--accent-color);
        }

        .list-members-panel {
            position: fixed;
            inset: 0;
            z-index: 1400;
            background: rgba(15, 23, 42, 0.45);
            display: none;
            align-items: flex-end;
            justify-content: center;
            padding: 16px;
        }

        .list-members-card {
            width: 100%;
            max-width: 440px;
            max-height: min(520px, 82vh);
            background: white;
            border-radius: 8px;
            box-shadow: 0 18px 48px rgba(15, 23, 42, 0.24);
            overflow: hidden;
            display: flex;
            flex-direction: column;
        }

        .list-members-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 14px 16px;
            border-bottom: 1px solid #e5e7eb;
        }

        .list-members-header h3 {
            margin: 0;
            font-size: 16px;
        }

        .list-members-header button {
            border: none;
            background: white;
            color: #64748b;
            font-size: 18px;
            padding: 4px 8px;
        }

        .list-members-body {
            overflow-y: auto;
            padding: 8px;
        }

        .member-row {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 8px;
            border-bottom: 1px solid #f1f5f9;
        }

        .member-avatar {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            background: #e0f2fe;
            color: #0369a1;
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 700;
            flex: 0 0 auto;
        }

        .member-info {
            min-width: 0;
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 2px;
        }

        .member-info strong,
        .member-info span {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .member-info span {
            color: #64748b;
            font-size: 12px;
        }

        .member-actions {
            display: flex;
            align-items: center;
            gap: 6px;
            flex-shrink: 0;
        }

        .member-role-select {
            height: 30px;
            border: 1px solid #cbd5e1;
            border-radius: 6px;
            background: white;
            color: #334155;
            font-size: 12px;
        }

        .member-role-label {
            color: #475569;
            font-size: 12px;
            padding: 6px 8px;
            background: #f1f5f9;
            border-radius: 6px;
        }

        .member-remove-btn {
            height: 30px;
            border: 1px solid #fecaca;
            background: white;
            color: #b91c1c;
            border-radius: 6px;
            padding: 0 8px;
            font-size: 12px;
        }

        .item-creator {
            width: 22px;
            height: 22px;
            border-radius: 50%;
            background: var(--member-color, #3498db);
            color: white;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 11px;
            font-weight: 700;
            margin-left: 6px;
            flex: 0 0 auto;
            box-shadow: 0 1px 3px rgba(15, 23, 42, 0.18);
        }

        #storeButtons {
            display: flex;
            gap: 10px;
            flex-wrap: nowrap;
            padding-right: calc(100vw - 60px);
            position: relative;
        }

        .store-btn {
            padding: 6px 15px;
            border-radius: 20px;
            border: 1px solid #ddd;
            background: #fff;
            white-space: nowrap;
            font-size: 14px;
            cursor: pointer;
            position: relative;
            margin-top: 4px;
            height: 38px;
            line-height: 26px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .store-btn.active {
            background-color: var(--accent-color);
            color: white;
            border-color: var(--accent-color);
        }

        .store-add-btn {
            border-style: dashed;
            color: #475569;
            background: #f8fafc;
            font-weight: 700;
        }

        .store-add-btn:active,
        .store-add-btn:hover {
            border-color: var(--accent-color);
            color: var(--accent-color);
        }

        .badge {
            background: #e74c3c;
            color: white;
            font-size: 10px;
            min-width: 16px;
            height: 16px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 2px;
            position: absolute;
            top: -4px;
            right: -4px;
            border: 2px solid white;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
            z-index: 1;
        }
        
        .store-btn.active .badge {
            border-color: #2c3e50;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
        }

        .nav-icon {
            background: none;
            border: none;
            color: white;
            font-size: 24px;
            cursor: pointer;
            padding: 0 10px;
            min-width: 30px;
            min-height: 30px;
        }

        .account-avatar-btn {
            width: 34px;
            height: 34px;
            min-width: 34px;
            min-height: 34px;
            padding: 0;
            border-radius: 50%;
            background: #e0f2fe;
            color: #0369a1;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            font-weight: 800;
            border: 2px solid rgba(255, 255, 255, 0.65);
            box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
            text-transform: uppercase;
        }

        .input-section {
            padding: 15px;
            display: flex;
            gap: 10px;
            align-items: flex-start;
            position: sticky;
            top: calc(var(--header-height) + var(--store-selector-height));
            z-index: 90;
            flex-shrink: 0;
        }

        #itemInput {
            flex: 1;
            padding: 12px;
            border: 1px solid #ddd;
            border-radius: 8px;
            font-size: 16px;
            font-family: inherit;
            resize: none;
            overflow: hidden;
            line-height: 1.5;
            height: 46px;
            box-sizing: border-box;
        }

        .add-btn {
            padding: 10px 20px;
            background: var(--accent-color);
            color: white;
            border: none;
            border-radius: 8px;
            font-weight: bold;
            min-width: 60px;
            min-height: 40px;
        }

        #actionButtons {
            flex-shrink: 0;
        }

        /* 自动补全列表样式 */
        #suggestions {
            position: absolute;
            top: 100%;
            left: 15px;
            right: 15px;
            background: white;
            border: 1px solid #ddd;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            z-index: 1000;
            max-height: 200px;
            overflow-y: auto;
            display: none;
        }

        .suggestion-item {
            padding: 12px;
            border-bottom: 1px solid #eee;
            display: flex;
            justify-content: space-between;
            align-items: center;
            cursor: pointer;
        }

        .suggestion-item:last-child {
            border-bottom: none;
        }

        .suggestion-status {
            font-size: 11px;
            padding: 2px 6px;
            border-radius: 4px;
        }

        .status-exists {
            background: #e8f4fd;
            color: #3498db;
        }

        .status-completed {
            background: #eee;
            color: #999;
        }

        .status-new {
            background: #f0fff0;
            color: #27ae60;
        }

        .item-card {
            background: var(--card-bg);
            padding: 12px;
            border-radius: 10px;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
            user-select: none;
            position: relative;
        }

        .item-card:active {
            background: #f0f0f0;
        }

        .item-card.completed {
            opacity: 0.5;
        }

        .item-card.completed .text {
            text-decoration: line-through;
        }

        .item-checkbox {
            margin-right: 12px;
            width: 22px;
            height: 22px;
            cursor: pointer;
        }

        .text {
            flex: 1;
            font-size: 16px;
        }

        .qty-badge {
            background: #eee;
            padding: 4px 10px;
            border-radius: 12px;
            font-size: 13px;
            color: #666;
            margin-right: 10px;
            cursor: pointer;
        }

        .category-tag {
            font-size: 10px;
            background: #e8f4fd;
            color: #3498db;
            padding: 2px 6px;
            border-radius: 4px;
            margin-left: 8px;
            cursor: pointer;
        }

        .completed .category-tag {
            background: #eee;
            color: #999;
        }

        .purchase-btn {
            color: #27ae60;
            padding: 5px;
            font-size: 16px;
            background: none;
            border: none;
            cursor: pointer;
            margin-right: 5px;
        }

        .reminder-btn {
            background: none;
            border: none;
            font-size: 15px;
            padding: 5px;
            cursor: pointer;
            opacity: 0.2;
            transition: opacity 0.2s;
            margin-right: 2px;
        }

        .reminder-btn.reminder-active {
            opacity: 1;
        }

        .reminder-btn.reminder-overdue {
            opacity: 1;
            animation: reminder-pulse 1.2s ease-in-out infinite;
        }

        .item-card.item-overdue {
            background: #fff0f0;
            border-left: 3px solid #e74c3c;
        }

        .store-btn.store-overdue {
            border-color: #e74c3c;
            color: #e74c3c;
        }

        .store-btn.store-overdue.active {
            background: #e74c3c;
            border-color: #e74c3c;
            color: white;
        }

        /* 最近操作高亮 - 商店标签 */
        .store-btn.store-hl-add {
            border-color: #27ae60;
            color: #27ae60;
            animation: store-hl-pulse 1.5s ease-in-out infinite;
        }
        .store-btn.store-hl-add.active {
            background: #27ae60;
            border-color: #27ae60;
            color: white;
        }
        .store-btn.store-hl-delete {
            border-color: #e67e22;
            color: #e67e22;
            animation: store-hl-pulse 1.5s ease-in-out infinite;
        }
        .store-btn.store-hl-delete.active {
            background: #e67e22;
            border-color: #e67e22;
            color: white;
        }
        @keyframes store-hl-pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.6; }
        }

        /* 最近操作高亮 - 商品卡片 */
        .item-card.item-hl-add {
            border-left: 4px solid #27ae60;
            background: rgba(39, 174, 96, 0.08);
            animation: item-hl-fade 2s ease-out;
        }
        .item-card.item-hl-delete {
            border-left: 4px solid #e67e22;
            background: rgba(230, 126, 34, 0.08);
            animation: item-hl-fade 2s ease-out;
        }
        @keyframes item-hl-fade {
            0% { background: rgba(39, 174, 96, 0.2); }
            100% { background: rgba(39, 174, 96, 0.08); }
        }

        @keyframes reminder-pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.3); }
        }

        #configPanel {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: white;
            z-index: 200;
            overflow-y: auto;
            padding: 20px;
            padding-top: calc(env(safe-area-inset-top) + 20px);
            box-sizing: border-box;
        }

        #historyPanel {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: #f8f9fa;
            z-index: 300;
            overflow-y: auto;
            padding: 20px;
            padding-top: calc(env(safe-area-inset-top) + 20px);
            box-sizing: border-box;
        }

        .history-item {
            background: white;
            padding: 12px;
            border-radius: 8px;
            margin-bottom: 10px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: relative;
            overflow: hidden;
            transition: transform 0.2s ease;
            touch-action: pan-y;
        }

        .history-item.swiping {
            transition: none;
        }

        .history-date {
            font-size: 11px;
            color: #999;
        }

        .history-category-tag {
            display: inline-block;
            margin-left: 4px;
            padding: 1px 5px;
            border-radius: 4px;
            background: #e8f4fd;
            color: #3498db;
            font-size: 10px;
            vertical-align: baseline;
        }

        .history-actors {
            font-size: 11px;
            color: #64748b;
            margin-top: 2px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .history-price {
            font-weight: bold;
            color: #27ae60;
        }

        .history-search-highlight {
            background-color: #fffacd;
            padding: 0 2px;
            border-radius: 2px;
        }

        .history-delete-overlay {
            position: absolute;
            top: 0;
            right: 0;
            bottom: 0;
            width: 80px;
            background: linear-gradient(90deg, rgba(231, 76, 60, 0) 0%, rgba(231, 76, 60, 0.9) 100%);
            display: flex;
            align-items: center;
            justify-content: flex-end;
            padding-right: 15px;
            color: white;
            font-weight: bold;
            opacity: 0;
            transition: opacity 0.3s;
            pointer-events: none;
        }

        .history-delete-overlay.show {
            opacity: 1;
        }

        textarea {
            width: 100%;
            height: 150px;
            border: 1px solid #ddd;
            border-radius: 8px;
            padding: 10px;
            font-family: monospace;
            box-sizing: border-box;
        }

        .save-config-btn {
            width: 100%;
            padding: 15px;
            background: var(--accent-color);
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            margin-top: 20px;
        }

        #deleteAccountSection {
            margin-top: 180px;
            margin-top: max(28vh, 180px);
        }

        .settings-logout-btn {
            width: 100%;
            padding: 12px;
            background: #fdeaea;
            color: var(--error-color);
            border: none;
            border-radius: 8px;
            font-size: 14px;
            font-weight: bold;
            margin-bottom: 12px;
        }

        .settings-version-row {
            display: grid;
            grid-template-columns: minmax(0, 1fr) auto;
            align-items: center;
            gap: 12px;
            margin-bottom: 20px;
            border: 1px solid #eee;
            border-radius: 8px;
            padding: 10px;
            color: #2c3e50;
        }

        .settings-version-label {
            min-width: 0;
            font-size: 13px;
            font-weight: bold;
        }

        .settings-version-value {
            min-width: 0;
            color: #666;
            font-family: monospace;
            font-size: 14px;
            text-align: right;
            white-space: nowrap;
        }

        #syncIndicator {
            font-size: 10px;
            color: #aaa;
            text-align: center;
            padding: 5px;
            height: 15px;
        }

        /* 用户菜单 */
        #userMenu {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.5);
            z-index: 400;
            align-items: center;
            justify-content: center;
        }

        .user-menu-content {
            background: white;
            border-radius: 16px;
            padding: 24px;
            width: 90%;
            max-width: 320px;
        }

        .user-menu-header {
            text-align: center;
            margin-bottom: 20px;
        }

        .user-menu-email {
            font-size: 14px;
            color: #666;
            word-break: break-all;
        }

        .user-menu-btn {
            width: 100%;
            padding: 12px;
            border: none;
            border-radius: 8px;
            font-size: 14px;
            cursor: pointer;
            margin-bottom: 10px;
        }

        .user-menu-btn.logout {
            background: #fdeaea;
            color: var(--error-color);
        }

        .user-menu-btn.close {
            background: #eee;
            color: #666;
        }

        .profile-field-list {
            display: grid;
            gap: 8px;
        }

        .profile-field-row {
            display: grid;
            grid-template-columns: 88px minmax(0, 1fr) 92px;
            align-items: center;
            gap: 10px;
            padding: 9px 0;
            border-bottom: 1px solid #f1f3f5;
            color: #2c3e50;
        }

        .profile-field-row:last-child {
            border-bottom: none;
        }

        .profile-field-label {
            font-size: 12px;
            color: #7f8c8d;
        }

        .profile-field-value {
            min-width: 0;
            font-size: 13px;
            color: #2c3e50;
            overflow-wrap: anywhere;
        }

        .profile-field-value.mono {
            font-family: monospace;
        }

        .profile-edit-btn {
            border: none;
            background: transparent;
            color: #2980b9;
            font-size: 12px;
            font-weight: 700;
            cursor: pointer;
            padding: 4px 0;
            width: auto;
            max-width: 92px;
            text-align: right;
            white-space: normal;
        }

        .profile-field-action {
            width: 92px;
            min-height: 24px;
            text-align: right;
        }

        .ai-integration-section {
            border-top: 1px solid #eee;
            padding-top: 12px;
        }

        .ai-integration-title {
            font-size: 13px;
            color: #34495e;
            font-weight: bold;
            margin-bottom: 8px;
        }

        .ai-entitlement-status {
            margin-bottom: 10px;
        }

        .ai-entitlement-card {
            border: 1px solid #e3e8ee;
            border-radius: 8px;
            padding: 10px;
            background: #f8fafc;
            color: #2c3e50;
        }

        .ai-entitlement-card.active {
            border-color: #b7e0c4;
            background: #f4fbf6;
        }

        .ai-entitlement-card.locked {
            border-color: #ead6a8;
            background: #fffaf0;
        }

        .ai-entitlement-title {
            font-size: 13px;
            font-weight: 700;
            margin-bottom: 4px;
        }

        .ai-entitlement-desc,
        .ai-entitlement-expiry,
        .ai-entitlement-price {
            font-size: 12px;
            line-height: 1.4;
            color: #667085;
        }

        .ai-entitlement-expiry,
        .ai-entitlement-price {
            margin-top: 4px;
        }

        .ai-entitlement-actions {
            display: flex;
            gap: 8px;
            margin-top: 8px;
        }

        .ai-entitlement-actions button {
            flex: 1;
            padding: 8px;
            border: none;
            border-radius: 6px;
            background: #2c3e50;
            color: white;
            font-size: 12px;
            font-weight: 700;
            cursor: pointer;
        }

        .ai-entitlement-actions button.secondary {
            border: 1px solid #bdc3c7;
            background: white;
            color: #2c3e50;
        }

        @media (max-width: 520px) {
            .profile-field-row {
                grid-template-columns: 74px minmax(0, 1fr) 92px;
                gap: 8px;
            }

            .ai-entitlement-actions {
                flex-direction: column;
            }
        }

        /* 滑动切换动画 */
        .list-wrapper {
            position: relative;
            overflow-y: auto; /* 允许垂直滚动 */
            -webkit-overflow-scrolling: touch; /* iOS 平滑滚动和回弹 */
            overscroll-behavior-y: contain; /* 保留下拉回弹效果 */
            z-index: 80; /* 让它低于 sticky 元素 */
            flex: 1; /* 占据剩余空间 */
            min-height: 200px;
        }

        #listContainer {
            padding: 0 15px calc(15px + env(safe-area-inset-bottom, 0px) + 40px) 15px;
            transition: transform 0.3s ease-out, opacity 0.3s ease-out;
            will-change: transform, opacity;
        }

        #listContainer.sliding {
            transition: none;
        }

        /* 影子容器：用于显示下一个/上一个超市的内容 */
        #shadowContainer {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            padding: 0 15px;
            opacity: 0;
            pointer-events: none;
            will-change: transform, opacity;
        }

        #shadowContainer.sliding {
            transition: none;
        }

        #shadowContainer.active {
            transition: transform 0.3s ease-out, opacity 0.3s ease-out;
        }

        /* 保存按钮加载状态 */
        .save-config-btn.loading {
            position: relative;
            pointer-events: none;
            background-color: #2980b9; /* 稍深的蓝色表示加载中 */
            padding-left: 40px; /* 为spinner腾出空间 */
        }
        .save-config-btn.loading::before {
            content: '';
            position: absolute;
            left: 15px;
            top: 50%;
            width: 20px;
            height: 20px;
            margin-top: -10px;
            border: 2px solid #fff;
            border-top-color: transparent;
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }

        /* 保存成功提示 */
        .save-success-toast {
            position: fixed;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            background: var(--success-color);
            color: white;
            padding: 12px 20px;
            border-radius: 8px;
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            z-index: 1000;
            opacity: 0;
            transition: opacity 0.3s ease;
            pointer-events: none;
            font-size: 14px;
            max-width: 80%;
            text-align: center;
        }
        .save-success-toast.show {
            opacity: 1;
        }

        /* Receipt indicator styles */
        .receipt-indicator {
            cursor: pointer;
            font-size: 14px;
            opacity: 0.7;
            transition: opacity 0.2s;
        }
        
        .receipt-indicator:hover {
            opacity: 1;
        }
        
        .needs-analysis-badge {
            cursor: pointer;
            font-size: 12px;
            animation: pulse 2s infinite;
        }
        
        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }
        
        /* Receipt modal styles */
        #receiptModal {
            backdrop-filter: blur(5px);
        }
        
        #receiptModal img {
            max-height: 50vh;
            object-fit: contain;
        }
        
        #reanalyzeBtn {
            transition: background 0.2s;
        }
        
        #reanalyzeBtn:hover {
            background: #e67e22;
        }
        
        #reanalyzeBtn:disabled {
            background: #bdc3c7;
            cursor: not-allowed;
        }
        
        /* History edit button */
        .history-edit-btn {
            background: none;
            border: none;
            font-size: 16px;
            cursor: pointer;
            opacity: 0.6;
            transition: opacity 0.2s;
            padding: 4px;
        }
        
        .history-edit-btn:hover {
            opacity: 1;
        }
        
        /* Close button styles */
        .close-btn {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            border: 2px solid #ddd;
            background: white;
            font-size: 24px;
            color: #666;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
            flex-shrink: 0;
        }
        
        .close-btn:hover {
            border-color: #999;
            color: #333;
            background: #f8f8f8;
        }
        
        .close-btn:active {
            transform: scale(0.95);
            background: #f0f0f0;
        }
        
        /* Action Sheet (物品操作菜单) */
        #itemActionSheet, #storeSelectSheet {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.4);
            z-index: 600;
            align-items: flex-end;
            justify-content: center;
        }
        
        .action-sheet-content {
            background: white;
            border-radius: 16px 16px 0 0;
            width: 100%;
            max-width: 500px;
            padding: 12px;
            padding-bottom: calc(12px + env(safe-area-inset-bottom));
            animation: slideUp 0.2s ease-out;
        }
        
        @keyframes slideUp {
            from {
                transform: translateY(100%);
            }
            to {
                transform: translateY(0);
            }
        }
        
        .action-sheet-title {
            text-align: center;
            color: #666;
            font-size: 13px;
            padding: 10px;
            border-bottom: 1px solid #eee;
            margin-bottom: 8px;
        }
        
        .action-sheet-btn {
            width: 100%;
            padding: 16px;
            background: white;
            border: none;
            border-radius: 12px;
            font-size: 17px;
            text-align: center;
            cursor: pointer;
            margin-bottom: 8px;
            transition: background 0.15s;
        }
        
        .action-sheet-btn:hover, .action-sheet-btn:active {
            background: #f5f5f5;
        }
        
        .action-sheet-btn.danger {
            color: #e74c3c;
        }
        
        .action-sheet-btn.cancel {
            background: #f0f0f0;
            font-weight: 500;
        }
        
        #storeSelectList {
            max-height: 300px;
            overflow-y: auto;
        }
        
        #storeSelectList .store-option {
            padding: 14px 16px;
            border-bottom: 1px solid #eee;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }
        
        #storeSelectList .store-option:hover {
            background: #f8f9fa;
        }
        
        #storeSelectList .store-option.current {
            color: #999;
        }
        
        #storeSelectList .store-option .check {
            color: #27ae60;
            font-size: 18px;
        }

        /* ==========================================
           Anonymous Promotion Banner (免注册游客共享只读链接)
           ========================================== */
        .anonymous-banner,
        .email-verification-banner {
            position: fixed;
            bottom: 20px;
            left: 50%;
            transform: translateX(-50%);
            width: calc(100% - 30px);
            max-width: 480px;
            background: rgba(255, 255, 255, 0.85);
            border: 1px solid rgba(255, 255, 255, 0.4);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border-radius: 16px;
            padding: 14px 18px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.05);
            z-index: 999;
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 12px;
            animation: slideUpFade 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
        }

        @keyframes slideUpFade {
            from {
                opacity: 0;
                transform: translate(-50%, 30px);
            }
            to {
                opacity: 1;
                transform: translate(-50%, 0);
            }
        }

        .anonymous-banner-content,
        .email-verification-banner-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            width: 100%;
            gap: 12px;
        }

        .anonymous-banner-text,
        .email-verification-banner-text {
            font-size: 13px;
            line-height: 1.4;
            color: #2c3e50;
            font-weight: 500;
        }

        .email-verification-banner-actions {
            display: flex;
            gap: 8px;
            align-items: center;
            flex-shrink: 0;
        }

        .anonymous-banner-btn,
        .email-verification-banner-btn {
            background: linear-gradient(135deg, #3498db, #2980b9);
            color: white;
            border: none;
            border-radius: 20px;
            padding: 8px 16px;
            font-size: 12px;
            font-weight: bold;
            cursor: pointer;
            white-space: nowrap;
            box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
            transition: transform 0.2s, box-shadow 0.2s;
        }

        .email-verification-banner-btn.secondary {
            background: white;
            color: #2c3e50;
            border: 1px solid #bdc3c7;
            box-shadow: none;
        }

        .anonymous-banner-btn:active,
        .email-verification-banner-btn:active {
            transform: scale(0.95);
            box-shadow: 0 2px 5px rgba(52, 152, 219, 0.2);
        }

        @media (max-width: 520px) {
            .email-verification-banner-content {
                align-items: stretch;
                flex-direction: column;
            }

            .email-verification-banner-actions {
                justify-content: flex-end;
            }
        }
