* { box-sizing: border-box; }
        body {
            margin: 0;
            font-family: "Microsoft YaHei", Arial, sans-serif;
            color: #172033;
            background: #eef3f8;
            min-height: 100vh;
        }
        body.theme-dark {
            color: rgba(238, 243, 248, .52);/*---修改背景色，原#eef3f8--*/
            background: #111827;
        }
        body.theme-image {
            color: #17324d;
            background:
                linear-gradient(rgba(238, 243, 248, .12), rgba(238, 243, 248, .12)),/*---修改背景的透明度--*/
                url("https://img.k123.qzz.io/") center center / cover fixed no-repeat;
        }
        header {
            background: #ffffff;
       /*---border-bottom: 1px solid #dbe4ef;修改顶部分界线，solid是实线，dashed是虚线--*/
            position: sticky;
            top: 0;
            z-index: 5;
        }
        body.theme-dark header {
            background: #18212f;
            border-bottom-color: #2c384a;
        }
        body.theme-image header {
            background: rgba(238, 243, 248, .22);/*---修改头部模块的透明度，原255, 255, 255, .58--*/
            backdrop-filter: blur(1px);
        }
        .bar {
            width: min(1180px, calc(100% - 32px));
            margin: 0 auto;
            min-height: 68px;
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 18px;
        }
        h1 { margin: 0; font-size: 24px; color: #17324d; }
        body.theme-dark h1 { color: #f8fafc; }
        nav { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
        nav a, nav button, .button {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-height: 36px;
            padding: 0 13px;
            border-radius: 6px;
            text-decoration: none;
            color: #24415f;
            background: #eaf1f8;
            font-weight: 700;
            border: 0;
            cursor: pointer;
            font-family: inherit;
            font-size: 14px;
        }
        body.theme-dark nav a, body.theme-dark nav button, body.theme-dark .button {
            color: #dbeafe;
            background: #253248;
        }
        nav a.primary, nav button.primary, .primary { background: #1769aa; color: white; }
        body.theme-dark nav a.primary, body.theme-dark nav button.primary, body.theme-dark .primary { background: #2f7fc1; color: white; }
        .nav-stats {
            display: inline-flex;
            align-items: center;
            min-height: 36px;
            padding: 0 12px;
            border-radius: 999px;
            background: #eaf1f8;
            color: #24415f;
            font-size: 13px;
            font-weight: 800;
            white-space: nowrap;
        }
        body.theme-dark .nav-stats {
            color: #dbeafe;
            background: #253248;
        }
        body.theme-image .nav-stats {
            background: rgba(255, 255, 255, .62);
            backdrop-filter: blur(5px);
        }
        body.theme-image .nav-stats1 {
            background: rgba(255, 255, 255, .0002);
            backdrop-filter: blur(1px);
            border-radius: 5px;
        }

        .theme-switch {
            display: inline-flex;
            align-items: center;
            gap: 4px;
            padding: 4px;
            border: 1px dashed #dbe4ef;/*---修改分主题选择框线框--*/
            border-radius: 999px;
            background: rgba(255, 255, 255, .92);
            box-shadow: 0 6px 18px rgba(31, 41, 55, .09);
        }
        body.theme-dark .theme-switch {
            background: #111827;
            border-color: #344156;
            box-shadow: none;
        }
        body.theme-image .theme-switch {
            background: rgba(255, 255, 255, .62);
            backdrop-filter: blur(5px);
        }
        .theme-switch .theme-choice {
            width: 34px;
            min-width: 34px;
            height: 34px;
            min-height: 34px;
            padding: 0;
            border-radius: 50%;
            background: transparent;
            color: #526071;
            font-size: 17px;
            line-height: 1;
        }
        body.theme-dark .theme-switch .theme-choice { color: #cbd5e1; background: transparent; }
        .theme-switch .theme-choice.active {
            background: #198a72;
            color: white;
        }
        .theme-switch .nav-visibility-toggle {
            min-width: 70px;
            width: auto;
            height: 34px;
            min-height: 34px;
            padding: 0 10px;
            border-radius: 999px;
            background: #eaf1f8;
            color: #24415f;
            font-size: 12px;
            white-space: nowrap;
        }
        body.theme-dark .theme-switch .nav-visibility-toggle {
            color: #dbeafe;
            background: #253248;
        }
        .nav-actions {
            display: flex;
            align-items: center;
            gap: 12px;
            flex-wrap: wrap;
        }
        body.nav-actions-hidden .nav-actions { display: none; }
        main { width: min(1180px, calc(100% - 32px)); margin: 26px auto 56px; }
        .guest {
            min-height: calc(100vh - 170px);
            display: grid;
            align-content: center;
            gap: 18px;
        }
        .guest h2 { margin: 0; font-size: clamp(32px, 5vw, 56px); color: #17324d; }
        .guest p { max-width: 720px; margin: 0; line-height: 1.8; color: #526071; font-size: 17px; }
        .guest-actions { display: flex; gap: 12px; flex-wrap: wrap; }
        .content { width: 100%; }
        section.group {
            background: #fbfdff;
       /*---border: 1px dashed #fbfdff;修改分类虚线框，原#dbe4ef--*/
            border-radius: 8px;
            box-shadow: 0 10px 24px rgba(31, 41, 55, .06);
        }
        body.theme-dark section.group {
            background: #18212f;
            border-color: #2c384a;
            box-shadow: none;
        }
        body.theme-image section.group {
            background: rgba(255, 255, 255, .06);/*---修改分类模块的透明度，原0.56--*/
            backdrop-filter: blur(2px);
        }
        h2 { margin: 0 0 14px; font-size: 19px; }
        label { display: block; margin: 12px 0 7px; font-weight: 700; font-size: 14px; }
        input, textarea, select {
            width: 100%;
            border: 1px solid #cbd5e1;
            border-radius: 6px;
            padding: 10px 11px;
            font-size: 14px;
            font-family: inherit;
            background: #fff;
        }
        body.theme-dark input, body.theme-dark textarea, body.theme-dark select {
            color: #e6edf5;
            background: #111827;
            border-color: #344156;
        }
        textarea { min-height: 76px; resize: vertical; }
        button {
            min-height: 38px;
            border: 0;
            border-radius: 6px;
            background: #1769aa;
            color: white;
            padding: 0 14px;
            font-weight: 700;
            cursor: pointer;
        }
        .secondary { background: #64748b; color: white; }
        .danger { background: #c2410c; color: white; }
        .filters {
            display: flex;
            gap: 8px;
            flex-wrap: wrap;
            margin-bottom: 18px;
        }
        .filters a, .filters .filter-sort-item {
            text-decoration: none;
            color: #24415f;
            background: #fff;
            border: 1px solid #dbe4ef;
            border-radius: 999px;
            padding: 8px 12px;
            font-weight: 700;
        }
        body.theme-dark .filters a, body.theme-dark .filters .filter-sort-item {
            color: #dbeafe;
            background: #18212f;
            border-color: #2c384a;
        }
        body.theme-image .filters a, body.theme-image .filters .filter-sort-item {
            background: rgba(255, 255, 255, .58);/*---可修改分类背景的透明度--*/
        }
        body.theme-image .filters a.active, body.theme-image .filters .filter-sort-item.active {
            background: #135f52;
            border-color: #135f52;
            color: #ffffff;
            box-shadow: 0 6px 18px rgba(19, 95, 82, .22);
        }
        .filters a.active, .filters .filter-sort-item.active { background: #17324d; color: white; border-color: #17324d; }
        body.theme-dark .filters a.active, body.theme-dark .filters .filter-sort-item.active { background: #2f7fc1; border-color: #2f7fc1; }
        .filters .filter-sort-item {
            cursor: grab;
            user-select: none;
        }
        .filters .filter-sort-item.dragging { opacity: .45; outline: 2px dashed #1769aa; }
        .group { padding: 18px; margin-bottom: 16px; }
        .links {
            display: grid;
            grid-template-columns: repeat(5, minmax(0, 1fr));
            gap: 10px;
        }
        .bookmark {
            position: relative;
            border: 1px dashed blue;/*---可修改卡片线条，原#e1e8f0--*/
            border-radius: 8px;
            padding: 12px;
            background: #eef3f8;/*---可修改卡片背景，原#fbfdff--*/
            display: flex;
            align-items: center;
            gap: 10px;
            min-width: 0;
            min-height: 70px;
            transition: transform .18s ease, background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
        }
        body.theme-dark .bookmark {
            background: #111827;
            border-color: #344156;
        }
        body.theme-dark .bookmark:hover {
            background: #172236;
            border-color: #3b82c4;
            box-shadow: 0 16px 30px rgba(0, 0, 0, .32);
        }
        body.theme-image .bookmark {
            background: rgba(251, 253, 255, .32);/*---修改卡片背景的透明度，原0.62--*/
        }
        body.theme-image .bookmark:hover {
            background: rgba(232, 247, 244, .76);
            border-color: #5aa898;
            box-shadow: 0 16px 32px rgba(19, 95, 82, .18);
        }
        .bookmark:hover {
            z-index: 8;
            transform: translateY(-3px) scale(1.025);
            background: #f0f7ff;
            border-color: #9cc9f2;
            box-shadow: 0 14px 28px rgba(31, 41, 55, .14);
        }
        .bookmark-icon {
            width: 42px;
            height: 42px;
            flex: 0 0 42px;
            border-radius: 10px;
            background: #eef3f8;
            object-fit: cover;
        }
        body.theme-dark .bookmark-icon { background: #253248; }
        .bookmark-body {
            min-width: 0;
            flex: 1 1 auto;
        }
        .bookmark a.title, .bookmark .url {
            display: block;
            max-width: 100%;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }
        .bookmark a.title {
            color: #1769aa;
            text-decoration: none;
            font-weight: 800;
            font-size: 15px;
            line-height: 1.35;
        }
        body.theme-dark .bookmark a.title { color: #7dc4ff; }
        .bookmark p { margin: 0; color: #667085; font-size: 13px; line-height: 1.55; }
        .bookmark .url { color: #7c8a9a; font-size: 12px; margin-top: 4px; }
        body.theme-dark .bookmark .url, body.theme-dark .bookmark p { color: #9aa8ba; }
        .bookmark-tooltip {
            position: absolute;
            left: 0;
            right: 0;
            top: calc(100% + 6px);
            z-index: 20;
            display: none;
            padding: 9px 10px;
            border: 1px solid #dbe4ef;
            border-radius: 8px;
            background: #fff;
            box-shadow: 0 12px 28px rgba(31, 41, 55, .14);
            color: #344054;
            font-size: 12px;
            line-height: 1.55;
            overflow-wrap: anywhere;
        }
        body.theme-dark .bookmark-tooltip {
            background: #111827;
            border-color: #344156;
            color: #e6edf5;
            box-shadow: 0 12px 28px rgba(0, 0, 0, .28);
        }
        .bookmark:hover .bookmark-tooltip { display: block; }
        .drag-hint {
            display: inline-flex;
            align-items: center;
            min-height: 26px;
            padding: 0 8px;
            border-radius: 999px;
            background: #eaf1f8;
            color: #526071;
            font-size: 12px;
            font-weight: 700;
            cursor: grab;
            user-select: none;
        }
        .sortable-card { cursor: grab; }
        .dragging {
            opacity: .45;
            outline: 2px dashed #1769aa;
        }
        .sort-saving .drag-hint { background: #fff7ed; color: #9a3412; }
        .actions { display: flex; gap: 8px; flex-wrap: wrap; align-self: end; }
        .actions a, .actions button {
            min-height: 32px;
            padding: 0 10px;
            font-size: 13px;
        }
        .alert {
            padding: 12px 14px;
            border-radius: 6px;
            margin: 0 0 14px;
            line-height: 1.5;
        }
        .error { background: #fff1f0; color: #b42318; border: 1px solid #ffd5d2; }
        .success { background: #effbf3; color: #047857; border: 1px solid #bbf7d0; }
        .empty {
            background: #fff;
            border: 1px dashed #c6d2df;
            border-radius: 8px;
            padding: 28px;
            color: #526071;
            line-height: 1.8;
        }
        body.theme-dark .empty {
            color: #cbd5e1;
            background: #18212f;
            border-color: #344156;
        }
        body.theme-image .empty { background: rgba(255, 255, 255, .56); }
        .note-panel {
            display: none;
            background: #fff;
            border: 1px solid #dbe4ef;
            border-radius: 8px;
            box-shadow: 0 10px 24px rgba(31, 41, 55, .06);
            padding: 16px;
            margin-bottom: 18px;
        }
        body.theme-dark .note-panel {
            background: #18212f;
            border-color: #2c384a;
            box-shadow: none;
        }
        body.theme-image .note-panel {
            background: rgba(255, 255, 255, .56);
            backdrop-filter: blur(5px);
        }
        .note-panel.open { display: block; }
        .note-panel textarea {
            min-height: 150px;
            resize: vertical;
            line-height: 1.7;
        }
        .note-panel button { margin-top: 12px; }
        .modal {
            position: fixed;
            inset: 0;
            z-index: 50;
            display: none;
            align-items: center;
            justify-content: center;
            padding: 18px;
            background: rgba(15, 23, 42, .45);
        }
        .modal.open { display: flex; }
        .modal-panel {
            width: min(460px, 100%);
            max-height: calc(100vh - 36px);
            overflow: auto;
            background: #fff;
            border-radius: 8px;
            border: 1px solid #dbe4ef;
            box-shadow: 0 24px 70px rgba(15, 23, 42, .24);
            padding: 20px;
        }
        body.theme-dark .modal-panel {
            background: #18212f;
            border-color: #2c384a;
            color: #e6edf5;
        }
        .modal-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            margin-bottom: 8px;
        }
        .modal-head h2 { margin: 0; }
        .close-btn {
            min-width: 36px;
            width: 36px;
            height: 36px;
            padding: 0;
            border-radius: 50%;
            background: #eaf1f8;
            color: #24415f;
            font-size: 20px;
            line-height: 1;
        }
        body.theme-dark .close-btn {
            background: #253248;
            color: #dbeafe;
        }
        .form-actions {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            margin-top: 16px;
        }
        .form-actions button, .form-actions a { min-height: 38px; }
        .backup-tools {
            display: grid;
            gap: 14px;
            margin-top: 12px;
        }
        .disabled {
            opacity: .55;
            cursor: not-allowed;
            pointer-events: none;
        }
        .site-footer {
            width: min(1180px, calc(100% - 32px));
            margin: -28px auto 28px;
            background: rgba(238, 243, 248, .22);
            text-align: center;
            border-radius: 8px;
            color: black;
            font-size: 13px;
        }

        body.theme-dark .site-footer { color: #9aa8ba; }
        .muted { color: #667085; font-size: 13px; line-height: 1.6; margin: 8px 0 0; }
        @media (max-width: 840px) {
            .bar { display: flex; padding: 15px 0; flex-wrap: wrap; justify-content: space-between; }
            nav { margin-top: 0; margin-left: auto; justify-content: flex-end; }
            body.nav-actions-hidden nav { width: auto; }
            .links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
            .bookmark { padding: 10px; gap: 8px; min-height: 64px; }
            .bookmark-icon { width: 36px; height: 36px; flex-basis: 36px; border-radius: 8px; }
        }
