/* CJSW_FRONTEND_HOT_DEFAULT_V3_20260825 */
:root {
    /* 纯中性浅色主题：背景、卡片、文字、边框全部使用无偏色灰阶 */
    --bg-page: #ffffff;
    --hero-box-bg: #f7f7f7;
    --hero-box-border: #e7e7e7;
    --card-inner-bg: #f8f8f8;
    --card-border: #e6e6e6;
    --card-hover-border: #c9c9c9;
    --card-hover-bg: #f1f1f1;
    --site-card-border: #efefef;
    --site-card-hover-border: #d8d8d8;
    --text-primary: #242424;
    --text-secondary: #666666;
    --text-tertiary: #999999;
    --accent: #2563eb;
    --accent-hover: #1d4ed8;
    --accent-light: #f0f0f0;
    --header-bg: #ffffff;
    --header-border: #ececec;
    --footer-bg: #ffffff;
    --footer-border: #ececec;
    --tag-bg: #ef4444;
    
    --search-pill-container-bg: #ededed;
    --search-pill-active-bg: #ffffff;
    --search-input-bg: #ffffff;
    --search-input-border: #dedede;
    --engine-tag-active-bg: #ffffff;
    --engine-tag-active-shadow: 0 1px 4px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.04);
    
    --deco-icon-color: rgba(0, 0, 0, 0.065);
    --float-btn-bg: #ffffff;
    --float-btn-border: #dedede;
    --float-btn-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    
    --title-deco-bg: rgba(37, 99, 235, 0.16);
    
    --hero-pad: 4px;
    --hero-outer-radius: 24px;
    --hero-inner-radius: calc(var(--hero-outer-radius) - var(--hero-pad));
    
    --modal-bg: #ffffff;
    --modal-border: #dcdcdc;
    --modal-sub-bg: #f2f2f2;
    --modal-guide-border: #e1e1e1;
    --modal-mask-soft: rgba(24, 24, 24, .12);
    --modal-mask-strong: rgba(24, 24, 24, .46);
    
    --scrollbar-track: #ffffff;
    --scrollbar-thumb: #d8d8d8;
    --scrollbar-thumb-hover: #c4c4c4;

    --sort-btn-bg: #f1f1f1;
    --sort-btn-active-bg: #ffffff;
    --sort-btn-active-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);

    --motion-spring: cubic-bezier(.16, 1, .3, 1);
    --motion-smooth: cubic-bezier(.2, .8, .2, 1);
    --motion-exit: cubic-bezier(.4, 0, 1, 1);
}

body.dark,
html.dark {
    /* 纯中性深灰主题：所有基础层级仅使用黑白灰，不带蓝/紫/棕色偏色 */
    --bg-page: #151515;
    --hero-box-bg: #1c1c1c;
    --hero-box-border: #292929;
    --card-inner-bg: #1d1d1d;
    --card-border: #2b2b2b;
    --card-hover-border: #3d3d3d;
    --card-hover-bg: #252525;
    --site-card-border: #2b2b2b;
    --site-card-hover-border: #3d3d3d;
    --text-primary: #eeeeee;
    --text-secondary: #a3a3a3;
    --text-tertiary: #707070;
    --accent: #4384ed;
    --accent-hover: #5b96f3;
    --accent-light: #262626;
    --header-bg: #181818;
    --header-border: #282828;
    --footer-bg: #181818;
    --footer-border: #282828;
    --tag-bg: #dd4b4b;

    --search-pill-container-bg: #232323;
    --search-pill-active-bg: #303030;
    --search-input-bg: #1b1b1b;
    --search-input-border: #303030;
    --engine-tag-active-bg: #2d2d2d;
    --engine-tag-active-shadow: 0 1px 4px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(255, 255, 255, 0.045);
    
    --deco-icon-color: rgba(255, 255, 255, 0.055);
    --float-btn-bg: #202020;
    --float-btn-border: #303030;
    --float-btn-shadow: 0 5px 16px rgba(0, 0, 0, 0.34);
    
    --title-deco-bg: rgba(67, 132, 237, 0.20);
    
    --modal-bg: #202020;
    --modal-border: #343434;
    --modal-sub-bg: #292929;
    --modal-guide-border: #383838;
    --modal-mask-soft: rgba(10, 10, 10, .18);
    --modal-mask-strong: rgba(10, 10, 10, .56);
    
    --scrollbar-track: #181818;
    --scrollbar-thumb: #353535;
    --scrollbar-thumb-hover: #474747;

    --sort-btn-bg: #242424;
    --sort-btn-active-bg: #303030;
    --sort-btn-active-shadow: 0 1px 4px rgba(0, 0, 0, 0.34);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    -webkit-tap-highlight-color: transparent;
}

html {
    scrollbar-width: thin;
    scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
    -webkit-text-size-adjust: 100%;
}

::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: var(--scrollbar-track); }
::-webkit-scrollbar-thumb { background: var(--scrollbar-thumb); border-radius: 999px; transition: background-color 0.2s ease; }
::-webkit-scrollbar-thumb:hover { background: var(--scrollbar-thumb-hover); }

body {
    background-color: var(--bg-page);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: background-color 0.15s ease, color 0.15s ease;
    overflow-x: hidden;
    width: 100%;
}

.header {
    position: sticky;
    top: 0;
    z-index: 50;
    height: 60px;
    background: var(--header-bg);
    border-bottom: 1px solid var(--header-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 6%;
    transition: background-color .28s var(--motion-smooth), border-color .28s var(--motion-smooth), box-shadow .28s var(--motion-smooth), backdrop-filter .28s var(--motion-smooth);
}
.header.is-scrolled {
    box-shadow: 0 8px 28px rgba(15, 23, 42, .055);
    backdrop-filter: saturate(135%) blur(14px);
    -webkit-backdrop-filter: saturate(135%) blur(14px);
}
body.dark .header.is-scrolled { box-shadow: 0 10px 34px rgba(0, 0, 0, .24); }

.brand-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    height: 100%;
    padding: 4px 0;
}

.brand-logo-img {
    height: 44px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
    display: block;
    transform-origin: left center;
    transition: opacity .22s var(--motion-smooth), transform .32s var(--motion-spring);
}
.brand-logo-link:active .brand-logo-img { transform: scale(.965); }

.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
    justify-content: flex-end;
}
.header-actions > * { min-width: 0; }

.user-action-box { display: flex; align-items: center; min-width: 0; max-width: 100%; }
.btn-auth-open {
    background: var(--accent-light);
    color: var(--accent);
    border: 1px solid transparent;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.btn-auth-open:hover { background: var(--accent); color: #fff; }
.user-logged-in {
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    background: var(--card-inner-bg);
    border: 1px solid var(--card-border);
    padding: 4px 10px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    font-weight: 500;
}
.user-email-text { max-width: 140px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-primary); }
.btn-logout { background: none; border: none; color: var(--text-tertiary); cursor: pointer; font-size: 14px; display: flex; align-items: center; padding: 2px; transition: color 0.15s ease; }
.btn-logout:hover { color: var(--tag-bg); }

.btn-home {
    flex-shrink: 0;
    background: transparent;
    border: 1.5px dashed var(--accent);
    color: var(--accent);
    padding: 6px 15px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}
.btn-home:hover { background: var(--accent-light); }

.container {
    max-width: 1240px;
    width: 92%;
    margin: 0 auto;
    flex: 1;
    min-width: 0;
}

.hero-search-container {
    background: transparent;
    border: 1px solid var(--hero-box-border);
    border-radius: var(--hero-outer-radius);
    padding: var(--hero-pad);
    margin: 24px auto 38px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.hero-search-inner {
    background: var(--hero-box-bg);
    border-radius: var(--hero-inner-radius);
    padding: 40px 32px 34px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    --hero-px: 0px;
    --hero-py: 0px;
    --hero-glow-x: 50%;
    --hero-glow-y: 50%;
    isolation: isolate;
}
.hero-search-inner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(420px circle at var(--hero-glow-x) var(--hero-glow-y), color-mix(in srgb, var(--accent) 5%, transparent), transparent 66%);
    opacity: .9;
}

.deco-icon {
    position: absolute;
    color: var(--deco-icon-color);
    pointer-events: none;
    user-select: none;
    z-index: 1;
    line-height: 1;
    translate: var(--hero-px) var(--hero-py);
    transition: translate .55s var(--motion-spring), color .28s var(--motion-smooth);
    will-change: translate;
}
.deco-1 { top: 22px; left: 3.5%; font-size: 40px; transform: rotate(-12deg); }
.deco-2 { top: 24px; right: 4%; font-size: 36px; transform: rotate(14deg); translate: calc(0px - var(--hero-px)) calc(0px - var(--hero-py)); }
.deco-3 { bottom: 22px; left: 6%; font-size: 32px; transform: rotate(8deg); }
.deco-4 { bottom: 20px; right: 7%; font-size: 30px; transform: rotate(-10deg); translate: calc(0px - var(--hero-px)) calc(0px - var(--hero-py)); }
.deco-5 { top: 50%; left: 1.5%; font-size: 28px; transform: translateY(-50%) rotate(6deg); }
.deco-6 { top: 48%; right: 1.5%; font-size: 28px; transform: translateY(-50%) rotate(-8deg); translate: calc(0px - var(--hero-px)) calc(0px - var(--hero-py)); }

.hero-search-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 620px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 4px;
}

.hero-search-inner h1 {
    font-size: clamp(22px, 3.5vw, 28px);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.2px;
}

.dujitang-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 22px;
    max-width: 100%;
    line-height: 1.5;
    cursor: pointer;
    user-select: none;
    transition: opacity 0.2s ease, color 0.15s ease;
    opacity: 0.85;
    padding: 0 10px;
}
.dujitang-desc:hover { opacity: 1; color: var(--accent); }

.category-pills {
    display: inline-flex;
    align-items: center;
    background: var(--search-pill-container-bg);
    padding: 4px;
    border-radius: 30px;
    margin-bottom: 16px;
    gap: 3px;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    position: relative;
    isolation: isolate;
}
.category-pills::-webkit-scrollbar { display: none; }

.cat-btn {
    border: none;
    outline: none;
    background: transparent !important;
    color: var(--text-secondary);
    font-size: 12.5px;
    font-weight: 500;
    padding: 5px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: color .24s var(--motion-smooth), opacity .24s var(--motion-smooth), transform .24s var(--motion-spring);
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}
.cat-btn.active { color: var(--text-primary); font-weight: 600; }

.search-form { width: 100%; position: relative; margin-bottom: 16px; }
.search-input-box {
    width: 100%;
    height: 44px;
    background: var(--search-input-bg);
    border: 1px solid var(--search-input-border);
    border-radius: 22px;
    display: flex;
    align-items: center;
    padding: 0 8px 0 18px;
    transition: border-color .28s var(--motion-smooth), box-shadow .34s var(--motion-smooth), background-color .28s var(--motion-smooth);
}
.search-input-box:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 9%, transparent);
}

.search-input {
    flex: 1;
    height: 100%;
    border: none !important;
    outline: none !important;
    background: transparent;
    font-size: 14px;
    color: var(--text-primary);
    min-width: 0;
    padding-right: 6px;
}
.search-input::placeholder { color: var(--text-tertiary); }

.search-btn {
    width: 36px;
    height: 36px;
    border: none !important;
    background: transparent;
    color: var(--text-secondary);
    font-size: 19px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 50%;
    transition: color .24s var(--motion-smooth), background-color .24s var(--motion-smooth);
}
.search-btn:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); color: var(--accent); }

.engine-text-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 32px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 6px;
    position: relative;
    isolation: isolate;
}
.engine-text-tabs::-webkit-scrollbar { display: none; }

.engine-tag {
    cursor: pointer;
    background: transparent !important;
    color: var(--text-secondary);
    font-size: 12.5px;
    font-weight: 500;
    padding: 4px 13px;
    border-radius: 14px;
    border: none;
    transition: color .24s var(--motion-smooth), opacity .24s var(--motion-smooth), transform .24s var(--motion-spring);
    white-space: nowrap;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}
.engine-tag:hover { color: var(--text-primary); }
.engine-tag.active { color: var(--accent); font-weight: 600; }

.motion-indicator {
    position: absolute;
    left: 0;
    z-index: 1;
    pointer-events: none;
    width: var(--indicator-w, 0px);
    transform: translate3d(var(--indicator-x, 0px), 0, 0);
    transition: transform .46s var(--motion-spring), width .46s var(--motion-spring), background-color .28s var(--motion-smooth), box-shadow .28s var(--motion-smooth);
    will-change: transform, width;
}
.motion-indicator.no-motion { transition: none !important; }
.category-indicator { top: 4px; bottom: 4px; border-radius: 20px; background: var(--search-pill-active-bg); box-shadow: 0 1px 3px rgba(0, 0, 0, .06); }
.engine-indicator { top: 4px; bottom: 4px; border-radius: 14px; background: var(--engine-tag-active-bg); box-shadow: var(--engine-tag-active-shadow); }
.sort-indicator { top: 2.5px; bottom: 2.5px; border-radius: 14px; background: var(--sort-btn-active-bg); box-shadow: var(--sort-btn-active-shadow); }

/* 我的网址专区 */
.my-sites-section { margin-top: 24px; margin-bottom: 10px; }
.my-sites-sync-status { font-size: 11px; font-weight: normal; color: var(--text-tertiary); margin-left: 8px; display: inline-flex; align-items: center; }

.my-sites-progress-box {
    margin: 8px 0 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.my-sites-progress-box[hidden] {
    display: none !important;
}
.my-sites-progress {
    height: 3px;
    width: 100%;
    background: var(--card-border);
    border-radius: 999px;
    overflow: hidden;
}
.my-sites-progress span {
    display: block;
    height: 100%;
    width: 35%;
    background: var(--accent);
    border-radius: 999px;
    animation: mysitesProgress 1.1s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
.my-sites-loading-text {
    font-size: 11.5px;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
@keyframes mysitesProgress {
    0% { transform: translateX(-120%); }
    100% { transform: translateX(350%); }
}

.btn-add-mysite {
    border: 1px dashed var(--accent);
    background: transparent;
    color: var(--accent);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s ease;
}
.btn-add-mysite:hover { background: var(--accent-light); }

/* ================= APP 模式网格与卡片 ================= */
.grid-app {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 14px;
    align-items: start;
}

.card-app {
    background: transparent;
    border: 1px solid var(--site-card-border);
    border-radius: 12px;
    padding: 3px;
    text-decoration: none;
    display: block;
    position: relative;
    transition: border-color .28s var(--motion-smooth), box-shadow .34s var(--motion-spring);
    width: 100%;
    min-width: 0;
    overflow: hidden;
    align-self: start;
    box-sizing: border-box;
}
.card-app:hover {
    border-color: var(--site-card-hover-border);
    box-shadow: 0 6px 16px rgba(15, 23, 42, .06);
}

.card-app > a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.card-app-inner {
    background: var(--card-inner-bg);
    border-radius: 9px;
    height: 84px;
    display: grid;
    grid-template-rows: 36px 16px;
    row-gap: 6px;
    align-content: center;
    justify-items: center;
    padding: 8px 6px;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    transition: background-color .28s var(--motion-smooth);
    width: 100%;
    box-sizing: border-box;
}
.card-app:hover .card-app-inner {
    background: var(--card-hover-bg);
}

.card-app .icon-box {
    width: 36px;
    height: 36px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    justify-self: center;
    background: transparent;
    border: 0;
    border-radius: 10px;
    color: var(--text-secondary);
    flex-shrink: 0;
    overflow: visible;
    position: relative;
    transform: none !important;
    box-shadow: none;
}

.card-app .icon-box img {
    display: block;
    width: 32px;
    height: 32px;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center center;
    border-radius: 8px;
    margin: 0;
    padding: 0;
    background: transparent;
    box-shadow: none;
    filter: drop-shadow(0 1px 1.5px rgba(15, 23, 42, .10));
    transform: scale(1);
    transition: transform .28s var(--motion-spring), filter .28s var(--motion-smooth), opacity .2s ease;
}
.card-app:hover .icon-box img {
    transform: scale(1.06);
    filter: drop-shadow(0 3px 4px rgba(15, 23, 42, .14));
}
body.dark .card-app .icon-box img {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .34));
}
body.dark .card-app:hover .icon-box img {
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .42));
}
.card-app .icon-box .text-fallback {
    display: none;
    width: 30px;
    height: 30px;
    place-items: center;
    text-align: center;
    line-height: 1;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid var(--card-border);
    border-radius: 50%;
}

.card-app .name {
    width: 100%;
    height: 16px;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 2px;
    line-height: 16px;
    align-self: center;
}

.card-app.card-highlight-red {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 1px #ef4444, 0 5px 16px rgba(239, 68, 68, 0.14) !important;
}
body.dark .card-app.card-highlight-red {
    border-color: #f87171 !important;
    box-shadow: 0 0 0 1px #f87171, 0 6px 18px rgba(248, 113, 113, 0.16) !important;
}

.my-site-card-actions {
    position: absolute;
    right: 4px;
    top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
    z-index: 6;
}
.card-app:hover .my-site-card-actions,
.card-app:active .my-site-card-actions {
    opacity: 1;
    pointer-events: auto;
}

.my-site-btn {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.08);
    color: var(--text-tertiary);
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}
body.dark .my-site-btn { background: rgba(255, 255, 255, 0.12); }
.my-site-btn.edit:hover { background: var(--accent-light); color: var(--accent); }
.my-site-btn.delete:hover { background: rgba(239, 68, 68, 0.15); color: var(--tag-bg); }

.my-site-btn.delete.confirm-active {
    width: auto;
    padding: 0 6px;
    background: var(--tag-bg) !important;
    color: #fff !important;
    font-size: 10.5px;
    font-weight: 600;
    animation: pulseWarn 0.3s ease;
}
@keyframes pulseWarn {
    0% { transform: scale(0.9); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.empty-mysites-tip {
    grid-column: 1 / -1;
    background: var(--hero-box-bg);
    border: 1px dashed var(--card-border);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

/* ================= 本地书签 ================= */
.local-bookmarks-section { margin-top: 26px; }
.local-bookmarks-title-row { margin-bottom: 10px; }
.local-bookmarks-section .title { gap: 5px; min-width: 0; }
.local-bookmarks-help-btn {
    width: 22px;
    height: 22px;
    margin-left: -1px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--text-tertiary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    transition: color .2s var(--motion-smooth), background-color .2s var(--motion-smooth), transform .26s var(--motion-spring);
}
.local-bookmarks-help-btn:hover { color: var(--accent); background: var(--accent-light); }
.local-bookmarks-help-btn:focus-visible { outline: 2px solid color-mix(in srgb, var(--accent) 45%, transparent); outline-offset: 1px; color: var(--accent); }
.local-bookmarks-help-btn:active { transform: scale(.9); }

.local-bookmarks-count {
    color: var(--text-tertiary);
    font-size: 10.5px;
    font-weight: 500;
    line-height: 1;
    white-space: nowrap;
}

.local-bookmarks-actions {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    flex: 0 0 auto;
}
.local-bookmark-action-btn {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text-tertiary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: color .22s var(--motion-smooth), background-color .22s var(--motion-smooth), transform .28s var(--motion-spring), opacity .2s ease;
}
.local-bookmark-action-btn:hover { color: var(--accent); background: var(--accent-light); }
.local-bookmark-action-btn:active { transform: scale(.9); }
.local-bookmark-action-btn:disabled { opacity: .3; cursor: default; pointer-events: none; }
.local-bookmark-cloud-actions { display: inline-flex; align-items: center; gap: 3px; }
.local-bookmark-cloud-actions[hidden] { display: none !important; }
.local-bookmark-cloud-actions .local-bookmark-action-btn[data-loading="1"] { opacity: .55; }

.local-bookmarks-shell {
    position: relative;
    width: 100%;
    min-height: 48px;
    padding: 7px;
    border: 1px dashed var(--card-border);
    border-radius: 11px;
    background: color-mix(in srgb, var(--card-inner-bg) 72%, transparent);
    transition: border-color .24s var(--motion-smooth), background-color .24s var(--motion-smooth), box-shadow .28s var(--motion-spring);
}
.local-bookmarks-shell.is-dragover {
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 6%, var(--card-inner-bg));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 7%, transparent);
}

.local-bookmarks-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 6px;
    width: 100%;
    min-width: 0;
}
.local-bookmark-item {
    height: 30px;
    max-width: min(190px, 100%);
    display: inline-flex;
    align-items: center;
    position: relative;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    transition: background-color .2s ease, border-color .2s ease, transform .24s var(--motion-spring);
}
.local-bookmark-item:hover {
    background: var(--card-hover-bg);
    border-color: var(--card-border);
}
.local-bookmark-item:active { transform: scale(.98); }
.local-bookmark-link {
    min-width: 0;
    max-width: 100%;
    height: 100%;
    padding: 0 7px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: inherit;
}
.local-bookmark-emoji {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    display: inline-grid;
    place-items: center;
    font-size: 14px;
    line-height: 1;
    user-select: none;
}
.local-bookmark-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
}
.local-bookmarks-empty {
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--text-tertiary);
    font-size: 11.5px;
    user-select: none;
    pointer-events: none;
}
.local-bookmarks-empty i { font-size: 15px; }
.local-bookmarks-shell.has-items .local-bookmarks-empty { display: none; }

.local-bookmarks-drop-hint {
    position: absolute;
    inset: 5px;
    z-index: 4;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: var(--accent);
    background: color-mix(in srgb, var(--card-inner-bg) 92%, transparent);
    font-size: 12px;
    font-weight: 600;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: scale(.985);
    transition: opacity .18s ease, visibility 0s linear .18s, transform .26s var(--motion-spring);
}
.local-bookmarks-shell.is-dragover .local-bookmarks-drop-hint {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    transition-delay: 0s;
}
.local-bookmarks-drop-hint i { font-size: 17px; }

@media (max-width: 580px) {
    .local-bookmarks-section { margin-top: 22px; }
    .local-bookmarks-title-row { margin-bottom: 8px; }
    .local-bookmark-action-btn { width: 27px; height: 27px; }
    .local-bookmarks-shell { padding: 6px; min-height: 46px; }
    .local-bookmarks-grid { gap: 4px; }
    .local-bookmark-item { height: 29px; max-width: min(155px, 100%); }
    .local-bookmark-link { padding-left: 6px; gap: 5px; }
    .local-bookmark-name { font-size: 11.5px; }
    .local-bookmarks-empty { min-height: 31px; font-size: 10.8px; text-align: center; }
}

/* 本地书签完整使用说明 */
.local-bookmarks-help-modal {
    max-width: 720px;
    padding: 22px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.local-bookmarks-help-header { margin-bottom: 14px; flex: 0 0 auto; }
.local-bookmarks-help-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0 5px 1px 0;
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--text-tertiary) 44%, transparent) transparent;
}
.local-bookmarks-help-content::-webkit-scrollbar { width: 2px; }
.local-bookmarks-help-content::-webkit-scrollbar-track { background: transparent; }
.local-bookmarks-help-content::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--text-tertiary) 42%, transparent);
    border-radius: 999px;
}
.local-bookmarks-help-content::-webkit-scrollbar-thumb:hover {
    background: color-mix(in srgb, var(--text-secondary) 58%, transparent);
}
body.dark .local-bookmarks-help-content {
    scrollbar-color: color-mix(in srgb, var(--text-secondary) 36%, transparent) transparent;
}
.bookmark-help-tip {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 13px;
    border: 1px solid color-mix(in srgb, var(--accent) 15%, var(--modal-border));
    border-radius: 13px;
    background: color-mix(in srgb, var(--accent) 5%, var(--modal-sub-bg));
}
.bookmark-help-tip > i { color: var(--accent); font-size: 18px; margin-top: 1px; flex: 0 0 auto; }
.bookmark-help-tip > div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.bookmark-help-tip strong { color: var(--text-primary); font-size: 12.5px; line-height: 1.4; }
.bookmark-help-tip span { color: var(--text-secondary); font-size: 11px; line-height: 1.65; }
.bookmark-help-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}
.bookmark-help-card {
    min-width: 0;
    padding: 12px 13px;
    border: 1px solid var(--modal-border);
    border-radius: 13px;
    background: var(--modal-sub-bg);
}
.bookmark-help-card-title {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 7px;
    color: var(--text-primary);
    font-size: 12.5px;
    font-weight: 720;
    line-height: 1.3;
}
.bookmark-help-card-title i { color: var(--accent); font-size: 16px; flex: 0 0 auto; }
.bookmark-help-card p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 11px;
    line-height: 1.65;
}
.bookmark-help-card p + p { margin-top: 5px; }
.bookmark-help-footer-note {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    padding: 2px 2px 0;
    color: var(--text-tertiary);
    font-size: 10.5px;
    line-height: 1.55;
}
.bookmark-help-footer-note i { color: var(--accent); font-size: 14px; margin-top: 1px; flex: 0 0 auto; }
@media (max-width: 680px) {
    .local-bookmarks-help-modal {
        max-width: 100%;
        max-height: min(92dvh, 760px);
        padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
    }
    .local-bookmarks-help-content { padding-right: 4px; }
    .bookmark-help-grid { grid-template-columns: 1fr; gap: 8px; }
    .bookmark-help-card { padding: 11px 12px; }
    .bookmark-help-tip { padding: 11px 12px; }
}

/* 本地书签右键 / 长按操作菜单 */
.local-bookmark-context-menu {
    position: fixed;
    left: 0;
    top: 0;
    z-index: 190;
    width: 142px;
    padding: 5px;
    border: 1px solid color-mix(in srgb, var(--modal-border) 88%, transparent);
    border-radius: 11px;
    background: color-mix(in srgb, var(--modal-bg) 97%, transparent);
    box-shadow: 0 14px 40px rgba(24, 24, 27, .14), 0 3px 10px rgba(24, 24, 27, .07);
    backdrop-filter: blur(14px) saturate(135%);
    -webkit-backdrop-filter: blur(14px) saturate(135%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-3px) scale(.97);
    transform-origin: top left;
    transition: opacity .14s ease, transform .2s var(--motion-spring), visibility 0s linear .16s;
}
body.dark .local-bookmark-context-menu { box-shadow: 0 18px 46px rgba(0, 0, 0, .46); }
.local-bookmark-bar-context-menu { width: 136px; }
.local-bookmark-context-menu.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    transition-delay: 0s;
}
.local-bookmark-context-item {
    width: 100%;
    height: 34px;
    padding: 0 9px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-align: left;
    font-size: 12px;
    font-weight: 550;
    outline: none;
    transition: color .16s ease, background-color .16s ease, transform .18s var(--motion-spring);
}
.local-bookmark-context-item i { width: 16px; text-align: center; color: var(--text-tertiary); font-size: 15px; }
.local-bookmark-context-item:hover,
.local-bookmark-context-item:focus-visible { background: var(--card-hover-bg); color: var(--accent); }
.local-bookmark-context-item:hover i,
.local-bookmark-context-item:focus-visible i { color: var(--accent); }
.local-bookmark-context-item:active { transform: scale(.98); }

.local-bookmark-item { -webkit-touch-callout: none; }

/* 本地书签编辑弹窗 */
.bookmark-edit-modal { max-width: 430px; }
.bookmark-edit-form { margin-top: 2px; }
.bookmark-add-form { display: flex; flex-direction: column; gap: 14px; }
.bookmark-add-field { min-width: 0; }
.bookmark-add-form .bookmark-edit-hint { margin-top: -4px; }
.bookmark-add-form .bookmark-edit-actions { margin-top: 2px; }
.bookmark-add-optional {
    margin-left: 5px;
    color: var(--text-tertiary);
    font-size: 10px;
    font-weight: 550;
}
.bookmark-edit-label {
    display: block;
    margin-bottom: 7px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 650;
}
.bookmark-edit-control {
    height: 45px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 12px;
    border: 1px solid var(--modal-border);
    border-radius: 11px;
    background: var(--modal-sub-bg);
    transition: border-color .2s ease, box-shadow .22s ease, background-color .2s ease;
}
.bookmark-edit-control:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 9%, transparent);
    background: var(--modal-bg);
}
.bookmark-edit-control > i { color: var(--text-tertiary); font-size: 17px; flex: 0 0 auto; transition: color .18s ease; }
.bookmark-edit-control:focus-within > i { color: var(--accent); }
.bookmark-edit-control input {
    min-width: 0;
    flex: 1;
    width: 100%;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text-primary);
    font-size: 13px;
}
.bookmark-edit-control input::placeholder { color: var(--text-tertiary); }
.bookmark-edit-hint {
    min-height: 17px;
    margin-top: 7px;
    color: var(--text-tertiary);
    font-size: 10.8px;
    line-height: 1.5;
    word-break: break-word;
}
.bookmark-edit-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 18px;
}
.bookmark-edit-cancel,
.bookmark-edit-submit {
    min-width: 82px;
    height: 36px;
    padding: 0 14px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 650;
    cursor: pointer;
    transition: transform .2s var(--motion-spring), background-color .18s ease, border-color .18s ease, color .18s ease;
}
.bookmark-edit-cancel { border: 1px solid var(--modal-border); background: var(--modal-sub-bg); color: var(--text-secondary); }
.bookmark-edit-cancel:hover { color: var(--text-primary); border-color: var(--card-hover-border); }
.bookmark-edit-submit { border: 1px solid var(--accent); background: var(--accent); color: #fff; }
.bookmark-edit-submit:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.bookmark-edit-cancel:active,
.bookmark-edit-submit:active { transform: scale(.98); }

@media (max-width: 580px) {
    .local-bookmark-context-menu { width: 154px; padding: 6px; border-radius: 12px; }
    .local-bookmark-context-item { height: 38px; font-size: 12.5px; }
    .bookmark-edit-actions { gap: 7px; }
    .bookmark-edit-cancel, .bookmark-edit-submit { flex: 1; min-width: 0; height: 38px; }
}

/* ================= 通用常规分类网格与卡片 ================= */
.section { margin-top: 32px; width: 100%; min-width: 0; }
.title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 12px; }
.title { font-size: 16px; font-weight: 700; color: var(--text-primary); display: flex; align-items: center; margin: 0; }
.title-text { position: relative; display: inline-block; padding: 0 6px 2px 4px; z-index: 1; }
.title-text::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 48%;
    background: var(--title-deco-bg);
    border-radius: 3px;
    transform: skewX(-14deg);
    transform-origin: left bottom;
    z-index: -1;
    pointer-events: none;
}

.sort-switch-group {
    display: inline-flex;
    align-items: center;
    background: var(--sort-btn-bg);
    padding: 2.5px;
    border-radius: 20px;
    gap: 2px;
    user-select: none;
    flex-shrink: 0;
    position: relative;
    isolation: isolate;
}

.sort-tab-btn {
    border: none;
    background: transparent !important;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 3px 10px;
    border-radius: 14px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    transition: color .24s var(--motion-smooth), opacity .24s var(--motion-smooth), transform .24s var(--motion-spring);
    white-space: nowrap;
    line-height: 1.2;
    position: relative;
    z-index: 2;
}
.sort-tab-btn.active { color: var(--accent); font-weight: 600; }

.grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
    min-width: 0;
}

.card {
    background: transparent;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 3px;
    text-decoration: none;
    display: block;
    position: relative;
    transition: border-color .28s var(--motion-smooth), box-shadow .34s var(--motion-spring);
    width: 100%;
    min-width: 0;
    overflow: hidden;
    contain: layout style;
}
.card:hover { border-color: var(--card-hover-border); box-shadow: 0 8px 20px rgba(15, 23, 42, .065); }
body.dark .card:hover { box-shadow: 0 10px 24px rgba(0, 0, 0, .22); }

.card-inner {
    background: var(--card-inner-bg);
    border-radius: 7px;
    height: 48px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
    transition: transform .42s var(--motion-spring), background-color .28s var(--motion-smooth);
    width: 100%;
    min-width: 0;
    will-change: transform;
    isolation: isolate;
}
.card:hover .card-inner { background: var(--card-hover-bg); }

.card .icon-box {
    width: 28px;
    height: 28px;
    margin-right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    border-radius: 8px;
    color: var(--text-secondary);
    flex-shrink: 0;
    overflow: visible;
    position: relative;
    z-index: 4;
    transform: none;
    box-shadow: none;
}

.card .icon-box img {
    display: block;
    width: 24px;
    height: 24px;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 6px;
    background: transparent;
    box-shadow: none;
    filter: drop-shadow(0 1px 1px rgba(15, 23, 42, .09));
    transform: scale(1);
    transition: transform .28s var(--motion-spring), filter .28s var(--motion-smooth);
}
.card:hover .icon-box img {
    transform: scale(1.07);
    filter: drop-shadow(0 2px 3px rgba(15, 23, 42, .13));
}
body.dark .card .icon-box img { filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .32)); }
body.dark .card:hover .icon-box img { filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .40)); }
.card .icon-box .text-fallback {
    display: none;
    width: 23px;
    height: 23px;
    place-items: center;
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    color: var(--text-secondary);
    background: transparent;
    border: 1px solid var(--card-border);
    border-radius: 50%;
}

.card .name {
    flex: 1;
    min-width: 0;
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.1px;
    padding-right: 18px;
    position: relative;
    z-index: 4;
}

.card-report-btn {
    position: absolute;
    right: 4px;
    top: 4px;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-tertiary);
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity .24s var(--motion-smooth), transform .34s var(--motion-spring), background-color .24s var(--motion-smooth), color .24s var(--motion-smooth);
    z-index: 5;
    cursor: pointer;
    transform: translate3d(4px, -3px, 0) scale(.86);
}
body.dark .card-report-btn { background: rgba(255, 255, 255, 0.08); }
.card:hover .card-report-btn,
.card:active .card-report-btn { opacity: 1; pointer-events: auto; transform: translate3d(0, 0, 0) scale(1); }
.card-report-btn:hover { background: rgba(239, 68, 68, 0.15); color: var(--tag-bg); }

.tag {
    position: absolute;
    right: 0;
    top: 0;
    background: var(--tag-bg);
    color: white;
    font-size: 9.5px;
    font-weight: 600;
    padding: 1.5px 5px;
    border-bottom-left-radius: 6px;
    line-height: 1.1;
    pointer-events: none;
    z-index: 4;
    transition: opacity .24s var(--motion-smooth), transform .3s var(--motion-spring);
}
.card:hover .tag,
.card:active .tag { opacity: 0.28; transform: translate3d(2px, -2px, 0); }

.faq-box-wrap { background: transparent; border: 1px solid var(--hero-box-border); border-radius: 14px; padding: 3px; margin-top: 4px; width: 100%; min-width: 0; }
.faq-box-inner { background: var(--hero-box-bg); border-radius: 11px; padding: 8px 18px; }
.faq-item { border-bottom: 1px solid var(--card-border); }
.faq-item:last-child { border-bottom: none; }
.faq-question { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--text-primary); user-select: none; gap: 12px; }
.faq-question span { flex: 1; min-width: 0; }
.faq-question:hover { color: var(--accent); }
.faq-question i { font-size: 17px; color: var(--text-tertiary); transition: transform .38s var(--motion-spring), color .24s var(--motion-smooth); flex-shrink: 0; }
.faq-item.open .faq-question i { transform: rotate(180deg); color: var(--accent); }
.faq-answer { height: 0; overflow: hidden; font-size: 13px; color: var(--text-secondary); line-height: 1.6; word-break: break-word; will-change: height, opacity; }
.faq-item.open .faq-answer { padding-bottom: 16px; }

.flink-box-wrap { background: transparent; border: 1px solid var(--hero-box-border); border-radius: 14px; padding: 3px; margin-top: 4px; width: 100%; min-width: 0; }
.flink-box-inner { background: var(--hero-box-bg); border-radius: 11px; padding: 16px 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 11px; }
.flink-item { color: var(--text-secondary); text-decoration: none; font-size: 13px; font-weight: 500; transition: color .24s var(--motion-smooth), transform .28s var(--motion-spring); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flink-item::before { content: "• "; color: var(--text-tertiary); }
.flink-item:hover { color: var(--accent); transform: translateX(2px); }

.float-panel { position: fixed; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; z-index: 60; }
.float-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--float-btn-bg);
    border: 1px solid var(--float-btn-border);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 19px;
    box-shadow: var(--float-btn-shadow);
    transition: transform .38s var(--motion-spring), opacity .28s var(--motion-smooth), border-color .24s var(--motion-smooth), color .24s var(--motion-smooth), background-color .28s var(--motion-smooth), box-shadow .32s var(--motion-smooth);
}
.float-btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px) scale(1.025); }
.btn-back-top { display: flex; transform: translate3d(0, 14px, 0) scale(.86); opacity: 0; visibility: hidden; pointer-events: none; }
.btn-back-top.visible { opacity: 1; visibility: visible; transform: translate3d(0, 0, 0) scale(1); pointer-events: auto; }

.footer { margin-top: 60px; background: var(--footer-bg); border-top: 1px solid var(--footer-border); padding: 26px 0 calc(26px + env(safe-area-inset-bottom)); font-size: 13px; color: var(--text-secondary); }
.footer-inner { max-width: 1240px; width: 92%; margin: 0 auto; text-align: center; }
.footer-text { line-height: 1.6; letter-spacing: 0.2px; }
.footer-online-count { display:inline-flex; align-items:center; gap:4px; margin-left:10px; white-space:nowrap; color:var(--text-secondary); }
.footer-online-count::before { content:'·'; margin-right:6px; color:var(--text-tertiary); }
.footer-online-count i { width:6px; height:6px; border-radius:50%; background:#22c55e; box-shadow:0 0 0 3px rgba(34,197,94,.10); display:inline-block; }
.footer-online-count strong { color:var(--text-primary); font-weight:650; font-variant-numeric:tabular-nums; }

.custom-modal-mask {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: var(--modal-mask-soft);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    display: flex !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 18px;
    transition: opacity .26s var(--motion-smooth), visibility 0s linear .28s, background-color .28s var(--motion-smooth), backdrop-filter .32s var(--motion-smooth);
}
.custom-modal-mask.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background: var(--modal-mask-strong);
    backdrop-filter: blur(9px) saturate(88%);
    -webkit-backdrop-filter: blur(9px) saturate(88%);
    transition-delay: 0s;
}
.custom-modal-mask.is-closing { opacity: 0; pointer-events: none; background: var(--modal-mask-soft); backdrop-filter: blur(0px); -webkit-backdrop-filter: blur(0px); }
.custom-modal {
    background: color-mix(in srgb, var(--modal-bg) 96%, transparent);
    border: 1px solid color-mix(in srgb, var(--modal-border) 82%, transparent);
    border-radius: 22px;
    width: 100%;
    max-width: 540px;
    padding: 22px;
    box-shadow: 0 30px 80px rgba(24, 24, 27, .20), 0 8px 24px rgba(24, 24, 27, .08);
    max-height: min(90vh, 760px);
    overflow-y: auto;
    overscroll-behavior: contain;
    opacity: 0;
    transform: translate3d(0, 18px, 0) scale(.97);
    transform-origin: center center;
    transition: opacity .22s var(--motion-smooth), transform .38s var(--motion-spring), border-color .25s var(--motion-smooth), box-shadow .25s var(--motion-smooth);
}
body.dark .custom-modal {
    box-shadow: 0 34px 90px rgba(0, 0, 0, .38), 0 8px 24px rgba(0, 0, 0, .20);
}

/* 所有弹窗统一使用超细、圆角内收滚动条 */
.custom-modal,
.custom-modal * {
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--text-tertiary) 42%, transparent) transparent;
}
.custom-modal::-webkit-scrollbar,
.custom-modal *::-webkit-scrollbar {
    width: 2px;
    height: 2px;
}
.custom-modal::-webkit-scrollbar-track,
.custom-modal *::-webkit-scrollbar-track {
    background: transparent;
}
.custom-modal::-webkit-scrollbar-thumb,
.custom-modal *::-webkit-scrollbar-thumb {
    background: color-mix(in srgb, var(--text-tertiary) 42%, transparent);
    border-radius: 999px;
}
.custom-modal::-webkit-scrollbar-thumb:hover,
.custom-modal *::-webkit-scrollbar-thumb:hover {
    background: color-mix(in srgb, var(--text-secondary) 58%, transparent);
}
/* 外层弹窗滚动条上下留白，避免视觉上顶出圆角 */
.custom-modal::-webkit-scrollbar-track {
    margin-block: 14px;
}
body.dark .custom-modal,
body.dark .custom-modal * {
    scrollbar-color: color-mix(in srgb, var(--text-secondary) 36%, transparent) transparent;
}
.custom-modal-mask.show:not(.is-closing) .custom-modal { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
.custom-modal-mask.is-closing .custom-modal { opacity: 0; transform: translate3d(0, 9px, 0) scale(.985); pointer-events: none; }

.modal-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.modal-heading { display: flex; align-items: center; min-width: 0; gap: 12px; }
.modal-heading-icon {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: var(--accent);
    font-size: 20px;
    background: color-mix(in srgb, var(--accent) 10%, var(--modal-sub-bg));
    border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--modal-border));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.55);
}
body.dark .modal-heading-icon { box-shadow: inset 0 1px 0 rgba(255,255,255,.035); }
.modal-heading-copy { min-width: 0; }
.modal-title-box { font-size: 17px; font-weight: 760; color: var(--text-primary); display: flex; align-items: center; gap: 8px; line-height: 1.25; letter-spacing: -.15px; }
.modal-subtitle { margin-top: 4px; font-size: 12px; line-height: 1.45; color: var(--text-tertiary); }
.modal-close-btn {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    background: var(--modal-sub-bg);
    border: 1px solid var(--modal-border);
    font-size: 19px;
    color: var(--text-tertiary);
    cursor: pointer;
    padding: 0;
    border-radius: 10px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color .2s var(--motion-smooth), border-color .2s var(--motion-smooth), background-color .2s var(--motion-smooth), transform .28s var(--motion-spring);
}
.modal-close-btn:hover { color: var(--text-primary); border-color: var(--card-hover-border); background: var(--card-hover-bg); transform: rotate(4deg) scale(1.03); }

/* ================= 官方浏览器插件安装专属样式 ================= */
.ext-install-banner {
    background: color-mix(in srgb, var(--accent) 7%, var(--modal-sub-bg));
    border: 1.5px solid color-mix(in srgb, var(--accent) 26%, var(--modal-border));
    border-radius: 14px;
    padding: 16px;
    margin-bottom: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.06);
}
body.dark .ext-install-banner {
    background: color-mix(in srgb, var(--accent) 10%, var(--modal-sub-bg));
    border-color: color-mix(in srgb, var(--accent) 30%, var(--modal-border));
}
.ext-banner-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.ext-banner-title {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 14px;
    color: var(--text-primary);
}
.ext-banner-title i {
    font-size: 19px;
    color: var(--accent);
}
.ext-badge-rec {
    background: #ef4444;
    color: #ffffff;
    font-size: 10.5px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 999px;
    letter-spacing: 0.2px;
}
.ext-banner-desc {
    font-size: 12px;
    line-height: 1.5;
    color: var(--text-secondary);
}
.btn-download-ext {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent);
    color: #ffffff;
    text-decoration: none;
    font-size: 12.5px;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 8px;
    box-shadow: 0 3px 10px color-mix(in srgb, var(--accent) 28%, transparent);
    transition: background-color .18s ease, transform .22s var(--motion-spring);
    white-space: nowrap;
}
.btn-download-ext:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}
.btn-download-ext:active {
    transform: scale(.97);
}

.auth-modal { max-width: 430px; }
.my-site-modal { max-width: 500px; }
.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    position: relative;
    background: var(--modal-sub-bg);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 18px;
    border: 1px solid var(--modal-border);
    gap: 4px;
}
.auth-tab {
    text-align: center;
    padding: 9px 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    border: none;
    background: transparent;
    border-radius: 9px;
    cursor: pointer;
    transition: color .22s var(--motion-smooth), background-color .22s var(--motion-smooth), box-shadow .28s var(--motion-smooth), transform .28s var(--motion-spring);
}
.auth-tab:hover { color: var(--text-primary); }
.auth-tab.active { background: var(--modal-bg); color: var(--accent); font-weight: 700; box-shadow: 0 3px 12px rgba(15,23,42,.07), 0 0 0 1px rgba(15,23,42,.025); }
body.dark .auth-tab.active { box-shadow: 0 4px 14px rgba(0,0,0,.22), 0 0 0 1px rgba(255,255,255,.035); }
.auth-form-pane { display: none; }
.auth-form-pane.active { display: block; animation: modalPaneIn .32s var(--motion-spring) both; }
@keyframes modalPaneIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

.auth-input-group { margin-bottom: 14px; }
.auth-input-group label { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--text-secondary); margin-bottom: 7px; font-weight: 650; }
.field-hint { font-size: 10.5px; color: var(--text-tertiary); font-weight: 500; }
.field-control {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    height: 44px;
    background: var(--modal-sub-bg);
    border: 1px solid var(--modal-border);
    border-radius: 11px;
    transition: border-color .22s var(--motion-smooth), box-shadow .28s var(--motion-smooth), background-color .22s var(--motion-smooth);
}
.field-control:focus-within {
    border-color: color-mix(in srgb, var(--accent) 72%, var(--modal-border));
    background: var(--modal-bg);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 10%, transparent);
}
.field-control > i {
    width: 38px;
    flex: 0 0 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    font-size: 16px;
    pointer-events: none;
    transition: color .22s var(--motion-smooth);
}
.field-control:focus-within > i { color: var(--accent); }
.auth-input-group .field-control input,
.auth-input-group .code-input-row .field-control input {
    width: 100%;
    height: 100%;
    min-width: 0;
    background: transparent;
    border: none !important;
    border-radius: 0;
    padding: 0 12px 0 0;
    font-size: 13.5px;
    color: var(--text-primary);
    outline: none !important;
    box-shadow: none !important;
}
.auth-input-group input::placeholder { color: color-mix(in srgb, var(--text-tertiary) 82%, transparent); }

.code-input-row { display: block; width: 100%; }
.code-input-row .field-control { min-width: 0; width: 100%; }
.code-field-control { padding-right: 5px; }
.code-field-control input { padding-right: 8px !important; }
.btn-send-code {
    flex: 0 0 auto;
    min-width: 92px;
    height: 34px;
    margin-left: 6px;
    background: color-mix(in srgb, var(--accent) 9%, var(--modal-sub-bg));
    color: var(--accent);
    border: 1px solid color-mix(in srgb, var(--accent) 15%, var(--modal-border));
    padding: 0 11px;
    border-radius: 8px;
    font-size: 11.5px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    line-height: 1;
    box-shadow: none;
    transition: color .22s var(--motion-smooth), background-color .22s var(--motion-smooth), border-color .22s var(--motion-smooth), opacity .2s ease;
}
.btn-send-code:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-send-code:active { opacity: .86; }
.btn-send-code:disabled { opacity: .52; cursor: not-allowed; background: var(--modal-sub-bg); color: var(--text-tertiary); border-color: var(--modal-border); }

.btn-auth-submit {
    width: 100%;
    height: 44px;
    background: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
    border-radius: 11px;
    font-size: 13.5px;
    font-weight: 720;
    cursor: pointer;
    margin-top: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    box-shadow: 0 7px 18px color-mix(in srgb, var(--accent) 20%, transparent);
    transition: background-color .22s var(--motion-smooth), border-color .22s var(--motion-smooth), transform .3s var(--motion-spring), box-shadow .28s var(--motion-smooth), opacity .2s ease;
}
.btn-auth-submit:hover { background: var(--accent-hover); border-color: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 9px 22px color-mix(in srgb, var(--accent) 24%, transparent); }
.btn-auth-submit:active { transform: translateY(0) scale(.992); }
.btn-auth-submit:disabled { opacity: .62; cursor: not-allowed; transform: none; box-shadow: none; }
.auth-note {
    margin-top: 13px;
    display: flex;
    align-items: flex-start;
    gap: 7px;
    color: var(--text-tertiary);
    font-size: 11px;
    line-height: 1.5;
}
.auth-note i { color: var(--accent); margin-top: 1px; }

.site-highlight-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 13px;
    margin: 4px 0 16px;
    background: var(--modal-sub-bg);
    border: 1px solid var(--modal-border);
    border-radius: 12px;
    cursor: pointer;
    user-select: none;
    transition: border-color .22s var(--motion-smooth), background-color .22s var(--motion-smooth), box-shadow .24s var(--motion-smooth);
}
.site-highlight-option:hover { border-color: var(--card-hover-border); background: var(--card-hover-bg); }
.site-highlight-copy { min-width: 0; }
.site-highlight-title { color: var(--text-primary); font-size: 12.5px; font-weight: 700; line-height: 1.3; }
.site-highlight-desc { margin-top: 3px; color: var(--text-tertiary); font-size: 10.5px; line-height: 1.4; }
.site-switch { position: relative; width: 38px; height: 22px; flex: 0 0 38px; }
.site-switch input { position: absolute; opacity: 0; pointer-events: none; }
.site-switch-track { position: absolute; inset: 0; border-radius: 999px; background: var(--modal-border); transition: background-color .24s var(--motion-smooth), box-shadow .24s var(--motion-smooth); }
.site-switch-track::after { content: ""; position: absolute; width: 16px; height: 16px; top: 3px; left: 3px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.2); transition: transform .3s var(--motion-spring); }
.site-switch input:checked + .site-switch-track { background: #ef4444; box-shadow: 0 0 0 3px rgba(239,68,68,.08); }
.site-switch input:checked + .site-switch-track::after { transform: translateX(16px); }
.site-switch input:focus-visible + .site-switch-track { outline: 2px solid var(--accent); outline-offset: 2px; }

.quick-box { background: var(--modal-sub-bg); border: 1px solid var(--modal-border); border-radius: 10px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 18px; }
.quick-text { font-size: 13px; color: var(--text-secondary); }
.quick-text kbd { background: var(--card-inner-bg); border: 1px solid var(--card-border); padding: 2px 6px; border-radius: 4px; font-size: 12px; font-weight: 700; color: var(--accent); }
.btn-copy-url { background: var(--accent); color: #fff; border: none; padding: 6px 12px; border-radius: 6px; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.btn-copy-url:hover { background: var(--accent-hover); }

.browser-guide-list { display: flex; flex-direction: column; gap: 10px; }
.browser-guide-item { background: var(--modal-sub-bg); border: 1px solid var(--modal-guide-border); border-radius: 10px; overflow: hidden; }
.browser-guide-title { padding: 11px 14px; font-size: 13.5px; font-weight: 600; color: var(--text-primary); display: flex; justify-content: space-between; align-items: center; cursor: pointer; user-select: none; }
.browser-guide-title .left { display: flex; align-items: center; gap: 8px; }
.browser-guide-title i.ri-arrow-down-s-line { font-size: 16px; color: var(--text-tertiary); transition: transform 0.2s ease; }
.browser-guide-item.open .browser-guide-title i.ri-arrow-down-s-line { transform: rotate(180deg); color: var(--accent); }
.browser-guide-content { height: 0; overflow: hidden; padding: 0 14px; font-size: 12.5px; color: var(--text-secondary); line-height: 1.6; }
.browser-guide-item.open .browser-guide-content { padding-bottom: 12px; }
.browser-step-ol { padding-left: 18px; margin: 0; }
.browser-step-ol li { margin-bottom: 4px; }

.report-modal { max-width: 510px; padding: 24px; }
.report-modal-header { margin-bottom: 16px; }
.report-heading-icon {
    color: #ef4444;
    background: color-mix(in srgb, #ef4444 9%, var(--modal-sub-bg));
    border-color: color-mix(in srgb, #ef4444 16%, var(--modal-border));
}
body.dark .report-heading-icon {
    background: color-mix(in srgb, #ef4444 11%, var(--modal-sub-bg));
    border-color: color-mix(in srgb, #ef4444 20%, var(--modal-border));
}

.report-target-info {
    position: relative;
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    padding: 12px 13px;
    margin-bottom: 18px;
    background: color-mix(in srgb, var(--modal-sub-bg) 92%, var(--modal-bg));
    border: 1px solid var(--modal-border);
    border-radius: 13px;
    overflow: hidden;
}
.report-target-logo {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 9px;
}
.report-target-logo img {
    width: 30px;
    height: 30px;
    display: block;
    object-fit: contain;
}
.report-target-logo-fallback {
    width: 30px;
    height: 30px;
    display: none;
    place-items: center;
    border-radius: 8px;
    color: var(--text-secondary);
    background: var(--modal-bg);
    border: 1px solid var(--modal-border);
    font-size: 13px;
    font-weight: 750;
}
.report-target-copy { min-width: 0; flex: 1; }
.report-target-kicker {
    margin-bottom: 2px;
    color: var(--text-tertiary);
    font-size: 10px;
    font-weight: 650;
    letter-spacing: .3px;
}
.report-target-name {
    color: var(--text-primary);
    font-size: 13.5px;
    font-weight: 720;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.report-field-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}
.report-reason-title {
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 720;
    line-height: 1.35;
}
.report-field-hint {
    margin-top: 3px;
    color: var(--text-tertiary);
    font-size: 10.5px;
    line-height: 1.4;
}
.report-required-badge,
.report-optional-badge {
    flex: 0 0 auto;
    margin-top: 1px;
    padding: 3px 7px;
    border-radius: 999px;
    font-size: 9.5px;
    font-weight: 700;
    line-height: 1.2;
}
.report-required-badge {
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 9%, transparent);
}
.report-optional-badge {
    color: var(--text-tertiary);
    background: var(--modal-sub-bg);
    border: 1px solid var(--modal-border);
}

.report-reasons-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-bottom: 18px;
}
.report-reason-label {
    position: relative;
    min-width: 0;
    min-height: 68px;
    padding: 11px 34px 11px 10px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--modal-border);
    border-radius: 13px;
    background: color-mix(in srgb, var(--modal-sub-bg) 88%, var(--modal-bg));
    color: var(--text-primary);
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
    overflow: hidden;
    isolation: isolate;
    transition: border-color .22s var(--motion-smooth), background-color .22s var(--motion-smooth), box-shadow .28s var(--motion-smooth), transform .28s var(--motion-spring);
}
.report-reason-label::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(130px circle at 15% 20%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 72%);
    opacity: 0;
    transition: opacity .24s var(--motion-smooth);
}
.report-reason-label:hover {
    border-color: color-mix(in srgb, var(--accent) 32%, var(--modal-border));
    background: color-mix(in srgb, var(--accent) 3%, var(--modal-sub-bg));
    transform: translateY(-1px);
}
.report-reason-label:active { transform: scale(.985); }
.report-reason-label input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}
.report-reason-label:has(input:focus-visible) {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 11%, transparent);
}
.report-reason-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    color: var(--text-secondary);
    background: var(--modal-bg);
    border: 1px solid color-mix(in srgb, var(--modal-border) 82%, transparent);
    font-size: 16px;
    transition: color .22s var(--motion-smooth), background-color .22s var(--motion-smooth), border-color .22s var(--motion-smooth), transform .32s var(--motion-spring);
}
.report-reason-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.report-reason-copy strong {
    color: var(--text-primary);
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1.25;
    transition: color .22s var(--motion-smooth);
}
.report-reason-copy small {
    color: var(--text-tertiary);
    font-size: 9.8px;
    font-weight: 500;
    line-height: 1.35;
}
.report-radio-ui {
    position: absolute;
    top: 9px;
    right: 9px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid color-mix(in srgb, var(--text-tertiary) 58%, var(--modal-border));
    color: transparent;
    background: var(--modal-bg);
    font-size: 12px;
    transition: border-color .22s var(--motion-smooth), background-color .22s var(--motion-smooth), color .22s var(--motion-smooth), transform .3s var(--motion-spring), box-shadow .26s var(--motion-smooth);
}
.report-reason-label.checked {
    border-color: color-mix(in srgb, var(--accent) 72%, var(--modal-border));
    background: color-mix(in srgb, var(--accent) 6%, var(--modal-bg));
    box-shadow: 0 5px 16px color-mix(in srgb, var(--accent) 8%, transparent), inset 0 0 0 1px color-mix(in srgb, var(--accent) 5%, transparent);
}
.report-reason-label.checked::before { opacity: 1; }
.report-reason-label.checked .report-reason-icon {
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 9%, var(--modal-bg));
    border-color: color-mix(in srgb, var(--accent) 18%, var(--modal-border));
    transform: scale(1.035);
}
.report-reason-label.checked .report-reason-copy strong { color: var(--accent); }
.report-reason-label.checked .report-radio-ui {
    color: #fff;
    border-color: var(--accent);
    background: var(--accent);
    transform: scale(1.04);
    box-shadow: 0 3px 9px color-mix(in srgb, var(--accent) 22%, transparent);
}
body.dark .report-reason-label.checked {
    background: color-mix(in srgb, var(--accent) 8%, var(--modal-bg));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 7%, transparent);
}

.report-detail-field { margin-bottom: 16px; }
.report-detail-head { margin-bottom: 9px; }
.report-textarea-wrap { position: relative; }
.report-textarea {
    width: 100%;
    min-height: 86px;
    margin: 0;
    padding: 11px 12px 11px 36px;
    display: block;
    background: var(--modal-sub-bg);
    border: 1px solid var(--modal-border);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 12.5px;
    line-height: 1.55;
    outline: none;
    resize: vertical;
    max-height: 150px;
    transition: border-color .22s var(--motion-smooth), box-shadow .28s var(--motion-smooth), background-color .22s var(--motion-smooth);
}
.report-textarea::placeholder { color: var(--text-tertiary); opacity: .82; }
.report-textarea:focus {
    border-color: color-mix(in srgb, var(--accent) 72%, var(--modal-border));
    background: var(--modal-bg);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 9%, transparent);
}
.report-textarea-icon {
    position: absolute;
    top: 11px;
    left: 12px;
    color: var(--text-tertiary);
    font-size: 14px;
    pointer-events: none;
    transition: color .22s var(--motion-smooth);
}
.report-textarea-wrap:focus-within .report-textarea-icon { color: var(--accent); }

.report-submit-btn {
    width: 100%;
    height: 43px;
    border: 1px solid var(--accent);
    border-radius: 11px;
    background: var(--accent);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    box-shadow: 0 7px 18px color-mix(in srgb, var(--accent) 17%, transparent);
    transition: background-color .2s var(--motion-smooth), border-color .2s var(--motion-smooth), box-shadow .28s var(--motion-smooth), transform .28s var(--motion-spring), opacity .2s ease;
}
.report-submit-btn:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    box-shadow: 0 9px 22px color-mix(in srgb, var(--accent) 22%, transparent);
    transform: translateY(-1px);
}
.report-submit-btn:active { transform: scale(.985); }
.report-submit-btn:disabled { cursor: wait; opacity: .68; transform: none; box-shadow: none; }
.report-privacy-note {
    margin-top: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: var(--text-tertiary);
    font-size: 9.8px;
    line-height: 1.4;
    text-align: center;
}
.report-privacy-note i { color: color-mix(in srgb, var(--accent) 72%, var(--text-tertiary)); font-size: 12px; }

.custom-toast {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translate3d(-50%, -10px, 0) scale(.96);
    background: #0f172a;
    color: #fff;
    padding: 9px 18px;
    border-radius: 24px;
    font-size: 13.5px;
    font-weight: 500;
    z-index: 999;
    display: block !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    transition: opacity .26s var(--motion-smooth), transform .38s var(--motion-spring), visibility 0s linear .32s;
}
.custom-toast.show { opacity: 1; visibility: visible; transform: translate3d(-50%, 0, 0) scale(1); }

@media (max-width: 1100px) {
    .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .grid-app { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .deco-5, .deco-6 { display: none; }
}

@media (max-width: 860px) {
    .header { height: 56px; }
    .brand-logo-img { height: 38px; }
    .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
    .grid-app { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
    .hero-search-container { margin: 18px auto 26px; }
    .hero-search-inner { padding: 30px 18px 24px; }
    .deco-3, .deco-4 { display: none; }
    .user-email-text { max-width: 80px; }
}

@media (max-width: 580px) {
    :root {
        --hero-pad: 3px;
        --hero-outer-radius: 18px;
        --hero-inner-radius: calc(var(--hero-outer-radius) - var(--hero-pad));
    }
    .header { padding: 0 16px; height: 52px; }
    .brand-logo-img { height: 34px; max-width: 130px; }
    .btn-home { padding: 4px 10px; font-size: 12px; }
    .btn-auth-open { padding: 4px 8px; font-size: 12px; }
    .container { width: 94%; }
    .hero-search-container { margin: 14px auto 22px; }
    .hero-search-inner { padding: 24px 12px 20px; }
    .hero-search-inner h1 { font-size: 20px; }
    .search-input-box { height: 42px; padding: 0 6px 0 14px; }
    .search-input { font-size: 16px; }
    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .grid-app { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
    .card-app-inner { height: 76px; }
    .card-app .icon-box { width: 32px; height: 32px; }
    .card-app .icon-box img { width: 28px; height: 28px; }
    .card-app .icon-box .text-fallback { width: 27px; height: 27px; font-size: 12px; }
    .card-inner { height: 44px; padding: 0 8px; }
    .card .icon-box { width: 24px; height: 24px; margin-right: 6px; }
    .card .icon-box img { width: 21px; height: 21px; }
    .card .icon-box .text-fallback { width: 20px; height: 20px; font-size: 11px; }
    .card .name { font-size: 13px; }
    .report-modal { padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); }
    .report-modal-header { margin-bottom: 14px; }
    .report-target-info { margin-bottom: 16px; padding: 11px 12px; }
    .report-reasons-grid { grid-template-columns: 1fr; gap: 8px; margin-bottom: 16px; }
    .report-reason-label { min-height: 61px; padding: 9px 34px 9px 9px; border-radius: 12px; }
    .report-reason-icon { width: 32px; height: 32px; flex-basis: 32px; border-radius: 9px; }
    .report-reason-copy strong { font-size: 12.5px; }
    .report-reason-copy small { font-size: 9.6px; }
    .report-textarea { min-height: 82px; font-size: 12px; resize: none; }
    .report-submit-btn { height: 44px; }
    .custom-modal-mask { padding: 10px; align-items: flex-end; }
    .custom-modal { max-height: 92vh; border-radius: 18px 18px 14px 14px; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); }
    .modal-heading-icon { width: 38px; height: 38px; border-radius: 12px; }
    .modal-title-box { font-size: 16px; }
    .modal-subtitle { font-size: 11px; }
    .auth-tabs { margin-bottom: 15px; }
    .field-control, .btn-auth-submit { height: 43px; }
    .btn-send-code { height: 33px; min-width: 88px; padding: 0 9px; font-size: 11px; }
    .site-highlight-option { padding: 11px 12px; }
    .ext-install-banner { padding: 12px; }
    .btn-download-ext { width: 100%; justify-content: center; }
}

.my-sites-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.btn-mysite-tool,
.btn-add-mysite {
    width: 32px;
    min-width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 9px;
    gap: 0;
    font-size: 16px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color .22s var(--motion-smooth), background-color .22s var(--motion-smooth), color .22s var(--motion-smooth), box-shadow .26s var(--motion-smooth), transform .28s var(--motion-spring);
}

.btn-mysite-tool {
    border: 1px solid var(--card-border);
    background: var(--card-inner-bg);
    color: var(--text-secondary);
}
.btn-mysite-tool:hover {
    border-color: color-mix(in srgb, var(--accent) 30%, var(--card-border));
    background: var(--accent-light);
    color: var(--accent);
    box-shadow: 0 4px 12px rgba(15, 23, 42, .045);
}
.btn-mysite-tool:active,
.btn-add-mysite:active { transform: scale(.975); }

.btn-add-mysite {
    border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--card-border));
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 16%, transparent);
}
.btn-add-mysite:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
    color: #fff;
    box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 20%, transparent);
}

.btn-mysite-tool.is-danger { color: var(--text-tertiary); }
.btn-mysite-tool.is-danger:hover {
    color: #ef4444;
    border-color: color-mix(in srgb, #ef4444 30%, var(--card-border));
    background: color-mix(in srgb, #ef4444 8%, var(--card-inner-bg));
    box-shadow: 0 4px 12px rgba(239, 68, 68, .06);
}
body.dark .btn-mysite-tool.is-danger:hover {
    color: #f87171;
    background: color-mix(in srgb, #ef4444 10%, var(--card-inner-bg));
    border-color: color-mix(in srgb, #f87171 28%, var(--card-border));
}

.bookmark-import-modal { max-width: 520px; }
.bookmark-import-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}
.bookmark-stat {
    min-width: 0;
    padding: 12px 9px;
    background: var(--modal-sub-bg);
    border: 1px solid var(--modal-border);
    border-radius: 11px;
    text-align: center;
}
.bookmark-stat strong {
    display: block;
    color: var(--text-primary);
    font-size: 20px;
    line-height: 1.05;
    font-weight: 780;
    letter-spacing: -.3px;
}
.bookmark-stat span {
    display: block;
    margin-top: 5px;
    color: var(--text-tertiary);
    font-size: 10.5px;
    line-height: 1;
}
.bookmark-stat.is-new {
    background: color-mix(in srgb, var(--accent) 6%, var(--modal-sub-bg));
    border-color: color-mix(in srgb, var(--accent) 20%, var(--modal-border));
}
.bookmark-stat.is-new strong { color: var(--accent); }

.bookmark-preview-wrap {
    padding: 12px;
    border: 1px solid var(--modal-border);
    border-radius: 12px;
    background: var(--modal-sub-bg);
}
.bookmark-preview-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 700;
}
.bookmark-preview-title span { color: var(--text-tertiary); font-size: 10px; font-weight: 500; }
.bookmark-preview-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    max-height: 238px;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.bookmark-preview-item {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 9px;
    border-radius: 9px;
    background: var(--modal-bg);
    border: 1px solid var(--modal-guide-border);
}
.bookmark-preview-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 7%, transparent);
    font-size: 15px;
}
.bookmark-preview-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.bookmark-preview-copy strong,
.bookmark-preview-copy small {
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.bookmark-preview-copy strong { color: var(--text-primary); font-size: 11.5px; font-weight: 650; }
.bookmark-preview-copy small { color: var(--text-tertiary); font-size: 10px; }
.bookmark-preview-empty {
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: var(--text-secondary);
    font-size: 11px;
    text-align: center;
}
.bookmark-preview-empty i { color: var(--accent); font-size: 17px; }

.bookmark-import-note {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin-top: 11px;
    color: var(--text-tertiary);
    font-size: 10.5px;
    line-height: 1.5;
}
.bookmark-import-note i { color: var(--accent); margin-top: 1px; }
.bookmark-import-actions {
    display: grid;
    grid-template-columns: 1fr 1.45fr;
    gap: 9px;
    margin-top: 16px;
}
.btn-bookmark-cancel,
.btn-bookmark-confirm {
    height: 42px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: border-color .22s var(--motion-smooth), background-color .22s var(--motion-smooth), color .22s var(--motion-smooth), opacity .2s ease, transform .28s var(--motion-spring);
}
.btn-bookmark-cancel {
    background: var(--modal-sub-bg);
    color: var(--text-secondary);
    border: 1px solid var(--modal-border);
}
.btn-bookmark-cancel:hover { color: var(--text-primary); border-color: var(--card-hover-border); }
.btn-bookmark-confirm {
    background: var(--accent);
    color: #fff;
    border: 1px solid var(--accent);
    box-shadow: 0 7px 18px color-mix(in srgb, var(--accent) 18%, transparent);
}
.btn-bookmark-confirm:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-bookmark-confirm:active,
.btn-bookmark-cancel:active { transform: scale(.985); }
.btn-bookmark-confirm:disabled { opacity: .48; cursor: not-allowed; box-shadow: none; transform: none; }

.clear-mysites-modal { max-width: 460px; }
.clear-mysites-icon {
    color: #ef4444 !important;
    background: color-mix(in srgb, #ef4444 9%, var(--modal-sub-bg)) !important;
}
.clear-mysites-warning {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    padding: 14px;
    border: 1px solid color-mix(in srgb, #ef4444 18%, var(--modal-border));
    border-radius: 12px;
    background: color-mix(in srgb, #ef4444 5%, var(--modal-sub-bg));
}
.clear-mysites-warning-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ef4444;
    background: color-mix(in srgb, #ef4444 10%, var(--modal-bg));
    font-size: 18px;
}
.clear-mysites-warning-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.clear-mysites-warning-copy strong { color: var(--text-primary); font-size: 13px; line-height: 1.35; }
.clear-mysites-warning-copy strong span { color: #ef4444; }
.clear-mysites-warning-copy > span { color: var(--text-secondary); font-size: 11px; line-height: 1.55; }
.clear-mysites-actions { grid-template-columns: 1fr 1.35fr; }
.btn-clear-mysites-confirm {
    height: 42px;
    border-radius: 10px;
    border: 1px solid #ef4444;
    background: #ef4444;
    color: #fff;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    box-shadow: 0 7px 18px rgba(239, 68, 68, .16);
    transition: background-color .2s ease, border-color .2s ease, box-shadow .24s ease, transform .28s var(--motion-spring);
}
.btn-clear-mysites-confirm:hover { background: #dc2626; border-color: #dc2626; box-shadow: 0 8px 20px rgba(239, 68, 68, .22); }
.btn-clear-mysites-confirm:active { transform: scale(.985); }

@media (max-width: 860px) {
    .my-sites-section .title-row { align-items: center; flex-direction: row; gap: 10px; }
    .my-sites-actions { width: auto; justify-content: flex-end; margin-left: auto; }
}
@media (max-width: 580px) {
    .my-sites-actions { display: inline-flex; width: auto; gap: 5px; }
    .btn-mysite-tool, .btn-add-mysite { width: 30px; min-width: 30px; height: 30px; border-radius: 8px; font-size: 15px; }
    .clear-mysites-warning { padding: 12px; }
    .clear-mysites-actions { grid-template-columns: .9fr 1.35fr; }
}
@media (max-width: 410px) {
    .my-sites-sync-status { display: none; }
    .my-sites-section .title-row { gap: 6px; }
}

.btn-mysite-tool[hidden], .btn-add-mysite[hidden] { display: none !important; }
.btn-mysite-tool, .btn-add-mysite { position: relative; overflow: visible; }

@media (hover: hover) and (pointer: fine) {
    .btn-mysite-tool[data-tooltip]::after,
    .btn-add-mysite[data-tooltip]::after {
        content: attr(data-tooltip);
        position: absolute;
        left: 50%;
        bottom: calc(100% + 9px);
        z-index: 80;
        min-width: max-content;
        max-width: 160px;
        padding: 6px 9px;
        border: 1px solid var(--card-border);
        border-radius: 8px;
        background: color-mix(in srgb, var(--modal-bg) 96%, transparent);
        color: var(--text-primary);
        box-shadow: 0 8px 24px rgba(24, 24, 27, .09), 0 2px 7px rgba(24, 24, 27, .045);
        backdrop-filter: blur(12px) saturate(125%);
        -webkit-backdrop-filter: blur(12px) saturate(125%);
        font-size: 11.5px;
        font-weight: 600;
        line-height: 1.2;
        letter-spacing: 0;
        white-space: nowrap;
        pointer-events: none;
        opacity: 0;
        visibility: hidden;
        transform: translate(-50%, 4px) scale(.96);
        transform-origin: 50% 100%;
        transition: opacity .16s ease, visibility .16s ease, transform .22s var(--motion-spring);
    }

    .btn-mysite-tool[data-tooltip]::before,
    .btn-add-mysite[data-tooltip]::before {
        content: "";
        position: absolute;
        left: 50%;
        bottom: calc(100% + 4px);
        z-index: 81;
        width: 8px;
        height: 8px;
        border-right: 1px solid var(--card-border);
        border-bottom: 1px solid var(--card-border);
        background: var(--modal-bg);
        pointer-events: none;
        opacity: 0;
        visibility: hidden;
        transform: translateX(-50%) rotate(45deg) scale(.8);
        transition: opacity .14s ease, visibility .14s ease, transform .2s var(--motion-spring);
    }

    .btn-mysite-tool[data-tooltip]:hover::after,
    .btn-mysite-tool[data-tooltip]:focus-visible::after,
    .btn-add-mysite[data-tooltip]:hover::after,
    .btn-add-mysite[data-tooltip]:focus-visible::after {
        opacity: 1;
        visibility: visible;
        transform: translate(-50%, 0) scale(1);
    }

    .btn-mysite-tool[data-tooltip]:hover::before,
    .btn-mysite-tool[data-tooltip]:focus-visible::before,
    .btn-add-mysite[data-tooltip]:hover::before,
    .btn-add-mysite[data-tooltip]:focus-visible::before {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) rotate(45deg) scale(1);
    }

    #btnAddMySite[data-tooltip]::after {
        left: auto;
        right: -2px;
        transform: translateY(4px) scale(.96);
        transform-origin: 100% 100%;
    }
    #btnAddMySite[data-tooltip]:hover::after,
    #btnAddMySite[data-tooltip]:focus-visible::after {
        transform: translateY(0) scale(1);
    }
}

body.dark .btn-mysite-tool[data-tooltip]::after,
body.dark .btn-add-mysite[data-tooltip]::after {
    box-shadow: 0 10px 28px rgba(0, 0, 0, .34), 0 2px 8px rgba(0, 0, 0, .2);
}

/* 深浅模式切换过渡 */
html.theme-view-transition::view-transition-old(root),
html.theme-view-transition::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
}
html.theme-view-transition::view-transition-old(root) { z-index: 1; }
html.theme-view-transition::view-transition-new(root) { z-index: 2147483000; }

html.theme-fallback-transition,
html.theme-fallback-transition body,
html.theme-fallback-transition .header,
html.theme-fallback-transition .hero-search-inner,
html.theme-fallback-transition .card,
html.theme-fallback-transition .card-app-inner,
html.theme-fallback-transition .faq-box-inner,
html.theme-fallback-transition .flink-box-inner,
html.theme-fallback-transition .custom-modal,
html.theme-fallback-transition .float-btn,
html.theme-fallback-transition .search-input-box,
html.theme-fallback-transition .category-pills,
html.theme-fallback-transition .auth-tabs,
html.theme-fallback-transition .auth-input-wrap,
html.theme-fallback-transition .hot-card-inner {
    transition-duration: .46s !important;
    transition-timing-function: cubic-bezier(.2,.8,.2,1) !important;
}

#themeBtn { isolation: isolate; transform-origin: center; will-change: transform; }
#themeBtn i { display: inline-flex; align-items: center; justify-content: center; transform-origin: center; will-change: transform, opacity; }

/* 我的网址拖拽排序 */
#mySitesGrid .card-app > a,
#mySitesGrid .card-app img {
    -webkit-user-drag: none;
    user-select: none;
    -webkit-user-select: none;
}

.my-site-drag-handle {
    appearance: none;
    -webkit-appearance: none;
    position: absolute;
    left: 5px;
    top: 5px;
    z-index: 9;
    width: 24px;
    height: 24px;
    padding: 0;
    margin: 0;
    border: 0 !important;
    outline: 0;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    color: var(--text-tertiary);
    font-size: 17px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: grab;
    opacity: .58;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: color .16s ease, opacity .16s ease, transform .16s var(--motion-spring);
}
.my-site-drag-handle i { display: block; line-height: 1; pointer-events: none; }
.my-site-drag-handle:hover,
.my-site-drag-handle:focus-visible {
    color: var(--accent);
    opacity: 1;
    background: transparent !important;
    box-shadow: none !important;
    transform: scale(1.06);
}
.my-site-drag-handle:active { cursor: grabbing; transform: scale(.96); }

#mySitesGrid .card-app { touch-action: pan-y pinch-zoom; }
#mySitesGrid.is-mysites-sorting { isolation: isolate; user-select: none; -webkit-user-select: none; cursor: grabbing; }
#mySitesGrid.is-mysites-sorting .card-app:hover { border-color: var(--card-border); box-shadow: none; }
#mySitesGrid.is-mysites-sorting .card-app:hover .card-app-inner { background: var(--card-inner-bg); }
#mySitesGrid.is-mysites-sorting .card-app:hover .icon-box img { transform: scale(1) !important; filter: drop-shadow(0 1px 1.5px rgba(15, 23, 42, .10)); }

#mySitesGrid .card-app.my-site-sort-placeholder {
    opacity: 0 !important;
    border-color: transparent !important;
    background: transparent !important;
    box-shadow: none !important;
    transition: opacity .08s ease !important;
}
#mySitesGrid .card-app.my-site-sort-placeholder > * { opacity: 0 !important; }

.my-site-sort-ghost {
    opacity: 1;
    overflow: hidden;
    border-color: color-mix(in srgb, var(--accent) 58%, var(--card-border)) !important;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .16), 0 4px 12px rgba(15, 23, 42, .08) !important;
    will-change: transform;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    contain: layout paint;
    transition: none !important;
}
body.dark .my-site-sort-ghost {
    box-shadow: 0 16px 38px rgba(0, 0, 0, .40), 0 5px 14px rgba(0, 0, 0, .22) !important;
}
.my-site-sort-ghost .card-app-inner { background: var(--card-inner-bg) !important; }
.my-site-sort-ghost .icon-box img { transform: none !important; }
.my-site-sort-ghost .my-site-drag-handle { color: var(--accent); opacity: 1; background: transparent !important; box-shadow: none !important; cursor: grabbing; }

/* 登录历史下拉 */
.login-history-anchor { position: relative; width: 100%; z-index: 28; }
.login-history-dropdown {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 7px);
    z-index: 40;
    padding: 6px;
    border: 1px solid var(--modal-border);
    border-radius: 12px;
    background: color-mix(in srgb, var(--modal-bg) 96%, transparent);
    box-shadow: 0 14px 38px rgba(24, 24, 27, .13), 0 3px 10px rgba(24, 24, 27, .055);
    backdrop-filter: blur(16px) saturate(135%);
    -webkit-backdrop-filter: blur(16px) saturate(135%);
    opacity: 0;
    transform: translate3d(0, -5px, 0) scale(.985);
    transform-origin: top center;
    transition: opacity .18s var(--motion-smooth), transform .24s var(--motion-spring);
    max-height: 255px;
    overflow: auto;
    overscroll-behavior: contain;
}
.login-history-dropdown[hidden] { display: none !important; }
.login-history-dropdown.show { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
body.dark .login-history-dropdown { box-shadow: 0 18px 44px rgba(0,0,0,.42), 0 4px 12px rgba(0,0,0,.24); }
.login-history-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 5px 7px 6px; color: var(--text-secondary); font-size: 11.5px; font-weight: 700; }
.login-history-head small { color: var(--text-tertiary); font-size: 9.5px; font-weight: 500; }
.login-history-list { display: grid; gap: 2px; }
.login-history-row { display: flex; align-items: center; min-width: 0; border-radius: 9px; transition: background-color .16s ease; }
.login-history-row:hover { background: var(--modal-sub-bg); }
.login-history-fill { min-width: 0; flex: 1; height: 36px; border: 0; background: transparent; color: var(--text-primary); display: flex; align-items: center; gap: 9px; padding: 0 8px; cursor: pointer; text-align: left; }
.login-history-fill i { color: var(--text-tertiary); font-size: 15px; flex: 0 0 auto; }
.login-history-fill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }
.login-history-remove { width: 30px; height: 30px; flex: 0 0 30px; border: 0; background: transparent; color: var(--text-tertiary); border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 14px; transition: color .16s ease, background-color .16s ease; }
.login-history-remove:hover { color: var(--tag-bg); background: color-mix(in srgb, var(--tag-bg) 9%, transparent); }

/* 页面加载性能优化 */
img { content-visibility: auto; }
.card, .site-card, .faq-item { contain: layout style paint; }

@media (max-width: 580px) {
  .header { padding: 0 10px; gap: 6px; }
  .brand-logo-link { flex-shrink: 0; }
  .header-actions { gap: 6px; }
  .user-logged-in { padding: 3px 6px; gap: 4px; }
  .user-email-text { max-width: 58px; font-size: 11px; }
  .btn-home { padding: 4px 7px; font-size: 11px; }
}

/* ================= 热搜模块专属样式 ================= */
.hot-nav-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 24px auto 26px;
    width: 100%;
}
.hot-nav-wrap .category-pills {
    margin-bottom: 0;
    max-width: 100%;
}
.hot-nav-wrap .cat-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    vertical-align: middle;
}

.hot-nav-wrap .cat-btn .tab-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    border-radius: 4px;
    display: inline-block;
    flex-shrink: 0;
    pointer-events: none;
    transition: transform .24s var(--motion-spring);
}
.hot-nav-wrap .cat-btn:hover .tab-icon {
    transform: scale(1.12);
}

.hot-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
}
@media (max-width: 860px) {
    .hot-grid { grid-template-columns: 1fr; }
}

.hot-card {
    background: transparent;
    border: 1px solid var(--card-border);
    border-radius: 10px;
    padding: 3px;
    text-decoration: none;
    display: block;
    position: relative;
    transition: border-color .28s var(--motion-smooth), box-shadow .34s var(--motion-spring);
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
.hot-card:hover {
    border-color: var(--card-hover-border);
    box-shadow: 0 8px 20px rgba(15, 23, 42, .065);
}
body.dark .hot-card:hover {
    box-shadow: 0 10px 24px rgba(0, 0, 0, .22);
}

.hot-card-inner {
    background: var(--card-inner-bg);
    border-radius: 7px;
    min-height: 52px;
    display: flex;
    align-items: center;
    padding: 8px 12px;
    gap: 12px;
    transition: background-color .28s var(--motion-smooth);
    width: 100%;
    box-sizing: border-box;
}
.hot-card:hover .hot-card-inner {
    background: var(--card-hover-bg);
}

.hot-card-rank {
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    border-radius: 6px;
    background: var(--search-pill-container-bg);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 750;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.hot-card-rank.top-1 { background: #ef4444; color: #fff; }
.hot-card-rank.top-2 { background: #f97316; color: #fff; }
.hot-card-rank.top-3 { background: #eab308; color: #fff; }

.hot-card-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.hot-card-title {
    font-size: 13.5px;
    font-weight: 600;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hot-card-meta {
    font-size: 11px;
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: 12px;
}

.hot-loading-wrap {
    text-align: center;
    padding: 60px 0;
    color: var(--text-secondary);
    font-size: 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* 搜索卡片右上角热搜入口 */
.hero-hot-badge {
    position: absolute;
    top: 14px;
    right: 16px;
    z-index: 10;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 11px;
    border-radius: 20px;
    background: color-mix(in srgb, #ef4444 8%, var(--card-inner-bg));
    border: 1px solid color-mix(in srgb, #ef4444 24%, var(--card-border));
    color: #ef4444;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.08);
    transition: all .24s var(--motion-smooth);
}

.hero-hot-badge i {
    font-size: 13.5px;
    animation: hotFirePulse 1.4s ease-in-out infinite alternate;
}

.hero-hot-badge:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.25);
}

body.dark .hero-hot-badge {
    background: color-mix(in srgb, #ef4444 12%, var(--card-inner-bg));
    border-color: color-mix(in srgb, #ef4444 32%, var(--card-border));
    color: #f87171;
}

body.dark .hero-hot-badge:hover {
    background: #ef4444;
    color: #ffffff;
}

@keyframes hotFirePulse {
    0% { transform: scale(0.92); opacity: 0.85; }
    100% { transform: scale(1.16); opacity: 1; filter: drop-shadow(0 0 3px rgba(239, 68, 68, 0.5)); }
}

@media (max-width: 580px) {
    .hero-hot-badge {
        top: 10px;
        right: 10px;
        padding: 4px 8px;
        font-size: 11px;
    }
}
/* ================= 本地书签：自动网站 Logo + 拖拽排序 ================= */
.local-bookmark-item {
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}
.local-bookmark-item:active { cursor: grabbing; }
.local-bookmark-item.is-dragging {
    opacity: .34;
    transform: scale(.965);
    border-color: color-mix(in srgb, var(--accent) 34%, var(--card-border));
    background: color-mix(in srgb, var(--accent) 5%, var(--card-inner-bg));
}
.local-bookmark-item.is-sort-before::before,
.local-bookmark-item.is-sort-after::after {
    content: "";
    position: absolute;
    top: 4px;
    bottom: 4px;
    width: 2px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 10%, transparent);
    z-index: 5;
    pointer-events: none;
}
.local-bookmark-item.is-sort-before::before { left: -4px; }
.local-bookmark-item.is-sort-after::after { right: -4px; }
.local-bookmarks-shell.is-sorting {
    border-color: color-mix(in srgb, var(--accent) 42%, var(--card-border));
    background: color-mix(in srgb, var(--accent) 2.5%, var(--card-inner-bg));
}
.local-bookmarks-shell.is-sorting .local-bookmarks-drop-hint {
    opacity: 0 !important;
    visibility: hidden !important;
}

.local-bookmark-logo {
    position: relative;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    display: inline-grid;
    place-items: center;
    overflow: hidden;
    border-radius: 4px;
}
.local-bookmark-logo .local-bookmark-emoji {
    width: 18px;
    height: 18px;
    display: inline-grid;
    place-items: center;
    font-size: 14px;
    line-height: 1;
    opacity: 1;
    transform: scale(1);
    transition: opacity .16s ease, transform .2s var(--motion-spring);
}
.local-bookmark-favicon {
    position: absolute;
    inset: 1px;
    width: 16px;
    height: 16px;
    object-fit: contain;
    border-radius: 3px;
    opacity: 0;
    transform: scale(.9);
    transition: opacity .16s ease, transform .22s var(--motion-spring);
}
.local-bookmark-logo.has-icon .local-bookmark-favicon {
    opacity: 1;
    transform: scale(1);
}
.local-bookmark-logo.has-icon .local-bookmark-emoji {
    opacity: 0;
    transform: scale(.82);
}

/* 书签右键菜单：删除操作 */
.local-bookmark-context-separator { height: 1px; margin: 4px 6px; background: var(--card-border); }
.local-bookmark-context-item.is-danger { color: var(--tag-bg); }
.local-bookmark-context-item.is-danger:hover, .local-bookmark-context-item.is-danger:focus-visible { background: color-mix(in srgb, var(--tag-bg) 9%, transparent); color: var(--tag-bg); }


/* ================= 书签点击里程碑 V1 ================= */
.local-bookmarks-milestone-btn { position: relative; }
.local-bookmarks-milestone-btn::after {
    content: ""; position: absolute; right: 2px; top: 2px; width: 4px; height: 4px; border-radius: 50%;
    background: var(--accent); opacity: .78; transform: scale(.75); transition: transform .25s var(--motion-spring), opacity .2s ease;
}
.local-bookmarks-milestone-btn:hover::after { transform: scale(1.1); opacity: 1; }
.local-bookmarks-milestone-btn.has-unlock-pop { animation: bookmarkMilestoneButtonPop .72s var(--motion-spring); }
@keyframes bookmarkMilestoneButtonPop { 0%,100%{transform:scale(1)} 35%{transform:scale(1.34) rotate(-9deg)} 65%{transform:scale(.94) rotate(5deg)} }
.bookmark-milestone-modal { width: min(620px, calc(100vw - 28px)); max-height: min(760px, calc(100dvh - 34px)); overflow: hidden; }
.bookmark-milestone-heading-icon { background: color-mix(in srgb, var(--accent) 8%, var(--modal-sub-bg)); color: color-mix(in srgb, var(--accent) 82%, var(--text-primary)); }
.bookmark-milestone-content { padding: 18px; overflow-y: auto; max-height: calc(100dvh - 150px); overscroll-behavior: contain; }
.bookmark-milestone-summary { border: 1px solid var(--modal-guide-border); background: var(--modal-sub-bg); border-radius: 14px; padding: 16px; display: grid; grid-template-columns: 128px minmax(0,1fr); align-items: center; gap: 18px; }
.bookmark-milestone-total-box { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px; }
.bookmark-milestone-eyebrow { width: 100%; color: var(--text-tertiary); font-size: 11px; margin-bottom: 3px; }
.bookmark-milestone-total-box strong { font-size: 30px; letter-spacing: -1.2px; line-height: 1; color: var(--text-primary); }
.bookmark-milestone-total-box > span:last-child { color: var(--text-secondary); font-size: 12px; }
.bookmark-milestone-next { min-width: 0; }
.bookmark-milestone-next-copy { display:flex; justify-content:space-between; gap:10px; align-items:center; margin-bottom:8px; font-size:11.5px; color:var(--text-secondary); }
.bookmark-milestone-next-copy span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.bookmark-milestone-next-copy b { flex:0 0 auto; color:var(--text-primary); font-size:11px; }
.bookmark-milestone-progress { height: 7px; border-radius: 999px; background: var(--search-pill-container-bg); overflow: hidden; }
.bookmark-milestone-progress > span { display:block; width:var(--milestone-progress,0%); height:100%; border-radius:inherit; background:var(--accent); transition:width .65s var(--motion-spring); }
.bookmark-milestone-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-top:12px; }
.bookmark-milestone-badge { position:relative; border:1px solid var(--modal-guide-border); border-radius:13px; padding:13px; background:color-mix(in srgb, var(--modal-sub-bg) 72%, var(--modal-bg)); display:grid; grid-template-columns:42px minmax(0,1fr); column-gap:10px; row-gap:9px; align-items:center; animation:bookmarkMilestoneCardIn .45s var(--motion-spring) both; animation-delay:var(--badge-delay,0ms); transition:border-color .22s ease, background .22s ease, opacity .22s ease; }
@keyframes bookmarkMilestoneCardIn { from{opacity:0;transform:translateY(8px) scale(.98)} to{opacity:1;transform:none} }
.bookmark-milestone-badge.is-locked { opacity:.62; }
.bookmark-milestone-badge.is-unlocked { border-color:color-mix(in srgb,var(--accent) 18%,var(--modal-guide-border)); background:color-mix(in srgb,var(--accent) 2.5%,var(--modal-sub-bg)); }
.bookmark-milestone-medal { width:42px;height:42px;border-radius:50%;display:grid;place-items:center;position:relative;background:var(--modal-sub-bg);color:var(--text-tertiary);font-size:20px;border:1px solid var(--modal-guide-border); }
.is-unlocked .bookmark-milestone-medal { color:color-mix(in srgb,var(--accent) 72%,var(--text-primary));background:color-mix(in srgb,var(--accent) 6%,var(--modal-bg));box-shadow:none; }
.bookmark-milestone-lock { position:absolute;right:-3px;bottom:-2px;width:16px;height:16px;border-radius:50%;display:grid;place-items:center;font-size:9px;background:var(--modal-bg);border:1px solid var(--modal-guide-border); }
.is-unlocked .bookmark-milestone-lock { color:color-mix(in srgb,var(--accent) 78%,var(--text-primary)); }
.bookmark-milestone-badge-copy { min-width:0;display:flex;flex-direction:column;gap:2px; }
.bookmark-milestone-badge-copy strong { font-size:13px;color:var(--text-primary); }
.bookmark-milestone-badge-copy span { font-size:10.5px;color:var(--text-tertiary); }
.bookmark-milestone-badge-progress { grid-column:1 / -1;height:4px;border-radius:999px;background:var(--search-pill-container-bg);overflow:hidden; }
.bookmark-milestone-badge-progress span { display:block;height:100%;border-radius:inherit;background:var(--accent);transition:width .65s var(--motion-spring); }
.bookmark-milestone-badge em { grid-column:1 / -1;font-style:normal;font-size:10px;color:var(--text-tertiary);text-align:right;margin-top:-4px; }
.is-unlocked.bookmark-milestone-badge em { color:var(--text-secondary);font-weight:650; }
.bookmark-milestone-local-note { margin-top:12px;padding:10px 12px;border-radius:10px;background:var(--modal-sub-bg);color:var(--text-tertiary);font-size:10.5px;line-height:1.55;display:flex;gap:7px;align-items:flex-start; }
.bookmark-milestone-local-note i { margin-top:1px;color:var(--accent); }
body.dark .bookmark-milestone-badge { background: #262626; border-color: #363636; }
body.dark .bookmark-milestone-badge.is-unlocked { background: #292929; border-color: #404040; }
body.dark .bookmark-milestone-medal { background: #1d1d1d; border-color: #353535; }
body.dark .bookmark-milestone-badge-progress { background: #1c1c1c; }
@media (max-width:560px) { .bookmark-milestone-summary{grid-template-columns:1fr;gap:12px}.bookmark-milestone-grid{grid-template-columns:1fr}.bookmark-milestone-content{padding:14px}.bookmark-milestone-total-box strong{font-size:27px} }

/* ================= 热搜切换显示动效 V2 ================= */
#hotContent { min-height: 120px; transform-origin: 50% 0; }
#hotContent.is-switching { pointer-events: none; }
.hot-loading-motion { animation: hotLoadingFloat .9s ease-in-out infinite alternate; }
@keyframes hotLoadingFloat { from{transform:translateY(1px);opacity:.76} to{transform:translateY(-3px);opacity:1} }
#btnRefreshHot.is-refreshing i { display:inline-block; animation:hotRefreshSpin .72s linear infinite; }
@keyframes hotRefreshSpin { to{transform:rotate(360deg)} }
.hot-card { will-change: transform, opacity, filter; }
.hot-card:active { transform: scale(.992); }
.hot-card-rank { transition: transform .3s var(--motion-spring), box-shadow .3s var(--motion-spring); }
.hot-card:hover .hot-card-rank { transform: scale(1.08) rotate(-3deg); }
.hot-nav-wrap .cat-btn.active .tab-icon { animation:hotTabIconPop .38s var(--motion-spring); }
@keyframes hotTabIconPop { 0%{transform:scale(.82);opacity:.5} 65%{transform:scale(1.15)} 100%{transform:scale(1)} }
@media (prefers-reduced-motion: reduce) { .local-bookmarks-milestone-btn.has-unlock-pop,.bookmark-milestone-badge,.hot-loading-motion,#btnRefreshHot.is-refreshing i,.hot-nav-wrap .cat-btn.active .tab-icon{animation:none!important}.hot-card{will-change:auto} }


/* ================= 纯中性浅色主题补充覆盖 V1 ================= */
body:not(.dark) .modal-heading-icon { background:#f1f1f1; border-color:#dddddd; }
body:not(.dark) .ext-install-banner { background:#f2f2f2; border-color:#dfdfdf; }
body:not(.dark) .bookmark-help-tip { background:#f2f2f2; border-color:#dfdfdf; }
body:not(.dark) .report-reason-label.checked { background:#f0f0f0; box-shadow:inset 0 0 0 1px #dddddd; }
body:not(.dark) .bookmark-milestone-badge { background:#f5f5f5; border-color:#dfdfdf; }
body:not(.dark) .bookmark-milestone-badge.is-unlocked { background:#f2f2f2; border-color:#d6d6d6; }
body:not(.dark) .bookmark-milestone-medal { background:#ffffff; border-color:#dddddd; }
body:not(.dark) .bookmark-milestone-badge-progress { background:#e7e7e7; }

/* ================= 纯中性深灰主题补充覆盖 V1 ================= */
body.dark .modal-heading-icon { background:#2a2a2a; border-color:#3a3a3a; }
body.dark .ext-install-banner { background:#292929; border-color:#3a3a3a; }
body.dark .bookmark-help-tip { background:#292929; border-color:#3a3a3a; }
body.dark .report-reason-label.checked { background:#282828; box-shadow:inset 0 0 0 1px #363636; }


/* CJSW_BOOKMARK_CLOUD_BACKUP_V2_20260828 */
.local-bookmark-cloud-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-left: 3px;
    padding-left: 8px;
    border-left: 1px solid var(--card-border);
}
.local-bookmark-cloud-actions[hidden] { display: none !important; }
.local-bookmark-cloud-actions .local-bookmark-action-btn {
    width: auto;
    min-width: 34px;
    padding: 0 9px;
    gap: 5px;
}
.local-bookmark-cloud-label {
    font-size: 12px;
    line-height: 1;
    white-space: nowrap;
}
.local-bookmark-cloud-actions .local-bookmark-action-btn[data-loading="1"] {
    opacity: .58;
    pointer-events: none;
}
@media (max-width: 640px) {
    .local-bookmark-cloud-actions { gap: 3px; padding-left: 5px; margin-left: 1px; }
    .local-bookmark-cloud-actions .local-bookmark-action-btn { width: 32px; min-width: 32px; padding: 0; }
    .local-bookmark-cloud-label { display: none; }
}

/* ================= CJSW_BOOKMARK_STARTPAGE_ENTRY_V2_20260830 =================
   首页书签恢复原有横向紧凑样式；仅保留“起始页”入口。 */
.local-bookmarks-startpage-btn {
    height: 24px;
    padding: 0 7px;
    border: 1px solid var(--card-border);
    border-radius: 7px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    flex: 0 0 auto;
    color: var(--text-tertiary);
    background: transparent;
    text-decoration: none;
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1;
    transition: color .2s var(--motion-smooth), border-color .2s var(--motion-smooth), background-color .2s var(--motion-smooth), transform .26s var(--motion-spring);
}
.local-bookmarks-startpage-btn i { font-size: 13px; }
.local-bookmarks-startpage-btn:hover {
    color: var(--accent);
    border-color: color-mix(in srgb, var(--accent) 34%, var(--card-border));
    background: var(--accent-light);
}
.local-bookmarks-startpage-btn:active { transform: scale(.94); }
@media (max-width: 580px) {
    .local-bookmarks-startpage-btn span { display: none; }
    .local-bookmarks-startpage-btn { width: 25px; padding: 0; }
}


/* CJSW_STARTPAGE_SHARED_V2_5 - 起始页模板已合并到共享 style.css */
html.start-page{background:#151515}
html.start-page body.start-page-body{visibility:visible;opacity:1}
html.start-page{--bg:#edf1f5;--text:#fff;--text-dark:#252525;--muted:rgba(255,255,255,.72);--glass:rgba(255,255,255,.20);--glass-strong:rgba(255,255,255,.28);--line:rgba(255,255,255,.30);--shadow:0 18px 58px rgba(0,0,0,.15);--accent:#4a8df6;--setting-bg:rgba(248,249,251,.94);--setting-text:#242424;--setting-muted:#808080;--setting-line:rgba(30,30,30,.08);--setting-card:#fff}
html.start-page.dark{--setting-bg:rgba(29,29,29,.95);--setting-text:#eee;--setting-muted:#8f8f8f;--setting-line:rgba(255,255,255,.08);--setting-card:#252525}
html.start-page *{box-sizing:border-box;margin:0;padding:0;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"PingFang SC","Microsoft YaHei",sans-serif;-webkit-tap-highlight-color:transparent}
html.start-page{background:#151515}html.start-page,html.start-page body{width:100%;min-height:100%;overflow-x:hidden}html.start-page body{min-height:100dvh;background:transparent;color:var(--text);overflow:hidden;user-select:none}
html.start-page .wallpaper-layer,html.start-page .wallpaper-fallback,html.start-page .wallpaper-shade{position:fixed;inset:-20px;pointer-events:none}html.start-page .wallpaper-fallback{z-index:-4;background:linear-gradient(145deg,#7ea8d6 0%,#7993ad 36%,#937f7a 72%,#57687c 100%);transform:scale(1.04)}html.start-page.has-custom-wall .wallpaper-fallback{background-image:var(--boot-wall);background-position:center;background-size:cover;background-repeat:no-repeat;filter:blur(8px);transform:scale(1.08)}html.start-page .wallpaper-layer{z-index:-3;background-position:center;background-size:cover;background-repeat:no-repeat;opacity:0;transform:scale(1.045);transition:opacity .36s cubic-bezier(.2,.8,.2,1),transform .75s cubic-bezier(.16,1,.3,1),filter .35s ease}html.start-page .wallpaper-layer.ready{opacity:1;transform:scale(1.025)}html.start-page .wallpaper-shade{z-index:-2;background:rgba(0,0,0,var(--wall-dim,.15));backdrop-filter:blur(var(--wall-blur,0px));-webkit-backdrop-filter:blur(var(--wall-blur,0px));transition:background .3s ease,backdrop-filter .3s ease}
html.start-page .ambient{position:fixed;inset:0;z-index:-1;background:radial-gradient(circle at 50% 38%,rgba(255,255,255,.09),transparent 38%),linear-gradient(to bottom,rgba(0,0,0,.05),rgba(0,0,0,.18));pointer-events:none}
html.start-page .topbar{position:fixed;z-index:20;left:0;right:0;top:0;height:64px;padding:0 clamp(14px,3vw,40px);display:flex;align-items:center;justify-content:space-between;opacity:0;transform:translateY(-9px);animation:topIn .55s .12s cubic-bezier(.16,1,.3,1) forwards}html.start-page .top-actions{display:flex;gap:8px}html.start-page .top-btn{width:38px;height:38px;border:0;background:rgba(0,0,0,.14);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-radius:50%;color:#fff;display:grid;place-items:center;text-decoration:none;cursor:pointer;font-size:17px;transition:transform .28s cubic-bezier(.16,1,.3,1),background .2s ease,box-shadow .2s ease}html.start-page .top-btn:hover{transform:translateY(-2px) scale(1.04);background:rgba(0,0,0,.22);box-shadow:0 8px 24px rgba(0,0,0,.12)}html.start-page .top-btn:active{transform:scale(.92)}
html.start-page .stage{height:100dvh;width:min(1050px,calc(100% - 28px));margin:0 auto;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:72px 0 46px;transition:transform .75s cubic-bezier(.16,1,.3,1)}
html.start-page .hero{width:100%;display:flex;flex-direction:column;align-items:center;transition:transform .72s cubic-bezier(.16,1,.3,1)}html.start-page .clock{text-align:center;margin-bottom:27px;cursor:pointer;transition:transform .38s cubic-bezier(.16,1,.3,1),opacity .3s ease;text-shadow:0 2px 16px rgba(0,0,0,.14)}html.start-page .clock:hover{transform:scale(1.018)}html.start-page .time{font-size:clamp(52px,8vw,82px);font-weight:200;letter-spacing:-4px;line-height:1}html.start-page .date{margin-top:10px;color:var(--muted);font-size:13px;letter-spacing:.05em;font-weight:500}
html.start-page .search-wrap{width:min(650px,100%);position:relative;z-index:8}html.start-page .search-box{height:56px;border-radius:28px;background:rgba(255,255,255,.92);box-shadow:0 12px 36px rgba(0,0,0,.14);display:flex;align-items:center;padding:0 8px 0 7px;transition:width .35s cubic-bezier(.16,1,.3,1),transform .35s cubic-bezier(.16,1,.3,1),box-shadow .3s ease,background .25s ease}html.start-page .search-box:focus-within{transform:translateY(-2px) scale(1.012);box-shadow:0 18px 48px rgba(0,0,0,.19);background:#fff}html.start-page .engine-trigger{width:43px;height:43px;flex:0 0 43px;border:0;border-radius:50%;background:transparent;color:#555;display:grid;place-items:center;cursor:pointer;transition:.24s ease}html.start-page .engine-trigger:hover,html.start-page .engine-trigger.open{background:#f1f3f5;color:#222}html.start-page .engine-mark{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#f2f4f6;overflow:hidden;font-size:13px;font-weight:800;color:#555}html.start-page .engine-mark img{width:20px;height:20px;object-fit:contain}html.start-page .search-box input{flex:1;min-width:0;height:100%;border:0;outline:0;background:transparent;color:#252525;padding:0 10px;font-size:15px;user-select:text}html.start-page .search-go{width:42px;height:42px;border:0;border-radius:50%;background:transparent;color:#777;cursor:pointer;font-size:18px;transition:.2s ease}html.start-page .search-go:hover{background:#f0f2f4;color:#222;transform:rotate(-8deg)}
html.start-page .engine-layer{position:fixed;inset:0;z-index:120;pointer-events:none;opacity:0;visibility:hidden;transition:opacity .18s ease,visibility .18s ease}html.start-page .engine-layer.show{opacity:1;visibility:visible;pointer-events:auto}html.start-page .engine-layer::before{content:"";position:absolute;inset:0;background:rgba(0,0,0,.10);backdrop-filter:blur(2px);-webkit-backdrop-filter:blur(2px);opacity:0;transition:opacity .2s ease}html.start-page .engine-layer.show::before{opacity:1}html.start-page .engine-pop{position:fixed;left:0;top:0;width:min(540px,calc(100vw - 24px));max-height:min(68vh,560px);display:flex;flex-direction:column;overflow:hidden;background:rgba(255,255,255,.965);color:#222;border:1px solid rgba(255,255,255,.72);border-radius:22px;box-shadow:0 26px 90px rgba(0,0,0,.24),0 1px 0 rgba(255,255,255,.7) inset;backdrop-filter:blur(30px) saturate(150%);-webkit-backdrop-filter:blur(30px) saturate(150%);opacity:0;transform:translateY(-8px) scale(.975);transform-origin:top left;transition:opacity .2s ease,transform .34s cubic-bezier(.16,1,.3,1)}html.start-page .engine-layer.show .engine-pop{opacity:1;transform:none}html.start-page .engine-pop-head{min-height:64px;padding:12px 14px 9px 18px;display:flex;align-items:center;justify-content:space-between;gap:12px}html.start-page .engine-pop-head>div:first-child{min-width:0;display:flex;flex-direction:column;gap:3px}html.start-page .engine-pop-head strong{font-size:15px;font-weight:720;letter-spacing:-.01em}html.start-page .engine-pop-head span{font-size:10px;color:#9a9a9a}html.start-page .engine-pop-close{width:34px;height:34px;border:0;border-radius:12px;background:#f3f4f6;color:#888;display:grid;place-items:center;cursor:pointer;font-size:18px;transition:.22s cubic-bezier(.16,1,.3,1)}html.start-page .engine-pop-close:hover{background:#e9ebee;color:#222;transform:scale(1.05)}html.start-page .engine-tabs{display:flex;gap:6px;padding:0 14px 11px 18px;overflow:auto;scrollbar-width:none}html.start-page .engine-tabs::-webkit-scrollbar{display:none}html.start-page .engine-tab{height:30px;flex:0 0 auto;padding:0 11px;border:0;border-radius:9px;background:#f3f4f6;color:#737373;font-size:11px;font-weight:650;cursor:pointer;transition:.22s cubic-bezier(.16,1,.3,1)}html.start-page .engine-tab:hover{background:#eceef1;color:#333}html.start-page .engine-tab.active{background:#252525;color:#fff;box-shadow:0 5px 13px rgba(0,0,0,.13)}html.start-page .engine-pop-body{padding:4px 14px 15px 18px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}html.start-page .engine-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}html.start-page .engine-option{min-width:0;height:76px;border:1px solid transparent;background:#f5f6f7;border-radius:15px;padding:9px 8px;color:#333;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;cursor:pointer;text-align:center;position:relative;transition:transform .28s cubic-bezier(.16,1,.3,1),background .2s ease,border-color .2s ease,box-shadow .25s ease}html.start-page .engine-option:hover{background:#fff;border-color:#e7e9ec;transform:translateY(-2px);box-shadow:0 9px 24px rgba(0,0,0,.08)}html.start-page .engine-option.active{background:#fff;border-color:#d7e4fb;box-shadow:0 7px 20px rgba(58,118,210,.11),0 0 0 1px rgba(73,133,226,.08)}html.start-page .engine-option.active::after{content:"";position:absolute;right:8px;top:8px;width:7px;height:7px;border-radius:50%;background:#4a86e8;box-shadow:0 0 0 3px rgba(74,134,232,.12)}html.start-page .engine-option .mini{width:34px;height:34px;flex:0 0 34px;border-radius:11px;background:#fff;display:grid;place-items:center;overflow:hidden;font-size:12px;font-weight:800;box-shadow:0 2px 8px rgba(0,0,0,.05)}html.start-page .engine-option .mini img{width:22px;height:22px;object-fit:contain}html.start-page .engine-option .engine-name{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;font-weight:650;color:#484848}html.start-page .engine-option.active .engine-name{color:#2f6fcf}html.start-page.dark .engine-pop{background:rgba(29,29,29,.97);color:#eee;border-color:rgba(255,255,255,.10);box-shadow:0 26px 90px rgba(0,0,0,.52)}html.start-page.dark .engine-pop-head span{color:#858585}html.start-page.dark .engine-pop-close{background:#2a2a2a;color:#999}html.start-page.dark .engine-pop-close:hover{background:#343434;color:#fff}html.start-page.dark .engine-tab{background:#292929;color:#999}html.start-page.dark .engine-tab:hover{background:#323232;color:#ddd}html.start-page.dark .engine-tab.active{background:#f0f0f0;color:#202020;box-shadow:none}html.start-page.dark .engine-option{background:#272727;color:#ddd}html.start-page.dark .engine-option:hover{background:#303030;border-color:#3a3a3a;box-shadow:0 9px 24px rgba(0,0,0,.22)}html.start-page.dark .engine-option.active{background:#303030;border-color:#3e5f8b;box-shadow:0 0 0 1px rgba(88,143,220,.08)}html.start-page.dark .engine-option .mini{background:#383838;box-shadow:none}html.start-page.dark .engine-option .engine-name{color:#d3d3d3}html.start-page.dark .engine-option.active .engine-name{color:#82b0f2}
html.start-page .secondary{width:100%;margin-top:0;max-height:0;opacity:0;visibility:hidden;transform:translateY(32px) scale(.97);transition:max-height .7s cubic-bezier(.16,1,.3,1),opacity .38s ease,transform .7s cubic-bezier(.16,1,.3,1),visibility .01s .45s;overflow:visible}html.start-page .secondary-inner{padding-top:34px}html.start-page .apps-panel{width:100%;padding:21px 18px 18px;border-radius:24px;background:rgba(20,20,20,.15);border:1px solid rgba(255,255,255,.20);backdrop-filter:blur(24px) saturate(120%);-webkit-backdrop-filter:blur(24px) saturate(120%);box-shadow:0 20px 70px rgba(0,0,0,.12)}html.start-page .panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:17px;padding:0 5px}html.start-page .panel-title{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:650;text-shadow:0 2px 9px rgba(0,0,0,.12)}html.start-page .panel-sub{font-size:10px;color:rgba(255,255,255,.65);font-weight:500}html.start-page .icon-btn{width:33px;height:33px;border:1px solid rgba(255,255,255,.16);border-radius:11px;background:rgba(0,0,0,.08);color:#fff;display:grid;place-items:center;cursor:pointer;font-size:16px;transition:.2s ease}html.start-page .icon-btn:hover{transform:scale(1.06);background:rgba(255,255,255,.15)}
html.start-page .apps{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:21px 12px;min-height:90px}html.start-page .app{position:relative;min-width:0;display:flex;flex-direction:column;align-items:center;gap:8px;cursor:grab;user-select:none;opacity:0;transform:translateY(12px) scale(.92)}html.start-page body.secondary-open .app{animation:appIn .5s cubic-bezier(.16,1,.3,1) forwards;animation-delay:calc(var(--i,0)*22ms + 90ms)}html.start-page .app:active{cursor:grabbing}html.start-page .app.is-dragging{opacity:.3!important;transform:scale(.9)!important}html.start-page .app-icon{width:58px;height:58px;border-radius:17px;background:rgba(255,255,255,.90);box-shadow:0 8px 20px rgba(0,0,0,.12);display:grid;place-items:center;overflow:hidden;position:relative;transition:transform .3s cubic-bezier(.16,1,.3,1),box-shadow .25s ease}html.start-page .app:hover .app-icon{transform:translateY(-4px) scale(1.06);box-shadow:0 14px 28px rgba(0,0,0,.18)}html.start-page .app-icon img{width:38px;height:38px;object-fit:contain;border-radius:10px}html.start-page .app-emoji{font-size:28px}html.start-page .app-name{width:100%;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#fff;font-size:11px;text-shadow:0 1px 6px rgba(0,0,0,.42)}html.start-page .app-link{position:absolute;inset:0;z-index:1;border-radius:16px}html.start-page .empty{grid-column:1/-1;min-height:96px;display:flex;align-items:center;justify-content:center;color:rgba(255,255,255,.72);font-size:12px;text-align:center}html.start-page .tip{margin-top:14px;color:rgba(255,255,255,.58);font-size:10px;text-align:center}
html.start-page body.secondary-open .stage{transform:translateY(-4vh)}html.start-page body.secondary-open .hero{transform:translateY(-7px)}html.start-page body.secondary-open .clock{transform:scale(.82);opacity:.90;margin-bottom:18px}html.start-page body.secondary-open .secondary{max-height:58vh;opacity:1;visibility:visible;transform:none;transition:max-height .75s cubic-bezier(.16,1,.3,1),opacity .42s .05s ease,transform .75s cubic-bezier(.16,1,.3,1),visibility 0s}
html.start-page .settings-mask{position:fixed;inset:0;z-index:45;background:rgba(0,0,0,.20);backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);opacity:0;visibility:hidden;transition:.28s ease}html.start-page .settings-mask.show{opacity:1;visibility:visible}html.start-page .settings{position:absolute;right:14px;top:14px;bottom:14px;width:min(410px,calc(100% - 28px));background:var(--setting-bg);color:var(--setting-text);border:1px solid var(--setting-line);border-radius:24px;box-shadow:0 28px 90px rgba(0,0,0,.27);transform:translateX(35px) scale(.985);opacity:0;transition:.42s cubic-bezier(.16,1,.3,1);overflow:hidden;display:flex;flex-direction:column}html.start-page .settings-mask.show .settings{transform:none;opacity:1}html.start-page .settings-head{height:65px;display:flex;align-items:center;justify-content:space-between;padding:0 20px;border-bottom:1px solid var(--setting-line)}html.start-page .settings-head h2{font-size:16px}html.start-page .settings-close{width:34px;height:34px;border:0;border-radius:50%;background:transparent;color:var(--setting-muted);cursor:pointer;font-size:19px}html.start-page .settings-close:hover{background:var(--setting-line);color:var(--setting-text)}html.start-page .settings-body{overflow:auto;padding:18px 18px 30px;user-select:text}html.start-page .setting-section+.setting-section{margin-top:23px}html.start-page .setting-title{font-size:12px;color:var(--setting-muted);margin:0 4px 8px}html.start-page .setting-card{background:var(--setting-card);border:1px solid var(--setting-line);border-radius:16px;padding:14px}html.start-page .setting-row{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:42px}html.start-page .setting-row+.setting-row{border-top:1px solid var(--setting-line)}html.start-page .setting-label strong{display:block;font-size:13px}html.start-page .setting-label small{display:block;margin-top:3px;color:var(--setting-muted);font-size:10px;line-height:1.4}html.start-page .setting-btn{height:34px;padding:0 11px;border:1px solid var(--setting-line);background:transparent;color:var(--setting-text);border-radius:10px;cursor:pointer;font-size:11px;white-space:nowrap}html.start-page .setting-btn:hover{background:var(--setting-line)}html.start-page .setting-btn.primary{background:#3f80e9;color:#fff;border-color:#3f80e9}html.start-page .setting-input{width:100%;height:40px;margin-top:9px;padding:0 11px;border:1px solid var(--setting-line);border-radius:10px;background:transparent;color:var(--setting-text);outline:0;font-size:12px}html.start-page .setting-input:focus{border-color:#5a94ed}html.start-page .range-wrap{display:flex;align-items:center;gap:9px;min-width:150px}html.start-page .range-wrap input{width:110px}html.start-page .range-value{width:34px;text-align:right;color:var(--setting-muted);font-size:10px}html.start-page .wall-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}html.start-page .wall-preview{height:105px;border-radius:13px;background:linear-gradient(135deg,#799fc8,#8f7770);background-size:cover;background-position:center;border:1px solid var(--setting-line);position:relative;overflow:hidden}html.start-page .wall-preview::after{content:"当前壁纸";position:absolute;left:9px;bottom:8px;padding:4px 7px;border-radius:7px;background:rgba(0,0,0,.38);color:#fff;font-size:10px}html.start-page .hidden-file{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}
html.start-page .modal-mask{position:fixed;inset:0;z-index:60;background:rgba(0,0,0,.24);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);display:grid;place-items:center;padding:18px;opacity:0;visibility:hidden;transition:.2s ease}html.start-page .modal-mask.show{opacity:1;visibility:visible}html.start-page .modal{width:min(420px,100%);background:var(--setting-bg);color:var(--setting-text);border:1px solid var(--setting-line);border-radius:20px;padding:20px;box-shadow:0 24px 80px rgba(0,0,0,.20);transform:translateY(12px) scale(.97);transition:.32s cubic-bezier(.16,1,.3,1)}html.start-page .modal-mask.show .modal{transform:none}html.start-page .modal h2{font-size:16px;margin-bottom:5px}html.start-page .modal p{font-size:11px;color:var(--setting-muted);margin-bottom:15px}html.start-page .field{display:flex;flex-direction:column;gap:6px;margin-top:11px}html.start-page .field label{font-size:11px;color:var(--setting-muted)}html.start-page .field input{height:42px;border:1px solid var(--setting-line);border-radius:11px;padding:0 12px;outline:0;background:transparent;color:var(--setting-text);font-size:13px;user-select:text}html.start-page .modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}html.start-page .modal-actions button{height:38px;padding:0 14px;border-radius:10px;border:1px solid var(--setting-line);background:transparent;color:var(--setting-text);cursor:pointer;font-weight:600}html.start-page .modal-actions .primary{background:#3f80e9;border-color:#3f80e9;color:#fff}html.start-page .toast{position:fixed;z-index:90;left:50%;bottom:28px;transform:translate(-50%,12px);padding:9px 13px;border-radius:11px;background:rgba(25,25,25,.82);backdrop-filter:blur(15px);color:#fff;font-size:12px;opacity:0;pointer-events:none;transition:.24s ease}html.start-page .toast.show{opacity:1;transform:translate(-50%,0)}html.start-page .context{position:fixed;z-index:75;width:150px;background:var(--setting-bg);color:var(--setting-text);border:1px solid var(--setting-line);border-radius:12px;padding:5px;box-shadow:0 18px 55px rgba(0,0,0,.18);display:none}html.start-page .context.show{display:block;animation:contextIn .2s cubic-bezier(.16,1,.3,1)}html.start-page .context button{width:100%;height:34px;border:0;border-radius:8px;background:transparent;color:inherit;display:flex;align-items:center;gap:8px;padding:0 10px;cursor:pointer;font-size:12px}html.start-page .context button:hover{background:var(--setting-line)}html.start-page .context .danger{color:#ef4444}
@keyframes topIn{to{opacity:1;transform:none}}@keyframes appIn{to{opacity:1;transform:none}}@keyframes contextIn{from{opacity:0;transform:scale(.94) translateY(-4px)}to{opacity:1;transform:none}}
@media(max-width:820px){html.start-page .apps{grid-template-columns:repeat(6,minmax(0,1fr))}html.start-page .stage{justify-content:flex-start;padding-top:17vh}html.start-page body.secondary-open .stage{transform:translateY(-5vh)}}
@media(max-width:620px){html.start-page .topbar{height:54px;padding:0 11px}html.start-page .stage{width:calc(100% - 18px);padding-top:18vh}html.start-page .time{font-size:58px}html.start-page .date{font-size:12px}html.start-page .search-box{height:52px}html.start-page .secondary-inner{padding-top:25px}html.start-page .apps-panel{padding:17px 7px 17px;border-radius:20px}html.start-page .panel-head{padding:0 8px}html.start-page .apps{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px 3px}html.start-page .app-icon{width:55px;height:55px;border-radius:16px}html.start-page .app-icon img{width:35px;height:35px}html.start-page .app-name{font-size:10.5px;padding:0 2px}html.start-page .tip{display:none}html.start-page body.secondary-open .stage{transform:translateY(-8vh)}html.start-page body.secondary-open .clock{transform:scale(.76)}html.start-page body.secondary-open .secondary{max-height:62vh}html.start-page .settings{inset:8px;width:auto}}
@media(max-width:620px){html.start-page .engine-layer::before{background:rgba(0,0,0,.18);backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px)}html.start-page .engine-pop{width:calc(100vw - 16px);max-height:min(72vh,590px);border-radius:19px;transform-origin:top center}html.start-page .engine-pop-head{min-height:58px;padding:10px 12px 8px 15px}html.start-page .engine-tabs{padding:0 11px 10px 15px}html.start-page .engine-pop-body{padding:4px 11px 13px 15px}html.start-page .engine-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}html.start-page .engine-option{height:72px}}
@media(prefers-reduced-motion:reduce){html.start-page *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
/* CJSW_STARTPAGE_SHARED_V2_5_END */


/* CJSW_STARTPAGE_MOBILE_GLASS_V2_7 */
html.start-page{
    --start-search-bg:rgba(255,255,255,.38);
    --start-search-bg-focus:rgba(255,255,255,.50);
    --start-search-border:rgba(255,255,255,.42);
    --start-search-text:#242424;
    --start-search-placeholder:rgba(36,36,36,.52);
    --start-search-control:rgba(255,255,255,.30);
    --start-search-control-hover:rgba(255,255,255,.54);
    --start-apps-panel-bg:rgba(255,255,255,.16);
    --start-apps-panel-border:rgba(255,255,255,.26);
}
html.start-page.dark{
    --start-search-bg:rgba(25,25,25,.52);
    --start-search-bg-focus:rgba(25,25,25,.64);
    --start-search-border:rgba(255,255,255,.12);
    --start-search-text:#f1f1f1;
    --start-search-placeholder:rgba(241,241,241,.52);
    --start-search-control:rgba(255,255,255,.07);
    --start-search-control-hover:rgba(255,255,255,.12);
    --start-apps-panel-bg:rgba(22,22,22,.28);
    --start-apps-panel-border:rgba(255,255,255,.13);
}
html.start-page .search-box{
    background:var(--start-search-bg)!important;
    color:var(--start-search-text);
    border:1px solid var(--start-search-border);
    box-shadow:0 12px 38px rgba(0,0,0,.12),inset 0 1px 0 rgba(255,255,255,.14);
    backdrop-filter:blur(24px) saturate(145%);
    -webkit-backdrop-filter:blur(24px) saturate(145%);
    transition:transform .35s cubic-bezier(.16,1,.3,1),box-shadow .3s ease,background-color .28s ease,border-color .28s ease,color .28s ease!important;
}
html.start-page .search-box:focus-within{
    background:var(--start-search-bg-focus)!important;
    border-color:color-mix(in srgb,var(--start-search-border) 72%,white 28%);
    box-shadow:0 18px 50px rgba(0,0,0,.17),inset 0 1px 0 rgba(255,255,255,.18);
}
html.start-page .search-box input{color:var(--start-search-text)!important}
html.start-page .search-box input::placeholder{color:var(--start-search-placeholder);opacity:1}
html.start-page .engine-trigger,html.start-page .search-go{color:var(--start-search-text)!important}
html.start-page .engine-trigger:hover,html.start-page .engine-trigger.open,html.start-page .search-go:hover{background:var(--start-search-control-hover)!important;color:var(--start-search-text)!important}
html.start-page .engine-mark{background:var(--start-search-control)!important;color:var(--start-search-text)!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.08)}

/* 书签玻璃层始终使用稳定的不透明度；展开时只做几何运动，避免 backdrop-filter 从透明到模糊的突跳。 */
html.start-page .secondary{opacity:1!important;transition:max-height .70s cubic-bezier(.16,1,.3,1),transform .64s cubic-bezier(.16,1,.3,1),visibility 0s .42s!important}
html.start-page body.secondary-open .secondary{opacity:1!important;transition:max-height .72s cubic-bezier(.16,1,.3,1),transform .64s cubic-bezier(.16,1,.3,1),visibility 0s!important}
html.start-page .secondary-inner{opacity:1;transform:translateY(18px) scale(.985);transform-origin:top center;transition:transform .62s cubic-bezier(.16,1,.3,1)}
html.start-page body.secondary-open .secondary-inner{transform:none}
html.start-page .apps-panel{
    background:var(--start-apps-panel-bg)!important;
    border-color:var(--start-apps-panel-border)!important;
    backdrop-filter:blur(26px) saturate(135%)!important;
    -webkit-backdrop-filter:blur(26px) saturate(135%)!important;
    box-shadow:0 20px 65px rgba(0,0,0,.12),inset 0 1px 0 rgba(255,255,255,.08);
    transform:translateZ(0);
    -webkit-transform:translateZ(0);
    will-change:transform;
}

/* 手机端：书签展开后改为正常纵向文档流，内容可以真正撑高并滚动到底。 */
@media(max-width:620px){
    html.start-page body.secondary-open{
        overflow-x:hidden!important;
        overflow-y:auto!important;
        overscroll-behavior-y:contain;
        -webkit-overflow-scrolling:touch;
        touch-action:pan-y;
    }
    html.start-page body.secondary-open .stage{
        height:auto!important;
        min-height:100svh;
        min-height:100dvh;
        justify-content:flex-start!important;
        transform:none!important;
        padding-top:max(76px,calc(env(safe-area-inset-top) + 64px))!important;
        padding-bottom:max(34px,calc(env(safe-area-inset-bottom) + 24px))!important;
    }
    html.start-page body.secondary-open .hero{transform:none!important;flex:0 0 auto}
    html.start-page body.secondary-open .clock{transform:scale(.82)!important;margin-bottom:16px!important}
    html.start-page body.secondary-open .secondary{
        max-height:none!important;
        overflow:visible!important;
        visibility:visible!important;
        transform:none!important;
        flex:0 0 auto;
    }
    html.start-page body.secondary-open .secondary-inner{padding-top:24px!important;padding-bottom:8px}
    html.start-page body.secondary-open .apps-panel{overflow:visible}
    html.start-page .apps{align-content:start}
    html.start-page .search-wrap{width:min(100%,620px)}
    html.start-page .search-box{height:52px;border-radius:18px;padding-left:5px;padding-right:5px}
    html.start-page .engine-trigger{width:41px;height:41px;flex-basis:41px}
    html.start-page .search-go{width:40px;height:40px}
}

@media(max-width:390px){
    html.start-page .apps{grid-template-columns:repeat(4,minmax(0,1fr));gap:17px 2px}
    html.start-page .app-icon{width:52px;height:52px;border-radius:15px}
    html.start-page .app-icon img{width:33px;height:33px}
    html.start-page body.secondary-open .stage{width:calc(100% - 14px)}
    html.start-page .apps-panel{padding-left:5px!important;padding-right:5px!important}
}

/* CJSW_STARTPAGE_POLISH_V2_8 */
/* 起始页卡片去边框：保留层次只依靠透明度、模糊和阴影。 */
html.start-page .search-box,
html.start-page .apps-panel,
html.start-page .engine-pop,
html.start-page .engine-option,
html.start-page .settings,
html.start-page .setting-card,
html.start-page .modal,
html.start-page .context,
html.start-page .wall-preview{
    border:none!important;
}
html.start-page .engine-option.active,
html.start-page.dark .engine-option.active{
    border:none!important;
    box-shadow:0 8px 24px rgba(0,0,0,.10),0 0 0 1px rgba(74,134,232,.10)!important;
}
html.start-page.dark .engine-option.active{box-shadow:0 8px 24px rgba(0,0,0,.24),0 0 0 1px rgba(104,157,230,.10)!important}
html.start-page .apps-panel{
    border:0!important;
    box-shadow:0 18px 60px rgba(0,0,0,.11),inset 0 1px 0 rgba(255,255,255,.055)!important;
    transform:none!important;
    -webkit-transform:none!important;
    will-change:auto!important;
}

/* 书签文字清晰度：避免 text-shadow + 缩放合成导致字形发虚。 */
html.start-page .panel-title,
html.start-page .panel-sub,
html.start-page .app-name{
    text-shadow:none!important;
    -webkit-font-smoothing:auto;
    text-rendering:optimizeLegibility;
    transform:none;
    filter:none;
}
html.start-page .app-name{
    font-weight:600!important;
    letter-spacing:0;
    line-height:1.25;
    opacity:.98;
}
html.start-page .app{
    transform:translateY(8px);
    opacity:0;
    will-change:auto;
}
html.start-page body.secondary-open .app{
    animation:appInCrisp .42s cubic-bezier(.16,1,.3,1) forwards!important;
    animation-delay:calc(var(--i,0)*16ms + 70ms)!important;
}
@keyframes appInCrisp{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* 书签区使用可动画网格折叠，不再向下滑后突然隐藏。 */
html.start-page .secondary{
    display:grid!important;
    grid-template-rows:0fr;
    width:100%;
    max-height:none!important;
    overflow:hidden!important;
    visibility:visible!important;
    opacity:1!important;
    transform:none!important;
    transition:grid-template-rows .58s cubic-bezier(.16,1,.3,1),margin-top .58s cubic-bezier(.16,1,.3,1)!important;
}
html.start-page .secondary-inner{
    min-height:0;
    overflow:hidden;
    padding-top:0!important;
    opacity:1!important;
    transform:translateY(-8px)!important;
    transition:transform .52s cubic-bezier(.16,1,.3,1),padding-top .52s cubic-bezier(.16,1,.3,1)!important;
}
html.start-page body.secondary-open .secondary{
    grid-template-rows:1fr;
    overflow:visible!important;
}
html.start-page body.secondary-open .secondary-inner{
    overflow:visible;
    transform:none!important;
    padding-top:28px!important;
}

/* 未展开书签时首屏整体上移，搜索框不再压在屏幕偏下位置。 */
html.start-page body:not(.secondary-open) .stage{
    justify-content:flex-start!important;
    padding-top:clamp(92px,14vh,150px)!important;
}
html.start-page body:not(.secondary-open) .clock{margin-bottom:22px}

@media(max-width:820px){
    html.start-page body:not(.secondary-open) .stage{
        padding-top:max(82px,12vh)!important;
        transform:none!important;
    }
}
@media(max-width:620px){
    html.start-page body:not(.secondary-open){overflow:hidden!important}
    html.start-page body:not(.secondary-open) .stage{
        height:100dvh!important;
        min-height:100dvh!important;
        padding-top:max(72px,10.5vh)!important;
        padding-bottom:28px!important;
    }
    html.start-page body.secondary-open .secondary{
        grid-template-rows:1fr!important;
        max-height:none!important;
        overflow:visible!important;
    }
    html.start-page body.secondary-open .secondary-inner{
        padding-top:22px!important;
        padding-bottom:8px!important;
    }
    html.start-page .app-name{
        font-size:11px!important;
        font-weight:600!important;
    }
}
/* CJSW_STARTPAGE_POLISH_V2_8_END */


/* CJSW_STARTPAGE_POLISH_V2_9 */
/* 搜索框彻底无边框，包含焦点态，避免玻璃层顶部出现一条亮边。 */
html.start-page .search-box,
html.start-page .search-box:focus,
html.start-page .search-box:focus-within,
html.start-page body.engine-picker-open .search-box{
    border:0!important;
    outline:0!important;
    -webkit-appearance:none;
    appearance:none;
    background-clip:padding-box;
}
html.start-page body.engine-picker-open .search-box{
    transform:translateY(-2px) scale(1.012)!important;
    background:var(--start-search-bg-focus)!important;
    box-shadow:0 18px 50px rgba(0,0,0,.17),inset 0 1px 0 rgba(255,255,255,.10)!important;
}

/* 搜索引擎：去掉“大卡片背景框”，改成轻量图标 + 名称网格。 */
html.start-page .engine-pop-body{padding:5px 16px 18px!important}
html.start-page .engine-grid{
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
    gap:12px 6px!important;
}
html.start-page .engine-option,
html.start-page.dark .engine-option{
    height:68px!important;
    padding:5px 4px!important;
    border:0!important;
    border-radius:12px!important;
    background:transparent!important;
    box-shadow:none!important;
    gap:6px!important;
}
html.start-page .engine-option:hover,
html.start-page.dark .engine-option:hover{
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    transform:translateY(-2px)!important;
}
html.start-page .engine-option.active,
html.start-page.dark .engine-option.active{
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
}
html.start-page .engine-option .mini,
html.start-page.dark .engine-option .mini{
    width:34px!important;
    height:34px!important;
    border-radius:10px!important;
    background:transparent!important;
    box-shadow:none!important;
    transition:transform .24s cubic-bezier(.16,1,.3,1),filter .2s ease!important;
}
html.start-page .engine-option:hover .mini{transform:scale(1.10)}
html.start-page .engine-option.active .mini{transform:scale(1.06)}
html.start-page .engine-option .mini img{width:28px!important;height:28px!important}
html.start-page .engine-option .engine-name{
    font-size:11px!important;
    line-height:1.2!important;
    font-weight:600!important;
    color:#555!important;
}
html.start-page.dark .engine-option .engine-name{color:#cfcfcf!important}
html.start-page .engine-option.active .engine-name{color:#2f6fcf!important}
html.start-page.dark .engine-option.active .engine-name{color:#8ab7f5!important}
html.start-page .engine-option.active::after{
    right:50%!important;
    top:auto!important;
    bottom:-1px!important;
    width:14px!important;
    height:2px!important;
    border-radius:999px!important;
    transform:translateX(50%)!important;
    box-shadow:none!important;
}

/* 书签玻璃背景真正跟随深浅主题：浅色为亮玻璃，深色为深灰玻璃。 */
html.start-page{--start-apps-panel-bg:rgba(255,255,255,.30)!important}
html.start-page.dark{--start-apps-panel-bg:rgba(18,18,18,.48)!important}
html.start-page .apps-panel{
    background:var(--start-apps-panel-bg)!important;
    transition:background-color .28s ease,box-shadow .28s ease,backdrop-filter .28s ease!important;
}
html.start-page.dark .apps-panel{box-shadow:0 20px 68px rgba(0,0,0,.24),inset 0 1px 0 rgba(255,255,255,.035)!important}

@media(max-width:620px){
    html.start-page .engine-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:11px 4px!important}
    html.start-page .engine-option{height:66px!important}
}
@media(max-width:380px){html.start-page .engine-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
/* CJSW_STARTPAGE_POLISH_V2_9_END */


/* CJSW_STARTPAGE_POLISH_V3_0 */
/* 搜索框：彻底移除顶部“伪边框”高光（此前来自 inset box-shadow，而非 border）。 */
html.start-page .search-box,
html.start-page .search-box:focus,
html.start-page .search-box:focus-within,
html.start-page body.engine-picker-open .search-box{
    border:0!important;
    outline:0!important;
    box-shadow:0 12px 38px rgba(0,0,0,.12)!important;
}
html.start-page .search-box:focus-within,
html.start-page body.engine-picker-open .search-box{
    box-shadow:0 18px 50px rgba(0,0,0,.17)!important;
}
html.start-page.dark .search-box{box-shadow:0 12px 40px rgba(0,0,0,.28)!important}
html.start-page.dark .search-box:focus-within,
html.start-page.dark body.engine-picker-open .search-box{box-shadow:0 18px 56px rgba(0,0,0,.38)!important}

/* 左侧搜索引擎切换按钮：hover/open 不产生额外背景圈。 */
html.start-page .engine-trigger,
html.start-page .engine-trigger:hover,
html.start-page .engine-trigger.open,
html.start-page.dark .engine-trigger,
html.start-page.dark .engine-trigger:hover,
html.start-page.dark .engine-trigger.open{
    background:transparent!important;
    box-shadow:none!important;
}
html.start-page .engine-trigger:hover .engine-mark,
html.start-page .engine-trigger.open .engine-mark{
    transform:scale(1.045);
}
html.start-page .engine-mark{transition:transform .22s cubic-bezier(.16,1,.3,1),opacity .2s ease!important}

/* 搜索类型更紧凑，减少无效留白。 */
html.start-page .engine-tabs{
    gap:3px!important;
    padding:0 16px 8px 18px!important;
}
html.start-page .engine-tab{
    height:27px!important;
    padding:0 9px!important;
    border-radius:8px!important;
    font-size:10.5px!important;
}

/* 引擎区域固定视觉高度，切换分类时弹层不再因数量不同而跳大/缩小。 */
html.start-page .engine-pop{height:min(390px,calc(100dvh - 28px))!important;max-height:min(390px,calc(100dvh - 28px))!important}
html.start-page .engine-pop-body{
    flex:1 1 auto!important;
    min-height:0!important;
    padding:5px 16px 15px!important;
    overflow-y:auto!important;
}
html.start-page .engine-grid{
    align-content:start!important;
    grid-auto-rows:58px!important;
    gap:7px 4px!important;
}
html.start-page .engine-option,
html.start-page.dark .engine-option{
    height:58px!important;
    min-height:58px!important;
    padding:3px 2px!important;
    gap:4px!important;
}
html.start-page .engine-option .mini,
html.start-page.dark .engine-option .mini{
    width:28px!important;
    height:28px!important;
    flex:0 0 28px!important;
    border-radius:8px!important;
}
html.start-page .engine-option .mini img{width:22px!important;height:22px!important}
html.start-page .engine-option:hover .mini{transform:translateY(-1px) scale(1.045)!important}
html.start-page .engine-option.active .mini{transform:none!important}
html.start-page .engine-option .engine-name{font-size:10.5px!important;line-height:1.15!important}

/* 设置底部网站信息。 */
html.start-page .settings-site-info{
    margin-top:24px;
    padding:14px 6px 2px;
    text-align:center;
    color:var(--setting-muted);
    user-select:text;
}
html.start-page .settings-site-info .site-info-title{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    color:var(--setting-text);
    font-size:12px;
    font-weight:650;
}
html.start-page .settings-site-info .site-info-title i{font-size:14px;opacity:.72}
html.start-page .settings-site-info small{display:block;margin-top:5px;font-size:10px;line-height:1.5;opacity:.72}

@media(max-width:620px){
    html.start-page .engine-pop{height:min(365px,calc(100dvh - 20px))!important;max-height:min(365px,calc(100dvh - 20px))!important}
    html.start-page .engine-tabs{gap:2px!important;padding-left:14px!important;padding-right:12px!important}
    html.start-page .engine-tab{height:26px!important;padding:0 8px!important;font-size:10px!important}
    html.start-page .engine-grid{grid-auto-rows:56px!important;gap:6px 2px!important}
    html.start-page .engine-option{height:56px!important;min-height:56px!important}
    html.start-page .engine-option .mini,html.start-page.dark .engine-option .mini{width:27px!important;height:27px!important;flex-basis:27px!important}
    html.start-page .engine-option .mini img{width:21px!important;height:21px!important}
}
/* CJSW_STARTPAGE_POLISH_V3_0_END */

/* CJSW_STARTPAGE_POLISH_V3_1 */
/* 搜索引擎选择器：取消分类、标题和描述，全部引擎直接同行自适应排列。 */
html.start-page .engine-pop{
    height:auto!important;
    max-height:min(52vh,300px)!important;
    min-height:0!important;
    width:min(620px,calc(100vw - 24px));
    padding:10px 42px 10px 10px!important;
    border:0!important;
    border-radius:18px!important;
    overflow:hidden!important;
}
html.start-page .engine-pop-head,
html.start-page .engine-tabs{display:none!important}
html.start-page .engine-pop-close-float{
    position:absolute!important;
    right:8px!important;
    top:8px!important;
    z-index:3;
    width:28px!important;
    height:28px!important;
    border-radius:50%!important;
    background:transparent!important;
}
html.start-page .engine-pop-body{
    flex:none!important;
    min-height:0!important;
    max-height:min(48vh,270px)!important;
    padding:0!important;
    overflow:auto!important;
    scrollbar-width:thin;
}
html.start-page .engine-grid,
html.start-page .engine-grid-all{
    display:flex!important;
    flex-flow:row wrap!important;
    align-items:flex-start!important;
    align-content:flex-start!important;
    justify-content:flex-start!important;
    gap:6px 4px!important;
    grid-template-columns:none!important;
    grid-auto-rows:auto!important;
}
html.start-page .engine-option,
html.start-page.dark .engine-option{
    flex:0 0 68px!important;
    width:68px!important;
    min-width:68px!important;
    height:54px!important;
    min-height:54px!important;
    padding:3px 2px!important;
    gap:3px!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
}
html.start-page .engine-option .mini,
html.start-page.dark .engine-option .mini{
    width:26px!important;
    height:26px!important;
    flex-basis:26px!important;
}
html.start-page .engine-option .mini img{width:20px!important;height:20px!important}
html.start-page .engine-option .engine-name{font-size:10px!important;max-width:64px!important}
html.start-page .engine-option:hover,
html.start-page.dark .engine-option:hover{transform:translateY(-1px)!important}

/* 桌面缩放/低高度窗口：允许文档自然增高与鼠标滚轮滚动。 */
html.start-page,
html.start-page body{
    overflow-x:hidden!important;
    overflow-y:auto!important;
    overscroll-behavior-y:auto;
}
html.start-page body{min-height:100dvh!important}
html.start-page .stage{
    height:auto!important;
    min-height:100dvh!important;
}
@media(min-width:621px) and (max-height:760px){
    html.start-page .stage{
        justify-content:flex-start!important;
        padding-top:84px!important;
        padding-bottom:48px!important;
    }
    html.start-page body.secondary-open .stage{transform:none!important}
}
@media(max-width:620px){
    html.start-page body:not(.secondary-open){overflow-y:hidden!important}
    html.start-page .engine-pop{max-height:min(48vh,260px)!important;padding:9px 36px 9px 9px!important}
    html.start-page .engine-pop-body{max-height:min(44vh,240px)!important}
    html.start-page .engine-option,html.start-page.dark .engine-option{flex-basis:62px!important;width:62px!important;min-width:62px!important;height:52px!important;min-height:52px!important}
}

/* 壁纸边缘：移除暗角/黑边叠层，把模糊放到超出视口的壁纸本体上。 */
html.start-page .wallpaper-layer,
html.start-page .wallpaper-fallback{inset:-32px!important}
html.start-page .wallpaper-shade{inset:0!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;background:rgba(0,0,0,var(--wall-dim,.15))!important}
html.start-page .wallpaper-layer{
    transform:none!important;
    filter:blur(var(--wall-blur,0px))!important;
    transition:opacity .32s ease,filter .28s ease!important;
}
html.start-page .wallpaper-layer.ready{transform:none!important}
html.start-page.has-custom-wall .wallpaper-fallback{
    transform:none!important;
    filter:blur(8px)!important;
}
html.start-page .ambient{background:transparent!important}
/* CJSW_STARTPAGE_POLISH_V3_1_END */

/* CJSW_STARTPAGE_V3_5_ENGINE_URL_VISIBLE */
html.start-page .start-engine-setting-label{min-width:0;flex:1}
html.start-page .start-engine-url-readonly{display:block;width:100%;max-width:280px;margin-top:5px;padding:0;border:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;color:var(--setting-muted);font:500 10.5px/1.45 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;cursor:text;-webkit-appearance:none;appearance:none}
html.start-page .start-engine-url-readonly:focus{border:0!important;outline:0!important;box-shadow:none!important}
@media(max-width:620px){html.start-page .start-engine-url-readonly{max-width:min(62vw,260px);font-size:10px}}

/* CJSW_START_ENGINE_PICKER_V37_20260830
   起始页搜索引擎：自适应高度 / 无内部滚动条 / 无背景单色图标 */
html.start-page .engine-pop{
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:visible!important;
    padding:10px 38px 10px 10px!important;
}
html.start-page .engine-pop-body{
    height:auto!important;
    min-height:0!important;
    max-height:none!important;
    overflow:visible!important;
    overscroll-behavior:auto!important;
    scrollbar-width:none!important;
    padding:0!important;
}
html.start-page .engine-pop-body::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
html.start-page .engine-grid,
html.start-page .engine-grid-all{
    display:flex!important;
    flex-wrap:wrap!important;
    align-items:center!important;
    align-content:flex-start!important;
    gap:7px 13px!important;
    min-height:0!important;
    grid-template-columns:none!important;
    grid-auto-rows:auto!important;
}
html.start-page .engine-option,
html.start-page.dark .engine-option{
    flex:0 0 auto!important;
    width:auto!important;
    min-width:0!important;
    height:32px!important;
    min-height:32px!important;
    padding:0 3px!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    display:inline-flex!important;
    flex-direction:row!important;
    align-items:center!important;
    justify-content:flex-start!important;
    gap:5px!important;
    overflow:visible!important;
    transform:none!important;
}
html.start-page .engine-option:hover,
html.start-page.dark .engine-option:hover,
html.start-page .engine-option.active,
html.start-page.dark .engine-option.active{
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
    transform:none!important;
}
html.start-page .engine-option::after{display:none!important}
html.start-page .engine-option .mini,
html.start-page.dark .engine-option .mini{
    width:17px!important;
    height:17px!important;
    flex:0 0 17px!important;
    border:0!important;
    border-radius:0!important;
    background:transparent!important;
    box-shadow:none!important;
    overflow:hidden!important;
    color:var(--start-search-text)!important;
    font-size:10px!important;
}
html.start-page .engine-option .mini img,
html.start-page .engine-mark img{
    width:16px!important;
    height:16px!important;
    object-fit:contain!important;
    filter:grayscale(1) saturate(0) contrast(1.45) brightness(.48)!important;
    opacity:.82!important;
    background:transparent!important;
}
html.start-page.dark .engine-option .mini img,
html.start-page.dark .engine-mark img{
    filter:grayscale(1) saturate(0) contrast(1.3) brightness(0) invert(1)!important;
    opacity:.78!important;
}
html.start-page .engine-option .engine-name{
    width:auto!important;
    max-width:92px!important;
    font-size:10.5px!important;
    line-height:1!important;
    font-weight:590!important;
    color:rgba(45,45,45,.72)!important;
}
html.start-page.dark .engine-option .engine-name{color:rgba(238,238,238,.72)!important}
html.start-page .engine-option.active .engine-name{color:var(--start-search-text)!important;font-weight:700!important}
html.start-page .engine-option.active .mini img{opacity:1!important}
html.start-page .engine-option:hover .engine-name{color:var(--start-search-text)!important}
html.start-page .engine-pop-close-float{top:8px!important;right:8px!important}
@media(max-width:620px){
    html.start-page .engine-pop{width:calc(100vw - 16px)!important;max-height:none!important;padding:9px 35px 9px 9px!important}
    html.start-page .engine-pop-body{max-height:none!important;overflow:visible!important}
    html.start-page .engine-grid,html.start-page .engine-grid-all{gap:6px 10px!important}
    html.start-page .engine-option,html.start-page.dark .engine-option{height:30px!important;min-height:30px!important;padding:0 2px!important}
    html.start-page .engine-option .engine-name{font-size:10px!important;max-width:74px!important}
    html.start-page .engine-option .mini,html.start-page.dark .engine-option .mini{width:16px!important;height:16px!important;flex-basis:16px!important}
    html.start-page .engine-option .mini img{width:15px!important;height:15px!important}
}

/* CJSW_STARTPAGE_LIME_LANGUAGE_V3_8_20260830
   参考青柠起始页公开展示的极简/毛玻璃/二级捷径交互语言重新统一视觉。
   保留本站品牌与数据结构，不复制第三方源码或品牌素材。 */
html.start-page{
    --lime-ease:cubic-bezier(.22,.8,.2,1);
    --lime-spring:cubic-bezier(.16,1,.3,1);
    --lime-accent:#8bc34a;
    --lime-search-bg:rgba(250,250,250,.90);
    --lime-search-bg-focus:rgba(255,255,255,.96);
    --lime-search-text:#252525;
    --lime-search-muted:#8a8a8a;
    --lime-pop-bg:rgba(250,250,250,.94);
    --lime-pop-text:#303030;
    --lime-pop-muted:#777;
    --lime-hover:rgba(18,18,18,.065);
    --lime-active:rgba(139,195,74,.14);
    --lime-panel:rgba(255,255,255,.14);
    --lime-panel-strong:rgba(255,255,255,.20);
    --lime-app-tile:rgba(22,22,24,.82);
    --lime-app-tile-hover:rgba(28,28,30,.90);
    --lime-settings-bg:rgba(248,248,248,.94);
    --lime-settings-card:rgba(255,255,255,.74);
    --lime-settings-hover:rgba(18,18,18,.055);
    --lime-shadow:0 16px 48px rgba(0,0,0,.16);
    --lime-shadow-soft:0 8px 30px rgba(0,0,0,.12);
}
html.start-page.dark{
    --lime-search-bg:rgba(31,31,33,.86);
    --lime-search-bg-focus:rgba(36,36,38,.94);
    --lime-search-text:#f2f2f2;
    --lime-search-muted:#9a9a9a;
    --lime-pop-bg:rgba(31,31,33,.93);
    --lime-pop-text:#f1f1f1;
    --lime-pop-muted:#a0a0a0;
    --lime-hover:rgba(255,255,255,.075);
    --lime-active:rgba(139,195,74,.17);
    --lime-panel:rgba(14,14,16,.25);
    --lime-panel-strong:rgba(14,14,16,.34);
    --lime-app-tile:rgba(20,20,22,.82);
    --lime-app-tile-hover:rgba(29,29,31,.94);
    --lime-settings-bg:rgba(25,25,27,.94);
    --lime-settings-card:rgba(38,38,40,.78);
    --lime-settings-hover:rgba(255,255,255,.065);
    --lime-shadow:0 18px 58px rgba(0,0,0,.34);
    --lime-shadow-soft:0 9px 34px rgba(0,0,0,.25);
}

/* 背景：只保留平整遮罩和真实壁纸模糊，不再叠加四周暗角。 */
html.start-page .wallpaper-fallback,
html.start-page .wallpaper-layer{inset:-28px!important;background-position:center!important;background-size:cover!important;background-repeat:no-repeat!important}
html.start-page .wallpaper-fallback{transform:none!important;filter:none!important}
html.start-page.has-custom-wall .wallpaper-fallback{filter:blur(7px)!important;transform:scale(1.025)!important}
html.start-page .wallpaper-layer{filter:blur(var(--wall-blur,0px))!important;transform:scale(1.018)!important;transition:opacity .28s ease,filter .28s ease!important}
html.start-page .wallpaper-layer.ready{transform:scale(1.018)!important}
html.start-page .wallpaper-shade{inset:0!important;background:rgba(0,0,0,var(--wall-dim,.15))!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
html.start-page .ambient{display:none!important}

/* 顶部操作保持存在但默认尽量隐形，悬浮后再显现反馈。 */
html.start-page .topbar{height:58px!important;padding:0 clamp(12px,2.7vw,34px)!important;pointer-events:none}
html.start-page .topbar>*{pointer-events:auto}
html.start-page .top-actions{gap:5px!important}
html.start-page .top-btn{
    width:34px!important;height:34px!important;border:0!important;border-radius:50%!important;
    background:rgba(18,18,18,.10)!important;color:rgba(255,255,255,.88)!important;
    box-shadow:none!important;backdrop-filter:blur(16px) saturate(120%)!important;-webkit-backdrop-filter:blur(16px) saturate(120%)!important;
    transition:background .18s ease,transform .28s var(--lime-spring),opacity .18s ease!important;
}
html.start-page .top-btn:hover{background:rgba(18,18,18,.22)!important;transform:translateY(-1px) scale(1.045)!important;box-shadow:none!important}
html.start-page .top-btn:active{transform:scale(.92)!important}

/* 主舞台：默认更靠上；浏览器缩放后仍允许自然滚动。 */
html.start-page,html.start-page body{overflow-x:hidden!important;overflow-y:auto!important}
html.start-page body{min-height:100dvh!important}
html.start-page .stage{
    width:min(900px,calc(100% - 28px))!important;height:auto!important;min-height:100dvh!important;
    justify-content:center!important;padding:72px 0 48px!important;transform:none!important;
}
html.start-page .hero{width:100%!important;transform:translateY(-6vh);transition:transform .58s var(--lime-spring)!important}
html.start-page body.secondary-open .hero{transform:translateY(0)!important}

/* 时间：更轻、更克制，点击只做很轻的比例反馈。 */
html.start-page .clock{margin-bottom:22px!important;text-shadow:0 1px 12px rgba(0,0,0,.22)!important;transition:transform .3s var(--lime-spring),opacity .22s ease!important}
html.start-page .clock:hover{transform:scale(1.012)!important}
html.start-page .clock:active{transform:scale(.985)!important}
html.start-page .time{font-size:clamp(48px,6.2vw,68px)!important;font-weight:300!important;letter-spacing:-2.8px!important;line-height:1!important}
html.start-page .date{margin-top:8px!important;font-size:11.5px!important;font-weight:500!important;letter-spacing:.03em!important;color:rgba(255,255,255,.77)!important;text-shadow:0 1px 8px rgba(0,0,0,.22)}

/* 搜索框：青柠式细长圆角、毛玻璃、焦点时横向舒展，不再缩放文字造成发虚。 */
html.start-page .search-wrap{
    width:min(590px,100%)!important;z-index:12!important;
    transition:width .42s var(--lime-spring),transform .35s var(--lime-spring)!important;
}
html.start-page .search-wrap:focus-within,
html.start-page body.engine-picker-open .search-wrap{width:min(650px,100%)!important}
html.start-page .search-box,
html.start-page .search-box:focus,
html.start-page .search-box:focus-within,
html.start-page body.engine-picker-open .search-box{
    height:46px!important;border:0!important;outline:0!important;border-radius:23px!important;
    padding:0 7px 0 6px!important;background:var(--lime-search-bg)!important;
    box-shadow:0 7px 28px rgba(0,0,0,.14)!important;
    backdrop-filter:blur(22px) saturate(135%)!important;-webkit-backdrop-filter:blur(22px) saturate(135%)!important;
    transform:none!important;transition:background .22s ease,box-shadow .3s ease!important;
}
html.start-page .search-box:focus-within,
html.start-page body.engine-picker-open .search-box{background:var(--lime-search-bg-focus)!important;box-shadow:0 11px 36px rgba(0,0,0,.17)!important}
html.start-page .search-box::before,
html.start-page .search-box::after{display:none!important;content:none!important}
html.start-page .search-box input{
    height:100%!important;padding:0 8px!important;border:0!important;outline:0!important;background:transparent!important;
    color:var(--lime-search-text)!important;font-size:14px!important;font-weight:400!important;letter-spacing:0!important;
}
html.start-page .search-box input::placeholder{color:var(--lime-search-muted)!important;opacity:.82!important}
html.start-page .engine-trigger{width:36px!important;height:36px!important;flex:0 0 36px!important;border:0!important;background:transparent!important;color:var(--lime-search-muted)!important;transition:transform .24s var(--lime-spring),opacity .18s ease!important}
html.start-page .engine-trigger:hover,
html.start-page .engine-trigger.open{background:transparent!important;box-shadow:none!important;transform:scale(1.07)!important;color:var(--lime-search-text)!important}
html.start-page .engine-trigger:active{transform:scale(.92)!important}
html.start-page .engine-mark{width:24px!important;height:24px!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;color:var(--lime-search-muted)!important}
html.start-page .engine-mark img{width:17px!important;height:17px!important;filter:grayscale(1) saturate(0) contrast(1.3) brightness(.48)!important;opacity:.78!important}
html.start-page.dark .engine-mark img{filter:grayscale(1) saturate(0) brightness(0) invert(1)!important;opacity:.78!important}
html.start-page .search-go{width:34px!important;height:34px!important;border:0!important;border-radius:50%!important;background:transparent!important;color:var(--lime-search-muted)!important;font-size:16px!important;transition:transform .25s var(--lime-spring),color .18s ease!important}
html.start-page .search-go:hover{background:transparent!important;color:var(--lime-search-text)!important;transform:translateX(2px)!important}
html.start-page .search-go:active{transform:translateX(2px) scale(.9)!important}

/* 搜索引擎浮层：无标题、无说明、无滚动条、自然高度；默认透明项，hover/active 才给轻反馈。 */
html.start-page .engine-layer{background:transparent!important;transition:opacity .17s ease,visibility .17s ease!important}
html.start-page .engine-layer::before{background:transparent!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important}
html.start-page .engine-pop{
    min-height:0!important;height:auto!important;max-height:none!important;padding:7px!important;border:0!important;border-radius:14px!important;
    background:var(--lime-pop-bg)!important;color:var(--lime-pop-text)!important;overflow:visible!important;
    box-shadow:0 14px 42px rgba(0,0,0,.18)!important;backdrop-filter:blur(26px) saturate(135%)!important;-webkit-backdrop-filter:blur(26px) saturate(135%)!important;
    transform:translateY(-4px) scale(.992)!important;transform-origin:top left!important;opacity:0!important;
    transition:opacity .18s ease,transform .28s var(--lime-spring)!important;
}
html.start-page .engine-layer.show .engine-pop{transform:none!important;opacity:1!important}
html.start-page .engine-pop-head,html.start-page .engine-tabs{display:none!important}
html.start-page .engine-pop-close-float{display:none!important}
html.start-page .engine-pop-body{height:auto!important;max-height:none!important;overflow:visible!important;padding:0!important;scrollbar-width:none!important}
html.start-page .engine-pop-body::-webkit-scrollbar{display:none!important}
html.start-page .engine-grid,html.start-page .engine-grid-all{
    display:flex!important;flex-flow:row wrap!important;align-items:center!important;align-content:flex-start!important;
    gap:3px!important;min-height:0!important;
}
html.start-page .engine-option,
html.start-page.dark .engine-option{
    flex:0 0 auto!important;width:auto!important;min-width:0!important;height:31px!important;min-height:31px!important;
    padding:0 8px!important;gap:5px!important;border:0!important;border-radius:9px!important;background:transparent!important;
    box-shadow:none!important;display:inline-flex!important;flex-direction:row!important;align-items:center!important;justify-content:center!important;
    transform:none!important;transition:background .16s ease,color .16s ease,transform .22s var(--lime-spring)!important;
}
html.start-page .engine-option:hover,html.start-page.dark .engine-option:hover{background:var(--lime-hover)!important;transform:translateY(-1px)!important}
html.start-page .engine-option:active,html.start-page.dark .engine-option:active{transform:scale(.95)!important}
html.start-page .engine-option.active,html.start-page.dark .engine-option.active{background:var(--lime-active)!important;box-shadow:none!important}
html.start-page .engine-option::after{display:none!important}
html.start-page .engine-option .mini,html.start-page.dark .engine-option .mini{
    width:15px!important;height:15px!important;flex:0 0 15px!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;
}
html.start-page .engine-option .mini img{width:14px!important;height:14px!important;object-fit:contain!important;filter:grayscale(1) saturate(0) contrast(1.35) brightness(.48)!important;opacity:.76!important}
html.start-page.dark .engine-option .mini img{filter:grayscale(1) saturate(0) brightness(0) invert(1)!important;opacity:.75!important}
html.start-page .engine-option .engine-name{width:auto!important;max-width:96px!important;font-size:10.5px!important;line-height:1!important;font-weight:500!important;color:var(--lime-pop-muted)!important}
html.start-page .engine-option:hover .engine-name{color:var(--lime-pop-text)!important}
html.start-page .engine-option.active .engine-name{color:var(--lime-pop-text)!important;font-weight:650!important}
html.start-page .engine-option.active .mini img{opacity:1!important}
html.start-page .engine-empty{padding:9px 10px;color:var(--lime-pop-muted);font-size:11px;text-align:center}

/* 二级书签页：从当前位置向上展开/收拢，不再“下滑后突然消失”。 */
html.start-page .secondary{
    display:grid!important;grid-template-rows:0fr!important;width:100%!important;max-height:none!important;margin-top:0!important;
    opacity:1!important;visibility:visible!important;overflow:hidden!important;transform:none!important;
    transition:grid-template-rows .62s var(--lime-spring)!important;
}
html.start-page .secondary-inner{min-height:0!important;padding-top:0!important;overflow:hidden!important;opacity:1!important;transform:none!important;transition:padding-top .58s var(--lime-spring)!important}
html.start-page body.secondary-open .secondary{grid-template-rows:1fr!important;max-height:none!important;overflow:visible!important}
html.start-page body.secondary-open .secondary-inner{padding-top:30px!important;overflow:visible!important}
html.start-page .apps-panel{
    width:100%!important;padding:16px 18px 17px!important;border:0!important;border-radius:20px!important;
    background:var(--lime-panel)!important;box-shadow:0 14px 46px rgba(0,0,0,.10)!important;
    backdrop-filter:blur(28px) saturate(125%)!important;-webkit-backdrop-filter:blur(28px) saturate(125%)!important;
    transition:background .24s ease,box-shadow .24s ease!important;
}
html.start-page.dark .apps-panel{background:var(--lime-panel)!important;box-shadow:0 16px 52px rgba(0,0,0,.22)!important}
html.start-page .panel-head{margin-bottom:14px!important;padding:0 3px!important}
html.start-page .panel-title{gap:7px!important;font-size:12px!important;font-weight:600!important;text-shadow:none!important;color:rgba(255,255,255,.94)!important}
html.start-page .panel-title>i{font-size:14px;opacity:.86}
html.start-page .panel-sub{font-size:10px!important;color:rgba(255,255,255,.63)!important;font-weight:500!important}
html.start-page .icon-btn{width:30px!important;height:30px!important;border:0!important;border-radius:9px!important;background:rgba(255,255,255,.08)!important;color:#fff!important;box-shadow:none!important;transition:background .16s ease,transform .23s var(--lime-spring)!important}
html.start-page .icon-btn:hover{background:rgba(255,255,255,.17)!important;transform:scale(1.06)!important}
html.start-page .icon-btn:active{transform:scale(.92)!important}
html.start-page .apps{grid-template-columns:repeat(8,minmax(0,1fr))!important;gap:19px 10px!important;min-height:82px!important}
html.start-page .app{
    opacity:1!important;transform:none!important;gap:7px!important;cursor:pointer!important;outline:0!important;
    transition:opacity .16s ease!important;
}
html.start-page body.secondary-open .app{animation:limeAppIn .42s var(--lime-spring) both!important;animation-delay:calc(min(var(--i,0),12)*18ms + 55ms)!important}
html.start-page .app-icon{
    width:55px!important;height:55px!important;border-radius:14px!important;border:0!important;background:var(--lime-app-tile)!important;
    box-shadow:0 7px 18px rgba(0,0,0,.16)!important;transition:transform .27s var(--lime-spring),background .18s ease,box-shadow .22s ease!important;
}
html.start-page .app:hover .app-icon,html.start-page .app:focus-visible .app-icon{transform:translateY(-3px) scale(1.04)!important;background:var(--lime-app-tile-hover)!important;box-shadow:0 11px 24px rgba(0,0,0,.22)!important}
html.start-page .app:active .app-icon{transform:translateY(0) scale(.94)!important}
html.start-page .app.is-context .app-icon{transform:translateY(-2px) scale(1.035)!important;box-shadow:0 0 0 3px rgba(255,255,255,.14),0 10px 24px rgba(0,0,0,.20)!important}
html.start-page .app.is-drop-target .app-icon{box-shadow:0 0 0 3px rgba(139,195,74,.45),0 10px 24px rgba(0,0,0,.20)!important}
html.start-page .app.is-dragging{opacity:.34!important;transform:none!important}
html.start-page .app-icon img{width:31px!important;height:31px!important;border-radius:7px!important;object-fit:contain!important}
html.start-page .app-emoji{font-size:25px!important;line-height:1!important}
html.start-page .app-name{
    width:100%!important;padding:0 2px!important;color:#fff!important;font-size:10.5px!important;font-weight:500!important;line-height:1.3!important;
    text-shadow:0 1px 4px rgba(0,0,0,.36)!important;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;
}
html.start-page .empty{min-height:78px!important;font-size:11px!important;color:rgba(255,255,255,.68)!important}
html.start-page .tip{margin-top:13px!important;font-size:9.5px!important;color:rgba(255,255,255,.48)!important}
@keyframes limeAppIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}

/* 设置面板：高模糊、无边框、分组卡片弱化。 */
html.start-page .settings-mask{background:rgba(0,0,0,.16)!important;backdrop-filter:blur(5px)!important;-webkit-backdrop-filter:blur(5px)!important;transition:opacity .22s ease,visibility .22s ease!important}
html.start-page .settings{
    right:12px!important;top:12px!important;bottom:12px!important;width:min(390px,calc(100% - 24px))!important;
    border:0!important;border-radius:20px!important;background:var(--lime-settings-bg)!important;color:var(--setting-text)!important;
    box-shadow:0 24px 80px rgba(0,0,0,.28)!important;backdrop-filter:blur(34px) saturate(130%)!important;-webkit-backdrop-filter:blur(34px) saturate(130%)!important;
    transform:translateX(22px) scale(.988)!important;transition:transform .38s var(--lime-spring),opacity .22s ease!important;
}
html.start-page .settings-mask.show .settings{transform:none!important}
html.start-page .settings-head{height:58px!important;padding:0 17px!important;border:0!important}
html.start-page .settings-head h2{font-size:15px!important;font-weight:650!important}
html.start-page .settings-close{width:31px!important;height:31px!important;background:transparent!important;transition:background .16s ease,transform .22s var(--lime-spring)!important}
html.start-page .settings-close:hover{background:var(--lime-settings-hover)!important;transform:scale(1.05)!important}
html.start-page .settings-body{padding:4px 14px 24px!important;scrollbar-width:thin!important}
html.start-page .setting-section+.setting-section{margin-top:18px!important}
html.start-page .setting-title{margin:0 5px 7px!important;font-size:10.5px!important;color:var(--setting-muted)!important}
html.start-page .setting-card{padding:11px 12px!important;border:0!important;border-radius:13px!important;background:var(--lime-settings-card)!important;box-shadow:none!important}
html.start-page .setting-row{min-height:39px!important;gap:10px!important}
html.start-page .setting-row+.setting-row{border-top:1px solid color-mix(in srgb,var(--setting-muted) 13%,transparent)!important}
html.start-page .setting-label strong{font-size:12px!important;font-weight:600!important}
html.start-page .setting-label small{margin-top:2px!important;font-size:9.5px!important;color:var(--setting-muted)!important}
html.start-page .setting-btn{height:30px!important;padding:0 10px!important;border:0!important;border-radius:8px!important;background:var(--lime-settings-hover)!important;font-size:10.5px!important;transition:background .16s ease,transform .22s var(--lime-spring)!important}
html.start-page .setting-btn:hover{background:color-mix(in srgb,var(--lime-settings-hover) 190%,transparent)!important;transform:translateY(-1px)!important}
html.start-page .setting-btn:active{transform:scale(.94)!important}
html.start-page .setting-btn.primary{background:var(--lime-accent)!important;color:#fff!important}
html.start-page .setting-input{height:37px!important;margin-top:8px!important;border:0!important;border-radius:9px!important;background:var(--lime-settings-hover)!important;box-shadow:none!important;font-size:11px!important}
html.start-page .setting-input:focus{border:0!important;outline:0!important;box-shadow:0 0 0 2px color-mix(in srgb,var(--lime-accent) 30%,transparent)!important}
html.start-page .start-engine-url-readonly{margin-top:4px!important;max-width:250px!important;font-size:9.5px!important;color:var(--setting-muted)!important}
html.start-page .wall-preview{height:96px!important;border:0!important;border-radius:11px!important;box-shadow:none!important}
html.start-page .wall-preview::after{left:8px!important;bottom:7px!important;padding:3px 6px!important;border-radius:6px!important;font-size:9px!important;background:rgba(0,0,0,.34)!important;backdrop-filter:blur(8px)!important}
html.start-page .wall-actions{gap:5px!important;margin-top:8px!important}
html.start-page .range-wrap{min-width:142px!important;gap:7px!important}
html.start-page .range-wrap input{width:104px!important;accent-color:var(--lime-accent)}
html.start-page .settings-site-info{opacity:.72!important;padding-top:16px!important}

/* 编辑弹窗 / 右键菜单 / Toast 同一套圆角和玻璃层级。 */
html.start-page .modal-mask{background:rgba(0,0,0,.18)!important;backdrop-filter:blur(8px)!important;-webkit-backdrop-filter:blur(8px)!important}
html.start-page .modal{border:0!important;border-radius:17px!important;background:var(--lime-settings-bg)!important;box-shadow:0 22px 74px rgba(0,0,0,.25)!important;padding:18px!important;backdrop-filter:blur(30px)!important;-webkit-backdrop-filter:blur(30px)!important}
html.start-page .modal h2{font-size:15px!important}
html.start-page .modal p{font-size:10px!important}
html.start-page .field{gap:5px!important;margin-top:10px!important}
html.start-page .field label{font-size:10px!important}
html.start-page .field input{height:39px!important;border:0!important;border-radius:9px!important;background:var(--lime-settings-hover)!important;box-shadow:none!important;font-size:12px!important}
html.start-page .field input:focus{outline:0!important;box-shadow:0 0 0 2px color-mix(in srgb,var(--lime-accent) 30%,transparent)!important}
html.start-page .modal-actions{margin-top:16px!important;gap:6px!important}
html.start-page .modal-actions button{height:34px!important;padding:0 12px!important;border:0!important;border-radius:8px!important;background:var(--lime-settings-hover)!important;font-size:11px!important}
html.start-page .modal-actions .primary{background:var(--lime-accent)!important;color:#fff!important}
html.start-page .context{width:140px!important;border:0!important;border-radius:10px!important;padding:4px!important;background:var(--lime-settings-bg)!important;box-shadow:0 14px 42px rgba(0,0,0,.22)!important;backdrop-filter:blur(26px)!important;-webkit-backdrop-filter:blur(26px)!important}
html.start-page .context button{height:32px!important;border-radius:7px!important;font-size:11px!important}
html.start-page .context button:hover{background:var(--lime-settings-hover)!important}
html.start-page .toast{bottom:24px!important;padding:8px 12px!important;border-radius:9px!important;background:rgba(20,20,22,.76)!important;font-size:11px!important;box-shadow:0 8px 26px rgba(0,0,0,.16)!important;backdrop-filter:blur(18px) saturate(125%)!important}

/* 手机：默认搜索区域更靠上；二级页展开后进入正常文档流，可完整滚动到底。 */
@media(max-width:820px){
    html.start-page .apps{grid-template-columns:repeat(6,minmax(0,1fr))!important}
}
@media(max-width:620px){
    html.start-page body:not(.secondary-open){overflow-y:hidden!important}
    html.start-page body.secondary-open{overflow-y:auto!important;-webkit-overflow-scrolling:touch!important}
    html.start-page .stage{width:calc(100% - 16px)!important;min-height:100dvh!important;padding:66px 0 max(28px,env(safe-area-inset-bottom))!important;justify-content:flex-start!important}
    html.start-page .hero{transform:none!important;padding-top:9vh!important;flex:0 0 auto!important}
    html.start-page body.secondary-open .hero{transform:none!important;padding-top:10px!important}
    html.start-page .clock{margin-bottom:18px!important}
    html.start-page body.secondary-open .clock{transform:scale(.83)!important;margin-bottom:13px!important}
    html.start-page .time{font-size:52px!important;letter-spacing:-2.4px!important}
    html.start-page .date{font-size:11px!important;margin-top:7px!important}
    html.start-page .search-wrap{width:min(92vw,560px)!important}
    html.start-page .search-wrap:focus-within,html.start-page body.engine-picker-open .search-wrap{width:min(94vw,580px)!important}
    html.start-page .search-box,html.start-page .search-box:focus-within,html.start-page body.engine-picker-open .search-box{height:44px!important;border-radius:22px!important}
    html.start-page .secondary{overflow:hidden!important}
    html.start-page body.secondary-open .secondary{overflow:visible!important}
    html.start-page body.secondary-open .secondary-inner{padding-top:22px!important;padding-bottom:8px!important;overflow:visible!important}
    html.start-page .apps-panel{padding:14px 8px 15px!important;border-radius:17px!important;overflow:visible!important}
    html.start-page .panel-head{padding:0 6px!important;margin-bottom:13px!important}
    html.start-page .apps{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:17px 2px!important}
    html.start-page .app-icon{width:52px!important;height:52px!important;border-radius:13px!important}
    html.start-page .app-icon img{width:29px!important;height:29px!important}
    html.start-page .app-name{font-size:10px!important;font-weight:500!important}
    html.start-page .tip{display:none!important}
    html.start-page .engine-pop{width:calc(100vw - 16px)!important;padding:6px!important;border-radius:13px!important}
    html.start-page .engine-grid,html.start-page .engine-grid-all{gap:2px!important}
    html.start-page .engine-option,html.start-page.dark .engine-option{height:30px!important;min-height:30px!important;padding:0 7px!important}
    html.start-page .engine-option .engine-name{font-size:10px!important;max-width:76px!important}
    html.start-page .settings{inset:7px!important;width:auto!important;border-radius:18px!important}
    html.start-page .settings-body{padding:4px 12px 22px!important}
}
@media(max-width:380px){
    html.start-page .apps{gap:15px 1px!important}
    html.start-page .app-icon{width:49px!important;height:49px!important}
    html.start-page .time{font-size:49px!important}
}
@media(prefers-reduced-motion:reduce){
    html.start-page *,html.start-page *::before,html.start-page *::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}
}
/* CJSW_STARTPAGE_LIME_LANGUAGE_V3_8_END */
html.start-page body.start-modal-open{overflow:hidden!important}


/* CJSW_STARTPAGE_V4_1_REFERENCE_POLISH_20260830 */
html.start-page{
    --lime-accent:#2563eb!important;
    --lime-active:rgba(37,99,235,.14)!important;
    --lime-panel:rgba(255,255,255,.18)!important;
    --lime-panel-strong:rgba(255,255,255,.24)!important;
    --lime-app-tile:rgba(255,255,255,.90)!important;
    --lime-app-tile-hover:rgba(255,255,255,.97)!important;
    --lime-search-bg:rgba(22,24,28,.78)!important;
    --lime-search-bg-focus:rgba(18,20,24,.86)!important;
    --lime-search-text:#ffffff!important;
    --lime-search-muted:rgba(255,255,255,.72)!important;
    --lime-pop-bg:rgba(22,24,28,.92)!important;
    --lime-pop-text:#f4f6f8!important;
    --lime-pop-muted:rgba(255,255,255,.64)!important;
    --lime-hover:rgba(255,255,255,.08)!important;
    --lime-settings-bg:rgba(248,248,248,.94)!important;
    --lime-settings-card:rgba(255,255,255,.78)!important;
    --lime-settings-hover:rgba(18,18,18,.055)!important;
}
html.start-page.dark{
    --lime-accent:#4384ed!important;
    --lime-active:rgba(67,132,237,.18)!important;
    --lime-panel:rgba(12,14,18,.34)!important;
    --lime-panel-strong:rgba(17,19,23,.40)!important;
    --lime-app-tile:rgba(20,22,26,.88)!important;
    --lime-app-tile-hover:rgba(26,28,32,.96)!important;
    --lime-search-bg:rgba(16,18,22,.76)!important;
    --lime-search-bg-focus:rgba(13,15,19,.86)!important;
    --lime-search-text:#f5f7fa!important;
    --lime-search-muted:rgba(245,247,250,.72)!important;
    --lime-pop-bg:rgba(15,17,21,.95)!important;
    --lime-pop-text:#f4f6f8!important;
    --lime-pop-muted:rgba(244,246,248,.62)!important;
    --lime-hover:rgba(255,255,255,.07)!important;
    --lime-settings-bg:rgba(23,25,29,.94)!important;
    --lime-settings-card:rgba(35,37,42,.82)!important;
    --lime-settings-hover:rgba(255,255,255,.08)!important;
}
html.start-page .hero{transform:translateY(-4.25vh)!important}
html.start-page body.secondary-open .hero{transform:none!important}
html.start-page body:not(.secondary-open) .clock{margin-bottom:24px!important}
html.start-page .clock{cursor:pointer!important;text-shadow:0 3px 18px rgba(0,0,0,.18)!important}
html.start-page .time{
    font-size:clamp(72px,10vw,106px)!important;
    font-weight:520!important;
    letter-spacing:-0.02em!important;
    line-height:1!important;
    font-variant-numeric:tabular-nums;
    font-stretch:normal!important;
    transform:none!important;
}
html.start-page .date{margin-top:11px!important;font-size:13px!important;letter-spacing:.02em!important}
html.start-page .search-wrap{width:min(680px,100%)!important}
html.start-page .search-box,
html.start-page .search-box:focus,
html.start-page .search-box:focus-within,
html.start-page body.engine-picker-open .search-box{
    height:56px!important;
    border:0!important;
    border-top:0!important;
    outline:0!important;
    background:var(--lime-search-bg)!important;
    box-shadow:0 14px 40px rgba(0,0,0,.24)!important;
    backdrop-filter:blur(22px) saturate(135%)!important;
    -webkit-backdrop-filter:blur(22px) saturate(135%)!important;
}
html.start-page .search-box:focus-within,
html.start-page body.engine-picker-open .search-box{background:var(--lime-search-bg-focus)!important;box-shadow:0 18px 46px rgba(0,0,0,.28)!important}
html.start-page .engine-trigger,
html.start-page .engine-trigger:hover,
html.start-page .engine-trigger.open{
    background:transparent!important;
    box-shadow:none!important;
    color:var(--lime-search-muted)!important;
}
html.start-page .engine-trigger:hover,
html.start-page .engine-trigger.open{color:#fff!important;transform:scale(1.03)!important}
html.start-page .engine-mark{width:22px!important;height:22px!important;background:transparent!important;border-radius:0!important;box-shadow:none!important;color:currentColor!important}
html.start-page .engine-mark img{width:18px!important;height:18px!important;opacity:.9!important;filter:grayscale(1) brightness(0) invert(1)!important}
html.start-page .search-box input{color:var(--lime-search-text)!important;font-size:15px!important;font-weight:400!important}
html.start-page .search-box input::placeholder{color:var(--lime-search-muted)!important;opacity:1!important}
html.start-page .search-go{color:var(--lime-accent)!important}
html.start-page .search-go:hover{background:transparent!important;color:var(--lime-accent)!important;transform:translateX(2px)!important}

html.start-page .engine-pop{
    width:min(250px,calc(100vw - 24px))!important;
    padding:8px!important;
    border-radius:18px!important;
    background:var(--lime-pop-bg)!important;
    border:0!important;
    box-shadow:0 24px 62px rgba(0,0,0,.34)!important;
    backdrop-filter:blur(28px) saturate(145%)!important;
    -webkit-backdrop-filter:blur(28px) saturate(145%)!important;
}
html.start-page .engine-pop-head,
html.start-page .engine-tabs{display:none!important}
html.start-page .engine-pop-close-float{
    width:26px!important;height:26px!important;top:6px!important;right:6px!important;
    border-radius:9px!important;background:transparent!important;color:rgba(255,255,255,.46)!important;
}
html.start-page .engine-pop-close-float:hover{background:rgba(255,255,255,.08)!important;color:#fff!important}
html.start-page .engine-pop-body{
    max-height:min(72vh,420px)!important;
    overflow-y:auto!important;
    padding:2px!important;
    scrollbar-width:none!important;
}
html.start-page .engine-grid,
html.start-page .engine-grid-all{
    display:flex!important;
    flex-direction:column!important;
    align-items:stretch!important;
    align-content:stretch!important;
    gap:2px!important;
    width:100%!important;
}
html.start-page .engine-option,
html.start-page.dark .engine-option{
    width:100%!important;
    min-width:0!important;
    height:38px!important;
    min-height:38px!important;
    padding:0 10px!important;
    border-radius:11px!important;
    display:flex!important;
    flex-direction:row!important;
    justify-content:flex-start!important;
    align-items:center!important;
    gap:8px!important;
    background:transparent!important;
    box-shadow:none!important;
}
html.start-page .engine-option:hover,
html.start-page.dark .engine-option:hover{background:rgba(255,255,255,.08)!important;transform:none!important}
html.start-page .engine-option.active,
html.start-page.dark .engine-option.active{background:rgba(255,255,255,.12)!important;box-shadow:none!important}
html.start-page .engine-option .mini,
html.start-page.dark .engine-option .mini{
    width:16px!important;height:16px!important;flex:0 0 16px!important;border:0!important;background:transparent!important;box-shadow:none!important;border-radius:0!important;
}
html.start-page .engine-option .mini img{width:16px!important;height:16px!important;opacity:.92!important;filter:grayscale(1) brightness(0) invert(1)!important}
html.start-page .engine-option .engine-name{
    flex:1!important;
    min-width:0!important;
    max-width:none!important;
    text-align:left!important;
    white-space:nowrap!important;
    overflow:hidden!important;
    text-overflow:ellipsis!important;
    color:#f4f6f8!important;
    font-size:14px!important;
    line-height:1!important;
    font-weight:560!important;
}
html.start-page .engine-option.active .engine-name{color:#fff!important;font-weight:640!important}
html.start-page .engine-kbd{
    flex:0 0 auto;
    margin-left:12px;
    color:rgba(255,255,255,.62);
    font-size:12px;
    font-weight:620;
    letter-spacing:.01em;
    white-space:nowrap;
}
html.start-page .engine-option.active .engine-kbd{color:rgba(255,255,255,.78)}

html.start-page .apps-panel{background:var(--lime-panel)!important}
html.start-page .app-icon{
    background:var(--lime-app-tile)!important;
    box-shadow:0 10px 24px rgba(0,0,0,.14)!important;
}
html.start-page .app:hover .app-icon,
html.start-page .app:focus-visible .app-icon{background:var(--lime-app-tile-hover)!important}
html.start-page .app.is-drop-target .app-icon{box-shadow:0 0 0 3px rgba(37,99,235,.30),0 10px 24px rgba(0,0,0,.20)!important}

@media (max-width:620px){
    html.start-page .hero{transform:translateY(-2.25vh)!important}
    html.start-page .time{font-size:72px!important}
    html.start-page .search-wrap{width:min(100%,640px)!important}
    html.start-page .search-box{height:54px!important}
    html.start-page .engine-pop{width:min(250px,calc(100vw - 16px))!important}
    html.start-page .engine-option,html.start-page.dark .engine-option{height:36px!important;min-height:36px!important}
    html.start-page .engine-option .engine-name{font-size:13px!important}
    html.start-page .engine-kbd{font-size:11px!important;margin-left:10px!important}
}


/* CJSW_STARTPAGE_V4_2_COMPACT_CONTEXT_BOOKMARKS_20260830 */
/* 搜索框按主题切换玻璃颜色，并使用最大胶囊圆角。 */
html.start-page{
    --v42-search-bg:rgba(255,255,255,.78);
    --v42-search-bg-focus:rgba(255,255,255,.90);
    --v42-search-text:#252525;
    --v42-search-muted:rgba(37,37,37,.55);
    --v42-search-shadow:0 10px 30px rgba(0,0,0,.13);
    --v42-search-shadow-focus:0 13px 36px rgba(0,0,0,.16);
    --v42-app-tile:rgba(255,255,255,.88);
    --v42-app-tile-hover:rgba(255,255,255,.97);
}
html.start-page.dark{
    --v42-search-bg:rgba(18,20,24,.76);
    --v42-search-bg-focus:rgba(14,16,20,.88);
    --v42-search-text:#f5f7fa;
    --v42-search-muted:rgba(245,247,250,.62);
    --v42-search-shadow:0 11px 32px rgba(0,0,0,.28);
    --v42-search-shadow-focus:0 14px 40px rgba(0,0,0,.36);
    --v42-app-tile:rgba(19,21,25,.88);
    --v42-app-tile-hover:rgba(27,29,34,.97);
}
html.start-page .stage{
    width:min(900px,calc(100% - 28px))!important;
    padding-top:64px!important;
    padding-bottom:38px!important;
}
html.start-page .hero{transform:translateY(-3.2vh)!important}
html.start-page body.secondary-open .hero{transform:translateY(-2.2vh)!important}
html.start-page .clock{margin-bottom:17px!important}
html.start-page .time{
    font-size:clamp(58px,7.2vw,78px)!important;
    font-weight:520!important;
    letter-spacing:-.018em!important;
    line-height:1!important;
    transform:none!important;
    font-stretch:normal!important;
}
html.start-page .date{margin-top:8px!important;font-size:11.5px!important}
html.start-page .search-wrap{
    width:min(550px,100%)!important;
    max-height:48px;
    opacity:1;
    overflow:visible;
    transform:none!important;
    transform-origin:center top;
    transition:max-height .38s cubic-bezier(.16,1,.3,1),opacity .20s ease,transform .34s cubic-bezier(.16,1,.3,1),width .34s cubic-bezier(.16,1,.3,1)!important;
}
html.start-page .search-wrap:focus-within,
html.start-page body.engine-picker-open .search-wrap{width:min(570px,100%)!important}
html.start-page .search-box,
html.start-page .search-box:focus,
html.start-page .search-box:focus-within,
html.start-page body.engine-picker-open .search-box{
    height:48px!important;
    border:0!important;
    border-radius:999px!important;
    outline:0!important;
    background:var(--v42-search-bg)!important;
    color:var(--v42-search-text)!important;
    box-shadow:var(--v42-search-shadow)!important;
    padding:0 6px 0 5px!important;
    backdrop-filter:blur(22px) saturate(135%)!important;
    -webkit-backdrop-filter:blur(22px) saturate(135%)!important;
    transition:background .24s ease,box-shadow .24s ease,color .24s ease!important;
}
html.start-page .search-box:focus-within,
html.start-page body.engine-picker-open .search-box{
    background:var(--v42-search-bg-focus)!important;
    box-shadow:var(--v42-search-shadow-focus)!important;
}
html.start-page .search-box input{color:var(--v42-search-text)!important;font-size:13.5px!important;padding:0 8px!important}
html.start-page .search-box input::placeholder{color:var(--v42-search-muted)!important}
html.start-page .engine-trigger{width:34px!important;height:34px!important;flex-basis:34px!important;color:var(--v42-search-muted)!important}
html.start-page .engine-mark{width:20px!important;height:20px!important}
html.start-page .engine-mark img{width:16px!important;height:16px!important}
html.start-page:not(.dark) .engine-mark img{filter:grayscale(1) saturate(0) contrast(1.35) brightness(.42)!important;opacity:.76!important}
html.start-page.dark .engine-mark img{filter:grayscale(1) brightness(0) invert(1)!important;opacity:.82!important}
html.start-page .search-go{width:32px!important;height:32px!important;font-size:15px!important;color:var(--accent)!important}

/* 书签打开时搜索栏平滑收起，右键再次关闭书签后恢复。 */
html.start-page body.secondary-open .search-wrap{
    max-height:0!important;
    opacity:0!important;
    overflow:hidden!important;
    transform:translateY(-7px) scale(.985)!important;
    pointer-events:none!important;
}
html.start-page body.secondary-open .clock{margin-bottom:4px!important;transform:none!important;opacity:1!important}
html.start-page .secondary-inner{transition:padding-top .48s cubic-bezier(.16,1,.3,1)!important}
html.start-page body.secondary-open .secondary-inner{padding-top:16px!important}

/* 书签栏整体缩小一档。 */
html.start-page .secondary{max-width:820px!important;margin-left:auto!important;margin-right:auto!important}
html.start-page .apps-panel{
    padding:13px 15px 14px!important;
    border-radius:17px!important;
    background:var(--lime-panel)!important;
    backdrop-filter:blur(25px) saturate(125%)!important;
    -webkit-backdrop-filter:blur(25px) saturate(125%)!important;
}
html.start-page .panel-head{margin-bottom:11px!important;padding:0 2px!important}
html.start-page .panel-title{font-size:11px!important}
html.start-page .panel-title>i{font-size:13px!important}
html.start-page .panel-sub{font-size:9.5px!important}
html.start-page .icon-btn{width:27px!important;height:27px!important;border-radius:8px!important}
html.start-page .apps{grid-template-columns:repeat(8,minmax(0,1fr))!important;gap:15px 8px!important;min-height:68px!important}
html.start-page .app{gap:6px!important}
html.start-page .app-icon{
    width:48px!important;height:48px!important;border-radius:13px!important;
    background:var(--v42-app-tile)!important;
    box-shadow:0 6px 16px rgba(0,0,0,.13)!important;
}
html.start-page .app:hover .app-icon,html.start-page .app:focus-visible .app-icon{background:var(--v42-app-tile-hover)!important;transform:translateY(-2px) scale(1.035)!important}
html.start-page .app-icon img{width:27px!important;height:27px!important;border-radius:6px!important}
html.start-page .app-emoji{font-size:22px!important}
html.start-page .app-name{font-size:9.7px!important;line-height:1.25!important}
html.start-page .tip{margin-top:10px!important;font-size:9px!important}

/* 时间只展示，不再通过左键切换书签。 */
html.start-page .clock{cursor:default!important}
html.start-page .clock:hover{transform:none!important}

@media(max-width:820px){
    html.start-page .stage{width:calc(100% - 22px)!important;padding-top:58px!important}
    html.start-page .apps{grid-template-columns:repeat(6,minmax(0,1fr))!important}
}
@media(max-width:620px){
    html.start-page .stage{width:calc(100% - 16px)!important;padding-top:max(60px,calc(env(safe-area-inset-top) + 52px))!important}
    html.start-page .hero{transform:translateY(-1.5vh)!important}
    html.start-page body.secondary-open .hero{transform:none!important;padding-top:4px!important}
    html.start-page .time{font-size:54px!important}
    html.start-page .date{font-size:10.5px!important;margin-top:7px!important}
    html.start-page .clock{margin-bottom:14px!important}
    html.start-page .search-wrap{width:min(88vw,500px)!important;max-height:46px}
    html.start-page .search-wrap:focus-within,html.start-page body.engine-picker-open .search-wrap{width:min(90vw,515px)!important}
    html.start-page .search-box{height:46px!important;border-radius:999px!important}
    html.start-page .search-box input{font-size:13px!important}
    html.start-page body.secondary-open .secondary-inner{padding-top:13px!important}
    html.start-page .secondary{width:100%!important;max-width:100%!important}
    html.start-page .apps-panel{padding:12px 6px 13px!important;border-radius:16px!important}
    html.start-page .apps{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:14px 3px!important}
    html.start-page .app-icon{width:46px!important;height:46px!important;border-radius:12px!important}
    html.start-page .app-icon img{width:26px!important;height:26px!important}
    html.start-page .app-name{font-size:9.4px!important}
}

/* CJSW_STARTPAGE_V4_3_FADE_SWAP_AND_ENGINE_ICON_CONFIG_20260830 */
/* 默认搜索态与书签态共用同一视觉锚点：仅交叉淡入淡出，不改变时间/搜索框坐标。 */
html.start-page .hero,
html.start-page body.secondary-open .hero{
    transform:translateY(-3.2vh)!important;
}
html.start-page .clock,
html.start-page body.secondary-open .clock{
    margin-bottom:17px!important;
    transform:none!important;
    opacity:1!important;
    cursor:pointer!important;
}
html.start-page .clock:hover{transform:none!important;opacity:1!important}

html.start-page .search-wrap,
html.start-page body.secondary-open .search-wrap{
    width:min(550px,100%)!important;
    max-height:none!important;
    height:auto!important;
    overflow:visible!important;
    transform:none!important;
    transition:opacity .22s ease,visibility 0s linear!important;
}
html.start-page .search-wrap:focus-within,
html.start-page body.engine-picker-open .search-wrap{
    width:min(570px,100%)!important;
}
html.start-page body.secondary-open .search-wrap{
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
    transform:none!important;
}

/* 书签面板固定在搜索框原本的位置，完全脱离文档流，避免打开时推动时间/搜索区域。 */
html.start-page .secondary,
html.start-page body.secondary-open .secondary{
    position:fixed!important;
    z-index:18!important;
    top:var(--start-bookmark-top,52%)!important;
    left:50%!important;
    right:auto!important;
    bottom:auto!important;
    width:min(820px,calc(100vw - 28px))!important;
    max-width:820px!important;
    max-height:calc(100dvh - var(--start-bookmark-top,52%) - 18px)!important;
    margin:0!important;
    padding:0!important;
    display:block!important;
    grid-template-rows:none!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none!important;
    transform:translateX(-50%)!important;
    transition:opacity .24s ease,visibility 0s linear .24s!important;
}
html.start-page .secondary::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
html.start-page .secondary{
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
}
html.start-page body.secondary-open .secondary{
    opacity:1!important;
    visibility:visible!important;
    pointer-events:auto!important;
    transition:opacity .24s ease,visibility 0s linear 0s!important;
}
html.start-page .secondary-inner,
html.start-page body.secondary-open .secondary-inner{
    min-height:0!important;
    padding:0!important;
    overflow:visible!important;
    opacity:1!important;
    transform:none!important;
    transition:none!important;
}
html.start-page body.secondary-open .app{
    animation:none!important;
    opacity:1!important;
    transform:none!important;
}

/* 打开书签后不改变 stage 布局与页面中心位置。 */
html.start-page body.secondary-open,
html.start-page body:not(.secondary-open){overflow:hidden!important}
html.start-page body.secondary-open .stage,
html.start-page body:not(.secondary-open) .stage{
    height:100dvh!important;
    min-height:100dvh!important;
    justify-content:center!important;
    transform:none!important;
}

/* 搜索引擎图标只使用后台 icon_url，保留原图颜色和透明背景，不再自动做 favicon/灰阶处理。 */
html.start-page .engine-mark img,
html.start-page .engine-option .mini img,
html.start-page.dark .engine-mark img,
html.start-page.dark .engine-option .mini img{
    filter:none!important;
    opacity:1!important;
    background:transparent!important;
    object-fit:contain!important;
}
html.start-page .engine-mark i{font-size:16px!important;line-height:1!important}
html.start-page .engine-option .mini i{font-size:15px!important;line-height:1!important;color:rgba(255,255,255,.80)!important}

@media(max-width:620px){
    html.start-page .hero,
    html.start-page body.secondary-open .hero{transform:translateY(-1.5vh)!important}
    html.start-page .clock,
    html.start-page body.secondary-open .clock{margin-bottom:14px!important}
    html.start-page .search-wrap,
    html.start-page body.secondary-open .search-wrap{width:min(88vw,500px)!important}
    html.start-page .search-wrap:focus-within,
    html.start-page body.engine-picker-open .search-wrap{width:min(90vw,515px)!important}
    html.start-page .secondary,
    html.start-page body.secondary-open .secondary{
        width:calc(100vw - 16px)!important;
        max-width:none!important;
        max-height:calc(100dvh - var(--start-bookmark-top,52%) - max(12px,env(safe-area-inset-bottom)))!important;
    }
    html.start-page body.secondary-open .stage,
    html.start-page body:not(.secondary-open) .stage{
        height:100dvh!important;
        min-height:100dvh!important;
        padding-top:max(60px,calc(env(safe-area-inset-top) + 52px))!important;
        padding-bottom:max(24px,env(safe-area-inset-bottom))!important;
    }
}

/* CJSW_STARTPAGE_V4_4_POSITION_FOCUS_STABILITY_20260830 */
/* 主视觉整体上移；搜索态和书签态使用完全相同的锚点。 */
html.start-page .hero,
html.start-page body.secondary-open .hero,
html.start-page body:not(.secondary-open) .hero{
    transform:translateY(-7vh)!important;
    transition:none!important;
}
html.start-page .clock,
html.start-page body.secondary-open .clock,
html.start-page body:not(.secondary-open) .clock,
html.start-page .clock:hover,
html.start-page .clock:active{
    margin-bottom:17px!important;
    transform:none!important;
    opacity:1!important;
}

/* 搜索框选中/聚焦动效只作用于搜索框自身，不改变时间和整体布局。 */
html.start-page .search-box{
    transform:translateY(0) scale(1)!important;
    transform-origin:center center!important;
    transition:background-color .24s ease,box-shadow .28s cubic-bezier(.16,1,.3,1),transform .32s cubic-bezier(.16,1,.3,1),filter .24s ease!important;
}
html.start-page .search-wrap:focus-within .search-box,
html.start-page body.engine-picker-open .search-box{
    transform:translateY(-1px) scale(1.018)!important;
    box-shadow:0 16px 42px rgba(0,0,0,.18),0 0 0 3px color-mix(in srgb,var(--accent) 18%,transparent)!important;
    filter:saturate(1.04)!important;
}
html.start-page.dark .search-wrap:focus-within .search-box,
html.start-page.dark body.engine-picker-open .search-box{
    box-shadow:0 17px 46px rgba(0,0,0,.38),0 0 0 3px color-mix(in srgb,var(--accent) 24%,transparent)!important;
}
html.start-page body.secondary-open .search-box{
    transform:none!important;
    filter:none!important;
}

/* 书签显示/隐藏只交叉改变透明度，不参与主视觉定位。 */
html.start-page .search-wrap,
html.start-page body.secondary-open .search-wrap{
    margin-top:0!important;
    margin-bottom:0!important;
}
html.start-page .secondary,
html.start-page body.secondary-open .secondary{
    transform:translateX(-50%)!important;
}

@media(max-width:820px){
    html.start-page .hero,
    html.start-page body.secondary-open .hero,
    html.start-page body:not(.secondary-open) .hero{
        transform:translateY(-5.2vh)!important;
    }
}
@media(max-width:620px){
    html.start-page .hero,
    html.start-page body.secondary-open .hero,
    html.start-page body:not(.secondary-open) .hero{
        transform:translateY(-4.5vh)!important;
        padding-top:0!important;
    }
    html.start-page .clock,
    html.start-page body.secondary-open .clock,
    html.start-page body:not(.secondary-open) .clock,
    html.start-page .clock:hover,
    html.start-page .clock:active{
        margin-bottom:14px!important;
        transform:none!important;
    }
    html.start-page .search-wrap:focus-within .search-box,
    html.start-page body.engine-picker-open .search-box{
        transform:translateY(-1px) scale(1.012)!important;
    }
}


/* CJSW_STARTPAGE_V4_5_HIGH_ANCHOR_DEEP_SEARCH_INTERACTION_20260830 */
/* 1) 不再从屏幕中心 translate 上移；主视觉直接锚定在视口上方。 */
html.start-page .stage,
html.start-page body.secondary-open .stage,
html.start-page body:not(.secondary-open) .stage{
    position:relative!important;
    height:100dvh!important;
    min-height:100dvh!important;
    padding:0!important;
    margin:0 auto!important;
    display:block!important;
    transform:none!important;
    overflow:visible!important;
}
html.start-page .hero,
html.start-page body.secondary-open .hero,
html.start-page body:not(.secondary-open) .hero{
    position:absolute!important;
    z-index:12!important;
    top:clamp(72px,12.2vh,128px)!important;
    left:50%!important;
    width:100%!important;
    max-width:100%!important;
    margin:0!important;
    padding:0!important;
    transform:translateX(-50%)!important;
    transition:none!important;
}
/* 书签态、普通态、Hover、Active 全部锁定同一时间坐标。 */
html.start-page .clock,
html.start-page body.secondary-open .clock,
html.start-page body:not(.secondary-open) .clock,
html.start-page .clock:hover,
html.start-page .clock:active,
html.start-page body.secondary-open .clock:hover,
html.start-page body.secondary-open .clock:active{
    margin:0 0 15px!important;
    padding:0!important;
    transform:none!important;
    scale:none!important;
    opacity:1!important;
    translate:none!important;
    transition:opacity .18s ease!important;
}
html.start-page .clock:active{opacity:.88!important}
html.start-page .time{transform:none!important;scale:none!important;translate:none!important}

/* 2) 搜索和书签共享同一个绝对锚点，但只做交叉透明，不再参与布局运动。 */
html.start-page .search-wrap,
html.start-page body.secondary-open .search-wrap{
    position:relative!important;
    z-index:13!important;
    margin:0 auto!important;
    width:min(520px,calc(100% - 28px))!important;
    max-width:520px!important;
    transform:none!important;
    transition:opacity .21s ease,visibility 0s linear!important;
}
html.start-page body.secondary-open .search-wrap{
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
    transform:none!important;
}
html.start-page .secondary,
html.start-page body.secondary-open .secondary{
    top:var(--start-bookmark-top,220px)!important;
    transform:translateX(-50%)!important;
    transition:opacity .22s ease,visibility 0s linear .22s!important;
}
html.start-page body.secondary-open .secondary{
    transition:opacity .22s ease,visibility 0s linear 0s!important;
}

/* 3) 搜索框完整交互状态：默认 / hover / focus / 输入 / 引擎菜单 / submit。 */
html.start-page .search-box,
html.start-page .search-box:focus,
html.start-page .search-box:focus-within,
html.start-page body.engine-picker-open .search-box{
    position:relative!important;
    isolation:isolate!important;
    overflow:hidden!important;
    height:46px!important;
    border:0!important;
    outline:0!important;
    border-radius:999px!important;
    transform:translate3d(0,0,0) scale(1)!important;
    transform-origin:center!important;
    will-change:transform,box-shadow,background-color!important;
    transition:
        transform .34s cubic-bezier(.16,1,.3,1),
        box-shadow .34s cubic-bezier(.16,1,.3,1),
        background-color .24s ease,
        filter .24s ease!important;
}
/* 微弱环境高光，不是边框。 */
html.start-page .search-box::after{
    content:""!important;
    display:block!important;
    position:absolute!important;
    z-index:-1!important;
    pointer-events:none!important;
    inset:0!important;
    border-radius:inherit!important;
    background:linear-gradient(110deg,transparent 8%,rgba(255,255,255,.10) 34%,transparent 58%)!important;
    opacity:0!important;
    transform:translateX(-34%)!important;
    transition:opacity .22s ease,transform .52s cubic-bezier(.16,1,.3,1)!important;
}
html.start-page .search-wrap:hover .search-box{
    transform:translate3d(0,-1px,0) scale(1.009)!important;
    box-shadow:0 16px 38px rgba(0,0,0,.18)!important;
}
html.start-page .search-wrap:hover .search-box::after{
    opacity:.65!important;
    transform:translateX(18%)!important;
}
html.start-page .search-wrap:focus-within .search-box,
html.start-page .search-wrap.is-focused .search-box,
html.start-page body.engine-picker-open .search-box{
    transform:translate3d(0,-2px,0) scale(1.022)!important;
    background:var(--v42-search-bg-focus)!important;
    box-shadow:
        0 18px 44px rgba(0,0,0,.20),
        0 0 0 3px color-mix(in srgb,var(--accent) 18%,transparent)!important;
    filter:saturate(1.04)!important;
}
html.start-page.dark .search-wrap:focus-within .search-box,
html.start-page.dark .search-wrap.is-focused .search-box,
html.start-page.dark body.engine-picker-open .search-box{
    box-shadow:
        0 19px 48px rgba(0,0,0,.40),
        0 0 0 3px color-mix(in srgb,var(--accent) 24%,transparent)!important;
}
html.start-page .search-wrap:focus-within .search-box::after,
html.start-page .search-wrap.is-focused .search-box::after,
html.start-page body.engine-picker-open .search-box::after{
    opacity:.88!important;
    transform:translateX(42%)!important;
}
html.start-page .search-wrap.has-value .search-go{
    color:var(--accent)!important;
    transform:scale(1.04)!important;
}
html.start-page .search-box.is-typing{
    animation:startSearchTypingV45 .21s cubic-bezier(.16,1,.3,1) both!important;
}
html.start-page .search-box.is-submitting{
    animation:startSearchSubmitV45 .34s cubic-bezier(.16,1,.3,1) both!important;
}
html.start-page .search-box.is-submitting .search-go i{
    animation:startSearchArrowV45 .34s cubic-bezier(.16,1,.3,1) both!important;
}
html.start-page .engine-trigger,
html.start-page .search-go{
    transition:transform .26s cubic-bezier(.16,1,.3,1),color .18s ease,opacity .18s ease!important;
}
html.start-page .engine-trigger:hover{transform:scale(1.10)!important}
html.start-page .engine-trigger:active{transform:scale(.90)!important}
html.start-page .search-go:hover{transform:translateX(2px) scale(1.08)!important}
html.start-page .search-go:active{transform:translateX(1px) scale(.90)!important}
html.start-page .search-wrap:focus-within .engine-trigger,
html.start-page body.engine-picker-open .engine-trigger{color:var(--accent)!important}

@keyframes startSearchTypingV45{
    0%{transform:translate3d(0,-2px,0) scale(1.022)}
    45%{transform:translate3d(0,-2px,0) scale(1.027)}
    100%{transform:translate3d(0,-2px,0) scale(1.022)}
}
@keyframes startSearchSubmitV45{
    0%{transform:translate3d(0,-2px,0) scale(1.022)}
    38%{transform:translate3d(0,0,0) scale(.986)}
    100%{transform:translate3d(0,-2px,0) scale(1.022)}
}
@keyframes startSearchArrowV45{
    0%{transform:translateX(0);opacity:1}
    45%{transform:translateX(7px);opacity:.42}
    46%{transform:translateX(-5px);opacity:0}
    100%{transform:translateX(0);opacity:1}
}

/* 4) 书签卡片整体也随上方锚点同步上移，时间绝不受它影响。 */
html.start-page .apps-panel{
    margin:0!important;
}

@media(max-width:820px){
    html.start-page .hero,
    html.start-page body.secondary-open .hero,
    html.start-page body:not(.secondary-open) .hero{
        top:clamp(68px,10.5vh,104px)!important;
        transform:translateX(-50%)!important;
    }
}
@media(max-width:620px){
    html.start-page .hero,
    html.start-page body.secondary-open .hero,
    html.start-page body:not(.secondary-open) .hero{
        top:max(calc(env(safe-area-inset-top) + 58px),9.2vh)!important;
        transform:translateX(-50%)!important;
    }
    html.start-page .clock,
    html.start-page body.secondary-open .clock,
    html.start-page body:not(.secondary-open) .clock,
    html.start-page .clock:hover,
    html.start-page .clock:active{
        margin-bottom:12px!important;
        transform:none!important;
    }
    html.start-page .search-wrap,
    html.start-page body.secondary-open .search-wrap{
        width:min(86vw,455px)!important;
        max-width:455px!important;
    }
    html.start-page .search-box,
    html.start-page .search-box:focus-within,
    html.start-page body.engine-picker-open .search-box{
        height:44px!important;
    }
    html.start-page .search-wrap:focus-within .search-box,
    html.start-page .search-wrap.is-focused .search-box,
    html.start-page body.engine-picker-open .search-box{
        transform:translate3d(0,-1px,0) scale(1.015)!important;
    }
}
@media(max-height:690px) and (min-width:621px){
    html.start-page .hero,
    html.start-page body.secondary-open .hero,
    html.start-page body:not(.secondary-open) .hero{top:68px!important}
}
@media(prefers-reduced-motion:reduce){
    html.start-page .search-box,
    html.start-page .engine-trigger,
    html.start-page .search-go{animation:none!important;transition:none!important}
}
/* V4.5 搜索框高光层在内容下方、背景上方，避免负层级被背景吞掉。 */
html.start-page .search-box::after{z-index:0!important}
html.start-page .search-box>button,
html.start-page .search-box>input{position:relative!important;z-index:1!important}


/* CJSW_STARTPAGE_V4_6_COMPACT_ENGINE_MOBILE_DEEP_OPT_20260830 */
/* 搜索引擎卡片：整体再缩一档，保持参考图的紧凑纵向菜单感。 */
html.start-page .engine-pop{
    width:min(216px,calc(100vw - 20px))!important;
    padding:6px!important;
    border-radius:15px!important;
    box-shadow:0 18px 48px rgba(0,0,0,.30)!important;
    backdrop-filter:blur(26px) saturate(140%)!important;
    -webkit-backdrop-filter:blur(26px) saturate(140%)!important;
}
html.start-page .engine-pop-body{
    max-height:min(64dvh,340px)!important;
    padding:1px!important;
    overflow-y:auto!important;
    overflow-x:hidden!important;
    scrollbar-width:none!important;
}
html.start-page .engine-pop-body::-webkit-scrollbar{display:none!important;width:0!important;height:0!important}
html.start-page .engine-grid,html.start-page .engine-grid-all{gap:1px!important}
html.start-page .engine-option,html.start-page.dark .engine-option{
    height:32px!important;
    min-height:32px!important;
    padding:0 8px!important;
    border-radius:9px!important;
    gap:7px!important;
}
html.start-page .engine-option .mini,html.start-page.dark .engine-option .mini{
    width:14px!important;height:14px!important;flex:0 0 14px!important;
}
html.start-page .engine-option .mini img{width:14px!important;height:14px!important}
html.start-page .engine-option .mini i{font-size:13px!important}
html.start-page .engine-option .engine-name{
    font-size:12.5px!important;
    font-weight:540!important;
    line-height:1!important;
}
html.start-page .engine-option.active .engine-name{font-weight:640!important}
html.start-page .engine-kbd{
    margin-left:8px!important;
    font-size:10px!important;
    font-weight:600!important;
    opacity:.82;
}
html.start-page .engine-pop-close-float{
    width:22px!important;height:22px!important;top:5px!important;right:5px!important;
    border-radius:7px!important;font-size:15px!important;
}

/* ===== 手机端统一规则：不再让早期多套 media query 互相争夺最终布局 ===== */
@media(max-width:620px){
    html.start-page,html.start-page body{
        width:100%!important;
        min-height:100%!important;
        overflow-x:hidden!important;
        overscroll-behavior-x:none;
    }
    html.start-page body{
        min-height:100svh!important;
        min-height:100dvh!important;
        touch-action:manipulation;
    }
    html.start-page .topbar{
        top:0!important;
        height:calc(48px + env(safe-area-inset-top))!important;
        padding:env(safe-area-inset-top) 10px 0!important;
        align-items:center!important;
    }
    html.start-page .top-btn{
        width:34px!important;height:34px!important;font-size:15px!important;
        backdrop-filter:blur(16px) saturate(125%)!important;
        -webkit-backdrop-filter:blur(16px) saturate(125%)!important;
    }
    html.start-page .stage,
    html.start-page body.secondary-open .stage,
    html.start-page body:not(.secondary-open) .stage{
        width:100%!important;
        height:100svh!important;
        height:100dvh!important;
        min-height:100svh!important;
        min-height:100dvh!important;
        padding:0!important;
        margin:0!important;
        overflow:visible!important;
    }
    html.start-page .hero,
    html.start-page body.secondary-open .hero,
    html.start-page body:not(.secondary-open) .hero{
        top:max(calc(env(safe-area-inset-top) + 54px),8.2svh)!important;
        left:50%!important;
        width:100%!important;
        padding:0 10px!important;
        transform:translateX(-50%)!important;
    }
    html.start-page .clock,
    html.start-page body.secondary-open .clock,
    html.start-page body:not(.secondary-open) .clock,
    html.start-page .clock:hover,
    html.start-page .clock:active{
        margin:0 0 11px!important;
        transform:none!important;
    }
    html.start-page .time{
        font-size:clamp(48px,14vw,58px)!important;
        font-weight:520!important;
        letter-spacing:-.018em!important;
        line-height:.98!important;
    }
    html.start-page .date{
        margin-top:7px!important;
        font-size:10.5px!important;
        line-height:1.25!important;
        letter-spacing:.01em!important;
    }
    html.start-page .search-wrap,
    html.start-page body.secondary-open .search-wrap{
        width:min(88vw,420px)!important;
        max-width:420px!important;
        margin:0 auto!important;
    }
    html.start-page .search-box,
    html.start-page .search-box:focus,
    html.start-page .search-box:focus-within,
    html.start-page body.engine-picker-open .search-box{
        height:43px!important;
        min-height:43px!important;
        border-radius:999px!important;
        padding:0 5px!important;
    }
    html.start-page .search-wrap:hover .search-box{transform:none!important}
    html.start-page .search-wrap:focus-within .search-box,
    html.start-page .search-wrap.is-focused .search-box,
    html.start-page body.engine-picker-open .search-box{
        transform:translate3d(0,-1px,0) scale(1.01)!important;
        box-shadow:0 13px 34px rgba(0,0,0,.18),0 0 0 2px color-mix(in srgb,var(--accent) 18%,transparent)!important;
    }
    html.start-page.dark .search-wrap:focus-within .search-box,
    html.start-page.dark .search-wrap.is-focused .search-box,
    html.start-page.dark body.engine-picker-open .search-box{
        box-shadow:0 14px 38px rgba(0,0,0,.36),0 0 0 2px color-mix(in srgb,var(--accent) 23%,transparent)!important;
    }
    html.start-page .engine-trigger{width:32px!important;height:32px!important;flex:0 0 32px!important}
    html.start-page .engine-mark{width:19px!important;height:19px!important}
    html.start-page .engine-mark img{width:15px!important;height:15px!important}
    html.start-page .search-box input{
        min-width:0!important;
        padding:0 6px!important;
        font-size:13px!important;
        line-height:1!important;
    }
    html.start-page .search-go{width:31px!important;height:31px!important;font-size:14px!important}

    /* 书签栏与搜索框原位互换；手机端高度严格限制在可视区内。 */
    html.start-page .secondary,
    html.start-page body.secondary-open .secondary{
        width:calc(100vw - 14px)!important;
        max-width:none!important;
        max-height:calc(100dvh - var(--start-bookmark-top,160px) - env(safe-area-inset-bottom) - 10px)!important;
        border-radius:16px!important;
        overscroll-behavior:contain!important;
        -webkit-overflow-scrolling:touch!important;
        touch-action:pan-y!important;
    }
    html.start-page .apps-panel{
        width:100%!important;
        min-width:0!important;
        padding:11px 7px 12px!important;
        border-radius:15px!important;
        backdrop-filter:blur(24px) saturate(122%)!important;
        -webkit-backdrop-filter:blur(24px) saturate(122%)!important;
    }
    html.start-page .panel-head{
        min-height:28px!important;
        margin-bottom:9px!important;
        padding:0 6px!important;
    }
    html.start-page .panel-title{font-size:10.5px!important;gap:5px!important}
    html.start-page .panel-title>i{font-size:12px!important}
    html.start-page .panel-sub{font-size:9px!important}
    html.start-page .icon-btn{width:27px!important;height:27px!important;border-radius:8px!important}
    html.start-page .apps{
        grid-template-columns:repeat(4,minmax(0,1fr))!important;
        gap:13px 2px!important;
        min-height:58px!important;
        padding:0!important;
    }
    html.start-page .app{gap:5px!important;min-width:0!important}
    html.start-page .app-icon{
        width:44px!important;height:44px!important;border-radius:11px!important;
        box-shadow:0 6px 15px rgba(0,0,0,.13)!important;
    }
    html.start-page .app-icon img{width:25px!important;height:25px!important;border-radius:6px!important}
    html.start-page .app-emoji{font-size:21px!important}
    html.start-page .app-name{
        max-width:100%!important;
        padding:0 3px!important;
        font-size:9.3px!important;
        line-height:1.2!important;
    }
    html.start-page .tip{display:none!important}

    /* 搜索引擎菜单：手机端仍紧凑，但保留足够触摸高度。 */
    html.start-page .engine-pop{
        width:min(204px,calc(100vw - 16px))!important;
        max-width:204px!important;
        padding:5px!important;
        border-radius:14px!important;
    }
    html.start-page .engine-pop-body{
        max-height:min(52dvh,300px)!important;
        overflow-y:auto!important;
        overscroll-behavior:contain!important;
        -webkit-overflow-scrolling:touch!important;
    }
    html.start-page .engine-option,html.start-page.dark .engine-option{
        height:34px!important;
        min-height:34px!important;
        padding:0 8px!important;
        border-radius:9px!important;
    }
    html.start-page .engine-option .engine-name{font-size:12px!important}
    html.start-page .engine-kbd{font-size:9.5px!important;margin-left:6px!important}

    /* 设置面板变为手机底部抽屉，避免窄屏被硬塞成桌面侧栏。 */
    html.start-page .settings-mask{padding:0!important;align-items:flex-end!important}
    html.start-page .settings{
        position:absolute!important;
        left:6px!important;right:6px!important;top:auto!important;
        bottom:max(6px,env(safe-area-inset-bottom))!important;
        width:auto!important;
        max-width:none!important;
        max-height:min(82dvh,720px)!important;
        border-radius:20px!important;
        transform:translateY(22px) scale(.99)!important;
        overflow:hidden!important;
    }
    html.start-page .settings-mask.show .settings{transform:none!important}
    html.start-page .settings-head{
        position:sticky!important;top:0!important;z-index:3!important;
        padding:14px 14px 10px!important;
        backdrop-filter:blur(18px)!important;-webkit-backdrop-filter:blur(18px)!important;
    }
    html.start-page .settings-body{
        max-height:calc(min(82dvh,720px) - 54px)!important;
        overflow-y:auto!important;
        overscroll-behavior:contain!important;
        padding:0 12px calc(14px + env(safe-area-inset-bottom))!important;
        -webkit-overflow-scrolling:touch!important;
    }
    html.start-page .setting-section{margin-top:11px!important}
    html.start-page .setting-card{padding:10px!important;border-radius:12px!important}
    html.start-page .setting-row{gap:8px!important}
    html.start-page .setting-label strong{font-size:11px!important}
    html.start-page .setting-label small{font-size:9.5px!important}
    html.start-page .wall-actions{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important}
    html.start-page .wall-actions .setting-btn{min-width:0!important;padding:0 5px!important;font-size:9.5px!important}
    html.start-page .start-engine-url-readonly{max-width:55vw!important;font-size:9px!important}

    /* 添加/编辑书签弹窗：窄屏底部安全区和键盘适配。 */
    html.start-page .modal-mask{padding:10px!important;align-items:flex-end!important}
    html.start-page .modal{
        width:100%!important;
        max-width:520px!important;
        max-height:min(78dvh,620px)!important;
        margin:0 auto max(0px,env(safe-area-inset-bottom))!important;
        overflow-y:auto!important;
        border-radius:18px!important;
        padding:16px!important;
        -webkit-overflow-scrolling:touch!important;
    }
    html.start-page .field input{font-size:16px!important} /* iOS 防止输入框聚焦自动放大 */
}

/* 极窄手机 */
@media(max-width:360px){
    html.start-page .hero,
    html.start-page body.secondary-open .hero,
    html.start-page body:not(.secondary-open) .hero{top:max(calc(env(safe-area-inset-top) + 50px),7.4svh)!important}
    html.start-page .time{font-size:47px!important}
    html.start-page .date{font-size:10px!important}
    html.start-page .search-wrap,html.start-page body.secondary-open .search-wrap{width:91vw!important}
    html.start-page .apps{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px 0!important}
    html.start-page .app-icon{width:41px!important;height:41px!important;border-radius:10px!important}
    html.start-page .app-icon img{width:23px!important;height:23px!important}
    html.start-page .app-name{font-size:8.8px!important}
    html.start-page .engine-pop{width:min(196px,calc(100vw - 12px))!important;max-width:196px!important}
}

/* 手机横屏/矮屏：优先保证搜索、菜单和书签都落在可视区域。 */
@media(max-width:932px) and (orientation:landscape) and (max-height:520px){
    html.start-page .topbar{height:calc(42px + env(safe-area-inset-top))!important}
    html.start-page .hero,
    html.start-page body.secondary-open .hero,
    html.start-page body:not(.secondary-open) .hero{
        top:max(calc(env(safe-area-inset-top) + 34px),5svh)!important;
    }
    html.start-page .clock,html.start-page body.secondary-open .clock{margin-bottom:7px!important}
    html.start-page .time{font-size:40px!important}
    html.start-page .date{margin-top:4px!important;font-size:9.5px!important}
    html.start-page .search-wrap,html.start-page body.secondary-open .search-wrap{width:min(62vw,440px)!important}
    html.start-page .search-box{height:40px!important;min-height:40px!important}
    html.start-page .secondary,html.start-page body.secondary-open .secondary{
        width:min(720px,calc(100vw - 18px))!important;
        max-height:calc(100dvh - var(--start-bookmark-top,112px) - 8px)!important;
    }
    html.start-page .apps{grid-template-columns:repeat(8,minmax(0,1fr))!important;gap:10px 5px!important}
    html.start-page .app-icon{width:39px!important;height:39px!important;border-radius:10px!important}
    html.start-page .app-icon img{width:22px!important;height:22px!important}
    html.start-page .app-name{font-size:8.7px!important}
    html.start-page .engine-pop-body{max-height:min(58dvh,220px)!important}
}

/* 触摸设备取消依赖 hover 的位移，避免点按时出现粘滞 hover。 */
@media(hover:none) and (pointer:coarse){
    html.start-page .app:hover .app-icon,
    html.start-page .app:focus-visible .app-icon{transform:none!important}
    html.start-page .engine-option:hover,html.start-page.dark .engine-option:hover{transform:none!important}
    html.start-page .engine-trigger:hover{transform:none!important}
    html.start-page .search-go:hover{transform:none!important}
}

/* CJSW_STARTPAGE_V4_7_SETTINGS_HISTORY_WALLPAPERS_20260830 */
html.start-page .settings{width:min(540px,calc(100% - 24px))!important}
html.start-page .settings-body{padding-bottom:18px!important}
html.start-page .setting-title{font-size:12px!important;font-weight:750!important;letter-spacing:.01em!important}
html.start-page .setting-card{padding:4px 12px!important;border-radius:14px!important}
html.start-page .setting-row{min-height:48px!important;padding:9px 2px!important;border-bottom:1px solid color-mix(in srgb,var(--setting-text) 7%,transparent)!important}
html.start-page .setting-row:last-child{border-bottom:0!important}
html.start-page .setting-label strong{font-size:12px!important;font-weight:650!important}
html.start-page .setting-label small{font-size:10px!important;line-height:1.45!important;margin-top:3px!important}
html.start-page .setting-switch{width:38px;height:22px;flex:0 0 38px;border:0;border-radius:999px;padding:2px;background:rgba(120,120,120,.28);cursor:pointer;transition:background .2s ease,transform .22s cubic-bezier(.16,1,.3,1);display:flex;align-items:center}
html.start-page .setting-switch span{width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.18);transform:translateX(0);transition:transform .28s cubic-bezier(.16,1,.3,1)}
html.start-page .setting-switch.on{background:var(--accent)!important}
html.start-page .setting-switch.on span{transform:translateX(16px)}
html.start-page .setting-switch:active{transform:scale(.94)}
html.start-page .setting-select{height:32px;min-width:76px;padding:0 28px 0 10px;border:0;border-radius:9px;background:var(--lime-settings-hover);color:var(--setting-text);font-size:11px;font-weight:600;outline:0;cursor:pointer}
html.start-page.dark .setting-select{background:rgba(255,255,255,.08)}

/* 搜索历史浮层 */
html.start-page .search-wrap{position:relative!important;overflow:visible!important}
html.start-page .search-history-panel{position:absolute;left:0;right:0;top:calc(100% + 7px);z-index:35;padding:7px;border-radius:16px;background:rgba(250,250,250,.94);color:#272727;box-shadow:0 18px 46px rgba(0,0,0,.20);backdrop-filter:blur(26px) saturate(140%);-webkit-backdrop-filter:blur(26px) saturate(140%);opacity:0;visibility:hidden;transform:translateY(-5px) scale(.99);transform-origin:top center;pointer-events:none;transition:opacity .18s ease,transform .26s cubic-bezier(.16,1,.3,1),visibility .18s ease}
html.start-page.dark .search-history-panel{background:rgba(20,22,26,.94);color:#f2f2f2;box-shadow:0 20px 52px rgba(0,0,0,.42)}
html.start-page .search-history-panel.show{opacity:1;visibility:visible;transform:none;pointer-events:auto}
html.start-page .search-history-head{height:28px;padding:0 8px;display:flex;align-items:center;justify-content:space-between;color:#858585;font-size:10px;font-weight:650}
html.start-page .search-history-head span{display:flex;align-items:center;gap:5px}
html.start-page .search-history-head button{border:0;background:transparent;color:inherit;font-size:10px;cursor:pointer;padding:4px 6px;border-radius:6px}
html.start-page .search-history-head button:hover{background:rgba(0,0,0,.05);color:#333}
html.start-page.dark .search-history-head button:hover{background:rgba(255,255,255,.08);color:#fff}
html.start-page .search-history-list{display:flex;flex-direction:column;gap:2px;max-height:230px;overflow:auto;scrollbar-width:none}
html.start-page .search-history-list::-webkit-scrollbar{display:none}
html.start-page .search-history-row{display:flex;align-items:center;gap:3px;border-radius:10px;transition:background .16s ease}
html.start-page .search-history-row:hover{background:rgba(0,0,0,.045)}
html.start-page.dark .search-history-row:hover{background:rgba(255,255,255,.07)}
html.start-page .search-history-use{height:34px;flex:1;min-width:0;border:0;background:transparent;color:inherit;display:flex;align-items:center;gap:8px;text-align:left;padding:0 9px;cursor:pointer;font-size:11.5px}
html.start-page .search-history-use i{font-size:13px;opacity:.48}
html.start-page .search-history-use span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html.start-page .search-history-remove{width:29px;height:29px;flex:0 0 29px;border:0;border-radius:8px;background:transparent;color:#aaa;display:grid;place-items:center;cursor:pointer;opacity:0;transition:.16s ease}
html.start-page .search-history-row:hover .search-history-remove{opacity:1}
html.start-page .search-history-remove:hover{background:rgba(0,0,0,.07);color:#555}
html.start-page.dark .search-history-remove:hover{background:rgba(255,255,255,.09);color:#fff}

/* 时间偏好 */
html.start-page .time{display:flex!important;align-items:baseline!important;justify-content:center!important;white-space:nowrap!important}
html.start-page .time-number{display:inline-block;font-variant-numeric:tabular-nums;line-height:1}
html.start-page .time-separator{display:inline-block;width:.38em;text-align:center;font-weight:inherit;opacity:.92}
html.start-page .time-period{margin-left:.42em;font-size:.22em;font-weight:650;letter-spacing:.08em;opacity:.76}
html.start-page .time.blink-separators .time-separator{animation:cjswTimeSeparatorBlink 1s steps(1,end) infinite}
@keyframes cjswTimeSeparatorBlink{0%,49%{opacity:.92}50%,100%{opacity:.18}}
html.start-page body[data-time-weight="light"] .time{font-weight:300!important}
html.start-page body[data-time-weight="medium"] .time{font-weight:520!important}
html.start-page body[data-time-weight="bold"] .time{font-weight:720!important}
html.start-page body[data-time-size="small"] .time{font-size:48px!important}
html.start-page body[data-time-size="medium"] .time{font-size:58px!important}
html.start-page body[data-time-size="large"] .time{font-size:72px!important}

/* 壁纸偏好模板 */
html.start-page .wallpaper-preference-section{margin-top:18px!important}
html.start-page .wallpaper-preference-heading{display:flex;flex-direction:column;gap:3px;margin:0 2px 12px}
html.start-page .wallpaper-preference-heading strong{font-size:20px;font-weight:800;letter-spacing:-.03em;color:var(--setting-text)}
html.start-page .wallpaper-preference-heading small{font-size:10.5px;color:var(--setting-muted)}
html.start-page .wallpaper-custom-card{display:grid;grid-template-columns:100px 1fr;gap:14px;align-items:center;padding:0 0 15px}
html.start-page .wall-custom-preview{width:100px;height:78px;border-radius:10px;background:var(--lime-settings-hover);background-size:cover;background-position:center;display:grid;place-items:center;color:var(--setting-muted);font-size:24px;overflow:hidden}
html.start-page .wall-custom-preview.has-image>i{display:none}
html.start-page .wall-custom-copy{min-width:0;display:flex;flex-direction:column;align-items:flex-start}
html.start-page .wall-custom-copy>strong{font-size:13px;line-height:1.45;color:var(--setting-text);font-weight:750}
html.start-page .wall-custom-copy>small{font-size:10.5px;line-height:1.55;color:var(--setting-muted);margin-top:3px}
html.start-page .wall-custom-actions{display:flex;gap:6px;flex-wrap:wrap;margin-top:8px}
html.start-page .wall-custom-actions .setting-btn{height:29px!important;padding:0 9px!important;font-size:10.5px!important}
html.start-page .wall-url-inline{display:grid;grid-template-columns:1fr auto;gap:7px;max-height:0;opacity:0;overflow:hidden;transform:translateY(-4px);transition:max-height .3s cubic-bezier(.16,1,.3,1),opacity .18s ease,transform .3s cubic-bezier(.16,1,.3,1);margin-bottom:0}
html.start-page .wall-url-inline.show{max-height:50px;opacity:1;transform:none;margin-bottom:12px}
html.start-page .wall-url-inline .setting-input{margin:0!important}
html.start-page .system-wall-title{display:flex;align-items:baseline;gap:6px;margin:2px 0 8px;font-size:11px;font-weight:700;color:var(--setting-text)}
html.start-page .system-wall-title small{font-size:9.5px;color:var(--setting-muted);font-weight:500}
html.start-page .system-wall-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}
html.start-page .system-wall-item{position:relative;aspect-ratio:1.52/1;border:0;border-radius:9px;padding:0;overflow:hidden;background:var(--lime-settings-hover);cursor:pointer;box-shadow:none;transition:transform .24s cubic-bezier(.16,1,.3,1),box-shadow .2s ease,opacity .2s ease}
html.start-page .system-wall-item img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .35s cubic-bezier(.16,1,.3,1)}
html.start-page .system-wall-item:hover{transform:translateY(-2px);box-shadow:0 7px 18px rgba(0,0,0,.14)}
html.start-page .system-wall-item:hover img{transform:scale(1.035)}
html.start-page .system-wall-item.active{box-shadow:0 0 0 2px var(--accent),0 7px 18px rgba(0,0,0,.16)}
html.start-page .system-wall-check{position:absolute;right:5px;bottom:5px;width:19px;height:19px;border-radius:50%;display:grid;place-items:center;background:#fff;color:var(--accent);font-size:12px;box-shadow:0 2px 8px rgba(0,0,0,.18);opacity:0;transform:scale(.7);transition:.2s cubic-bezier(.16,1,.3,1)}
html.start-page .system-wall-item.active .system-wall-check{opacity:1;transform:none}
html.start-page .system-wall-empty{grid-column:1/-1;min-height:74px;border-radius:10px;background:var(--lime-settings-hover);display:grid;place-items:center;color:var(--setting-muted);font-size:10.5px}

@media(max-width:620px){
    html.start-page .settings{width:auto!important}
    html.start-page .settings-body{padding-left:11px!important;padding-right:11px!important}
    html.start-page .setting-card{padding:3px 10px!important}
    html.start-page .setting-row{min-height:47px!important;padding:8px 1px!important}
    html.start-page .setting-select{height:30px;min-width:70px;font-size:10.5px}
    html.start-page .setting-switch{width:36px;height:21px;flex-basis:36px}.start-page .setting-switch span{width:17px;height:17px}html.start-page .setting-switch.on span{transform:translateX(15px)}
    html.start-page .wallpaper-preference-heading strong{font-size:18px}
    html.start-page .wallpaper-custom-card{grid-template-columns:82px 1fr;gap:11px}
    html.start-page .wall-custom-preview{width:82px;height:68px}
    html.start-page .wall-custom-copy>strong{font-size:11.5px}.start-page .wall-custom-copy>small{font-size:9.5px}
    html.start-page .wall-custom-actions{gap:5px;margin-top:7px}.start-page .wall-custom-actions .setting-btn{height:27px!important;padding:0 7px!important;font-size:9.5px!important}
    html.start-page .system-wall-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
    html.start-page .system-wall-item{border-radius:8px}
    html.start-page .search-history-panel{top:calc(100% + 6px);border-radius:14px;padding:6px}
    html.start-page .search-history-use{font-size:11px;height:33px}
    html.start-page body[data-time-size="small"] .time{font-size:43px!important}
    html.start-page body[data-time-size="medium"] .time{font-size:50px!important}
    html.start-page body[data-time-size="large"] .time{font-size:58px!important}
}
@media(max-width:360px){
    html.start-page .wallpaper-custom-card{grid-template-columns:1fr}.start-page .wall-custom-preview{width:100%;height:95px}
    html.start-page .system-wall-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
    html.start-page body[data-time-size="small"] .time{font-size:40px!important}
    html.start-page body[data-time-size="medium"] .time{font-size:47px!important}
    html.start-page body[data-time-size="large"] .time{font-size:54px!important}
}
@media(prefers-reduced-motion:reduce){html.start-page .time.blink-separators .time-separator{animation:none!important}}

/* CJSW_STARTPAGE_V4_8_CRISP_FOCUS_AND_CUSTOM_SELECT_20260830 */
/* 搜索框聚焦不再 scale 整个容器，避免文字 / Logo / SVG 被浏览器纹理重采样后发糊。 */
html.start-page .search-wrap,
html.start-page body:not(.secondary-open) .search-wrap{
    width:min(520px,calc(100% - 28px))!important;
    max-width:none!important;
    transition:width .38s cubic-bezier(.16,1,.3,1),opacity .21s ease,visibility 0s linear!important;
}
@media (min-width:681px){
    html.start-page .search-wrap:hover,
    html.start-page .search-wrap:focus-within,
    html.start-page .search-wrap.is-focused,
    html.start-page body.engine-picker-open .search-wrap{
        width:min(548px,calc(100% - 28px))!important;
    }
}
html.start-page .search-box,
html.start-page .search-box:focus,
html.start-page .search-box:focus-within,
html.start-page body.engine-picker-open .search-box,
html.start-page .search-wrap:hover .search-box,
html.start-page .search-wrap:focus-within .search-box,
html.start-page .search-wrap.is-focused .search-box{
    transform:translate3d(0,0,0)!important;
    scale:none!important;
    filter:none!important;
    will-change:box-shadow,background-color!important;
}
html.start-page .search-wrap:hover .search-box{
    transform:translate3d(0,-1px,0)!important;
}
html.start-page .search-wrap:focus-within .search-box,
html.start-page .search-wrap.is-focused .search-box,
html.start-page body.engine-picker-open .search-box{
    transform:translate3d(0,-2px,0)!important;
}
/* 输入 / 提交动画只改变位移和阴影，不缩放内容。 */
@keyframes startSearchTypingV45{
    0%{transform:translate3d(0,-2px,0);box-shadow:0 18px 44px rgba(0,0,0,.20),0 0 0 3px color-mix(in srgb,var(--accent) 18%,transparent)}
    46%{transform:translate3d(0,-3px,0);box-shadow:0 21px 48px rgba(0,0,0,.22),0 0 0 4px color-mix(in srgb,var(--accent) 13%,transparent)}
    100%{transform:translate3d(0,-2px,0);box-shadow:0 18px 44px rgba(0,0,0,.20),0 0 0 3px color-mix(in srgb,var(--accent) 18%,transparent)}
}
@keyframes startSearchSubmitV45{
    0%{transform:translate3d(0,-2px,0)}
    42%{transform:translate3d(0,1px,0)}
    100%{transform:translate3d(0,-2px,0)}
}
html.start-page .search-box input,
html.start-page .engine-mark,
html.start-page .engine-mark img,
html.start-page .engine-trigger,
html.start-page .search-go,
html.start-page .search-go i{
    transform-origin:center center;
    -webkit-font-smoothing:antialiased;
    text-rendering:geometricPrecision;
}
/* 左右图标只做位移动效，避免 scale 后的 SVG / 图片发软。 */
html.start-page .engine-trigger:hover{transform:translateY(-1px)!important}
html.start-page .engine-trigger:active{transform:translateY(1px)!important}
html.start-page .search-go,
html.start-page .search-wrap.has-value .search-go,
html.start-page .search-go:hover,
html.start-page .search-go:active{
    transform:none!important;
}
html.start-page .search-go:hover{transform:translateX(2px)!important}
html.start-page .search-go:active{transform:translateX(1px)!important}

/* 搜索按钮改成黑白单色：浅色主题黑，深色主题白；不再跟随蓝色 accent。 */
html.start-page .search-go,
html.start-page .search-wrap.has-value .search-go,
html.start-page .search-go:hover,
html.start-page .search-go:focus-visible{
    color:#171717!important;
}
html.start-page.dark .search-go,
html.start-page.dark .search-wrap.has-value .search-go,
html.start-page.dark .search-go:hover,
html.start-page.dark .search-go:focus-visible{
    color:#f5f5f5!important;
}
html.start-page .search-go:disabled{opacity:.42!important}

/* 设置下拉框完全自定义：取消所有系统原生外观。 */
html.start-page .setting-select{
    -webkit-appearance:none!important;
    appearance:none!important;
    height:34px!important;
    min-width:88px!important;
    padding:0 31px 0 11px!important;
    border:0!important;
    outline:0!important;
    border-radius:10px!important;
    color:#2d2d2d!important;
    background-color:rgba(20,20,20,.055)!important;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M7 10l5 5 5-5' stroke='%23848484' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
    background-repeat:no-repeat!important;
    background-position:right 10px center!important;
    background-size:12px 12px!important;
    box-shadow:none!important;
    font-size:11px!important;
    font-weight:650!important;
    line-height:34px!important;
    cursor:pointer!important;
    transition:background-color .18s ease,box-shadow .2s ease,color .18s ease!important;
}
html.start-page .setting-select:hover{
    background-color:rgba(20,20,20,.085)!important;
}
html.start-page .setting-select:focus,
html.start-page .setting-select:focus-visible{
    background-color:rgba(20,20,20,.075)!important;
    box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 22%,transparent)!important;
}
html.start-page.dark .setting-select{
    color:#ededed!important;
    background-color:rgba(255,255,255,.075)!important;
    background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M7 10l5 5 5-5' stroke='%23bdbdbd' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")!important;
}
html.start-page.dark .setting-select:hover{background-color:rgba(255,255,255,.11)!important}
html.start-page.dark .setting-select:focus,
html.start-page.dark .setting-select:focus-visible{
    background-color:rgba(255,255,255,.095)!important;
    box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 30%,transparent)!important;
}
html.start-page .setting-select option{
    color:#222;
    background:#fff;
}
html.start-page.dark .setting-select option{
    color:#eee;
    background:#242424;
}
@media(max-width:620px){
    html.start-page .setting-select{
        height:32px!important;
        min-width:82px!important;
        padding-left:10px!important;
        padding-right:29px!important;
        font-size:10.5px!important;
        line-height:32px!important;
        background-position:right 9px center!important;
    }
    /* 手机端宽度已经接近满屏，不横向扩大；仅用上浮 / 阴影表现聚焦。 */
    html.start-page .search-wrap,
    html.start-page .search-wrap:hover,
    html.start-page .search-wrap:focus-within,
    html.start-page .search-wrap.is-focused,
    html.start-page body.engine-picker-open .search-wrap{
        width:min(100%,calc(100vw - 22px))!important;
    }
}

/* CJSW_STARTPAGE_V4_9_CUSTOM_SELECT_AND_TYPOGRAPHY_20260830 */
/* 全局字体渲染与可读性：避免起始页历史覆盖层把文字压到 9/10px。 */
html.start-page body{
    font-weight:400;
    -webkit-font-smoothing:antialiased;
    -moz-osx-font-smoothing:grayscale;
    text-rendering:optimizeLegibility;
}
html.start-page .date{font-size:12.5px!important;font-weight:520!important;line-height:1.35!important;letter-spacing:.015em!important}
html.start-page .search-box input{font-size:15px!important;font-weight:430!important;line-height:1.3!important}
html.start-page .engine-option .engine-name{font-size:13px!important;font-weight:560!important;line-height:1.2!important}
html.start-page .engine-kbd{font-size:11.5px!important;font-weight:600!important}
html.start-page .panel-title{font-size:13px!important;font-weight:680!important;line-height:1.25!important}
html.start-page .panel-sub{font-size:11.5px!important;font-weight:520!important;line-height:1.3!important}
html.start-page .app-name{font-size:11.5px!important;font-weight:560!important;line-height:1.35!important}
html.start-page .tip{font-size:11px!important;line-height:1.45!important}

/* 设置面板字体统一：主文案 >= 13px，说明 >= 11.5px。 */
html.start-page .settings-head h2{font-size:18px!important;font-weight:760!important;letter-spacing:-.02em!important;line-height:1.25!important}
html.start-page .setting-title{font-size:13px!important;font-weight:720!important;line-height:1.3!important;letter-spacing:.01em!important}
html.start-page .setting-label strong{font-size:13px!important;font-weight:650!important;line-height:1.38!important}
html.start-page .setting-label small{font-size:11.5px!important;font-weight:430!important;line-height:1.55!important;margin-top:4px!important}
html.start-page .setting-row{min-height:54px!important;padding:10px 2px!important;gap:12px!important}
html.start-page .setting-btn{height:34px!important;padding:0 11px!important;font-size:12.5px!important;font-weight:620!important;line-height:1!important}
html.start-page .setting-input{height:40px!important;font-size:13px!important;font-weight:450!important;line-height:1.25!important}
html.start-page .range-value{font-size:12px!important;font-weight:620!important}
html.start-page .start-engine-url-readonly{font-size:11.5px!important;line-height:1.5!important}
html.start-page .settings-site-info .site-info-title{font-size:13px!important;font-weight:680!important;line-height:1.3!important}
html.start-page .settings-site-info small{font-size:11.5px!important;line-height:1.5!important}

/* 真正自定义下拉：原生 select 仅作为隐藏数据源，不再承担视觉/交互。 */
html.start-page select.setting-select.setting-select-native{
    position:absolute!important;
    width:1px!important;
    height:1px!important;
    min-width:0!important;
    padding:0!important;
    margin:0!important;
    opacity:0!important;
    pointer-events:none!important;
    clip:rect(0 0 0 0)!important;
    clip-path:inset(50%)!important;
    overflow:hidden!important;
    appearance:none!important;
    -webkit-appearance:none!important;
}
html.start-page .setting-select-trigger{
    flex:0 0 auto;
    min-width:104px;
    height:38px;
    padding:0 10px 0 13px;
    border:0;
    outline:0;
    border-radius:11px;
    background:rgba(20,20,20,.06);
    color:#2b2b2b;
    display:inline-flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    cursor:pointer;
    font:620 13px/1 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
    box-shadow:none;
    transition:background .18s ease,box-shadow .22s ease,transform .22s cubic-bezier(.16,1,.3,1),color .18s ease;
}
html.start-page .setting-select-trigger:hover{background:rgba(20,20,20,.095)}
html.start-page .setting-select-trigger:focus-visible,
html.start-page .setting-select-trigger.open{
    background:rgba(20,20,20,.075);
    box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 24%,transparent);
}
html.start-page .setting-select-trigger:active{transform:scale(.975)}
html.start-page .setting-select-value{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html.start-page .setting-select-arrow{flex:0 0 auto;font-size:17px;color:#8a8a8a;transition:transform .25s cubic-bezier(.16,1,.3,1),color .18s ease}
html.start-page .setting-select-trigger.open .setting-select-arrow{transform:rotate(180deg);color:var(--accent)}
html.start-page.dark .setting-select-trigger{background:rgba(255,255,255,.08);color:#eeeeee}
html.start-page.dark .setting-select-trigger:hover{background:rgba(255,255,255,.12)}
html.start-page.dark .setting-select-trigger:focus-visible,
html.start-page.dark .setting-select-trigger.open{background:rgba(255,255,255,.10);box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 32%,transparent)}
html.start-page.dark .setting-select-arrow{color:#a5a5a5}

html.start-page .setting-select-portal{
    position:fixed;
    z-index:520;
    min-width:138px;
    max-height:260px;
    padding:5px;
    border:0;
    border-radius:13px;
    overflow:auto;
    overscroll-behavior:contain;
    scrollbar-width:none;
    background:rgba(249,249,250,.97);
    color:#292929;
    box-shadow:0 18px 52px rgba(0,0,0,.20);
    backdrop-filter:blur(26px) saturate(145%);
    -webkit-backdrop-filter:blur(26px) saturate(145%);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transform:translateY(-5px) scale(.985);
    transform-origin:top right;
    transition:opacity .17s ease,transform .26s cubic-bezier(.16,1,.3,1),visibility .17s ease;
}
html.start-page .setting-select-portal::-webkit-scrollbar{display:none}
html.start-page .setting-select-portal.open-up{transform-origin:bottom right}
html.start-page .setting-select-portal.show{opacity:1;visibility:visible;pointer-events:auto;transform:none}
html.start-page.dark .setting-select-portal{background:rgba(30,31,35,.97);color:#f0f0f0;box-shadow:0 20px 58px rgba(0,0,0,.44)}
html.start-page .setting-select-option{
    width:100%;
    min-height:40px;
    padding:0 10px 0 11px;
    border:0;
    border-radius:9px;
    background:transparent;
    color:inherit;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    cursor:pointer;
    text-align:left;
    font:540 13px/1.25 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;
    transition:background .15s ease,color .15s ease,transform .18s ease;
}
html.start-page .setting-select-option:hover{background:rgba(20,20,20,.06)}
html.start-page.dark .setting-select-option:hover{background:rgba(255,255,255,.08)}
html.start-page .setting-select-option:active{transform:scale(.985)}
html.start-page .setting-select-option i{font-size:16px;color:var(--accent);opacity:0;transform:scale(.65);transition:opacity .16s ease,transform .22s cubic-bezier(.16,1,.3,1)}
html.start-page .setting-select-option.selected{font-weight:680;color:var(--accent)}
html.start-page .setting-select-option.selected i{opacity:1;transform:none}

/* 搜索历史：不再使用 10px 级文字。 */
html.start-page .search-history-head{height:32px!important;font-size:11.5px!important;font-weight:650!important}
html.start-page .search-history-head button{font-size:11.5px!important;font-weight:580!important}
html.start-page .search-history-use{height:38px!important;font-size:13px!important;font-weight:480!important}
html.start-page .search-history-use i{font-size:15px!important}
html.start-page .search-history-remove{width:32px!important;height:32px!important;flex-basis:32px!important;font-size:14px!important}

/* 壁纸偏好信息层级与字号。 */
html.start-page .wallpaper-preference-heading strong{font-size:21px!important;font-weight:790!important;line-height:1.25!important}
html.start-page .wallpaper-preference-heading small{font-size:12px!important;line-height:1.5!important}
html.start-page .wall-custom-copy>strong{font-size:14px!important;font-weight:720!important;line-height:1.45!important}
html.start-page .wall-custom-copy>small{font-size:12px!important;line-height:1.55!important}
html.start-page .wall-custom-actions .setting-btn{height:32px!important;padding:0 10px!important;font-size:12px!important}
html.start-page .system-wall-title{font-size:13px!important;font-weight:700!important;line-height:1.35!important}
html.start-page .system-wall-empty{font-size:12px!important;line-height:1.45!important}

/* 编辑弹窗 / 菜单 / Toast 同步提升字号。 */
html.start-page .modal h2{font-size:18px!important;font-weight:760!important;line-height:1.3!important}
html.start-page .modal p{font-size:12px!important;line-height:1.55!important}
html.start-page .field label{font-size:12px!important;font-weight:620!important;line-height:1.35!important}
html.start-page .field input{font-size:13px!important;font-weight:450!important}
html.start-page .modal-actions button{font-size:12.5px!important;font-weight:620!important}
html.start-page .context button{font-size:12.5px!important;font-weight:520!important}
html.start-page .toast{font-size:12.5px!important;font-weight:560!important;line-height:1.35!important}

@media(max-width:620px){
    html.start-page .date{font-size:12px!important}
    html.start-page .app-name{font-size:11.5px!important}
    html.start-page .panel-title{font-size:12.5px!important}
    html.start-page .panel-sub{font-size:11px!important}
    html.start-page .settings-head h2{font-size:18px!important}
    html.start-page .setting-title{font-size:12.5px!important}
    html.start-page .setting-label strong{font-size:13px!important}
    html.start-page .setting-label small{font-size:11.5px!important;line-height:1.5!important}
    html.start-page .setting-row{min-height:55px!important;padding:10px 1px!important}
    html.start-page .setting-btn{height:35px!important;font-size:12.5px!important}
    html.start-page .setting-input{height:41px!important;font-size:13px!important}
    html.start-page .setting-select-trigger{height:38px;min-width:102px;font-size:13px;padding-left:12px;padding-right:9px}
    html.start-page .setting-select-option{min-height:42px;font-size:13px}
    html.start-page .wallpaper-preference-heading strong{font-size:20px!important}
    html.start-page .wallpaper-preference-heading small{font-size:11.5px!important}
    html.start-page .wall-custom-copy>strong{font-size:13.5px!important}
    html.start-page .wall-custom-copy>small{font-size:11.5px!important}
    html.start-page .wall-custom-actions .setting-btn{height:33px!important;font-size:11.5px!important}
    html.start-page .system-wall-title{font-size:12.5px!important}
    html.start-page .search-history-use{font-size:12.5px!important;height:39px!important}
    html.start-page .search-history-head{font-size:11.5px!important}
    html.start-page .start-engine-url-readonly{font-size:11.5px!important}
}


/* CJSW_STARTPAGE_V5_0_SCROLLBAR_BUTTONS_20260830
   起始页卡片内滚动条仅保留轨道/滑块，隐藏 Chromium/WebKit 的上下箭头按钮。 */
html.start-page ::-webkit-scrollbar-button,
html.start-page ::-webkit-scrollbar-button:single-button,
html.start-page ::-webkit-scrollbar-button:vertical:decrement,
html.start-page ::-webkit-scrollbar-button:vertical:increment,
html.start-page ::-webkit-scrollbar-button:horizontal:decrement,
html.start-page ::-webkit-scrollbar-button:horizontal:increment{
    display:none!important;
    width:0!important;
    height:0!important;
    min-width:0!important;
    min-height:0!important;
    background:transparent!important;
}
html.start-page ::-webkit-scrollbar-corner{background:transparent!important}


/* CJSW_STARTPAGE_V5_1_CORNER_CLIP_AND_ENGINE_THEME_20260830 */
/* 书签玻璃卡片：真正裁掉圆角外的内部玻璃/背景合成像素，避免四角露出直角。 */
html.start-page .apps-panel{
    position:relative!important;
    overflow:hidden!important;
    isolation:isolate!important;
    background-clip:padding-box!important;
    contain:paint!important;
    border:0!important;
    border-radius:18px!important;
}
html.start-page .apps-panel::before,
html.start-page .apps-panel::after{
    border-radius:inherit!important;
    background-clip:padding-box!important;
}
html.start-page .secondary,
html.start-page body.secondary-open .secondary{
    border-radius:18px!important;
    background:transparent!important;
}
@media(max-width:620px){
    html.start-page .apps-panel,
    html.start-page .secondary,
    html.start-page body.secondary-open .secondary{
        border-radius:16px!important;
    }
}

/* 搜索引擎选择器：浅色/深色分别使用自己的玻璃、文字、悬浮和选中状态。 */
html.start-page{
    --v51-engine-bg:rgba(250,250,251,.94);
    --v51-engine-text:#26282c;
    --v51-engine-muted:rgba(38,40,44,.56);
    --v51-engine-hover:rgba(26,30,36,.065);
    --v51-engine-active:rgba(37,99,235,.115);
    --v51-engine-active-text:#1d4ed8;
    --v51-engine-close:rgba(38,40,44,.48);
    --v51-engine-close-hover:rgba(26,30,36,.075);
    --v51-engine-shadow:0 18px 48px rgba(0,0,0,.16);
}
html.start-page.dark{
    --v51-engine-bg:rgba(20,21,24,.94);
    --v51-engine-text:#f2f3f5;
    --v51-engine-muted:rgba(242,243,245,.58);
    --v51-engine-hover:rgba(255,255,255,.075);
    --v51-engine-active:rgba(67,132,237,.17);
    --v51-engine-active-text:#8ab7f5;
    --v51-engine-close:rgba(242,243,245,.48);
    --v51-engine-close-hover:rgba(255,255,255,.08);
    --v51-engine-shadow:0 20px 56px rgba(0,0,0,.38);
}
html.start-page .engine-pop,
html.start-page.dark .engine-pop{
    border:0!important;
    background:var(--v51-engine-bg)!important;
    color:var(--v51-engine-text)!important;
    box-shadow:var(--v51-engine-shadow)!important;
    backdrop-filter:blur(27px) saturate(138%)!important;
    -webkit-backdrop-filter:blur(27px) saturate(138%)!important;
    background-clip:padding-box!important;
    overflow:hidden!important;
    isolation:isolate!important;
}
html.start-page .engine-pop-body,
html.start-page.dark .engine-pop-body{
    color:var(--v51-engine-text)!important;
}
html.start-page .engine-option,
html.start-page.dark .engine-option{
    color:var(--v51-engine-text)!important;
    background:transparent!important;
}
html.start-page .engine-option:hover,
html.start-page.dark .engine-option:hover{
    background:var(--v51-engine-hover)!important;
}
html.start-page .engine-option.active,
html.start-page.dark .engine-option.active{
    background:var(--v51-engine-active)!important;
}
html.start-page .engine-option .engine-name,
html.start-page.dark .engine-option .engine-name{
    color:var(--v51-engine-text)!important;
}
html.start-page .engine-option.active .engine-name,
html.start-page.dark .engine-option.active .engine-name{
    color:var(--v51-engine-active-text)!important;
}
html.start-page .engine-kbd,
html.start-page.dark .engine-kbd{
    color:var(--v51-engine-muted)!important;
}
html.start-page .engine-option.active .engine-kbd,
html.start-page.dark .engine-option.active .engine-kbd{
    color:var(--v51-engine-active-text)!important;
    opacity:.82!important;
}
html.start-page .engine-pop-close-float,
html.start-page.dark .engine-pop-close-float{
    color:var(--v51-engine-close)!important;
    background:transparent!important;
}
html.start-page .engine-pop-close-float:hover,
html.start-page.dark .engine-pop-close-float:hover{
    color:var(--v51-engine-text)!important;
    background:var(--v51-engine-close-hover)!important;
}
html.start-page .engine-empty,
html.start-page.dark .engine-empty{
    color:var(--v51-engine-muted)!important;
}
/* 后台配置的彩色/透明 Logo 保持原图，只调整整体透明度，不再强制白色。 */
html.start-page .engine-option .mini img,
html.start-page.dark .engine-option .mini img{
    filter:none!important;
    opacity:.88!important;
}
html.start-page .engine-option:hover .mini img,
html.start-page .engine-option.active .mini img,
html.start-page.dark .engine-option:hover .mini img,
html.start-page.dark .engine-option.active .mini img{
    opacity:1!important;
}


/* CJSW_STARTPAGE_V5_2_LIGHT_ENGINE_HOVER_AND_DEFAULT_WALL_20260830 */
/* 浅色主题：悬浮搜索引擎时标题保持深色，避免旧的通用 hover 白字规则覆盖。 */
html.start-page:not(.dark) .engine-option:hover .engine-name,
html.start-page:not(.dark) .engine-option:focus-visible .engine-name{
    color:#1f2329!important;
}
html.start-page:not(.dark) .engine-option:hover .engine-kbd,
html.start-page:not(.dark) .engine-option:focus-visible .engine-kbd{
    color:rgba(31,35,41,.58)!important;
}
html.start-page:not(.dark) .engine-option.active:hover .engine-name,
html.start-page:not(.dark) .engine-option.active:focus-visible .engine-name{
    color:#1d4ed8!important;
}
/* 系统默认壁纸角标。 */
html.start-page .system-wall-item{position:relative}
html.start-page .system-wall-default-badge{
    position:absolute;left:7px;top:7px;z-index:2;
    padding:3px 7px;border-radius:999px;
    background:rgba(18,18,18,.62);color:#fff;
    font-size:10px;font-weight:650;line-height:1.2;
    backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
    pointer-events:none;
}
html.start-page.dark .system-wall-default-badge{background:rgba(255,255,255,.14);color:#f5f5f5}


/* CJSW_STARTPAGE_V5_3_BOOKMARK_ICON_STABILITY_20260830
   书签图标只做颜色/阴影反馈，不再改变几何位置，避免 hover/press/release 抖动。 */
html.start-page .app,
html.start-page .app:hover,
html.start-page .app:focus-visible,
html.start-page .app:active,
html.start-page .app.is-context,
html.start-page .app.is-dragging{
    transform:none!important;
}
html.start-page .app-icon,
html.start-page .app:hover .app-icon,
html.start-page .app:focus-visible .app-icon,
html.start-page .app:active .app-icon,
html.start-page .app.is-context .app-icon,
html.start-page .app.is-drop-target .app-icon,
html.start-page .app.is-dragging .app-icon{
    transform:none!important;
    translate:none!important;
    scale:1!important;
    transform-origin:center center!important;
}
html.start-page .app-icon{
    transition:background-color .18s ease,box-shadow .20s ease,filter .18s ease!important;
    will-change:auto!important;
}
html.start-page .app:hover .app-icon,
html.start-page .app:focus-visible .app-icon{
    background:var(--v42-app-tile-hover,var(--lime-app-tile-hover))!important;
    box-shadow:0 9px 22px rgba(0,0,0,.17)!important;
    filter:brightness(1.025)!important;
}
html.start-page .app:active .app-icon{
    box-shadow:0 4px 12px rgba(0,0,0,.13),inset 0 0 0 1px rgba(37,99,235,.16)!important;
    filter:brightness(.975)!important;
}
html.start-page .app-icon img,
html.start-page .app-emoji{
    transform:none!important;
    translate:none!important;
    scale:1!important;
    animation:none!important;
    transition:opacity .12s ease!important;
    will-change:auto!important;
}
html.start-page body.secondary-open .app{
    animation:none!important;
    opacity:1!important;
    transform:none!important;
}
html.start-page .app-emoji[hidden]{display:none!important}


/* CJSW_STARTPAGE_V5_4_BOOKMARK_FALLBACK_AND_GLASS_PREWARM_20260830 */
.local-bookmark-url-fallback{width:18px;height:18px;display:grid;place-items:center;color:var(--text-tertiary);font-size:15px;line-height:1}
.local-bookmark-url-fallback[hidden],.local-bookmark-favicon[hidden]{display:none!important}
.local-bookmark-logo.has-icon .local-bookmark-url-fallback{display:none!important}
html.start-page .app-url-fallback{width:100%;height:100%;display:grid;place-items:center;color:rgba(42,46,52,.62);font-size:22px;line-height:1;transform:none!important;animation:none!important;transition:none!important}
html.start-page.dark .app-url-fallback{color:rgba(242,244,247,.70)}
html.start-page .app-url-fallback[hidden],html.start-page .app-icon img[hidden]{display:none!important}
html.start-page .app-icon img,html.start-page .app-url-fallback{opacity:1!important;transition:none!important;will-change:auto!important}
html.start-page .app-emoji{display:none!important}
html.start-page .secondary,html.start-page body:not(.secondary-open) .secondary{visibility:visible!important;opacity:.001!important;pointer-events:none!important;transition:opacity .20s ease!important;will-change:opacity!important}
html.start-page body.secondary-open .secondary{visibility:visible!important;opacity:1!important;pointer-events:auto!important;transition:opacity .20s ease!important}
html.start-page .apps-panel,html.start-page body.secondary-open .apps-panel{backdrop-filter:blur(26px) saturate(128%)!important;-webkit-backdrop-filter:blur(26px) saturate(128%)!important;transition:background-color .18s ease,box-shadow .18s ease!important;will-change:auto!important}
@media(max-width:620px){html.start-page .apps-panel,html.start-page body.secondary-open .apps-panel{backdrop-filter:blur(24px) saturate(124%)!important;-webkit-backdrop-filter:blur(24px) saturate(124%)!important}html.start-page .app-url-fallback{font-size:20px}}


/* CJSW_STARTPAGE_V5_5_NO_API_NO_BLACKFLASH_STABLE_GLASS_20260830 */
/* 首屏永远可见：不再为了等待书签 Logo 解码而隐藏整个页面。 */
html.start-page body.start-page-body,
html.start-page body.start-page-body:not(.start-ready),
html.start-page body.start-page-body.start-ready{
    visibility:visible!important;
    opacity:1!important;
}

/* 正经“网址/链接”兜底图标；完全不使用 Emoji。 */
.local-bookmark-url-fallback,
html.start-page .app-url-fallback{
    font-family:"remixicon"!important;
    font-style:normal!important;
    font-weight:400!important;
    speak:never;
    text-rendering:auto;
    -webkit-font-smoothing:antialiased;
}
.local-bookmark-url-fallback{font-size:16px!important;color:var(--text-tertiary)!important}
html.start-page .app-url-fallback{font-size:21px!important;color:rgba(36,40,46,.68)!important}
html.start-page.dark .app-url-fallback{color:rgba(245,247,250,.76)!important}
html.start-page .app-emoji,.local-bookmark-emoji{display:none!important}

/* 书签玻璃拆成独立伪元素：blur 值从首帧开始固定，显示/隐藏只改变外层 opacity。 */
html.start-page .apps-panel,
html.start-page body.secondary-open .apps-panel{
    background:transparent!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
    position:relative!important;
    isolation:isolate!important;
    overflow:hidden!important;
}
html.start-page .apps-panel::before{
    content:""!important;
    position:absolute!important;
    inset:0!important;
    z-index:0!important;
    pointer-events:none!important;
    border-radius:inherit!important;
    background:var(--lime-panel)!important;
    backdrop-filter:blur(26px) saturate(128%)!important;
    -webkit-backdrop-filter:blur(26px) saturate(128%)!important;
    transform:translateZ(0)!important;
    backface-visibility:hidden!important;
    will-change:backdrop-filter!important;
    transition:background-color .20s ease!important;
}
html.start-page .apps-panel>.panel-head,
html.start-page .apps-panel>.apps,
html.start-page .apps-panel>.tip{
    position:relative!important;
    z-index:1!important;
}
html.start-page .secondary,
html.start-page body:not(.secondary-open) .secondary{
    opacity:0!important;
    visibility:visible!important;
    pointer-events:none!important;
    will-change:opacity!important;
    transition:opacity .20s ease!important;
}
html.start-page body.secondary-open .secondary{
    opacity:1!important;
    visibility:visible!important;
    pointer-events:auto!important;
    transition:opacity .20s ease!important;
}
/* 首屏仅用两个 RAF 预热玻璃合成层，肉眼不可见，不改变 blur 数值。 */
html.start-page.bookmark-glass-prewarm .secondary,
html.start-page.bookmark-glass-prewarm body:not(.secondary-open) .secondary{
    opacity:.008!important;
}
@media(max-width:620px){
    html.start-page .apps-panel::before{
        backdrop-filter:blur(24px) saturate(124%)!important;
        -webkit-backdrop-filter:blur(24px) saturate(124%)!important;
    }
    html.start-page .app-url-fallback{font-size:20px!important}
}

/* CJSW_STARTPAGE_V5_6_PERFORMANCE_20260830
   非首屏弹层在关闭状态跳过内部布局/绘制，打开时再恢复；不影响书签毛玻璃预热层。 */
html.start-page .settings-mask:not(.show) .settings,
html.start-page .engine-layer:not(.show) .engine-pop,
html.start-page .modal-mask:not(.show) .modal,
html.start-page .search-history-panel:not(.show){
    content-visibility:hidden;
    contain:layout style paint;
}
html.start-page .settings-mask.show .settings,
html.start-page .engine-layer.show .engine-pop,
html.start-page .modal-mask.show .modal,
html.start-page .search-history-panel.show{
    content-visibility:visible;
}
html.start-page .system-wall-grid img{
    content-visibility:auto;
    contain-intrinsic-size:120px 76px;
}


/* CJSW_HOMEPAGE_BOOKMARK_LOGO_STABILITY_V5_7_20260830 */
/* 首页书签：兜底图标首帧可见，真实 Logo 只用 opacity 切换，永远不产生空白占位。 */
html:not(.start-page) .local-bookmark-logo{
    isolation:isolate;
}
html:not(.start-page) .local-bookmark-favicon{
    display:block!important;
    opacity:0!important;
    transform:none!important;
    visibility:visible!important;
    transition:opacity .14s ease!important;
    will-change:auto!important;
    z-index:2;
}
html:not(.start-page) .local-bookmark-logo.has-icon .local-bookmark-favicon{
    opacity:1!important;
    transform:none!important;
}
html:not(.start-page) .local-bookmark-url-fallback{
    display:grid!important;
    opacity:1;
    transition:opacity .12s ease!important;
    z-index:1;
}
html:not(.start-page) .local-bookmark-logo.has-icon .local-bookmark-url-fallback{
    display:grid!important;
    opacity:0!important;
}
\n\n/* CJSW_BOOKMARK_CLEAR_V5_8 */\n.local-bookmark-action-btn.local-bookmark-clear-btn:hover,\n.local-bookmark-action-btn.local-bookmark-clear-btn:focus-visible {\n    color: #e5484d;\n    background: color-mix(in srgb, #e5484d 10%, transparent);\n}\nhtml.start-page .setting-btn.setting-btn-danger {\n    color: #d93d43;\n    border-color: color-mix(in srgb, #d93d43 26%, var(--setting-line));\n    background: color-mix(in srgb, #d93d43 6%, transparent);\n}\nhtml.start-page .setting-btn.setting-btn-danger:hover,\nhtml.start-page .setting-btn.setting-btn-danger:focus-visible {\n    color: #c83238;\n    border-color: color-mix(in srgb, #d93d43 42%, var(--setting-line));\n    background: color-mix(in srgb, #d93d43 11%, transparent);\n}\nhtml.dark.start-page .setting-btn.setting-btn-danger { color: #ff8589; }\nhtml.start-page .setting-btn.setting-btn-danger:disabled { opacity: .4; cursor: default; pointer-events: none; }\n

/* CJSW_STARTPAGE_V5_9_SETTINGS_SCROLLBAR_HIDDEN_20260830
   起始页设置面板：完全隐藏内部滚动条，但保留鼠标滚轮、触控板、触摸和键盘滚动。 */
html.start-page .settings-body{
    overflow-y:auto!important;
    overflow-x:hidden!important;
    -webkit-overflow-scrolling:touch!important;
    overscroll-behavior:contain!important;
    scrollbar-width:none!important;
    -ms-overflow-style:none!important;
}
html.start-page .settings-body::-webkit-scrollbar{
    display:none!important;
    width:0!important;
    height:0!important;
    background:transparent!important;
}
html.start-page .settings-body::-webkit-scrollbar-thumb,
html.start-page .settings-body::-webkit-scrollbar-track,
html.start-page .settings-body::-webkit-scrollbar-corner,
html.start-page .settings-body::-webkit-scrollbar-button{
    display:none!important;
    width:0!important;
    height:0!important;
    background:transparent!important;
}

/* CJSW_STARTPAGE_V5_10_SETTINGS_SCROLLBAR_HARD_HIDE_20260830
   设置弹层内所有滚动容器统一隐藏视觉滚动条；不关闭 overflow，不影响滚轮/触控板/触摸/键盘滚动。 */
html.start-page .settings-mask,
html.start-page .settings-mask .settings,
html.start-page .settings-mask .settings *,
html.start-page .setting-select-portal{
    scrollbar-width:none!important;
    scrollbar-color:transparent transparent!important;
    -ms-overflow-style:none!important;
}
html.start-page .settings-mask::-webkit-scrollbar,
html.start-page .settings-mask .settings::-webkit-scrollbar,
html.start-page .settings-mask .settings *::-webkit-scrollbar,
html.start-page .setting-select-portal::-webkit-scrollbar{
    display:none!important;
    width:0!important;
    min-width:0!important;
    height:0!important;
    min-height:0!important;
    background:transparent!important;
}
html.start-page .settings-mask::-webkit-scrollbar-track,
html.start-page .settings-mask::-webkit-scrollbar-thumb,
html.start-page .settings-mask::-webkit-scrollbar-corner,
html.start-page .settings-mask::-webkit-scrollbar-button,
html.start-page .settings-mask .settings::-webkit-scrollbar-track,
html.start-page .settings-mask .settings::-webkit-scrollbar-thumb,
html.start-page .settings-mask .settings::-webkit-scrollbar-corner,
html.start-page .settings-mask .settings::-webkit-scrollbar-button,
html.start-page .settings-mask .settings *::-webkit-scrollbar-track,
html.start-page .settings-mask .settings *::-webkit-scrollbar-thumb,
html.start-page .settings-mask .settings *::-webkit-scrollbar-corner,
html.start-page .settings-mask .settings *::-webkit-scrollbar-button,
html.start-page .setting-select-portal::-webkit-scrollbar-track,
html.start-page .setting-select-portal::-webkit-scrollbar-thumb,
html.start-page .setting-select-portal::-webkit-scrollbar-corner,
html.start-page .setting-select-portal::-webkit-scrollbar-button{
    display:none!important;
    width:0!important;
    height:0!important;
    border:0!important;
    background:transparent!important;
    box-shadow:none!important;
}
/* 真正负责纵向滚动的仍是 settings-body；只是视觉上没有滚动条。 */
html.start-page .settings-body{
    overflow-y:auto!important;
    overflow-x:hidden!important;
    -webkit-overflow-scrolling:touch!important;
    touch-action:pan-y!important;
    overscroll-behavior:contain!important;
}

/* CJSW_STARTPAGE_V5_11_PURE_NEUTRAL_DARK_THEME_20260830
   起始页深色模式统一为纯中性黑/灰；不使用蓝色或其他彩色 UI 强调色。
   壁纸、书签 Logo、后台配置的搜索引擎 Logo 属于用户内容，继续保留原图颜色。 */
html.start-page.dark{
    --accent:#d8d8d8!important;
    --bg:#111111!important;
    --text:#f2f2f2!important;
    --text-dark:#f2f2f2!important;
    --muted:rgba(242,242,242,.68)!important;
    --glass:rgba(22,22,22,.76)!important;
    --glass-strong:rgba(28,28,28,.88)!important;
    --line:rgba(255,255,255,.085)!important;
    --shadow:0 18px 58px rgba(0,0,0,.38)!important;

    --setting-bg:rgba(18,18,18,.97)!important;
    --setting-text:#eeeeee!important;
    --setting-muted:#999999!important;
    --setting-line:rgba(255,255,255,.075)!important;
    --setting-card:rgba(28,28,28,.96)!important;

    --start-search-bg:rgba(20,20,20,.88)!important;
    --start-search-bg-focus:rgba(25,25,25,.94)!important;
    --start-search-border:rgba(255,255,255,.085)!important;
    --start-search-text:#f1f1f1!important;
    --start-search-placeholder:rgba(241,241,241,.50)!important;
    --start-search-control:rgba(255,255,255,.055)!important;
    --start-search-control-hover:rgba(255,255,255,.095)!important;
    --start-apps-panel-bg:rgba(17,17,17,.80)!important;
    --start-apps-panel-border:rgba(255,255,255,.07)!important;

    --lime-accent:#d8d8d8!important;
    --lime-search-bg:rgba(20,20,20,.88)!important;
    --lime-search-bg-focus:rgba(25,25,25,.95)!important;
    --lime-search-text:#f2f2f2!important;
    --lime-search-muted:#999999!important;
    --lime-pop-bg:rgba(20,20,20,.97)!important;
    --lime-pop-text:#eeeeee!important;
    --lime-pop-muted:#969696!important;
    --lime-hover:rgba(255,255,255,.07)!important;
    --lime-active:rgba(255,255,255,.115)!important;
    --lime-panel:rgba(17,17,17,.82)!important;
    --lime-panel-strong:rgba(21,21,21,.90)!important;
    --lime-app-tile:rgba(24,24,24,.92)!important;
    --lime-app-tile-hover:rgba(31,31,31,.98)!important;
    --lime-settings-bg:rgba(18,18,18,.97)!important;
    --lime-settings-card:rgba(29,29,29,.92)!important;
    --lime-settings-hover:rgba(255,255,255,.065)!important;
    --lime-shadow:0 18px 58px rgba(0,0,0,.42)!important;
    --lime-shadow-soft:0 9px 34px rgba(0,0,0,.30)!important;

    --v42-search-bg:rgba(20,20,20,.88)!important;
    --v42-search-bg-focus:rgba(25,25,25,.95)!important;
    --v42-search-text:#f2f2f2!important;
    --v42-search-muted:rgba(242,242,242,.58)!important;
    --v42-search-shadow:0 11px 32px rgba(0,0,0,.32)!important;
    --v42-search-shadow-focus:0 14px 40px rgba(0,0,0,.42)!important;
    --v42-app-tile:rgba(24,24,24,.92)!important;
    --v42-app-tile-hover:rgba(32,32,32,.98)!important;

    --v51-engine-bg:rgba(19,19,19,.97)!important;
    --v51-engine-text:#eeeeee!important;
    --v51-engine-muted:rgba(238,238,238,.55)!important;
    --v51-engine-hover:rgba(255,255,255,.065)!important;
    --v51-engine-active:rgba(255,255,255,.11)!important;
    --v51-engine-active-text:#ffffff!important;
    --v51-engine-close:rgba(238,238,238,.48)!important;
    --v51-engine-close-hover:rgba(255,255,255,.075)!important;
    --v51-engine-shadow:0 20px 56px rgba(0,0,0,.46)!important;
}

/* 搜索框：纯黑灰玻璃，聚焦时只使用中性灰描边。 */
html.start-page.dark .search-box,
html.start-page.dark .search-box:focus,
html.start-page.dark .search-box:focus-within,
html.start-page.dark body.engine-picker-open .search-box{
    background:var(--v42-search-bg)!important;
    color:#f2f2f2!important;
    border-color:rgba(255,255,255,.08)!important;
    backdrop-filter:blur(22px) saturate(0%)!important;
    -webkit-backdrop-filter:blur(22px) saturate(0%)!important;
}
html.start-page.dark .search-wrap:focus-within .search-box,
html.start-page.dark .search-wrap.is-focused .search-box,
html.start-page.dark body.engine-picker-open .search-box{
    background:var(--v42-search-bg-focus)!important;
    box-shadow:0 19px 48px rgba(0,0,0,.42),0 0 0 2px rgba(255,255,255,.15)!important;
    filter:none!important;
}
html.start-page.dark .search-wrap:focus-within .engine-trigger,
html.start-page.dark body.engine-picker-open .engine-trigger,
html.start-page.dark .search-wrap.has-value .search-go{
    color:#f2f2f2!important;
}

/* 书签栏：中性深灰毛玻璃，不让彩色壁纸给玻璃染色。 */
html.start-page.dark .apps-panel::before{
    background:rgba(17,17,17,.82)!important;
    backdrop-filter:blur(26px) saturate(0%)!important;
    -webkit-backdrop-filter:blur(26px) saturate(0%)!important;
}
html.start-page.dark .apps-panel{
    box-shadow:0 20px 68px rgba(0,0,0,.36),inset 0 1px 0 rgba(255,255,255,.025)!important;
}
html.start-page.dark .app-icon{
    background:rgba(24,24,24,.94)!important;
}
html.start-page.dark .app:hover .app-icon,
html.start-page.dark .app:focus-visible .app-icon{
    background:rgba(32,32,32,.98)!important;
    box-shadow:0 9px 22px rgba(0,0,0,.28)!important;
}
html.start-page.dark .app:active .app-icon{
    background:rgba(28,28,28,.98)!important;
    box-shadow:0 4px 12px rgba(0,0,0,.28),inset 0 0 0 1px rgba(255,255,255,.11)!important;
}

/* 搜索引擎下拉：选中、悬浮、快捷键全部只用灰阶。 */
html.start-page.dark .engine-pop{
    background:rgba(19,19,19,.97)!important;
    color:#eeeeee!important;
    box-shadow:0 20px 56px rgba(0,0,0,.46)!important;
    backdrop-filter:blur(27px) saturate(0%)!important;
    -webkit-backdrop-filter:blur(27px) saturate(0%)!important;
}
html.start-page.dark .engine-option,
html.start-page.dark .engine-option .engine-name{color:#d8d8d8!important}
html.start-page.dark .engine-option:hover{background:rgba(255,255,255,.065)!important}
html.start-page.dark .engine-option.active{background:rgba(255,255,255,.11)!important}
html.start-page.dark .engine-option.active .engine-name,
html.start-page.dark .engine-option.active .engine-kbd{color:#ffffff!important}
html.start-page.dark .engine-kbd{color:#8f8f8f!important}
html.start-page.dark .engine-option.active::after{
    background:#d8d8d8!important;
    box-shadow:none!important;
}
html.start-page.dark .engine-pop-close-float:hover{
    background:rgba(255,255,255,.075)!important;
    color:#ffffff!important;
}

/* 设置面板、卡片、历史记录、自定义下拉全部改成等 RGB 的纯灰阶。 */
html.start-page.dark .settings{
    background:rgba(18,18,18,.97)!important;
    color:#eeeeee!important;
    border-color:rgba(255,255,255,.075)!important;
    box-shadow:0 28px 90px rgba(0,0,0,.48)!important;
    backdrop-filter:blur(26px) saturate(0%)!important;
    -webkit-backdrop-filter:blur(26px) saturate(0%)!important;
}
html.start-page.dark .setting-card{
    background:rgba(29,29,29,.92)!important;
}
html.start-page.dark .setting-row{
    border-bottom-color:rgba(255,255,255,.065)!important;
}
html.start-page.dark .setting-switch{
    background:rgba(255,255,255,.16)!important;
}
html.start-page.dark .setting-switch.on{
    background:#6f6f6f!important;
}
html.start-page.dark .setting-switch span{
    background:#f2f2f2!important;
    box-shadow:0 1px 4px rgba(0,0,0,.32)!important;
}
html.start-page.dark .setting-btn,
html.start-page.dark .setting-input{
    color:#e8e8e8!important;
    border-color:rgba(255,255,255,.08)!important;
}
html.start-page.dark .setting-btn:hover,
html.start-page.dark .setting-btn:focus-visible{
    background:rgba(255,255,255,.085)!important;
    border-color:rgba(255,255,255,.13)!important;
}
html.start-page.dark .setting-select-trigger{
    background:rgba(255,255,255,.07)!important;
    color:#eeeeee!important;
}
html.start-page.dark .setting-select-trigger:hover,
html.start-page.dark .setting-select-trigger.open,
html.start-page.dark .setting-select-trigger:focus-visible{
    background:rgba(255,255,255,.10)!important;
    box-shadow:0 0 0 2px rgba(255,255,255,.12)!important;
}
html.start-page.dark .setting-select-arrow,
html.start-page.dark .setting-select-trigger.open .setting-select-arrow{
    color:#b0b0b0!important;
}
html.start-page.dark .setting-select-portal{
    background:rgba(22,22,22,.985)!important;
    color:#eeeeee!important;
    box-shadow:0 20px 58px rgba(0,0,0,.48)!important;
    backdrop-filter:blur(26px) saturate(0%)!important;
    -webkit-backdrop-filter:blur(26px) saturate(0%)!important;
}
html.start-page.dark .setting-select-option:hover{
    background:rgba(255,255,255,.07)!important;
}
html.start-page.dark .setting-select-option.selected,
html.start-page.dark .setting-select-option.selected i{
    color:#ffffff!important;
}

html.start-page.dark .search-history-panel{
    background:rgba(20,20,20,.97)!important;
    color:#eeeeee!important;
    box-shadow:0 20px 52px rgba(0,0,0,.46)!important;
    backdrop-filter:blur(26px) saturate(0%)!important;
    -webkit-backdrop-filter:blur(26px) saturate(0%)!important;
}
html.start-page.dark .search-history-head button:hover,
html.start-page.dark .search-history-row:hover,
html.start-page.dark .search-history-remove:hover{
    background:rgba(255,255,255,.07)!important;
    color:#f2f2f2!important;
}

/* 壁纸选择器：选中态改成白/灰，不再有蓝色边框与蓝色勾。 */
html.start-page.dark .system-wall-item.active{
    box-shadow:0 0 0 2px rgba(242,242,242,.84),0 7px 18px rgba(0,0,0,.28)!important;
}
html.start-page.dark .system-wall-check{
    background:#eeeeee!important;
    color:#202020!important;
}
html.start-page.dark .system-wall-default-badge{
    background:rgba(24,24,24,.74)!important;
    color:#f0f0f0!important;
}

/* 弹窗 / 右键菜单也保持纯中性深灰。 */
html.start-page.dark .modal,
html.start-page.dark .context{
    background:rgba(20,20,20,.98)!important;
    color:#eeeeee!important;
    border-color:rgba(255,255,255,.075)!important;
    box-shadow:0 22px 64px rgba(0,0,0,.48)!important;
    backdrop-filter:blur(24px) saturate(0%)!important;
    -webkit-backdrop-filter:blur(24px) saturate(0%)!important;
}
html.start-page.dark .context button:hover,
html.start-page.dark .context button:focus-visible{
    background:rgba(255,255,255,.075)!important;
}

/* 深色主题下连危险操作也只用灰阶，保证整套 UI 没有彩色强调。 */
html.start-page.dark .setting-btn.setting-btn-danger{
    color:#d0d0d0!important;
    background:rgba(255,255,255,.045)!important;
    border-color:rgba(255,255,255,.09)!important;
}
html.start-page.dark .setting-btn.setting-btn-danger:hover,
html.start-page.dark .setting-btn.setting-btn-danger:focus-visible{
    color:#ffffff!important;
    background:rgba(255,255,255,.085)!important;
    border-color:rgba(255,255,255,.14)!important;
}

@media(max-width:620px){
    html.start-page.dark .apps-panel::before{
        backdrop-filter:blur(24px) saturate(0%)!important;
        -webkit-backdrop-filter:blur(24px) saturate(0%)!important;
    }
}


/* CJSW_STARTPAGE_V5_12_LOCAL_PREFERENCES_FIRST_PAINT_20260830
   时间字号/字重在 <head> 阶段从 localStorage 写入 html，
   外部 JS 尚未加载时也能以用户上次保存的值完成首次绘制。 */
html.start-page[data-time-weight="light"] .time{font-weight:300!important}
html.start-page[data-time-weight="medium"] .time{font-weight:520!important}
html.start-page[data-time-weight="bold"] .time{font-weight:720!important}
html.start-page[data-time-size="small"] .time{font-size:48px!important}
html.start-page[data-time-size="medium"] .time{font-size:58px!important}
html.start-page[data-time-size="large"] .time{font-size:72px!important}
@media(max-width:620px){
  html.start-page[data-time-size="small"] .time{font-size:43px!important}
  html.start-page[data-time-size="medium"] .time{font-size:50px!important}
  html.start-page[data-time-size="large"] .time{font-size:58px!important}
}
@media(max-width:360px){
  html.start-page[data-time-size="small"] .time{font-size:40px!important}
  html.start-page[data-time-size="medium"] .time{font-size:47px!important}
  html.start-page[data-time-size="large"] .time{font-size:54px!important}
}

/* CJSW_STARTPAGE_V5_15_DARK_BUTTON_CONTRAST_20260831
   深色模式按钮对比度修复：所有 UI 按钮使用中性灰阶，主按钮采用浅底深字，
   避免浅灰背景 + 白字、深灰背景 + 深字等低对比组合。 */
html.start-page.dark{
    --start-dark-btn-bg:#2b2b2b;
    --start-dark-btn-bg-hover:#383838;
    --start-dark-btn-bg-active:#242424;
    --start-dark-btn-text:#eeeeee;
    --start-dark-btn-muted:#a5a5a5;
    --start-dark-btn-border:rgba(255,255,255,.09);
    --start-dark-primary-bg:#e6e6e6;
    --start-dark-primary-bg-hover:#f4f4f4;
    --start-dark-primary-bg-active:#d2d2d2;
    --start-dark-primary-text:#171717;
}

/* 设置里的普通操作按钮。 */
html.start-page.dark .setting-btn{
    background:var(--start-dark-btn-bg)!important;
    color:var(--start-dark-btn-text)!important;
    border:1px solid var(--start-dark-btn-border)!important;
    box-shadow:none!important;
}
html.start-page.dark .setting-btn:hover,
html.start-page.dark .setting-btn:focus-visible{
    background:var(--start-dark-btn-bg-hover)!important;
    color:#ffffff!important;
    border-color:rgba(255,255,255,.15)!important;
}
html.start-page.dark .setting-btn:active{
    background:var(--start-dark-btn-bg-active)!important;
    color:#ffffff!important;
}
html.start-page.dark .setting-btn:disabled{
    background:#242424!important;
    color:#747474!important;
    border-color:rgba(255,255,255,.045)!important;
    opacity:1!important;
}

/* “应用”等主操作按钮：浅灰底必须配深色文字。 */
html.start-page.dark .setting-btn.primary,
html.start-page.dark .modal-actions .primary{
    background:var(--start-dark-primary-bg)!important;
    color:var(--start-dark-primary-text)!important;
    border-color:var(--start-dark-primary-bg)!important;
    text-shadow:none!important;
}
html.start-page.dark .setting-btn.primary:hover,
html.start-page.dark .setting-btn.primary:focus-visible,
html.start-page.dark .modal-actions .primary:hover,
html.start-page.dark .modal-actions .primary:focus-visible{
    background:var(--start-dark-primary-bg-hover)!important;
    color:#111111!important;
    border-color:var(--start-dark-primary-bg-hover)!important;
}
html.start-page.dark .setting-btn.primary:active,
html.start-page.dark .modal-actions .primary:active{
    background:var(--start-dark-primary-bg-active)!important;
    color:#111111!important;
}

/* 编辑书签弹窗里的取消 / 保存，避免继承旧版蓝色或低对比颜色。 */
html.start-page.dark .modal-actions button:not(.primary){
    background:var(--start-dark-btn-bg)!important;
    color:var(--start-dark-btn-text)!important;
    border:1px solid var(--start-dark-btn-border)!important;
}
html.start-page.dark .modal-actions button:not(.primary):hover,
html.start-page.dark .modal-actions button:not(.primary):focus-visible{
    background:var(--start-dark-btn-bg-hover)!important;
    color:#ffffff!important;
    border-color:rgba(255,255,255,.15)!important;
}

/* 设置关闭按钮 / 顶部按钮 / 书签添加按钮。 */
html.start-page.dark .settings-close{
    color:#bcbcbc!important;
    background:transparent!important;
}
html.start-page.dark .settings-close:hover,
html.start-page.dark .settings-close:focus-visible{
    color:#ffffff!important;
    background:#303030!important;
}
html.start-page.dark .top-btn{
    color:#eeeeee!important;
    background:rgba(24,24,24,.78)!important;
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.055)!important;
}
html.start-page.dark .top-btn:hover,
html.start-page.dark .top-btn:focus-visible{
    color:#ffffff!important;
    background:rgba(38,38,38,.94)!important;
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.09),0 8px 24px rgba(0,0,0,.25)!important;
}
html.start-page.dark .icon-btn{
    color:#eeeeee!important;
    background:rgba(255,255,255,.075)!important;
}
html.start-page.dark .icon-btn:hover,
html.start-page.dark .icon-btn:focus-visible{
    color:#ffffff!important;
    background:rgba(255,255,255,.13)!important;
}

/* 搜索历史操作按钮。 */
html.start-page.dark .search-history-head button,
html.start-page.dark .search-history-remove{
    color:#a8a8a8!important;
}
html.start-page.dark .search-history-head button:hover,
html.start-page.dark .search-history-head button:focus-visible,
html.start-page.dark .search-history-remove:hover,
html.start-page.dark .search-history-remove:focus-visible{
    color:#ffffff!important;
    background:#303030!important;
}

/* 自定义下拉：触发器和选中项保持清晰层级，选中不再只靠浅灰文字。 */
html.start-page.dark .setting-select-trigger{
    background:#2b2b2b!important;
    color:#eeeeee!important;
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.07)!important;
}
html.start-page.dark .setting-select-trigger:hover,
html.start-page.dark .setting-select-trigger.open,
html.start-page.dark .setting-select-trigger:focus-visible{
    background:#383838!important;
    color:#ffffff!important;
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.11),0 0 0 2px rgba(255,255,255,.09)!important;
}
html.start-page.dark .setting-select-option{
    color:#d7d7d7!important;
}
html.start-page.dark .setting-select-option:hover,
html.start-page.dark .setting-select-option:focus-visible{
    color:#ffffff!important;
    background:#313131!important;
}
html.start-page.dark .setting-select-option.selected{
    color:#ffffff!important;
    background:#3a3a3a!important;
}
html.start-page.dark .setting-select-option.selected i{
    color:#ffffff!important;
}

/* 开关：开启态轨道与白色滑块拉开明度，关闭态仍可辨认。 */
html.start-page.dark .setting-switch{
    background:#3a3a3a!important;
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.055)!important;
}
html.start-page.dark .setting-switch.on{
    background:#7a7a7a!important;
}
html.start-page.dark .setting-switch span{
    background:#f5f5f5!important;
    box-shadow:0 1px 5px rgba(0,0,0,.40)!important;
}
html.start-page.dark .setting-switch:focus-visible{
    outline:2px solid rgba(255,255,255,.28)!important;
    outline-offset:2px!important;
}

/* 搜索引擎关闭按钮 / 引擎按钮状态。 */
html.start-page.dark .engine-pop-close-float{
    color:#b7b7b7!important;
    background:#292929!important;
}
html.start-page.dark .engine-pop-close-float:hover,
html.start-page.dark .engine-pop-close-float:focus-visible{
    color:#ffffff!important;
    background:#3a3a3a!important;
}
html.start-page.dark .engine-option{
    color:#d8d8d8!important;
}
html.start-page.dark .engine-option:hover,
html.start-page.dark .engine-option:focus-visible{
    color:#ffffff!important;
    background:#303030!important;
}
html.start-page.dark .engine-option.active{
    color:#ffffff!important;
    background:#3b3b3b!important;
}

/* 右键菜单危险操作仍使用中性色，避免和纯深色主题冲突。 */
html.start-page.dark .context .danger{
    color:#cfcfcf!important;
}
html.start-page.dark .context .danger:hover,
html.start-page.dark .context .danger:focus-visible{
    color:#ffffff!important;
    background:#343434!important;
}

/* 输入框也保证文字和底色不互相吃掉。 */
html.start-page.dark .setting-input,
html.start-page.dark .field input{
    background:#272727!important;
    color:#eeeeee!important;
    caret-color:#ffffff!important;
    border-color:rgba(255,255,255,.075)!important;
}
html.start-page.dark .setting-input::placeholder,
html.start-page.dark .field input::placeholder{
    color:#777777!important;
    opacity:1!important;
}
html.start-page.dark .setting-input:focus,
html.start-page.dark .field input:focus{
    background:#2b2b2b!important;
    color:#ffffff!important;
    box-shadow:0 0 0 2px rgba(255,255,255,.11)!important;
}

/* CJSW_STARTPAGE_V5_17_BOOKMARK_GLASS_HOVER_FLICKER_FIX_20260901
   Chrome/Edge 在 backdrop-filter 伪元素边界附近遇到鼠标进入窗口、子元素 hover/filter/transform 时，
   可能重新栅格化顶部采样区，表现为书签卡片上沿一小块闪跳。
   处理方式：玻璃采样层向四周超采样、由父容器统一裁剪；取消 blur 层的 will-change/transition/transform 切换；
   书签卡片内部 hover 只改变颜色与阴影，不创建新的几何/滤镜合成层。 */
html.start-page .apps-panel,
html.start-page body.secondary-open .apps-panel{
    overflow:hidden!important;
    isolation:isolate!important;
    contain:none!important;
    transform:none!important;
    backface-visibility:visible!important;
}
html.start-page .apps-panel::before,
html.start-page body.secondary-open .apps-panel::before{
    /* blur 核心边界移到可见卡片之外，避免顶部 1~几 px 的采样缝在 hover 时重绘 */
    inset:-18px!important;
    border-radius:30px!important;
    background:var(--lime-panel)!important;
    backdrop-filter:blur(26px) saturate(128%)!important;
    -webkit-backdrop-filter:blur(26px) saturate(128%)!important;
    transform:none!important;
    translate:none!important;
    scale:1!important;
    backface-visibility:visible!important;
    will-change:auto!important;
    transition:none!important;
    contain:none!important;
}
/* 深色模式仍保持纯净中性灰，超采样层不改变现有主题。 */
html.start-page.dark .apps-panel::before,
html.start-page.dark body.secondary-open .apps-panel::before{
    background:rgba(17,17,17,.82)!important;
    backdrop-filter:blur(26px) saturate(0%)!important;
    -webkit-backdrop-filter:blur(26px) saturate(0%)!important;
}
/* 避免鼠标进入卡片后，子元素 filter/transform 触发祖先 backdrop-filter 重建。 */
html.start-page .apps-panel .app,
html.start-page .apps-panel .app:hover,
html.start-page .apps-panel .app:focus-visible,
html.start-page .apps-panel .app:active,
html.start-page .apps-panel .app-icon,
html.start-page .apps-panel .app:hover .app-icon,
html.start-page .apps-panel .app:focus-visible .app-icon,
html.start-page .apps-panel .app:active .app-icon,
html.start-page .apps-panel .icon-btn,
html.start-page .apps-panel .icon-btn:hover,
html.start-page .apps-panel .icon-btn:focus-visible,
html.start-page .apps-panel .icon-btn:active{
    transform:none!important;
    translate:none!important;
    scale:1!important;
    filter:none!important;
    backface-visibility:visible!important;
}
html.start-page .apps-panel .app-icon{
    transition:background-color .16s ease,box-shadow .18s ease!important;
}
html.start-page .apps-panel .icon-btn{
    transition:background-color .16s ease,color .16s ease,box-shadow .16s ease!important;
}
/* 背景玻璃永远保持同一 blur；显示/隐藏只由 secondary 的 opacity 完成。 */
html.start-page .secondary,
html.start-page body:not(.secondary-open) .secondary,
html.start-page body.secondary-open .secondary{
    transform:none!important;
    filter:none!important;
    will-change:opacity!important;
}
html.start-page.bookmark-glass-prewarm .apps-panel::before,
html.start-page.bookmark-glass-warmed .apps-panel::before{
    backdrop-filter:blur(26px) saturate(128%)!important;
    -webkit-backdrop-filter:blur(26px) saturate(128%)!important;
}
html.start-page.dark.bookmark-glass-prewarm .apps-panel::before,
html.start-page.dark.bookmark-glass-warmed .apps-panel::before{
    backdrop-filter:blur(26px) saturate(0%)!important;
    -webkit-backdrop-filter:blur(26px) saturate(0%)!important;
}
@media(max-width:620px){
    html.start-page .apps-panel::before,
    html.start-page body.secondary-open .apps-panel::before{
        inset:-16px!important;
        border-radius:27px!important;
        backdrop-filter:blur(24px) saturate(124%)!important;
        -webkit-backdrop-filter:blur(24px) saturate(124%)!important;
    }
    html.start-page.dark .apps-panel::before,
    html.start-page.dark body.secondary-open .apps-panel::before{
        backdrop-filter:blur(24px) saturate(0%)!important;
        -webkit-backdrop-filter:blur(24px) saturate(0%)!important;
    }
}


/* CJSW_STARTPAGE_V5_18_BOOKMARK_PANEL_CENTERING_FIX_20260901
   V5.17 为避免 backdrop-filter 在 hover 时重建合成层，把 secondary 的 transform 取消了，
   但旧定位仍保留 left:50%，导致整个书签面板从中线向右偏移。
   这里改成完全不依赖 transform 的固定居中：left/right 同时归零 + auto margin。
   这样既保持真正水平居中，也继续保留 V5.17 的无 transform 毛玻璃稳定方案。 */
html.start-page .secondary,
html.start-page body:not(.secondary-open) .secondary,
html.start-page body.secondary-open .secondary{
    left:0!important;
    right:0!important;
    margin-left:auto!important;
    margin-right:auto!important;
    transform:none!important;
}
@media(max-width:620px){
    html.start-page .secondary,
    html.start-page body:not(.secondary-open) .secondary,
    html.start-page body.secondary-open .secondary{
        left:0!important;
        right:0!important;
        margin-left:auto!important;
        margin-right:auto!important;
        transform:none!important;
    }
}


/* CJSW_STARTPAGE_V5_19_BOOKMARK_GLASS_STABLE_WALLPAPER_MIRROR_20260901
   V5.17 的负 inset backdrop-filter 超采样会在 Chromium 顶部裁剪区形成约 10~12px 的亮带。
   V5.19 不再让书签卡片依赖 backdrop-filter 采样：改为“当前壁纸镜像 + 自身 filter blur + 统一玻璃覆层”。
   这样保留真实背景模糊观感，同时彻底避开鼠标 Hover / 合成层重建造成的顶部闪跳与亮带。 */
html.start-page .apps-panel,
html.start-page body.secondary-open .apps-panel{
    position:relative!important;
    isolation:isolate!important;
    overflow:hidden!important;
    background:transparent!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
    border:0!important;
    box-shadow:0 14px 46px rgba(0,0,0,.10)!important;
    contain:none!important;
    transform:none!important;
}
/* 壁纸镜像模糊层：它模糊自己的背景，不再采样卡片背后的页面。 */
html.start-page .apps-panel::before,
html.start-page body.secondary-open .apps-panel::before{
    content:""!important;
    position:absolute!important;
    inset:-34px!important;
    z-index:0!important;
    pointer-events:none!important;
    border-radius:0!important;
    background-image:var(--start-bookmark-wallpaper,var(--boot-wall,linear-gradient(145deg,#7ea8d6 0%,#7993ad 36%,#937f7a 72%,#57687c 100%)))!important;
    background-position:center center!important;
    background-size:cover!important;
    background-repeat:no-repeat!important;
    background-attachment:fixed!important;
    background-color:transparent!important;
    filter:blur(calc(18px + var(--wall-blur,0px)))!important;
    opacity:1!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
    transform:none!important;
    translate:none!important;
    scale:1!important;
    transition:none!important;
    will-change:auto!important;
    backface-visibility:visible!important;
    contain:none!important;
}
/* 统一的玻璃染色层覆盖整张卡片，不存在顶部/主体两套采样颜色。 */
html.start-page .apps-panel::after,
html.start-page body.secondary-open .apps-panel::after{
    content:""!important;
    position:absolute!important;
    inset:0!important;
    z-index:1!important;
    pointer-events:none!important;
    border-radius:inherit!important;
    background:rgba(255,255,255,.155)!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.055)!important;
    opacity:1!important;
    filter:none!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
    transition:none!important;
}
html.start-page.dark .apps-panel,
html.start-page.dark body.secondary-open .apps-panel{
    box-shadow:0 20px 68px rgba(0,0,0,.36)!important;
}
html.start-page.dark .apps-panel::before,
html.start-page.dark body.secondary-open .apps-panel::before{
    filter:grayscale(1) blur(calc(18px + var(--wall-blur,0px)))!important;
}
html.start-page.dark .apps-panel::after,
html.start-page.dark body.secondary-open .apps-panel::after{
    background:rgba(17,17,17,.79)!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.025)!important;
}
html.start-page .apps-panel>.panel-head,
html.start-page .apps-panel>.apps,
html.start-page .apps-panel>.tip{
    position:relative!important;
    z-index:2!important;
}
/* 旧预热类不再改变玻璃层，也不再触发 backdrop-filter 重建。 */
html.start-page.bookmark-glass-prewarm .apps-panel::before,
html.start-page.bookmark-glass-warmed .apps-panel::before,
html.start-page.dark.bookmark-glass-prewarm .apps-panel::before,
html.start-page.dark.bookmark-glass-warmed .apps-panel::before{
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
}
@media(max-width:620px){
    html.start-page .apps-panel::before,
    html.start-page body.secondary-open .apps-panel::before{
        inset:-30px!important;
        filter:blur(calc(16px + var(--wall-blur,0px)))!important;
    }
    html.start-page.dark .apps-panel::before,
    html.start-page.dark body.secondary-open .apps-panel::before{
        filter:grayscale(1) blur(calc(16px + var(--wall-blur,0px)))!important;
    }
}

/* CJSW_STARTPAGE_V5_20_DARK_BOOKMARK_REAL_GLASS_20260901
   深色模式书签卡片也保持真正的玻璃感：仍使用 V5.19 的稳定壁纸镜像模糊，
   但降低纯黑染色遮盖，让模糊后的壁纸纹理可见；同时先灰度化，避免蓝/绿等色相污染深色 UI。 */
html.start-page.dark .apps-panel,
html.start-page.dark body.secondary-open .apps-panel{
    background:transparent!important;
    border:1px solid rgba(255,255,255,.075)!important;
    box-shadow:0 20px 68px rgba(0,0,0,.34),inset 0 1px 0 rgba(255,255,255,.035)!important;
}
html.start-page.dark .apps-panel::before,
html.start-page.dark body.secondary-open .apps-panel::before{
    opacity:.92!important;
    filter:grayscale(1) brightness(.62) contrast(1.04) blur(calc(18px + var(--wall-blur,0px)))!important;
}
html.start-page.dark .apps-panel::after,
html.start-page.dark body.secondary-open .apps-panel::after{
    background:linear-gradient(180deg,rgba(20,20,20,.48),rgba(14,14,14,.56))!important;
    box-shadow:inset 0 1px 0 rgba(255,255,255,.05),inset 0 0 0 1px rgba(255,255,255,.018)!important;
}
@media(max-width:620px){
    html.start-page.dark .apps-panel::before,
    html.start-page.dark body.secondary-open .apps-panel::before{
        opacity:.92!important;
        filter:grayscale(1) brightness(.60) contrast(1.04) blur(calc(16px + var(--wall-blur,0px)))!important;
    }
    html.start-page.dark .apps-panel::after,
    html.start-page.dark body.secondary-open .apps-panel::after{
        background:linear-gradient(180deg,rgba(20,20,20,.50),rgba(14,14,14,.58))!important;
    }
}

/* CJSW_STARTPAGE_V5_21_BOOKMARK_PANEL_NO_MAIN_CARD_20260901
   用户要求：起始页书签栏不再显示整块“主卡片”背景。
   仅保留书签标题、添加按钮、书签网格与单个图标自身视觉；主面板玻璃、边框、阴影全部移除。
   同时关闭 V5.19/V5.20 的壁纸镜像伪元素，避免无意义的 blur 合成与重绘。 */
html.start-page .apps-panel,
html.start-page body.secondary-open .apps-panel,
html.start-page.dark .apps-panel,
html.start-page.dark body.secondary-open .apps-panel{
    background:transparent!important;
    background-image:none!important;
    border:0!important;
    box-shadow:none!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
    overflow:visible!important;
    isolation:auto!important;
    contain:none!important;
}
html.start-page .apps-panel::before,
html.start-page .apps-panel::after,
html.start-page body.secondary-open .apps-panel::before,
html.start-page body.secondary-open .apps-panel::after,
html.start-page.dark .apps-panel::before,
html.start-page.dark .apps-panel::after,
html.start-page.dark body.secondary-open .apps-panel::before,
html.start-page.dark body.secondary-open .apps-panel::after{
    content:none!important;
    display:none!important;
    background:none!important;
    background-image:none!important;
    filter:none!important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
    box-shadow:none!important;
}
/* 没有主卡片后，标题直接浮在壁纸上；只加轻微文字阴影提升复杂壁纸上的可读性。 */
html.start-page .apps-panel>.panel-head,
html.start-page .apps-panel>.apps,
html.start-page .apps-panel>.tip{
    position:relative!important;
    z-index:1!important;
}
html.start-page .panel-title,
html.start-page .panel-sub,
html.start-page .tip{
    text-shadow:0 1px 4px rgba(0,0,0,.24)!important;
}
html.start-page.dark .panel-title,
html.start-page.dark .panel-sub,
html.start-page.dark .tip{
    text-shadow:0 1px 5px rgba(0,0,0,.48)!important;
}

/* CJSW_STARTPAGE_V5_22_DEFAULT_VIEW_20260901
   “默认显示内容”在首屏脚本完成前先应用，避免选择书签栏后刷新仍短暂闪出搜索框。
   正式状态仍由 body.secondary-open 接管，不改变现有点击时间/右键切换逻辑。 */
html.start-page.start-default-bookmarks .search-wrap{
    opacity:0!important;
    visibility:hidden!important;
    pointer-events:none!important;
}
