body,html {
    width: 100%;
    height: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0
}

.bg-wallpaper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    pointer-events: none
}

.bg-wallpaper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: auto
}

.global-mask {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0);
    z-index: -1;
    pointer-events: none;
    transition: background 0.24s ease
}

.main-screen {
    background-color: transparent !important
}

.tag-item,.add-tag {
    color: #fff !important;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8)
}

.tag-name,.text {
    color: #fff !important;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8)
}

.icon-box {
    background: rgba(255,255,255,0.2) !important;
    border: 2px dashed rgba(255,255,255,0.6) !important
}

.icon-box::before {
    color: #fff !important
}

.folder-icon {
    width: var(--global-icon-size);
    height: var(--global-icon-size);
    position: relative;
    border-radius: var(--global-icon-radius);
    overflow: hidden;
    background: rgba(0,0,0,0.15) !important;
}

body.wallpaper-off .main-screen {
    background-color: transparent !important
}

body.wallpaper-off .tag-item,body.wallpaper-off .add-tag,body.wallpaper-off .tag-name,body.wallpaper-off .text {
    color: #333 !important;
}

body.wallpaper-off .icon-box {
    background: #f0f2f5 !important;
    border: 2px dashed #ccc !important
}

body.wallpaper-off .icon-box::before {
    color: #888 !important
}

body.wallpaper-off .folder-icon {
    background: #f0f2f5 !important
}

:root {
    --dyn-bg-color: #e5e5ea;
    --dyn-blob-1: #ff2a5f;
    --dyn-blob-2: #007aff;
    --dyn-blob-3: #ff9500;
    --dyn-blob-opacity: 0.7
}[data-theme="dark"] {
    --dyn-bg-color: #000000;
    --dyn-blob-1: #bf5af2;
    --dyn-blob-2: #0a84ff;
    --dyn-blob-3: #ff375f;
    --dyn-blob-opacity: 0.5
}

.bg-mesh {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background: var(--dyn-bg-color);
    transition: background 0.8s ease;
    overflow: hidden;
    display: none
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: var(--dyn-blob-opacity);
    animation: float 20s infinite alternate cubic-bezier(0.45,0.05,0.55,0.95);
    will-change: transform;
    transition: background 0.8s ease,opacity 0.8s ease
}

.blob-1 {
    width: 50vw;
    height: 50vw;
    top: -10%;
    left: -10%;
    background: var(--dyn-blob-1);
    animation-delay: 0s
}

.blob-2 {
    width: 45vw;
    height: 45vw;
    bottom: -10%;
    right: -10%;
    background: var(--dyn-blob-2);
    animation-delay: -5s
}

.blob-3 {
    width: 35vw;
    height: 35vw;
    top: 30%;
    left: 40%;
    background: var(--dyn-blob-3);
    animation-delay: -10s
}

@keyframes float {
    0% {
        transform: translate(0,0) scale(1) rotate(0deg)
    }

    33% {
        transform: translate(5%,10%) scale(1.05) rotate(5deg)
    }

    66% {
        transform: translate(-5%,5%) scale(0.95) rotate(-5deg)
    }

    100% {
        transform: translate(0,-10%) scale(1.1) rotate(0deg)
    }
}

.wall-preview-wrapper {
    padding: 16px 0
}

.wallpaper-preview {
    width: 100%;
    height: 160px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    position: relative;
    cursor: pointer;
    border: 2px solid #f0f0f0;
    transition: border-color 0.2s
}

.wallpaper-preview:hover {
    border-color: #4285f4
}

.wallpaper-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s
}

.wallpaper-preview:hover img {
    transform: scale(1.05)
}

.wallpaper-preview .change-tip {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px
}

.wallpaper-preview:hover .change-tip {
    opacity: 1
}

.wall-slider-group {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 8px
}

.wall-slider-label {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: #333;
    margin-bottom: 8px
}

.wall-slider-label span:last-child {
    color: #4285f4;
    font-weight: 600
}

.wall-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e0e0e0;
    outline: none
}

.wall-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #4285f4;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1)
}

.wallpaper-toggle-btn {
    position: fixed;
    bottom: 0px;
    right: 80px;
    width: 49px;
    height: 89px;
    cursor: pointer;
    z-index: 50;
    display: none;
    --rotor: 46px;
    --pole-h: 39px;
    --hub: 11px
}

.wallpaper-toggle-btn.active {
    display: block
}

.wallpaper-toggle-btn .windmill {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    height: 100%
}

.wallpaper-toggle-btn .rotor {
    position: relative;
    width: var(--rotor);
    height: var(--rotor);
    animation: spinRotor 2.4s linear infinite;
    animation-play-state: paused
}

.wallpaper-toggle-btn .rotor.spinning {
    animation-play-state: running
}

@keyframes spinRotor {
    from {
        transform: rotate(0deg)
    }

    to {
        transform: rotate(360deg)
    }
}

.wallpaper-toggle-btn .blade {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 50%;
    transform-origin: 100% 100%;
    border-radius: 100% 0 0 0;
    box-shadow: inset 0 0 4px rgba(0,0,0,0.1)
}

.wallpaper-toggle-btn .blade::before {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    border-style: solid;
    border-width: 0 0 9px 9px;
    border-color: transparent transparent rgba(255,255,255,0.88) transparent
}

.wallpaper-toggle-btn .b1 {
    transform: rotate(0deg);
    background: linear-gradient(135deg,#ff6b6b,#e63946)
}

.wallpaper-toggle-btn .b2 {
    transform: rotate(90deg);
    background: linear-gradient(225deg,#ffd166,#f4a261)
}

.wallpaper-toggle-btn .b3 {
    transform: rotate(180deg);
    background: linear-gradient(315deg,#4dabf7,#3a86ff)
}

.wallpaper-toggle-btn .b4 {
    transform: rotate(270deg);
    background: linear-gradient(45deg,#7ac74f,#4c9f38)
}

.wallpaper-toggle-btn .hub {
    position: absolute;
    left: 50%;
    top: 50%;
    width: var(--hub);
    height: var(--hub);
    transform: translate(-50%,-50%);
    border-radius: 50%;
    background: radial-gradient(circle at 35% 32%,#ffe9a8,#ffb703 62%,#df8c00);
    box-shadow: 0 1px 2px rgba(0,0,0,0.28),inset 0 -1px 1px rgba(0,0,0,0.16);
    z-index: 3
}

.wallpaper-toggle-btn .hub .pin {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 5px;
    height: 5px;
    transform: translate(-50%,-50%);
    border-radius: 50%;
    background: radial-gradient(circle at 38% 35%,#fff,#b9a68a 70%);
    box-shadow: 0 1px 2px rgba(0,0,0,0.35)
}

.wallpaper-toggle-btn .pole {
    width: 4px;
    height: var(--pole-h);
    margin-top: -3px;
    border-radius: 2px;
    background: linear-gradient(90deg,#7a5036,#b08968 45%,#7a5036);
    box-shadow: 1px 1px 2px rgba(60,40,25,0.25)
}

.wallpaper-toggle-btn .base-shadow {
    width: 26px;
    height: 7px;
    border-radius: 50%;
    background: radial-gradient(ellipse at center,rgba(40,60,40,0.28),transparent 68%)
}

.wallpaper-toggle-btn .light-dot {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 8px 3px rgba(255,255,255,0.8);
    opacity: 0;
    pointer-events: none;
    z-index: 4;
    transform: translate(-50%,-50%)
}

.wallpaper-toggle-btn .light-dot.flash {
    animation: flashLight 0.7s ease-out forwards
}

@keyframes flashLight {
    0% {
        opacity: 0;
        transform: translate(-50%,-50%) scale(0.6)
    }

    40% {
        opacity: 1;
        transform: translate(-50%,-50%) scale(1.3);
        box-shadow: 0 0 16px 6px rgba(255,255,255,0.95)
    }

    100% {
        opacity: 0;
        transform: translate(-50%,-50%) scale(0.6);
        box-shadow: 0 0 0px 0px rgba(255,255,255,0)
    }
}

.wall-modal-outer {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0);
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease
}

.wall-modal-outer.show {
    opacity: 1;
    pointer-events: auto
}

.wall-modal-box {
    width: min(620px,92vw);
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    transform: translateY(-20px) scale(0.95);
    transition: transform 0.25s ease,opacity 0.25s ease;
    display: flex;
    flex-direction: column;
    height: 480px;
    max-height: 82vh;
    margin-top: 20px;
    margin-right: 20px;
    opacity: 0
}

.wall-modal-outer.show .wall-modal-box {
    transform: translateY(0) scale(1);
    opacity: 1
}

.wall-modal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0px 26px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0
}

.wall-modal-head h3 {
    font-size: 18px;
    font-weight: 600;
    color: #111
}

.wall-modal-close {
    border: none;
    background: #ff5f57;
    font-size: 14px;
    cursor: pointer;
    color: transparent;
    width: 18px;
    height: 18px;
    top: -5px;
    right: -10px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    position: relative;
    transition: all 0.2s ease;
    padding: 0
}

.wall-modal-close::after {
    content: '✕';
    font-size: 10px;
    color: #000000;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.2s;
    line-height: 1;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    animation: none
}

.wall-modal-close:hover {
    background: #e0443c;
    transform: rotate(180deg)
}

.wall-modal-close:hover::after {
    opacity: 1;
    animation: dots 1.5s linear infinite
}

.wall-tabs {
    display: flex;
    border-bottom: 1px solid #eee;
    flex-shrink: 0
}

.wall-tab-item {
    padding: 12px 20px;
    cursor: pointer;
    font-size: 15px;
    color: #555;
    position: relative;
    transition: 0.2s
}

.wall-tab-item.active {
    color: #667eea
}

.wall-tab-item.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 2px;
    background: #667eea
}

.wall-tab-containers {
    height: 360px;
    overflow-y: auto;
    overflow-x: hidden;
    flex-shrink: 0
}

.wall-tab-panel {
    padding: 16px 20px;
    display: none
}

.wall-tab-panel.active {
    display: block
}

.wall-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(110px,1fr));
    gap: 12px
}

.wall-gallery-item {
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    aspect-ratio: 16/9
}

.wall-gallery-item.selected {
    border-color: #667eea
}

.wall-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.2s
}

.wall-gallery-item:hover img {
    transform: scale(1.06)
}

.color-block {
    height: 44px;
    border-radius: 6px;
    cursor: pointer
}

.custom-wall-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 12px
}

.custom-wall-btn {
    padding: 9px 16px;
    background: #667eea;
    color: #fff;
    border: none;
    border-radius: 8px;
    cursor: pointer
}

.custom-preview-box {
    width: 100%;
    height: 160px;
    border-radius: 8px;
    background: #f2f2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-bottom: 12px
}

.custom-preview-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain
}

:root {
    --global-icon-size: 58px;
    --global-icon-radius: 12px;
    --global-icon-opacity: 1;
    --layout-cols: 10;
    --tag-name-font-size: 14px;
    --search-height: 40px;
    --search-radius: 30px;
    --search-opacity: 1;
    --thumb-inset: max(4px, calc(var(--global-icon-radius) * 0.25))
}

@keyframes dots {
    from {
        transform: translate(-50%,-50%) rotate(0deg)
    }

    to {
        transform: translate(-50%,-50%) rotate(360deg)
    }
}

.main-screen {
    background-color: #fff;
    width: 100%;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center
}

::-webkit-scrollbar {
    width: 10px
}

::-webkit-scrollbar-track {
    background: #f1f5f9
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 12px
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8
}

.add-tag {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    user-select: none;
    transition: opacity 0.3s,transform 0.2s;
    width: 72px;
    flex-shrink: 0
}

.add-tag:hover {
    opacity: 0.8;
    transform: translateY(-3px)
}

.icon-box {
    width: var(--global-icon-size);
    height: var(--global-icon-size);
    background-color: #f0f2f5;
    border: 2px dashed #ccc;
    border-radius: var(--global-icon-radius);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px
}

.icon-box::before {
    content: '+';
    color: #888;
    font-size: 28px;
    font-weight: 300;
    line-height: 1;
    margin-top: -2px
}

.text {
    color: #555;
    font-size: var(--tag-name-font-size,12px);
    letter-spacing: 1px;
    text-align: center
}

.tag-list {
    display: grid;
    grid-template-columns: repeat(var(--layout-cols,10),auto);
    gap: calc(var(--global-icon-size,58px) * 0.35);
    justify-content: center;
    align-content: flex-start;
    width: 100%;
    padding: 20px;
    position: relative;
    min-width: calc(var(--layout-cols) * 72px + (var(--layout-cols) - 1) * 38px + 40px)
}

.tag-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    width: 72px;
    cursor: pointer;
    user-select: none;
    position: relative
}
.tag-item:hover .tag-icon,.tag-item:hover .folder-icon,.tag-item:hover .text-icon:not(.folder-thumb) {
    transform: translateY(-3px)
}

.tag-icon,.folder-icon,.text-icon {
    transition: transform 0.2s
}

.tag-icon {
    width: var(--global-icon-size);
    height: var(--global-icon-size);
    border-radius: var(--global-icon-radius);
    opacity: var(--global-icon-opacity);
    object-fit: scale-down;
    padding: 0px
}

.tag-name {
    font-size: var(--tag-name-font-size,14px);
    margin-top: 8px;
    text-align: center;
    word-break: break-all;
    line-height: 1.3;
    max-width: 92px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #333
}

.folder-item .folder-icon {
    width: var(--global-icon-size);
    height: var(--global-icon-size);
    position: relative;
    border-radius: var(--global-icon-radius);
    overflow: hidden;
    background: #f0f2f5
}

.folder-thumb {
    position: absolute;
    width: 32% !important;
    height: 32% !important;
    border-radius: calc(var(--global-icon-radius) * 0.32);
    object-fit: contain;
    background: #fff;
    padding: 2px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15)
}

/* 四角位置改用变量 */
.f-thumb-1 { top: var(--thumb-inset); left: var(--thumb-inset); z-index: 1 }
.f-thumb-2 { top: var(--thumb-inset); right: var(--thumb-inset); z-index: 2 }
.f-thumb-3 { bottom: var(--thumb-inset); left: var(--thumb-inset); z-index: 3 }
.f-thumb-4 { bottom: var(--thumb-inset); right: var(--thumb-inset); z-index: 4 }

@keyframes tagFadeIn {
    from {
        opacity: 0;
        transform: scale(0.86)
    }

    to {
        opacity: 1;
        transform: scale(1)
    }
}

.tag-item,.add-tag {
    animation: tagFadeIn 0.4s ease-out backwards
}

.dragging-source {
    opacity: 0.3;
    filter: grayscale(0.4)
}

.dragging-source::after {
    content: '';
    position: absolute;
    inset: -3px;
    pointer-events: none
}

.tag-list.dragging-lock .tag-item,.tag-list.dragging-lock .add-tag,.folder-grid.dragging-lock .tag-item,.folder-grid.dragging-lock .add-tag {
    animation: none !important;
    transition: transform 0.25s cubic-bezier(0.2,0,0.3,1) !important
}

.tag-item.sorting {
    transition: transform 0.25s cubic-bezier(0.2,0,0.3,1)
}

.drag-clone {
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    opacity: 0.95;
    transform: scale(1.1)
}

.merge-drop-target {
    animation: mergePulse 0.4s ease-in-out infinite;
    border-radius: 12px;
    background: rgba(66,133,244,0.15);
    box-shadow: 0 0 0 2px rgba(66,133,244,0.9),0 0 20px 10px rgba(66,133,244,0.4);
    transform: scale(1.15)
}

@keyframes mergePulse {
    0%,100% {
        box-shadow: 0 0 0 4px rgba(66,133,244,0.9),0 0 20px 10px rgba(66,133,244,0.4)
    }

    50% {
        box-shadow: 0 0 0 8px rgba(66,133,244,0.5),0 0 30px 15px rgba(66,133,244,0.2)
    }
}

.context-menu {
    position: fixed;
    display: none;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.18);
    padding: 6px 8px;
    min-width: 160px;
    z-index: 9999;
    font-size: 14px;
    border: 1px solid rgba(0,0,0,0.06)
}

.context-menu.show {
    display: block
}

.context-menu-item {
    padding: 8px 14px;
    margin: 2px 0;
    cursor: pointer;
    color: #333;
    transition: background 0.15s,color 0.15s;
    border-radius: 6px
}

.context-menu-item:hover {
    background: #e8f0fe
}

.context-menu-item.danger:hover {
    background: #fef0f0;
    color: #e74c3c
}

.folder-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.05);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(6px);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 5000
}

.folder-overlay.show {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center
}

.folder-popup {
    background: rgba(255,255,255,0.35);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-radius: 16px;
    padding: 30px;
    min-width: 580px;
    min-height: 320px;
    max-width: 90%;
    max-height: 75vh;
    overflow-y: auto;
    box-shadow: 0 15px 45px rgba(0,0,0,0.2);
    position: relative;
    margin-top: 15px
}

.folder-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(0,0,0,0.25);
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
    transition: background 0.2s
}

.folder-close:hover {
    background: rgba(0,0,0,0.45)
}

.folder-title {
    font-size: 18px;
    font-weight: 700;
    text-align: center;
    color: #333;
    outline: none;
    cursor: text;
    background: rgba(255,255,255,0.35);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 8px 24px;
    border-radius: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    width: max-content;
    max-width: 80%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    position: relative;
    z-index: 10
}

.folder-title:hover {
    background: rgba(255,255,255,0.75)
}

.folder-title:focus {
    background: rgba(255,255,255,0.75);
    box-shadow: 0 0 0 3px rgba(66,133,244,0.3)
}

.folder-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
    justify-content: flex-start;
    max-width: 580px
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5001;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.35s ease,visibility 0.35s ease
}

.modal-overlay.show {
    visibility: visible;
    opacity: 1
}

.modal-content {
    background-color: #fff;
    width: 800px;
    max-width: 90%;
    border-radius: 16px;
    padding: 50px 20px 20px 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.85);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.18,0.89,0.32,1.28),opacity 0.35s ease
}

.modal-overlay.show .modal-content {
    transform: scale(1);
    opacity: 1
}

.window-controls {
    position: absolute;
    top: 12px;
    left: 20px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10
}

.modal-title {
    font-size: 16px;
    font-weight: 600;
    color: #333
}

.dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    cursor: pointer;
    background: #ff5f57;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border: none;
    padding: 0
}

.dot::after {
    content: '✕';
    font-size: 10px;
    color: #000000;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.2s;
    line-height: 1;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    animation: none
}

.dot:hover::after {
    opacity: 1;
    animation: dots 1.5s linear infinite
}

.dot:hover {
    background: #e0443c
}

.close-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-size: 16px;
    line-height: 1;
    font-weight: bold;
    transition: transform 0.3s ease;
    top: 5px;
    right: 5px;
    position: absolute
}

.modal-content {
    height: 490px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important
}

.modal-tabs {
    display: flex;
    gap: 4px;
    flex: 1;
    align-items: center;
    border-bottom: none;
    padding: 0;
    margin: 0
}

.modal-tab {
    padding: 6px 16px;
    border: none;
    background: #f0f0f0;
    border-radius: 16px;
    font-size: 13px;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    border-bottom: none;
    font-weight: 500
}

.modal-tab:hover {
    background: #f0f0f0;
    color: #333;
    border-radius: 16px
}

.modal-tab.active {
    background: #4285f4;
    color: #fff;
    border-bottom-color: transparent;
    border-radius: 16px
}

.modal-tab-panel {
    display: none;
    padding: 0 4px;
    overflow: hidden;
    width: 100%;
    box-sizing: border-box;
    margin-top: 20px
}

.modal-tab-panel.active {
    display: block
}

.modal-tabs-wrapper {
    background: #f0f2f5;
    border-radius: 24px;
    padding: 4px;
    display: inline-flex
}

.modal-tabs {
    display: flex;
    gap: 2px;
    align-items: center;
    border-bottom: none;
    padding: 0;
    margin: 0
}

.modal-tab {
    padding: 6px 20px;
    border: none;
    background: transparent;
    border-radius: 20px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    transition: all .25s ease;
    font-weight: 500
}

.modal-tab:hover {
    color: #333
}

.modal-tab.active {
    background: #fff;
    color: #4285f4;
    box-shadow: 0 2px 8px rgba(0,0,0,.08)
}

.online-cat-scroll {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 16px;
    padding: 4px 0
}

.online-categories {
    display: flex;
    flex-wrap: nowrap;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    flex: 1;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 2px 0
}

.online-categories::-webkit-scrollbar {
    display: none
}

.online-category {
    flex-shrink: 0;
    padding: 4px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 14px;
    font-size: 13px;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
    background: #f8f8f8;
    user-select: none
}

.online-category:hover {
    border-color: #4285f4;
    color: #4285f4
}

.online-category.active {
    background: #4285f4;
    color: #fff;
    border-color: #4285f4
}

.cat-scroll-btn {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.08);
    color: #666;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    padding: 0;
    line-height: 1
}

.cat-scroll-btn:hover {
    background: rgba(0,0,0,0.15);
    color: #333
}

.cat-scroll-btn.hidden {
    display: none
}

.cat-scroll-prev {
    margin-right: 6px
}

.cat-scroll-next {
    margin-left: 6px
}

.online-site-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(120px,1fr));
    gap: 8px;
    max-height: 410px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 4px 2px;
    width: 100%;
    box-sizing: border-box
}

.online-site-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 4px 10px 4px;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    transition: all 0.2s;
    background: #fafafa;
    text-align: center;
    min-height: 100px;
    gap: 4px
}

.online-site-item:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
    border-color: #4285f4;
    background: #ffffff
}

.online-site-item .site-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    background: #e8e8e8;
    color: #555
}

.online-site-item .site-icon img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    object-fit: cover
}

.online-site-item .site-info {
    width: 100%;
    min-width: 0
}

.online-site-item .site-name {
    font-size: 14px;
    font-weight: 500;
    color: #222;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.online-site-item .site-desc {
    font-size: 10px;
    color: #999;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top: 0px
}

.online-site-item .site-add-btn {
    padding: 3px 14px;
    border: none;
    border-radius: 14px;
    background: #4285f4;
    color: #fff;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
    margin-top: 2px
}

.online-site-item .site-add-btn:hover {
    background: #3367d6
}

.online-site-item .site-add-btn.added {
    background: #34a853;
    color: #fff;
    cursor: default
}

.online-loading {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px 0;
    color: #999;
    font-size: 14px
}

.online-loading .spin {
    display: inline-block;
    width: 28px;
    height: 28px;
    border: 3px solid #e8e8e8;
    border-top-color: #4285f4;
    border-radius: 50%;
    animation: spinOnline 0.8s linear infinite;
    margin-bottom: 12px
}

.online-empty {
    text-align: center;
    padding: 40px 0;
    color: #bbb;
    font-size: 14px
}

@keyframes spinOnline {
    to {
        transform: rotate(360deg)
    }
}

.online-site-grid::-webkit-scrollbar {
    width: 4px
}

.online-site-grid::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 4px
}

.online-site-grid::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px
}

.online-site-grid::-webkit-scrollbar-thumb:hover {
    background: #ccc
}

@media (max-width:768px) {
    .online-site-grid {
        grid-template-columns: repeat(3,1fr);
        gap: 8px;
        max-height: 260px
    }

    .online-site-item {
        min-height: 100px;
        padding: 12px 6px 10px 6px
    }

    .online-site-item .site-icon {
        width: 40px;
        height: 40px;
        font-size: 16px
    }
}

@media(max-width:480px) {
    .online-site-grid {
        grid-template-columns: repeat(2,1fr);
        gap: 6px;
        max-height: 220px
    }

    .online-site-item {
        min-height: 90px;
        padding: 10px 4px 8px
    }

    .online-site-item .site-icon {
        width: 36px;
        height: 36px;
        font-size: 14px
    }

    .online-site-item .site-name {
        font-size: 12px
    }

    .online-site-item .site-add-btn {
        font-size: 11px;
        padding: 3px 14px
    }
}

.form-row {
    display: flex;
    align-items: center;
    margin-bottom: 20px
}

.form-label {
    width: 80px;
    font-size: 14px;
    color: #333;
    flex-shrink: 0
}

.form-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    position: relative
}

.form-input {
    width: 100%;
    padding: 10px 70px 10px 10px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    outline: none;
    color: #333
}

.bg-gray {
    background-color: #ebedf0
}

.char-count {
    position: absolute;
    right: 10px;
    color: #999;
    font-size: 13px;
    pointer-events: none
}

.btn-mini {
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    margin-left: 10px;
    flex-shrink: 0
}

.btn-blue {
    background-color: #409eff;
    color: #fff
}

.btn-orange {
    background-color: #f56c6c;
    color: #fff
}

.icon-radio-group {
    display: flex;
    gap: 15px;
    flex-wrap: wrap
}

.icon-radio {
    position: relative;
    cursor: pointer
}

.icon-radio input {
    position: absolute;
    opacity: 0;
    cursor: pointer
}

.selected-icon {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    border: 2px solid transparent;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transition: all 0.2s;
    background-color: transparent;
    position: relative
}

.selected-icon img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: contain;
    mix-blend-mode: normal
}

.icon-radio input:checked + .selected-icon {
    border-color: #fff;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.12)
}

.icon-radio input:checked + .selected-icon::after {
    content: '';
    position: absolute;
    bottom: -6px;
    right: -6px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    z-index: 2
}

.icon-radio input:checked + .selected-icon::before {
    content: '';
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #727374;
    z-index: 3
}

.color-swatches {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap
}

.color-radio {
    position: relative;
    cursor: pointer
}

.color-radio input {
    position: absolute;
    opacity: 0;
    cursor: pointer
}

.color-swatch {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid #ccc;
    transition: all 0.2s;
    display: block;
    position: relative;
    box-sizing: border-box
}

.color-radio input:checked + .color-swatch {
    border-color: #ccc;
    box-shadow: none;
    transform: none
}

.color-radio input:checked + .color-swatch::after {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #727374
}

.custom-color-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-image: conic-gradient(from 0deg,#ff0000,#ff8000,#ffff00,#80ff00,#00ff00,#00ff80,#00ffff,#0080ff,#0000ff,#8000ff,#ff00ff,#ff0080,#ff0000  );
    border: 2px solid #ccc;
    cursor: pointer;
    position: relative;
    box-sizing: border-box
}

.custom-color-btn.custom-selected {
    background: var(--custom-bg,conic-gradient(from 0deg,#ff0000,#ff8000,#ffff00,#80ff00,#00ff00,#00ff80,#00ffff,#0080ff,#0000ff,#8000ff,#ff00ff,#ff0080,#ff0000));
    border: 2px solid #ccc;
    box-shadow: none;
    transform: none
}

.custom-color-btn.custom-selected::after {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #727374
}

.custom-color-btn input[type="color"] {
    position: absolute;
    top: -10px;
    left: -10px;
    width: 44px;
    height: 44px;
    opacity: 0;
    cursor: pointer
}

.footer-row {
    display: flex;
    gap: 15px;
    margin-top: 20px
}

.btn-save {
    flex: 1;
    background-color: #4285f4;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer
}

.btn-save-next {
    background-color: #e8f1fe;
    color: #4285f4;
    border: none;
    padding: 0 20px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer
}

body.hide-names .tag-name {
    display: none
}

.icon-text-color-row {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
    border-radius: 8px
}

.icon-text-color-row:last-child {
    border-bottom: none
}

.icon-text-color-dots {
    display: flex;
    gap: 10px;
    align-items: center
}

.text-color-dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #ccc;
    transition: all 0.2s ease;
    position: relative;
    flex-shrink: 0;
    box-sizing: border-box
}

.text-color-dot.active {
    border-color: #ccc;
    box-shadow: none
}

.text-color-dot.active::after {
    content: '';
    position: absolute;
    inset: 0;
    margin: auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #727374
}

.text-color-custom {
    background-image: conic-gradient(from 0deg,#ff0000,#ff8000,#ffff00,#80ff00,#00ff00,#00ff80,#00ffff,#0080ff,#0000ff,#8000ff,#ff00ff,#ff0080,#ff0000  )
}

.text-color-custom.active {
    background: var(--custom-bg,conic-gradient(from 0deg,#ff0000,#ff8000,#ffff00,#80ff00,#00ff00,#00ff80,#00ffff,#0080ff,#0000ff,#8000ff,#ff00ff,#ff0080,#ff0000))
}

.text-color-custom input[type="color"] {
    position: absolute;
    top: -6px;
    left: -6px;
    width: 32px;
    height: 32px;
    opacity: 0;
    cursor: pointer;
    padding: 0;
    border: none
}

body.tag-name-custom .tag-name,body.tag-name-custom .text {
    color: var(--tag-name-color) !important
}

.text-icon {
    width: var(--global-icon-size);
    height: var(--global-icon-size);
    border-radius: var(--global-icon-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: bold;
    font-size: 26px;
    user-select: none;
    line-height: 1;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8);
    box-shadow: 0 10px 15px -5px rgba(0, 0, 0, 0.6),
                inset 0 2px 4px rgba(255, 255, 255, 0.08),
                inset 0 -2px 4px rgba(0, 0, 0, 0.5);
}

.folder-thumb.text-icon {
    width: 38% !important;
    height: 38% !important;
    border-radius: calc(var(--global-icon-radius) * 0.38);
    font-size: 16px !important;
    padding: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

button {
    border: 0;
    cursor: pointer
}

svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round
}

.topbar {
    position: fixed;
    top: 18px;
    right: 24px;
    display: flex;
    gap: 24px;
    z-index: 8;
    transition: right .22s ease
}

.round-btn {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    color: #fff;
    background: rgba(0,0,0,.18);
    border-radius: 50%;
    backdrop-filter: blur(10px)
}

.round-btn:hover {
    background: rgba(0,0,0,.34)
}

.settings-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.4s ease,visibility 0.4s ease
}

.settings-overlay.show {
    visibility: visible;
    opacity: 1
}

.settings-panel {
    width: 480px;
    max-width: 92vw;
    height: 680px;
    max-height: 85vh;
    background: #fff;
    border-radius: 16px;
    margin: 20px;
    display: flex;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    transform: translate(100px,-100px) scale(0.6);
    transform-origin: top right;
    transition: transform 0.6s cubic-bezier(0.16,1,0.3,1)
}

.settings-overlay.show .settings-panel {
    transform: translate(0,0) scale(1)
}

.settings-nav {
    width: 100px;
    background: #f5f6f8;
    padding: 20px 0;
    flex-shrink: 0;
    display: flex;
    flex-direction: column
}

.settings-user {
    display: flex;
    align-items: center;
    padding: 0 20px 18px;
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 8px
}

.settings-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg,#4285f4,#34a853);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    margin-right: 10px
}

.settings-user-name {
    font-size: 14px;
    color: #333
}

.settings-nav-item {
    padding: 12px 20px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s,color 0.2s;
    border-left: 3px solid transparent
}

.settings-nav-item:hover {
    background: rgba(0,0,0,0.04)
}

.settings-nav-item.active {
    background: #fff;
    color: #4285f4;
    border-left-color: #4285f4;
    font-weight: 500
}

.settings-content {
    flex: 1;
    padding: 18px 32px;
    overflow-y: auto
}

.settings-page {
    display: none
}

.settings-page.active {
    display: block
}

.settings-page-title {
    font-size: 18px;
    font-weight: 600;
    color: #222;
    margin-bottom: 20px
}

.settings-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0
}

.settings-item:last-child {
    border-bottom: none
}

.settings-item-label {
    font-size: 14px;
    color: #333
}

.settings-item-desc {
    font-size: 12px;
    color: #999;
    margin-top: 2px
}

.settings-switch {
    position: relative;
    width: 44px;
    height: 24px;
    flex-shrink: 0
}

.settings-switch input {
    opacity: 0;
    width: 0;
    height: 0
}

.settings-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 24px
}

.settings-switch .slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%
}

.settings-switch input:checked + .slider {
    background-color: #4285f4
}

.settings-switch input:checked + .slider:before {
    transform: translateX(20px)
}

.settings-row-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0
}

.settings-row-layout:last-child {
    border-bottom: none
}

.settings-row-left {
    font-size: 14px;
    color: #333
}

.settings-row-small {
    font-size: 12px;
    color: #999;
    margin-top: 2px
}

.settings-slider-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0
}

.settings-slider-label {
    font-size: 14px;
    color: #333;
    min-width: 85px;
    flex-shrink: 0
}

.settings-slider-value {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    width: 60px;
    text-align: right;
    flex-shrink: 0
}

.settings-slider-range {
    flex: 1;
    height: 8px;
    -webkit-appearance: none;
    appearance: none;
    background: #eee;
    border-radius: 4px;
    outline: none
}

.settings-slider-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #666;
    cursor: pointer;
    border: none
}

.settings-select-box {
    padding: 6px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    color: #555;
    background: #fff;
    outline: none;
    cursor: pointer
}

.theme-group-title {
    font-size: 16px;
    font-weight: 700;
    color: #111;
    margin: 5px 0 10px
}

.layout-buttons {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 10px;
    margin-bottom: 10px
}

.layout-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 35px;
    background: #f5f7fa;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s
}

.layout-btn:hover {
    border-color: #94a3b8
}

.layout-btn.active {
    border: 2px solid #334155;
    background: #fff;
    font-weight: 600
}

.layout-inputs {
    display: flex;
    gap: 20px;
    margin-bottom: 24px
}

.layout-input-group {
    flex: 1
}

.layout-input-label {
    font-size: 14px;
    color: #333;
    margin-bottom: 5px;
    display: block
}

.layout-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 16px;
    color: #111;
    font-weight: 600;
    outline: none;
    background: #fff;
    box-sizing: border-box
}

.clock-preview {
    background: linear-gradient(135deg,#1a1a2e,#16213e);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    margin-bottom: 20px
}

.clock-preview .clock-time {
    font-size: 36px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 2px;
    line-height: 1.2
}

.clock-preview .clock-date {
    font-size: 14px;
    color: #dcdcdc;
    margin-top: 8px
}

.main-screen {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    align-items: center !important;
    background-color: transparent !important;
    position: relative;
    padding-top: 6vh
}

.time-display {
    text-align: center;
    color: rgba(255,255,255,0.55);
    font-family: -apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
    user-select: none;
    text-shadow: 2px 2px 2px rgba(0,0,0,0.25);
    flex-shrink: 0;
    margin-bottom: 15px
}

.time-display .time {
    font-size: 58px;
    font-weight: 700;
    letter-spacing: 2px;
    line-height: 1
}

.time-display .date {
    font-size: 18px;
    margin-top: 12px;
    font-weight: 400;
    color: rgba(255,255,255,0.95)
}

.search-section {
    display: flex;
    justify-content: center;
    width: 100%;
    position: relative;
    margin-bottom: 5px;
    z-index: 999 !important
}

.search-box-wrapper {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.1) !important;
    border-radius: var(--search-radius);
    min-height: var(--search-height);
    opacity: var(--search-opacity);
    padding: 0.5rem 0.3rem 0.5rem 1.2rem;
    box-shadow: 0 2px 2px rgba(0,0,0,.25) !important;
    width: 100%;
    max-width: 560px;
    position: relative;
    flex-wrap: nowrap
}

.search-box-wrapper:focus-within {
    border-color: rgba(255,255,255,0.5);
    box-shadow: 0 0 20px rgba(255,255,255,0.05)
}

.search-box-wrapper input[type="text"] {
    flex: 1;
    border: none;
    background: transparent;
    padding: calc(var(--search-height) * 0.1) 0.3rem;
    font-size: 1rem;
    outline: none;
    color: #333 !important;
    min-width: 80px
}

.search-box-wrapper input[type="text"]::placeholder {
    color: #999 !important;
    font-weight: 400;
    letter-spacing: 0.2px
}

.engine-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(var(--search-height) * 0.95); 
    height: calc(var(--search-height) * 0.95);
    border-radius: var(--search-radius);
    background: rgba(0,0,0,0.05) !important;
    cursor: pointer;
    margin-right: 10px;
    position: relative;
    flex-shrink: 0
}
.engine-trigger img {
    width: 60% !important;
    height: 60% !important;
    object-fit: contain;
}
.engine-trigger:hover {
    background: rgba(0,0,0,0.1) !important
}

.engine-pop {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: #fff;
    border-radius: var(--search-radius);
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 10px;
    z-index: 1000001 !important;
    gap: 8px;
    flex-wrap: nowrap;
    display: none
}

.engine-pop.show {
    display: flex
}

.engine-btn {
    background: transparent;
    border: none;
    padding: 8px 16px;
    border-radius: var(--search-radius);
    font-size: 0.85rem;
    font-weight: 500;
    color: #2c6282;
    cursor: pointer;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 8px
}

.engine-btn:hover {
    background: #d9e2ef;
    color: #0b1e33
}

.engine-btn.active {
    background: #d9e2ef;
    border: 2px solid #1e6fdf;
    color: #1e6fdf
}

.search-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 0
}

.search-go-btn {
    background: rgba(0,0,0,0.1) url(/img/so.png) no-repeat center !important;
    border: none;
    padding: 0.55rem 0.55rem;
    border-radius: var(--search-radius);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    width: calc(var(--search-height) * 0.95); 
    height: calc(var(--search-height) * 0.95);
    background-size: calc(var(--search-height) * 0.5) calc(var(--search-height) * 0.5) !important;
}

.search-go-btn:hover {
    background: rgba(0,0,0,0.2) url(/img/so.png) no-repeat center !important;
    background-size: calc(var(--search-height) * 0.55) calc(var(--search-height) * 0.55) !important;
    transform: scale(0.97)
}

.search-box-wrapper {
    position: relative
}

.search-history-wrap {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: #fff !important;
    border-radius: var(--search-radius);
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
    padding: 16px;
    z-index: 1000000 !important;
    display: none;
    max-height: 60vh;
    overflow-y: auto
}

.search-history-wrap.show {
    display: block
}

.history-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    font-size: 14px;
    color: #333
}

.clear-history-btn {
    border: none;
    background: transparent;
    color: #666;
    font-size: 14px;
    cursor: pointer
}

.clear-history-btn:hover {
    color: #ed3833
}

.history-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px
}

.history-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 6px;
    background: #f3f4f6;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap
}

.history-item span:first-child {
    max-width: 150px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.history-item:hover {
    background: #e5e7eb
}

.history-item .del-tag {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #777
}

.history-item .del-tag:hover {
    background: #ddd;
    color: #ed3833
}

.history-divider {
    width: calc(100% + 32px);
    height: 1px;
    background: #e5e7eb;
    margin: 8px -16px;
    flex-shrink: 0
}

.history-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    margin-top: 8px
}

.tag-list {
    justify-content: center !important;
    align-items: center !important;
    margin: 0 auto;
    position: relative;
    z-index: 1 !important
}

.clock-preview {
    background: #1e293b;
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
    margin-bottom: 20px;
    color: #ffffff;
    user-select: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.15)
}

.clock-time {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: 2px
}

.clock-date {
    font-size: 16px;
    margin-top: 8px;
    color: #dcdcdc
}

.settings-user {
    display: flex;
    align-items: center;
    padding: 16px 20px 14px;
    border-bottom: 1px solid #e8e8e8;
    margin-bottom: 8px;
    gap: 10px;
    flex-wrap: wrap
}

.settings-user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg,#4285f4,#34a853);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    flex-shrink: 0
}

.settings-user-info {
    flex: 1;
    min-width: 60px
}

.settings-user-name {
    font-size: 15px;
    font-weight: 600;
    color: #222;
    line-height: 1.3
}

.settings-user-status {
    font-size: 12px;
    color: #999
}

.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #eee
}

.auth-tab {
    padding: 8px 28px 12px;
    font-size: 15px;
    color: #888;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
    font-weight: 500;
    user-select: none
}

.auth-tab.active {
    color: #4285f4;
    border-bottom-color: #4285f4
}

.auth-tab:hover {
    color: #333
}

.auth-body {
    position: relative
}

.auth-panel {
    display: none;
    animation: authFadeIn 0.3s ease
}

.auth-panel.active {
    display: block
}

.auth-input-group {
    margin-bottom: 16px
}

.auth-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #555;
    margin-bottom: 6px
}

.auth-input {
    width: 100%;
    padding: 11px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s;
    background: #fafafa
}

.auth-input:focus {
    border-color: #4285f4;
    background: #fff
}

.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #666;
    margin-bottom: 18px
}

.auth-options label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer
}

.auth-options label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer
}

.auth-forgot {
    color: #4285f4;
    text-decoration: none;
    font-size: 13px
}

.auth-forgot:hover {
    text-decoration: underline
}

.auth-submit {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg,#4285f4,#34a853);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s
}

.auth-submit:hover {
    opacity: 0.85
}

.auth-submit:active {
    transform: scale(0.98)
}

.auth-switch {
    text-align: center;
    font-size: 13px;
    color: #888;
    margin-top: 16px
}

.auth-switch a {
    color: #4285f4;
    text-decoration: none;
    cursor: pointer
}

.auth-switch a:hover {
    text-decoration: underline
}

.auth-logout-btn {
    padding: 6px 20px;
    border: 1px solid #e74c3c;
    border-radius: 6px;
    background: transparent;
    color: #e74c3c;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0
}

.auth-logout-btn:hover {
    background: #e74c3c;
    color: #fff
}

@keyframes authFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.user-center-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid #e7edf5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 28px;
    font-weight: 600;
    flex-shrink: 0
}

.todo-mask {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 9998;
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center
}

.todo-mask.active {
    display: flex
}

.todo-panel {
    position: relative;
    z-index: 10000;
    width: 520px;
    max-width: 90vw;
    max-height: 80vh;
    overflow: hidden;
    color: #333;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column
}

.todo-panel.open {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto
}

.todo-panel .popup-window-dots {
    position: absolute;
    top: 15px !important;
    right: 15px !important;
    display: flex;
    gap: 8px;
    z-index: 10
}

.todo-panel .popup-window-dots .dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    cursor: pointer;
    background: #ff5f57;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border: none;
    padding: 0
}

.todo-panel .popup-window-dots .dot::after {
    content: '✕';
    font-size: 10px;
    color: #000000;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.2s;
    line-height: 1;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%)
}

.todo-panel .popup-window-dots .dot:hover::after {
    opacity: 1
}

.todo-panel .popup-window-dots .dot:hover {
    background: #e0443c
}

.todo-head {
    flex-shrink: 0;
    padding: 20px 24px 4px 24px;
    background: #fff;
    border-radius: 12px 12px 0 0
}

.todo-head strong {
    display: block;
    color: #333;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2
}

.todo-form {
    flex-shrink: 0;
    display: flex;
    gap: 10px;
    padding: 16px 24px 12px;
    background: #fff
}

.todo-form input {
    flex: 1;
    box-sizing: border-box;
    height: 40px;
    padding: 0 14px;
    color: #333;
    background: #f5f5f5;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    outline: 0;
    font-size: 14px;
    transition: border-color 0.2s
}

.todo-form input:focus {
    border-color: #4285f4;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(66,133,244,0.1)
}

.todo-add-btn {
    height: 40px;
    padding: 0 20px;
    background: #4285f4;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0
}

.todo-add-btn:hover {
    background: #3367d6
}

.todo-list {
    flex: 1;
    overflow-y: auto;
    padding: 0 24px 20px;
    max-height: 320px
}

.todo-list::-webkit-scrollbar {
    width: 4px
}

.todo-list::-webkit-scrollbar-track {
    background: transparent
}

.todo-list::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 4px
}

.todo-list::-webkit-scrollbar-thumb:hover {
    background: #b0b0b0
}

.todo-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0
}

.todo-item:last-child {
    border-bottom: none
}

.todo-item.done .todo-title {
    color: #aaa;
    text-decoration: line-through
}

.todo-check {
    width: 18px;
    height: 18px;
    appearance: none;
    border: 2px solid #d0d0d0;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    transition: all 0.2s
}

.todo-check:checked {
    border-color: #4285f4;
    background: #4285f4
}

.todo-check:checked::after {
    content: "✓";
    position: absolute;
    top: -2px;
    left: 1px;
    font-size: 14px;
    color: #fff
}

.todo-title {
    flex: 1;
    font-size: 15px;
    color: #333;
    line-height: 1.4;
    word-break: break-word
}

.todo-delete {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    color: #ccc;
    font-size: 18px;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0
}

.todo-delete:hover {
    color: #e74c3c;
    background: #f5f5f5
}

.todo-empty {
    padding: 30px 0;
    text-align: center;
    color: #bbb;
    font-size: 14px
}

.todo-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    background: #ff4d4f;
    color: #fff;
    border-radius: 9px;
    font-size: 12px;
    line-height: 18px;
    text-align: center;
    padding: 0 4px;
    box-sizing: border-box;
    z-index: 5;
    font-weight: 600
}

.tag-item[data-role="todo"] {
    position: relative
}

.auth-logout-btn:hover {
    background: #e74c3c;
    color: #fff
}

.sync-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    backdrop-filter: blur(4px)
}

.sync-modal-box {
    background: #fff;
    border-radius: 16px;
    width: 780px;
    max-width: 94%;
    height: 580px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: syncFadeIn 0.2s ease-out;
    overflow: hidden
}

@keyframes syncFadeIn {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(10px)
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0)
    }
}

.sync-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    border-bottom: 1px solid #eee;
    flex-shrink: 0;
    position: relative
}

.sync-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #222
}

.sync-modal-header .popup-window-dots {
    position: absolute;
    top: 14px;
    right: 18px;
    display: flex;
    gap: 8px;
    z-index: 10
}

.sync-modal-header .popup-window-dots .dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    cursor: pointer;
    background: #ff5f57;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border: none;
    padding: 0
}

.sync-modal-header .popup-window-dots .dot::after {
    content: '✕';
    font-size: 10px;
    color: #000000;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.2s;
    line-height: 1;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    animation: none
}

.sync-modal-header .popup-window-dots .dot:hover::after {
    opacity: 1;
    animation: dots 1.5s linear infinite
}

.sync-modal-header .popup-window-dots .dot:hover {
    background: #e0443c
}

.sync-modal-body {
    padding: 20px 24px 24px;
    overflow-y: auto;
    flex: 1
}

.sync-columns {
    display: flex;
    gap: 20px
}

.sync-column {
    flex: 1;
    min-width: 0
}

.sync-section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    color: #444;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0
}

.sync-count {
    font-size: 13px;
    font-weight: 400;
    color: #999
}

.sync-list-wrap {
    max-height: 360px;
    overflow-y: auto;
    margin-top: 8px;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    background: #fafafa
}

.sync-list-wrap::-webkit-scrollbar {
    width: 4px
}

.sync-list-wrap::-webkit-scrollbar-thumb {
    background: #d0d0d0;
    border-radius: 4px
}

.sync-list-wrap::-webkit-scrollbar-track {
    background: transparent
}

.sync-item {
    display: flex;
    align-items: center;
    padding: 6px 14px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 13px;
    gap: 8px
}

.sync-item:last-child {
    border-bottom: none
}

.sync-item-index {
    color: #aaa;
    font-size: 11px;
    min-width: 24px;
    font-weight: 400
}

.sync-item-name {
    font-weight: 500;
    color: #222;
    white-space: nowrap;
    min-width: 70px;
    max-width: 110px;
    overflow: hidden;
    text-overflow: ellipsis
}

.sync-item-url {
    color: #888;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1
}

.sync-item-del {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 50%;
    background: #f2f3f5;
    color: #b0b3b8;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all .2s
}

.sync-item-del:hover {
    background: #ffe4e1;
    color: #e74c3c
}

.sync-empty {
    padding: 20px 14px;
    text-align: center;
    color: #bbb;
    font-size: 14px
}

.sync-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0
}

.sync-actions .btn {
    padding: 8px 18px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
    min-width: 120px
}

.sync-actions .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed
}

.btn-merge {
    background: #e8f0fe;
    color: #1a73e8
}

.btn-merge:hover:not(:disabled) {
    background: #d2e3fc
}

.btn-overwrite {
    background: #fff3e0;
    color: #e65100
}

.btn-overwrite:hover:not(:disabled) {
    background: #ffe0b2
}

.btn-upload {
    background: #e8f5e9;
    color: #2e7d32
}

.btn-upload:hover:not(:disabled) {
    background: #c8e6c9
}

.btn-upload-overwrite {
    background: #fce4ec;
    color: #c62828
}

.btn-upload-overwrite:hover:not(:disabled) {
    background: #f8bbd0
}

.confirm-modal-outer {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease
}

.confirm-modal-outer.show {
    opacity: 1;
    pointer-events: auto
}

.confirm-modal-box {
    background: #ffffff;
    width: 400px;
    border-radius: 8px;
    padding: 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15)
}

.confirm-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid #eee
}

.confirm-modal-header strong {
    font-size: 18px;
    color: #454545;
    font-weight: 600
}

.confirm-modal-close {
    position: relative;
    width: 28px;
    height: 28px;
    border: none;
    background: #ff4d4f;
    border-radius: 50%;
    font-size: 18px;
    line-height: 28px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s
}

.confirm-modal-close:hover {
    background: #e63946
}

.confirm-modal-close::after {
    content: '✕';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    opacity: 0;
    transition: opacity 0.2s
}

.confirm-modal-close:hover::after {
    opacity: 1;
    animation: dots 1.5s linear infinite
}

.confirm-modal-body {
    display: flex;
    align-items: center;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid #eee
}

.confirm-warning-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f5a623;
    color: #fff;
    font-size: 30px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: Arial,sans-serif;
    line-height: 1;
    padding-bottom: 3px
}

.confirm-modal-text {
    font-size: 16px;
    font-weight: 500;
    color: #222;
    line-height: 1.5;
    text-align: left;
    white-space: pre-line;
    flex: 1
}

.confirm-modal-buttons {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    padding: 10px 24px 10px
}

.confirm-modal-buttons button {
    width: 90px;
    height: 38px;
    font-size: 15px;
    border-radius: 6px;
    cursor: pointer;
    border: none;
    font-weight: 500
}

.btn-cancel {
    background: #f0f0f0;
    color: #333;
    border: none !important
}

.btn-cancel:hover {
    background: #e0e0e0
}

.btn-ok {
    background: #1677ff;
    color: #fff
}

.btn-ok:hover {
    background: #4096ff
}

.tag-area {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    position: relative;
    min-height: 180px
}

.tag-area {
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    scrollbar-width: thin
}

.tag-area>* {
    flex-shrink: 0
}

.tag-area .page-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2
}

.tag-area #prevPageBtn {
    left: 0px
}

.tag-area #nextPageBtn {
    right: 0px
}

.page-arrow {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.25);
    color: #fff;
    border: none;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s,opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.7
}

.page-arrow:hover {
    background: rgba(0,0,0,0.5);
    opacity: 1
}

.page-arrow:disabled {
    opacity: 0.45;
    cursor: default
}

.page-arrow.hidden {
    display: none
}

.pagination-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 100;
    visibility: hidden;
    position: fixed;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%)
}

.pagination-dots {
    display: flex;
    align-items: center;
    gap: 10px;
    width: auto;
    /*background: rgba(0,0,0,0.15);
    padding: 5px 12px;
    border-radius: 9999px;*/
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px)
}

.dot-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #5c4838;
    font-size: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all .3s ease;
    flex-shrink: 0
}

.dot-indicator.active {
    width: 16px;
    border-radius: 9999px;
    background: rgba(255,255,255,0.85);
    color: #333;
    transform: scale(1);
    box-shadow: none
}

.site-nav-bar {
    width: 100%;
    max-width: 700px;
    padding: 2px 0 5px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto;
    position: relative
}

.site-nav-bar.hide {
    opacity: 0;
    pointer-events: none;
    height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden
}

.site-nav-item {
    background: rgba(0,0,0,0.15);
    border-radius: 8px;
    padding: 6px 14px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0
}

.sitenav-more-pop {
    position: absolute;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(0,0,0,0.12);
    padding: 12px;
    display: none;
    z-index: 99;
    width: 80%;
    left: 50%!important;
    transform: translateX(-50%);
    top: 100%;
    margin-top: 14px!important
}

.sitenav-more-pop.show {
    display: block
}

.sitenav-more-pop .pop-list {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 8px 16px;
    background: transparent
}

.sitenav-more-pop .site-nav-item {
    white-space: nowrap;
    padding: 4px 6px;
    cursor: pointer;
    border-radius: 6px;
    color: #1a1a2e;
    background: transparent
}

.sitenav-more-pop .site-nav-item:hover {
    background-color: #f2f3f5
}

.nav-popup-mask {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9998;
    backdrop-filter: blur(4px);
    align-items: center;
    justify-content: center
}

.nav-popup-mask.active {
    display: flex
}

.nav-popup-panel {
    position: relative;
    z-index: 10000;
    width: 660px;
    max-width: 92vw;
    height: 420px;
    max-height: 85vh;
    background: rgba(255,255,255,0.15);
    border-radius: 16px;
    box-shadow: 0 15px 45px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.25s ease
}

.nav-popup-panel.open {
    opacity: 1;
    transform: scale(1)
}

.nav-popup-title {
    flex-shrink: 0;
    padding: 14px 48px 12px 24px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid rgba(255,255,255,0.55);
}

.nav-popup-panel iframe {
    flex: 1;
    width: 100%;
    border: none
}

#blankContextMenu {
    position: fixed;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.18);
    padding: 6px 8px;
    min-width: 160px;
    z-index: 99999;
    border: 1px solid rgba(0,0,0,0.06)
}

#blankContextMenu .context-menu-item {
    padding: 8px 14px;
    margin: 2px 0;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 6px
}

#blankContextMenu .context-menu-item:hover {
    background: #e8f0fe
}

#blankContextMenu .context-menu-item:active {
    background: #d2e3fc
}

@keyframes shake {
    0% {
        transform: rotate(0deg)
    }

    25% {
        transform: rotate(-1.5deg)
    }

    50% {
        transform: rotate(1.5deg)
    }

    75% {
        transform: rotate(-1.5deg)
    }

    100% {
        transform: rotate(0deg)
    }
}

.tag-item.edit-mode-shake {
    animation: shake 1s ease-in-out infinite;
    cursor: default !important
}

.tag-item.edit-mode-shake .edit-delete-btn {
    pointer-events: auto !important
}

.tag-item.edit-mode-shake .tag-icon,.tag-item.edit-mode-shake .text-icon,.tag-item.edit-mode-shake .folder-icon {
    pointer-events: none !important
}

.tag-item.edit-mode-shake .tag-name {
    pointer-events: none !important
}

.edit-delete-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #e74c3c;
    background: #e74c3c;
    color: #fff;
    font-size: 14px;
    line-height: 18px;
    text-align: center;
    cursor: pointer;
    z-index: 100;
    padding: 0;
    transition: transform 0.2s;
    font-weight: bold;
    pointer-events: auto !important
}

.edit-delete-btn:hover {
    transform: scale(1.2);
    background: #c0392b
}

.yulu-box {
    position: fixed;
    bottom: 50px;
    right: 250px;
    display: none;
    align-items: center;
    background: rgba(0,0,0,0.35);
    padding: 5px 10px;
    border-radius: 6px;
    max-width: calc(100vw - 110px);
    z-index: 990
}

.yulu-box.show {
    display: flex
}

.star-group {
    position: relative;
    width: 22px;
    height: 22px;
    margin-right: 12px;
    flex-shrink: 0
}

.star {
    position: absolute;
    width: 8px;
    height: 8px;
    background: #fff;
    clip-path: polygon(50% 0%,61% 39%,100% 50%,61% 61%,50% 100%,39% 61%,0% 50%,39% 39%)
}

.star1 {
    top: 4px;
    left: 6px;
    animation: twinkle1 3.6s infinite ease-in-out
}

.star2 {
    top: 7px;
    left: 0px;
    animation: twinkle2 3.6s infinite ease-in-out
}

.star3 {
    top: 10px;
    left: 5px;
    animation: twinkle3 3.6s infinite ease-in-out
}

@keyframes twinkle2 {
    0% {
        opacity: 0;
        transform: scale(0.85)
    }

    15% {
        opacity: 1;
        transform: scale(1.05)
    }

    30%,100% {
        opacity: 0;
        transform: scale(0.85)
    }
}

@keyframes twinkle3 {
    0%,30% {
        opacity: 0;
        transform: scale(0.85)
    }

    45% {
        opacity: 1;
        transform: scale(1.05)
    }

    60%,100% {
        opacity: 0;
        transform: scale(0.85)
    }
}

@keyframes twinkle1 {
    0%,60% {
        opacity: 0;
        transform: scale(0.85)
    }

    75% {
        opacity: 1;
        transform: scale(1.05)
    }

    90%,100% {
        opacity: 0;
        transform: scale(0.85)
    }
}

.popup-window-dots {
    position: absolute;
    top: 14px;
    right: 18px;
    display: flex;
    gap: 8px;
    z-index: 10
}

.popup-window-dots .dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    cursor: pointer;
    background: #ff5f57;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border: none;
    padding: 0
}

.popup-window-dots .dot::after {
    content: '✕';
    font-size: 10px;
    color: #000000;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.2s;
    line-height: 1;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    animation: none
}

.popup-window-dots .dot:hover::after {
    opacity: 1;
    animation: dots 1.5s linear infinite
}

.popup-window-dots .dot:hover {
    background: #e0443c
}

.custom-upload-card {
    display: grid !important;
    grid-template-columns: 46px 1fr !important;
    grid-template-areas: "icon title" "icon text" !important;
    width: 93%;
    min-height: 80px !important;
    padding: 16px 20px;
    color: #444;
    background: #fafafa;
    border: 2px dashed #d0d0d0;
    border-radius: 10px;
    cursor: pointer;
    transition: all .3s ease;
    align-items: center
}

.custom-upload-card:hover {
    border-color: #4285f4;
    background: #f5f8ff
}

.custom-upload-card.dragover {
    border-color: #4285f4;
    background: #e8f0fe
}

.custom-upload-card .custom-upload-icon {
    grid-area: icon;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #999;
    background: #fff;
    border-radius: 50%;
    font-size: 26px;
    font-weight: 200;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06)
}

.custom-upload-card .custom-upload-text {
    grid-area: text
}

.custom-upload-card strong {
    grid-area: title;
    display: block;
    font-size: 15px;
    color: #333
}

.custom-upload-card small {
    display: block;
    color: #999;
    font-size: 12px
}

.custom-wall-list {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(140px,1fr));
    gap: 12px;
    margin-top: 14px;
    max-height: 260px;
    overflow-y: auto;
    padding: 4px 2px
}

.custom-wall-list::-webkit-scrollbar {
    width: 4px
}

.custom-wall-list::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px
}

.custom-wall-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background: #f5f5f5;
    border: 2px solid transparent;
    transition: all .25s ease;
    aspect-ratio: 16/10
}

.custom-wall-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
    border-color: #4285f4
}

.custom-wall-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block
}

.custom-wall-item .custom-wall-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 8px 10px;
    background: linear-gradient(transparent,rgba(0,0,0,0.6));
    color: #fff;
    font-size: 12px;
    opacity: 0;
    transform: translateY(10px);
    transition: all .3s ease
}

.custom-wall-item:hover .custom-wall-info {
    opacity: 1;
    transform: translateY(0)
}

.custom-wall-item .custom-wall-name {
    display: block;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

.custom-wall-item .custom-wall-size {
    font-size: 11px;
    opacity: 0.7
}

.custom-wall-item .custom-wall-actions {
    position: absolute;
    top: 6px;
    right: 6px;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity .25s ease
}

.custom-wall-item:hover .custom-wall-actions {
    opacity: 1
}

.custom-wall-item .custom-wall-apply {
    padding: 3px 10px;
    font-size: 11px;
    border-radius: 12px;
    border: none;
    background: rgba(255,255,255,0.9);
    color: #333;
    cursor: pointer;
    transition: all .2s ease
}

.custom-wall-item .custom-wall-apply:hover {
    background: #4285f4;
    color: #fff
}

.custom-wall-item .custom-wall-apply.active {
    background: #27ae60;
    color: #fff
}

.custom-wall-item .custom-wall-delete {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.85);
    color: #e74c3c;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    transition: all .2s ease
}

.custom-wall-item .custom-wall-delete:hover {
    background: #e74c3c;
    color: #fff
}

.gb-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
    z-index: 9999;
    align-items: center;
    justify-content: center
}

.gb-modal.active {
    display: flex
}

.gb-panel {
    position: relative;
    width: 620px;
    max-width: 95vw;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: 16px;
    padding: 28px 32px 32px;
    background: linear-gradient(135deg,#d6e8f5 0%,#f5e6d8 50%,#f0d8d8 100%);
    box-shadow: 0 20px 60px rgba(0,0,0,0.25)
}

.gb-card {
    background: rgba(255,255,255,0.15);
    border-radius: 16px;
    padding: 22px 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06)
}

.gb-card:last-child {
    margin-bottom: 0
}

.gb-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 20px;
    font-weight: 700;
    color: #1a3a5c;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    margin-bottom: 18px
}

.gb-card-title .title-icon {
    font-size: 22px
}

.gb-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px
}

.gb-textarea {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 110px;
    padding: 12px 14px;
    border: 1px solid rgba(0,0,0,0.12);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    background: rgba(255,255,255,0.7);
    resize: vertical;
    outline: none;
    transition: border-color 0.2s,box-shadow 0.2s;
    line-height: 1.6
}

.gb-textarea:focus {
    border-color: #4a90d9;
    box-shadow: 0 0 0 3px rgba(74,144,217,0.15)
}

.gb-counter {
    font-size: 12px;
    color: #888;
    margin-top: 6px;
    text-align: right
}

.gb-counter.over {
    color: #e74c3c
}

.gb-submit {
    margin-top: 14px;
    padding: 10px 32px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 24px;
    background: #1a3a5c;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s,transform 0.1s
}

.gb-submit:hover {
    background: #244d73
}

.gb-submit:active {
    transform: scale(0.97)
}

.gb-submit:disabled {
    background: #aaa;
    cursor: not-allowed
}

.gb-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 200px;
    overflow-y: auto;
    padding-right: 4px
}

.gb-list::-webkit-scrollbar {
    width: 6px
}

.gb-list::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
    border-radius: 3px
}

.gb-list::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 3px
}

.gb-list::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.3)
}

.gb-item {
    background: rgba(255,255,255,0.6);
    border-radius: 12px;
    padding: 14px 16px;
    border-left: 3px solid #4a90d9
}

.gb-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px
}

.gb-item-user {
    font-size: 14px;
    font-weight: 600;
    color: #333
}

.gb-item-time {
    font-size: 12px;
    color: #999
}

.gb-item-content {
    font-size: 14px;
    color: #444;
    line-height: 1.6
}

.gb-item-reply {
    margin-top: 10px;
    padding: 10px 12px;
    background: rgba(74,144,217,0.08);
    border-radius: 8px;
    font-size: 13px;
    color: #555;
    line-height: 1.6
}

.gb-item-reply .reply-tag {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    background: #4a90d9;
    padding: 1px 8px;
    border-radius: 10px;
    margin-right: 6px
}

.gb-lock {
    background: rgba(230,240,250,0.8);
    border-radius: 14px;
    padding: 36px 24px;
    text-align: center
}

.gb-lock-icon {
    font-size: 48px;
    margin-bottom: 14px
}

.gb-lock-text {
    font-size: 15px;
    color: #555;
    margin-bottom: 18px;
    line-height: 1.6
}

.gb-login-btn {
    padding: 10px 36px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 24px;
    background: #1a3a5c;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s,transform 0.1s
}

.gb-login-btn:hover {
    background: #244d73
}

.gb-login-btn:active {
    transform: scale(0.97)
}

.time-display {
    cursor: pointer;
    user-select: none
}

.time-display:hover {
    opacity: 0.85
}

body.clock-focus .site-nav-bar,body.clock-focus .tag-area,body.clock-focus .pagination-wrap {
    display: none !important
}

body.clock-focus .main-screen {
    justify-content: flex-start !important;
    padding-top: 200px !important
}

.config-popup-dots .config-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    cursor: pointer;
    background: #ff5f57;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
    border: none;
    padding: 0
}

.config-popup-dots .config-dot::after {
    content: '✕';
    font-size: 10px;
    color: #000000;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.2s;
    line-height: 1;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%)
}

.config-popup-dots .config-dot:hover::after {
    opacity: 1;
    animation: dots 1.5s linear infinite
}

.config-popup-dots .config-dot:hover {
    background: #e0443c
}

.push-tag-row {
    margin: 8px 0 14px 0;
    padding: 0 4px;
    display: flex;
    align-items: flex-start
}

.push-tag-label {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    cursor: pointer;
    user-select: none;
    width: 100%
}

.push-tag-label input[type="checkbox"] {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    cursor: pointer;
    flex-shrink: 0
}

.push-tag-title {
    font-size: 14px;
    color: #333;
    font-weight: 500;
    white-space: nowrap;
    flex-shrink: 0;
    width: 80px;
    text-align: right;
    padding-right: 12px
}

.push-tag-desc {
    font-size: 12px;
    color: #999;
    line-height: 1.5;
    flex: 1
}

.online-load-more {
    grid-column: 1 / -1;
    text-align: center;
    padding: 12px 0;
    color: #4285f4;
    font-size: 13px;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s;
    user-select: none
}

.online-load-more:hover {
    background: #f0f6ff
}

.avatar-crop-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8,20,30,0.65);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 20px;
    animation: avatarFadeIn 0.2s ease
}

.avatar-crop-overlay.active {
    display: flex
}

.avatar-crop-box {
    background: #ffffff;
    border-radius: 28px;
    max-width: 860px;
    width: 100%;
    max-height: 92vh;
    height: 92vh;
    box-shadow: 0 40px 80px rgba(0,0,0,0.35);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    animation: avatarSlideUp 0.25s cubic-bezier(0.2,0.9,0.3,1)
}

.avatar-crop-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 24px;
    background: #fafcfe;
    border-bottom: 1px solid #eef2f6;
    flex-shrink: 0
}

.avatar-crop-header h3 {
    font-size: 16px;
    font-weight: 500;
    color: #1a2e3f;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px
}

.avatar-crop-close {
    background: #eef3f7;
    border: none;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #7f96a6;
    border-radius: 50%;
    transition: all 0.15s;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0
}

.avatar-crop-close:hover {
    color: #fff;
    background: #ff0000
}

.avatar-crop-body {
    flex: 1;
    overflow: hidden;
    background: #f2f6fa;
    min-height: 0;
    position: relative
}

.avatar-crop-body iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    background: #f2f6fa
}

@keyframes avatarFadeIn {
    from {
        opacity: 0
    }

    to {
        opacity: 1
    }
}

@keyframes avatarSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.96)
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1)
    }
}

@media (max-width:768px) {
    .avatar-crop-box {
        border-radius: 20px;
        max-height: 95vh;
        height: 95vh
    }
}

@media (max-width:768px) {
    .topbar {
        top: 12px;
        right: 16px
    }

    .round-btn {
        width: 36px;
        height: 36px
    }

    .round-btn svg {
        width: 18px;
        height: 18px
    }

    .time-display .time {
        font-size: 34px
    }

    .time-display .date {
        font-size: 15px;
        margin-top: 4px
    }

    .time-display {
        margin-bottom: 14px
    }

    .search-box-wrapper {
        max-width: 94%;
        padding: 0.25rem 0.2rem 0.25rem 0.8rem;
        min-height: 44px
    }

    .engine-trigger {
        width: 34px;
        height: 34px;
        font-size: 15px;
        margin-right: 6px
    }

    .search-go-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem
    }

    .search-box-wrapper input[type="text"] {
        padding: 0.4rem 0.2rem;
        font-size: 0.9rem
    }

    .engine-pop {
        flex-wrap: wrap;
        width: 190px;
        left: -10px
    }

    .engine-btn {
        padding: 5px 12px;
        font-size: 0.75rem
    }

    .site-nav-bar {
        gap: 6px;
        padding: 4px 0 5px 0;
        margin: 0 auto;
        justify-content: center
    }

    .site-nav-item {
        font-size: 13px;
        padding: 5px 12px;
        border-radius: 8px
    }

    .sitenav-more-pop {
        width: 94%;
        padding: 10px
    }

    .sitenav-more-pop .pop-list {
        grid-template-columns: repeat(3,1fr);
        gap: 6px 10px
    }

    .sitenav-more-pop .site-nav-item {
        font-size: 13px;
        padding: 4px 8px
    }

    .tag-icon,.folder-icon,.text-icon {
        width: 58px;
        height: 58px;
        border-radius: 14px
    }

    .tag-name {
        font-size: var(--tag-name-font-size,11px);
        max-width: 64px;
        margin-top: 5px;
        text-align: center;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis
    }

    .icon-box {
        width: 58px;
        height: 58px;
        border-radius: 14px
    }

    .icon-box::before {
        font-size: 22px
    }

    .text {
        font-size: 10px
    }

    .folder-thumb {
        width: 26px;
        height: 26px;
        border-radius: 6px
    }

    .folder-thumb.text-icon {
        width: 26px !important;
        height: 26px !important;
        font-size: 12px !important
    }

    .page-arrow {
        width: 32px;
        height: 32px;
        font-size: 18px
    }

    .pagination-wrap {
        margin-top: 10px
    }

    .dot-indicator {
        width: 8px;
        height: 8px
    }

    .settings-panel {
        width: 96vw;
        height: 90vh;
        max-height: 90vh;
        margin: 10px;
        border-radius: 12px;
        flex-direction: column
    }

    .settings-nav {
        width: 100%;
        padding: 8px 0;
        flex-direction: row;
        overflow-x: auto;
        border-bottom: 1px solid #eee;
        flex-shrink: 0
    }

    .settings-nav-item {
        padding: 8px 14px;
        font-size: 13px;
        white-space: nowrap;
        border-left: none;
        border-bottom: 3px solid transparent
    }

    .settings-nav-item.active {
        border-left-color: transparent;
        border-bottom-color: #4285f4
    }

    .settings-content {
        padding: 14px 18px
    }

    .settings-page-title {
        font-size: 16px;
        margin-bottom: 12px
    }

    .settings-row-layout {
        padding: 10px 0
    }

    .settings-row-left {
        font-size: 13px
    }

    .settings-slider-row {
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px 0
    }

    .settings-slider-label {
        min-width: 70px;
        font-size: 13px
    }

    .settings-slider-value {
        width: 50px;
        font-size: 13px
    }

    .layout-buttons {
        grid-template-columns: repeat(3,1fr);
        gap: 8px
    }

    .layout-btn {
        height: 38px;
        font-size: 12px
    }

    .layout-inputs {
        flex-direction: column;
        gap: 10px
    }

    .clock-preview {
        padding: 14px
    }

    .clock-time {
        font-size: 32px
    }

    .clock-date {
        font-size: 13px
    }

    .modal-content {
        padding: 40px 14px 16px 14px;
        max-width: 96%
    }

    .form-row {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        margin-bottom: 12px
    }

    .form-label {
        width: 100%;
        font-size: 13px
    }

    .form-input-wrapper {
        width: 100%
    }

    .form-input {
        padding: 8px 60px 8px 10px;
        font-size: 13px
    }

    .char-count {
        font-size: 11px
    }

    .btn-mini {
        padding: 6px 14px;
        font-size: 12px;
        margin-left: 0;
        margin-top: 4px
    }

    .icon-radio-group {
        gap: 10px
    }

    .selected-icon {
        width: 48px;
        height: 48px
    }

    .color-swatches {
        gap: 6px
    }

    .color-swatch {
        width: 20px;
        height: 20px
    }

    .custom-color-btn {
        width: 20px;
        height: 20px
    }

    .footer-row {
        flex-direction: column;
        gap: 10px
    }

    .btn-save-next {
        padding: 10px
    }

    .folder-popup {
        min-width: auto;
        padding: 18px;
        max-width: 94%
    }

    .folder-grid {
        gap: 14px;
        max-width: 100%
    }

    .folder-title {
        font-size: 16px;
        padding: 6px 16px;
        max-width: 90%;
        white-space: normal
    }

    .todo-panel {
        width: 94vw;
        max-height: 85vh
    }

    .todo-head {
        padding: 0 16px;
        min-height: 50px
    }

    .todo-head strong {
        font-size: 17px
    }

    .todo-form {
        padding: 14px 16px 8px
    }

    .todo-form input {
        height: 44px;
        font-size: 13px
    }

    .todo-list {
        margin: 0 14px 14px
    }

    .todo-item {
        min-height: 40px;
        padding: 14px 0;
        gap: 8px
    }

    .todo-title {
        font-size: 13px
    }

    .todo-clear-completed {
        width: calc(100% - 32px);
        margin: 0 16px 14px;
        font-size: 13px
    }

    .sync-modal-box {
        max-width: 96%
    }

    .sync-modal-body {
        padding: 14px 16px
    }

    .sync-columns {
        flex-direction: column;
        gap: 12px
    }

    .sync-list-wrap {
        max-height: 120px
    }

    .sync-actions {
        flex-direction: column;
        gap: 8px
    }

    .sync-actions .btn {
        min-width: auto;
        padding: 8px 14px;
        font-size: 12px
    }

    .confirm-modal-box {
        width: 92%
    }

    .confirm-modal-body {
        padding: 16px
    }

    .confirm-modal-text {
        font-size: 14px
    }

    .confirm-modal-buttons button {
        width: 72px;
        height: 34px;
        font-size: 13px
    }

    .wall-modal-box {
        width: 96vw;
        height: 70vh;
        max-height: 80vh;
        margin: 10px
    }

    .wall-modal-head {
        padding: 0 16px
    }

    .wall-modal-head h3 {
        font-size: 16px
    }

    .wall-tabs {
        overflow-x: auto
    }

    .wall-tab-item {
        padding: 10px 14px;
        font-size: 13px;
        white-space: nowrap
    }

    .wall-tab-containers {
        height: 300px
    }

    .wall-gallery-grid {
        grid-template-columns: repeat(auto-fill,minmax(80px,1fr));
        gap: 8px
    }

    .wall-gallery-item {
        aspect-ratio: 16/10
    }

    .wallpaper-toggle-btn {
        right: 60px;
        width: 40px;
        height: 72px;
        bottom: 0;
        --rotor: 37px;
        --pole-h: 31px;
        --hub: 9px
    }

    .wallpaper-toggle-btn .blade::before {
        border-width: 0 0 7px 7px
    }

    .wallpaper-toggle-btn .base-shadow {
        width: 21px;
        height: 6px
    }

    .wallpaper-preview {
        height: 100px
    }

    .auth-tab {
        padding: 6px 18px 10px;
        font-size: 14px
    }

    .auth-input {
        padding: 9px 12px;
        font-size: 13px
    }

    .auth-submit {
        font-size: 14px;
        padding: 10px
    }

    .user-center-avatar {
        width: 48px;
        height: 48px;
        font-size: 20px
    }

    .settings-user {
        padding: 12px 16px
    }

    .settings-user-avatar {
        width: 34px;
        height: 34px;
        font-size: 13px
    }

    .auth-options {
        flex-wrap: wrap;
        gap: 6px;
        font-size: 12px
    }

    .auth-options label input[type="checkbox"] {
        width: 14px;
        height: 14px
    }

    .tag-list {
        min-width: auto !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
        padding: 20px 10px !important
    }

    .tag-item,.add-tag {
        width: 100%;
        max-width: 72px
    }

    .tag-area {
        min-height: 160px;
        padding: 0 4px;
        box-sizing: border-box
    }

    .modal-content {
        height: auto !important;
        max-height: 85vh !important;
        min-height: 400px
    }

    .engine-pop {
        max-width: 90vw;
        width: auto
    }

    .gb-panel {
        width: 92vw;
        max-width: 92vw;
        padding: 20px 16px 24px;
        box-sizing: border-box;
        max-height: 88vh;
        overflow-y: auto
    }

    .gb-card {
        padding: 16px
    }

    .gb-card-title {
        font-size: 17px
    }

    .gb-textarea {
        min-height: 90px;
        font-size: 13px
    }

    .gb-submit {
        width: 100%;
        padding: 12px
    }

    .gb-list {
        max-height: 160px
    }

    .gb-lock {
        padding: 24px 16px
    }

    .gb-lock-text {
        font-size: 13px
    }

    .gb-lock-icon {
        font-size: 40px
    }

    .gb-item {
        padding: 12px
    }

    .gb-item-content {
        font-size: 13px
    }

    .yulu-box {
        right: 16px;
        bottom: 60px;
        max-width: calc(100vw - 32px);
        box-sizing: border-box
    }

    #configSyncModalBox {
        width: 90vw
    }
}

@media (max-width:480px) {
    .topbar {
        top: 8px;
        right: 10px
    }

    .round-btn {
        width: 30px;
        height: 30px
    }

    .round-btn svg {
        width: 16px;
        height: 16px
    }

    .time-display .time {
        font-size: 26px
    }

    .time-display .date {
        font-size: 13px;
        margin-top: 3px
    }

    .time-display {
        margin-bottom: 8px
    }

    .search-box-wrapper {
        max-width: 90%;
        padding: 0.2rem 0.1rem 0.2rem 0.6rem;
        min-height: 38px;
        border-radius: 20px
    }

    .engine-trigger {
        width: 28px;
        height: 28px;
        font-size: 14px;
        margin-right: 4px
    }

    .search-go-btn {
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem
    }

    .search-box-wrapper input[type="text"] {
        padding: 0.35rem 0.2rem;
        font-size: 0.8rem
    }

    .engine-pop {
        max-width: 88vw;
        width: auto;
        left: -5px;
        padding: 6px
    }

    .engine-btn {
        padding: 4px 8px;
        font-size: 0.7rem
    }

    .site-nav-bar {
        max-width: 90%;
        gap: 4px;
        padding: 2px 0 5px 0;
        margin: 0 auto;
        justify-content: center
    }

    .site-nav-item {
        font-size: 14px;
        padding: 4px 9px;
        border-radius: 6px
    }

    .sitenav-more-pop {
        padding: 8px
    }

    .sitenav-more-pop .pop-list {
        grid-template-columns: repeat(2,1fr);
        gap: 4px 8px
    }

    .sitenav-more-pop .site-nav-item {
        font-size: 14px;
        padding: 3px 6px
    }

    .tag-list {
        max-width: 90%;
        min-width: auto !important;
        width: 100% !important;
        box-sizing: border-box;
        display: grid !important;
        grid-template-columns: repeat(4,1fr) !important;
        gap: 20px 30px !important;
        padding: 28px 4px !important
    }

    .tag-item {
        width: 100%;
        max-width: 60px
    }

    .add-tag {
        width: 100%;
        max-width: 60px
    }

    .tag-icon,.folder-icon,.text-icon {
        width: 58px;
        height: 58px;
        border-radius: 12px
    }

    .tag-name {
        font-size: var(--tag-name-font-size,14px);
        max-width: 56px;
        margin-top: 10px
    }

    .icon-box {
        width: 44px;
        height: 44px;
        border-radius: 12px
    }

    .icon-box::before {
        font-size: 18px
    }

    .text {
        font-size: 9px
    }

    .folder-thumb {
        width: 22px;
        height: 22px;
        border-radius: 5px
    }

    .folder-thumb.text-icon {
        width: 22px !important;
        height: 22px !important;
        font-size: 8px !important
    }

    .page-arrow {
        width: 26px;
        height: 26px;
        font-size: 14px
    }

    .pagination-wrap {
        margin-top: 6px;
        gap: 10px
    }

    .dot-indicator {
        width: 6px;
        height: 6px;
        gap: 6px
    }

    .settings-panel {
        width: 100vw;
        height: 100vh;
        max-height: 100vh;
        margin: 0;
        border-radius: 0
    }

    .settings-nav {
        padding: 6px 0
    }

    .settings-nav-item {
        padding: 6px 12px;
        font-size: 12px
    }

    .settings-content {
        padding: 10px 14px
    }

    .settings-page-title {
        font-size: 15px;
        margin-bottom: 10px
    }

    .settings-row-left {
        font-size: 12px
    }

    .settings-slider-label {
        font-size: 12px;
        min-width: 60px
    }

    .settings-slider-value {
        font-size: 12px;
        width: 40px
    }

    .layout-buttons {
        grid-template-columns: repeat(2,1fr);
        gap: 6px
    }

    .layout-btn {
        height: 34px;
        font-size: 11px
    }

    .clock-time {
        font-size: 26px
    }

    .clock-date {
        font-size: 12px
    }

    .modal-content {
        max-width: 90%;
        padding: 52px 10px 14px 10px;
        height: auto !important;
        max-height: 88vh !important;
        min-height: 360px
    }

    .form-label {
        font-size: 14px
    }

    .form-input {
        font-size: 14px;
        padding: 6px 50px 6px 8px
    }

    .selected-icon {
        width: 40px;
        height: 40px
    }

    .color-swatch {
        width: 18px;
        height: 18px
    }

    .custom-color-btn {
        width: 18px;
        height: 18px
    }

    .folder-popup {
        padding: 14px
    }

    .folder-grid {
        gap: 10px
    }

    .folder-title {
        font-size: 14px;
        padding: 4px 12px
    }

    .todo-head {
        padding: 0 12px;
        min-height: 44px
    }

    .todo-head strong {
        font-size: 15px
    }

    .todo-form {
        padding: 10px 12px 6px
    }

    .todo-form input {
        height: 38px;
        font-size: 12px
    }

    .todo-item {
        min-height: 34px;
        padding: 10px 0;
        gap: 6px
    }

    .todo-title {
        font-size: 12px
    }

    .todo-check {
        width: 16px;
        height: 16px
    }

    .todo-delete {
        width: 24px;
        height: 24px;
        font-size: 14px
    }

    .sync-modal-header h3 {
        font-size: 16px
    }

    .sync-modal-body {
        padding: 10px 12px
    }

    .sync-item {
        padding: 4px 10px;
        font-size: 12px
    }

    .sync-item-name {
        min-width: 50px;
        max-width: 70px
    }

    .sync-item-del {
        width: 20px;
        height: 20px;
        font-size: 11px
    }

    .sync-actions .btn {
        font-size: 11px;
        padding: 6px 10px
    }

    .confirm-modal-box {
        width: 96%
    }

    .confirm-modal-body {
        padding: 14px;
        gap: 10px
    }

    .confirm-warning-icon {
        width: 34px;
        height: 34px;
        font-size: 22px
    }

    .confirm-modal-text {
        font-size: 13px
    }

    .confirm-modal-buttons {
        padding: 8px 16px 10px;
        gap: 8px
    }

    .confirm-modal-buttons button {
        width: 64px;
        height: 30px;
        font-size: 12px
    }

    .wall-modal-box {
        width: 100vw;
        height: 85vh;
        max-height: 85vh;
        margin: 0;
        border-radius: 0
    }

    .wall-modal-head {
        padding: 0 12px
    }

    .wall-modal-head h3 {
        font-size: 14px
    }

    .wall-tab-item {
        padding: 8px 10px;
        font-size: 12px
    }

    .wall-tab-containers {
        height: 240px
    }

    .wall-gallery-grid {
        grid-template-columns: repeat(auto-fill,minmax(60px,1fr));
        gap: 6px
    }

    .wallpaper-toggle-btn {
        right: 40px;
        width: 34px;
        height: 60px;
        --rotor: 32px;
        --pole-h: 26px;
        --hub: 8px
    }

    .wallpaper-toggle-btn .blade::before {
        border-width: 0 0 6px 6px
    }

    .wallpaper-toggle-btn .base-shadow {
        width: 18px;
        height: 5px
    }

    .wallpaper-preview {
        height: 80px
    }

    .auth-tab {
        padding: 4px 14px 8px;
        font-size: 13px
    }

    .auth-input {
        padding: 7px 10px;
        font-size: 12px
    }

    .auth-submit {
        font-size: 13px;
        padding: 8px
    }

    .user-center-avatar {
        width: 40px;
        height: 40px;
        font-size: 18px
    }

    .settings-user {
        padding: 8px 12px
    }

    .settings-user-avatar {
        width: 28px;
        height: 28px;
        font-size: 12px
    }

    .auth-options {
        font-size: 11px
    }

    .auth-options label input[type="checkbox"] {
        width: 12px;
        height: 12px
    }

    .auth-switch {
        font-size: 12px
    }

    .wall-slider-group {
        padding: 6px 0
    }

    .wall-slider-label {
        font-size: 12px
    }

    .clock-preview .clock-time {
        font-size: 24px
    }

    .gb-panel {
        width: 94vw;
        max-width: 94vw;
        padding: 16px 14px 20px;
        max-height: 90vh
    }

    .gb-card {
        padding: 14px;
        margin-bottom: 14px
    }

    .gb-card-title {
        font-size: 16px;
        padding-bottom: 10px;
        margin-bottom: 14px
    }

    .gb-label {
        font-size: 13px
    }

    .gb-textarea {
        min-height: 80px;
        font-size: 13px;
        padding: 10px 12px
    }

    .gb-submit {
        width: 100%;
        padding: 11px;
        font-size: 14px
    }

    .gb-list {
        max-height: 140px
    }

    .gb-item {
        padding: 12px
    }

    .gb-item-user {
        font-size: 13px
    }

    .gb-item-time {
        font-size: 11px
    }

    .gb-item-content {
        font-size: 13px
    }

    .gb-item-reply {
        font-size: 12px
    }

    .gb-lock {
        padding: 20px 14px
    }

    .gb-lock-icon {
        font-size: 36px;
        margin-bottom: 12px
    }

    .gb-lock-text {
        font-size: 13px;
        margin-bottom: 14px
    }

    .gb-login-btn {
        padding: 9px 28px;
        font-size: 14px
    }

    .yulu-box {
        right: 10px;
        bottom: 50px;
        max-width: calc(100vw - 20px);
        padding: 4px 8px
    }

    .yulu-box .text {
        font-size: 11px
    }

    .tag-area {
        min-height: 140px
    }

    #configSyncModalBox {
        width: 92vw
    }

    #configSyncModalBox > div:nth-child(2) {
        padding: 20px 14px
    }

    #configUploadBtn,#configDownloadBtn {
        padding: 10px 6px;
        font-size: 13px
    }

    #bottomTipBar {
        padding: 3px 10px
    }

    #bottomTipBar > div {
        gap: 8px
    }

    #bottomTipBar > div > div {
        font-size: 10px
    }
}