@charset "utf-8";

/* ==========================================================================
   Theme variables
   ========================================================================== */
:root {
    --body-background-color: #333333;
    --main-text-color: #efefef;
    --text-primary: rgba(255, 255, 255, 0.96);
    --text-secondary: rgba(255, 255, 255, 0.72);
    --text-muted: rgba(255, 255, 255, 0.52);
    --color-primary: #9be7d7;
    --color-primary-strong: #7bddcc;
    --color-accent: #f1d277;
    --color-danger: #ff8f94;
    --glass-surface: rgba(18, 24, 32, 0.34);
    --glass-surface-strong: rgba(18, 24, 32, 0.62);
    --glass-surface-hover: rgba(255, 255, 255, 0.17);
    --glass-border: rgba(255, 255, 255, 0.18);
    --glass-border-strong: rgba(255, 255, 255, 0.28);
    --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.16);
    --shadow-soft: 0 12px 34px rgba(0, 0, 0, 0.18);
    --shadow-panel: 0 24px 70px rgba(0, 0, 0, 0.28);
    --radius-control: 14px;
    --radius-panel: 22px;
    --radius-card: 13px;
    --radius-modal: 22px;
    --surface-card: rgba(255, 255, 255, 0.065);
    --surface-card-hover: rgba(255, 255, 255, 0.095);
    --surface-card-selected: rgba(155, 231, 215, 0.09);
    --surface-control: rgba(8, 12, 18, 0.34);
    --control-height: 44px;
    --space-unit: 8px;
    --motion-fast: 180ms;
    --motion-normal: 260ms;
    --motion-slow: 420ms;
    --motion-ease: cubic-bezier(0.16, 1, 0.3, 1);
    --page-max-width: 1120px;
    --search-max-width: 680px;
    --main-text-form-color: #333333;
    --main-text-form-hover-color: #efefef;
    /* --main-background-color: #ffffff40;
    --main-background-hover-color: #ffffff60;
    --main-background-active-color: #ffffff80; */
    --main-background-color: #00000040;
    --main-background-hover-color: #acacac60;
    --main-background-active-color: #8a8a8a80;
    --main-button-color: #ffffff40;
    --main-button-hover-color: #00000030;
    --main-button-active-color: #00000020;
    --main-input-color: #ffffff30;
    --main-input-text-placeholder-color: #ffffff70;
    --main-text-shadow: 0px 0px 8px #00000066;
    --main-search-shadow: 0 0 20px #0000000d;
    --main-search-hover-shadow: 0 0 20px #00000033;
    --border-bottom-color-hover: #efefef80;
    --border-bottom-color-active: #efefef;
}

/* ==========================================================================
   Fonts and icons
   ========================================================================== */
html[data-sksir-theme="light"] {
    color-scheme: light;
    --body-background-color: #eaf0f4;
    --main-text-color: #1b2a37;
    --text-primary: rgba(20, 35, 48, 0.94);
    --text-secondary: rgba(20, 35, 48, 0.70);
    --text-muted: rgba(20, 35, 48, 0.52);
    --color-primary: #167c73;
    --color-primary-strong: #12675f;
    --color-accent: #a06b12;
    --color-danger: #bd3f49;
    --glass-surface: rgba(255, 255, 255, 0.52);
    --glass-surface-strong: rgba(255, 255, 255, 0.72);
    --glass-surface-hover: rgba(255, 255, 255, 0.86);
    --glass-border: rgba(20, 35, 48, 0.16);
    --glass-border-strong: rgba(20, 35, 48, 0.28);
    --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.78);
    --shadow-soft: 0 12px 34px rgba(38, 56, 71, 0.14);
    --shadow-panel: 0 24px 70px rgba(38, 56, 71, 0.18);
    --surface-card: rgba(255, 255, 255, 0.54);
    --surface-card-hover: rgba(255, 255, 255, 0.72);
    --surface-card-selected: rgba(155, 231, 215, 0.22);
    --surface-control: rgba(255, 255, 255, 0.62);
    --main-text-form-color: #1b2a37;
    --main-text-form-hover-color: #10202c;
    --main-background-color: rgba(255, 255, 255, 0.52);
    --main-background-hover-color: rgba(255, 255, 255, 0.78);
    --main-background-active-color: rgba(214, 230, 235, 0.86);
    --main-button-color: rgba(255, 255, 255, 0.62);
    --main-button-hover-color: rgba(255, 255, 255, 0.82);
    --main-button-active-color: rgba(214, 230, 235, 0.86);
    --main-input-color: rgba(255, 255, 255, 0.68);
    --main-input-text-placeholder-color: rgba(20, 35, 48, 0.52);
    --main-text-shadow: none;
    --main-search-shadow: 0 0 20px rgba(38, 56, 71, 0.08);
    --main-search-hover-shadow: 0 0 20px rgba(38, 56, 71, 0.16);
    --border-bottom-color-hover: rgba(20, 35, 48, 0.42);
    --border-bottom-color-active: #1b2a37;
}

@media (prefers-color-scheme: light) {
    html[data-sksir-theme="system"] {
        color-scheme: light;
        --body-background-color: #eaf0f4;
        --main-text-color: #1b2a37;
        --text-primary: rgba(20, 35, 48, 0.94);
        --text-secondary: rgba(20, 35, 48, 0.70);
        --text-muted: rgba(20, 35, 48, 0.52);
        --color-primary: #167c73;
        --color-primary-strong: #12675f;
        --color-accent: #a06b12;
        --color-danger: #bd3f49;
        --glass-surface: rgba(255, 255, 255, 0.52);
        --glass-surface-strong: rgba(255, 255, 255, 0.72);
        --glass-surface-hover: rgba(255, 255, 255, 0.86);
        --glass-border: rgba(20, 35, 48, 0.16);
        --glass-border-strong: rgba(20, 35, 48, 0.28);
        --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.78);
        --shadow-soft: 0 12px 34px rgba(38, 56, 71, 0.14);
        --shadow-panel: 0 24px 70px rgba(38, 56, 71, 0.18);
        --surface-card: rgba(255, 255, 255, 0.54);
        --surface-card-hover: rgba(255, 255, 255, 0.72);
        --surface-card-selected: rgba(155, 231, 215, 0.22);
        --surface-control: rgba(255, 255, 255, 0.62);
        --main-text-form-color: #1b2a37;
        --main-text-form-hover-color: #10202c;
        --main-background-color: rgba(255, 255, 255, 0.52);
        --main-background-hover-color: rgba(255, 255, 255, 0.78);
        --main-background-active-color: rgba(214, 230, 235, 0.86);
        --main-button-color: rgba(255, 255, 255, 0.62);
        --main-button-hover-color: rgba(255, 255, 255, 0.82);
        --main-button-active-color: rgba(214, 230, 235, 0.86);
        --main-input-color: rgba(255, 255, 255, 0.68);
        --main-input-text-placeholder-color: rgba(20, 35, 48, 0.52);
        --main-text-shadow: none;
        --main-search-shadow: 0 0 20px rgba(38, 56, 71, 0.08);
        --main-search-hover-shadow: 0 0 20px rgba(38, 56, 71, 0.16);
        --border-bottom-color-hover: rgba(20, 35, 48, 0.42);
        --border-bottom-color-active: #1b2a37;
    }
}

/* Keep the bookmark toolbar inside narrow desktop viewports. The default six-row
   panel remains intact; only the toolbar changes from an external pill to an
   in-panel header when there is not enough horizontal room around the panel. */
@media (max-width: 920px) {
    .surface-shell {
        width: calc(100vw - 16px);
    }

    .surface-shell > .mark {
        width: 100%;
    }

    .mark .bookmark-navline {
        top: 8px;
        left: 0;
        width: calc(100% - 16px);
        max-width: none;
        margin: 0 8px;
        transform: none;
    }

    .mark .bookmark-navline > .tab {
        min-width: 0;
        flex: 1 1 auto;
    }

    .mark .bookmark-navline > .bookmark-head {
        min-width: 0;
        max-width: max-content;
    }

    .mark .products {
        padding-top: 68px;
    }
}

/* A tall six-row panel can still start near the top of a short laptop viewport.
   Move only the toolbar into the panel there; keep the desktop panel width. */
@media (min-width: 921px) and (max-height: 920px) {
    .mark .bookmark-navline {
        top: 8px;
        left: 0;
        width: calc(100% - 16px);
        max-width: none;
        margin: 0 8px;
        transform: none;
    }

    .mark .products {
        padding-top: 68px;
    }
}

/* Light bookmark surfaces need their own contrast because the legacy cards were
   tuned for a dark wallpaper and otherwise become nearly borderless. */
html[data-sksir-theme="light"] .mark .bookmark-navline,
html[data-sksir-theme="light"] .mark .category-row,
html[data-sksir-theme="light"] .mark .quick,
html[data-sksir-theme="light"] .mark .quicks,
html[data-sksir-theme="light"] .mark .bookmark-add-card {
    border-color: rgba(19, 35, 46, 0.24);
    background: rgba(255, 255, 255, 0.78);
    color: #13232e;
    box-shadow: 0 10px 28px rgba(38, 56, 71, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.90);
}

html[data-sksir-theme="light"] .mark .bookmark-navline > .tab .tab-item,
html[data-sksir-theme="light"] .mark .bookmark-navline .bookmark-search,
html[data-sksir-theme="light"] .mark .bookmark-navline .status-check-btn,
html[data-sksir-theme="light"] .mark .bookmark-navline #menu.bookmark-settings,
html[data-sksir-theme="light"] .mark .bookmark-navline .bookmark-close {
    border-color: rgba(19, 35, 46, 0.20);
    color: rgba(19, 35, 46, 0.82);
    background: rgba(248, 251, 253, 0.86);
}

html[data-sksir-theme="light"] .mark .bookmark-navline > .tab .tab-item.active {
    border-color: rgba(22, 124, 115, 0.46);
    background: rgba(155, 231, 215, 0.30);
    color: #13232e;
}

html[data-sksir-theme="light"] .mark .quick .quick-title,
html[data-sksir-theme="light"] .mark .quicks .quick-title,
html[data-sksir-theme="light"] .mark .quick .quick-desc,
html[data-sksir-theme="light"] .mark .quicks .quick-desc {
    color: #13232e;
    text-shadow: none;
}

html[data-sksir-theme="light"] .mark .quick .quick-desc,
html[data-sksir-theme="light"] .mark .quicks .quick-desc {
    color: rgba(19, 35, 46, 0.68);
}

@media (prefers-color-scheme: light) {
    html[data-sksir-theme="system"] .mark .bookmark-navline,
    html[data-sksir-theme="system"] .mark .category-row,
    html[data-sksir-theme="system"] .mark .quick,
    html[data-sksir-theme="system"] .mark .quicks,
    html[data-sksir-theme="system"] .mark .bookmark-add-card {
        border-color: rgba(19, 35, 46, 0.24);
        background: rgba(255, 255, 255, 0.78);
        color: #13232e;
        box-shadow: 0 10px 28px rgba(38, 56, 71, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.90);
    }

    html[data-sksir-theme="system"] .mark .bookmark-navline > .tab .tab-item,
    html[data-sksir-theme="system"] .mark .bookmark-navline .bookmark-search,
    html[data-sksir-theme="system"] .mark .bookmark-navline .status-check-btn,
    html[data-sksir-theme="system"] .mark .bookmark-navline #menu.bookmark-settings,
    html[data-sksir-theme="system"] .mark .bookmark-navline .bookmark-close {
        border-color: rgba(19, 35, 46, 0.20);
        color: rgba(19, 35, 46, 0.82);
        background: rgba(248, 251, 253, 0.86);
    }

    html[data-sksir-theme="system"] .mark .bookmark-navline > .tab .tab-item.active {
        border-color: rgba(22, 124, 115, 0.46);
        background: rgba(155, 231, 215, 0.30);
        color: #13232e;
    }

    html[data-sksir-theme="system"] .mark .quick .quick-title,
    html[data-sksir-theme="system"] .mark .quicks .quick-title,
    html[data-sksir-theme="system"] .mark .quick .quick-desc,
    html[data-sksir-theme="system"] .mark .quicks .quick-desc {
        color: #13232e;
        text-shadow: none;
    }

    html[data-sksir-theme="system"] .mark .quick .quick-desc,
    html[data-sksir-theme="system"] .mark .quicks .quick-desc {
        color: rgba(19, 35, 46, 0.68);
    }
}

html[data-sksir-theme="light"] .bg-all {
    background:
        radial-gradient(circle at 50% 36%, rgba(22, 124, 115, 0.12), transparent 32%),
        radial-gradient(circle at 12% 100%, rgba(160, 107, 18, 0.10), transparent 36%),
        #eaf0f4;
}

html[data-sksir-theme="light"] .cover {
    background-image: radial-gradient(rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.12) 100%), radial-gradient(rgba(255, 255, 255, 0) 33%, rgba(255, 255, 255, 0.20) 166%);
}

html[data-sksir-theme="light"] .all-search,
html[data-sksir-theme="light"] .search-engine,
html[data-sksir-theme="light"] .quick-launch-context-menu {
    border-color: rgba(20, 35, 48, 0.16);
    background: rgba(248, 251, 253, 0.72);
    box-shadow: 0 14px 34px rgba(38, 56, 71, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

html[data-sksir-extension][data-sksir-theme="light"] body:not(.onsearch) .all-search,
html[data-sksir-extension][data-sksir-theme="light"] .all-search:not(.sksir-extension-searching),
html[data-sksir-extension][data-sksir-theme="light"] .search-engine,
html[data-sksir-extension][data-sksir-theme="light"] .quick-launch-context-menu {
    border-color: rgba(20, 35, 48, 0.16);
    background: rgba(248, 251, 253, 0.72) !important;
    box-shadow: 0 14px 34px rgba(38, 56, 71, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

html[data-sksir-theme="light"] #icon-se,
html[data-sksir-theme="light"] #icon-sou,
html[data-sksir-theme="light"] .quick-launch-context-name,
html[data-sksir-theme="light"] .quick-launch-context-menu button {
    color: rgba(20, 35, 48, 0.78);
}

@media (prefers-color-scheme: light) {
    html[data-sksir-theme="system"] .bg-all {
        background:
            radial-gradient(circle at 50% 36%, rgba(22, 124, 115, 0.12), transparent 32%),
            radial-gradient(circle at 12% 100%, rgba(160, 107, 18, 0.10), transparent 36%),
            #eaf0f4;
    }

    html[data-sksir-theme="system"] .cover {
        background-image: radial-gradient(rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.12) 100%), radial-gradient(rgba(255, 255, 255, 0) 33%, rgba(255, 255, 255, 0.20) 166%);
    }

    html[data-sksir-theme="system"] .all-search,
    html[data-sksir-theme="system"] .search-engine,
    html[data-sksir-theme="system"] .quick-launch-context-menu {
        border-color: rgba(20, 35, 48, 0.16);
        background: rgba(248, 251, 253, 0.72);
        box-shadow: 0 14px 34px rgba(38, 56, 71, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.82);
    }

    html[data-sksir-extension][data-sksir-theme="system"] body:not(.onsearch) .all-search,
    html[data-sksir-extension][data-sksir-theme="system"] .all-search:not(.sksir-extension-searching),
    html[data-sksir-extension][data-sksir-theme="system"] .search-engine,
    html[data-sksir-extension][data-sksir-theme="system"] .quick-launch-context-menu {
        border-color: rgba(20, 35, 48, 0.16);
        background: rgba(248, 251, 253, 0.72) !important;
        box-shadow: 0 14px 34px rgba(38, 56, 71, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.82);
    }

    html[data-sksir-theme="system"] #icon-se,
    html[data-sksir-theme="system"] #icon-sou,
    html[data-sksir-theme="system"] .quick-launch-context-name,
    html[data-sksir-theme="system"] .quick-launch-context-menu button {
        color: rgba(20, 35, 48, 0.78);
    }
}

@font-face {
    font-family: "iconfont";
    src:
        url("../font/iconfont.woff2?v=2026.08.16.1") format("woff2"),
        url("../font/iconfont.woff?v=2026.08.16.1") format("woff"),
        url("../font/iconfont.ttf?v=2026.08.16.1") format("truetype");
    font-display: swap;
}

@font-face {
    font-family: "MiSans UI";
    src: url("../font/MiSans-UI.woff2?v=2026.08.16.1") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

.iconfont {
    font-family: "iconfont" !important;
    font-size: 16px;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.icon-tianjia-:before {
    content: "\e643";
}

.icon-taobao:before {
    content: "\e755";
}

.icon-jingdong:before {
    content: "\e618";
}

.icon-xinlangweibo:before {
    content: "\e601";
}

.icon-zhihu:before {
    content: "\e60a";
}

.icon-github:before {
    content: "\e691";
}

.icon-delete:before {
    content: "\e94d";
}

.icon-home:before {
    content: "\e964";
}

.icon-xiugai:before {
    content: "\e626";
}

.icon-bilibilidonghua:before {
    content: "\e8b1";
}

.icon-wangluo:before {
    content: "\e600";
}

.icon-sougousousuo:before {
    content: "\e685";
}

.icon-360sousuo:before {
    content: "\e64d";
}

.icon-baidu:before {
    content: "\eb49";
}

.icon-bing:before {
    content: "\eb4c";
}

.icon-google:before {
    content: "\ebaa";
}

.icon-shezhi:before {
    content: "\e634";
}

.icon-sousuo:before {
    content: "\e635";
}

/* ==========================================================================
   Base
   ========================================================================== */
html,
body {
    width: 100%;
    height: 100%;
    margin: 0;
    background-color: var(--body-background-color);
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    user-select: none;
    font-family: "MiSans UI", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

input,
button,
textarea,
select {
    font-family: inherit;
}

*,
a,
p {
    text-decoration: none;
    transition: 0.3s;
    color: var(--main-text-color);
    user-select: none;
}

section {
    display: block;
    position: fixed;
    width: 100%;
    height: 100%;
    min-height: 600px;
}

.noclickn {
    pointer-events: none;
}

/*背景*/
/* ==========================================================================
   First screen and background
   ========================================================================== */

.bg-all {
    z-index: 0;
    position: absolute;
    top: calc(0px + 0px);
    left: 0;
    width: 100%;
    height: calc(100% - 0px);
    background:
        radial-gradient(circle at 50% 36%, rgba(155, 231, 215, 0.08), transparent 32%),
        radial-gradient(circle at 12% 100%, rgba(241, 210, 119, 0.07), transparent 36%),
        #11171f;
    transition: .25s;
}

#bg {
    transform: scale(1);
    filter: blur(0);
    opacity: 0;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity .3s ease, transform .25s, filter .25s;
    backface-visibility: hidden;
}

#bg.is-loaded {
    opacity: 1;
}

html.is-booting #bg.is-loaded {
    opacity: 1;
    transition: none;
}

img.error {
    display: none;
}

.cover {
    opacity: 1;
    position: fixed;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(0, 0, 0, 0) 0, rgba(0, 0, 0, .5) 100%), radial-gradient(rgba(0, 0, 0, 0) 33%, rgba(0, 0, 0, .3) 166%);
    transition: .25s;
}

/*总布局*/
#content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.con {
    width: 100%;
    max-width: var(--page-max-width);
    min-height: 320px;
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    padding: 24px;
    box-sizing: border-box;
}

.sou {
    max-width: var(--search-max-width);
    width: min(var(--search-max-width), calc(100vw - 60px));
    position: relative;
    z-index: 2;
    /* transform: translateY(-150%); */
}

@keyframes fade {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadenum {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0;
    }
}

@keyframes bootLoaderSpin {
    to {
        transform: translate3d(-50%, -50%, 0) rotate(360deg);
    }
}

@keyframes bootLoaderPulse {
    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(155, 231, 215, 0.0), 0 0 26px rgba(155, 231, 215, 0.20);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(155, 231, 215, 0.08), 0 0 34px rgba(241, 210, 119, 0.22);
    }
}

html.is-booting::before,
html.is-booting::after {
    content: "";
    position: fixed;
    pointer-events: none;
    opacity: 1;
    visibility: visible;
    transition: opacity 260ms cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 260ms;
}

html.is-booting::before {
    z-index: 999998;
    inset: 0;
    background:
        radial-gradient(circle at 50% 48%, rgba(155, 231, 215, 0.12), transparent 22%),
        radial-gradient(circle at 50% 55%, rgba(241, 210, 119, 0.10), transparent 26%),
        linear-gradient(180deg, rgba(28, 34, 42, 0.96), rgba(16, 20, 26, 0.94)),
        var(--body-background-color);
}

html.is-booting::after {
    z-index: 999999;
    top: 50%;
    left: 50%;
    width: 42px;
    height: 42px;
    margin: 0;
    border-radius: 50%;
    background:
        conic-gradient(from 90deg, rgba(155, 231, 215, 0.08), rgba(155, 231, 215, 0.95), rgba(241, 210, 119, 0.88), rgba(255, 255, 255, 0.16));
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 4px), #000 calc(100% - 3px));
    transform: translate3d(-50%, -50%, 0);
    animation: bootLoaderSpin 960ms linear infinite, bootLoaderPulse 1600ms ease-in-out infinite;
}

html.is-booting.is-first-screen-ready::before,
html.is-booting.is-first-screen-ready::after {
    opacity: 0;
    visibility: hidden;
}

html.perf-lite.is-booting::before,
html.perf-lite.is-booting::after {
    transition-duration: 120ms;
}

html.perf-lite.is-booting::after {
    animation: none;
}

/* .box .sou {
    display: none;
} */

.box .all-search {
    opacity: 0;
    transition: 0.3s;
}

/*
搜索框点击后更改样式
*/

/*搜索框*/
/* ==========================================================================
   Search
   ========================================================================== */

.onsearch .all-search {
    border-color: rgba(255, 255, 255, 0.74);
    background-color: rgba(245, 245, 245, 0.90);
    box-shadow:
        0 14px 34px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.90);
    -webkit-backdrop-filter: blur(16px) saturate(1.08);
    backdrop-filter: blur(16px) saturate(1.08);
    transform: translateY(-140%);
    transition: ease 0.3s !important;
    width: 100%;
}

/*背景模糊*/
.onsearch #bg {
    transform: scale(1.08) !important;
    filter: blur(10px) !important;
    transition: ease 0.3s !important;
}

/*搜索引擎按钮*/
.onsearch #icon-se {
    color: var(--main-text-form-color) !important;
    transition: ease 0.5s;
    display: block;
}

/*搜索按钮*/
.onsearch #icon-sou {
    color: var(--main-text-form-color) !important;
    transition: ease 0.5s;
    display: block;
}

/* 搜索时让出输入区域；面板打开时仅淡出，避免与面板位移动画叠加。 */
.onsearch .tool-all {
    --time-block-offset: -210%;
}

#content.bookmarks-open .tool-all,
#content.setting-open .tool-all {
    opacity: 0;
    transform: translate3d(0, var(--time-block-offset), 0) scale(0.94);
    pointer-events: none;
}

.quick-launch {
    position: absolute;
    top: 43px;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: calc(var(--space-unit) + 2px);
    min-height: 36px;
    max-width: 100%;
    padding: 12px 8px 0;
    box-sizing: border-box;
    flex-wrap: wrap;
    row-gap: 8px;
    transition: opacity var(--motion-fast) ease, transform var(--motion-normal) var(--motion-ease);
}

.quick-launch[hidden] {
    display: none;
}

.quick-launch-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    padding: 0;
    border: 1px solid var(--glass-border);
    border-radius: 11px;
    background: var(--glass-surface-strong);
    box-shadow: var(--glass-highlight), 0 8px 22px rgba(0, 0, 0, 0.16);
    cursor: grab;
    touch-action: none;
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform;
    -webkit-backdrop-filter: blur(12px) saturate(1.08);
    backdrop-filter: blur(12px) saturate(1.08);
    transition:
        transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
        background-color 160ms ease,
        border-color 160ms ease;
}

.quick-launch-label {
    position: absolute;
    top: calc(100% + 9px);
    bottom: auto;
    left: 50%;
    z-index: 6;
    display: block;
    width: max-content;
    max-width: min(150px, 42vw);
    padding: 4px 8px;
    overflow: hidden;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 8px;
    background: rgba(16, 22, 30, 0.76);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(14px) saturate(1.08);
    backdrop-filter: blur(14px) saturate(1.08);
    color: rgba(248, 251, 255, 0.90);
    font-size: 0.68rem;
    font-weight: 560;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, -3px) scale(0.96);
    transform-origin: center top;
    transition: opacity 150ms ease, transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.quick-launch-item:hover {
    border-color: var(--glass-border-strong);
    background: var(--glass-surface-hover);
    z-index: 5;
    transform: translateZ(0) scale(1.08);
}

.quick-launch-item:hover .quick-launch-label,
.quick-launch-item:focus-visible .quick-launch-label {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
}

.quick-launch-item:active,
.quick-launch-item.is-dragging {
    cursor: grabbing;
}

.quick-launch-item.is-dragging {
    position: fixed;
    top: -100px;
    left: -100px;
    z-index: -1;
    border-style: dashed;
    border-color: rgba(155, 231, 215, 0.84);
    background: rgba(155, 231, 215, 0.10);
    box-shadow: 0 0 0 3px rgba(155, 231, 215, 0.10);
    transform: scale(0.92);
    opacity: 0.28;
}

.quick-launch-item.just-dropped {
    animation: quickLaunchDrop 0.3s var(--motion-ease);
}

.quick-launch.is-reordering .quick-launch-item:not(.is-dragging) {
    border-color: rgba(255, 255, 255, 0.24);
}

.quick-launch-add {
    display: grid;
    width: 36px;
    height: 36px;
    padding: 0;
    flex: 0 0 36px;
    place-items: center;
    border: 1px dashed rgba(255, 255, 255, 0.34);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.055);
    color: rgba(255, 255, 255, 0.78);
    cursor: pointer;
    transition: transform var(--motion-fast) var(--motion-ease), background-color var(--motion-fast) ease,
        border-color var(--motion-fast) ease;
}

.quick-launch-add:hover {
    border-style: solid;
    border-color: rgba(155, 231, 215, 0.62);
    background: rgba(155, 231, 215, 0.14);
    color: #dffff8;
    transform: translateY(-2px);
}

.quick-launch-add:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.82);
    outline-offset: 3px;
}

.quick-launch-add svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.quick-launch-context-menu {
    position: fixed;
    z-index: 2147481500;
    width: 188px;
    padding: 7px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    background: rgba(18, 25, 34, 0.88);
    box-shadow: 0 16px 42px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.10);
    -webkit-backdrop-filter: blur(22px) saturate(1.12);
    backdrop-filter: blur(22px) saturate(1.12);
    opacity: 0;
    transform: translateY(4px) scale(0.96);
    transform-origin: top left;
    transition: opacity 0.18s ease, transform 0.2s var(--motion-ease);
}

.quick-launch-context-menu[hidden] {
    display: none;
}

.quick-launch-context-menu.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.quick-launch-context-name {
    display: block;
    padding: 5px 9px 7px;
    overflow: hidden;
    color: rgba(232, 239, 247, 0.58);
    font-size: 0.72rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quick-launch-context-delete {
    width: 100%;
    min-height: 36px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: rgba(255, 104, 112, 0.09);
    color: rgba(255, 206, 210, 0.94);
    font-size: 0.82rem;
    font-weight: 650;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease, opacity 0.16s ease;
}

.quick-launch-context-delete:hover,
.quick-launch-context-delete:focus-visible {
    border-color: rgba(255, 138, 145, 0.22);
    background: rgba(255, 104, 112, 0.17);
    outline: none;
}

.quick-launch-context-delete:active {
    transform: scale(0.98);
}

.quick-launch-context-delete:disabled {
    opacity: 0.48;
    cursor: not-allowed;
    transform: none;
}

.quick-launch-drag-ghost {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2147483000;
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(155, 231, 215, 0.72);
    border-radius: 13px;
    background: rgba(20, 28, 36, 0.92);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38), 0 0 0 4px rgba(155, 231, 215, 0.12);
    pointer-events: none;
    transform: translate3d(-100px, -100px, 0);
    transition: none;
    will-change: transform;
    contain: layout style;
}

.quick-launch-drag-ghost img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.quick-launch-drag-ghost span {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    max-width: 140px;
    padding: 5px 9px;
    overflow: hidden;
    border-radius: 7px;
    background: rgba(8, 12, 18, 0.94);
    color: #fff;
    font-size: 0.74rem;
    text-overflow: ellipsis;
    white-space: nowrap;
    transform: translateX(-50%);
}

.quick-launch-drop-placeholder {
    display: block;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    box-sizing: border-box;
    border: 1px dashed rgba(155, 231, 215, 0.86);
    border-radius: 11px;
    background: rgba(155, 231, 215, 0.10);
    box-shadow: 0 0 0 3px rgba(155, 231, 215, 0.10);
}

@keyframes quickLaunchDrop {
    0% { transform: scale(0.86); }
    55% { transform: scale(1.12); }
    100% { transform: scale(1); }
}

.quick-launch-item img {
    position: absolute;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    object-fit: contain;
    opacity: 0;
    pointer-events: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    transform: scale(0.88);
    transition: opacity 160ms ease, filter 180ms ease,
        transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.quick-launch-icon-fallback {
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: rgba(235, 252, 248, 0.92);
    font-size: 0.7rem;
    font-weight: 720;
    line-height: 1;
    opacity: 0.95;
    pointer-events: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    transition: opacity 140ms ease, filter 180ms ease,
        transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.quick-launch-item.is-icon-ready img {
    opacity: 0.95;
    transform: scale(1);
}

@media (hover: hover) {
    .quick-launch-item:hover img,
    .quick-launch-item:hover .quick-launch-icon-fallback {
        filter: brightness(1.1);
        opacity: 1;
    }
}

.quick-launch-item.is-icon-ready .quick-launch-icon-fallback {
    opacity: 0;
    transform: scale(0.82);
}

.onsearch .quick-launch,
.box .quick-launch {
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
}


/*时间*/
.tool-all {
    --time-block-offset: -120%;
    --time-block-height: 100px;
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: var(--time-block-height);
    transform: translate3d(0, var(--time-block-offset), 0);
    z-index: 3;
    opacity: 1;
    transition: transform 0.28s var(--motion-ease), opacity 0.18s ease;
    will-change: transform, opacity;
    backface-visibility: hidden;
}

.time {
    color: var(--main-text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

#point {
    margin: 0px 4px;
    animation: fadenum 2s infinite;
}

#time_text {
    font-size: 3rem;
    line-height: 1.1;
    margin: 6px 0px;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.035em;
    text-shadow: var(--main-text-shadow);
    transition: transform var(--motion-fast) var(--motion-ease), opacity var(--motion-fast) ease;
}

#time_text:hover {
    cursor: pointer;
    transition: 0.2s;
    transform: scale(1.08);
}

#time_text:active {
    transition: 0.2s;
    opacity: 0.6;
    transform: scale(1.02);
}

#day {
    font-size: 1.15rem;
    line-height: 1.2;
    color: var(--text-secondary);
    margin: 4px 0px;
    text-shadow: var(--main-text-shadow);
    letter-spacing: 0.04em;
}


/*搜索框*/
.search,
.wd,
.s {
    padding: 0;
    margin: 0;
    border: none;
    outline: none;
    background: none;
    display: flex;
    justify-content: center;
}

.wd::-webkit-input-placeholder {
    letter-spacing: 2px;
    font-size: 1.05rem;
}

.all-search {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    width: 70%;
    height: 46px;
    border-radius: 999px;
    color: var(--main-text-color);
    border: 1px solid rgba(255, 255, 255, 0.20);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035)),
        rgba(14, 20, 28, 0.34);
    box-shadow:
        0 14px 34px rgba(0, 0, 0, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 -1px 0 rgba(0, 0, 0, 0.10);
    -webkit-backdrop-filter: blur(18px) saturate(1.22);
    backdrop-filter: blur(18px) saturate(1.22);
    transform: translateY(0);
    overflow: hidden;
    transition:
        transform var(--motion-normal) ease,
        width var(--motion-slow) var(--motion-ease),
        background-color var(--motion-fast) ease,
        border-color var(--motion-fast) ease,
        box-shadow var(--motion-fast) ease;
}

body:not(.onsearch) .all-search:hover {
    border-color: rgba(255, 255, 255, 0.34);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.045)),
        rgba(16, 23, 31, 0.42);
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.24),
        inset 0 -1px 0 rgba(0, 0, 0, 0.14);
}

.con .sou form .wd {
    width: 100%;
    height: 100%;
    line-height: 100%;
    text-indent: 4px;
    font-size: 1.25rem;
    color: var(--main-text-form-color);
    -webkit-user-select: text;
    user-select: text;
    /* background-color: transparent; */
}

.sou form .se,
.sou form .s {
    width: 40px;
    height: 40px;
    display: flex;
    padding: 10px;
    cursor: pointer;
    justify-content: center;
    align-items: center;
}

#icon-se,
#icon-sou {
    font-size: 1.25rem;
    color: #efefef;
    display: none;
}

.sou form .se {
    transition: 0.3s;
    border-radius: 0px 30px 30px 0px;
}

.sou form .se:hover {
    transition: 0.3s;
    background: var(--main-background-color);
    border-radius: 0px 30px 30px 0px;
}

.sou-button {
    transition: 0.3s;
    border-radius: 30px 0px 0px 30px;
}

.sou-button:hover {
    transition: 0.3s;
    background: var(--main-background-color);
    border-radius: 30px 0px 0px 30px;
}

.all-search input::-webkit-input-placeholder {
    color: var(--main-text-color);
    text-align: center;
    opacity: 1;
    transition: opacity 0.12s ease;
}

.all-search input::-moz-placeholder {
    color: var(--main-text-color);
    text-align: center;
    opacity: 1;
    transition: opacity 0.12s ease;
}

.all-search input:-ms-input-placeholder {
    color: var(--main-text-color);
    text-align: center;
    opacity: 1;
    transition: opacity 0.12s ease;
}

.all-search input::placeholder {
    color: var(--main-text-color);
    text-align: center;
    opacity: 1;
    transition: opacity 0.12s ease;
}

.onsearch .all-search input::-webkit-input-placeholder,
.onsearch .all-search input::-moz-placeholder,
.onsearch .all-search input:-ms-input-placeholder,
.onsearch .all-search input::placeholder {
    opacity: 0;
}

/* Keep the standards-based selector separate: an unsupported legacy
   placeholder pseudo-element can invalidate a comma-separated selector list. */
.onsearch .all-search input::placeholder {
    color: transparent;
    opacity: 0;
}

/*切换搜索引擎*/
.search-engine {
    position: absolute;
    left: 0;
    top: auto;
    box-sizing: border-box;
    padding: 8px;
    color: var(--main-text-color);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    background: rgba(17, 23, 31, 0.84);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.28), var(--glass-highlight);
    -webkit-backdrop-filter: blur(18px) saturate(1.12);
    backdrop-filter: blur(18px) saturate(1.12);
    display: none;
    z-index: 999;
    transform-origin: top center;
}

.search-engine.is-visible {
    animation: searchEnginePanelIn 0.2s var(--motion-ease) both;
}

.search-engine.is-closing {
    pointer-events: none;
    animation: searchEnginePanelOut 0.14s ease both;
}

@keyframes searchEnginePanelIn {
    from {
        opacity: 0;
        transform: translateY(-6px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes searchEnginePanelOut {
    from {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
    to {
        opacity: 0;
        transform: translateY(-4px) scale(0.99);
    }
}

.search-engine-list {
    display: flex;
    justify-content: flex-start;
    gap: 6px;
    width: 100%;
    flex-wrap: wrap;
    max-height: 180px;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(226, 237, 248, 0.28) transparent;
}

.se-li {
    flex: 1 1 calc(25% - 6px);
    min-width: calc(25% - 6px);
    max-width: calc(25% - 5px);
    min-height: 38px;
    box-sizing: border-box;
    padding: 7px 6px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.045);
    transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.se-li:hover {
    cursor: pointer;
    border-color: rgba(217, 230, 244, 0.18);
    background-color: rgba(130, 154, 184, 0.24);
    transform: translateY(-1px);
}

.se-li:active {
    transform: translateY(0) scale(0.98);
}

.se-li-text {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
}

.se-li-text span {
    margin-left: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

}

/*搜索建议*/
#keywords {
    position: absolute;
    left: 0;
    top: auto;
    width: auto;
    max-height: min(240px, 38vh);
    overflow-y: auto;
    box-sizing: border-box;
    padding: 7px;
    font-size: 0.88rem;
    color: var(--main-text-color);
    display: none;
    z-index: 999;
    scrollbar-width: thin;
    scrollbar-color: rgba(226, 237, 248, 0.28) transparent;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    background: rgba(17, 23, 31, 0.82);
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.28), var(--glass-highlight);
    -webkit-backdrop-filter: blur(18px) saturate(1.12);
    backdrop-filter: blur(18px) saturate(1.12);
    animation: keywordPanelIn 0.18s var(--motion-ease) both;
    transform-origin: top center;
}

#keywords::-webkit-scrollbar {
    width: 5px;
}

#keywords::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(226, 237, 248, 0.28);
}

@keyframes keywordPanelIn {
    from {
        opacity: 0;
        transform: translateY(-5px) scale(0.99);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.keyword {
    min-height: 36px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-sizing: border-box;
    padding: 0 11px;
    border-radius: 10px;
    color: rgba(236, 242, 248, 0.84);
    background: transparent;
    transition: background 0.16s ease, color 0.16s ease;
    animation: none;
}

.keyword i {
    flex: 0 0 auto;
    margin-right: 6px;
    font-size: 0.92rem;
    opacity: 0.72;
}

.keyword-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.keyword-meta {
    min-width: 0;
    margin-left: auto;
    padding-left: 12px;
    overflow: hidden;
    color: rgba(220, 230, 240, 0.54);
    font-size: 0.76rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.keyword-nav > i {
    color: rgba(186, 215, 245, 0.9);
}

.keyword-status {
    min-height: 28px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    color: rgba(220, 230, 240, 0.58);
    font-size: 0.76rem;
    pointer-events: none;
}

.keyword:hover,
.keyword.choose {
    cursor: pointer;
    text-indent: 0;
    color: #ffffff;
    background: rgba(130, 154, 184, 0.24);
}

/*书签及设置*/
/* ==========================================================================
   Bookmarks and settings panels
   ========================================================================== */

.mark,
.set {
    flex-direction: column;
    align-items: center;
    background: var(--glass-surface-strong);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-panel);
    box-shadow: var(--shadow-panel), var(--glass-highlight);
    -webkit-backdrop-filter: blur(20px) saturate(1.12);
    backdrop-filter: blur(20px) saturate(1.12);
    height: 500px;
    max-height: 500px;
    width: 80%;
    max-width: 1000px;
    position: absolute;
    margin-top: 200px;
    z-index: 2000;
    animation: fade 0.75s;
}

.mark {
    isolation: isolate;
    overflow: hidden;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.08);
    animation: none;
    width: min(1080px, calc(100vw - 64px));
    height: min(680px, calc(100vh - 96px));
    max-width: 1080px;
    max-height: 680px;
    margin-top: 0;
    opacity: 0;
    filter: blur(6px);
    transform: scale(0.965);
    transform-origin: center center;
    transition:
        opacity 0.28s ease,
        filter 0.28s ease,
        transform 0.32s var(--motion-ease);
    will-change: opacity, filter, transform;
}

.mark::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    background:
        linear-gradient(rgba(7, 11, 16, 0.12), rgba(7, 11, 16, 0.12)),
        var(--main-background-color);
    opacity: 1;
    transform: none;
    transition: none;
    pointer-events: none;
}

.mark > * {
    position: relative;
    z-index: 1;
}

.mark.is-visible {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
    pointer-events: auto;
}

.mark.is-visible::before {
    opacity: 1;
    transform: none;
}

.mark.is-visible .products .mainCont.selected .quick-all,
.mark.is-visible .products .mainCont.selected .quick-alls,
.mark.is-visible .products .mainCont.selected .quick-jl {
    animation: navContentIn 0.28s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.bookmark-head {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    min-height: 54px;
    padding: 8px 14px 6px;
    box-sizing: border-box;
}

.bookmark-head-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.bookmark-search {
    display: flex;
    align-items: center;
    width: min(240px, 30vw);
    height: 36px;
    padding: 0 12px;
    gap: 8px;
    border: 1px solid var(--glass-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
}

.bookmark-search i {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.bookmark-search input {
    width: 100%;
    min-width: 0;
    height: 100%;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text-primary);
    font-size: 16px;
    -webkit-user-select: text;
    user-select: text;
}

.bookmark-search input::placeholder {
    color: var(--text-muted);
}

.bookmark-search:focus-within {
    border-color: rgba(155, 231, 215, 0.58);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(155, 231, 215, 0.12);
}

.bookmark-close {
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.bookmark-close:hover {
    border-color: var(--glass-border-strong);
    background: var(--glass-surface-hover);
}

.bookmark-close:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.82);
    outline-offset: 2px;
}

.bookmark-empty {
    position: absolute;
    inset: 52% 20px auto;
    z-index: 4;
    color: var(--text-secondary);
    text-align: center;
    pointer-events: none;
}

.bookmark-loading {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.mark.is-loading [data-nav-items],
.mark.is-loading .passcode {
    opacity: 0;
    transition: opacity 0.16s ease;
}

.mark:not(.is-loading) [data-nav-items],
.mark:not(.is-loading) .passcode {
    opacity: 1;
    transition: opacity 0.22s ease;
}

@keyframes navContentIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mark .tab,
.set .tabs {
    height: 36px;
    min-height: 36px;
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin-bottom: 8px;
    gap: 10px;
    padding: 0 12px;
    box-sizing: border-box;
    border: 0;
    border-radius: 8px;
    background: transparent;
    box-shadow: inset 0 -1px 0 rgba(232, 239, 247, 0.14);
    overflow: visible;
}

.mark .tab {
    height: 44px;
    min-height: 44px;
    justify-content: flex-start;
    margin-bottom: 10px;
    gap: 18px;
    padding: 0 18px;
}

/* 只有没有分类行的 mainCont 才加顶部间距 */
.products .mainCont:not(:has(.category-row)) {
    margin-top: 6px;
}

.set .tabs {
    margin-bottom: 0px !important;
}

.mark .tab .tab-item,
.set .tabs .tab-items {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    width: 100%;
    height: 100%;
    padding: 0 2px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: 0.82rem;
    font-weight: 560;
    color: rgba(232, 239, 247, 0.62);
    border: 0;
    border-radius: 8px;
    background: transparent;
    box-shadow: none;
    transform: none;
    transition: color 0.18s ease;
}

.mark .tab .tab-item {
    flex: 0 0 auto;
    width: auto;
    min-width: 88px;
    padding: 0 18px;
    font-size: 1rem;
    font-weight: 600;
}

.mark .tab .tab-item::after,
.set .tabs .tab-items::after {
    content: "";
    position: absolute;
    left: 14%;
    right: 14%;
    bottom: 0;
    height: 2px;
    border-radius: 999px;
    background: #f7fbff;
    opacity: 0;
    transform: scaleX(0.45);
    transform-origin: center;
    transition: opacity 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.mark .tab .tab-item:hover,
.set .tabs .tab-items:hover {
    cursor: pointer;
    color: #ffffff;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    transform: none;
}

.mark .tab .tab-item:hover::after,
.set .tabs .tab-items:hover::after {
    opacity: 0.55;
    transform: scaleX(0.75);
}

.mark .tab .tab-item.active,
.set .tabs .tab-items.actives {
    color: #ffffff;
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    font-size: 0.85rem;
    font-weight: 700;
    transform: none;
}

.mark .tab .tab-item.active {
    font-size: 1.04rem;
    font-weight: 720;
}

.mark .tab .tab-item.active::after,
.set .tabs .tab-items.actives::after {
    opacity: 1;
    transform: scaleX(1);
    background: linear-gradient(90deg, #9be7d7, #f1d277);
}

.products,
.productss {
    width: 100%;
    height: 100%;
}

.mark .products {
    min-height: 0;
    flex: 1 1 auto;
}

.products .mainCont,
.productss .mainConts {
    display: none;
    width: 100%;
    /* overflow: auto; */
    flex-wrap: wrap;
    animation: fade 0.5s;
}

.products .mainCont:has(.category-row) {
    animation: none;
}

.products .mainCont.selected,
.productss .mainConts.selected {
    display: flex;
}

/*快捷方式*/
/* ==========================================================================
   Shortcut cards
   ========================================================================== */

.quick-all,
.quick-alls {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: flex-start;
    width: 100%;
    margin: 0px 20px 20px 20px;
    height: calc(100% - 50px);
    min-height: 0;
    overflow: auto;
}

.quick,
.quicks {
    flex: 1;
    min-height: 48px;
    background: var(--main-background-color);
    cursor: pointer;
    border-radius: 8px;
    width: 18%;
    min-width: 18%;
    max-width: 18%;
    margin: 0% 1% 2% 1%;
    transition: 0.3s;
    display: flex;
    flex-direction: column; /* 新增，让内容垂直排列 */
    justify-content: flex-start; /* 新增，内容顶部对齐 */
}

.quick:hover,
.quicks:hover {
    transition: 0.3s;
    background: var(--main-background-hover-color);
}

.quick:active,
.quicks:active {
    transform: scale(0.95);
    transition: 0.3s;
    background: var(--main-background-active-color);
}

.quick a,
.quicks a {
    width: 100%;
    height: auto; /* 修改为 auto 以适应内容高度 */
    display: flex;
    margin: 10px 0px 8px 0px;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
/*奖励快捷方式*/
.quick,
.quicks {
    position: relative;
    isolation: isolate;
    box-sizing: border-box;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.035)), var(--main-background-color);
    border: 1px solid rgba(255, 255, 255, 0.11);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 8px 18px rgba(0, 0, 0, 0.12);
    transition: background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.quick:hover,
.quicks:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.20), rgba(255, 255, 255, 0.07)), var(--main-background-hover-color);
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 12px 26px rgba(0, 0, 0, 0.16);
    transform: translateY(-2px);
}

.quick:active,
.quicks:active {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05)), var(--main-background-active-color);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 6px 14px rgba(0, 0, 0, 0.12);
    transform: translateY(0);
}

.quick a,
.quicks a {
    min-width: 0;
    max-width: 100%;
    margin: 10px 0px 6px 0px;
    padding: 0 18px 0 12px;
    box-sizing: border-box;
    gap: 6px;
    line-height: 1.25;
    font-size: 0.92rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.94);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.20);
}

.quick .iconcss,
.quicks .iconcss {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    padding-right: 0;
    object-fit: contain;
}

.quick-jl {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: flex-start;
    width: 100%;
    margin: 0px 20px 20px 20px;
    height: calc(100% - 12px);
    overflow: auto;
}

.quickjl {
    flex: 1;
    height: 48px;
    background: var(--main-background-color);
    cursor: pointer;
    border-radius: 8px;
    width: 18%;
    min-width: 18%;
    max-width: 18%;
    margin: 0% 1% 2% 1%;
    transition: 0.3s;
}

.quickjl:hover {
    transition: 0.3s;
    background: var(--main-background-hover-color);
}


.quickjl:active {
    transform: scale(0.95);
    transition: 0.3s;
    background: var(--main-background-active-color);
}

.quickjl a {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.passcode {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin: 0 auto;
    max-width: 400px;
    z-index: 9999;
    background: var(--main-background-color, #222c);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.18);
    border-radius: 16px;
    padding: 32px 24px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    gap: 12px;
}

.passcode input[type="password"] {
    color: var(--main-text-form-color, #222);
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    background-color: var(--main-input-color, #fff3);
    font-size: 16px;
    margin-right: 0;
    outline: none;
    transition: box-shadow 0.2s, background 0.2s;
    box-shadow: 0 2px 8px 0 rgba(0,0,0,0.08);
}

.passcode input[type="password"]:focus {
    background: #fff8;
    box-shadow: 0 0 0 2px var(--main-background-hover-color, #acacac60);
}

.passcode button {
    background-color: #4CAF50;
    color: #fff;
    cursor: pointer;
    height: 45px;
    padding: 0 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    transition: background 0.2s, transform 0.2s;
    box-shadow: 0 2px 8px 0 rgba(0,0,0,0.08);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.passcode button:hover {
    background-color: #388e3c;
    transform: translateY(-2px) scale(1.04);
}

.passcode button:active {
    background-color: #2e7031;
    transform: scale(0.98);
}

.passcode {
    width: min(92vw, 420px);
    max-width: 420px;
    min-height: 84px;
    padding: 22px;
    box-sizing: border-box;
    flex-wrap: wrap;
    gap: 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.055)), rgba(14, 18, 24, 0.46);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(16px) saturate(1.15);
    -webkit-backdrop-filter: blur(16px) saturate(1.15);
}

.passcode input[type="password"] {
    flex: 1 1 210px;
    min-width: 0;
    height: 44px;
    padding: 0 15px;
    box-sizing: border-box;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10), 0 8px 20px rgba(0, 0, 0, 0.12);
    font-size: 0.95rem;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.passcode input[type="password"]::placeholder {
    color: rgba(255, 255, 255, 0.58);
}

.passcode input[type="password"]:focus {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(94, 234, 212, 0.62);
    box-shadow: 0 0 0 3px rgba(94, 234, 212, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.passcode button {
    flex: 0 0 auto;
    min-width: 92px;
    height: 44px;
    padding: 0 18px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(94, 234, 212, 0.92), rgba(56, 189, 248, 0.88));
    box-shadow: 0 10px 24px rgba(14, 165, 233, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.24);
    color: rgba(4, 18, 24, 0.92);
    font-size: 0.95rem;
    font-weight: 700;
    transition: filter 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.passcode button:hover {
    background: linear-gradient(135deg, rgba(125, 245, 225, 0.96), rgba(96, 205, 255, 0.92));
    box-shadow: 0 12px 28px rgba(14, 165, 233, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
}

.passcode button:active {
    filter: brightness(0.96);
    transform: translateY(0);
}



/*设置区域统一样式*/
/* ==========================================================================
   Settings controls
   ========================================================================== */

#menu {
    width: 38px;
    min-width: 38px;
    height: 38px;
    position: relative;
    padding: 0;
    flex: 0 0 38px;
    cursor: pointer;
    border: 1px solid var(--glass-border);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    box-shadow: none;
    transition:
        transform var(--motion-fast) var(--motion-ease),
        background-color var(--motion-fast) ease,
        border-color var(--motion-fast) ease;
}

#menu:hover {
    cursor: pointer;
    border-color: var(--glass-border-strong);
    background: var(--glass-surface-hover);
}

#menu:active {
    cursor: pointer;
    transform: scale(0.90);
}

#menu svg {
    display: block;
    width: 19px;
    height: 19px;
    margin: auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.25s var(--motion-ease);
}

#menu:hover svg {
    transform: rotate(24deg);
}

#menu:focus-visible,
#time_text:focus-visible,
.quick-launch-item:focus-visible,
.all-search:focus-within {
    outline: 2px solid rgba(255, 255, 255, 0.82);
    outline-offset: 3px;
}

.set_blocks {
    width: 100%;
    height: 340px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.set_blocks_content {
    display: flex;
    margin: 20px 20px 0px 20px;
    height: 430px;
    flex-direction: column;
    justify-content: space-between;
}

.set_blocks_content .se_add_preinstall,
.set_blocks_content .se_add_preinstalls,
.from_items.button {
    display: flex;
    justify-content: center;
}

.set_se_list_add,
.set_se_list_preinstall,
.se_add_save,
.se_add_cancel,
.set_quick_list_add,
.set_quick_list_preinstall,
.quick_add_cancel,
.quick_add_save,
.wallpaper_save {
    width: 25%;
    display: flex;
    height: 40px;
    border-radius: 8px;
    background: var(--main-background-color);
    margin: 0 20px;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
}

.set_se_list_add:hover,
.set_se_list_preinstall:hover,
.se_add_save:hover,
.se_add_cancel:hover,
.set_quick_list_add:hover,
.set_quick_list_preinstall:hover,
.quick_add_cancel:hover,
.quick_add_save:hover,
.wallpaper_save:hover {
    cursor: pointer;
    background: var(--main-background-hover-color);
    transition: 0.3s;
}

.set_se_list_add:active,
.set_se_list_preinstall:active,
.se_add_save:active,
.se_add_cancel:active,
.set_quick_list_add:active,
.set_quick_list_preinstall:active,
.quick_add_cancel:active,
.quick_add_save:active,
.wallpaper_save:active {
    transform: scale(0.90);
    background: var(--main-background-active-color);
    transition: 0.3s;
}

.set_blocks_content button {
    width: 40px;
    height: 100%;
    background: var(--main-button-color);
    border: 1px solid transparent;
    transition: 0.3s;
}

.set_blocks_content button:hover {
    cursor: pointer;
    background: var(--main-button-hover-color);
}

.set_blocks_content button:active {
    transform: scale(0.95);
    background: var(--main-button-active-color);
}

.se_list,
.se_add_preinstall,
.se_add_preinstalls,
.quick_list,
.add_content {
    animation: fade 0.5s;
}

/*表单内容*/
.add_content {
    display: flex;
    flex-direction: column;
    height: 320px;
    justify-content: space-between;
    overflow-y: auto;
    overflow-x: hidden;
}

.froms {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
}

.froms .from_items {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
}

.from_text {
    width: 60px;
    display: flex;
    justify-content: center;
    margin-right: 10px;
}

.add_content input,
#wallpaper_url input {
    font-size: 1.05rem;
    outline: none;
    height: 40px;
    width: 100%;
    border-radius: 8px;
    padding: 0px 10px;
    border: none;
    background: var(--main-input-color);
}

.add_content input:hover,
.add_content input:active,
#wallpaper_url input:hover,
#wallpaper_url input:active {
    box-shadow: var(--main-search-hover-shadow);
}

.add_content input::-webkit-input-placeholder,
#wallpaper_url input::-webkit-input-placeholder {
    color: var(--main-input-text-placeholder-color);
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

input[type="number"] {
    -moz-appearance: textfield;
}

/*快捷方式和搜索引擎设置*/
.quick_list,
.se_list {
    height: 260px;
    overflow-y: auto;
}

.quick_list_table,
.se_list_table {
    display: flex;
    flex-direction: column;
    margin: 0px 10px;
}

.quick_list_div,
.se_list_div {
    height: 40px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    background: var(--main-background-color);
    border-radius: 8px;
    transition: 0.3s;
}

.quick_list_div:hover,
.se_list_div:hover {
    background: var(--main-background-hover-color);
    transition: 0.3s;
}

.quick_list_div_num,
.se_list_num {
    height: 40px;
    width: 40px;
    min-width: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: var(--main-background-color);
    border-radius: 8px;
}

.quick_list_div_name,
.se_list_name {
    width: 100%;
    margin-left: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quick_list_div_button,
.se_list_button {
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/*背景图片*/
#wallpaper,
#performance {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

#wallpaper_url {
    margin: 10px 0px;
    animation: fade 0.5s;
}

#wallpaper_text {
    font-weight: bold;
    margin-top: 6px;
}

.form-radio {
    margin: 0px 10px 10px 0px;
}

input[type="radio"]+label {
    cursor: pointer;
    padding: 6px 10px;
    background: var(--main-background-color);
    border-radius: 8px;
    transition: 0.3s;
    border: 2px solid transparent;
}

input[type="radio"]:checked+label {
    background: var(--main-background-active-color);
    border: 2px solid var(--main-background-active-color);
}

/*数据备份*/
.set_tip {
    display: flex;
    margin: 20px;
    background: var(--main-background-color);
    padding: 20px;
    border-radius: 8px;
    flex-direction: column;
}

.set_button {
    margin: 20px;
    display: flex;
    justify-content: center;
}

.but-ordinary {
    width: 25%;
    display: flex;
    height: 40px;
    border-radius: 8px;
    background: var(--main-background-color);
    margin: 0 20px;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
}

.but-ordinary:hover {
    cursor: pointer;
    background: var(--main-background-hover-color);
    transition: 0.3s;
}

.but-ordinary:active {
    transform: scale(0.90);
    background: var(--main-background-active-color);
    transition: 0.3s;
}

.set_version {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.set_version-text2 {
    font-size: small;
    color: var(--main-background-active-color);
}

/*页脚*/
.foot {
    position: absolute;
    bottom: 22px;
    left: 26px;
    z-index: 1000;
    width: auto;
    height: auto;
    line-height: 1.4;
    padding: 0;
    box-sizing: border-box;
    text-align: left;
}

.power {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 11px;
    color: var(--main-text-color);
    font-size: 13px;
    opacity: 0.92;
    text-shadow: var(--main-text-shadow);
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}

.power::before {
    content: "";
    flex: 0 0 2px;
    width: 2px;
    height: 20px;
    border-radius: 999px;
    background: linear-gradient(180deg, #9be7d7, #f1d277);
    box-shadow: 0 0 14px rgba(155, 231, 215, 0.24);
}

.daily-quote {
    max-width: min(58vw, 560px);
    overflow: hidden;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: 0;
}

.footer-separator {
    color: rgba(255, 255, 255, 0.48);
    line-height: 1;
}

.app-version {
    display: none;
    align-items: center;
    height: 18px;
    padding: 0 2px;
    color: rgba(255, 255, 255, 0.52);
    background: transparent;
    line-height: 18px;
    font-size: 11px;
    opacity: 0.54;
    text-shadow: var(--main-text-shadow);
    font-variant-numeric: tabular-nums;
    transition: opacity 0.18s ease;
}

.update-check {
    display: inline-flex;
    align-items: center;
    height: 22px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
    color: var(--main-text-color);
    font: inherit;
    line-height: 20px;
    text-shadow: var(--main-text-shadow);
    cursor: pointer;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.update-check:hover {
    background: rgba(255, 255, 255, 0.22);
}

.update-check:active {
    transform: scale(0.96);
}

.update-check[hidden],
.footer-separator[hidden] {
    display: none;
}

.network-status {
    position: fixed;
    top: calc(12px + env(safe-area-inset-top, 0px));
    left: 50%;
    z-index: 10020;
    max-width: calc(100vw - 32px);
    padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(25, 32, 41, 0.84);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
    font-size: 12px;
    line-height: 1.35;
    text-align: center;
    transform: translateX(-50%);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.network-status.is-offline {
    border-color: rgba(241, 210, 119, 0.30);
}

.network-status.is-online {
    border-color: rgba(155, 231, 215, 0.30);
}

.network-status[hidden] {
    display: none;
}

/*弹窗样式*/
/* ==========================================================================
   Toasts and global utilities
   ========================================================================== */

.iziToast {
    backdrop-filter: blur(10px) !important;
}

.iziToast:after {
    box-shadow: none !important;
}

.iziToast>.iziToast-body {
    display: flex;
    align-items: center;
}

.iziToast>.iziToast-body .iziToast-message {
    margin: 0 !important;
}

.iziToast>.iziToast-body .iziToast-texts {
    margin: 0 !important;
}

.iziToast>.iziToast-body .iziToast-buttons>a,
.iziToast>.iziToast-body .iziToast-buttons>button,
.iziToast>.iziToast-body .iziToast-buttons>input:not([type=checkbox]):not([type=radio]) {
    margin: 2px 6px !important;
    color: #efefef !important;
}

.iziToast>.iziToast-body .iziToast-buttons>a:focus,
.iziToast>.iziToast-body .iziToast-buttons>button:focus,
.iziToast>.iziToast-body .iziToast-buttons>input:not([type=checkbox]):not([type=radio]):focus {
    box-shadow: none !important;
}

/*滚动条*/
::-webkit-scrollbar {
    background-color: transparent !important;
    width: 6px;
}

::-webkit-scrollbar-track {
    display: none;
}

::-webkit-scrollbar-thumb {
    border-radius: 10px;
    box-shadow: inset 0 0 6px rgba(0, 0, 0, .1);
    -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, .1);
    background-color: var(--main-background-color);
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--main-background-active-color);
}

/*文字选中*/
::selection {
    background: #00000040;
    color: #000000b3;
}

::-moz-selection {
    background: #00000040;
    color: #000000b3;
}

::-webkit-selection {
    background: #00000040;
    color: #000000b3;
}

.from_items input::selection {
    background: #ffffff60;
    color: #ffffffb3;
}

/*关闭块*/
.close_sou {
    width: 100%;
    height: 100%;
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

body.onsearch .close_sou {
    pointer-events: auto;
}

.performance-settings-block {
    height: 430px;
    min-height: 0;
}

.performance-settings-block .set_tip {
    flex: 0 0 auto;
    margin: 12px 16px 0;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.055);
}

.performance-settings-block .set_blocks_content {
    flex: 1 1 auto;
    height: auto;
    min-height: 0;
    margin: 10px 16px 16px;
    overflow: hidden auto;
    justify-content: flex-start;
    scrollbar-width: thin;
}

.performance-settings-block .from_container,
.performance-settings-block .froms,
.performance-settings-block .from_row_content {
    width: 100%;
    height: auto;
    box-sizing: border-box;
}

.performance-mode-card,
.quick-launch-settings {
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.045);
    box-sizing: border-box;
}

.settings-data-tools {
    margin-top: 10px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.045);
}

.settings-data-summary {
    margin-bottom: 12px;
    color: var(--text-secondary);
    font-size: 0.82rem;
}

.settings-data-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.settings-data-actions button {
    width: auto;
    min-width: 104px;
    height: 34px;
    margin: 0;
    padding: 0 14px;
}

.performance-mode-card {
    margin-bottom: 10px;
}

.performance-setting-title,
.quick-launch-setting-title,
.quick-launch-custom-heading {
    color: var(--main-text-color);
    font-size: 0.88rem;
    font-weight: 600;
}

.performance-setting-title {
    margin-bottom: 10px;
}

.performance-settings-block #performance {
    gap: 8px;
}

.performance-settings-block .form-radio {
    margin: 0;
}

.quick-launch-setting-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

#quick-launch-setting {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 34px;
    margin-bottom: 12px;
}

.quick-launch-toggle {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    min-height: 32px;
    margin: 0;
    cursor: pointer;
}

.quick-launch-toggle input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.quick-launch-toggle-track {
    position: relative;
    width: 38px;
    height: 22px;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    box-sizing: border-box;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.quick-launch-toggle-track::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), background-color 0.2s ease;
}

.quick-launch-toggle input:checked + .quick-launch-toggle-track {
    border-color: rgba(155, 231, 215, 0.52);
    background: rgba(82, 190, 165, 0.68);
}

.quick-launch-toggle input:checked + .quick-launch-toggle-track::after {
    background: #ffffff;
    transform: translateX(16px);
}

.quick-launch-toggle input:focus-visible + .quick-launch-toggle-track {
    outline: 2px solid rgba(255, 255, 255, 0.72);
    outline-offset: 2px;
}

.quick-launch-toggle-text {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.86rem;
}

.performance-settings-block .quick-launch-auto {
    flex: 0 0 auto;
    width: auto;
    min-width: 112px;
    height: 32px;
    margin: 0;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 9px;
    background: var(--main-button-color);
    color: var(--main-text-color);
    line-height: 30px;
    font-size: 0.8rem;
    white-space: nowrap;
    box-sizing: border-box;
    cursor: pointer;
}

.quick-launch-setting-tip {
    margin-top: 10px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.78rem;
}

.quick-launch-count-settings {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 0;
    margin: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.quick-launch-count-settings label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.82rem;
}

.quick-launch-limit {
    height: 30px;
    padding: 0 25px 0 9px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background-color: rgba(20, 28, 38, 0.96);
    color: rgba(255, 255, 255, 0.92);
    color-scheme: dark;
}

.quick-launch-custom-form {
    display: grid;
    margin-top: 16px;
    margin-bottom: 10px;
    gap: 12px;
}

.quick-launch-add-card,
.quick-launch-manage-card {
    padding: 15px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 12px;
    background: rgba(8, 12, 18, 0.18);
}

.quick-launch-add-card-head {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 12px;
}

.quick-launch-add-card-head p,
.quick-launch-section-note {
    margin: 3px 0 0;
    color: rgba(255, 255, 255, 0.54);
    font-size: 0.76rem;
    line-height: 1.45;
}

.quick-launch-add-icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border: 1px solid rgba(155, 231, 215, 0.24);
    border-radius: 10px;
    background: rgba(155, 231, 215, 0.10);
    color: #bdf6ea;
    font-size: 1rem;
}

.quick-launch-custom-heading {
    margin-bottom: 0;
}

.quick-launch-library-picker {
    display: grid;
    grid-template-columns: minmax(110px, 0.8fr) minmax(160px, 1.4fr) auto;
    gap: 8px;
}

.quick-launch-library-picker select {
    min-width: 0;
    height: 34px;
    padding: 0 28px 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background-color: rgba(20, 28, 38, 0.96);
    color: rgba(255, 255, 255, 0.92);
    color-scheme: dark;
    box-sizing: border-box;
}

.quick-launch-limit option,
.quick-launch-library-picker option {
    background-color: #18212c;
    color: #f4f7fa;
}

.quick-launch-limit:focus,
.quick-launch-library-picker select:focus {
    border-color: rgba(155, 231, 215, 0.58);
    outline: 2px solid rgba(155, 231, 215, 0.14);
    outline-offset: 1px;
}

.quick-launch-library-picker select:disabled {
    opacity: 0.46;
}

.performance-settings-block #quick-launch-library-add {
    width: auto;
    min-width: 82px;
    height: 34px;
    padding: 0 12px;
    border: 1px solid rgba(155, 231, 215, 0.28);
    border-radius: 8px;
    color: var(--main-text-color);
    white-space: nowrap;
    box-sizing: border-box;
}

.quick-launch-custom-divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 12px 0 9px;
    color: rgba(255, 255, 255, 0.46);
    font-size: 0.74rem;
}

.quick-launch-custom-divider::before,
.quick-launch-custom-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
}

.quick-launch-custom-fields {
    display: grid;
    grid-template-columns: minmax(110px, 0.7fr) minmax(180px, 1.35fr) minmax(150px, 1fr) auto;
    gap: 8px;
}

.quick-launch-custom-fields input {
    min-width: 0;
    height: 34px;
    padding: 0 10px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--main-text-color);
    box-sizing: border-box;
    outline: none;
}

.quick-launch-custom-fields input:focus {
    border-color: rgba(155, 231, 215, 0.56);
    background: rgba(255, 255, 255, 0.12);
}

.quick-launch-custom-fields input::placeholder {
    color: rgba(255, 255, 255, 0.42);
}

.performance-settings-block .quick-launch-custom-add,
.performance-settings-block .quick-launch-custom-remove {
    width: auto;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 8px;
    background: var(--main-button-color);
    color: var(--main-text-color);
    cursor: pointer;
}

.performance-settings-block .quick-launch-custom-add {
    min-width: 58px;
    height: 34px;
    padding: 0 12px;
}

.quick-launch-custom-list {
    display: grid;
    gap: 6px;
    max-height: 180px;
    margin-top: 11px;
    overflow: auto;
}

.quick-launch-custom-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 32px;
    padding: 4px 5px 4px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.82rem;
}

.quick-launch-custom-item span {
    display: grid;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quick-launch-custom-item > img {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    object-fit: contain;
    border-radius: 7px;
}

.quick-launch-custom-item strong,
.quick-launch-custom-item small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quick-launch-custom-item strong {
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.8rem;
}

.quick-launch-custom-item small {
    color: rgba(255, 255, 255, 0.46);
    font-size: 0.7rem;
}

.performance-settings-block .quick-launch-custom-remove {
    flex: 0 0 auto;
    width: auto;
    height: 24px;
    padding: 0 8px;
    color: rgba(255, 205, 205, 0.88);
    font-size: 0.74rem;
}

.quick-launch-custom-empty {
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.42);
    font-size: 0.78rem;
}

.quick-launch-add-dialog {
    --quick-add-x: 50vw;
    --quick-add-y: 50vh;
    position: fixed;
    inset: 0;
    z-index: 2147482000;
    display: block;
    pointer-events: none;
}

.quick-launch-add-dialog[hidden] {
    display: none;
}

.quick-launch-add-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 8, 13, 0.10);
    opacity: 0;
    pointer-events: auto;
    transition: opacity 0.2s ease;
}

.quick-launch-add-sheet {
    position: fixed;
    top: var(--quick-add-y);
    left: var(--quick-add-x);
    width: min(330px, calc(100vw - 24px));
    height: auto;
    min-height: 0;
    max-height: calc(100dvh - 24px);
    padding: 15px;
    overflow-y: auto;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    background: rgba(18, 25, 34, 0.88);
    box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.10);
    -webkit-backdrop-filter: blur(24px) saturate(1.12);
    backdrop-filter: blur(24px) saturate(1.12);
    color: #fff;
    opacity: 0;
    outline: none;
    pointer-events: auto;
    transform: translate3d(-50%, calc(-100% - 10px), 0) scale(0.96);
    transform-origin: center bottom;
    transition: opacity 0.2s ease, transform 0.24s var(--motion-ease);
}

.quick-launch-add-dialog.is-below .quick-launch-add-sheet {
    transform: translate3d(-50%, 10px, 0) scale(0.96);
    transform-origin: center top;
}

.quick-launch-add-dialog.is-visible .quick-launch-add-backdrop,
.quick-launch-add-dialog.is-visible .quick-launch-add-sheet {
    opacity: 1;
}

.quick-launch-add-dialog.is-visible .quick-launch-add-sheet {
    transform: translate3d(-50%, calc(-100% - 10px), 0) scale(1);
}

.quick-launch-add-dialog.is-visible.is-below .quick-launch-add-sheet {
    transform: translate3d(-50%, 10px, 0) scale(1);
}

.settings-confirm-dialog {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: grid;
    padding: 20px;
    place-items: center;
    box-sizing: border-box;
}

.settings-confirm-dialog[hidden] {
    display: none;
}

.settings-confirm-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 8, 13, 0.42);
    opacity: 0;
    transition: opacity 0.22s ease;
}

.settings-confirm-sheet {
    position: relative;
    width: min(420px, calc(100vw - 32px));
    height: auto;
    min-height: 0;
    max-height: calc(100dvh - 40px);
    padding: 24px;
    overflow: hidden;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 22px;
    background: rgba(18, 25, 34, 0.88);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.10);
    -webkit-backdrop-filter: blur(24px) saturate(1.12);
    backdrop-filter: blur(24px) saturate(1.12);
    color: #fff;
    opacity: 0;
    outline: none;
    transform: translateY(8px) scale(0.96);
    transition: opacity 0.22s ease, transform 0.24s var(--motion-ease);
}

.settings-confirm-dialog.is-visible .settings-confirm-backdrop,
.settings-confirm-dialog.is-visible .settings-confirm-sheet {
    opacity: 1;
}

.settings-confirm-dialog.is-visible .settings-confirm-sheet {
    transform: translateY(0) scale(1);
}

.settings-confirm-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    padding: 0 0 2px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.74);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.settings-confirm-kicker {
    color: rgba(255, 126, 126, 0.86);
    font-size: 0.68rem;
    font-weight: 720;
    letter-spacing: 0.12em;
}

.settings-confirm-sheet h2 {
    margin: 8px 46px 8px 0;
    font-size: 1.25rem;
}

.settings-confirm-sheet p {
    margin: 0;
    color: rgba(232, 239, 247, 0.64);
    font-size: 0.84rem;
    line-height: 1.7;
}

.settings-confirm-actions {
    display: flex;
    margin-top: 22px;
    justify-content: flex-end;
    gap: 10px;
}

.settings-confirm-actions button {
    min-height: 40px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.9);
    font: inherit;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease,
        opacity 0.18s ease, transform 0.18s ease;
}

.settings-confirm-actions .secondary {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.09);
}

.settings-confirm-actions .danger {
    border-color: rgba(255, 112, 112, 0.28);
    background: rgba(224, 67, 67, 0.82);
}

.settings-confirm-actions .primary {
    border-color: rgba(155, 231, 215, 0.30);
    background: rgba(123, 221, 204, 0.88);
    color: #10231f;
    font-weight: 680;
}

.settings-capacity-dialog .settings-confirm-kicker {
    color: rgba(155, 231, 215, 0.86);
}

.settings-confirm-close:hover,
.settings-confirm-actions .secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.settings-confirm-actions .danger:hover {
    background: rgba(235, 76, 76, 0.94);
}

.settings-confirm-actions .primary:hover {
    background: rgba(151, 235, 220, 0.96);
}

.settings-confirm-close:active,
.settings-confirm-actions button:active {
    transform: scale(0.96);
}

.settings-confirm-close:disabled,
.settings-confirm-actions button:disabled {
    opacity: 0.42;
    cursor: not-allowed;
    transform: none;
}

.quick-launch-add-sheet header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.quick-launch-add-sheet h2 {
    margin: 0;
    font-size: 1rem;
}

.quick-launch-add-sheet header p {
    margin: 3px 0 0;
    color: rgba(232, 239, 247, 0.60);
    font-size: 0.78rem;
}

.quick-launch-add-close {
    width: 32px;
    height: 32px;
    padding: 0 0 2px;
    flex: 0 0 32px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1.2rem;
}

#quick-launch-home-form {
    display: grid;
    gap: 9px;
}

#quick-launch-home-form label {
    display: grid;
    gap: 4px;
    color: rgba(232, 239, 247, 0.76);
    font-size: 0.8rem;
    font-weight: 600;
}

#quick-launch-home-form small {
    color: rgba(232, 239, 247, 0.46);
    font-weight: 400;
}

#quick-launch-home-form input {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    box-sizing: border-box;
    outline: 0;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    background: rgba(8, 12, 18, 0.44);
    color: #fff;
    font-size: 16px;
}

#quick-launch-home-form input:focus {
    border-color: rgba(155, 231, 215, 0.68);
    box-shadow: 0 0 0 3px rgba(155, 231, 215, 0.11);
}

.quick-launch-home-submit {
    height: 40px;
    margin-top: 2px;
    border: 1px solid rgba(155, 231, 215, 0.34);
    border-radius: 10px;
    background: rgba(123, 221, 204, 0.90);
    color: #10231f;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.16s ease, transform 0.16s ease, opacity 0.16s ease;
}

.quick-launch-home-submit:hover {
    background: #9be7d7;
}

.quick-launch-home-submit:active {
    transform: scale(0.98);
}

.quick-launch-home-submit:disabled {
    opacity: 0.48;
    cursor: not-allowed;
    transform: none;
}

/*iconcss*/
.iconcss{
    padding-right: 5px;
    width: 20px; /* 指定展示图片的宽度 */
    height: 20px; /* 指定展示图片的高度 */
    overflow: hidden; /* 避免图片超出容器部分显示 */
}

.iconcss img {
    width: 100%; /* 让图片宽度充满父容器 */
    height: auto; /* 根据宽度等比例缩放高度 */
    display: block; /* 去除图片默认的间距，使其能够填充整个父容器 */
}

/* 快捷方式描述样式 */
.quick-desc, .quicks .quick-desc {
    display: block;
    font-size: 10px;
    color: #bdbdbd;
    opacity: 0.85;
    margin: 0px 0px 7px 0px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    width: 100%;           /* 保持与父元素一致的宽度，保证间距不变 */
    max-width: 100%;       /* 防止超出父容器 */
    text-align: center;
    line-height: 1.4;
    /* 限制最多显示13个中文字符，超出显示省略号 */
    /* 通过字符数限制内容长度，样式上不再用max-width: 13em */
}

.quick .quick-desc,
.quicks .quick-desc {
    width: calc(100% - 24px);
    max-width: calc(100% - 24px);
    margin: 0 auto 8px auto;
    padding: 0 2px;
    box-sizing: border-box;
    color: rgba(255, 255, 255, 0.66);
    line-height: 1.35;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.18);
}

.category-tools {
    width: calc(100% - 56px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 28px 6px 28px;
    box-sizing: border-box;
}

/* 状态检测样式按需加载前保持隐藏，避免慢网络下出现未样式化按钮。 */
.status-actions {
    display: none;
    margin-top: 0;
    flex: 0 0 auto;
    margin-left: auto;
}

.category-row {
    width: max-content;
    max-width: calc(100% - 56px);
    min-width: 0;
    min-height: 32px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 4px;
    background: rgba(18, 24, 32, 0.34);
    border-radius: 9px;
    margin-bottom: 6px;
    margin-top: 0;
    padding: 4px;
    box-sizing: border-box;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 24px rgba(0, 0, 0, 0.14);
    border: 1px solid rgba(179, 195, 214, 0.14);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    position: relative;
    overflow: hidden;
    animation: none;
    margin-left: 28px;
}

.category-tools > .category-row {
    flex: 0 1 auto;
    width: max-content;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.category-tools > .category-row::-webkit-scrollbar {
    display: none;
}

.category-row::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, transparent, #ffffff1f, transparent);
    opacity: 0;
    transform: translateX(-45%);
    transition: opacity 0.28s ease, transform 0.55s ease;
    pointer-events: none;
}

.category-row:hover {
    border-color: #ffffff30;
    box-shadow: 0 14px 34px #00000026, inset 0 1px 0 #ffffff32;
}

.category-row:hover::before {
    opacity: 1;
    transform: translateX(45%);
}

.category-row .category-anim-bg {
    position: absolute;
    top: 50%;
    left: 0;
    height: calc(100% - 8px);
    border-radius: 999px;
    background: rgba(120, 145, 176, 0.30);
    box-shadow: none;
    transform: translateY(-50%);
    transition:
        width 0.25s cubic-bezier(.4,0,.2,1),
        left 0.25s cubic-bezier(.4,0,.2,1),
        opacity 0.25s cubic-bezier(.4,0,.2,1);
    z-index: 0;
    pointer-events: none;
    opacity: 1;
}

.category-item {
    flex: 0 0 auto;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    color: rgba(232, 239, 247, 0.58);
    padding: 0 11px;
    margin-right: 0;
    border-radius: 999px;
    cursor: pointer;
    background: transparent;
    border: 1px solid transparent;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    box-shadow: none;
    letter-spacing: 0;
    font-weight: 560;
    position: relative;
    z-index: 1;
    overflow: hidden;
    white-space: nowrap;
    transform: none !important;
    animation: none;
}

.category-item::before {
    display: none;
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(120deg, transparent 18%, #ffffff28 50%, transparent 82%);
    opacity: 0;
    transform: translateX(-110%);
    transition: opacity 0.24s ease, transform 0.42s ease;
    pointer-events: none;
}

.category-item::after {
    display: none;
    content: "";
    position: absolute;
    left: 50%;
    bottom: 3px;
    width: 14px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    opacity: 0;
    transform: translateX(-50%) scaleX(0.4);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.category-item:hover {
    color: #ffffff;
    background: rgba(130, 154, 184, 0.18);
    border-color: rgba(179, 195, 214, 0.18);
    box-shadow: none;
    transform: none !important;
}

.category-item:hover::before {
    opacity: 1;
    transform: translateX(110%);
}

.category-item:hover::after {
    opacity: 0.55;
    transform: translateX(-50%) scaleX(1);
}

.category-item.active {
    color: #f7fbff;
    background: transparent;
    border-color: transparent;
    font-weight: 650;
    box-shadow: none;
    transform: none !important;
    animation: none;
}

.category-item,
.category-item:hover,
.category-item.active,
.category-item.active:hover {
    transform: none !important;
}

.category-item.active::after {
    opacity: 0;
}

.category-item.active:hover {
    color: #f7fbff;
    transform: none !important;
}

.category-item:hover,
.category-item.active:hover {
    transform: none !important;
}

.category-row.has-anim-bg .category-item.active,
.category-row.has-anim-bg .category-item.active:hover {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.quick,
.quicks {
    position: relative;
    isolation: isolate;
    display: flex;
    justify-content: center;
    box-sizing: border-box;
    overflow: hidden;
    min-height: 76px;
    border-radius: var(--radius-card);
    border: 1px solid rgba(255, 255, 255, 0.11);
    background: var(--surface-card);
    box-shadow: none;
    transform: none;
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease,
        filter 0.18s ease, transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.quickjl {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    overflow: hidden;
    min-height: 48px;
    border-radius: 8px;
    border: 1px solid rgba(179, 195, 214, 0.1);
    background: rgba(18, 24, 32, 0.46);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 8px 18px rgba(0, 0, 0, 0.14);
    transform: none;
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease,
        filter 0.18s ease, transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: hover) {
    .quick:hover,
    .quicks:hover {
        border-color: rgba(255, 255, 255, 0.20);
        background: var(--surface-card-hover);
        box-shadow: none;
        filter: none;
        transform: none;
    }

    .quickjl:hover {
        border-color: rgba(155, 231, 215, 0.42);
        background:
            linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.045)),
            rgba(31, 42, 50, 0.72);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.18),
            inset 0 0 0 1px rgba(155, 231, 215, 0.10),
            0 13px 26px rgba(0, 0, 0, 0.24),
            0 0 18px rgba(155, 231, 215, 0.10);
        filter: brightness(1.04);
        transform: none;
    }

    .quick:hover .iconcss,
    .quicks:hover .iconcss,
    .quickjl:hover .iconcss {
        filter: brightness(1.1);
        opacity: 1;
    }
}

.quick:active,
.quicks:active,
.quickjl:active {
    filter: brightness(1.08);
    transform: none;
}

.quick:focus-within,
.quicks:focus-within,
.quickjl:focus-within {
    outline: 2px solid rgba(255, 255, 255, 0.78);
    outline-offset: 2px;
}

.quick a,
.quicks a,
.quickjl a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 0;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: rgba(244, 248, 252, 0.92);
    font-size: 0.9rem;
    font-weight: 650;
    line-height: 1.25;
    text-align: center;
    text-shadow: none;
}

.quick a,
.quicks a {
    min-height: 74px;
    margin: 0;
    padding: 10px 12px;
    gap: 10px;
    justify-content: flex-start;
    text-align: left;
}

.quickjl a {
    height: 100%;
    min-height: 46px;
    margin: 0;
    padding: 0 12px;
}

.quickjl .iconcss {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    min-width: 30px;
    padding: 4px;
    box-sizing: border-box;
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    background: var(--glass-surface-strong);
    box-shadow: var(--glass-highlight), 0 5px 12px rgba(0, 0, 0, 0.12);
    opacity: 0.96;
    object-fit: contain;
    transition: filter 0.18s ease, opacity 0.18s ease,
        border-color 0.18s ease, background-color 0.18s ease;
}

.quick .quick-icon,
.quicks .quick-icon {
    display: grid;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    min-width: 36px;
    place-items: center;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 11px;
    background: rgba(8, 12, 18, 0.32);
    box-shadow: none;
}

.quick .iconcss,
.quicks .iconcss {
    display: block;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    min-width: 24px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    opacity: 0.94;
    object-fit: contain;
    transition: filter 0.18s ease, opacity 0.18s ease;
}

.quick .quick-info,
.quicks .quick-info {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    text-align: left;
}

.quick .quick-title,
.quicks .quick-title {
    overflow: hidden;
    color: rgba(255, 255, 255, 0.94);
    font-size: 1rem;
    font-weight: 650;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quick .quick-desc,
.quicks .quick-desc {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    color: rgba(232, 239, 247, 0.52);
    font-size: 0.75rem;
    text-align: left;
    opacity: 1;
    line-height: 1.3;
    text-shadow: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.passcode {
    width: min(380px, calc(100vw - 32px));
    max-width: calc(100vw - 32px);
    min-height: 0;
    max-height: calc(100vh - 32px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 14px;
    box-sizing: border-box;
    overflow: auto;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: linear-gradient(180deg, rgba(20, 26, 32, 0.72), rgba(20, 26, 32, 0.48));
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.passcode input[type="password"] {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    height: 40px;
    padding: 0 12px;
    box-sizing: border-box;
    border-radius: 6px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 16px;
}

.passcode button {
    width: auto;
    min-width: 76px;
    max-width: 100%;
    height: 40px;
    padding: 0 14px;
    border-radius: 6px;
    color: #f7fbff;
    background: rgba(120, 145, 176, 0.34);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58), 0 8px 18px rgba(0, 0, 0, 0.16);
    transform: none !important;
}

.passcode button:hover,
.passcode button:active {
    filter: brightness(1.04);
    transform: none !important;
}

.iziToast.welcome-toast,
.iziToast.setting-toast {
    max-width: min(360px, calc(100vw - 28px)) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 8px !important;
    background: linear-gradient(180deg, rgba(20, 26, 32, 0.82), rgba(20, 26, 32, 0.66)) !important;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
    backdrop-filter: blur(14px) saturate(1.08);
    -webkit-backdrop-filter: blur(14px) saturate(1.08);
    overflow: hidden !important;
}

.iziToast.welcome-toast > .iziToast-body .iziToast-title,
.iziToast.setting-toast > .iziToast-body .iziToast-title {
    color: #ffffff !important;
    font-weight: 700 !important;
}

.iziToast.welcome-toast > .iziToast-body .iziToast-message,
.iziToast.setting-toast > .iziToast-body .iziToast-message {
    color: rgba(255, 255, 255, 0.70) !important;
}

.iziToast.welcome-toast .iziToast-progressbar > div,
.iziToast.setting-toast .iziToast-progressbar > div {
    background: rgba(170, 190, 214, 0.86) !important;
}

.iziToast.setting-toast button {
    height: 30px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    cursor: pointer;
}

.iziToast.setting-toast button:hover {
    background: rgba(120, 145, 176, 0.34);
    color: #f7fbff;
}

@media (max-width: 420px), (max-height: 460px) {
    .passcode {
        width: calc(100% - 24px);
        max-width: 340px;
        grid-template-columns: 1fr;
        padding: 12px;
        gap: 8px;
    }

    .passcode button {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 720px) {
    .foot {
        position: fixed;
        left: 0;
        right: 0;
        bottom: calc(8px + env(safe-area-inset-bottom, 0px));
        width: 100%;
        height: auto;
        min-height: 20px;
        line-height: 1.5;
        padding: 0 12px;
        box-sizing: border-box;
        pointer-events: none;
    }

    .power {
        max-width: calc(100vw - 24px);
        gap: 4px 6px;
        padding: 7px 12px;
        pointer-events: auto;
    }

    .update-check {
        max-width: calc(100vw - 28px);
        height: 22px;
        line-height: 20px;
        white-space: nowrap;
    }

    .app-version {
        height: 18px;
        line-height: 18px;
    }

    .passcode {
        width: calc(100% - 24px);
        max-width: 340px;
        grid-template-columns: 1fr;
        padding: 12px;
        gap: 8px;
    }

    .passcode input[type="password"],
    .passcode button {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
        font-size: 16px;
    }
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

html.perf-lite *,
html.perf-lite *::before,
html.perf-lite *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
}

html.perf-lite *,
html.perf-lite *::before,
html.perf-lite *::after {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
}

html.perf-lite #bg,
html.perf-lite .onsearch #bg {
    filter: none !important;
    transform: scale(1) !important;
}

html.perf-lite .tool-all,
html.perf-lite #bg,
html.perf-lite .mark::before,
html.perf-lite .category-row::before,
html.perf-lite .category-item::before,
html.perf-lite .category-item::after,
html.perf-lite .toast-fallback,
html.perf-lite .quick-launch-item,
html.perf-lite .quick,
html.perf-lite .quicks,
html.perf-lite .quickjl {
    will-change: auto !important;
    transform: none !important;
}

html.perf-lite .tool-all {
    transform: translate3d(0, var(--time-block-offset), 0) !important;
}

html.perf-lite .toast-fallback-wrap {
    transform: translateX(-50%) !important;
}

html.perf-lite .all-search,
html.perf-lite .quick-launch-item,
html.perf-lite #menu,
html.perf-lite .search-engine,
html.perf-lite #keywords,
html.perf-lite .mark,
html.perf-lite .set,
html.perf-lite .passcode,
html.perf-lite .category-row,
html.perf-lite .status-check-btn,
html.perf-lite .iziToast,
html.perf-lite .iziToast.welcome-toast,
html.perf-lite .iziToast.setting-toast,
html.perf-lite .toast-fallback {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    background: rgba(18, 24, 32, 0.88) !important;
}

html.perf-lite #point {
    opacity: 1 !important;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

    *,
    *::before,
    *::after {
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
    }

    #bg,
    .onsearch #bg {
        filter: none !important;
        transform: scale(1) !important;
    }

    .tool-all,
    #bg,
    .mark::before,
    .category-row::before,
    .category-item::before,
    .category-item::after,
    .toast-fallback,
    .quick-launch-item,
    .quick,
    .quicks,
    .quickjl {
        will-change: auto !important;
        transform: none !important;
    }

    .tool-all {
        transform: translate3d(0, var(--time-block-offset), 0) !important;
    }

    .toast-fallback-wrap {
        transform: translateX(-50%) !important;
    }

    .all-search,
    .quick-launch-item,
    #menu,
    .search-engine,
    #keywords,
    .mark,
    .set,
    .passcode,
    .category-row,
    .status-check-btn,
    .iziToast,
    .iziToast.welcome-toast,
    .iziToast.setting-toast,
    .toast-fallback {
        -webkit-backdrop-filter: none !important;
        backdrop-filter: none !important;
        background: rgba(18, 24, 32, 0.88) !important;
    }

    #point {
        opacity: 1 !important;
    }
}

/* ==========================================================================
   Mobile and iOS Safari overrides
   ========================================================================== */

/* iOS Safari 使用真实可视高度，避免地址栏变化导致首屏背景露底。 */
html.ios-safari,
html.ios-safari body {
    --ios-bg-bottom: env(safe-area-inset-bottom, 0px);
    --ios-bg-extra: 72px;
    height: var(--app-height, 100vh);
    min-height: var(--app-height, 100vh);
    overflow: hidden;
}

html.ios-safari section,
html.ios-safari #content {
    height: var(--app-height, 100vh);
    min-height: var(--app-height, 100vh);
}

html.ios-safari .bg-all {
    position: fixed;
    top: 0;
    right: 0;
    bottom: auto;
    left: 0;
    width: 100%;
    height: calc(var(--ios-bg-height, var(--app-height, 100vh)) + var(--ios-bg-bottom) + var(--ios-bg-extra));
    min-height: calc(var(--ios-bg-height, var(--app-height, 100vh)) + var(--ios-bg-bottom) + var(--ios-bg-extra));
    overflow: hidden;
    background-image: var(--ios-wallpaper-image, none);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
}

@supports (height: 100lvh) {
    html.ios-safari .bg-all {
        height: calc(max(var(--ios-bg-height, var(--app-height, 100vh)), 100lvh) + var(--ios-bg-bottom) + 24px);
        min-height: calc(max(var(--ios-bg-height, var(--app-height, 100vh)), 100lvh) + var(--ios-bg-bottom) + 24px);
    }
}

html.ios-safari #bg,
html.ios-safari .cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 100%;
}

/* iOS 主屏幕应用首次绘制时 fixed 元素可能少算底部安全区，背景单独使用完整设备高度。 */
html.ios-standalone {
    background-color: var(--body-background-color);
    background-image: var(--ios-wallpaper-image, none);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

html.ios-standalone .bg-all,
html.ios-standalone #bg,
html.ios-standalone .cover {
    height: var(--ios-standalone-bg-height, 100vh);
    min-height: var(--ios-standalone-bg-height, 100vh);
}

html.ios-standalone .bg-all {
    background-image: var(--ios-wallpaper-image, none);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

/*小于1200px时*/
@media (max-width: 1200px) {

    /*书签及设置高度*/
    .mark,
    .set {
        margin-top: 180px;
    }
}

/*小于720px时*/
@media (max-width: 720px) {

    .con {
        min-height: 280px;
        padding: 16px;
    }

    .quick-launch {
        gap: 9px;
        padding-top: 10px;
    }

    .quick-launch-item {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
        border-radius: 9px;
    }

    .quick-launch-add {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
        border-radius: 9px;
    }

    .quick-launch-custom-fields {
        grid-template-columns: 1fr;
    }

    .quick-launch-library-picker {
        grid-template-columns: 1fr;
    }

    .performance-settings-block #quick-launch-library-add {
        width: 100%;
    }

    .performance-settings-block .quick-launch-custom-add {
        width: 100%;
    }

    .performance-settings-block .set_tip {
        margin-right: 12px;
        margin-left: 12px;
    }

    .performance-settings-block .set_blocks_content {
        margin-right: 12px;
        margin-left: 12px;
    }

    .performance-mode-card,
    .quick-launch-settings {
        padding: 12px;
    }

    .set .tabs {
        justify-content: flex-start;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .set .tabs::-webkit-scrollbar {
        display: none;
    }

    .set .tabs .tab-items {
        flex: 0 0 auto;
        min-width: 82px;
        width: auto;
        padding: 0 10px;
    }

    body.onsearch #keywords {
        width: auto;
        max-height: min(34vh, 184px);
        padding: 6px;
        border-radius: 14px;
        font-size: 0.9rem;
    }

    body.onsearch .search-engine {
        max-height: min(38vh, 220px);
        padding: 6px;
        border-radius: 14px;
    }

    body.onsearch .search-engine-list {
        max-height: min(34vh, 190px);
        gap: 6px;
    }

    body.onsearch .search-engine .se-li {
        flex-basis: calc(50% - 3px);
        min-width: calc(50% - 3px);
        max-width: calc(50% - 3px);
        min-height: 42px;
    }

    body.onsearch #keywords .keyword {
        min-height: 40px;
        padding: 0 10px;
    }

    body.onsearch #keywords .keyword-meta {
        max-width: 38%;
        padding-left: 8px;
    }

    body.onsearch .foot {
        opacity: 0;
        pointer-events: none;
    }

    /* 搜索态不改变设置入口，也不让它覆盖搜索区域。 */
    body.onsearch #menu {
        display: none !important;
    }

    .foot {
        position: fixed;
        left: 0;
        right: 0;
        bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        width: 100%;
        height: auto;
        min-height: 20px;
        line-height: 1.5;
        padding: 0 12px;
        box-sizing: border-box;
        text-align: center;
        pointer-events: none;
    }

    .power {
        display: inline-flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        max-width: calc(100vw - 24px);
        gap: 6px;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        pointer-events: auto;
    }

    .power::before,
    .daily-quote {
        display: none;
    }

    .update-check {
        max-width: calc(100vw - 28px);
        height: 22px;
        line-height: 20px;
        white-space: nowrap;
    }

    .app-version {
        height: 18px;
        line-height: 18px;
    }

    .passcode {
        width: calc(100% - 24px);
        max-width: 340px;
        grid-template-columns: 1fr;
        padding: 12px;
        gap: 8px;
    }

    .passcode input[type="password"],
    .passcode button {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
        font-size: 16px;
    }

    .category-tools {
        width: calc(100% - 40px);
        margin: 0 20px 8px 20px;
        gap: 8px;
    }

    .category-tools > .category-row {
        flex: 0 1 auto;
        width: max-content;
        min-width: 0;
        max-width: 100%;
        margin: 0;
    }

    .category-row {
        display: flex;
        align-items: center;
        min-height: 32px;
        padding: 4px;
        border-radius: 999px;
        margin-left: 20px;
        margin-right: 20px;
        margin-bottom: 8px;
        box-shadow: 0 8px 22px 0 rgba(0,0,0,0.16), inset 0 1px 0 rgba(255,255,255,0.18);
        overflow-x: auto;
        overflow-y: hidden;
        gap: 6px;
        max-width: calc(100vw - 40px);
        scrollbar-width: none;
        will-change: scroll-position;
        -webkit-overflow-scrolling: touch;
    }

    .category-row::before {
        display: none;
    }

    .category-row:hover {
        border-color: rgba(179, 195, 214, 0.14);
        box-shadow: 0 8px 22px 0 rgba(0,0,0,0.16), inset 0 1px 0 rgba(255,255,255,0.18);
    }

    .category-row .category-anim-bg {
        left: 0 !important;
        max-width: calc(100% - 8px);
        transform: translate3d(var(--category-indicator-x, 0px), -50%, 0);
        transition:
            width 0.25s cubic-bezier(.4,0,.2,1),
            transform 0.25s cubic-bezier(.4,0,.2,1),
            opacity 0.25s cubic-bezier(.4,0,.2,1);
        will-change: transform, width;
    }

    .category-row::-webkit-scrollbar {
        display: none;
    }

    .category-item {
        font-size: 0.74rem;
        padding: 0 10px;
        height: 24px;
        border-radius: 999px;
        min-width: 44px;
        max-width: 80vw;
        white-space: nowrap;
        box-sizing: border-box;
        flex-shrink: 0;
    }
    /*书签*/
    .quick,
    .quicks,
    .quickjl {
        width: 23%;
        min-width: 23%;
        max-width: 23%;
    }
}

/* 小屏面板保持时间原位淡出，不再额外向上移动。 */
@media (max-width: 534px) {
    .mark,
    .set {
        margin-top: 224px;
    }
}

/*小于512px时*/
@media (max-width: 512px) {

    .tool-all {
        --time-block-height: 92px;
    }

    /*文字大小*/
    #time_text {
        font-size: 2.75rem;
    }

    #day {
        font-size: 1.05rem;
    }

    .weather {
        font-size: 1rem;
    }

    .wd::-webkit-input-placeholder {
        letter-spacing: 1px;
        font-size: 1rem;
    }

    /*搜索引擎*/
    .se-li {
        width: 31.33%;
        min-width: 31.33%;
        max-width: 31.33%;
    }

    .category-tools {
        width: calc(100% - 28px);
        margin: 0 14px 8px 14px;
        gap: 6px;
    }

    /*设置按钮*/
    #menu svg {
        width: 20px;
        height: 20px;
    }

    /*书签*/
    .quicks,
    .quickjl {
        width: 48%;
        min-width: 48%;
        max-width: 48%;
    }

    /*壁纸设置*/
    #wallpaper,
    #performance {
        flex-wrap: wrap;
    }

    #wallpaper_text {
        margin-top: 0px;
    }

    .form-radio {
        margin: 0px 10px 30px 0px;
    }

    /*隐藏*/
    .mobile {
        display: none;
    }

    .passcode input[type="password"], .passcode button {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin-right: 0;
        font-size: 16px;
    }

    .passcode button {
        width: 100%;
        min-width: 0;
    }

    .passcode {
        width: calc(100% - 24px);
        max-width: 340px;
        grid-template-columns: 1fr;
        padding: 12px;
        gap: 8px;
    }
}

/* 大于568px时 */
@media (min-width: 568px) {
    .iziToast {
        border-radius: 30px !important;
    }

    .iziToast-wrapper {
        padding: 10px 0px !important;
    }
}

/* ==========================================================================
   Phase 4 bookmark center final responsive overrides
   ========================================================================== */
.mark {
    margin-top: 0;
}

@media (max-width: 720px) {
    .mark {
        width: calc(100vw - 16px);
        height: calc(var(--app-height, 100vh) - 20px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
        max-height: none;
        border-radius: 18px;
    }

    .bookmark-head {
        min-height: 70px;
        padding: 10px 10px 8px 14px;
        gap: 10px;
    }

    .bookmark-subtitle {
        display: none;
    }

    .bookmark-head-actions {
        flex: 1 1 auto;
        justify-content: flex-end;
        min-width: 0;
    }

    .bookmark-search {
        width: min(220px, calc(100vw - 138px));
        min-width: 92px;
    }

    .bookmark-close {
        flex: 0 0 40px;
        width: 40px;
        height: 40px;
    }

    .mark .tab {
        flex: 0 0 36px;
        height: 36px;
        min-height: 36px;
        max-height: 36px;
        justify-content: flex-start;
        margin-bottom: 8px;
        padding: 0 8px;
        gap: 4px;
        overflow-x: auto;
        overflow-y: hidden;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .mark .tab::-webkit-scrollbar {
        display: none;
    }

    .mark .tab .tab-item {
        flex: 0 0 58px;
        width: 58px;
        min-width: 58px;
        height: 36px;
        min-height: 36px;
        padding: 0 8px;
        font-size: 0.82rem;
        font-weight: 560;
        line-height: 36px;
    }

    .mark .products {
        overflow: hidden;
    }

    .quick-all,
    .quick-alls,
    .quick-jl {
        height: calc(100% - 48px);
        margin: 0 10px 10px;
        padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
        box-sizing: border-box;
        -webkit-overflow-scrolling: touch;
    }
}

@media (max-width: 420px) {
    .bookmark-title {
        font-size: 1.35rem;
    }

    .quick-desc {
        display: none;
    }

    .quick,
    .quicks {
        min-height: 46px;
    }

    body.onsearch #keywords .keyword-meta {
        display: none;
    }
}

.mark .tab .tab-item {
    user-select: none;
}

.mark .tab.bookmark-tab-sorting-enabled .tab-item {
    cursor: grab;
    touch-action: none;
}

.mark .tab .tab-item.is-dragging {
    opacity: 0.12;
    pointer-events: none;
}

.mark .tab.is-reordering {
    cursor: grabbing;
}

.bookmark-tab-placeholder {
    flex: 1 1 0;
    min-width: 0;
    height: 36px;
    border: 1px dashed rgba(155, 231, 215, 0.42);
    border-radius: 9px;
    background: rgba(155, 231, 215, 0.07);
}

.bookmark-tab-drag-ghost {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2147482500;
    display: grid;
    min-width: 86px;
    height: 38px;
    padding: 0 16px;
    place-items: center;
    box-sizing: border-box;
    border: 1px solid rgba(155, 231, 215, 0.34);
    border-radius: 10px;
    background: rgba(20, 29, 38, 0.92);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 650;
    pointer-events: none;
    will-change: transform;
}

.products [data-nav-items].bookmark-card-sorting-enabled > .quick,
.products [data-nav-items].bookmark-card-sorting-enabled > .quicks,
.products [data-nav-items].bookmark-card-sorting-enabled > .quickjl {
    cursor: grab;
    touch-action: none;
    user-select: none;
}

.products [data-nav-items] {
    position: relative;
}

.products [data-nav-items].is-reordering {
    cursor: grabbing;
}

.products [data-nav-items].is-reordering > .bookmark-add-card {
    opacity: 0.32;
    pointer-events: none;
    transform: none;
}

.products [data-nav-items] > .quick.is-dragging,
.products [data-nav-items] > .quicks.is-dragging,
.products [data-nav-items] > .quickjl.is-dragging {
    position: fixed;
    top: -200px;
    left: -200px;
    z-index: -1;
    border-style: dashed;
    border-color: rgba(155, 231, 215, 0.42);
    filter: brightness(0.74);
    opacity: 0.34;
    pointer-events: none;
    transition: none;
}

.products [data-nav-items] > .quick.just-dropped,
.products [data-nav-items] > .quicks.just-dropped,
.products [data-nav-items] > .quickjl.just-dropped {
    animation: bookmarkCardDrop 0.26s ease-out;
}

@keyframes bookmarkCardDrop {
    0% {
        border-color: rgba(155, 231, 215, 0.72);
        filter: brightness(1.18);
    }

    55% {
        border-color: rgba(155, 231, 215, 0.38);
        filter: brightness(1.07);
    }

    100% {
        border-color: rgba(179, 195, 214, 0.14);
        filter: brightness(1);
    }
}

.bookmark-card-placeholder {
    position: relative;
    z-index: 2;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border: 1px dashed rgba(155, 231, 215, 0.88);
    border-radius: 8px;
    background: rgba(155, 231, 215, 0.10);
    box-shadow: inset 0 0 0 2px rgba(155, 231, 215, 0.07), 0 0 18px rgba(155, 231, 215, 0.10);
    color: rgba(224, 251, 245, 0.88);
    font-size: 0.68rem;
    font-weight: 650;
    letter-spacing: 0.04em;
    pointer-events: none;
    transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease;
}

.bookmark-card-drag-ghost {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2147483000;
    display: flex;
    width: 126px;
    height: 48px;
    padding: 0 12px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    border: 1px solid rgba(155, 231, 215, 0.68);
    border-radius: 10px;
    background: rgba(20, 28, 36, 0.94);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28), 0 0 0 3px rgba(155, 231, 215, 0.10);
    -webkit-backdrop-filter: blur(18px) saturate(1.08);
    backdrop-filter: blur(18px) saturate(1.08);
    color: #fff;
    opacity: 0.98;
    pointer-events: none;
    transform: translate3d(-200px, -200px, 0);
    transition: none;
    will-change: transform;
    contain: layout paint style;
}

.bookmark-card-drag-mark {
    display: grid;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    place-items: center;
    border-radius: 7px;
    background: rgba(155, 231, 215, 0.12);
    color: rgba(224, 251, 245, 0.96);
    font-size: 0.82rem;
    font-weight: 760;
    line-height: 1;
}

.bookmark-card-drag-label {
    min-width: 0;
    overflow: hidden;
    color: rgba(248, 251, 255, 0.96);
    font-size: 0.76rem;
    font-weight: 640;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 收藏中心使用更宽的横向信息卡片，避免回到图标启动器式密集网格。 */
.mark .quick,
.mark .quicks {
    width: 23%;
    min-width: 23%;
    max-width: 23%;
    margin: 0 1% 2%;
}

.mark .quick .quick-info,
.mark .quicks .quick-info {
    align-items: flex-start;
    text-align: left;
}

.mark .quick .quick-title,
.mark .quicks .quick-title,
.mark .quick .quick-desc,
.mark .quicks .quick-desc {
    width: 100%;
    align-self: stretch;
    text-align: left !important;
}

@media (max-width: 720px) {
    .mark .quick,
    .mark .quicks {
        width: calc(50% - 6px);
        min-width: calc(50% - 6px);
        max-width: calc(50% - 6px);
        margin: 0 3px 6px;
    }

    .mark .quick .quick-desc,
    .mark .quicks .quick-desc {
        display: block;
        text-align: left !important;
    }
}

.bookmark-quick-context-menu {
    position: fixed;
    z-index: 2147482500;
    width: 142px;
    padding: 6px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    background: rgba(17, 24, 32, 0.90);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(20px) saturate(1.08);
    backdrop-filter: blur(20px) saturate(1.08);
    opacity: 0;
    transform: translateY(4px) scale(0.96);
    transform-origin: top left;
    transition: opacity 160ms ease, transform 190ms var(--motion-ease);
}

.bookmark-quick-context-menu[hidden] {
    display: none;
}

.bookmark-quick-context-menu.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.bookmark-quick-context-menu button {
    width: 100%;
    min-height: 36px;
    padding: 0 11px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: rgba(238, 251, 248, 0.92);
    font-size: 0.78rem;
    font-weight: 620;
    text-align: left;
    cursor: pointer;
    transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
}

.bookmark-quick-context-menu button:hover,
.bookmark-quick-context-menu button:focus-visible {
    background: rgba(155, 231, 215, 0.13);
    color: #e4fff9;
    outline: none;
}

.bookmark-quick-context-menu button:active {
    transform: scale(0.98);
}

.bookmark-quick-context-menu .bookmark-quick-context-delete {
    margin-top: 3px;
    color: rgba(255, 153, 160, 0.96);
}

.bookmark-quick-context-menu .bookmark-quick-context-delete:hover,
.bookmark-quick-context-menu .bookmark-quick-context-delete:focus-visible {
    background: rgba(255, 92, 104, 0.14);
    color: #ffd5d8;
}

.bookmark-tab-sort-toggle {
    flex: 0 0 auto;
}

@media (pointer: coarse) {
    .mark .tab.bookmark-tab-sorting-enabled .tab-item,
    .products [data-nav-items].bookmark-card-sorting-enabled > .quick,
    .products [data-nav-items].bookmark-card-sorting-enabled > .quicks,
    .products [data-nav-items].bookmark-card-sorting-enabled > .quickjl {
        touch-action: pan-y;
    }

    .mark .tab.bookmark-tab-sorting-enabled .tab-item {
        touch-action: pan-x pan-y;
    }
}

.bookmark-add-card {
    position: relative;
    display: grid;
    width: 23%;
    min-width: 23%;
    max-width: 23%;
    min-height: 76px;
    margin: 0 1% 2%;
    place-content: center;
    place-items: center;
    gap: 0;
    box-sizing: border-box;
    border: 1px dashed rgba(155, 231, 215, 0.32);
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.035);
    color: rgba(216, 246, 239, 0.78);
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease,
        transform 0.18s ease;
}

.bookmark-add-card span {
    color: rgba(155, 231, 215, 0.92);
    font-size: 2rem;
    font-weight: 320;
    line-height: 1;
}

.bookmark-add-card:hover {
    border-color: rgba(155, 231, 215, 0.62);
    background: rgba(155, 231, 215, 0.12);
    color: #dffbf5;
    transform: translateY(-1px);
}

.bookmark-add-card:active {
    transform: scale(0.97);
}

.bookmark-add-card:focus-visible {
    outline: 2px solid rgba(155, 231, 215, 0.72);
    outline-offset: 2px;
}

.bookmark-custom-card {
    overflow: visible;
}

.bookmark-custom-remove {
    position: absolute;
    top: 5px;
    right: 5px;
    z-index: 2;
    width: 24px;
    height: 24px;
    padding: 0 0 2px;
    border: 1px solid rgba(255, 112, 112, 0.18);
    border-radius: 50%;
    background: rgba(28, 34, 42, 0.78);
    color: rgba(255, 194, 194, 0.76);
    font-size: 15px;
    line-height: 1;
    opacity: 0;
    cursor: pointer;
    transition: opacity 0.16s ease, background-color 0.16s ease, color 0.16s ease;
}

.bookmark-custom-card:hover .bookmark-custom-remove,
.bookmark-custom-remove:focus-visible {
    opacity: 1;
}

.bookmark-custom-remove:hover {
    background: rgba(224, 67, 67, 0.82);
    color: #fff;
}

.bookmark-item-dialog {
    position: fixed;
    inset: 0;
    z-index: 2147482800;
    display: grid;
    padding: 20px;
    place-items: center;
    box-sizing: border-box;
}

.bookmark-item-dialog[hidden] {
    display: none;
}

.bookmark-item-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 8, 13, 0.42);
    opacity: 0;
    transition: opacity 0.22s ease;
}

.bookmark-item-sheet {
    position: relative;
    width: min(430px, calc(100vw - 32px));
    height: auto;
    min-height: 0;
    max-height: calc(100dvh - 40px);
    padding: 23px;
    overflow: auto;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 22px;
    background: rgba(18, 25, 34, 0.9);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.10);
    -webkit-backdrop-filter: blur(24px) saturate(1.12);
    backdrop-filter: blur(24px) saturate(1.12);
    color: #fff;
    opacity: 0;
    outline: none;
    transform: translateY(8px) scale(0.96);
    transition: opacity 0.22s ease, transform 0.24s var(--motion-ease);
}

.bookmark-item-dialog.is-visible .bookmark-item-backdrop,
.bookmark-item-dialog.is-visible .bookmark-item-sheet {
    opacity: 1;
}

.bookmark-item-dialog.is-visible .bookmark-item-sheet {
    transform: translateY(0) scale(1);
}

.bookmark-item-sheet header {
    display: flex;
    margin-bottom: 18px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.bookmark-item-kicker {
    color: rgba(155, 231, 215, 0.84);
    font-size: 0.68rem;
    font-weight: 720;
    letter-spacing: 0.12em;
}

.bookmark-item-sheet h2 {
    margin: 6px 0 4px;
    font-size: 1.25rem;
}

.bookmark-item-sheet header p {
    margin: 0;
    color: rgba(232, 239, 247, 0.58);
    font-size: 0.78rem;
}

.bookmark-item-close {
    width: 34px;
    height: 34px;
    padding: 0 0 2px;
    flex: 0 0 34px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    color: rgba(255, 255, 255, 0.74);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

#bookmark-item-form {
    display: grid;
    gap: 12px;
}

#bookmark-item-form label {
    display: grid;
    gap: 6px;
    color: rgba(232, 239, 247, 0.76);
    font-size: 0.8rem;
    font-weight: 620;
}

#bookmark-item-form label small {
    color: rgba(232, 239, 247, 0.42);
    font-weight: 500;
}

#bookmark-item-form input,
#bookmark-item-form select {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 11px;
    outline: none;
    background: rgba(6, 10, 15, 0.32);
    color: rgba(248, 251, 255, 0.94);
    font-size: 16px;
}

#bookmark-item-form input:focus,
#bookmark-item-form select:focus {
    border-color: rgba(155, 231, 215, 0.58);
    box-shadow: 0 0 0 3px rgba(155, 231, 215, 0.11);
}

#bookmark-item-form footer {
    display: flex;
    margin-top: 6px;
    justify-content: flex-end;
    gap: 10px;
}

#bookmark-item-form footer button {
    min-height: 40px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 10px;
    font: inherit;
    cursor: pointer;
}

#bookmark-item-form footer .secondary {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.09);
    color: rgba(255, 255, 255, 0.88);
}

#bookmark-item-form footer .primary {
    border-color: rgba(155, 231, 215, 0.30);
    background: rgba(123, 221, 204, 0.88);
    color: #10231f;
    font-weight: 680;
}

@media (max-width: 720px) {
    .bookmark-tab-placeholder {
        flex: 0 0 58px;
        min-width: 58px;
        height: 36px;
    }

    .bookmark-add-card {
        width: calc(50% - 6px);
        min-width: calc(50% - 6px);
        max-width: calc(50% - 6px);
        margin: 0 3px 6px;
    }

    .bookmark-custom-remove {
        opacity: 1;
    }

    .bookmark-item-dialog {
        padding: 0;
        place-items: end stretch;
    }

    .bookmark-item-sheet {
        width: 100%;
        max-width: none;
        max-height: min(88dvh, 720px);
        padding: 22px 18px calc(18px + env(safe-area-inset-bottom));
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 24px 24px 0 0;
        transform: translateY(18px) scale(0.98);
        transform-origin: center bottom;
    }

    .bookmark-item-dialog.is-visible .bookmark-item-sheet {
        transform: translateY(0) scale(1);
    }

    #bookmark-item-form footer button {
        min-width: 0;
        flex: 1 1 0;
    }

    /* Mobile bookmark and settings surfaces need their own scroll owner. */
    .mark .products {
        padding-right: 0;
        overflow-x: hidden;
        overflow-y: auto;
        box-sizing: border-box;
        overscroll-behavior: contain;
        scrollbar-gutter: stable both-edges;
        -webkit-overflow-scrolling: touch;
    }

    .mark .products .mainCont.selected {
        height: auto;
        min-height: 100%;
        align-content: flex-start;
    }

    .mark .products .mainCont.selected > [data-nav-items] {
        width: calc(100% - 20px);
        height: auto;
        min-height: 0;
        box-sizing: border-box;
        overflow: visible;
        flex: 0 0 auto;
    }

    .products [data-nav-items]:not(.bookmark-card-sorting-enabled) > .quick,
    .products [data-nav-items]:not(.bookmark-card-sorting-enabled) > .quicks,
    .products [data-nav-items]:not(.bookmark-card-sorting-enabled) > .quickjl {
        cursor: pointer;
        touch-action: pan-y;
        user-select: auto;
    }

    .products [data-nav-items]:not(.bookmark-card-sorting-enabled) > .quick:active,
    .products [data-nav-items]:not(.bookmark-card-sorting-enabled) > .quicks:active,
    .products [data-nav-items]:not(.bookmark-card-sorting-enabled) > .quickjl:active {
        transform: none;
    }

    .settings-bookmark-panel .settings-option-row:last-child {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .settings-bookmark-panel .settings-option-row:last-child > div {
        width: 100%;
        flex: 0 0 auto;
    }

    .set .settings-bookmark-panel #bookmark-center-reset {
        width: auto;
        max-width: 100%;
        min-height: 38px;
        padding: 0 14px;
        align-self: flex-start;
        white-space: nowrap;
    }

    .set .productss .mainConts {
        padding-right: 0;
        padding-left: 0;
        scrollbar-gutter: stable both-edges;
    }

    .settings-about-hero {
        height: 100px;
        min-height: 100px;
        max-height: 100px;
        padding: 11px 12px 30px;
        flex: 0 0 100px;
        align-self: flex-start;
    }

    .settings-about-identity {
        gap: 10px;
    }

    .settings-about-mark {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
        border-radius: 14px;
        font-size: 1.22rem;
    }

    .settings-about-copy h3 {
        margin: 1px 0 0;
        font-size: 1.22rem;
    }

    .settings-about-copy p {
        font-size: 0.72rem;
        line-height: 1.45;
    }

    .settings-about-version {
        right: 12px;
        bottom: 6px;
        min-height: 26px;
        padding: 0 9px;
    }

    .settings-about-manifesto {
        height: max-content;
        min-height: 0;
        padding: 11px 12px;
        align-self: start;
    }

    .settings-about-manifesto blockquote {
        margin: 4px 0 8px;
        font-size: 0.86rem;
        line-height: 1.45;
    }

    .settings-about-tags {
        gap: 5px;
    }

    .settings-about-tags span {
        min-height: 22px;
        padding: 0 8px;
        line-height: 22px;
    }

    .settings-about-layout {
        grid-auto-rows: max-content;
        align-items: start;
        flex: 0 0 auto;
    }

    .mark .products::-webkit-scrollbar,
    .set .productss .mainConts::-webkit-scrollbar {
        width: 4px;
    }
}

@media (pointer: coarse) and (min-width: 721px) {
    .mark .products {
        overflow-x: hidden;
        overflow-y: auto;
        box-sizing: border-box;
        overscroll-behavior: contain;
        scrollbar-gutter: stable both-edges;
        scrollbar-width: thin;
        scrollbar-color: rgba(220, 233, 244, 0.34) transparent;
        -webkit-overflow-scrolling: touch;
    }

    .mark .products .mainCont.selected {
        height: auto;
        min-height: 100%;
        align-content: flex-start;
    }

    .mark .products .mainCont.selected > [data-nav-items] {
        width: calc(100% - 40px);
        height: auto;
        min-height: 0;
        box-sizing: border-box;
        overflow: visible;
        flex: 0 0 auto;
    }

    .mark .products::-webkit-scrollbar {
        width: 6px;
    }

    .mark .products::-webkit-scrollbar-thumb {
        border-radius: 999px;
        background: rgba(220, 233, 244, 0.34);
    }
}

@media (max-width: 480px) {
    .bookmark-head {
        gap: 8px;
    }

    .bookmark-head > div:first-child {
        min-width: max-content;
        flex: 0 0 auto;
    }

    .bookmark-title {
        font-size: 1rem;
        line-height: 1.2;
        white-space: nowrap;
    }

    .bookmark-head-actions {
        gap: 7px;
    }

    .bookmark-search {
        width: min(150px, calc(100vw - 205px));
        min-width: 72px;
        padding: 0 10px;
    }
}

/* 收藏主导航与工具按钮共享同一行。 */
.mark .bookmark-head {
    position: absolute;
    top: 6px;
    right: 14px;
    z-index: 8;
    width: max-content;
    max-width: calc(100% - 28px);
    min-height: 32px;
    padding: 0;
    pointer-events: none;
}

.mark .bookmark-head-actions,
.mark .bookmark-head-actions > * {
    pointer-events: auto;
}

.mark .bookmark-search {
    flex-shrink: 0;
}

.mark .tab {
    flex: 0 0 44px;
    padding-right: 142px;
}

.bookmark-search-toggle svg,
#menu.bookmark-settings svg,
.bookmark-close svg {
    display: block;
    width: 17px;
    height: 17px;
    margin: auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: none;
}

#menu.bookmark-settings:hover svg,
#menu.bookmark-settings:active svg {
    transform: none;
}

.bookmark-search-toggle:hover,
#menu.bookmark-settings:hover,
.bookmark-close:hover {
    color: rgba(255, 255, 255, 0.96);
}

.mark .quick-alls {
    width: calc(100% - 40px);
    height: auto;
    margin: 10px 20px;
    flex: 1 1 100%;
    box-sizing: border-box;
}

@media (max-width: 720px) {
    .mark .bookmark-head {
        top: 5px;
        right: 10px;
        min-height: 32px;
        padding: 0;
        max-width: calc(100% - 20px);
    }

    .mark .tab {
        flex-basis: 42px;
        padding-right: 126px;
    }

    .mark .quick-alls {
        width: calc(100% - 20px);
        height: auto;
        margin: 8px 10px;
        padding-bottom: env(safe-area-inset-bottom, 0px);
    }
}

/* 收藏中心主导航采用完整圆角玻璃标签，与右侧工具组形成一体化工具栏。 */
.mark .tab {
    flex: 0 0 56px;
    height: 56px;
    min-height: 56px;
    max-height: 56px;
    padding: 6px 166px 6px 8px;
    gap: 6px;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 15px;
    background: rgba(8, 12, 18, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.mark .tab .tab-item {
    display: grid;
    flex: 0 0 auto;
    width: auto;
    min-width: 78px;
    height: 40px;
    min-height: 40px;
    padding: 0 16px;
    place-items: center;
    box-sizing: border-box;
    border: 1px solid transparent;
    border-radius: 11px;
    color: rgba(232, 239, 247, 0.58);
    background: transparent;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1;
    transition: color 180ms ease, background 180ms ease, border-color 180ms ease,
        box-shadow 180ms ease;
}

.mark .tab .tab-item::after {
    right: auto;
    bottom: 5px;
    left: 50%;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    opacity: 0;
    transform: translateX(-50%) scaleX(0.45);
}

.mark .tab .tab-item:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.045);
}

.mark .tab .tab-item.active {
    border-color: rgba(255, 255, 255, 0.09);
    color: var(--text-primary);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.055));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 6px 18px rgba(0, 0, 0, 0.12);
    font-size: 0.96rem;
    font-weight: 720;
}

.mark .tab .tab-item.active::after {
    opacity: 1;
    transform: translateX(-50%) scaleX(1);
}

.mark .bookmark-head {
    top: 12px;
}

.mark .bookmark-head-actions .status-actions {
    margin: 0;
    flex: 0 0 32px;
}

@media (max-width: 720px) {
    .mark .tab {
        flex-basis: 56px;
        height: 56px;
        min-height: 56px;
        max-height: 56px;
        padding: 6px 158px 6px 8px;
        gap: 6px;
    }

    .mark .tab .tab-item {
        min-width: 72px;
        height: 40px;
        min-height: 40px;
        padding: 0 13px;
        font-size: 0.9rem;
        line-height: 1;
    }

    .mark .tab .tab-item.active {
        font-size: 0.94rem;
    }

    .mark .bookmark-head {
        top: 12px;
    }
}

/* 收藏工具栏使用真实 Flex 布局，避免窄屏导航与操作按钮互相覆盖。 */
.mark .bookmark-navline {
    display: flex;
    width: calc(100% - 16px);
    min-width: 0;
    min-height: 56px;
    margin: 8px 8px 0;
    padding: 6px 8px;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 15px;
    background: rgba(8, 12, 18, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.mark .bookmark-navline > .tab {
    width: auto;
    min-width: 0;
    height: 42px;
    min-height: 42px;
    max-height: 42px;
    margin: 0;
    padding: 0;
    flex: 1 1 auto;
    gap: 6px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow-x: auto;
    overflow-y: hidden;
}

.mark .bookmark-navline > .bookmark-head {
    position: static;
    width: max-content;
    max-width: none;
    min-height: 32px;
    padding: 0;
    flex: 0 0 auto;
}

.mark .tab .tab-item::after,
.mark .tab .tab-item:hover::after {
    bottom: 4px;
    border-radius: 0;
    opacity: 0;
    transform: translateX(-50%) scaleX(0.45);
}

.mark .tab .tab-item.active::after,
.mark .tab .tab-item.active:hover::after {
    opacity: 1;
    transform: translateX(-50%) scaleX(1);
}

.mark .quick,
.mark .quicks {
    width: 18%;
    min-width: 18%;
    max-width: 18%;
    margin: 0 1% 2%;
}

@media (max-width: 720px) {
    .mark .bookmark-navline {
        width: calc(100% - 12px);
        margin: 6px 6px 0;
        padding: 6px;
        gap: 7px;
    }

    .mark .bookmark-navline > .tab {
        flex-basis: 0;
        height: 42px;
        min-height: 42px;
        max-height: 42px;
        padding: 0;
    }

    .mark .bookmark-navline > .bookmark-head {
        position: static;
        min-width: max-content;
        min-height: 32px;
        padding: 0;
    }

    .mark .quick,
    .mark .quicks {
        width: calc(50% - 6px);
        min-width: calc(50% - 6px);
        max-width: calc(50% - 6px);
        margin: 0 3px 6px;
    }
}

/* 收藏中心轻量层级：一级导航主导，分类栏与收藏入口降低容器感。 */
.mark .category-row {
    border-color: rgba(179, 195, 214, 0.07);
    background: rgba(18, 24, 32, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.mark .category-row:hover {
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.mark .quick,
.mark .quicks {
    border-color: rgba(255, 255, 255, 0.075);
    background: rgba(255, 255, 255, 0.045);
}

.mark .quick .quick-icon,
.mark .quicks .quick-icon {
    border-color: rgba(255, 255, 255, 0.05);
    background: rgba(8, 12, 18, 0.12);
}

@media (hover: hover) {
    .mark .quick:hover,
    .mark .quicks:hover {
        border-color: rgba(255, 255, 255, 0.14);
        background: rgba(255, 255, 255, 0.075);
    }
}

@media (max-width: 720px) {
    .bookmark-head {
        min-height: 54px;
        padding: 8px 10px 6px;
    }

    .mark .tab {
        flex-basis: 42px;
        height: 42px;
        min-height: 42px;
        max-height: 42px;
        gap: 8px;
    }

    .mark .tab .tab-item {
        flex-basis: auto;
        width: auto;
        min-width: 76px;
        height: 42px;
        min-height: 42px;
        padding: 0 14px;
        font-size: 0.92rem;
        font-weight: 600;
        line-height: 42px;
    }

    .mark .tab .tab-item.active {
        font-size: 0.96rem;
    }
}

@media (max-width: 480px) {
    .bookmark-head > .bookmark-head-actions {
        min-width: 0;
        flex: 1 1 auto;
    }
}

/* 收藏中心悬浮工具栏：搜索按需展开，操作入口统一为紧凑图标。 */
.bookmark-head {
    min-height: 44px;
    padding: 6px 14px 2px;
}

.bookmark-head-actions {
    gap: 7px;
}

.bookmark-search {
    width: 32px;
    min-width: 32px;
    height: 32px;
    padding: 0;
    gap: 0;
    overflow: hidden;
    transition: width 240ms var(--motion-ease), flex-basis 240ms var(--motion-ease), background-color 180ms ease,
        border-color 180ms ease, box-shadow 180ms ease;
}

.bookmark-search.is-expanded {
    width: min(220px, 30vw);
    background: rgba(18, 24, 32, 0.94);
    -webkit-backdrop-filter: blur(18px) saturate(1.08);
    backdrop-filter: blur(18px) saturate(1.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
}

.bookmark-search-toggle {
    display: grid;
    width: 30px;
    height: 30px;
    padding: 0;
    flex: 0 0 30px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
}

.bookmark-search input {
    width: 0;
    opacity: 0;
    pointer-events: none;
    transition: width 240ms var(--motion-ease), opacity 140ms ease;
}

.bookmark-search.is-expanded input {
    width: calc(100% - 38px);
    margin-right: 8px;
    opacity: 1;
    pointer-events: auto;
}

#menu.bookmark-settings,
.bookmark-close {
    width: 32px;
    min-width: 32px;
    height: 32px;
    flex: 0 0 32px;
}

#menu.bookmark-settings svg {
    width: 17px;
    height: 17px;
}

.bookmark-close {
    font-size: 1.15rem;
}

@media (max-width: 720px) {
    .bookmark-head {
        min-height: 44px;
        padding: 6px 10px 2px;
    }

    .bookmark-search,
    .bookmark-search.is-expanded {
        min-width: 32px;
    }

    .bookmark-search.is-expanded {
        width: min(200px, calc(100vw - 122px));
    }

    .bookmark-close {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }
}

@media (max-width: 480px) {
    .bookmark-search {
        width: 32px;
        min-width: 32px;
        padding: 0;
    }

    .bookmark-search.is-expanded {
        width: min(180px, calc(100vw - 118px));
    }
}

@media (max-width: 720px) {
    .mark .tab {
        flex: 0 0 56px;
        height: 56px;
        min-height: 56px;
        max-height: 56px;
        padding: 6px 158px 6px 8px;
        gap: 6px;
    }

    .mark .tab .tab-item {
        flex: 0 0 auto;
        width: auto;
        min-width: 72px;
        height: 40px;
        min-height: 40px;
        padding: 0 13px;
        font-size: 0.9rem;
        font-weight: 600;
        line-height: 1;
    }

    .mark .tab .tab-item.active {
        font-size: 0.94rem;
    }

    .mark .bookmark-head {
        top: 12px;
        min-height: 32px;
        padding: 0;
    }
}

/* 桌面收藏中心按实际卡片数量收缩，内容过多时只滚动卡片列表。 */
@media (min-width: 721px) {
    .mark {
        height: auto;
        min-height: 0;
        max-height: min(680px, calc(100vh - 96px));
    }

    .mark .products,
    .mark .products .mainCont.selected {
        height: auto;
        max-height: min(680px, calc(100vh - 96px));
    }

    .mark .products .quick-all,
    .mark .products .quick-alls,
    .mark .products .quick-jl {
        height: auto;
        max-height: min(560px, calc(100vh - 190px));
        flex: 0 1 auto;
    }
}

@media (min-width: 721px) {
    .mark {
        height: min(var(--bookmark-panel-height), calc(100vh - 96px));
        min-height: min(190px, calc(100vh - 96px));
        max-height: min(790px, calc(100vh - 96px));
    }

    .mark .products,
    .mark .products .mainCont.selected {
        height: 100%;
        max-height: none;
    }

    .mark .products .quick-all,
    .mark .products .quick-alls,
    .mark .products .quick-jl {
        height: auto;
        max-height: none;
        flex: 1 1 auto;
    }
}

/* 收藏中心桌面可见行数：默认六行，超出部分在卡片区滚动。 */
:root {
    --bookmark-panel-height: 790px;
}

html[data-bookmark-rows="1"] { --bookmark-panel-height: 190px; }
html[data-bookmark-rows="2"] { --bookmark-panel-height: 310px; }
html[data-bookmark-rows="3"] { --bookmark-panel-height: 430px; }
html[data-bookmark-rows="4"] { --bookmark-panel-height: 550px; }
html[data-bookmark-rows="5"] { --bookmark-panel-height: 670px; }
html[data-bookmark-rows="6"] { --bookmark-panel-height: 790px; }

@media (min-width: 721px) {
    .mark {
        height: min(var(--bookmark-panel-height), calc(100vh - 96px));
        min-height: min(190px, calc(100vh - 96px));
        max-height: min(790px, calc(100vh - 96px));
    }

    .mark .products,
    .mark .products .mainCont.selected {
        height: 100%;
        max-height: none;
    }

    .mark .products .quick-all,
    .mark .products .quick-alls,
    .mark .products .quick-jl {
        height: auto;
        max-height: none;
        flex: 1 1 auto;
    }
}

/* 收藏中心：Tab 与工具按钮组成一条独立悬浮工具栏。 */
.mark {
    overflow: visible;
}

.mark .bookmark-navline {
    position: absolute;
    top: -64px;
    left: 50%;
    z-index: 20;
    display: flex;
    width: min(920px, calc(100% - 72px));
    min-height: 52px;
    margin: 0;
    padding: 5px 7px;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(218, 234, 248, 0.28);
    border-radius: 999px;
    background:
        linear-gradient(110deg, rgba(255, 255, 255, 0.1), transparent 46%),
        rgba(12, 19, 29, 0.72);
    box-shadow:
        0 14px 34px rgba(0, 0, 0, 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(22px) saturate(135%);
    -webkit-backdrop-filter: blur(22px) saturate(135%);
    transform: translateX(-50%);
}

.mark .bookmark-navline > .tab {
    position: static;
    display: flex;
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    height: 42px;
    min-height: 42px;
    max-height: 42px;
    padding: 0;
    gap: 4px;
    overflow-x: auto;
    border: 0;
    border-radius: 999px;
    background: transparent;
    box-shadow: none;
}

.mark .bookmark-navline > .tab .tab-item {
    flex: 0 0 auto;
    width: auto;
    min-width: 72px;
    height: 42px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
}

.mark .bookmark-navline > .tab .tab-item.active {
    border-color: rgba(218, 234, 248, 0.22);
    background: rgba(255, 255, 255, 0.11);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.mark .bookmark-navline > .bookmark-head {
    position: static;
    flex: 0 0 auto;
    width: auto;
    min-height: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.mark .bookmark-navline .bookmark-head-actions {
    gap: 6px;
}

.mark .bookmark-navline .bookmark-search,
.mark .bookmark-navline .status-check-btn,
.mark .bookmark-navline #menu.bookmark-settings,
.mark .bookmark-navline .bookmark-close {
    width: 34px;
    min-width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-color: rgba(218, 234, 248, 0.22);
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.mark .bookmark-navline .bookmark-search:hover,
.mark .bookmark-navline .status-check-btn:hover,
.mark .bookmark-navline #menu.bookmark-settings:hover,
.mark .bookmark-navline .bookmark-close:hover {
    border-color: rgba(218, 234, 248, 0.34);
    background: rgba(255, 255, 255, 0.14);
}

.mark .bookmark-navline .bookmark-search.is-expanded {
    width: min(220px, 26vw);
    flex-basis: min(220px, 26vw);
}

/* 新增卡片必须与普通收藏卡片保持相同占位尺寸 */
.mark .quick,
.mark .quicks,
.mark .bookmark-add-card {
    width: 18%;
    min-width: 18%;
    max-width: 18%;
    min-height: 76px;
    margin: 0 1% 2%;
    border-radius: var(--radius-card);
}

@media (max-width: 720px) {
    .mark .bookmark-navline {
        top: -58px;
        width: calc(100% - 16px);
        min-height: 50px;
        padding: 4px 5px;
        gap: 5px;
    }

    .mark .bookmark-navline > .tab {
        flex: 1 1 auto;
        width: auto;
        height: 40px;
        min-height: 40px;
        max-height: 40px;
        padding: 0;
        gap: 2px;
    }

    .mark .bookmark-navline > .tab .tab-item {
        min-width: 62px;
        height: 40px;
        min-height: 40px;
        padding: 0 11px;
        font-size: 0.86rem;
    }

    .mark .bookmark-navline > .bookmark-head {
        position: static;
        min-height: 32px;
    }

    .mark .bookmark-navline .bookmark-head-actions {
        gap: 4px;
    }

    .mark .bookmark-navline .bookmark-search,
    .mark .bookmark-navline .status-check-btn,
    .mark .bookmark-navline #menu.bookmark-settings,
    .mark .bookmark-navline .bookmark-close {
        width: 32px;
        min-width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

    .mark .bookmark-navline .bookmark-search.is-expanded {
        width: min(168px, calc(100vw - 224px));
        flex-basis: min(168px, calc(100vw - 224px));
    }

    .mark .quick,
    .mark .quicks,
    .mark .bookmark-add-card {
        width: calc(50% - 6px);
        min-width: calc(50% - 6px);
        max-width: calc(50% - 6px);
        margin: 0 3px 8px;
    }
}

/* Shared bookmark/settings surface: keep the panel frame stable while the view changes. */
.surface-shell {
    position: absolute;
    z-index: 2000;
    display: flex;
    width: min(1080px, calc(100vw - 64px));
    max-width: 1080px;
    height: min(var(--bookmark-panel-height), calc(100vh - 96px));
    min-height: min(190px, calc(100vh - 96px));
    max-height: min(790px, calc(100vh - 96px));
    margin-top: 0;
    align-items: stretch;
    flex-direction: column;
    overflow: visible;
    isolation: isolate;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-panel);
    background: var(--glass-surface-strong);
    box-shadow: var(--shadow-panel), var(--glass-highlight);
    -webkit-backdrop-filter: blur(20px) saturate(1.12);
    backdrop-filter: blur(20px) saturate(1.12);
    visibility: hidden;
}

.surface-shell.surface-view-ready {
    visibility: visible;
}

.surface-shell::before {
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    background:
        linear-gradient(rgba(7, 11, 16, 0.12), rgba(7, 11, 16, 0.12)),
        var(--main-background-color);
    content: "";
    pointer-events: none;
}

.surface-shell > .mark,
.surface-shell > .set {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: none;
    width: 100%;
    max-width: none;
    height: 100%;
    min-height: 0;
    max-height: none;
    margin: 0;
    flex: 1 1 auto;
    border: 0;
    border-radius: inherit;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    opacity: 0;
    filter: none;
    transform: translateY(8px) scale(0.985);
    visibility: hidden;
    pointer-events: none;
    transition: opacity 220ms ease, transform 260ms var(--motion-ease);
    will-change: opacity, transform;
}

.surface-shell > .mark::before {
    display: none;
}

.surface-shell > .set {
    align-items: stretch;
    overflow: visible;
}

.surface-shell > .mark.surface-view-active,
.surface-shell > .set.surface-view-active,
.surface-shell > .mark.surface-view-leaving,
.surface-shell > .set.surface-view-leaving {
    display: flex;
    visibility: visible;
}

.surface-shell > .mark.surface-view-active,
.surface-shell > .set.surface-view-active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
    .surface-shell > .mark,
    .surface-shell > .set {
        transition: none;
        transform: none;
    }
}

@media (max-width: 720px) {
    .surface-shell {
        width: calc(100vw - 16px);
        height: calc(var(--app-height, 100vh) - 20px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
        min-height: 0;
        max-height: none;
        border-radius: 18px;
    }
}

/* 悬浮工具栏可以越界，收藏内容仍在面板圆角内裁切并独立滚动。 */
.mark .products {
    min-height: 0;
    padding-top: 12px;
    overflow: hidden;
    box-sizing: border-box;
    border-radius: inherit;
}

.mark .products .mainCont.selected {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 0;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    overflow: hidden;
}

.mark .products .category-tools,
.mark .products .passcode {
    flex: 0 0 auto;
}

.mark .products .quick-all,
.mark .products .quick-alls,
.mark .products .quick-jl {
    width: calc(100% - 40px);
    height: auto;
    min-height: 0;
    margin: 0 20px 16px;
    padding-bottom: 4px;
    flex: 1 1 auto;
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(220, 233, 244, 0.32) transparent;
}

/* 第一排卡片为点击和拖动状态预留顶部缓冲，避免边框/阴影越过内容区。 */
.mark .products .quick-all,
.mark .products .quick-alls,
.mark .products .quick-jl {
    padding-top: 6px;
}

.mark .products [data-nav-items] > .quick:active,
.mark .products [data-nav-items] > .quicks:active,
.mark .products [data-nav-items] > .quickjl:active {
    transform: none !important;
}

.mark .products .quick-all::-webkit-scrollbar,
.mark .products .quick-alls::-webkit-scrollbar,
.mark .products .quick-jl::-webkit-scrollbar {
    width: 6px;
}

.mark .products .quick-all::-webkit-scrollbar-thumb,
.mark .products .quick-alls::-webkit-scrollbar-thumb,
.mark .products .quick-jl::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(220, 233, 244, 0.32);
}

@media (max-width: 720px) {
    /* 移动端面板接近满屏，工具栏改为面板内顶部悬浮，避免负定位超出视口。 */
    .mark .bookmark-navline {
        top: 8px;
        width: calc(100% - 16px);
    }

    .mark .products {
        padding-top: 68px;
    }

    .mark .products .quick-all,
    .mark .products .quick-alls,
    .mark .products .quick-jl {
        width: calc(100% - 20px);
        margin: 0 10px 10px;
        padding-bottom: calc(6px + env(safe-area-inset-bottom, 0px));
        -webkit-overflow-scrolling: touch;
    }
}

@media (min-width: 721px) {
    .mark {
        height: min(var(--bookmark-panel-height), calc(100vh - 96px));
        min-height: min(190px, calc(100vh - 96px));
        max-height: min(790px, calc(100vh - 96px));
    }

    .mark .products,
    .mark .products .mainCont.selected {
        height: 100%;
        max-height: none;
    }

    .mark .products .quick-all,
    .mark .products .quick-alls,
    .mark .products .quick-jl {
        height: auto;
        max-height: none;
        flex: 1 1 auto;
    }
}

/* 收藏内容由 mark 统一承接溢出，避免不同手机命中不同媒体查询后无法滚动。 */
.mark {
    overflow: visible;
}

.mark .bookmark-navline {
    position: absolute;
    overflow: visible;
    transform: translateX(-50%);
}

.mark .products {
    height: 100%;
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(220, 233, 244, 0.34) transparent;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
    flex: 1 1 auto;
}

.mark .products .mainCont.selected {
    height: auto;
    min-height: 100%;
    max-height: none;
    align-content: flex-start;
    overflow: visible;
}

.mark .products .mainCont.selected > [data-nav-items] {
    height: auto;
    min-height: 0;
    overflow: visible;
    flex: 0 0 auto;
}

.mark .products .quick-all,
.mark .products .quick-alls,
.mark .products .quick-jl {
    height: auto;
    max-height: none;
    overflow: visible;
    flex: 0 0 auto;
}

.mark .products::-webkit-scrollbar {
    width: 6px;
}

.mark .products::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(220, 233, 244, 0.34);
}

/* 防止滚动规则改变工具栏原有的外悬位置。 */
.mark .bookmark-navline {
    z-index: 20;
}

/* Keep the bookmark toolbar inside narrow desktop viewports. The default six-row
   panel remains intact; only the toolbar changes from an external pill to an
   in-panel header when there is not enough horizontal room around the panel. */
@media (max-width: 920px) {
    .surface-shell {
        width: calc(100vw - 16px);
    }

    .surface-shell > .mark {
        width: 100%;
    }

    .mark .bookmark-navline {
        top: 8px;
        left: 0;
        width: calc(100% - 16px);
        max-width: none;
        margin: 0 8px;
        transform: none;
    }

    .mark .bookmark-navline > .tab {
        min-width: 0;
        flex: 1 1 auto;
    }

    .mark .bookmark-navline > .bookmark-head {
        min-width: 0;
        max-width: max-content;
    }

    .mark .products {
        padding-top: 68px;
    }
}

/* Light bookmark surfaces need their own contrast because the legacy cards were
   tuned for a dark wallpaper and otherwise become nearly borderless. */
html[data-sksir-theme="light"] .mark .bookmark-navline,
html[data-sksir-theme="light"] .mark .category-row,
html[data-sksir-theme="light"] .mark .quick,
html[data-sksir-theme="light"] .mark .quicks,
html[data-sksir-theme="light"] .mark .bookmark-add-card {
    border-color: rgba(19, 35, 46, 0.24);
    background: rgba(255, 255, 255, 0.78);
    color: #13232e;
    box-shadow: 0 10px 28px rgba(38, 56, 71, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.90);
}

html[data-sksir-theme="light"] .mark .bookmark-navline > .tab .tab-item,
html[data-sksir-theme="light"] .mark .bookmark-navline .bookmark-search,
html[data-sksir-theme="light"] .mark .bookmark-navline .status-check-btn,
html[data-sksir-theme="light"] .mark .bookmark-navline #menu.bookmark-settings,
html[data-sksir-theme="light"] .mark .bookmark-navline .bookmark-close {
    border-color: rgba(19, 35, 46, 0.20);
    color: rgba(19, 35, 46, 0.82);
    background: rgba(248, 251, 253, 0.86);
}

html[data-sksir-theme="light"] .mark .bookmark-navline > .tab .tab-item.active {
    border-color: rgba(22, 124, 115, 0.46);
    background: rgba(155, 231, 215, 0.30);
    color: #13232e;
}

html[data-sksir-theme="light"] .mark .quick .quick-title,
html[data-sksir-theme="light"] .mark .quicks .quick-title,
html[data-sksir-theme="light"] .mark .quick .quick-desc,
html[data-sksir-theme="light"] .mark .quicks .quick-desc {
    color: #13232e;
    text-shadow: none;
}

html[data-sksir-theme="light"] .mark .quick .quick-desc,
html[data-sksir-theme="light"] .mark .quicks .quick-desc {
    color: rgba(19, 35, 46, 0.68);
}

@media (prefers-color-scheme: light) {
    html[data-sksir-theme="system"] .mark .bookmark-navline,
    html[data-sksir-theme="system"] .mark .category-row,
    html[data-sksir-theme="system"] .mark .quick,
    html[data-sksir-theme="system"] .mark .quicks,
    html[data-sksir-theme="system"] .mark .bookmark-add-card {
        border-color: rgba(19, 35, 46, 0.24);
        background: rgba(255, 255, 255, 0.78);
        color: #13232e;
        box-shadow: 0 10px 28px rgba(38, 56, 71, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.90);
    }

    html[data-sksir-theme="system"] .mark .bookmark-navline > .tab .tab-item,
    html[data-sksir-theme="system"] .mark .bookmark-navline .bookmark-search,
    html[data-sksir-theme="system"] .mark .bookmark-navline .status-check-btn,
    html[data-sksir-theme="system"] .mark .bookmark-navline #menu.bookmark-settings,
    html[data-sksir-theme="system"] .mark .bookmark-navline .bookmark-close {
        border-color: rgba(19, 35, 46, 0.20);
        color: rgba(19, 35, 46, 0.82);
        background: rgba(248, 251, 253, 0.86);
    }

    html[data-sksir-theme="system"] .mark .bookmark-navline > .tab .tab-item.active {
        border-color: rgba(22, 124, 115, 0.46);
        background: rgba(155, 231, 215, 0.30);
        color: #13232e;
    }

    html[data-sksir-theme="system"] .mark .quick .quick-title,
    html[data-sksir-theme="system"] .mark .quicks .quick-title,
    html[data-sksir-theme="system"] .mark .quick .quick-desc,
    html[data-sksir-theme="system"] .mark .quicks .quick-desc {
        color: #13232e;
        text-shadow: none;
    }

    html[data-sksir-theme="system"] .mark .quick .quick-desc,
    html[data-sksir-theme="system"] .mark .quicks .quick-desc {
        color: rgba(19, 35, 46, 0.68);
    }
}

/* A tall six-row panel can still start near the top of a short laptop viewport.
   Move only the toolbar into the panel there; keep the desktop panel width. */
@media (min-width: 921px) and (max-height: 920px) {
    .mark .bookmark-navline {
        top: 8px;
        left: 0;
        width: calc(100% - 16px);
        max-width: none;
        margin: 0 8px;
        transform: none;
    }

    .mark .products {
        padding-top: 68px;
    }
}

/* Theme surfaces must win over the legacy desktop rules above. */
html[data-sksir-theme="light"] .mark .category-item {
    color: rgba(19, 35, 46, 0.72);
}

html[data-sksir-theme="light"] .mark .category-item.active {
    color: #13232e;
    background: rgba(155, 231, 215, 0.34);
    box-shadow: inset 0 0 0 1px rgba(22, 124, 115, 0.18);
}

html[data-sksir-theme="light"] .mark .category-anim-bg {
    background: rgba(155, 231, 215, 0.30);
    box-shadow: inset 0 0 0 1px rgba(22, 124, 115, 0.16);
}

@media (prefers-color-scheme: light) {
    html[data-sksir-theme="system"] .mark .category-item {
        color: rgba(19, 35, 46, 0.72);
    }

    html[data-sksir-theme="system"] .mark .category-item.active {
        color: #13232e;
        background: rgba(155, 231, 215, 0.34);
        box-shadow: inset 0 0 0 1px rgba(22, 124, 115, 0.18);
    }

    html[data-sksir-theme="system"] .mark .category-anim-bg {
        background: rgba(155, 231, 215, 0.30);
        box-shadow: inset 0 0 0 1px rgba(22, 124, 115, 0.16);
    }
}

html[data-sksir-theme="light"] .bg-all {
    background:
        radial-gradient(circle at 50% 36%, rgba(22, 124, 115, 0.12), transparent 32%),
        radial-gradient(circle at 12% 100%, rgba(160, 107, 18, 0.10), transparent 36%),
        #eaf0f4;
}

html[data-sksir-theme="light"] .cover {
    background-image: radial-gradient(rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.12) 100%), radial-gradient(rgba(255, 255, 255, 0) 33%, rgba(255, 255, 255, 0.20) 166%);
}

html[data-sksir-theme="light"] .all-search,
html[data-sksir-theme="light"] .search-engine,
html[data-sksir-theme="light"] .quick-launch-context-menu {
    border-color: rgba(20, 35, 48, 0.16);
    background: rgba(248, 251, 253, 0.72);
    box-shadow: 0 14px 34px rgba(38, 56, 71, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

html[data-sksir-theme="light"] #icon-se,
html[data-sksir-theme="light"] #icon-sou,
html[data-sksir-theme="light"] .quick-launch-context-name,
html[data-sksir-theme="light"] .quick-launch-context-menu button {
    color: rgba(20, 35, 48, 0.78);
}

@media (prefers-color-scheme: light) {
    html[data-sksir-theme="system"] .bg-all {
        background:
            radial-gradient(circle at 50% 36%, rgba(22, 124, 115, 0.12), transparent 32%),
            radial-gradient(circle at 12% 100%, rgba(160, 107, 18, 0.10), transparent 36%),
            #eaf0f4;
    }

    html[data-sksir-theme="system"] .cover {
        background-image: radial-gradient(rgba(255, 255, 255, 0) 0, rgba(255, 255, 255, 0.12) 100%), radial-gradient(rgba(255, 255, 255, 0) 33%, rgba(255, 255, 255, 0.20) 166%);
    }

    html[data-sksir-theme="system"] .all-search,
    html[data-sksir-theme="system"] .search-engine,
    html[data-sksir-theme="system"] .quick-launch-context-menu {
        border-color: rgba(20, 35, 48, 0.16);
        background: rgba(248, 251, 253, 0.72);
        box-shadow: 0 14px 34px rgba(38, 56, 71, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.82);
    }

    html[data-sksir-theme="system"] #icon-se,
    html[data-sksir-theme="system"] #icon-sou,
    html[data-sksir-theme="system"] .quick-launch-context-name,
    html[data-sksir-theme="system"] .quick-launch-context-menu button {
        color: rgba(20, 35, 48, 0.78);
    }
}
