
        /* ===== 加载动画 - 车辙主题 ===== */
        #loadingScreen {
            position: fixed;
            inset: 0;
            z-index: 9999;
            background: linear-gradient(135deg, #f5f7fb 0%, #e8ecf5 100%);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            transition: opacity 0.8s ease, visibility 0.8s ease;
        }
        #loadingScreen.hidden {
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
        }
        .loading-logo {
            margin-bottom: 2rem;
        }
        .loading-logo img {
            height: 100px;
            width: 100px;
            border-radius: 20px;
            object-fit: cover;
            box-shadow: 0 8px 32px rgba(212, 175, 55, 0.3);
        }
        .loading-title {
            font-size: 2.2rem;
            font-weight: 800;
            color: var(--primary-gold, #D4AF37);
            letter-spacing: 6px;
            margin-bottom: 0.3rem;
        }
        .loading-sub {
            font-size: 0.9rem;
            color: var(--primary-blue, #2A5CAA);
            letter-spacing: 8px;
            font-weight: 500;
            margin-bottom: 2rem;
        }
        .track-container {
            width: 320px;
            height: 80px;
            position: relative;
            overflow: visible;
        }
        .track-line {
            position: absolute;
            bottom: 20px;
            left: 0;
            width: 100%;
            height: 3px;
            background: repeating-linear-gradient(
                90deg,
                #d4af37 0px,
                #d4af37 8px,
                transparent 8px,
                transparent 16px
            );
            opacity: 0.3;
            animation: trackScroll 1.2s linear infinite;
        }
        .track-line::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 100%;
            height: 3px;
            background: repeating-linear-gradient(
                90deg,
                #2a5caa 0px,
                #2a5caa 6px,
                transparent 6px,
                transparent 14px
            );
            opacity: 0.5;
            animation: trackScroll 1.8s linear infinite reverse;
        }
        @keyframes trackScroll {
            0% { transform: translateX(0); }
            100% { transform: translateX(-16px); }
        }
        .wheel-mark {
            position: absolute;
            bottom: 8px;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            border: 3px dashed rgba(212, 175, 55, 0.6);
            animation: wheelRoll 2s ease-in-out infinite;
        }
        .wheel-mark.left {
            left: 10%;
            animation-delay: 0s;
        }
        .wheel-mark.right {
            right: 10%;
            animation-delay: 0.6s;
        }
        .wheel-mark .inner-ring {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 16px;
            height: 16px;
            border-radius: 50%;
            border: 2px solid rgba(42, 92, 170, 0.4);
        }
        .wheel-mark .hub {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--primary-gold, #D4AF37);
        }
        @keyframes wheelRoll {
            0% { transform: rotate(0deg) scale(1); opacity: 0.6; }
            50% { transform: rotate(180deg) scale(1.1); opacity: 1; }
            100% { transform: rotate(360deg) scale(1); opacity: 0.6; }
        }
        .track-text {
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            font-size: 0.6rem;
            color: #b3b9c5;
            letter-spacing: 4px;
            white-space: nowrap;
            animation: textPulse 1.5s ease-in-out infinite;
        }
        @keyframes textPulse {
            0%, 100% { opacity: 0.3; }
            50% { opacity: 0.9; }
        }
        .loading-progress {
            margin-top: 1.5rem;
            width: 200px;
            height: 3px;
            background: #e2e8f0;
            border-radius: 4px;
            overflow: hidden;
            position: relative;
        }
        .loading-progress-bar {
            height: 100%;
            width: 0%;
            background: linear-gradient(90deg, var(--primary-gold, #D4AF37), var(--primary-blue, #2A5CAA));
            border-radius: 4px;
            animation: progressAnim 2.5s ease-in-out infinite;
        }
        @keyframes progressAnim {
            0% { width: 0%; }
            50% { width: 70%; }
            100% { width: 100%; }
        }
        .loading-status {
            margin-top: 0.6rem;
            font-size: 0.7rem;
            color: var(--text-muted, #64748b);
            letter-spacing: 2px;
            animation: textPulse 2s ease-in-out infinite;
        }

        /* ===== 保存加载遮罩 ===== */
        #saveLoadingOverlay {
            position: fixed;
            inset: 0;
            z-index: 9998;
            background: rgba(0, 0, 0, 0.55);
            backdrop-filter: blur(4px);
            display: none;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            transition: opacity 0.3s ease;
        }
        #saveLoadingOverlay.active {
            display: flex;
        }
        #saveLoadingOverlay .save-loading-box {
            background: white;
            border-radius: 2rem;
            padding: 2.5rem 3rem;
            text-align: center;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
            max-width: 420px;
            animation: savePulse 1.8s ease-in-out infinite;
        }
        @keyframes savePulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.02); }
        }
        #saveLoadingOverlay .save-loading-icon {
            font-size: 3rem;
            margin-bottom: 0.8rem;
            display: inline-block;
            animation: saveSpin 1.6s linear infinite;
        }
        @keyframes saveSpin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        #saveLoadingOverlay .save-loading-title {
            font-size: 1.6rem;
            font-weight: 800;
            color: var(--primary-gold, #D4AF37);
            letter-spacing: 4px;
            margin-bottom: 0.3rem;
        }
        #saveLoadingOverlay .save-loading-sub {
            font-size: 0.8rem;
            color: var(--primary-blue, #2A5CAA);
            letter-spacing: 6px;
            font-weight: 500;
            margin-bottom: 0.8rem;
        }
        #saveLoadingOverlay .save-loading-bar {
            width: 180px;
            height: 3px;
            background: #e2e8f0;
            border-radius: 4px;
            overflow: hidden;
            margin: 0.6rem auto 0;
        }
        #saveLoadingOverlay .save-loading-bar .bar-inner {
            height: 100%;
            width: 0%;
            background: linear-gradient(90deg, var(--primary-gold, #D4AF37), var(--primary-blue, #2A5CAA));
            border-radius: 4px;
            animation: saveProgress 1.8s ease-in-out infinite;
        }
        @keyframes saveProgress {
            0% { width: 0%; }
            50% { width: 70%; }
            100% { width: 100%; }
        }
        #saveLoadingOverlay .save-loading-status {
            margin-top: 0.5rem;
            font-size: 0.7rem;
            color: var(--text-muted, #64748b);
            letter-spacing: 2px;
        }

        /* ===== 基础重置 & 全局变量 ===== */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
        }
        :root {
            --primary-gold: #D4AF37;
            --primary-blue: #2A5CAA;
            --bg-page: #f5f7fb;
            --surface: #ffffff;
            --text-dark: #1e293b;
            --text-muted: #64748b;
            --border-light: #e2e8f0;
        }
        body {
            font-family: system-ui, -apple-system, 'PingFang SC', 'Microsoft YaHei', sans-serif;
            background: var(--bg-page);
            color: var(--text-dark);
            line-height: 1.4;
        }
        /* ===== 顶部信息栏 ===== */
        .top-info-panel {
            background: var(--surface);
            border-bottom: 1px solid var(--border-light);
            padding: 0.75rem 1.5rem;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            gap: 0.75rem;
        }
        .datetime-stats {
            display: flex;
            gap: 1rem;
            background: #f8fafc;
            padding: 0.4rem 1rem;
            border-radius: 2rem;
            font-size: 0.8rem;
            flex-wrap: wrap;
            align-items: center;
        }
        .datetime-item {
            display: flex;
            align-items: center;
            gap: 0.3rem;
        }
        .month-stats {
            background: #fef9e6;
            padding: 0.4rem 1rem;
            border-radius: 2rem;
            display: flex;
            gap: 1rem;
            font-size: 0.75rem;
            color: #8b6b0f;
            flex-wrap: wrap;
        }
        .weather-card {
            background: linear-gradient(135deg, #fff, #fef9e6);
            border-radius: 2rem;
            padding: 0.4rem 1rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            border-left: 3px solid var(--primary-gold);
            flex-wrap: wrap;
        }
        .weather-compact {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            flex-wrap: wrap;
            font-size: 0.8rem;
        }
        .weather-compact .weather-city {
            font-weight: 600;
            color: var(--primary-blue);
            font-size: 0.75rem;
        }
        .weather-compact .weather-label {
            font-weight: 500;
            color: var(--text-muted);
        }
        .refresh-weather {
            background: none;
            border: none;
            cursor: pointer;
            color: var(--primary-gold);
            font-size: 0.9rem;
            border-radius: 2rem;
            padding: 0.2rem 0.5rem;
            transition: transform 0.3s;
        }
        .refresh-weather:hover {
            transform: rotate(180deg);
        }
        /* ===== 导航栏 ===== */
        .navbar {
            background: var(--primary-gold);
            padding: 0 1.5rem;
            min-height: 3.5rem;
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 0.5rem;
        }
        .brand-area {
            display: flex;
            align-items: center;
            gap: 0.6rem;
            flex-shrink: 0;
        }
        .brand-area .logo-img {
            height: 60px;
            width: 60px;
            border-radius: 12px;
            object-fit: cover;
            flex-shrink: 0;
        }
        a.brand-area {
            text-decoration: none;
            color: inherit;
            cursor: pointer;
        }
        .brand-area .brand-text-group {
            display: flex;
            flex-direction: column;
            line-height: 1.3;
        }
        .brand-area .brand-name {
            font-size: 1.1rem;
            font-weight: 800;
            color: #1e2a3e;
            letter-spacing: 1px;
        }
        .brand-area .brand-sub {
            font-size: 0.55rem;
            color: #3d4a5e;
            font-weight: 500;
            letter-spacing: 2px;
            opacity: 0.8;
        }
        .website-link {
            background: rgba(0, 0, 0, 0.12);
            padding: 0 0.9rem;
            height: 28px;
            border-radius: 2rem;
            font-weight: 600;
            font-size: 0.78rem;
            color: #1e2a3e;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 0.3rem;
            transition: background 0.15s;
        }
        .website-link:hover {
            background: rgba(0, 0, 0, 0.2);
        }
        /* 车辙/星屹 BI 独立入口按钮 */
        .bi-launch-btn {
            background: linear-gradient(135deg, #f6d365, #f5a623);
            color: #1e2a3e;
            border: none;
            padding: 0 0.9rem;
            height: 28px;
            display: inline-flex;
            align-items: center;
            border-radius: 2rem;
            font-weight: 700;
            font-size: 0.78rem;
            cursor: pointer;
            white-space: nowrap;
            box-shadow: 0 2px 6px rgba(245, 166, 35, 0.35);
            transition: box-shadow 0.15s, transform 0.15s;
        }
        .bi-launch-btn:hover {
            box-shadow: 0 4px 10px rgba(245, 166, 35, 0.5);
            transform: translateY(-1px);
        }
        .bi-launch-btn.active {
            background: linear-gradient(135deg, #1e3a8a, #2563eb);
            color: #fff;
            box-shadow: 0 3px 10px rgba(37, 99, 235, 0.4);
        }
        .nav-link-group {
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        .nav-link-logo {
            height: 1.15rem;
            width: auto;
            max-width: 3.5rem;
            object-fit: contain;
            vertical-align: middle;
            border-radius: 5px;
            margin-right: 0.3rem;
        }
        .module-tabs {
            display: flex;
            gap: 0.5rem;
            background: rgba(0, 0, 0, 0.08);
            padding: 0.25rem;
            border-radius: 2rem;
            flex-wrap: wrap;
        }
        .tab-btn {
            background: transparent;
            border: none;
            padding: 0.3rem 1rem;
            border-radius: 2rem;
            cursor: pointer;
            font-weight: 600;
            font-size: 0.8rem;
            transition: 0.1s;
        }
        .tab-btn.active {
            background: white;
            color: var(--primary-blue);
        }
        .user-zone {
            display: flex;
            gap: 0.75rem;
            align-items: center;
            flex-wrap: wrap;
        }
        .role-badge {
            background: rgba(0, 0, 0, 0.12);
            padding: 0.25rem 0.75rem;
            border-radius: 2rem;
            font-size: 0.7rem;
        }
        .user-name-badge {
            font-size: 0.7rem !important;
            font-weight: 700 !important;
        }
        .btn-logout {
            background: rgba(0, 0, 0, 0.12);
            border: none;
            padding: 0.25rem 0.75rem;
            border-radius: 2rem;
            cursor: pointer;
            font-size: 0.7rem;
        }
        /* ===== 主容器 ===== */
        .dashboard-container {
            padding: 1rem;
            max-width: 1600px;
            margin: 0 auto;
        }
        .stats-row {
            display: flex;
            gap: 1rem;
            flex-wrap: wrap;
            margin-bottom: 1.5rem;
        }
        .stat-card {
            background: var(--surface);
            border-radius: 1rem;
            padding: 0.75rem 1rem;
            flex: 1;
            min-width: 90px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
            border-bottom: 2px solid var(--primary-gold);
            cursor: pointer;
            transition: transform 0.15s;
        }
        .stat-card:hover {
            transform: translateY(-2px);
        }
        .stat-number {
            font-size: 1.5rem;
            font-weight: 800;
            color: var(--primary-blue);
        }
        .stat-label {
            font-size: 0.7rem;
            color: var(--text-muted);
            margin-top: 0.2rem;
        }
        .board-header {
            display: flex;
            justify-content: space-between;
            margin-bottom: 0.9rem;
            flex-wrap: nowrap;
            gap: 0.9rem;
            align-items: center;
        }
        .board-header .header-left {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            flex-shrink: 0;
        }
        .board-header .header-left h2 {
            font-size: 1.08rem;
            white-space: nowrap;
        }
        @media (max-width: 1180px) {
            .board-header { flex-wrap: wrap; }
        }
        .header-actions {
            display: flex;
            gap: 0.4rem;
            flex-wrap: wrap;
            align-items: center;
        }
        .btn-add {
            background: var(--primary-gold);
            border: none;
            padding: 0.4rem 1rem;
            border-radius: 2rem;
            font-weight: 600;
            cursor: pointer;
            font-size: 0.8rem;
            transition: background 0.15s;
        }
        .btn-add:hover {
            background: #c9a52c;
        }
        .btn-recycle {
            background: #f1f5f9;
            border: 1px solid var(--border-light);
            padding: 0.4rem 1rem;
            border-radius: 2rem;
            font-weight: 600;
            cursor: pointer;
            font-size: 0.8rem;
            color: var(--text-dark);
            transition: all 0.15s;
            display: inline-flex;
            align-items: center;
            gap: 0.3rem;
            position: relative;
        }
        .btn-recycle:hover {
            background: #e2e8f0;
        }
        .btn-recycle .recycle-badge {
            background: #ef4444;
            color: white;
            font-size: 0.6rem;
            padding: 0.05rem 0.4rem;
            border-radius: 2rem;
            font-weight: 700;
            min-width: 1.2rem;
            text-align: center;
        }
        .btn-export-summary {
            background: var(--primary-gold);
            color: #1e2a3e;
            border: none;
            padding: 0.4rem 1.2rem;
            border-radius: 2rem;
            font-weight: 600;
            font-size: 0.75rem;
            cursor: pointer;
            transition: background 0.15s;
        }
        .btn-export-summary:hover {
            background: #c9a52c;
        }
        /* ===== 导出区域 ===== */
        .export-section {
            display: flex;
            align-items: center;
            gap: 0.4rem;
            flex-wrap: nowrap;
            background: #f8fafc;
            padding: 0.2rem 0.7rem;
            border-radius: 2rem;
            border: 1px solid var(--border-light);
        }
        .export-section .export-label {
            font-size: 0.85rem;
            font-weight: 600;
            color: var(--text-dark);
            white-space: nowrap;
        }
        .export-section .filter-group {
            display: flex;
            gap: 0.2rem;
            align-items: center;
            flex-wrap: nowrap;
        }
        .export-section .filter-group select {
            padding: 0.15rem 0.4rem;
            border-radius: 2rem;
            border: 1px solid #d0dbe5;
            font-size: 0.7rem;
            background: white;
            height: 1.8rem;
            max-width: 270px !important;
            min-width: 150px;
        }
        .export-section .filter-group select#taskExportAssignee,
        .export-section .filter-group select#crmExportAssignee {
            max-width: 330px !important;
            min-width: 200px;
        }
        .export-section .date-range-group {
            display: flex;
            align-items: center;
            gap: 0.15rem;
            flex-wrap: nowrap;
        }
        .export-section .date-range-group input[type="date"] {
            padding: 0.1rem 0.25rem;
            border-radius: 2rem;
            border: 1px solid #d0dbe5;
            font-size: 0.6rem;
            background: white;
            max-width: 195px;
            height: 1.6rem;
        }
        .export-section .date-range-group .range-label {
            font-size: 0.6rem;
            color: var(--text-muted);
            white-space: nowrap;
        }
        .export-section .btn-export-summary {
            padding: 0.2rem 0.7rem;
            font-size: 0.7rem;
            border-radius: 2rem;
            height: 1.8rem;
            line-height: 1.4;
            white-space: nowrap;
            background: var(--primary-blue);
            color: white;
            border: none;
            cursor: pointer;
            transition: background 0.15s;
        }
        .export-section .btn-export-summary:hover {
            background: #1e4a8a;
        }
        .search-input {
            padding: 0.4rem 0.75rem;
            border-radius: 2rem;
            border: 1px solid var(--border-light);
            width: 170px;
            font-size: 0.75rem;
            background: white;
        }
        .search-input:focus {
            outline: none;
            border-color: var(--primary-gold);
        }
        .filter-bar {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 0.6rem;
            margin-bottom: 0.75rem;
            padding: 0.3rem 0.5rem;
            background: #fafcff;
            border-radius: 2rem;
            border: 1px solid var(--border-light);
        }
        .filter-bar label {
            font-size: 0.7rem;
            font-weight: 600;
            color: var(--text-muted);
            display: flex;
            align-items: center;
            gap: 0.2rem;
        }
        .filter-bar select {
            padding: 0.2rem 0.6rem;
            border-radius: 2rem;
            border: 1px solid #d0dbe5;
            font-size: 0.7rem;
            background: white;
            max-width: 160px;
        }
        /* ===== 看板列 ===== */
        .board-columns {
            display: flex;
            gap: 1rem;
            overflow-x: auto;
            padding-bottom: 0.5rem;
        }
        .board-column {
            flex: 1;
            min-width: 280px;
            background: #fbfdfe;
            border-radius: 1rem;
            padding: 0.75rem;
            border: 1px solid var(--border-light);
            transition: all 0.2s;
        }
        .column-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 0.3rem 0.2rem 0.5rem 0.2rem;
            border-bottom: 2px solid var(--border-light);
            margin-bottom: 0.75rem;
            gap: 0.5rem;
            flex-wrap: wrap;
        }
        .column-header .column-title {
            font-weight: 700;
            font-size: 1rem;
            color: var(--primary-blue);
            display: flex;
            align-items: center;
            gap: 0.4rem;
        }
        .column-header .column-title .task-count-badge {
            background: var(--primary-gold);
            color: #1e2a3e;
            font-size: 0.6rem;
            padding: 0.1rem 0.6rem;
            border-radius: 2rem;
            font-weight: 700;
            min-width: 1.6rem;
            text-align: center;
        }
        .column-controls {
            display: flex;
            align-items: center;
            gap: 0.3rem;
            flex-shrink: 0;
        }
        .column-controls .ctrl-btn {
            background: transparent;
            border: none;
            border-radius: 2rem;
            padding: 0.2rem 0.55rem;
            font-size: 0.7rem;
            cursor: pointer;
            transition: 0.15s;
            display: flex;
            align-items: center;
            gap: 0.2rem;
            color: var(--text-muted);
            font-weight: 500;
        }
        .column-controls .ctrl-btn:hover {
            background: #eef3fc;
            color: var(--text-dark);
        }
        .column-controls .ctrl-btn.sort-active {
            background: #e0e9f5;
            color: var(--primary-blue);
        }
        .column-controls .ctrl-btn .sort-icon {
            font-size: 0.8rem;
        }
        .column-controls .ctrl-btn .sort-label {
            font-size: 0.6rem;
        }
        .column-controls .ctrl-btn.collapse-btn {
            font-size: 0.75rem;
            padding: 0.2rem 0.45rem;
        }
        .column-controls .ctrl-btn.collapse-btn:hover {
            background: #f1f4f9;
        }
        .task-list-container {
            transition: all 0.2s ease;
            overflow: hidden;
        }
        .task-list-container.collapsed {
            display: none;
        }
        /* ===== 任务卡片 ===== */
        .task-card-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            gap: 0.5rem;
            flex-wrap: wrap;
            margin-bottom: 0.3rem;
        }
        .task-title-area {
            flex: 1;
            min-width: 0;
        }
        .task-title-area .task-title-text {
            font-weight: 700;
            word-break: break-word;
        }
        .task-tag-group {
            display: flex;
            flex-wrap: wrap;
            gap: 0.3rem;
            flex-shrink: 0;
            margin-top: 0.1rem;
        }
        .task-tag {
            font-size: 0.6rem;
            padding: 0.1rem 0.5rem;
            border-radius: 2rem;
            white-space: nowrap;
            font-weight: 500;
            background: #f1f4f9;
            color: var(--text-dark);
            display: inline-flex;
            align-items: center;
            gap: 0.2rem;
        }
        .task-tag.assignee {
            background: #eef3fc;
            color: var(--primary-blue);
        }
        .task-tag.priority-high {
            background: #fde8e8;
            color: #b91c1c;
        }
        .task-tag.priority-normal {
            background: #fef9e6;
            color: #8b6b0f;
        }
        .task-tag.priority-low {
            background: #e8f0fe;
            color: #1a5a8c;
        }
        .task-card,
        .crm-card {
            background: white;
            border-radius: 1rem;
            padding: 0.75rem;
            margin-bottom: 0.75rem;
            cursor: pointer;
            border: 1px solid #eff3f8;
            position: relative;
            transition: box-shadow 0.15s;
        }
        .task-card:hover,
        .crm-card:hover {
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        }
        .task-meta-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0.5rem;
            font-size: 0.65rem;
            background: #fafcff;
            padding: 0.5rem;
            border-radius: 0.75rem;
            margin: 0.5rem 0;
        }
        .crm-meta-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0.5rem;
            font-size: 0.65rem;
            background: #fafcff;
            padding: 0.5rem;
            border-radius: 0.75rem;
            margin: 0.5rem 0;
        }
        .btn-sm {
            font-size: 0.65rem;
            padding: 0.2rem 0.7rem;
            border-radius: 2rem;
            background: white;
            border: 1px solid #cbd5e1;
            cursor: pointer;
            transition: all 0.15s;
        }
        .btn-sm:hover {
            background: #f1f5f9;
        }
        .btn-sm.primary {
            background: var(--primary-blue);
            color: white;
            border: none;
        }
        .btn-sm.primary:hover {
            background: #1e4a8a;
        }
        .btn-sm.danger {
            color: #ef4444;
            border-color: #fecaca;
        }
        .btn-sm.danger:hover {
            background: #fee2e2;
        }
        .btn-sm.warning {
            background: #fff3e0;
            color: #b85c00;
            border-color: #ffe0b3;
        }
        .btn-sm.warning:hover {
            background: #ffe8cc;
        }
        .btn-sm.success {
            background: #e0f2e9;
            color: #0b6e41;
            border-color: #b2dfd0;
        }
        .btn-sm.success:hover {
            background: #c8e6d8;
        }
        .tag-filter-btn {
            background: #f1f4f9;
            border: none;
            padding: 0.25rem 0.75rem;
            border-radius: 2rem;
            font-size: 0.7rem;
            cursor: pointer;
            font-weight: 500;
            transition: 0.15s;
            color: var(--text-dark);
        }
        .tag-filter-btn:hover {
            background: #e2e8f0;
        }
        .tag-filter-btn.active {
            background: var(--primary-gold);
            color: #1e2a3e;
            font-weight: 600;
        }
        .tag-filter-bar {
            display: flex;
            flex-wrap: wrap;
            gap: 0.4rem;
            align-items: center;
            margin-bottom: 0.5rem;
        }
        .tag-filter-bar .label {
            font-size: 0.7rem;
            color: var(--text-muted);
            font-weight: 600;
            margin-right: 0.2rem;
        }
        /* ===== 模态框 ===== */
        .modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.5);
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            padding: 1rem;
            backdrop-filter: blur(2px);
        }
        .modal-overlay.active {
            display: flex;
        }
        .modal {
            background: white;
            border-radius: 1.5rem;
            max-width: 700px;
            width: 100%;
            max-height: 85vh;
            overflow-y: auto;
            padding: 1rem;
        }
        .modal .modal-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
            padding-bottom: 0.5rem;
            border-bottom: 1px solid var(--border-light);
        }
        .modal .modal-header h3 {
            color: var(--primary-blue);
            margin: 0;
        }
        .modal .modal-header .close-btn {
            background: none;
            border: none;
            font-size: 1.5rem;
            cursor: pointer;
            color: var(--text-muted);
            padding: 0 0.5rem;
        }
        .modal .modal-header .close-btn:hover {
            color: var(--text-dark);
        }
        .detail-modal {
            max-width: 500px;
        }
        .detail-list {
            max-height: 55vh;
            overflow-y: auto;
            margin-top: 1rem;
        }
        .detail-item {
            padding: 0.5rem;
            border-bottom: 1px solid var(--border-light);
        }
        .detail-item .restore-btn {
            float: right;
            margin-left: 0.5rem;
        }
        .form-row {
            display: flex;
            gap: 0.75rem;
            flex-wrap: wrap;
            margin-bottom: 0.75rem;
        }
        .form-group {
            flex: 1;
            min-width: 120px;
        }
        .form-group label {
            font-weight: 600;
            font-size: 0.7rem;
            color: var(--primary-blue);
            display: block;
            margin-bottom: 0.2rem;
        }
        input,
        select,
        textarea {
            width: 100%;
            padding: 0.5rem 0.75rem;
            border-radius: 2rem;
            border: 1.5px solid #e2e8f0;
            font-size: 0.8rem;
            font-family: inherit;
            line-height: 1.4;
            transition: border-color 0.15s;
        }
        input:focus,
        select:focus,
        textarea:focus {
            outline: none;
            border-color: var(--primary-gold);
        }
        textarea {
            border-radius: 1rem;
            resize: vertical;
        }
        .btn-submit {
            background: var(--primary-blue);
            color: white;
            border: none;
            padding: 0.5rem 1.25rem;
            border-radius: 2rem;
            cursor: pointer;
            font-weight: 600;
            transition: background 0.15s;
        }
        .btn-submit:hover {
            background: #1e4a8a;
        }
        .btn-cancel {
            background: #f1f5f9;
            border: none;
            padding: 0.5rem 1rem;
            border-radius: 2rem;
            cursor: pointer;
            transition: background 0.15s;
        }
        .btn-cancel:hover {
            background: #e2e8f0;
        }
        .btn-danger {
            background: #ef4444;
            color: white;
            border: none;
            padding: 0.5rem 1rem;
            border-radius: 2rem;
            cursor: pointer;
            font-weight: 600;
            transition: background 0.15s;
        }
        .btn-danger:hover {
            background: #dc2626;
        }
        .footer {
            text-align: center;
            padding: 0.75rem;
            border-top: 1px solid var(--border-light);
            background: white;
            margin-top: 1rem;
            font-size: 0.7rem;
            border-radius: 0;
        }
        .footer-cn {
            font-weight: 600;
            color: var(--primary-blue);
        }
        .footer-en {
            font-size: 0.6rem;
            color: var(--text-muted);
            font-style: italic;
        }
        .toast-container {
            position: fixed;
            bottom: 1rem;
            right: 1rem;
            z-index: 1100;
        }
        .toast {
            background: #1f2937;
            color: white;
            padding: 0.3rem 0.8rem;
            border-radius: 2rem;
            margin-top: 0.5rem;
            font-size: 0.75rem;
            animation: slideIn 0.3s ease;
        }
        @keyframes slideIn {
            from {
                transform: translateX(100%);
                opacity: 0;
            }
            to {
                transform: translateX(0);
                opacity: 1;
            }
        }
        .auth-container {
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
            background: linear-gradient(135deg, #eef2f9, #fff);
            padding: 1rem;
        }
        .auth-card {
            background: white;
            border-radius: 2rem;
            padding: 2rem 1.8rem;
            width: 100%;
            max-width: 420px;
            box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
        }
        .auth-logo-area {
            text-align: center;
            margin-bottom: 1.5rem;
        }
        .auth-logo-area .logo-img {
            height: 90px;
            width: 90px;
            border-radius: 18px;
            object-fit: cover;
            margin-bottom: 0.6rem;
            box-shadow: 0 4px 16px rgba(212, 175, 55, 0.25);
            background: transparent;
        }
        .auth-logo-area .brand-name {
            font-size: 2rem;
            font-weight: 800;
            color: var(--primary-gold);
            letter-spacing: 4px;
        }
        .auth-logo-area .brand-sub {
            font-size: 0.8rem;
            color: var(--primary-blue);
            letter-spacing: 6px;
            margin-top: -2px;
            font-weight: 500;
        }
        .remember-row {
            display: flex;
            justify-content: flex-end;
            margin-bottom: 1rem;
        }
        .checkbox-remember {
            display: flex;
            align-items: center;
            gap: 0.3rem;
            font-size: 0.75rem;
            flex-wrap: nowrap;
            white-space: nowrap;
        }
        .password-wrapper {
            position: relative;
            width: 100%;
            margin-bottom: 0.5rem;
        }
        .password-wrapper input {
            width: 100%;
            padding-right: 2.8rem;
            margin-bottom: 0;
        }
        .toggle-pwd-btn {
            position: absolute;
            right: 0.75rem;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            cursor: pointer;
            font-size: 1rem;
            color: var(--text-muted);
            padding: 0.2rem;
            line-height: 1;
        }
        .toggle-pwd-btn:hover {
            color: var(--text-dark);
        }
        .recycle-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 0.5rem;
            border-bottom: 1px solid var(--border-light);
            gap: 0.5rem;
            flex-wrap: wrap;
        }
        .recycle-item .recycle-info {
            flex: 1;
            min-width: 150px;
        }
        .recycle-item .recycle-info .title {
            font-weight: 600;
            font-size: 0.85rem;
        }
        .recycle-item .recycle-info .meta {
            font-size: 0.7rem;
            color: var(--text-muted);
        }
        .recycle-item .recycle-actions {
            display: flex;
            gap: 0.3rem;
            flex-shrink: 0;
        }
        .recycle-empty {
            text-align: center;
            padding: 2rem;
            color: var(--text-muted);
        }
        .recycle-actions-bar {
            display: flex;
            gap: 0.5rem;
            padding: 0.5rem 0;
            border-top: 1px solid var(--border-light);
            margin-top: 0.5rem;
            flex-wrap: wrap;
        }
        .crm-status-badge,
        .grade-badge,
        .service-badge {
            padding: 0.15rem 0.5rem;
            border-radius: 1rem;
            font-size: 0.6rem;
            font-weight: 600;
            display: inline-block;
        }
        .status-new {
            background: #ffe6e6;
            color: #b91c1c;
        }
        .status-contacted {
            background: #fff0db;
            color: #b45309;
        }
        .status-converted {
            background: #dff9e6;
            color: #0b6e41;
        }
        .status-lost {
            background: #f1f5f9;
            color: #475569;
        }
        .status-serviced {
            background: #e0e7ff;
            color: #1e40af;
        }
        .grade-A {
            background: #d4af37;
            color: #2c2c2c;
        }
        .grade-B {
            background: #cbd5e1;
            color: #1e293b;
        }
        .grade-C {
            background: #fde68a;
            color: #92400e;
        }
        .grade-D {
            background: #fecaca;
            color: #b91c1c;
        }
        .service-badge {
            background: #ddd6fe;
            color: #5b21b6;
        }
        .hidden-module {
            display: none;
        }
        .task-checklist {
            margin-top: 0.5rem;
            border-top: 1px solid var(--border-light);
            padding-top: 0.5rem;
        }
        .checklist-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 0.5rem;
            padding: 0.3rem;
            background: #fafcff;
            border-radius: 1rem;
            flex-wrap: wrap;
        }
        .checklist-item .checklist-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            gap: 0.2rem;
        }
        .checklist-item .checklist-text {
            font-size: 0.75rem;
            font-weight: 500;
        }
        .checklist-item .checklist-time {
            font-size: 0.65rem;
            color: #64748b;
        }
        .checklist-item input[type="checkbox"] {
            width: 1rem;
            height: 1rem;
            margin-left: 0.3rem;
            cursor: pointer;
        }
        .checklist-item .checklist-actions {
            display: flex;
            gap: 0.3rem;
        }
        .add-checklist {
            margin-top: 0.5rem;
            display: flex;
            gap: 0.3rem;
            flex-wrap: wrap;
            align-items: center;
        }
        .add-checklist input {
            flex: 2;
            min-width: 150px;
            padding: 0.5rem 0.75rem;
            border-radius: 2rem;
            font-size: 0.75rem;
            border: 1.5px solid #e2e8f0;
        }
        .add-checklist input[type="datetime-local"] {
            flex: 1;
            min-width: 130px;
        }
        .add-checklist button {
            padding: 0.5rem 1rem;
            border-radius: 2rem;
            background: var(--primary-blue);
            color: white;
            border: none;
            cursor: pointer;
            font-size: 0.75rem;
            transition: background 0.15s;
        }
        .add-checklist button:hover {
            background: #1e4a8a;
        }
        .task-checklist-label {
            margin-top: 5%;
            display: block;
        }
        .notes-list {
            margin-top: 0.5rem;
            border-top: 1px solid var(--border-light);
            padding-top: 0.5rem;
        }
        .note-item {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            margin-bottom: 0.5rem;
            padding: 0.3rem;
            background: #fafcff;
            border-radius: 1rem;
            flex-wrap: wrap;
        }
        .note-item .note-content {
            flex: 1;
            font-size: 0.75rem;
            word-break: break-word;
        }
        .note-actions {
            display: flex;
            gap: 0.3rem;
        }
        .add-note {
            margin-top: 0.5rem;
            display: flex;
            gap: 0.3rem;
        }
        .add-note input {
            flex: 1;
            padding: 0.5rem 0.75rem;
            border-radius: 2rem;
            font-size: 0.75rem;
            border: 1.5px solid #e2e8f0;
        }
        .add-note button {
            padding: 0.5rem 1rem;
            border-radius: 2rem;
            background: var(--primary-blue);
            color: white;
            border: none;
            cursor: pointer;
            font-size: 0.75rem;
            transition: background 0.15s;
        }
        .add-note button:hover {
            background: #1e4a8a;
        }
        .calc-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 0.5rem;
            margin-top: 0.5rem;
        }
        .btn-calc {
            background: #f1f5f9;
            border: none;
            border-radius: 2rem;
            padding: 0.8rem;
            font-size: 1.2rem;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.15s;
        }
        .btn-calc:hover {
            background: #e2e8f0;
        }
        .btn-calc:active {
            transform: scale(0.96);
        }
        .calc-input {
            font-size: 1.3rem;
            text-align: right;
            margin-bottom: 0.5rem;
            padding: 0.5rem 0.75rem;
            border-radius: 2rem;
            background: #f8fafc;
            border: 1px solid var(--border-light);
            width: 100%;
        }
        .calendar-modal .modal {
            max-width: 800px;
        }
        .calendar-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 1rem;
            flex-wrap: wrap;
            gap: 0.5rem;
        }
        .year-month-area {
            display: flex;
            align-items: baseline;
            gap: 0.8rem;
        }
        .year-month {
            font-size: 1.4rem;
            font-weight: 700;
            color: var(--primary-blue);
        }
        .lunar-year {
            font-size: 0.8rem;
            background: #f0f4fd;
            padding: 0.2rem 0.8rem;
            border-radius: 2rem;
        }
        .nav-buttons {
            display: flex;
            gap: 0.5rem;
        }
        .nav-btn {
            background: #f1f4f9;
            border: none;
            width: 2rem;
            height: 2rem;
            border-radius: 2rem;
            cursor: pointer;
            font-weight: bold;
            transition: background 0.15s;
        }
        .nav-btn:hover {
            background: #e2e8f0;
        }
        .weekdays {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            text-align: center;
            font-weight: 600;
            font-size: 0.7rem;
            padding: 0.5rem 0;
            background: #f8fafc;
            border-radius: 1rem;
            margin-bottom: 0.5rem;
        }
        .calendar-grid {
            display: grid;
            grid-template-columns: repeat(7, 1fr);
            gap: 0.2rem;
        }
        .cal-day {
            background: white;
            border-radius: 1rem;
            padding: 0.5rem;
            min-height: 5rem;
            border: 1px solid var(--border-light);
            transition: 0.1s;
        }
        .cal-day.other-month {
            background: #fefef9;
            color: #b3b9c5;
        }
        .cal-day.today {
            background: #fff4e0;
            border: 2px solid var(--primary-gold);
        }
        .gregorian {
            font-size: 1rem;
            font-weight: 600;
        }
        .lunar-text {
            font-size: 0.65rem;
            color: var(--text-muted);
            margin-top: 0.2rem;
        }
        .holiday-tag {
            font-size: 0.6rem;
            background: #ffdd99;
            padding: 0.1rem 0.3rem;
            border-radius: 1rem;
            display: inline-block;
            margin-top: 0.2rem;
        }
        /* ===== 面包模块 - 品牌分区Tab ===== */
        .brand-tab-bar {
            display: flex;
            gap: 0.5rem;
            margin-bottom: 1.2rem;
            padding: 0.25rem;
            background: #f1f5f9;
            border-radius: 2rem;
            border: 1px solid var(--border-light);
            flex-wrap: wrap;
        }
        .brand-tab-btn {
            padding: 0.4rem 1.5rem;
            border-radius: 2rem;
            border: none;
            font-weight: 600;
            font-size: 0.85rem;
            cursor: pointer;
            transition: all 0.2s;
            background: transparent;
            color: var(--text-muted);
        }
        .brand-tab-btn:hover {
            background: rgba(255, 255, 255, 0.5);
        }
        .brand-tab-btn.active {
            background: white;
            color: var(--primary-blue);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
        }
        .brand-tab-btn .brand-icon {
            margin-right: 0.4rem;
        }
        .brand-tab-btn .brand-count {
            background: var(--primary-gold);
            color: #1e2a3e;
            font-size: 0.6rem;
            padding: 0.05rem 0.5rem;
            border-radius: 2rem;
            font-weight: 700;
            margin-left: 0.3rem;
        }
        /* ===== 其他模块样式 ===== */
        .calc-module {
            background: var(--surface);
            border-radius: 1.5rem;
            padding: 1rem;
            margin-top: 0;
            border: 1px solid rgba(42, 92, 170, 0.1);
        }
        .calc-section-title {
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--primary-blue);
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            gap: 0.5rem;
            border-left: 4px solid var(--primary-gold);
            padding-left: 1rem;
        }
        .calc-sub {
            font-size: 0.7rem;
            color: #6f8eae;
            margin-bottom: 1rem;
            padding-left: 1rem;
        }
        .calc-card {
            background: #f9fdfe;
            border-radius: 1.25rem;
            padding: 1rem;
            margin-bottom: 1.5rem;
            border: 1px solid var(--border-light);
        }
        .flex-between {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 0.5rem;
        }
        .metric-badge {
            background: #f0f4fd;
            border-radius: 2rem;
            padding: 0.2rem 0.8rem;
            font-size: 0.7rem;
            font-weight: 500;
            color: var(--primary-blue);
        }
        .calc-table {
            width: 100%;
            border-collapse: collapse;
            margin: 0.5rem 0;
            border-radius: 1rem;
            overflow: hidden;
        }
        .calc-table th,
        .calc-table td {
            text-align: left;
            padding: 0.6rem 0.3rem;
            border-bottom: 1px solid #eef3fa;
            font-size: 0.75rem;
        }
        .calc-table th {
            color: var(--primary-blue);
            font-weight: 600;
        }
        .input-sm {
            width: 90px;
            padding: 0.4rem 0.5rem;
            border-radius: 2rem;
            border: 1px solid #cfdfed;
            font-size: 0.75rem;
            text-align: center;
        }
        .input-med {
            width: 110px;
        }
        .add-btn {
            background: #eef3fc;
            border: 1px solid var(--primary-blue);
            border-radius: 2rem;
            padding: 0.3rem 1rem;
            font-size: 0.7rem;
            cursor: pointer;
            color: var(--primary-blue);
            transition: 0.2s;
        }
        .add-btn:hover {
            background: var(--primary-gold);
            border-color: var(--primary-gold);
            color: white;
        }
        .total-renewal {
            background: #eef3fc;
            padding: 0.5rem 1rem;
            border-radius: 2rem;
            margin-top: 0.5rem;
            text-align: right;
            font-weight: 700;
            font-size: 0.75rem;
        }
        .cost-box {
            background: #fdf8f0;
            border-radius: 1rem;
            padding: 0.6rem;
            margin-top: 0.5rem;
            font-size: 0.7rem;
            border: 1px solid #f0e0cc;
        }
        .cost-item {
            display: inline-flex;
            align-items: baseline;
            gap: 0.3rem;
            background: white;
            padding: 0.2rem 0.6rem;
            border-radius: 2rem;
            margin-right: 0.6rem;
            margin-bottom: 0.3rem;
        }
        .parttime-checkbox {
            display: flex;
            align-items: center;
            gap: 0.4rem;
            background: #f0f6ff;
            padding: 0.2rem 0.8rem;
            border-radius: 2rem;
        }
        .highlight {
            background: #eef3fc;
            border-radius: 2rem;
            padding: 0.2rem 0.8rem;
            font-weight: 700;
        }
        .calc-table .del-btn {
            background: none;
            border: none;
            font-size: 0.75rem;
            cursor: pointer;
            color: #ef4444;
            border-radius: 2rem;
            padding: 0.1rem 0.5rem;
            font-family: inherit;
            transition: background 0.15s;
        }
        .calc-table .del-btn:hover {
            background: #fee2e2;
        }
        .price-module {
            background: var(--surface);
            border-radius: 1.5rem;
            padding: 1rem;
            border: 1px solid rgba(42, 92, 170, 0.1);
        }
        .toolbar {
            display: flex;
            justify-content: flex-end;
            gap: 0.8rem;
            margin-bottom: 1.2rem;
            flex-wrap: wrap;
        }
        .btn-excel {
            background: var(--primary-blue);
            color: white;
            border: none;
            padding: 0.4rem 1.2rem;
            border-radius: 2rem;
            font-weight: 600;
            font-size: 0.75rem;
            cursor: pointer;
            transition: background 0.15s;
        }
        .btn-excel:hover {
            background: #1e4a8a;
        }
        .forecast-top {
            background: #f9fbfe;
            border-radius: 1.5rem;
            border: 1px solid var(--border-light);
            margin-bottom: 1.5rem;
            overflow: hidden;
        }
        .forecast-header {
            background: linear-gradient(135deg, #f0f4fc, #fff);
            padding: 0.8rem 1rem;
            border-bottom: 1px solid var(--border-light);
            text-align: center;
        }
        .forecast-header h2 {
            font-size: 1.2rem;
            font-weight: 700;
            color: var(--primary-blue);
            margin: 0;
        }
        .forecast-body {
            padding: 1rem;
        }
        .param-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 1rem;
            margin-bottom: 1rem;
        }
        .input-group {
            flex: 1;
            min-width: 140px;
        }
        .input-group label {
            font-size: 0.7rem;
            font-weight: 600;
            display: block;
            margin-bottom: 0.2rem;
            color: #4a627a;
        }
        .dynamic-ratios {
            background: #f9fbfe;
            border-radius: 1rem;
            padding: 0.8rem;
            margin: 0.8rem 0;
            border: 1px solid var(--border-light);
        }
        .ratio-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 0.8rem;
        }
        .ratio-item {
            flex: 1;
            min-width: 90px;
        }
        .ratio-item label {
            font-size: 0.65rem;
            font-weight: 600;
        }
        .formula-option {
            display: flex;
            align-items: center;
            gap: 1rem;
            background: #f0f4fa;
            padding: 0.4rem 0.8rem;
            border-radius: 2rem;
            width: fit-content;
            margin: 0.5rem 0;
        }
        .result-card {
            background: #f8fafc;
            border-radius: 1rem;
            padding: 1rem;
            margin-top: 1rem;
        }
        .total-revenue {
            font-size: 1.8rem;
            font-weight: 800;
            color: var(--primary-blue);
            text-align: center;
            margin: 0.5rem 0;
        }
        .forecast-table {
            width: 100%;
            font-size: 0.75rem;
            margin: 0.5rem 0;
            border-collapse: collapse;
        }
        .forecast-table td {
            padding: 0.4rem;
        }
        .badge-yellow {
            background: var(--primary-gold);
            padding: 0.2rem 0.7rem;
            border-radius: 2rem;
            font-size: 0.7rem;
            font-weight: 600;
        }
        .price-panel {
            display: flex;
            flex-direction: column;
            gap: 1rem;
        }
        .price-card {
            background: white;
            border-radius: 1.2rem;
            border: 1px solid var(--border-light);
            overflow: hidden;
        }
        .card-header {
            background: #eef3fc;
            padding: 0.6rem 1rem;
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            justify-content: space-between;
            gap: 0.5rem;
            border-bottom: 1px solid var(--border-light);
        }
        .card-header h3 {
            font-size: 1rem;
            font-weight: 700;
            color: var(--primary-blue);
            cursor: pointer;
        }
        .header-actions {
            display: flex;
            gap: 0.4rem;
        }
        .icon-btn {
            background: white;
            border: none;
            padding: 0.2rem 0.8rem;
            border-radius: 2rem;
            font-size: 0.7rem;
            cursor: pointer;
            transition: background 0.15s;
        }
        .icon-btn:hover {
            background: #f1f5f9;
        }
        .icon-btn.danger {
            background: #fff0f0;
            color: #b91c1c;
        }
        .icon-btn.danger:hover {
            background: #fde8e8;
        }
        .icon-btn.primary {
            background: var(--primary-gold);
            color: #1e2a3e;
        }
        .icon-btn.primary:hover {
            background: #c9a52c;
        }
        .tag {
            background: var(--primary-gold);
            padding: 0.2rem 0.6rem;
            border-radius: 2rem;
            font-size: 0.65rem;
            font-weight: 600;
        }
        .table-wrapper {
            overflow-x: auto;
            padding: 0 0.5rem 0.5rem;
        }
        .data-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 0.7rem;
            min-width: 1000px;
            border-radius: 1rem;
            overflow: hidden;
        }
        .data-table th {
            background: var(--primary-blue);
            color: white;
            padding: 0.5rem 0.3rem;
            text-align: center;
        }
        .data-table td {
            padding: 0.4rem 0.2rem;
            text-align: center;
            border-bottom: 1px solid var(--border-light);
        }
        .row-main-promo td {
            background-color: #ffe0e0 !important;
        }
        .row-first-promo td {
            background-color: #ffe0cc !important;
        }
        .hand-input {
            width: 70px;
            padding: 0.2rem 0.3rem;
            border-radius: 1rem;
            border: 1px solid #d0dbe5;
            text-align: center;
            font-size: 0.7rem;
        }
        .readonly-cell {
            background: #f9fbfd;
            padding: 0.2rem 0.4rem;
            border-radius: 1rem;
            font-weight: 600;
        }
        .chk-box {
            width: 14px;
            height: 14px;
            cursor: pointer;
        }
        .delete-row-btn {
            background: none;
            border: none;
            font-size: 1rem;
            cursor: pointer;
            color: #b91c1c;
            opacity: 0.6;
            border-radius: 2rem;
            transition: opacity 0.15s;
        }
        .delete-row-btn:hover {
            opacity: 1;
        }
        .add-row-btn {
            background: var(--primary-gold);
            border: none;
            margin: 0.5rem 1rem 0.8rem auto;
            padding: 0.3rem 1rem;
            border-radius: 2rem;
            font-size: 0.7rem;
            cursor: pointer;
            display: block;
            transition: background 0.15s;
        }
        .add-row-btn:hover {
            background: #c9a52c;
        }
        .collab-tag-container {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            margin-bottom: 0.5rem;
            align-items: center;
        }
        .collab-tag {
            background: #eef3fc;
            border-radius: 2rem;
            padding: 0.2rem 0.8rem;
            font-size: 0.75rem;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
        }
        .collab-tag .remove {
            cursor: pointer;
            color: #b91c1c;
            font-weight: bold;
            margin-left: 0.3rem;
            transition: color 0.15s;
        }
        .collab-tag .remove:hover {
            color: #7f1d1d;
        }
        .btn-add-collab {
            background: var(--primary-blue);
            color: white;
            border: none;
            border-radius: 2rem;
            padding: 0.3rem 0.8rem;
            font-size: 0.7rem;
            cursor: pointer;
            transition: background 0.15s;
        }
        .btn-add-collab:hover {
            background: #1e4a8a;
        }
        .bakery-form-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 0.75rem;
        }
        @media (max-width: 900px) {
            .bakery-form-grid { grid-template-columns: repeat(2, 1fr); }
        }
        .bakery-form-grid .form-group {
            min-width: 130px;
        }
        .bakery-table {
            width: 100%;
            border-collapse: separate;
            border-spacing: 0;
            font-size: 0.7rem;
            table-layout: fixed;
            min-width: 1980px;
        }
        .bakery-table th,
        .bakery-table td {
            padding: 0.35rem 0.4rem;
            border-bottom: 1px solid #e8eef5;
            border-right: 1px solid #f0f4f8;
            text-align: center;
            vertical-align: middle;
            word-break: break-word;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .bakery-table th {
            background: var(--primary-blue);
            color: white;
            font-weight: 600;
        }
        .bakery-table tbody tr:nth-child(even) { background: #f8fafc; }
        .bakery-table tbody tr:hover { background: #eef4fb; }
        .bakery-table thead tr:first-child th { position: sticky; top: 0; z-index: 3; }
        .bakery-table thead tr:nth-child(2) th { position: sticky; top: 33px; z-index: 2; }
        .bakery-table .col-check { position: sticky; left: 0; z-index: 5; background: #fff; width: 32px; min-width: 32px; max-width: 32px; }
        .bakery-table .col-date { position: sticky; left: 32px; z-index: 5; background: #fff; width: 96px; min-width: 96px; max-width: 96px; }
        .bakery-table .col-weekday { position: sticky; left: 128px; z-index: 5; background: #fff; }
        .bakery-table .col-store { position: sticky; left: 188px; z-index: 5; background: #fff; width: 150px; min-width: 150px; max-width: 150px; }
        .bakery-table thead th { box-sizing: border-box; height: 33px; }
        /* 表头吸顶吸左单元需盖过表体吸左单元 */
        .bakery-table thead tr:first-child th.col-check,
        .bakery-table thead tr:first-child th.col-date,
        .bakery-table thead tr:first-child th.col-weekday,
        .bakery-table thead tr:first-child th.col-store { z-index: 10; }
        .bakery-table .th-sub, .bakery-table .td-sub { width: 84px; min-width: 84px; max-width: 84px; }
        .bakery-table .actions {
            display: flex;
            gap: 0.3rem;
            justify-content: center;
            flex-wrap: wrap;
        }
        .bakery-table .col-date {
            width: 96px;
            min-width: 96px;
            max-width: 96px;
        }
        .bakery-table .col-weekday {
            width: 60px;
            min-width: 60px;
            max-width: 60px;
        }
        .bakery-table .col-store {
            width: 150px;
            min-width: 150px;
            max-width: 150px;
        }
        .bakery-table .col-order-count {
            width: 72px;
        }
        .bakery-table .col-total-revenue {
            width: 88px;
        }
        .bakery-table .col-avg-order {
            width: 72px;
        }
        .bakery-table .col-market {
            width: 64px;
        }
        .bakery-table .col-weather {
            width: 72px;
        }
        .bakery-table .col-temp-max {
            width: 64px;
        }
        .bakery-table .col-temp-min {
            width: 64px;
        }
        .bakery-table .col-activity {
            width: 140px;
        }
        .bakery-table .col-remark {
            width: 120px;
        }
        .bakery-table .col-actions {
            width: 100px;
        }
        .bakery-dashboard {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 0.75rem;
            margin-bottom: 1rem;
        }
        .bakery-dash-card {
            background: white;
            border-radius: 1rem;
            padding: 0.75rem 1rem;
            border: 1px solid var(--border-light);
            text-align: center;
        }
        .bakery-dash-card .dash-number {
            font-size: 1.4rem;
            font-weight: 700;
            color: var(--primary-blue);
        }
        .bakery-dash-card .dash-label {
            font-size: 0.65rem;
            color: var(--text-muted);
        }
        .bakery-dash-card .dash-store {
            font-size: 0.75rem;
            font-weight: 600;
            color: var(--text-dark);
        }

        /* ===== 星屹 BI 看板 ===== */
        .header-right { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
        /* 星屹 BI 独立二级页面顶栏 */
        .bi-page-bar {
            display: flex;
            align-items: center;
            gap: 0.7rem;
            margin-bottom: 0.8rem;
        }
        .bi-back-btn {
            background: var(--surface);
            border: 1px solid var(--border-light);
            color: var(--text-dark);
            border-radius: 2rem;
            padding: 0.35rem 0.9rem;
            font-size: 0.78rem;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.15s;
        }
        .bi-back-btn:hover { background: #eef2ff; }
        .bi-page-hint { font-size: 0.72rem; color: var(--text-muted); }
        /* 一行式 BI 头部（返回 + 说明 + 标题 + 工具） */
        .bi-head-row {
            display: flex;
            align-items: center;
            gap: 0.8rem;
            flex-wrap: wrap;
            margin-bottom: 0.8rem;
        }
        .bi-head-row .bi-title { display: inline-flex; align-items: center; gap: 0.4rem; flex-shrink: 0; }
        .bi-head-row .bi-title-logo { height: 1.35rem; width: auto; border-radius: 6px; }
        .bi-head-row h2 { font-size: 1.08rem; font-weight: 700; color: var(--text-dark); white-space: nowrap; margin: 0; }
        .bi-head-row .bakery-brand-select { margin-left: auto; display: inline-flex; align-items: center; gap: 0.35rem; }
        .bi-head-row .bi-refresh-btn { margin-left: auto; }
        .bakery-subnav {
            display: flex;
            gap: 0.3rem;
            margin: 0;
            flex-wrap: wrap;
            background: var(--surface);
            border: 1px solid var(--border-light);
            border-radius: 1rem;
            padding: 0.32rem;
            width: fit-content;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        }
        .bakery-view-btn {
            padding: 0 0.95rem;
            border-radius: 0.75rem;
            border: none;
            background: transparent;
            color: var(--text-muted);
            font-size: 0.78rem;
            font-weight: 600;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 0.3rem;
            transition: all 0.15s;
        }
        .bakery-view-btn:hover { background: #f1f5f9; color: var(--text-dark); }
        .bakery-view-btn.active {
            background: var(--primary-blue);
            color: #fff;
            box-shadow: 0 3px 10px rgba(37, 99, 235, 0.35);
        }
        .bakery-view-count {
            background: rgba(255, 255, 255, 0.25);
            border-radius: 999px;
            padding: 0.05rem 0.45rem;
            font-size: 0.66rem;
            font-weight: 700;
        }
        .bakery-view-btn.active .bakery-view-count { background: rgba(255, 255, 255, 0.3); }
        .bakery-view-btn:not(.active) .bakery-view-count {
            background: #e2e8f0;
            color: var(--text-muted);
        }
        .bakery-data-toolbar {
            background: var(--surface);
            border-radius: 1rem;
            padding: 0.7rem 0.8rem;
            margin-bottom: 0.8rem;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        }
        .bakery-toolbar-row { display: flex; align-items: center; gap: 0.4rem; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }
        .bakery-toolbar-row .export-section { margin: 0; flex-shrink: 0; flex-wrap: nowrap; }
        .bakery-toolbar-row .filter-group select { width: 88px; max-width: 88px; min-width: 88px; }
        .bakery-toolbar-row .date-range-group input { width: 116px; }
        #bakeryStoreFilter { min-width: 118px; width: 118px; }
        #bakeryGranularity { min-width: 96px; }
        .bakery-toolbar-row .export-label,
        .bakery-toolbar-row .range-label { flex-shrink: 0; }
        .bakery-brand-select label { white-space: nowrap; }
        .bakery-form-page { max-width: none; margin: 0; }
        .bakery-form-section {
            background: var(--surface);
            border: 1px solid var(--border-light);
            border-radius: 1rem;
            padding: 1rem 1.1rem;
            margin-bottom: 0.9rem;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
        }
        .bakery-form-section-title {
            font-size: 0.82rem;
            font-weight: 700;
            color: var(--text-dark);
            margin-bottom: 0.7rem;
            display: flex;
            align-items: center;
            gap: 0.35rem;
        }
        .bakery-form-section-title::after {
            content: '';
            flex: 1;
            height: 1px;
            background: var(--border-light);
        }
        .bi-hero {
            display: grid;
            grid-template-columns: 1.7fr 1fr;
            gap: 1.4rem;
            background:
                radial-gradient(900px 400px at 85% -20%, rgba(56, 189, 248, 0.35), transparent 60%),
                radial-gradient(700px 350px at -10% 110%, rgba(245, 158, 11, 0.18), transparent 55%),
                linear-gradient(135deg, #0b1220 0%, #172554 50%, #1e3a8a 100%);
            color: #fff;
            border-radius: 1.3rem;
            padding: 1.6rem 1.9rem;
            margin-bottom: 1rem;
            box-shadow: 0 14px 40px rgba(15, 23, 42, 0.35);
            position: relative;
            overflow: hidden;
        }
        .bi-hero-label { font-size: 0.85rem; opacity: 0.9; letter-spacing: 1px; display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap; }
        .bi-hero-tabs { display: inline-flex; gap: 0.25rem; }
        .bi-hero-tab {
            background: rgba(255, 255, 255, 0.14);
            border: 1px solid rgba(255, 255, 255, 0.25);
            color: #dbeafe;
            border-radius: 0.5rem;
            padding: 0.12rem 0.55rem;
            font-size: 0.7rem;
            cursor: pointer;
            letter-spacing: 0;
        }
        .bi-hero-tab:hover { background: rgba(255, 255, 255, 0.26); }
        .bi-hero-tab.active { background: #fff; color: #1e3a8a; font-weight: 700; }
        .bi-cmp-tabs { display: inline-flex; gap: 0.25rem; }
        .bi-cmp-tab {
            background: #eef2ff;
            border: 1px solid #c7d2fe;
            color: #3730a3;
            border-radius: 0.5rem;
            padding: 0.12rem 0.55rem;
            font-size: 0.7rem;
            cursor: pointer;
            letter-spacing: 0;
        }
        .bi-cmp-tab:hover { background: #e0e7ff; }
        .bi-cmp-tab.active { background: #2563eb; border-color: #2563eb; color: #fff; font-weight: 700; }
        .bi-sec-period { opacity: 0.7; font-weight: 600; }
        .bakery-pager { display: flex; align-items: center; justify-content: flex-end; gap: 0.5rem; margin-top: 0.8rem; flex-wrap: wrap; }
        .bakery-pager-info { font-size: 0.72rem; color: var(--text-muted); margin-right: 0.3rem; }
        .bakery-pager-goto { font-size: 0.72rem; color: var(--text-muted); display: inline-flex; align-items: center; gap: 0.25rem; }
        .bakery-pager-goto input { width: 60px; padding: 0.2rem 0.35rem; border: 1px solid var(--border-light); border-radius: 0.4rem; font-size: 0.75rem; text-align: center; }
        .bakery-pager .btn-sm:disabled { opacity: 0.45; cursor: not-allowed; }
        .un-overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.62); display: none; align-items: center; justify-content: center; z-index: 9990; padding: 1rem; }
        .un-overlay.active { display: flex; }
        .un-card { background: #fff; border-radius: 1.2rem; width: min(620px, 94vw); max-height: 82vh; overflow: auto; box-shadow: 0 24px 60px rgba(15, 23, 42, 0.4); animation: unPop 0.25s ease; }
        @keyframes unPop { from { transform: translateY(14px) scale(0.97); opacity: 0; } to { transform: none; opacity: 1; } }
        .un-head { background: linear-gradient(135deg, #0b1220, #1e3a8a); color: #fff; padding: 1.1rem 1.4rem; border-radius: 1.2rem 1.2rem 0 0; display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; position: sticky; top: 0; z-index: 1; }
        .un-head h3 { font-size: 1.02rem; margin: 0; }
        .un-ver { display: inline-block; background: rgba(255, 255, 255, 0.22); border-radius: 999px; padding: 0.1rem 0.6rem; font-size: 0.72rem; margin-left: 0.5rem; vertical-align: middle; }
        .un-close { background: none; border: none; color: #cbd5e1; font-size: 1.3rem; cursor: pointer; line-height: 1; padding: 0 0.1rem; }
        .un-close:hover { color: #fff; }
        .un-list { padding: 0.9rem 1.4rem 0.4rem; }
        .un-item { display: flex; gap: 0.7rem; padding: 0.55rem 0; border-bottom: 1px dashed #e8eef5; }
        .un-item:last-child { border-bottom: none; }
        .un-icon { font-size: 1.3rem; flex-shrink: 0; line-height: 1.3; }
        .un-body { flex: 1; min-width: 0; }
        .un-title { font-size: 0.86rem; font-weight: 700; color: var(--text-dark); }
        .un-desc { font-size: 0.76rem; color: var(--text-muted); margin-top: 0.15rem; line-height: 1.55; }
        .un-foot { padding: 0.6rem 1.4rem 1.2rem; text-align: center; }
        .un-sec { border-bottom: 1px dashed #e8eef5; }
        .un-sec:last-child { border-bottom: none; }
        .un-sec .un-item { border-bottom: none; padding-bottom: 0.15rem; }
        .un-bullets { margin: 0.25rem 0 0.5rem; padding-left: 0; list-style: none; }
        .un-bullets li { font-size: 0.74rem; color: var(--text-muted); line-height: 1.55; padding: 0.08rem 0 0.08rem 0.95rem; position: relative; }
        .un-bullets li::before { content: '•'; position: absolute; left: 0.05rem; color: #2563eb; font-weight: 700; }
        .un-foot button { background: linear-gradient(135deg, #2563eb, #1e40af); color: #fff; border: none; border-radius: 999px; padding: 0.55rem 2.4rem; font-size: 0.88rem; cursor: pointer; box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3); }
        .un-foot button:hover { filter: brightness(1.08); }
        .bi-hero-value {
            font-size: 3rem;
            font-weight: 900;
            margin-top: 0.35rem;
            letter-spacing: 0.5px;
            background: linear-gradient(90deg, #ffffff 30%, #93c5fd 100%);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        .bi-hero-sub { font-size: 0.8rem; opacity: 0.85; margin-top: 0.5rem; }
        .bi-hero-spark {
            margin-top: 0.8rem;
            height: 46px;
            width: 100%;
            max-width: 320px;
            background: rgba(255, 255, 255, 0.06);
            border-radius: 0.6rem;
            padding: 0.2rem 0.4rem;
        }
        .bi-hero-side {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 0.7rem;
        }
        .bi-hero-mini {
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.18);
            backdrop-filter: blur(4px);
            border-radius: 0.9rem;
            padding: 0.7rem 0.8rem;
            display: flex;
            flex-direction: column;
            justify-content: center;
            text-align: center;
        }
        .bi-hero-mini .v { font-size: 1.25rem; font-weight: 800; }
        .bi-hero-mini .l { font-size: 0.62rem; opacity: 0.9; margin-top: 0.2rem; }
        @media (max-width: 768px) {
            .bi-hero { grid-template-columns: 1fr; }
            .bi-hero-value { font-size: 2.2rem; }
        }
        .bakery-cat-grid {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 0.6rem;
            margin-top: 0.4rem;
        }
        .bi-kpi-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
            gap: 0.75rem;
            margin-bottom: 0.75rem;
        }
        .bi-kpi-card {
            background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 100%);
            color: #fff;
            border-radius: 1rem;
            padding: 0.9rem 1rem;
            box-shadow: 0 4px 14px rgba(37, 99, 235, 0.25);
        }
        .bi-kpi-card.gold { background: linear-gradient(135deg, #b45309 0%, #f59e0b 100%); box-shadow: 0 4px 14px rgba(245, 158, 11, 0.25); }
        .bi-kpi-card.pink { background: linear-gradient(135deg, #9d174d 0%, #ec4899 100%); box-shadow: 0 4px 14px rgba(236, 72, 153, 0.25); }
        .bi-kpi-card.green { background: linear-gradient(135deg, #065f46 0%, #10b981 100%); box-shadow: 0 4px 14px rgba(16, 185, 129, 0.25); }
        .bi-kpi-card.purple { background: linear-gradient(135deg, #4c1d95 0%, #8b5cf6 100%); box-shadow: 0 4px 14px rgba(139, 92, 246, 0.25); }
        .bi-kpi-card.cyan { background: linear-gradient(135deg, #0e7490 0%, #06b6d4 100%); box-shadow: 0 4px 14px rgba(6, 182, 212, 0.25); }
        .bi-kpi-label { font-size: 0.68rem; opacity: 0.92; }
        .bi-kpi-value { font-size: 1.5rem; font-weight: 800; margin-top: 0.2rem; letter-spacing: 0.3px; }
        .bi-kpi-sub { font-size: 0.62rem; opacity: 0.85; margin-top: 0.15rem; }
        .bi-section { background: #fff; border: 1px solid var(--border-light); border-radius: 0.9rem; padding: 0.8rem 0.9rem; margin-bottom: 0.75rem; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03); }
        .bi-section h4 { font-size: 0.84rem; margin-bottom: 0.55rem; color: var(--text-dark); display: flex; align-items: center; gap: 0.4rem; font-weight: 700; }
        .bi-section h4::after { content: ''; flex: 1; height: 1px; background: var(--border-light); margin-left: 0.3rem; }
        .bi-store-rank { width: 22px; height: 22px; border-radius: 6px; background: #e2e8f0; color: var(--text-muted); font-size: 0.66rem; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
        .bi-store-rank.r1 { background: #fef3c7; color: #b45309; }
        .bi-store-rank.r2 { background: #dbeafe; color: #1d4ed8; }
        .bi-store-rank.r3 { background: #ffedd5; color: #c2410c; }
        .bi-cat-bar { height: 6px; background: rgba(255, 255, 255, 0.3); border-radius: 999px; margin-top: 0.4rem; overflow: hidden; }
        .bi-cat-bar i { display: block; height: 100%; background: rgba(255, 255, 255, 0.92); border-radius: 999px; }

        /* ===== 品牌下拉 / 门店筛选 / 标签管理 ===== */
        .bakery-brand-select { display: flex; align-items: center; gap: 0.45rem; }
        .bakery-brand-select label { font-size: 0.75rem; color: var(--text-muted); }
        .bakery-brand-select select {
            padding: 0.45rem 0.8rem;
            border-radius: 0.7rem;
            border: 1px solid var(--border-light);
            background: var(--surface);
            font-size: 0.78rem;
            color: var(--text-dark);
            cursor: pointer;
        }
        .bakery-filter-row { display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap; }
        .filter-label { font-size: 0.75rem; color: var(--text-muted); }
        .filter-sep { width: 1px; height: 18px; background: var(--border-light); }
        #bakeryStoreFilter {
            padding: 0.42rem 0.7rem;
            border-radius: 0.6rem;
            border: 1px solid var(--border-light);
            background: var(--surface);
            font-size: 0.78rem;
            min-width: 160px;
        }
        #bakeryGranularity {
            padding: 0.42rem 0.7rem;
            border-radius: 0.6rem;
            border: 1px solid var(--border-light);
            background: var(--surface);
            font-size: 0.78rem;
            width: 96px;
        }
        .filter-sep + .filter-label { margin-left: 0.2rem; }

        /* ===== 经营分析 Bento 组合布局 ===== */
        #bakeryDashboard { display: block; margin-bottom: 0; }
        .bi-bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; grid-auto-flow: dense; }
        .bi-bento .bi-section { margin-bottom: 0; }
        .bi-bento .bi-hero { grid-column: 1 / -1; margin-bottom: 0; }
        .bi-bento .bi-span2 { grid-column: span 2; }
        @media (max-width: 860px) {
            .bi-bento { grid-template-columns: 1fr; }
            .bi-bento .bi-span2 { grid-column: auto; }
        }

        /* ===== 大屏全屏按钮 ===== */
        .big-fs-btn {
            background: rgba(255, 255, 255, 0.12);
            border: 1px solid rgba(255, 255, 255, 0.25);
            color: #e2e8f0;
            border-radius: 0.6rem;
            padding: 0.35rem 0.85rem;
            font-size: 0.72rem;
            cursor: pointer;
        }
        .big-fs-btn:hover { background: rgba(255, 255, 255, 0.22); }
        .big-screen:fullscreen { border-radius: 0; min-height: 100vh; padding: 2rem 2.5rem; }
        .big-screen:-webkit-full-screen { border-radius: 0; min-height: 100vh; padding: 2rem 2.5rem; }
        .big-screen.big-fake-fs { position: fixed; inset: 0; z-index: 9990; border-radius: 0; margin: 0; overflow: auto; min-height: 100vh; }

        /* ===== 按钮统一（星屹 BI 标准：视图/品牌/筛选 34px） ===== */
        .bakery-view-btn,
        .bakery-brand-select select,
        #bakeryStoreFilter,
        #bakeryGranularity {
            height: 34px;
        }
        #adminNewBrandInput,
        #adminAddBrandBtn,
        .store-add-input {
            height: 36px;
        }
        .btn-import,
        .export-section .btn-export-summary {
            height: 32px;
            padding: 0 0.9rem;
            font-size: 0.75rem;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            line-height: 1;
            border-radius: 2rem;
            white-space: nowrap;
        }
        .big-fs-btn {
            height: 32px;
            display: inline-flex;
            align-items: center;
            border-radius: 0.6rem;
        }
        .export-section button {
            border-radius: 0.65rem;
            font-size: 0.78rem;
            border: 1px solid var(--border-light);
        }
        .bakery-manage-card {
            max-width: 1000px;
            margin: 1rem auto 0;
            background: var(--surface);
            border-radius: 1.2rem;
            padding: 1.1rem 1.3rem;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        }
        .bakery-tag-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
        .bakery-tag-chip {
            background: #eef2ff;
            color: #3730a3;
            border-radius: 999px;
            padding: 0.3rem 0.75rem;
            font-size: 0.72rem;
            font-weight: 600;
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
        }
        .bakery-tag-chip .x { cursor: pointer; opacity: 0.6; }
        .bakery-tag-chip .x:hover { opacity: 1; }
        .bakery-manage-hint { font-size: 0.68rem; color: var(--text-muted); margin-top: 0.6rem; }

        /* ===== 星屹 BI · 品牌与门店管理 ===== */
        .bakery-store-mgr { max-width: 1000px; }
        .store-mgr-add { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.8rem; }
        .store-mgr-add input {
            height: 36px;
            padding: 0.42rem 0.7rem;
            border-radius: 0.6rem;
            border: 1px solid var(--border-light);
            font-size: 0.78rem;
            width: 200px;
            background: #fff;
        }
        .store-brand-row {
            background: var(--surface);
            border: 1px solid var(--border-light);
            border-radius: 0.8rem;
            padding: 0.6rem 0.8rem;
            margin-bottom: 0.5rem;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
        }
        .store-brand-head { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
        .store-brand-name { font-size: 0.85rem; font-weight: 700; color: var(--text-dark); }
        .store-brand-count { font-size: 0.68rem; color: var(--text-muted); background: #f1f5f9; padding: 0.1rem 0.6rem; border-radius: 999px; }
        .store-brand-head .store-brand-del { margin-left: auto; }
        .store-brand-body { margin-top: 0.6rem; display: flex; flex-direction: column; gap: 0.6rem; }
        .store-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
        .store-add-line { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
        .store-add-input {
            padding: 0.3rem 0.7rem;
            border-radius: 0.6rem;
            border: 1px solid var(--border-light);
            font-size: 0.75rem;
            width: 200px;
            background: #fff;
        }

        /* ===== 用户与权限管理 ===== */
        .bakery-perm-wrap { max-width: 1200px; margin: 0 auto; }
        .bakery-perm-head {
            background: var(--surface);
            border-radius: 1rem;
            padding: 1rem 1.2rem;
            margin-bottom: 0.8rem;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        }
        .bakery-perm-head h4 { font-size: 0.95rem; }
        .bakery-perm-row {
            background: var(--surface);
            border: 1px solid var(--border-light);
            border-radius: 1rem;
            padding: 0.8rem 1rem;
            margin-bottom: 0.6rem;
            display: flex;
            align-items: center;
            gap: 1rem;
            flex-wrap: wrap;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
        }
        .perm-user { min-width: 170px; }
        .perm-name { font-size: 0.82rem; font-weight: 700; color: var(--text-dark); }
        .perm-badge { background: #fef3c7; color: #b45309; border-radius: 999px; padding: 0.05rem 0.5rem; font-size: 0.62rem; font-weight: 700; }
        .perm-email { font-size: 0.68rem; color: var(--text-muted); margin-top: 0.15rem; }
        .perm-controls { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; flex: 1; }
        .perm-cell { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.72rem; color: var(--text-dark); white-space: nowrap; }
        .perm-cell select { padding: 0.35rem 0.5rem; border-radius: 0.55rem; border: 1px solid var(--border-light); font-size: 0.72rem; background: #fff; }
        .perm-cell select[multiple] { padding: 0.2rem 0.3rem; }
        .perm-cell input[type=checkbox] { width: 15px; height: 15px; }

        /* ===== 权限·门店下拉菜单 ===== */
        .store-dd { position: relative; display: inline-block; }
        .store-dd-btn {
            padding: 0.35rem 0.6rem;
            border-radius: 0.55rem;
            border: 1px solid var(--border-light);
            background: #fff;
            font-size: 0.72rem;
            cursor: pointer;
            min-width: 96px;
            text-align: left;
        }
        .store-dd-menu {
            position: absolute;
            top: calc(100% + 4px);
            left: 0;
            background: #fff;
            border: 1px solid var(--border-light);
            border-radius: 0.7rem;
            box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
            padding: 0.4rem;
            z-index: 1200;
            min-width: 160px;
            max-height: 190px;
            overflow-y: auto;
            display: flex;
            flex-direction: column;
            gap: 0.15rem;
        }
        .store-dd-opt {
            display: flex;
            align-items: center;
            gap: 0.4rem;
            font-size: 0.72rem;
            padding: 0.2rem 0.35rem;
            border-radius: 0.4rem;
            cursor: pointer;
            white-space: nowrap;
        }
        .store-dd-opt:hover { background: #f1f5f9; }
        .store-dd-opt input { width: 14px; height: 14px; }

        /* ===== 导出数据弹窗 ===== */
        #exportDialogOverlay { z-index: 9995; }
        .export-dialog { max-width: 560px; }
        .export-dlg-hint { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 0.4rem; }
        .export-dlg-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0.7rem;
            margin: 0.8rem 0;
        }
        .export-dlg-field {
            display: flex;
            flex-direction: column;
            gap: 0.3rem;
            font-size: 0.78rem;
            color: var(--text-dark);
            font-weight: 600;
        }
        .export-dlg-field select,
        .export-dlg-field input {
            padding: 0.45rem 0.6rem;
            border-radius: 0.6rem;
            border: 1px solid var(--border-light);
            font-size: 0.8rem;
            background: #fff;
            font-weight: 400;
        }
        .export-dlg-dates { display: flex; gap: 0.7rem; margin-bottom: 0.9rem; }
        .export-dlg-dates .export-dlg-field { flex: 1; }
        .export-dlg-actions { display: flex; justify-content: flex-end; gap: 0.6rem; }

        /* ===== 徙木车辙 BI · AI 引擎 ===== */
        .ai-insight-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0.6rem; }
        .ai-insight-card {
            display: flex;
            gap: 0.5rem;
            align-items: flex-start;
            background: #f8fafc;
            border: 1px solid var(--border-light);
            border-left: 4px solid #94a3b8;
            border-radius: 0.8rem;
            padding: 0.6rem 0.75rem;
            font-size: 0.78rem;
            color: var(--text-dark);
        }
        .ai-insight-card.good { border-left-color: #10b981; background: #f0fdf4; }
        .ai-insight-card.warn { border-left-color: #f59e0b; background: #fffbeb; }
        .ai-insight-card.bad { border-left-color: #ef4444; background: #fef2f2; }
        .ai-insight-icon { font-size: 1rem; flex-shrink: 0; }
        .ai-insight-text b { color: #1e2a3e; }
        .ai-forecast-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0.6rem; margin-top: 0.75rem; }
        .ai-forecast-card { border-radius: 0.9rem; padding: 0.7rem 0.9rem; background: linear-gradient(135deg, #1e3a8a, #2563eb); color: #fff; }
        .ai-forecast-card .f-label { font-size: 0.7rem; opacity: 0.9; }
        .ai-forecast-card .f-value { font-size: 1.25rem; font-weight: 800; margin-top: 0.15rem; }
        .ai-forecast-card .f-sub { font-size: 0.62rem; opacity: 0.85; margin-top: 0.15rem; }
        .ai-qa-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 0.7rem; }
        .ai-qa-chip {
            border: 1px solid var(--border-light);
            background: #fff;
            border-radius: 2rem;
            padding: 0.35rem 0.8rem;
            font-size: 0.75rem;
            cursor: pointer;
            color: var(--text-dark);
            transition: 0.15s;
        }
        .ai-qa-chip:hover { background: var(--primary-blue); color: #fff; border-color: var(--primary-blue); }
        .ai-qa-answer {
            background: linear-gradient(135deg, #eef2ff, #f5f3ff);
            border: 1px solid #c7d2fe;
            border-radius: 0.8rem;
            padding: 0.7rem 0.9rem;
            font-size: 0.8rem;
            color: #3730a3;
            min-height: 2.4rem;
        }
        .ai-qa-note { font-size: 0.62rem; color: var(--text-muted); margin-top: 0.4rem; }

        /* ===== AI 对话助手 ===== */
        .ai-chat-widget { position: fixed; right: 1.1rem; bottom: 5.4rem; z-index: 9900; }
        .ai-chat-fab {
            width: 48px;
            height: 48px;
            border-radius: 50%;
            border: none;
            background: linear-gradient(135deg, #1e3a8a, #2563eb);
            color: #fff;
            font-size: 1.3rem;
            cursor: pointer;
            box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4);
            transition: transform 0.15s;
        }
        .ai-chat-fab:hover { transform: scale(1.08); }
        .ai-chat-panel {
            position: absolute;
            right: 0;
            bottom: 58px;
            width: 340px;
            background: #fff;
            border: 1px solid var(--border-light);
            border-radius: 1rem;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }
        .ai-chat-head {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.6rem 0.8rem;
            background: linear-gradient(135deg, #1e3a8a, #2563eb);
            color: #fff;
            font-size: 0.85rem;
            font-weight: 700;
        }
        .ai-chat-ctx { background: rgba(255, 255, 255, 0.25); border-radius: 999px; padding: 0.1rem 0.5rem; font-size: 0.66rem; font-weight: 600; }
        .ai-chat-close { margin-left: auto; background: none; border: none; color: #fff; font-size: 1.1rem; cursor: pointer; }
        .ai-chat-msgs { height: 260px; overflow-y: auto; padding: 0.6rem; display: flex; flex-direction: column; gap: 0.5rem; background: #f8fafc; }
        .ai-msg { max-width: 85%; padding: 0.45rem 0.65rem; border-radius: 0.8rem; font-size: 0.76rem; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
        .ai-msg.user { align-self: flex-end; background: var(--primary-blue); color: #fff; border-bottom-right-radius: 0.2rem; }
        .ai-msg.ai { align-self: flex-start; background: #fff; border: 1px solid var(--border-light); color: var(--text-dark); border-bottom-left-radius: 0.2rem; }
        .ai-chat-quick { padding: 0.5rem 0.6rem 0; display: flex; flex-wrap: wrap; gap: 0.35rem; background: #fff; }
        .ai-chat-input-row { display: flex; gap: 0.4rem; padding: 0.5rem 0.6rem 0.6rem; background: #fff; }
        .ai-chat-input-row input { flex: 1; border: 1px solid var(--border-light); border-radius: 2rem; padding: 0.4rem 0.7rem; font-size: 0.75rem; outline: none; }

        /* ===== 导航栏工具箱下拉 ===== */
        .tools-dd { position: relative; }
        .tools-dd-btn {
            background: rgba(0, 0, 0, 0.12);
            border: none;
            width: 2rem;
            height: 2rem;
            border-radius: 50%;
            cursor: pointer;
            font-size: 1rem;
            transition: background 0.15s;
        }
        .tools-dd-btn:hover { background: rgba(0, 0, 0, 0.24); }
        .tools-dd-menu {
            position: absolute;
            right: 0;
            top: calc(100% + 6px);
            background: #fff;
            border: 1px solid var(--border-light);
            border-radius: 0.8rem;
            box-shadow: 0 8px 22px rgba(0, 0, 0, 0.14);
            padding: 0.35rem;
            min-width: 130px;
            display: none;
            z-index: 1200;
        }
        .tools-dd-menu.show { display: block; }
        .tools-dd-menu button {
            display: block;
            width: 100%;
            text-align: left;
            background: none;
            border: none;
            padding: 0.45rem 0.6rem;
            border-radius: 0.5rem;
            font-size: 0.8rem;
            cursor: pointer;
            color: var(--text-dark);
        }
        .tools-dd-menu button:hover { background: #eef2ff; color: var(--primary-blue); }

        /* ===== 图标刷新按钮（对齐天气刷新样式） ===== */
        .bi-icon-btn {
            width: 30px;
            height: 30px;
            border-radius: 50%;
            border: none;
            background: none;
            color: var(--primary-gold);
            font-size: 1rem;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            transition: transform 0.3s, background 0.15s;
        }
        .bi-icon-btn:hover { transform: rotate(180deg); background: rgba(0, 0, 0, 0.08); }
        .bi-icon-btn.active { background: rgba(0, 0, 0, 0.12); transform: none; }

        /* ===== 周期指标卡（大屏 / 数据明细） ===== */
        .big-period-row {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 0.8rem;
            margin-bottom: 0.9rem;
        }
        .big-period-card {
            background: rgba(255, 255, 255, 0.06);
            border: 1px solid rgba(255, 255, 255, 0.14);
            border-radius: 0.9rem;
            padding: 0.6rem 0.8rem;
        }
        .big-period-card .p-label { font-size: 0.72rem; opacity: 0.9; }
        .big-period-card .p-value { font-size: 1.25rem; font-weight: 800; margin-top: 0.15rem; }
        .big-period-card .p-sub { font-size: 0.62rem; opacity: 0.8; margin-top: 0.1rem; }
        .bakery-period-row {
            display: grid;
            grid-template-columns: repeat(4, 1fr);
            gap: 0.7rem;
            margin-bottom: 0.7rem;
        }
        .bakery-period-card { border-radius: 0.9rem; padding: 0.55rem 0.8rem; color: #fff; }
        .bakery-period-card .bp-label { font-size: 0.7rem; opacity: 0.92; }
        .bakery-period-card .bp-value { font-size: 1.15rem; font-weight: 800; margin-top: 0.1rem; }
        .bakery-period-card .bp-sub { font-size: 0.62rem; opacity: 0.85; margin-top: 0.1rem; }
        @media (max-width: 860px) {
            .big-period-row, .bakery-period-row { grid-template-columns: repeat(2, 1fr); }
        }

        /* ===== 车辙 BI 自定义布局 ===== */
        .bi-bento.chezhe-edit .bi-section {
            outline: 2px dashed rgba(37, 99, 235, 0.45);
            outline-offset: 2px;
            cursor: move;
            position: relative;
        }
        .bi-span3 { grid-column: 1 / -1; }
        .sec-ctrl {
            position: absolute;
            top: 0.35rem;
            right: 0.4rem;
            display: flex;
            gap: 0.25rem;
            z-index: 5;
        }
        .sec-handle { font-size: 0.85rem; color: var(--text-muted); cursor: move; }
        .sec-size-btn {
            width: 22px;
            height: 22px;
            border-radius: 0.4rem;
            border: 1px solid var(--border-light);
            background: #fff;
            font-size: 0.7rem;
            cursor: pointer;
            color: var(--primary-blue);
        }
        .sec-size-btn:hover { background: #eef2ff; }

        /* ===== 工具栏一行压缩（星屹数据明细） ===== */
        .bakery-date-range {
            height: 34px;
            padding: 0 0.45rem;
            border-radius: 0.6rem;
            border: 1px solid var(--border-light);
            font-size: 0.72rem;
            width: 106px;
            background: #fff;
        }
        .bakery-toolbar-row .export-section { padding: 0.15rem 0.55rem; }
        .bakery-toolbar-row .bakery-date-range { flex-shrink: 0; }
        .bakery-toolbar-row .filter-label { white-space: nowrap; }

        /* ===== 权限细分下拉 ===== */
        .admin-role-detail {
            padding: 0.2rem 0.35rem;
            border-radius: 0.5rem;
            border: 1px solid var(--border-light);
            font-size: 0.72rem;
            background: #fff;
        }

        /* ===== 品类经营明细条目（单数+总价+客单价） ===== */
        .bakery-cat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.5rem; }
        .bakery-cat-item {
            display: flex;
            flex-direction: column;
            gap: 0.3rem;
            background: #f8fafc;
            border: 1px solid var(--border-light);
            border-radius: 0.7rem;
            padding: 0.5rem 0.6rem;
        }
        .bci-label { font-size: 0.72rem; font-weight: 700; color: var(--text-dark); }
        .bci-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem; }
        .bci-field { display: flex; flex-direction: column; gap: 0.15rem; font-size: 0.66rem; color: var(--text-muted); }
        .bakery-cat-item input {
            padding: 0.35rem 0.5rem;
            border-radius: 0.5rem;
            border: 1px solid var(--border-light);
            font-size: 0.75rem;
            background: #fff;
        }
        .bci-aov { font-size: 0.68rem; color: var(--primary-blue); font-weight: 600; }

        /* ===== 数据明细批量操作 ===== */
        .col-check { text-align: center; }
        .col-check input { width: 15px; height: 15px; cursor: pointer; vertical-align: middle; }
        .bakery-batch-bar {
            display: flex;
            align-items: center;
            gap: 0.6rem;
            margin-top: 0.5rem;
            padding: 0.4rem 0.6rem;
            background: #eef2ff;
            border: 1px solid #c7d2fe;
            border-radius: 0.7rem;
            font-size: 0.75rem;
            font-weight: 600;
            color: #3730a3;
        }
        .bakery-batch-bar .btn-sm:last-child { margin-left: auto; }

        /* ===== 布局拖拽缩放把手 ===== */
        .sec-resize { cursor: col-resize; color: var(--primary-blue); font-size: 0.85rem; font-weight: 700; padding: 0 0.2rem; }

        /* ===== 经营分析分区（稳定区/图表区） ===== */
        .bi-stable { background: #f8fafc; border-left: 3px solid var(--primary-gold); }

        /* ===== 任务看板月份折叠 ===== */
        .task-month-group { margin-bottom: 0.4rem; }
        .month-group-head {
            display: flex;
            align-items: center;
            gap: 0.5rem;
            padding: 0.35rem 0.6rem;
            background: #eef2f7;
            border-radius: 0.6rem;
            font-size: 0.72rem;
            font-weight: 700;
            color: var(--text-dark);
            cursor: pointer;
            user-select: none;
        }
        .month-group-head:hover { background: #e2e8f0; }
        .month-group-head .month-count { font-size: 0.64rem; color: var(--text-muted); font-weight: 600; }
        .month-group-head .month-arrow { margin-left: auto; }
        .month-group-head.folded { background: #f8fafc; color: var(--text-muted); }
        .month-group-body { display: flex; flex-direction: column; gap: 0.45rem; padding-top: 0.4rem; }

        /* ===== 数据明细双级表头 ===== */
        .bakery-table .th-main { background: var(--primary-blue); color: #fff; }
        .bakery-table .th-cat { background: #b45309; color: #fff; font-size: 0.68rem; }
        .bakery-table .th-sub { background: #fef3c7; color: #92400e; font-size: 0.62rem; font-weight: 600; }
        .bakery-table .td-sub { font-size: 0.68rem; text-align: right; }
        .bakery-table th, .bakery-table td { border: 1px solid var(--border-light); }

        /* ===== 大屏趋势二级标签（日/周/月） ===== */
        .big-tabs { display: inline-flex; gap: 0.25rem; margin-left: auto; }
        .big-tabs-kpi { margin-left: 0; margin-top: 0.3rem; display: flex; justify-content: center; }
        .big-tabs-kpi .big-tab { padding: 0.12rem 0.5rem; font-size: 0.66rem; }
        .big-tab {
            background: rgba(148, 163, 184, 0.12);
            border: 1px solid rgba(148, 163, 184, 0.2);
            color: #94a3b8;
            border-radius: 0.5rem;
            padding: 0.15rem 0.6rem;
            font-size: 0.72rem;
            cursor: pointer;
        }
        .big-tab.active { background: #2563eb; border-color: #2563eb; color: #fff; }

        /* ===== 后台管理单行紧凑（顶级后台风格） ===== */
        .uc-row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }
        .uc-row .chip-check { white-space: nowrap; }
        .admin-input { height: 30px; font-size: 0.78rem; }
        .admin-role { height: 30px; font-size: 0.78rem; }
        .admin-role-detail { height: 26px; }
        .admin-section-title { font-size: 0.85rem; }
        .admin-table-wrap { overflow: visible; }

        /* ===== 星屹品牌与门店对齐 ===== */
        .store-mgr-add { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
        .store-mgr-add input {
            height: 34px;
            padding: 0 0.8rem;
            border-radius: 0.6rem;
            border: 1px solid var(--border-light);
            font-size: 0.78rem;
            background: #fff;
            width: 200px;
        }
        .store-brand-head { display: flex; align-items: center; gap: 0.6rem; flex-wrap: nowrap; }
        .store-brand-body { margin-top: 0.5rem; display: flex; flex-direction: column; gap: 0.5rem; }
        .store-add-line { display: flex; align-items: center; gap: 0.5rem; flex-wrap: nowrap; }
        .store-add-input { height: 32px; flex: 1; max-width: 320px; }

        /* ===== 车辙 BI · 双看板 / TOP榜 / 项目健康度 ===== */
        .bi-dual-hero {
            grid-column: 1 / -1;
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 0.8rem;
            margin-bottom: 0;
        }
        .bi-dual-hero .bi-hero { grid-column: auto; margin-bottom: 0; }
        .bi-dual-hero .bi-hero:nth-child(2) { background: linear-gradient(135deg, #064e3b 0%, #059669 60%, #10b981 100%); }
        @media (max-width: 860px) {
            .bi-dual-hero { grid-template-columns: 1fr; }
        }
        .top-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
        @media (max-width: 860px) { .top-duo { grid-template-columns: 1fr; } }
        .top-panel { background: #f8fafc; border: 1px solid var(--border-light); border-radius: 0.9rem; padding: 0.7rem 0.8rem; }
        .top-panel-title { font-size: 0.78rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.5rem; }
        .top-row { display: flex; align-items: center; gap: 0.5rem; padding: 0.28rem 0; }
        .top-rank { width: 1.6rem; font-size: 0.85rem; flex-shrink: 0; }
        .top-name { width: 7rem; flex-shrink: 0; font-size: 0.76rem; font-weight: 600; color: var(--text-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .top-bar-wrap { flex: 1; background: #e8eef5; border-radius: 999px; height: 8px; overflow: hidden; }
        .top-bar { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #2563eb, #06b6d4); }
        .top-val { flex-shrink: 0; font-size: 0.72rem; font-weight: 700; color: var(--text-muted); }
        .ph-row { display: flex; align-items: center; gap: 0.6rem; padding: 0.3rem 0; }
        .ph-name { width: 9rem; flex-shrink: 0; font-size: 0.76rem; font-weight: 600; color: var(--text-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .ph-bar-wrap { flex: 1; background: #e8eef5; border-radius: 999px; height: 10px; overflow: hidden; }
        .ph-bar { display: block; height: 100%; border-radius: 999px; }
        .ph-num { flex-shrink: 0; font-size: 0.7rem; color: var(--text-muted); white-space: nowrap; }

        /* ===== 图标刷新按钮（旧版已废弃，样式见上方「对齐天气刷新样式」） ===== */

        /* ===== 实时大屏（暗色 BI） ===== */
        .big-screen {
            background: radial-gradient(1200px 600px at 50% -10%, #1e3a8a 0%, #0b1220 60%, #060a14 100%);
            border-radius: 1.4rem;
            padding: 1.4rem 1.6rem 1.1rem;
            color: #e2e8f0;
            min-height: 640px;
            position: relative;
            overflow: hidden;
            box-shadow: 0 16px 48px rgba(2, 6, 23, 0.5);
        }
        .big-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1rem; }
        .big-title {
            font-size: 1.3rem;
            font-weight: 800;
            letter-spacing: 1px;
            background: linear-gradient(90deg, #7dd3fc, #f0abfc);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
            display: flex;
            align-items: center;
        }
        .big-title-logo { height: 1.7rem; width: auto; border-radius: 8px; margin-right: 0.55rem; flex-shrink: 0; }
        .bi-cat-card .c-sub .up { color: #4ade80; font-weight: 700; }
        .bi-cat-card .c-sub .down { color: #f87171; font-weight: 700; }
        .big-clock { font-family: Consolas, monospace; font-size: 1rem; color: #7dd3fc; text-shadow: 0 0 12px rgba(125, 211, 252, 0.8); }
        .big-refresh { font-size: 0.7rem; color: #94a3b8; }
        .big-kpi-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0.7rem; margin-bottom: 0.9rem; }
        .big-kpi {
            background: linear-gradient(160deg, rgba(30, 58, 138, 0.5), rgba(15, 23, 42, 0.65));
            border: 1px solid rgba(125, 211, 252, 0.18);
            border-radius: 1rem;
            padding: 0.65rem 0.7rem;
            text-align: center;
            box-shadow: 0 0 24px rgba(37, 99, 235, 0.18);
        }
        .big-kpi .k-label { font-size: 0.72rem; color: #94a3b8; }
        .big-kpi .k-value { font-size: 1.2rem; font-weight: 900; margin-top: 0.25rem; color: #7dd3fc; text-shadow: 0 0 16px rgba(125, 211, 252, 0.55); }
        .big-kpi .k-sub { font-size: 0.62rem; color: #64748b; margin-top: 0.2rem; }

        /* ===== 大屏核心看板（当日/当周/当月为主，总数据其次） ===== */
        .big-core-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; margin-bottom: 0.9rem; }
        .big-core-card {
            background: linear-gradient(135deg, var(--c1), var(--c2));
            border-radius: 1rem;
            padding: 0.95rem 1.15rem;
            box-shadow: 0 10px 26px rgba(2, 6, 23, 0.45);
            border: 1px solid rgba(255, 255, 255, 0.14);
        }
        .big-core-card .bc-label { font-size: 0.8rem; opacity: 0.95; font-weight: 700; letter-spacing: 0.5px; }
        .big-core-card .bc-value { font-size: 2rem; font-weight: 800; margin-top: 0.3rem; letter-spacing: 0.5px; }
        .big-core-card .bc-grid { display: flex; gap: 1rem; margin-top: 0.35rem; font-size: 0.74rem; opacity: 0.92; }
        .big-core-card .bc-cmp { margin-top: 0.4rem; font-size: 0.74rem; font-weight: 600; }
        .big-period-row.single { grid-template-columns: 1fr; }
        .big-period-row.single .big-period-card { display: flex; align-items: center; gap: 1.4rem; padding: 0.7rem 1rem; }
        .big-period-row.single .big-period-card .p-value { margin-top: 0; font-size: 1.15rem; }
        .big-period-row.single .big-period-card .p-sub { margin-top: 0; flex: 1; }
        @media (max-width: 900px) { .big-core-row { grid-template-columns: 1fr; } }
        .big-panels { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0.8rem; }
        .big-panel {
            background: rgba(15, 23, 42, 0.55);
            border: 1px solid rgba(148, 163, 184, 0.15);
            border-radius: 1rem;
            padding: 0.8rem 0.9rem;
        }
        .big-panel h4 { font-size: 0.8rem; color: #cbd5e1; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.4rem; }
        .big-panel h4::after { content: ''; flex: 1; height: 1px; background: rgba(148, 163, 184, 0.15); }
        .big-chart-box { position: relative; height: 240px; }
        .big-chart-box.small { height: 200px; }
        .big-marquee {
            margin-top: 0.9rem;
            border-top: 1px solid rgba(148, 163, 184, 0.15);
            padding-top: 0.6rem;
            font-size: 0.7rem;
            color: #94a3b8;
            overflow: hidden;
            white-space: nowrap;
        }
        .big-marquee span { display: inline-block; padding-left: 100%; animation: bigMarquee 28s linear infinite; }
        @keyframes bigMarquee { 0% { transform: translateX(0); } 100% { transform: translateX(-100%); } }
        @media (max-width: 900px) {
            .big-kpi-grid { grid-template-columns: repeat(2, 1fr); }
            .big-panels { grid-template-columns: 1fr; }
        }
        .bi-chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0.75rem; }
        .bi-chart-box { position: relative; height: 240px; }
        .bi-chart-box.small { height: 200px; }
        .bi-cat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.6rem; margin-bottom: 0.75rem; }
        .bi-cat-card { border-radius: 0.9rem; padding: 0.7rem 0.9rem; color: #fff; }
        .bi-cat-card .c-name { font-size: 0.75rem; font-weight: 700; }
        .bi-cat-card .c-value { font-size: 1.15rem; font-weight: 800; margin-top: 0.15rem; }
        .bi-cat-card .c-sub { font-size: 0.6rem; opacity: 0.92; }
        .bi-store-row { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.45rem; font-size: 0.72rem; }
        .bi-store-name { width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-dark); }
        .bi-store-bar-wrap { flex: 1; background: #eef2f7; border-radius: 999px; height: 16px; overflow: hidden; }
        .bi-store-bar { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #2563eb, #06b6d4); }
        .bi-store-val { width: 96px; text-align: right; color: var(--text-muted); white-space: nowrap; }
        .bi-insight-item { font-size: 0.72rem; padding: 0.45rem 0.6rem; border-radius: 0.6rem; background: #f8fafc; margin-bottom: 0.4rem; color: var(--text-dark); }
        .bi-insight-item .up { color: #16a34a; font-weight: 700; }
        .bi-insight-item .down { color: #dc2626; font-weight: 700; }
        .bi-insight-item .hl { font-weight: 700; color: var(--primary-blue); }
        .bakery-table .col-cat { width: 12%; }
        @media (max-width: 768px) {
            .bakery-cat-grid { grid-template-columns: repeat(2, 1fr); }
        }
        .floating-toolbar {
            position: fixed;
            bottom: 2rem;
            right: 2rem;
            z-index: 999;
            display: flex;
            flex-direction: column;
            align-items: flex-end;
            gap: 0.5rem;
        }
        .floating-toggle {
            width: 56px;
            height: 56px;
            border-radius: 50%;
            background: var(--primary-gold);
            border: none;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
            font-size: 1.8rem;
            cursor: pointer;
            color: #1e2a3e;
            transition: transform 0.2s;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        .floating-toggle:hover {
            transform: scale(1.05);
            background: #c9a52c;
        }
        .floating-toggle:active {
            transform: scale(0.95);
        }
        .floating-menu {
            display: none;
            flex-direction: column;
            gap: 0.5rem;
            background: white;
            border-radius: 1.5rem;
            padding: 0.75rem;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
            min-width: 160px;
            transition: all 0.2s ease;
        }
        .floating-menu.show {
            display: flex;
        }
        .floating-menu button {
            background: #f8fafc;
            border: none;
            border-radius: 2rem;
            padding: 0.6rem 1rem;
            font-size: 0.85rem;
            font-weight: 600;
            cursor: pointer;
            text-align: left;
            color: var(--text-dark);
            transition: background 0.15s;
            white-space: nowrap;
        }
        .floating-menu button:hover {
            background: #eef3fc;
        }
        .floating-menu button:active {
            background: #dce3ed;
        }
        .bakery-tag-bar {
            display: flex;
            flex-wrap: wrap;
            gap: 0.5rem;
            align-items: center;
            margin: 0.5rem 0 1rem 0;
            padding: 0.5rem 0.75rem;
            background: #f8fafc;
            border-radius: 1rem;
            border: 1px solid var(--border-light);
        }
        .bakery-tag-bar .label {
            font-size: 0.7rem;
            color: var(--text-muted);
            font-weight: 600;
            margin-right: 0.2rem;
        }
        .bakery-tag-btn {
            background: #f1f4f9;
            border: none;
            padding: 0.2rem 0.7rem;
            border-radius: 2rem;
            font-size: 0.7rem;
            cursor: pointer;
            font-weight: 500;
            transition: 0.15s;
            color: var(--text-dark);
        }
        .bakery-tag-btn:hover {
            background: #e2e8f0;
        }
        .bakery-tag-btn.active {
            background: var(--primary-gold);
            color: #1e2a3e;
            font-weight: 600;
        }
        .bakery-tag-btn .remove-tag {
            margin-left: 0.3rem;
            color: #b91c1c;
            font-weight: bold;
            cursor: pointer;
        }
        .bakery-tag-btn .remove-tag:hover {
            opacity: 0.7;
        }
        .bakery-tag-add {
            display: flex;
            gap: 0.3rem;
            align-items: center;
        }
        .bakery-tag-add input {
            padding: 0.2rem 0.6rem;
            border-radius: 2rem;
            border: 1px solid #d0dbe5;
            font-size: 0.7rem;
            width: 100px;
        }
        .bakery-tag-add button {
            background: var(--primary-blue);
            color: white;
            border: none;
            border-radius: 2rem;
            padding: 0.2rem 0.6rem;
            font-size: 0.65rem;
            cursor: pointer;
            transition: background 0.15s;
        }
        .bakery-tag-add button:hover {
            opacity: 0.85;
        }
        .auto-calc-input {
            background: #f0f4f9 !important;
            color: #1e293b !important;
            cursor: default;
        }
        .expired-badge {
            background: #ef4444;
            color: white;
            font-size: 0.6rem;
            padding: 0.15rem 0.5rem;
            border-radius: 2rem;
            font-weight: 700;
            margin-left: 0.3rem;
            display: inline-block;
            animation: pulse-red 1.5s infinite;
        }
        .expiring-soon-badge {
            background: #eab308;
            color: #1e293b;
            font-size: 0.6rem;
            padding: 0.15rem 0.5rem;
            border-radius: 2rem;
            font-weight: 700;
            margin-left: 0.3rem;
            display: inline-block;
            animation: pulse-yellow 1.5s infinite;
        }
        @keyframes pulse-red {
            0% {
                opacity: 1;
            }
            50% {
                opacity: 0.6;
            }
            100% {
                opacity: 1;
            }
        }
        @keyframes pulse-yellow {
            0% {
                opacity: 1;
            }
            50% {
                opacity: 0.7;
            }
            100% {
                opacity: 1;
            }
        }

        /* ===== 响应式 ===== */
        @media (max-width: 768px) {
            .top-info-panel {
                flex-direction: column;
                align-items: stretch;
            }
            .navbar {
                height: auto;
                padding: 0.8rem;
                flex-direction: column;
                gap: 0.5rem;
            }
            .module-tabs {
                width: 100%;
                justify-content: center;
            }
            .user-zone {
                justify-content: center;
            }
            .board-columns {
                flex-direction: column;
            }
            .stats-row {
                flex-direction: column;
            }
            .modal {
                max-width: 95%;
                padding: 0.8rem;
            }
            .calc-table th,
            .calc-table td {
                padding: 0.4rem 0.2rem;
            }
            .input-sm {
                width: 70px;
            }
            .param-grid {
                flex-direction: column;
            }
            .ratio-grid {
                flex-direction: column;
            }
            .calendar-modal .modal {
                max-width: 95%;
            }
            .cal-day {
                min-height: 3rem;
                padding: 0.3rem;
            }
            .note-item {
                flex-direction: column;
                align-items: stretch;
            }
            .note-actions {
                justify-content: flex-end;
            }
            .checklist-item {
                flex-direction: column;
                align-items: stretch;
            }
            .checklist-actions {
                justify-content: flex-end;
            }
            .add-checklist {
                flex-direction: column;
                align-items: stretch;
            }
            .bakery-form-grid {
                grid-template-columns: 1fr;
            }
            .bakery-table .actions {
                flex-direction: column;
                align-items: center;
            }
            .brand-tab-bar {
                justify-content: center;
            }
            .brand-tab-btn {
                padding: 0.3rem 1rem;
                font-size: 0.75rem;
            }
            .brand-area .logo-img {
                height: 48px;
                width: 48px;
            }
            .brand-area .brand-name {
                font-size: 0.9rem;
            }
            .brand-area .brand-sub {
                font-size: 0.5rem;
            }
            .auth-logo-area .logo-img {
                height: 70px;
                width: 70px;
            }
            .auth-logo-area .brand-name {
                font-size: 1.6rem;
            }
            .floating-toolbar {
                bottom: 1rem;
                right: 1rem;
            }
            .floating-toggle {
                width: 48px;
                height: 48px;
                font-size: 1.5rem;
            }
            .floating-menu {
                min-width: 130px;
            }
            .floating-menu button {
                font-size: 0.75rem;
                padding: 0.5rem 0.8rem;
            }
            .bakery-tag-add input {
                width: 70px;
            }
            .bakery-dashboard {
                grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            }
            .bakery-table .col-date,
            .bakery-table .col-weekday,
            .bakery-table .col-store,
            .bakery-table .col-order-count,
            .bakery-table .col-total-revenue,
            .bakery-table .col-avg-order,
            .bakery-table .col-market,
            .bakery-table .col-weather,
            .bakery-table .col-temp-max,
            .bakery-table .col-temp-min,
            .bakery-table .col-activity,
            .bakery-table .col-remark,
            .bakery-table .col-actions {
                width: auto;
            }
            .column-header {
                flex-wrap: wrap;
            }
            .column-controls .ctrl-btn .sort-label {
                display: none;
            }
            .filter-bar {
                flex-direction: column;
                align-items: stretch;
                gap: 0.3rem;
            }
            .filter-bar select {
                max-width: 100%;
            }
            .board-header .header-left {
                width: 100%;
            }
            .header-actions {
                width: 100%;
                justify-content: flex-start;
                gap: 0.4rem;
            }
            .export-section {
                flex-wrap: wrap;
                width: 100%;
                justify-content: flex-start;
                padding: 0.25rem 0.5rem;
                gap: 0.3rem;
            }
            .export-section .filter-group select {
                max-width: 180px !important;
                font-size: 0.55rem;
                min-width: 100px;
            }
            .export-section .filter-group select#taskExportAssignee,
            .export-section .filter-group select#crmExportAssignee {
                max-width: 220px !important;
                min-width: 140px;
            }
            .export-section .date-range-group input[type="date"] {
                max-width: 130px;
            }
            .export-section .btn-export-summary {
                font-size: 0.55rem;
                padding: 0.1rem 0.4rem;
            }
            .loading-title {
                font-size: 1.5rem;
            }
            .track-container {
                width: 240px;
            }
            .loading-logo img {
                height: 70px;
                width: 70px;
            }
            #saveLoadingOverlay .save-loading-box {
                padding: 1.8rem 1.5rem;
                max-width: 320px;
            }
            #saveLoadingOverlay .save-loading-title {
                font-size: 1.2rem;
            }
        }
        @media (max-width: 480px) {
            .brand-area .logo-img {
                height: 40px;
                width: 40px;
            }
            .brand-area .brand-name {
                font-size: 0.75rem;
            }
            .brand-area .brand-sub {
                font-size: 0.45rem;
            }
            .auth-logo-area .logo-img {
                height: 60px;
                width: 60px;
            }
            .auth-logo-area .brand-name {
                font-size: 1.3rem;
            }
            .auth-logo-area .brand-sub {
                font-size: 0.65rem;
                letter-spacing: 3px;
            }
            .bakery-tag-add input {
                width: 60px;
            }
            .bakery-dashboard {
                grid-template-columns: 1fr 1fr;
            }
            .column-controls .ctrl-btn {
                padding: 0.15rem 0.4rem;
                font-size: 0.6rem;
            }
            .task-tag {
                font-size: 0.5rem;
                padding: 0.05rem 0.4rem;
            }
            .brand-tab-btn {
                padding: 0.2rem 0.6rem;
                font-size: 0.65rem;
            }
            .brand-tab-btn .brand-count {
                font-size: 0.5rem;
                padding: 0.02rem 0.3rem;
            }
            .export-section .filter-group select {
                max-width: 140px !important;
                font-size: 0.5rem;
                min-width: 70px;
            }
            .export-section .filter-group select#taskExportAssignee,
            .export-section .filter-group select#crmExportAssignee {
                max-width: 180px !important;
                min-width: 100px;
            }
            .export-section .date-range-group input[type="date"] {
                max-width: 100px;
                font-size: 0.45rem;
            }
            .export-section .date-range-group .range-label {
                font-size: 0.4rem;
            }
            .export-section .btn-export-summary {
                font-size: 0.5rem;
                padding: 0.08rem 0.3rem;
            }
            .loading-title {
                font-size: 1.2rem;
            }
            .track-container {
                width: 200px;
                height: 60px;
            }
            .loading-logo img {
                height: 60px;
                width: 60px;
            }
            .wheel-mark {
                width: 30px;
                height: 30px;
            }
            .wheel-mark .inner-ring {
                width: 12px;
                height: 12px;
            }
            .wheel-mark .hub {
                width: 4px;
                height: 4px;
            }
            #saveLoadingOverlay .save-loading-box {
                padding: 1.5rem 1rem;
                max-width: 280px;
            }
            #saveLoadingOverlay .save-loading-title {
                font-size: 1rem;
            }
            #saveLoadingOverlay .save-loading-icon {
                font-size: 2rem;
            }
            #saveLoadingOverlay .save-loading-sub {
                font-size: 0.6rem;
                letter-spacing: 3px;
            }
            #saveLoadingOverlay .save-loading-bar {
                width: 140px;
            }
        }

        /* ===== 账号待审批提示页 ===== */
        .pending-screen {
            display: none;
            min-height: 100vh;
            align-items: center;
            justify-content: center;
            padding: 1rem;
            background: linear-gradient(135deg, #eef2f9, #fff);
        }
        .pending-card {
            background: white;
            border-radius: 2rem;
            padding: 2.5rem 2rem;
            max-width: 440px;
            width: 100%;
            text-align: center;
            box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
        }
        .pending-icon { font-size: 3.2rem; margin-bottom: 0.8rem; }
        .pending-card h2 { color: var(--primary-blue); font-size: 1.4rem; margin-bottom: 0.6rem; }
        .pending-card p { color: var(--text-muted); font-size: 0.85rem; line-height: 1.6; margin-bottom: 1.4rem; }
        .pending-actions { display: flex; justify-content: center; gap: 0.6rem; flex-wrap: wrap; }

        /* ===== 后台管理（系统化网格升级 · 紧凑版） ===== */
        .admin-grid {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 0.6rem;
            align-items: start;
        }
        .admin-section {
            background: var(--surface);
            border: 1px solid var(--border-light);
            border-radius: 0.9rem;
            padding: 0.75rem 0.85rem;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
            transition: box-shadow 0.15s;
        }
        .admin-section:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07); }
        .admin-section.admin-span2 { grid-column: 1 / -1; }
        .admin-section-title {
            font-size: 0.9rem;
            font-weight: 700;
            color: var(--primary-blue);
            padding-bottom: 0.4rem;
            margin-bottom: 0.5rem;
            border-bottom: 1px solid var(--border-light);
            display: flex;
            align-items: center;
            gap: 0.4rem;
        }
        .admin-hint { font-size: 0.68rem; color: var(--text-muted); margin-bottom: 0.5rem; line-height: 1.5; }
        @media (max-width: 1000px) {
            .admin-grid { grid-template-columns: 1fr; }
            .admin-section.admin-span2 { grid-column: auto; }
        }
        .admin-subtitle { font-weight: 700; font-size: 0.8rem; color: var(--text-dark); margin: 0.6rem 0 0.4rem; }
        .approval-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 0.6rem;
            padding: 0.6rem 0.75rem;
            background: #f8fafc;
            border-radius: 1rem;
            margin-bottom: 0.4rem;
            flex-wrap: wrap;
        }
        .approval-info { flex: 1; min-width: 180px; }
        .approval-info .title { font-weight: 600; font-size: 0.85rem; }
        .approval-info .meta { font-size: 0.7rem; color: var(--text-muted); margin-top: 0.15rem; }
        .approval-actions { display: flex; gap: 0.35rem; flex-shrink: 0; flex-wrap: wrap; }

        .admin-table-wrap { overflow-x: auto; }
        .admin-table { width: 100%; border-collapse: collapse; font-size: 0.72rem; min-width: 720px; }
        .admin-table th { background: var(--primary-blue); color: white; padding: 0.45rem 0.35rem; text-align: center; }
        .admin-table td { padding: 0.4rem 0.35rem; text-align: center; border-bottom: 1px solid var(--border-light); vertical-align: middle; }
        .admin-user { font-weight: 600; font-size: 0.8rem; }
        .admin-email { font-size: 0.65rem; color: var(--text-muted); }
        .admin-role {
            padding: 0.25rem 0.5rem;
            border-radius: 2rem;
            border: 1px solid #d0dbe5;
            font-size: 0.72rem;
            background: white;
        }
        .admin-perm { width: 16px; height: 16px; cursor: pointer; }
        .status-badge { padding: 0.15rem 0.55rem; border-radius: 1rem; font-size: 0.65rem; font-weight: 600; display: inline-block; }
        .status-approved { background: #dff9e6; color: #0b6e41; }
        .status-pending { background: #fff0db; color: #b45309; }
        .status-rejected { background: #fee2e2; color: #b91c1c; }

        .invite-form { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
        .invite-form input[type="email"] {
            flex: 1;
            min-width: 180px;
            padding: 0.45rem 0.75rem;
            border-radius: 2rem;
            border: 1.5px solid #e2e8f0;
            font-size: 0.8rem;
        }
        .invite-form select {
            padding: 0.45rem 0.6rem;
            border-radius: 2rem;
            border: 1.5px solid #e2e8f0;
            font-size: 0.8rem;
            background: white;
            width: auto;
        }
        .perm-check { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.75rem; color: var(--text-dark); white-space: nowrap; }
        .perm-check input { width: 14px; height: 14px; cursor: pointer; }

        /* ===== 后台用户卡片（紧凑·对齐排版） ===== */
        .user-card {
            background: #f8fafc;
            border: 1px solid var(--border-light);
            border-radius: 0.8rem;
            padding: 0.35rem 0.55rem;
            margin-bottom: 0.4rem;
        }
        .uc-header {
            display: grid;
            grid-template-columns: minmax(200px, 1.8fr) minmax(160px, 1.4fr) minmax(140px, 1fr) auto auto;
            gap: 0.6rem;
            align-items: center;
        }
        .uc-header .admin-input { width: 100%; font-size: 0.8rem; }
        .uc-header .admin-role { width: 100%; }
        .uc-actions { display: inline-flex; gap: 0.3rem; align-items: center; white-space: nowrap; }
        .uc-row {
            display: flex;
            flex-wrap: nowrap;
            overflow-x: visible;
            gap: 0.6rem;
            align-items: center;
            margin-top: 0.32rem;
            padding-bottom: 3px;
        }
        .uc-lbl {
            width: auto;
            min-width: 3.6rem;
            flex-shrink: 0;
            text-align: left;
            font-size: 0.68rem;
            font-weight: 600;
            color: var(--text-muted);
        }
        .uc-val { font-size: 0.72rem; color: var(--text-muted); }
        .admin-input {
            padding: 0.28rem 0.5rem;
            border-radius: 1.5rem;
            border: 1.5px solid #e2e8f0;
            font-size: 0.75rem;
            width: 100%;
            min-width: 0;
            line-height: 1.2;
        }
        .admin-input:focus { outline: none; border-color: var(--primary-gold); }
        .admin-role {
            padding: 0.28rem 0.5rem;
            border-radius: 2rem;
            border: 1px solid #d0dbe5;
            font-size: 0.72rem;
            background: white;
            width: 100%;
            min-width: 0;
            line-height: 1.2;
        }
        .chip-check {
            display: inline-flex;
            align-items: center;
            gap: 0.2rem;
            font-size: 0.68rem;
            background: #fff;
            border: 1px solid var(--border-light);
            border-radius: 2rem;
            padding: 0.08rem 0.5rem;
            cursor: pointer;
            white-space: nowrap;
            line-height: 1.3;
        }
        .chip-check input { width: 12px; height: 12px; cursor: pointer; }
        .invite-checks {
            display: flex;
            flex-wrap: wrap;
            gap: 0.3rem;
            align-items: center;
            width: 100%;
            margin-top: 0.2rem;
        }
        .invite-checks .lbl { font-size: 0.66rem; font-weight: 600; color: var(--text-muted); }

        /* ===== 导入按钮 ===== */
        .btn-import {
            background: #D4AF37;
            color: #1e2a3e;
            border: none;
            padding: 0 0.9rem;
            border-radius: 2rem;
            font-size: 0.75rem;
            height: 32px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            line-height: 1;
            white-space: nowrap;
            cursor: pointer;
            font-weight: 600;
            transition: background 0.15s;
        }
        .btn-import:hover { background: #c9a52c; }

        /* ===== 用户管理头部在小屏降为两列 ===== */
        @media (max-width: 640px) {
            .uc-header { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        }
    