        /* ===== 全局重置 & 变量 ===== */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        :root {
            --primary: #2c3e50;
            --accent: #3498db;
            --accent-light: #5faee3;
            --accent-glow: rgba(59, 130, 246, 0.25);
            --bg: #f0f2f8;
            --card-bg: rgba(255, 255, 255, 0.85);
            --shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
            --shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.12);
            --radius: 16px;
            --transition: 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            --container-max: 1280px;
            --side-padding: 20px;
        }
        body {
            background: var(--bg);
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Microsoft YaHei', sans-serif;
            padding: 24px 20px 60px;
            color: #1e293b;
            min-height: 100vh;
            background-image:
                radial-gradient(ellipse at 0% 20%, rgba(52, 152, 219, 0.06) 0%, transparent 50%),
                radial-gradient(ellipse at 100% 80%, rgba(46, 204, 113, 0.04) 0%, transparent 50%),
                radial-gradient(ellipse at 50% 50%, rgba(139, 92, 246, 0.03) 0%, transparent 70%);
        }

        /* ===== 头部 ===== */
        .header {
            text-align: center;
            margin-bottom: 28px;
            animation: fadeDown 0.6s ease;
            position: relative;
        }
        .header::after {
            content: '';
            position: absolute;
            top: -40px;
            left: 50%;
            transform: translateX(-50%);
            width: 320px;
            height: 320px;
            background: radial-gradient(circle, rgba(59, 130, 246, 0.06) 0%, transparent 70%);
            border-radius: 50%;
            pointer-events: none;
            z-index: -1;
        }
        .header h1 {
            font-size: 2.6rem;
            font-weight: 700;
            background: linear-gradient(135deg, #1e293b 0%, #3b82f6 50%, #8b5cf6 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            letter-spacing: -0.02em;
            position: relative;
            display: inline-block;
        }
        .header h1::after {
            content: '';
            position: absolute;
            bottom: -6px;
            left: 10%;
            width: 80%;
            height: 3px;
            background: linear-gradient(90deg, transparent, #3b82f6, #8b5cf6, transparent);
            border-radius: 4px;
            opacity: 0.4;
        }
        .header p {
            color: #64748b;
            margin-top: 14px;
            font-size: 1rem;
            font-weight: 400;
            letter-spacing: 0.3px;
        }

        .notice-wrapper,
        .toolbar-wrapper,
        .container {
            max-width: var(--container-max);
            margin-left: auto;
            margin-right: auto;
            padding-left: var(--side-padding);
            padding-right: var(--side-padding);
        }

        /* ===== 公告卡片 ===== */
        .notice-wrapper {
            margin-bottom: 32px;
            animation: fadeDown 0.6s ease 0.1s both;
        }
        .notice-card {
            position: relative;
            background: linear-gradient(135deg, #ffffff 0%, #f8faff 100%);
            border-radius: var(--radius);
            box-shadow: 0 6px 24px rgba(0, 0, 0, 0.05), 0 1px 4px rgba(0, 0, 0, 0.02);
            padding: 18px 22px 16px;
            border: 1px solid rgba(255, 255, 255, 0.6);
            overflow: hidden;
            transition: box-shadow 0.3s ease, transform 0.2s ease;
            cursor: pointer;
        }
        .notice-card:hover {
            box-shadow: 0 12px 40px rgba(0, 0, 0, 0.07);
            transform: translateY(-1px);
        }
        .notice-card::before {
            content: '';
            position: absolute;
            left: 0;
            top: 0;
            bottom: 0;
            width: 5px;
            background: linear-gradient(180deg, #3b82f6, #8b5cf6, #ec4899);
            border-radius: 0 4px 4px 0;
            opacity: 0.8;
        }
        .notice-card::after {
            content: '';
            position: absolute;
            top: -30px;
            right: -30px;
            width: 120px;
            height: 120px;
            background: radial-gradient(circle, rgba(59, 130, 246, 0.04), transparent 70%);
            border-radius: 50%;
            pointer-events: none;
        }
        .notice-badge {
            position: absolute;
            top: 14px;
            right: 16px;
            background: rgba(59, 130, 246, 0.10);
            color: #3b82f6;
            font-size: 0.65rem;
            font-weight: 600;
            padding: 2px 12px;
            border-radius: 30px;
            letter-spacing: 0.5px;
            border: 1px solid rgba(59, 130, 246, 0.12);
            pointer-events: none;
            backdrop-filter: blur(4px);
        }
        .notice-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
        }
        .notice-title {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 1.15rem;
            font-weight: 700;
            color: #0f172a;
            flex: 1;
        }
        .notice-title .icon {
            font-size: 1.3rem;
        }
        .notice-toggle {
            flex-shrink: 0;
            background: none;
            border: none;
            color: #3b82f6;
            font-size: 0.85rem;
            font-weight: 500;
            cursor: pointer;
            padding: 4px 14px;
            border-radius: 30px;
            background: rgba(59, 130, 246, 0.06);
            transition: background 0.2s, transform 0.15s;
            white-space: nowrap;
            border: 1px solid transparent;
        }
        .notice-toggle:hover {
            background: rgba(59, 130, 246, 0.12);
            transform: scale(1.02);
        }
        .notice-toggle:active {
            transform: scale(0.95);
        }
        .notice-body-wrapper {
            max-height: 0;
            overflow: hidden;
            transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease;
            opacity: 0;
            margin-top: 0;
        }
        .notice-body-wrapper.open {
            max-height: 900px;
            opacity: 1;
            margin-top: 14px;
        }
        .notice-body {
            display: flex;
            flex-direction: column;
            gap: 10px;
            color: #334155;
            font-size: 0.92rem;
            line-height: 1.7;
            padding-top: 2px;
        }
        .notice-body .p {
            display: flex;
            align-items: flex-start;
            gap: 10px;
            padding: 1px 0;
            transition: transform 0.2s ease;
        }
        .notice-body .p:hover .marker {
            transform: scale(1.1);
        }
        .notice-body .p .marker {
            flex-shrink: 0;
            width: 22px;
            text-align: center;
            font-size: 1rem;
            margin-top: 2px;
            transition: transform 0.2s ease;
        }
        .notice-body .p .text {
            flex: 1;
        }
        .notice-body .highlight {
            color: #1e293b;
            font-weight: 600;
            background: linear-gradient(90deg, rgba(59, 130, 246, 0.08), transparent);
            padding: 0 4px;
            border-radius: 4px;
        }
        .notice-body .accent-text {
            color: #2563eb;
            font-weight: 600;
        }
        .notice-divider {
            margin: 8px 0 6px;
            height: 1px;
            background: linear-gradient(90deg, rgba(59, 130, 246, 0.15), transparent);
        }
        .notice-footer {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-top: 4px;
            font-size: 0.75rem;
            color: #94a3b8;
        }
        .notice-footer .brand {
            font-weight: 500;
            color: #475569;
            letter-spacing: 0.5px;
        }
        .notice-footer .brand span {
            color: #3b82f6;
        }
        .notice-footer .tip {
            font-size: 0.65rem;
            background: rgba(0, 0, 0, 0.03);
            padding: 2px 12px;
            border-radius: 30px;
            color: #94a3b8;
            border: 1px solid rgba(0, 0, 0, 0.03);
        }

        /* ============================================================
           工具栏
           ============================================================ */
        .toolbar-wrapper {
            margin-bottom: 32px;
            animation: fadeDown 0.6s ease 0.15s both;
        }
        .toolbar {
            background: rgba(255, 255, 255, 0.70);
            backdrop-filter: blur(16px);
            -webkit-backdrop-filter: blur(16px);
            border-radius: var(--radius);
            padding: 16px 20px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05), 0 0 0 1px rgba(255, 255, 255, 0.5);
            border: 1px solid rgba(255, 255, 255, 0.3);
            display: flex;
            flex-direction: column;
            gap: 10px;
            transition: opacity 0.3s ease, box-shadow 0.3s ease;
        }
        .toolbar.loading {
            opacity: 0.6;
            pointer-events: none;
        }
        .toolbar:hover {
            box-shadow: 0 8px 32px rgba(0, 0, 0, 0.07), 0 0 0 1px rgba(255, 255, 255, 0.6);
        }

        .toolbar-top {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 12px;
        }

        .stats-total-row {
            font-size: 0.95rem;
            font-weight: 600;
            color: #0f172a;
            display: flex;
            align-items: center;
            gap: 6px;
            flex-shrink: 0;
        }
        .stats-total-row .num {
            color: #3b82f6;
            font-weight: 700;
            font-size: 1.1rem;
            display: inline-block;
            transition: transform 0.2s ease;
        }
        .stats-total-row .num:hover {
            transform: scale(1.05);
        }

        .search-mode-toggle {
            margin-left: auto;
            display: flex;
            gap: 6px;
        }
        .search-mode-toggle button {
            padding: 6px 18px;
            border: 2px solid #dce4ee;
            border-radius: 30px;
            background: #fff;
            color: #475569;
            font-size: 0.85rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.25s ease;
            white-space: nowrap;
        }
        .search-mode-toggle button:hover {
            border-color: #3b82f6;
            color: #3b82f6;
            background: rgba(59, 130, 246, 0.04);
        }
        .search-mode-toggle button.active {
            border-color: #3b82f6;
            background: #3b82f6;
            color: #fff;
            box-shadow: 0 4px 16px rgba(59, 130, 246, 0.25);
        }
        .search-mode-toggle button.active:hover {
            background: #2563eb;
            border-color: #2563eb;
        }

        .stats-cats-row {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 6px 16px;
            padding-bottom: 2px;
        }
        .stats-item {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 3px 12px 3px 8px;
            border-radius: 30px;
            background: rgba(0, 0, 0, 0.02);
            cursor: pointer;
            transition: background 0.25s ease, transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease;
            border: 1px solid transparent;
            white-space: nowrap;
            font-weight: 500;
            font-size: 0.85rem;
            color: #475569;
            position: relative;
        }
        .stats-item:hover {
            background: rgba(0, 0, 0, 0.05);
            transform: translateY(-2px) scale(1.02);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
        }
        .stats-item:active {
            transform: scale(0.94);
            transition-duration: 0.08s;
        }
        .stats-item .cat-icon {
            font-size: 0.9rem;
            line-height: 1;
            transition: transform 0.2s ease;
        }
        .stats-item:hover .cat-icon {
            transform: scale(1.1) rotate(-4deg);
        }
        .stats-item .cat-name {
            font-weight: 500;
        }
        .stats-item .cat-count {
            font-weight: 700;
            margin-left: 1px;
            font-size: 0.85rem;
            background: rgba(0, 0, 0, 0.04);
            padding: 0 6px;
            border-radius: 20px;
            min-width: 18px;
            text-align: center;
            transition: background 0.2s;
        }
        .stats-item:hover .cat-count {
            background: rgba(0, 0, 0, 0.07);
        }
        .stats-item.cat-报纸 .cat-name { color: #3b82f6; }
        .stats-item.cat-报纸 .cat-count { color: #3b82f6; background: rgba(59, 130, 246, 0.08); }
        .stats-item.cat-期刊 .cat-name { color: #d97706; }
        .stats-item.cat-期刊 .cat-count { color: #d97706; background: rgba(217, 119, 6, 0.08); }
        .stats-item.cat-书籍 .cat-name { color: #059669; }
        .stats-item.cat-书籍 .cat-count { color: #059669; background: rgba(5, 150, 105, 0.08); }
        .stats-item.cat-地图 .cat-name { color: #7c3aed; }
        .stats-item.cat-地图 .cat-count { color: #7c3aed; background: rgba(124, 58, 237, 0.08); }
        .stats-item.cat-绘画 .cat-name { color: #dc2626; }
        .stats-item.cat-绘画 .cat-count { color: #dc2626; background: rgba(220, 38, 38, 0.08); }
        .stats-item.cat-老照片 .cat-name { color: #ea580c; }
        .stats-item.cat-老照片 .cat-count { color: #ea580c; background: rgba(234, 88, 12, 0.08); }
        .stats-item.cat-其他 .cat-name { color: #6b7280; }
        .stats-item.cat-其他 .cat-count { color: #6b7280; background: rgba(107, 114, 128, 0.08); }
        .stats-item.active {
            background: rgba(59, 130, 246, 0.10);
            border-color: rgba(59, 130, 246, 0.25);
            box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.12), 0 4px 12px rgba(59, 130, 246, 0.06);
            transform: translateY(-1px);
        }
        .stats-item.active .cat-name,
        .stats-item.active .cat-count {
            color: #2563eb !important;
        }
        .stats-item.active .cat-count {
            background: rgba(59, 130, 246, 0.15) !important;
        }

        .search-inline {
            flex: 1;
            min-width: 180px;
            margin-left: auto;
        }
        .search-box {
            display: flex;
            align-items: center;
            background: #ffffff;
            border-radius: 48px;
            border: 2.5px solid #3b82f6;
            box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.20);
            transition: border-color 0.3s ease, box-shadow 0.4s ease, transform 0.3s ease;
            padding: 0 4px 0 14px;
            animation: searchPulse 2.8s ease-in-out infinite;
        }
        .search-box:focus-within {
            border-color: #1d4ed8;
            box-shadow: 0 0 0 8px rgba(59, 130, 246, 0.18), 0 8px 32px rgba(59, 130, 246, 0.12);
            transform: scale(1.04);
            animation: none;
        }
        .search-icon {
            font-size: 1.05rem;
            color: #94a3b8;
            flex-shrink: 0;
            transition: color 0.3s ease, transform 0.2s ease;
            line-height: 1;
            margin-right: 2px;
        }
        .search-box:focus-within .search-icon {
            color: #3b82f6;
            transform: scale(1.05);
        }
        .search-box input {
            flex: 1;
            padding: 10px 14px 10px 6px;
            border: none;
            background: transparent;
            font-size: 0.95rem;
            font-weight: 500;
            color: #0f172a;
            outline: none;
            min-width: 80px;
        }
        .search-box input::placeholder {
            color: #a0aec0;
            font-weight: 400;
            font-size: 0.9rem;
            letter-spacing: 0.2px;
            transition: opacity 0.3s ease;
        }
        .search-box input:focus::placeholder {
            opacity: 0.5;
        }
        @keyframes searchPulse {
            0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.20); }
            50% { box-shadow: 0 0 0 12px rgba(59, 130, 246, 0.06); }
        }

        /* ============================================================
           全文检索面板
           ============================================================ */
        .fulltext-panel {
            display: none;
            margin-top: 12px;
            padding-top: 14px;
            border-top: 2px dashed rgba(59, 130, 246, 0.15);
        }
        .fulltext-panel.open {
            display: block;
            animation: fadeDown 0.4s ease;
        }

        .fulltext-search-row {
            display: flex;
            gap: 12px;
            flex-wrap: wrap;
        }
        .fulltext-search-row input {
            flex: 1;
            min-width: 180px;
            padding: 12px 20px;
            border: 2px solid #e4eaf2;
            border-radius: 10px;
            font-size: 15px;
            outline: none;
            background: #f9fbfd;
            transition: all 0.2s;
        }
        .fulltext-search-row input:focus {
            border-color: #2a3f54;
            background: #fff;
            box-shadow: 0 0 0 4px rgba(42,63,84,0.08);
        }
        .fulltext-search-row input::placeholder {
            color: #a5b8ce;
        }
        .fulltext-search-row button {
            padding: 12px 32px;
            background: #2a3f54;
            color: #fff;
            border: none;
            border-radius: 10px;
            font-size: 15px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            white-space: nowrap;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        .fulltext-search-row button:hover {
            background: #1a2938;
            box-shadow: 0 8px 24px rgba(42,63,84,0.3);
            transform: translateY(-1px);
        }
        .fulltext-search-row button:disabled {
            opacity: 0.6;
            cursor: not-allowed;
            transform: none;
        }
        .fulltext-search-row button .spinner {
            display: inline-block;
            width: 16px; height: 16px;
            border: 2.5px solid rgba(255,255,255,0.25);
            border-top-color: #fff;
            border-radius: 50%;
            animation: spin 0.7s linear infinite;
        }
        @keyframes spin { to { transform: rotate(360deg); } }

        .fulltext-filters {
            display: flex;
            gap: 16px;
            flex-wrap: wrap;
            margin-top: 12px;
            padding-top: 12px;
            border-top: 1px solid #eff3f8;
            align-items: center;
            font-size: 14px;
            color: #3a4e66;
        }
        .fulltext-filters .group {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
        }
        .fulltext-filters .group label {
            display: flex;
            align-items: center;
            gap: 4px;
            cursor: pointer;
            user-select: none;
            font-size: 13px;
        }
        .fulltext-filters .group input[type="checkbox"] {
            width: 15px;
            height: 15px;
            accent-color: #2a3f54;
            cursor: pointer;
        }
        .fulltext-filters select {
            padding: 4px 12px;
            border: 1.5px solid #dce4ee;
            border-radius: 6px;
            font-size: 13px;
            background: #fff;
            outline: none;
            cursor: pointer;
        }
        .fulltext-filters select:focus {
            border-color: #2a3f54;
        }

        .fulltext-status {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 0 4px;
            font-size: 14px;
            color: #4a5e78;
            flex-wrap: wrap;
            gap: 6px;
        }
        .fulltext-status strong {
            color: #1a2938;
            font-size: 18px;
        }

        /* ===== 全文检索结果 - 分组卡片 ===== */
        .fulltext-results {
            display: flex;
            flex-direction: column;
            gap: 16px;
            margin-top: 8px;
        }

        .ft-group-card {
            background: #fff;
            border: 1px solid #e8eef6;
            border-radius: 14px;
            overflow: hidden;
            box-shadow: 0 2px 8px rgba(0,0,0,0.03);
            transition: all 0.2s;
        }
        .ft-group-card:hover {
            border-color: #cbd8e8;
            box-shadow: 0 6px 20px rgba(0,0,0,0.06);
        }

        .ft-group-header {
            background: #f8fafc;
            padding: 12px 18px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 10px;
            border-bottom: 1px solid #e8eef6;
            cursor: pointer;
        }
        .ft-group-header:hover {
            background: #f0f4fa;
        }

        .ft-group-header .left {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
            flex: 1;
            min-width: 150px;
        }
        .ft-group-header .left .title {
            font-size: 16px;
            font-weight: 600;
            color: #1a2938;
        }
        .ft-group-header .left .badge {
            font-size: 11px;
            font-weight: 500;
            padding: 2px 12px;
            border-radius: 30px;
        }
        .badge-map { background: #dbeafe; color: #1e4a8a; }
        .badge-photo { background: #fef3c7; color: #8a6d1a; }
        .badge-newspaper { background: #e5e7eb; color: #4b5563; }
        .badge-journal { background: #d1fae5; color: #065f46; }
        .badge-other { background: #f3e8ff; color: #6b21a5; }

        .ft-group-header .right {
            display: flex;
            align-items: center;
            gap: 10px;
            font-size: 13px;
            color: #7a92ac;
            flex-shrink: 0;
        }
        .ft-group-header .right .count-badge {
            background: #eef2f6;
            padding: 2px 10px;
            border-radius: 30px;
            font-size: 12px;
            font-weight: 500;
            color: #4a5e78;
        }
        .ft-group-header .right .arrow {
            transition: transform 0.25s;
            font-size: 14px;
            user-select: none;
            padding: 4px 6px;
            border-radius: 6px;
        }
        .ft-group-header .right .arrow:hover {
            background: #e8edf4;
        }
        .ft-group-header .right .arrow.collapsed {
            transform: rotate(-90deg);
        }

        .btn-viewer-ft {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 5px 14px 5px 12px;
            background: #2a3f54;
            color: #fff !important;
            border-radius: 30px;
            font-size: 12px;
            font-weight: 600;
            text-decoration: none;
            transition: all 0.2s;
            border: none;
            cursor: pointer;
            white-space: nowrap;
            flex-shrink: 0;
            box-shadow: 0 2px 6px rgba(42, 63, 84, 0.15);
        }
        .btn-viewer-ft:hover {
            background: #1a2938;
            transform: translateY(-1px);
            box-shadow: 0 4px 14px rgba(42, 63, 84, 0.25);
        }
        .btn-viewer-ft:active {
            transform: scale(0.96);
        }

        .ft-group-body {
            padding: 0 18px 14px;
        }

        .ft-sub-item {
            padding: 12px 0 10px;
            border-bottom: 2px solid #e8edf4;
        }
        .ft-sub-item:last-child {
            border-bottom: none;
        }

        .ft-sub-item .head {
            display: flex;
            align-items: center;
            gap: 10px;
            flex-wrap: wrap;
            margin-bottom: 3px;
        }
        .ft-sub-item .head .sub-title {
            font-size: 14px;
            font-weight: 600;
            color: #1a2938;
        }
        .ft-sub-item .head .tag {
            font-size: 11px;
            padding: 1px 12px;
            border-radius: 30px;
            background: #eef2f6;
            color: #4a5e78;
            font-weight: 500;
        }
        .ft-sub-item .head .page-info {
            font-size: 12px;
            color: #5a728c;
            background: #f0f4fa;
            padding: 1px 10px;
            border-radius: 4px;
        }

        .ft-sub-item .preview {
            font-size: 14px;
            color: #3a4e66;
            line-height: 1.7;
            margin: 4px 0 6px;
            max-height: 80px;
            overflow: hidden;
        }
        .ft-sub-item .preview .hl {
            background: #fde68a;
            padding: 0 3px;
            border-radius: 2px;
            font-weight: 500;
        }

        .ft-sub-item .meta {
            display: flex;
            gap: 16px;
            flex-wrap: wrap;
            font-size: 12px;
            color: #8aa0b8;
        }
        .ft-sub-item .meta .id-tag {
            color: #5a728c;
            background: #f5f7fa;
            padding: 0 8px;
            border-radius: 4px;
        }

        .ft-more-trigger {
            padding: 8px 0 2px;
            text-align: center;
            border-top: 2px solid #e8edf4;
            margin-top: 4px;
        }
        .ft-more-trigger button {
            background: none;
            border: none;
            color: #2a5f8a;
            font-size: 13px;
            font-weight: 500;
            cursor: pointer;
            padding: 6px 20px;
            border-radius: 20px;
            transition: all 0.15s;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }
        .ft-more-trigger button:hover {
            background: #eef4fa;
            color: #1a3f6a;
        }
        .ft-more-trigger button .badge-more {
            background: #2a5f8a;
            color: #fff;
            border-radius: 30px;
            padding: 0 10px;
            font-size: 11px;
            font-weight: 600;
        }
        .ft-more-items {
            display: none;
        }
        .ft-more-items.show {
            display: block;
        }
        .ft-more-items .ft-sub-item:first-child {
            border-top: 2px solid #dce4ee;
            padding-top: 12px;
        }

        .ft-empty {
            text-align: center;
            padding: 40px 20px;
            color: #7a92ac;
        }
        .ft-empty .icon { font-size: 48px; margin-bottom: 10px; opacity: 0.5; }
        .ft-empty h3 { font-size: 18px; color: #2a3f54; margin-bottom: 4px; }
        .ft-empty p { font-size: 14px; }

        .ft-pagination {
            display: flex;
            justify-content: center;
            gap: 6px;
            margin-top: 18px;
            flex-wrap: wrap;
        }
        .ft-pagination button {
            padding: 5px 14px;
            border: 1.5px solid #dce4ee;
            border-radius: 6px;
            background: #fff;
            color: #2a3f54;
            font-size: 14px;
            cursor: pointer;
            transition: all 0.15s;
        }
        .ft-pagination button:hover:not(:disabled) {
            background: #eaf0f6;
            border-color: #b0c4d8;
        }
        .ft-pagination button.active {
            background: #2a3f54;
            color: #fff;
            border-color: #2a3f54;
        }
        .ft-pagination button:disabled {
            opacity: 0.4;
            cursor: not-allowed;
        }

        /* ===== 文献网格 ===== */
        .container {
            margin-top: 0;
        }
        .grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
            gap: 28px;
            align-items: stretch;
            animation: fadeUp 0.5s ease;
        }

        .card {
            display: flex;
            flex-direction: column;
            height: 100%;
            background: var(--card-bg);
            backdrop-filter: blur(4px);
            -webkit-backdrop-filter: blur(4px);
            border-radius: var(--radius);
            box-shadow: var(--shadow);
            transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, background 0.3s ease;
            text-decoration: none;
            color: inherit;
            position: relative;
            overflow: hidden;
            border: 1px solid rgba(255, 255, 255, 0.5);
            cursor: pointer;
            will-change: transform;
        }
        .card:hover {
            transform: translateY(-10px) scale(1.01);
            box-shadow: var(--shadow-hover);
            background: #ffffff;
            border-color: rgba(255, 255, 255, 0.8);
        }
        .card:active {
            transform: scale(0.97);
            transition-duration: 0.08s;
        }
        .card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, transparent, #3b82f6, #8b5cf6, transparent);
            opacity: 0;
            transition: opacity 0.4s ease;
            z-index: 2;
            border-radius: var(--radius) var(--radius) 0 0;
        }
        .card:hover::before {
            opacity: 1;
        }

        .card-preview {
            height: 220px;
            flex-shrink: 0;
            background: #e9edf4;
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
            position: relative;
        }
        .card-preview img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: top center;
            transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
        }
        .card:hover .card-preview img {
            transform: scale(1.05);
        }
        .card-preview .placeholder-icon {
            font-size: 3rem;
            color: #94a3b8;
            opacity: 0.6;
        }

        .card-tag {
            position: absolute;
            bottom: 12px;
            left: 12px;
            z-index: 2;
            padding: 4px 14px 4px 12px;
            border-radius: 20px;
            font-size: 0.7rem;
            font-weight: 700;
            letter-spacing: 0.3px;
            border: 1px solid rgba(255, 255, 255, 0.15);
            box-shadow: 0 2px 16px rgba(0, 0, 0, 0.25);
            display: flex;
            align-items: center;
            gap: 5px;
            backdrop-filter: blur(2px);
            transition: transform 0.2s ease, box-shadow 0.2s ease;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
            color: #ffffff;
        }
        .card:hover .card-tag {
            transform: scale(1.04);
            box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
        }
        .card-tag .tag-icon {
            font-size: 0.75rem;
            line-height: 1;
        }
        .card-tag .tag-label {
            line-height: 1;
        }
        .card-tag.tag-报纸 { background: #3b82f6; }
        .card-tag.tag-期刊 { background: #f59e0b; color: #1a1a1a; text-shadow: none; }
        .card-tag.tag-书籍 { background: #10b981; }
        .card-tag.tag-地图 { background: #8b5cf6; }
        .card-tag.tag-绘画 { background: #ef4444; }
        .card-tag.tag-老照片 { background: #f97316; }
        .card-tag.tag-其他 { background: #6b7280; }

        .card-region {
            position: absolute;
            bottom: 12px;
            right: 12px;
            z-index: 2;
            background: rgba(210, 215, 225, 0.88);
            backdrop-filter: blur(4px);
            color: #1e293b;
            padding: 4px 14px 4px 12px;
            border-radius: 20px;
            font-size: 0.7rem;
            font-weight: 500;
            border: 1px solid rgba(255, 255, 255, 0.3);
            box-shadow: 0 2px 16px rgba(0, 0, 0, 0.12);
            display: flex;
            align-items: center;
            gap: 4px;
            transition: transform 0.2s ease, box-shadow 0.2s ease;
            text-shadow: 0 1px 2px rgba(255, 255, 255, 0.2);
        }
        .card:hover .card-region {
            transform: scale(1.04);
            box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
        }
        .card-region .region-icon {
            font-size: 0.7rem;
            line-height: 1;
        }
        .card-region .region-text {
            line-height: 1;
        }

        .internal-badge {
            position: absolute;
            top: 12px;
            right: 12px;
            z-index: 3;
            background: #dc2626;
            color: #ffffff;
            padding: 3px 14px 3px 12px;
            border-radius: 30px;
            font-size: 0.7rem;
            font-weight: 700;
            letter-spacing: 0.3px;
            display: flex;
            align-items: center;
            gap: 5px;
            box-shadow: 0 2px 16px rgba(220, 38, 38, 0.45);
            border: 1px solid rgba(255, 255, 255, 0.15);
            backdrop-filter: blur(2px);
            transition: transform 0.2s ease, box-shadow 0.2s ease;
            text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
        }
        .card:hover .internal-badge {
            transform: scale(1.05);
            box-shadow: 0 4px 28px rgba(220, 38, 38, 0.55);
        }
        .internal-badge .badge-icon {
            font-size: 0.75rem;
            line-height: 1;
        }
        .internal-badge .badge-label {
            line-height: 1;
        }

        .card-content {
            flex: 1;
            display: flex;
            flex-direction: column;
            padding: 16px 18px 18px;
            background: linear-gradient(180deg, transparent 0%, rgba(255, 255, 255, 0.3) 100%);
        }
        .card-title {
            font-size: 0.95rem;
            font-weight: 600;
            color: #0f172a;
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
            margin-bottom: 6px;
            line-height: 1.4;
        }
        .card-title .title-text {
            flex: 1;
            min-width: 60px;
        }
        .card-desc {
            font-size: 0.85rem;
            color: #64748b;
            line-height: 1.6;
            margin: 6px 0 8px 0;
            flex: 1;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
        }
        .card-footer {
            margin-top: auto;
            padding-top: 8px;
            border-top: 1px solid rgba(0, 0, 0, 0.04);
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        .card-footer .count {
            font-size: 0.75rem;
            color: #94a3b8;
            display: flex;
            align-items: center;
            gap: 4px;
            transition: color 0.2s ease;
        }
        .card:hover .card-footer .count {
            color: #3b82f6;
        }

        .empty {
            text-align: center;
            padding: 80px 20px;
            color: #94a3b8;
            display: none;
        }
        .empty .empty-icon {
            font-size: 64px;
            margin-bottom: 16px;
            opacity: 0.5;
            animation: float 3s ease-in-out infinite;
        }
        @keyframes float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-12px); }
        }
        .empty p {
            font-size: 1.1rem;
        }

        .skeleton-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
            gap: 28px;
        }
        .skeleton-card {
            background: linear-gradient(135deg, #e9edf4 25%, #dce2ec 50%, #e9edf4 75%);
            background-size: 200% 100%;
            border-radius: var(--radius);
            height: 360px;
            animation: shimmer 1.8s ease-in-out infinite;
        }
        @keyframes shimmer {
            0% { background-position: -200% 0; }
            100% { background-position: 200% 0; }
        }

        @keyframes fadeDown {
            from { opacity: 0; transform: translateY(-24px); }
            to { opacity: 1; transform: translateY(0); }
        }
        @keyframes fadeUp {
            from { opacity: 0; transform: translateY(24px); }
            to { opacity: 1; transform: translateY(0); }
        }

        ::-webkit-scrollbar {
            width: 6px;
            height: 6px;
        }
        ::-webkit-scrollbar-track {
            background: rgba(0, 0, 0, 0.02);
            border-radius: 8px;
        }
        ::-webkit-scrollbar-thumb {
            background: #cbd5e1;
            border-radius: 8px;
            transition: background 0.2s;
        }
        ::-webkit-scrollbar-thumb:hover {
            background: #94a3b8;
        }

        /* ===== 响应式 ===== */
        @media (max-width: 640px) {
            body { padding: 16px 12px 40px; }
            :root { --side-padding: 0px; }
            .notice-wrapper, .toolbar-wrapper, .container {
                padding-left: 0;
                padding-right: 0;
            }

            .header h1 { font-size: 1.8rem; }
            .header h1::after { width: 60%; left: 20%; }
            .header::after { width: 200px; height: 200px; top: -20px; }

            .notice-card { padding: 14px 16px 12px; border-radius: 14px; }
            .notice-title { font-size: 1rem; }
            .notice-title .icon { font-size: 1.1rem; }
            .notice-toggle { font-size: 0.75rem; padding: 2px 10px; }
            .notice-body { font-size: 0.85rem; gap: 8px; }
            .notice-body .p { gap: 8px; }
            .notice-body .p .marker { width: 18px; font-size: 0.9rem; }
            .notice-badge { top: 10px; right: 12px; font-size: 0.55rem; padding: 2px 10px; }
            .notice-footer { flex-direction: column; align-items: flex-start; gap: 4px; font-size: 0.7rem; }
            .notice-footer .tip { font-size: 0.6rem; }

            .toolbar { padding: 12px 14px; gap: 8px; border-radius: 14px; }
            .stats-total-row { font-size: 0.85rem; }
            .stats-cats-row { gap: 4px 10px; flex-wrap: wrap; }
            .stats-item { padding: 2px 8px 2px 6px; font-size: 0.75rem; gap: 2px; }
            .stats-item .cat-icon { font-size: 0.75rem; }
            .stats-item .cat-count { font-size: 0.75rem; padding: 0 4px; }

            .search-mode-toggle button { font-size: 0.75rem; padding: 4px 12px; }

            .search-inline { flex: 1 1 100%; margin-left: 0; margin-top: 4px; min-width: 0; }
            .search-box { border-width: 2px; padding-left: 12px; border-radius: 40px; }
            .search-box input { padding: 9px 12px 9px 4px; font-size: 0.88rem; }
            .search-icon { font-size: 0.95rem; }
            .search-box { animation-duration: 2.4s; }
            .search-box:focus-within {
                transform: scale(1.02);
                box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.18), 0 4px 20px rgba(59, 130, 246, 0.12);
            }

            .fulltext-search-row input { min-width: 100px; font-size: 14px; padding: 10px 14px; }
            .fulltext-search-row button { width: 100%; justify-content: center; padding: 10px 16px; }
            .fulltext-filters { flex-direction: column; align-items: stretch; gap: 6px; }
            .fulltext-filters .group { gap: 6px; flex-wrap: wrap; }

            .ft-group-header { padding: 10px 14px; flex-direction: column; align-items: flex-start; }
            .ft-group-body { padding: 0 14px 12px; }
            .btn-viewer-ft { width: 100%; justify-content: center; padding: 6px 12px; }
            .ft-group-header .right { width: 100%; justify-content: space-between; }

            .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
            .card-preview { height: 190px; }
            .card-content { padding: 12px 14px 14px; }
            .card-title { font-size: 0.85rem; }
            .card-desc { font-size: 0.75rem; -webkit-line-clamp: 1; }
            .card-footer .count { font-size: 0.7rem; }

            .card-tag { bottom: 8px; left: 8px; padding: 2px 10px 2px 8px; font-size: 0.6rem; gap: 3px; border-radius: 16px; }
            .card-tag .tag-icon { font-size: 0.6rem; }
            .card-region { bottom: 8px; right: 8px; padding: 2px 10px 2px 8px; font-size: 0.6rem; gap: 3px; border-radius: 16px; }
            .card-region .region-icon { font-size: 0.6rem; }
            .internal-badge { top: 8px; right: 8px; padding: 2px 10px 2px 8px; font-size: 0.6rem; gap: 3px; border-radius: 20px; }
            .internal-badge .badge-icon { font-size: 0.6rem; }

            .skeleton-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
            .skeleton-card { height: 280px; }
        }
        @media (max-width: 400px) {
            .grid { grid-template-columns: 1fr 1fr; gap: 12px; }
            .card-preview { height: 140px; }
            .skeleton-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
            .skeleton-card { height: 220px; }
            .notice-title { font-size: 0.9rem; }
            .notice-body { font-size: 0.8rem; }
            .stats-total-row { font-size: 0.75rem; }
            .stats-item { font-size: 0.65rem; padding: 1px 6px 1px 4px; }
            .stats-item .cat-icon { font-size: 0.65rem; }
            .stats-item .cat-count { font-size: 0.65rem; }
            .search-box input { font-size: 0.8rem; padding: 7px 10px 7px 2px; }
            .search-box { padding-left: 10px; border-width: 1.8px; }
            .search-icon { font-size: 0.85rem; }

            .card-tag { bottom: 6px; left: 6px; padding: 1px 8px 1px 6px; font-size: 0.5rem; gap: 2px; border-radius: 12px; }
            .card-tag .tag-icon { font-size: 0.5rem; }
            .card-region { bottom: 6px; right: 6px; padding: 1px 8px 1px 6px; font-size: 0.5rem; gap: 2px; border-radius: 12px; }
            .card-region .region-icon { font-size: 0.5rem; }
            .internal-badge { top: 6px; right: 6px; padding: 1px 8px 1px 6px; font-size: 0.5rem; gap: 2px; border-radius: 16px; }
            .internal-badge .badge-icon { font-size: 0.5rem; }
        }