        /* ===== 报告库新样式 ===== */
        .site-group-card {
            border-left: 4px solid var(--gold-primary);
            background: linear-gradient(145deg, var(--surface-white), var(--paper-cream));
            transition: var(--transition-base);
        }
        .site-group-card:hover {
            transform: translateY(-2px);
            box-shadow: var(--shadow-lg), 0 0 20px rgba(201,162,39,0.15);
        }
        .site-card-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 8px;
        }
        .site-card-name {
            font-size: 1.1em;
            font-weight: 700;
            color: var(--deep-teal);
            font-family: 'Noto Serif SC', serif;
        }
        .site-card-badge {
            background: linear-gradient(135deg, var(--gold-primary), #d4af37);
            color: var(--surface-white);
            padding: 4px 12px;
            border-radius: 20px;
            font-size: 0.85em;
            font-weight: 600;
            white-space: nowrap;
        }
        .site-card-meta {
            color: var(--ink-gray);
            font-size: 0.9em;
            margin-bottom: 4px;
        }
        .btn-gold {
            background: linear-gradient(135deg, var(--gold-primary), #d4af37);
            color: var(--surface-white);
            border: none;
            padding: 8px 16px;
            border-radius: var(--radius-sm);
            cursor: pointer;
            font-weight: 600;
            transition: var(--transition-base);
        }
        .btn-gold:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(201,162,39,0.4);
        }
        .report-detail-header {
            display: flex;
            align-items: center;
            gap: 16px;
            margin-bottom: 20px;
            padding-bottom: 16px;
            border-bottom: 2px solid rgba(15,76,92,0.1);
        }
        .btn-back {
            background: var(--surface-white);
            border: 2px solid var(--deep-teal);
            color: var(--deep-teal);
            padding: 8px 16px;
            border-radius: var(--radius-sm);
            cursor: pointer;
            font-weight: 600;
            transition: var(--transition-base);
            white-space: nowrap;
        }
        .btn-back:hover {
            background: var(--deep-teal);
            color: var(--surface-white);
        }
        .report-detail-title {
            margin: 0;
            font-family: 'Noto Serif SC', serif;
            color: var(--deep-teal);
            font-size: 1.3em;
        }
        .view-toggle {
            display: grid;
            grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.35fr) minmax(0, 0.9fr);
            gap: 6px;
            margin-bottom: 20px;
            background: rgba(15,76,92,0.04);
            padding: 4px;
            border-radius: 14px;
            overflow: visible;
        }
        .toggle-btn {
            flex: 1 1 0;
            min-width: 0;
            width: 100%;
            min-height: 44px;
            padding: 10px 8px;
            border: none;
            background: transparent;
            border-radius: 10px;
            cursor: pointer;
            font-weight: 700;
            font-size: 0.88em;
            color: #5a6c7d;
            transition: background 0.2s, box-shadow 0.2s;
            text-shadow: none !important;
            -webkit-font-smoothing: antialiased;
            -moz-osx-font-smoothing: grayscale;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 4px;
            line-height: 1.2;
            white-space: normal;
            overflow: visible;
        }
        .toggle-btn.active {
            background: linear-gradient(135deg, #0f4c5c, #2a93a8);
            color: #fff;
            box-shadow: 0 3px 10px rgba(15,76,92,0.28);
            text-shadow: none !important;
            transform: translateZ(0);
        }
        .toggle-btn:not(.active):hover {
            background: rgba(15,76,92,0.06);
        }
        .toggle-btn:active {
            transform: scale(0.97);
        }
        .btn-export {
            background: linear-gradient(135deg, #1a7a3a, #2d9e4a) !important;
            color: #fff !important;
            box-shadow: 0 3px 10px rgba(29,132,65,0.28) !important;
            flex: 0 0 auto;
            padding: 10px 14px !important;
        }
        .btn-export:hover {
            background: linear-gradient(135deg, #1a7a3a, #34b856) !important;
            box-shadow: 0 5px 16px rgba(29,132,65,0.38) !important;
        }
        .btn-export-history {
            flex: 0 0 auto;
            padding: 10px 12px !important;
            border: 0;
            border-radius: 10px;
            background: rgba(15,76,92,0.08) !important;
            color: var(--deep-teal) !important;
            font-weight: 700;
            cursor: pointer;
        }
        .report-export-toolbar {
            display: flex;
            justify-content: flex-end;
            margin: -8px 0 14px;
        }
        .report-export-overlay {
            position: fixed;
            inset: 0;
            z-index: 10020;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 20px;
            background: rgba(9, 35, 43, 0.58);
            backdrop-filter: blur(5px);
        }
        .report-export-dialog {
            width: min(620px, 100%);
            max-height: min(760px, calc(100vh - 40px));
            overflow: hidden;
            display: flex;
            flex-direction: column;
            background: #fffdf8;
            border: 1px solid rgba(15,76,92,0.12);
            border-radius: 22px;
            box-shadow: 0 28px 80px rgba(5,35,43,0.3);
        }
        .report-export-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
            padding: 22px 24px 18px;
            color: #fff;
            background: linear-gradient(135deg, #0f4c5c, #267f8f);
        }
        .report-export-header h3 {
            margin: 3px 0 0;
            color: #fff;
            font-size: 22px;
        }
        .report-export-kicker {
            font-size: 12px;
            opacity: .78;
            letter-spacing: .12em;
        }
        .report-export-close {
            width: 38px;
            height: 38px;
            flex: 0 0 auto;
            border: 1px solid rgba(255,255,255,.32);
            border-radius: 50%;
            background: rgba(255,255,255,.12);
            color: #fff;
            font-size: 26px;
            line-height: 1;
            cursor: pointer;
        }
        .report-export-body {
            min-height: 220px;
            overflow: auto;
            padding: 20px 24px 24px;
        }
        .report-export-loading,
        .report-export-error,
        .report-export-wait {
            padding: 24px;
            text-align: center;
            color: #65747b;
        }
        .report-export-error {
            color: #a43a32;
            background: #fff2ef;
            border-radius: 12px;
        }
        .report-export-empty {
            min-height: 230px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 9px;
            color: #65747b;
            text-align: center;
        }
        .report-export-empty div { font-size: 44px; }
        .report-export-empty strong { color: var(--deep-teal); font-size: 18px; }
        .report-export-list-intro {
            margin-bottom: 12px;
            color: #718087;
            font-size: 13px;
        }
        .report-export-list { display: grid; gap: 10px; }
        .report-export-card {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 14px;
            padding: 15px 16px;
            border: 1px solid rgba(15,76,92,.12);
            border-radius: 14px;
            background: #fff;
            color: inherit;
            text-align: left;
            cursor: pointer;
            transition: .18s ease;
        }
        .report-export-card:hover {
            transform: translateY(-1px);
            border-color: rgba(15,76,92,.3);
            box-shadow: 0 8px 20px rgba(15,76,92,.09);
        }
        .report-export-card-main {
            min-width: 0;
            display: grid;
            gap: 5px;
        }
        .report-export-card-main strong {
            overflow: hidden;
            color: var(--deep-teal);
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .report-export-card-main small { color: #718087; }
        .report-export-status {
            flex: 0 0 auto;
            padding: 5px 10px;
            border-radius: 999px;
            background: #edf2f4;
            color: #52636a;
            font-size: 12px;
            font-weight: 700;
        }
        .report-export-status.status-running,
        .report-export-status.status-queued { background: #fff4d6; color: #8a6310; }
        .report-export-status.status-completed { background: #e5f7ea; color: #21733a; }
        .report-export-status.status-failed,
        .report-export-status.status-expired { background: #fde9e6; color: #a43a32; }
        .report-export-back {
            margin: 0 0 15px;
            padding: 0;
            border: 0;
            background: transparent;
            color: var(--deep-teal);
            font-weight: 700;
            cursor: pointer;
        }
        .report-export-detail {
            padding: 18px;
            border: 1px solid rgba(15,76,92,.12);
            border-radius: 16px;
            background: #fff;
        }
        .report-export-detail-title {
            display: flex;
            align-items: flex-start;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 18px;
        }
        .report-export-detail-title > div { min-width: 0; display: grid; gap: 4px; }
        .report-export-detail-title strong {
            color: var(--deep-teal);
            font-size: 18px;
            overflow-wrap: anywhere;
        }
        .report-export-detail-title small { color: #718087; }
        .report-export-progress {
            height: 11px;
            overflow: hidden;
            border-radius: 999px;
            background: #e7eff1;
        }
        .report-export-progress i {
            display: block;
            height: 100%;
            border-radius: inherit;
            background: linear-gradient(90deg, #1d889b, #c9a227);
            transition: width .35s ease;
        }
        .report-export-progress-meta {
            display: flex;
            justify-content: space-between;
            gap: 12px;
            margin-top: 8px;
            color: #65747b;
            font-size: 13px;
        }
        .report-export-warning {
            margin-top: 14px;
            padding: 10px 12px;
            border-radius: 10px;
            background: #fff5db;
            color: #805f19;
            font-size: 13px;
        }
        .report-export-parts {
            display: grid;
            gap: 9px;
            margin-top: 18px;
        }
        .report-export-parts button {
            width: 100%;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 13px 14px;
            border: 0;
            border-radius: 12px;
            background: linear-gradient(135deg, #0f4c5c, #287f8e);
            color: #fff;
            text-align: left;
            cursor: pointer;
        }
        .report-export-parts span { min-width: 0; overflow-wrap: anywhere; }
        .report-export-parts small { flex: 0 0 auto; opacity: .8; }
        .report-export-expiry {
            margin-top: 16px;
            color: #87949a;
            font-size: 12px;
            text-align: center;
        }
        .report-text-block {
            background: var(--surface-white);
            border-radius: var(--radius-md);
            padding: 20px;
            margin-bottom: 16px;
            border-left: 4px solid var(--teal-accent);
            box-shadow: var(--shadow-sm);
            position: relative;
            transition: all 0.2s ease;
        }
        .report-text-block:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 24px rgba(15,76,92,0.15);
            border-left-color: var(--gold-accent);
        }
        .report-no-badge {
            position: absolute;
            top: 12px;
            right: 12px;
            background: linear-gradient(135deg, var(--deep-teal), var(--teal-accent));
            color: var(--surface-white);
            padding: 4px 12px;
            border-radius: 12px;
            font-size: 0.8em;
            font-weight: 700;
        }
        .report-block-title {
            margin: 0 0 8px 0;
            font-family: 'Noto Serif SC', serif;
            color: var(--deep-teal);
            font-size: 1.1em;
            padding-right: 80px;
        }
        .report-block-meta {
            display: flex;
            gap: 16px;
            font-size: 0.85em;
            color: var(--ink-gray);
            margin-bottom: 12px;
            padding-bottom: 10px;
            border-bottom: 1px dashed rgba(15,76,92,0.15);
        }
        .report-block-content {
            color: var(--ink-black);
            line-height: 1.8;
            font-size: 0.95em;
        }
        .image-grid-view {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
            gap: 16px;
        }
        .image-card {
            background: var(--surface-white);
            border-radius: var(--radius-md);
            overflow: hidden;
            box-shadow: var(--shadow-sm);
            transition: var(--transition-base);
            position: relative;
            cursor: pointer;
        }
        .image-card:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow-lg);
        }
        .image-card.media-selectable {
            cursor: pointer;
        }
        .image-card.media-selectable:hover {
            transform: none;
        }
        .image-card.selected,
        .video-card.selected {
            position: relative;
        }
        .image-card.selected::after,
        .video-card.selected::after {
            content: '';
            position: absolute;
            inset: 0;
            border-radius: var(--radius-md);
            background: rgba(42,147,168,0.08);
            pointer-events: none;
            z-index: 1;
        }
        .image-card.selected .media-click-area,
        .video-card.selected .media-click-area {
            border: 3px solid #2a93a8 !important;
            border-radius: 8px;
        }
        .media-select-check {
            position: absolute;
            top: 8px;
            right: 8px;
            width: 24px;
            height: 24px;
            border-radius: 50%;
            z-index: 5;
            display: flex;
            align-items: center;
            justify-content: center;
            pointer-events: none;
            transition: all 0.2s cubic-bezier(0.4,0,0.2,1);
            background: rgba(0,0,0,0.25);
            border: 2px solid rgba(255,255,255,0.9);
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
            box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        }
        .media-select-check.checked {
            background: linear-gradient(135deg,#07c160,#06ad56);
            border-color: #07c160;
            transform: scale(1.05);
            animation: checkPop 0.25s cubic-bezier(0.4,0,0.2,1);
            box-shadow: 0 2px 10px rgba(7,193,96,0.5);
        }
        .media-select-check.checked::after {
            content: '';
            width: 10px;
            height: 6px;
            border-left: 2px solid #fff;
            border-bottom: 2px solid #fff;
            transform: rotate(-45deg) translate(1px,-1px);
        }
        @keyframes checkPop {
            0% { transform: scale(0.6); }
            50% { transform: scale(1.2); }
            100% { transform: scale(1.05); }
        }
        .image-card.media-selectable,
        .video-card.media-selectable {
            cursor: pointer;
        }
        .image-card.media-selectable .media-click-area img,
        .video-card.media-selectable .media-click-area {
            filter: brightness(0.92);
            transition: filter 0.2s;
        }
        .image-card.selected.media-selectable .media-click-area img,
        .video-card.selected.media-selectable .media-click-area {
            filter: brightness(1);
        }
        .wx-share-modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0,0,0,0.5);
            z-index: 10000;
            display: flex;
            align-items: center;
            justify-content: center;
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
            animation: wxModalFadeIn 0.25s ease;
        }
        @keyframes wxModalFadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }
        .wx-share-modal {
            background: #fff;
            border-radius: 20px;
            padding: 32px 28px 24px;
            max-width: 380px;
            width: 90%;
            text-align: center;
            box-shadow: 0 20px 60px rgba(0,0,0,0.2);
            animation: wxModalPop 0.3s cubic-bezier(0.34,1.56,0.64,1);
        }
        @keyframes wxModalPop {
            from { transform: scale(0.8); opacity: 0; }
            to { transform: scale(1); opacity: 1; }
        }
        .wx-share-icon {
            width: 64px;
            height: 64px;
            background: linear-gradient(135deg,#07c160,#06ad56);
            border-radius: 18px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 16px;
            font-size: 32px;
            box-shadow: 0 6px 20px rgba(7,193,96,0.35);
        }
        .wx-share-title {
            font-size: 18px;
            font-weight: 700;
            color: #1a1a1a;
            margin-bottom: 8px;
        }
        .wx-share-desc {
            font-size: 14px;
            color: #666;
            line-height: 1.6;
            margin-bottom: 20px;
        }
        .wx-share-steps {
            background: #f7f8fa;
            border-radius: 12px;
            padding: 14px 16px;
            text-align: left;
            margin-bottom: 20px;
        }
        .wx-share-step {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            font-size: 14px;
            color: #333;
            line-height: 1.6;
        }
        .wx-share-step + .wx-share-step {
            margin-top: 8px;
        }
        .wx-step-num {
            width: 22px;
            height: 22px;
            border-radius: 50%;
            background: linear-gradient(135deg,#07c160,#06ad56);
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 12px;
            font-weight: 700;
            flex-shrink: 0;
            margin-top: 1px;
        }
        .wx-share-copy-status {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: linear-gradient(135deg,#e8f8ee,#d4f4df);
            color: #07c160;
            padding: 8px 16px;
            border-radius: 20px;
            font-size: 13px;
            font-weight: 600;
            margin-bottom: 16px;
        }
        .wx-share-btn {
            width: 100%;
            padding: 12px;
            border: none;
            border-radius: 12px;
            font-size: 15px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.2s;
            background: linear-gradient(135deg,#0f4c5c,#1a6b7c);
            color: #fff;
        }
        .wx-share-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(15,76,92,0.3);
        }
        .image-card img {
            width: 100%;
            height: 200px;
            object-fit: cover;
            display: block;
            transition: transform 0.3s;
        }
        .image-card:hover img {
            transform: scale(1.05);
        }
        .image-no-badge {
            position: absolute;
            top: 8px;
            left: 8px;
            background: linear-gradient(135deg, var(--gold-primary), #d4af37);
            color: var(--surface-white);
            padding: 4px 10px;
            border-radius: 10px;
            font-size: 0.8em;
            font-weight: 700;
            z-index: 2;
            box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        }
        .image-card-info {
            padding: 12px;
        }
        .image-card-title {
            font-weight: 600;
            color: var(--deep-teal);
            font-size: 0.9em;
            margin-bottom: 6px;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .image-card-meta {
            display: flex;
            justify-content: space-between;
            font-size: 0.8em;
            color: var(--ink-gray);
        }
        .loading-state, .error-state {
            text-align: center;
            padding: 40px;
            color: var(--ink-gray);
        }
        .error-state {
            color: #c0392b;
        }

        @media (max-width: 500px) {
            .toggle-btn {
                font-size: 0.8em !important;
                padding: 9px 4px !important;
                gap: 3px !important;
            }
            .btn-export {
                padding: 9px 10px !important;
                font-size: 0.8em !important;
            }
            .btn-export-history {
                flex: 1 1 45% !important;
                padding: 9px 8px !important;
            }
            .view-toggle {
                gap: 4px;
                padding: 3px;
            }
            .report-export-overlay {
                align-items: flex-end;
                padding: 0;
            }
            .report-export-dialog {
                width: 100%;
                max-height: calc(92vh - env(safe-area-inset-bottom, 0px));
                border-radius: 22px 22px 0 0;
            }
            .report-export-header { padding: 18px 18px 15px; }
            .report-export-body { padding: 16px; }
            .report-export-parts button {
                align-items: flex-start;
                flex-direction: column;
            }
            .makeup-stat-grid {
                grid-template-columns: repeat(4, 1fr) !important;
                gap: 10px !important;
                margin-bottom: 16px !important;
                max-width: 100% !important;
            }
            .makeup-stat-card .stat-icon-wrap {
                width: 40px !important;
                height: 40px !important;
                border-radius: 12px !important;
            }
            .makeup-stat-card .stat-icon-wrap svg {
                width: 20px !important;
                height: 20px !important;
            }
            .makeup-stat-card .stat-badge {
                min-width: 18px !important;
                height: 18px !important;
                border-radius: 9px !important;
                font-size: 10px !important;
                top: 4px !important;
                right: 4px !important;
                padding: 0 4px !important;
            }
            .btn-refresh-makeup {
                padding: 7px 12px !important;
                font-size: 12px !important;
            }
            .page-title-icon {
                width: 38px !important;
                height: 38px !important;
                border-radius: 11px !important;
            }
            .page-title-icon svg {
                width: 20px !important;
                height: 20px !important;
            }
        }

        @media (max-width: 768px) {
            .image-grid-view {
                grid-template-columns: repeat(2, 1fr);
                gap: 10px;
            }
            .image-card img {
                height: 150px;
            }
            .report-detail-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 10px;
            }
            .site-card-header {
                flex-direction: column;
                align-items: flex-start;
                gap: 6px;
            }
            .report-no-badge {
                position: static;
                display: inline-block;
                margin-bottom: 8px;
            }
            .report-block-title {
                padding-right: 0;
            }
            .view-toggle {
                position: sticky;
                top: 0;
                z-index: 10;
                grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.35fr) minmax(0, 0.9fr);
            }
            .toggle-btn {
                flex: 1 1 0 !important;
                padding: 10px 6px !important;
                font-size: 13px !important;
                min-width: 0;
                gap: 3px !important;
                line-height: 1.2 !important;
                white-space: normal !important;
                overflow: visible !important;
            }
            .btn-checkin .btn-ico {
                width: 20px !important;
                height: 20px !important;
            }
            .btn-checkin {
                gap: 6px !important;
                font-size: 15px !important;
                padding: 12px 10px !important;
                border-radius: 14px !important;
                font-weight: 700 !important;
            }
            .media-type-filter {
                flex-wrap: wrap;
                gap: 6px;
            }
            .media-type-btn {
                padding: 6px 12px !important;
                font-size: 12px !important;
            }
            #media-select-bar {
                position: fixed !important;
                bottom: calc(68px + env(safe-area-inset-bottom, 0px)) !important;
                left: 10px !important;
                right: 10px !important;
                width: auto !important;
                border-radius: 14px !important;
                padding: 10px 12px !important;
                z-index: 9999 !important;
                box-shadow: 0 6px 28px rgba(15,76,92,0.35) !important;
                gap: 8px !important;
                backdrop-filter: blur(16px) !important;
                -webkit-backdrop-filter: blur(16px) !important;
                background: linear-gradient(135deg, rgba(15,76,92,0.95), rgba(26,107,124,0.95)) !important;
            }
            #media-select-bar > span {
                font-size: 14px !important;
                font-weight: 700 !important;
                white-space: nowrap;
            }
            #media-select-bar button {
                padding: 9px 14px !important;
                font-size: 13px !important;
                border-radius: 10px !important;
                font-weight: 700 !important;
            }
            #media-select-bar > div {
                gap: 6px !important;
                margin-left: auto !important;
            }
            #report-image-container,
            #report-text-container {
                padding-bottom: calc(148px + env(safe-area-inset-bottom, 0px));
            }
            .wx-share-modal {
                padding: 24px 20px 20px !important;
                border-radius: 16px !important;
                width: 88% !important;
            }
            .wx-share-icon {
                width: 52px !important;
                height: 52px !important;
                font-size: 26px !important;
                margin-bottom: 12px !important;
            }
            .wx-share-title {
                font-size: 16px !important;
            }
            .wx-share-desc {
                font-size: 13px !important;
                margin-bottom: 14px !important;
            }
            .wx-share-steps {
                padding: 12px !important;
                margin-bottom: 14px !important;
            }
            .wx-share-step {
                font-size: 13px !important;
            }
            .btn-back {
                padding: 6px 12px !important;
                font-size: 13px !important;
                white-space: nowrap;
            }
            .report-detail-title {
                font-size: 1.1em !important;
                word-break: break-all;
            }
            .site-img-preview-item {
                width: 72px !important;
                height: 72px !important;
            }
            .site-detail-img {
                width: 80px !important;
                height: 80px !important;
            }
            .modal-content {
                padding: 24px 18px !important;
            }
        }

        /* ==================== 桌面无边框窗口控制栏 ==================== */
        .desktop-titlebar {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            height: 40px;
            z-index: 99999;
        }
        body.is-desktop .desktop-titlebar {
            display: block;
        }
        .desktop-titlebar-drag {
            position: absolute;
            top: 0;
            left: 0;
            right: 150px;
            height: 40px;
            cursor: default;
            -webkit-user-select: none;
            user-select: none;
        }
        body.is-dragging,
        body.is-dragging * {
            -webkit-user-select: none !important;
            user-select: none !important;
            cursor: default !important;
        }
        .desktop-window-controls {
            position: absolute;
            top: 8px;
            right: 12px;
            display: flex;
            gap: 6px;
            opacity: 0;
            transform: translateY(-4px);
            transition: opacity 0.25s ease, transform 0.25s ease;
            pointer-events: none;
        }
        .desktop-titlebar:hover .desktop-window-controls,
        .desktop-window-controls:hover,
        .desktop-titlebar.is-hover .desktop-window-controls {
            opacity: 1;
            transform: translateY(0);
            pointer-events: auto;
        }
        .desktop-win-btn {
            width: 34px;
            height: 28px;
            border: none;
            border-radius: 6px;
            background: rgba(255,255,255,0.18);
            backdrop-filter: blur(12px);
            -webkit-backdrop-filter: blur(12px);
            color: rgba(255,255,255,0.85);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.15s ease, color 0.15s ease;
            padding: 0;
            outline: none;
        }
        .desktop-win-btn:hover {
            background: rgba(255,255,255,0.32);
            color: #fff;
        }
        .desktop-btn-close:hover {
            background: rgba(232, 57, 43, 0.75) !important;
            color: #fff !important;
        }
        .desktop-btn-max.is-maximized svg rect {
            x: 2.5; y: 2.5; width: 7; height: 7;
        }
        body.is-desktop {
            padding-top: 0;
        }
        body.is-desktop #login-page,
        body.is-desktop #admin-app,
        body.is-desktop #worker-app {
            height: 100vh;
        }

        /* ===== 媒体预览和视频样式 ===== */
        .media-preview-item {
            position: relative;
            display: inline-flex;
            flex-direction: column;
            align-items: center;
            margin: 6px;
        }
        .media-preview-thumb {
            width: 80px;
            height: 80px;
            object-fit: cover;
            border-radius: 10px;
            border: 2px solid rgba(201, 162, 39, 0.3);
        }
        .media-preview-video {
            width: 80px;
            height: 80px;
            border-radius: 10px;
            border: 2px solid rgba(42, 147, 168, 0.4);
            background: #000;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #fff;
            font-size: 28px;
        }
        .media-preview-name {
            font-size: 10px;
            color: var(--ink-light);
            max-width: 80px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            margin-top: 4px;
            text-align: center;
        }
        .media-preview-remove {
            position: absolute;
            top: -6px;
            right: -6px;
            width: 22px;
            height: 22px;
            border-radius: 50%;
            background: linear-gradient(135deg, #a02830, #c93e48);
            color: #fff;
            border: 2px solid #fff;
            font-size: 14px;
            line-height: 1;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            padding: 0;
        }
        .video-card {
            background: var(--surface-white);
            border-radius: var(--radius-md);
            overflow: hidden;
            box-shadow: var(--shadow-sm);
            transition: var(--transition-base);
            position: relative;
        }
        .video-card:hover {
            transform: translateY(-4px);
            box-shadow: var(--shadow-lg);
        }
        .video-card video {
            width: 100%;
            height: 200px;
            object-fit: cover;
            display: block;
            background: #000;
        }
        .video-badge {
            position: absolute;
            top: 8px;
            left: 8px;
            background: linear-gradient(135deg, #1a6b7c, #2a93a8);
            color: #fff;
            padding: 4px 10px;
            border-radius: 10px;
            font-size: 0.8em;
            font-weight: 700;
            z-index: 2;
            box-shadow: 0 2px 8px rgba(0,0,0,0.3);
        }
        .video-no-badge {
            position: absolute;
            top: 8px;
            left: 8px;
            background: linear-gradient(135deg, var(--gold-primary), #d4af37);
            color: var(--surface-white);
            padding: 4px 10px;
            border-radius: 10px;
            font-size: 0.8em;
            font-weight: 700;
            z-index: 2;
            box-shadow: 0 2px 8px rgba(0,0,0,0.2);
        }
        .media-type-filter {
            display: flex;
            gap: 8px;
            margin-bottom: 16px;
        }
        .media-type-btn {
            padding: 8px 16px;
            border: 2px solid rgba(15,76,92,0.15);
            background: var(--surface-white);
            border-radius: 20px;
            cursor: pointer;
            font-size: 13px;
            font-weight: 600;
            transition: var(--transition-base);
        }
        .media-type-btn.active {
            background: var(--gradient-water);
            color: #fff;
            border-color: var(--water-primary);
        }
        #media-select-btn {
            margin-left: auto;
            background: linear-gradient(135deg,#2a93a8,#3db5c9);
            color: #fff;
            border: none;
            box-shadow: 0 2px 8px rgba(42,147,168,0.3);
            transition: all 0.2s;
        }
        #media-select-btn:hover {
            transform: translateY(-1px);
            box-shadow: 0 4px 12px rgba(42,147,168,0.4);
        }
        #media-select-btn.active-mode {
            background: linear-gradient(135deg,#e74c3c,#c0392b) !important;
            box-shadow: 0 2px 8px rgba(231,76,60,0.3);
        }
        #media-select-all-btn {
            background: linear-gradient(135deg,#f0f0f0,#e0e0e0);
            color: #333;
        }
        #media-select-all-btn:hover {
            background: linear-gradient(135deg,#e0e0e0,#d0d0d0);
        }
        #media-cancel-select-btn {
            background: rgba(0,0,0,0.06);
        }
        #media-cancel-select-btn:hover {
            background: rgba(0,0,0,0.12);
        }
        .upload-progress-bar {
            width: 100%;
            height: 8px;
            background: rgba(15,76,92,0.1);
            border-radius: 4px;
            overflow: hidden;
            margin-top: 8px;
        }
        .upload-progress-fill {
            height: 100%;
            background: var(--gradient-gold);
            border-radius: 4px;
            transition: width 0.3s ease;
        }
        .media-count-badge {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
            margin-bottom: 12px;
        }
        .media-count-photos {
            background: linear-gradient(135deg, rgba(91,192,212,0.15), rgba(42,147,168,0.1));
            color: var(--water-dark);
        }
        .media-count-videos {
            background: linear-gradient(135deg, rgba(201,162,39,0.15), rgba(219,184,74,0.1));
            color: var(--gold-dark);
        }

        @media (max-width: 768px) {
            .video-card video {
                height: 150px;
            }
            .media-preview-thumb,
            .media-preview-video {
                width: 64px;
                height: 64px;
            }
            .media-preview-name {
                max-width: 64px;
            }
            .calendar-day {
                min-height: 52px !important;
                padding: 4px !important;
            }
            .calendar-day-number {
                font-size: 12px !important;
                margin-bottom: 2px !important;
            }
            .calendar-weekday {
                padding: 8px 4px !important;
                font-size: 11px !important;
            }
            .schedule-count-badge {
                font-size: 8px !important;
                padding: 1px 3px !important;
            }
            .schedule-preview {
                font-size: 9px !important;
                -webkit-line-clamp: 1 !important;
            }
            .calendar-header {
                flex-wrap: wrap !important;
                gap: 6px !important;
            }
            .calendar-header h3 {
                min-width: 120px !important;
                margin: 0 8px !important;
                font-size: 16px !important;
            }
            #attendance-toolbar {
                display: block !important;
                width: 100% !important;
                max-width: 100% !important;
                box-sizing: border-box !important;
                overflow-x: hidden;
            }
            #attendance-toolbar .form-group {
                display: block !important;
                width: 100% !important;
                max-width: 100% !important;
                min-width: 0 !important;
                flex: none !important;
                margin: 0 0 12px 0 !important;
                box-sizing: border-box !important;
            }
            #attendance-toolbar .form-group:last-of-type {
                margin-bottom: 12px !important;
            }
            #attendance-toolbar .form-group label {
                margin-bottom: 6px !important;
                display: block;
            }
            #attendance-toolbar .form-group input,
            #attendance-toolbar .form-group select {
                display: block !important;
                width: 100% !important;
                max-width: 100% !important;
                min-width: 0 !important;
                box-sizing: border-box !important;
                margin: 0;
                padding: 12px 16px;
                -webkit-appearance: none;
                -moz-appearance: none;
                appearance: none;
            }
            #attendance-toolbar .btn {
                display: block !important;
                width: 100% !important;
                max-width: 100% !important;
                min-width: 0 !important;
                margin: 0 0 8px 0 !important;
                padding: 12px !important;
                box-sizing: border-box !important;
                flex: none !important;
                text-align: center;
            }
            .tab-content {
                overflow-x: hidden !important;
                width: 100%;
                box-sizing: border-box;
            }
            .mobile-sub-tabs {
                display: flex !important;
                background: var(--surface-white);
                border-radius: var(--radius-lg);
                padding: 4px;
                margin-bottom: 16px;
                box-shadow: var(--shadow-sm);
                gap: 4px;
            }
            .mobile-sub-tab {
                flex: 1;
                text-align: center;
                padding: 12px 8px;
                border-radius: var(--radius);
                font-size: 14px;
                font-weight: 600;
                color: var(--ink-mid);
                cursor: pointer;
                transition: all 0.25s ease;
                user-select: none;
                -webkit-tap-highlight-color: transparent;
            }
            .mobile-sub-tab.active {
                background: linear-gradient(135deg, var(--water-primary), var(--water-dark));
                color: white;
                box-shadow: 0 4px 12px rgba(42, 147, 168, 0.3);
            }
            .mobile-sub-tab:active {
                transform: scale(0.97);
            }
            #attendance-schedules-panel .calendar-header {
                margin-bottom: 10px;
                padding: 0;
            }
            #attendance-schedules-panel .calendar-header h3 {
                font-size: 17px !important;
                min-width: 100px !important;
            }
            #attendance-schedules-panel .calendar-header .btn {
                padding: 8px 12px !important;
                font-size: 13px !important;
            }
            #attendance-schedules-panel .calendar-legend {
                gap: 10px;
                font-size: 11px;
                margin-bottom: 10px;
                flex-wrap: wrap;
            }
            #attendance-schedules-panel .calendar-day {
                min-height: 48px !important;
                padding: 3px !important;
            }
            #attendance-schedules-panel .schedule-preview {
                display: none !important;
            }
        }
