* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    overflow: hidden;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: all 0.3s ease;
}

/* 深色主题样式 */
body.dark-theme .controller-window {
    background: rgba(42, 42, 42, 0.95);
    border-color: rgba(68, 68, 68, 0.8);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.05);
}

body.dark-theme .title-bar {
    background: linear-gradient(135deg, #5a67d8 0%, #667eea 100%);
    box-shadow: 0 2px 10px rgba(90, 103, 216, 0.3);
}

body.dark-theme .control-section {
    background: rgba(68, 68, 68, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

body.dark-theme .control-section:hover {
    background: rgba(68, 68, 68, 0.8);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

body.dark-theme .section-title {
    color: #e5e7eb;
}

body.dark-theme .slider-container {
    background: rgba(68, 68, 68, 0.7);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme .slider-container:hover {
    background: rgba(68, 68, 68, 0.9);
    border-color: rgba(102, 126, 234, 0.4);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
}

body.dark-theme .slider-label span {
    color: #d1d5db;
}

body.dark-theme .percentage-value {
    color: #8b5cf6;
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.dark-theme .slider {
    background: linear-gradient(90deg, #374151, #4b5563);
}

body.dark-theme .slider::-webkit-slider-thumb {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow:
        0 4px 12px rgba(139, 92, 246, 0.4),
        0 2px 6px rgba(0, 0, 0, 0.3);
}

body.dark-theme .slider::-webkit-slider-thumb:hover {
    box-shadow:
        0 6px 20px rgba(139, 92, 246, 0.5),
        0 4px 12px rgba(0, 0, 0, 0.4);
}

body.dark-theme .slider::-moz-range-thumb {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow:
        0 4px 12px rgba(139, 92, 246, 0.4),
        0 2px 6px rgba(0, 0, 0, 0.3);
}

body.dark-theme .range-labels {
    color: #9ca3af;
}

body.dark-theme .info-section {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(167, 139, 250, 0.15));
    border-color: rgba(139, 92, 246, 0.3);
    border-left-color: #8b5cf6;
}

body.dark-theme .info-title {
    color: #a78bfa;
}

body.dark-theme .info-text {
    color: #d1d5db;
}

body.dark-theme .content::-webkit-scrollbar-track {
    background: rgba(68, 68, 68, 0.5);
}

body.dark-theme .content::-webkit-scrollbar-thumb {
    background: rgba(139, 92, 246, 0.6);
    border-radius: 6px;
}

body.dark-theme .content::-webkit-scrollbar-thumb:hover {
    background: rgba(139, 92, 246, 0.8);
}

/* 主题选择器样式 */
.theme-selector-container {
    margin: 20px 0;
}

.theme-selector-track {
    position: relative;
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 25px;
    padding: 4px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
}

.theme-selector-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(20% - 4px);
    height: calc(100% - 8px);
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.theme-option {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
    border-radius: 20px;
    min-height: 60px;
}

.theme-option:hover {
    transform: translateY(-2px);
}

.theme-option.active {
    color: white;
}

.theme-option-icon {
    font-size: 20px;
    margin-bottom: 4px;
    transition: transform 0.3s ease;
}

.theme-option:hover .theme-option-icon {
    transform: scale(1.1);
}

.theme-option-text {
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    transition: all 0.3s ease;
}

.theme-option[data-theme="system"]:hover,
.theme-option[data-theme="system"].active {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
}

.theme-option[data-theme="browser"]:hover,
.theme-option[data-theme="browser"].active {
    background: rgba(139, 92, 246, 0.2);
    color: #8b5cf6;
}

.theme-option[data-theme="dark"]:hover,
.theme-option[data-theme="dark"].active {
    background: rgba(31, 41, 55, 0.2);
    color: #1f2937;
}

.theme-option[data-theme="light"]:hover,
.theme-option[data-theme="light"].active {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
}

.theme-option[data-theme="default"]:hover,
.theme-option[data-theme="default"].active {
    background: rgba(16, 185, 129, 0.2);
    color: #10b981;
}

/* 深色主题下的主题选择器样式 */
body.dark-theme .theme-selector-track {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme .theme-option {
    color: #9ca3af;
}

body.dark-theme .theme-option.active {
    color: white;
}





.btn-primary:hover {
    background: #106ebe;
}

/* 动画关键帧 */
@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* 搜索引擎颜色主题 */
.baidu {
    background: none;
}

.bing {
    background: none;
}

.google {
    background: none;
}

.kimi {
    background: none;
}

.qihoo {
    background: none;
}

.sogou {
    background: none;
}

.zhihu {
    background: none;
}

.github {
    background: none;
}

.douban {
    background: none;
}

.yandex {
    background: none;
}

.dev {
    background: none;
}

.bilibili {
    background: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .engines-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }

    .engine-icon {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .add-icon {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }
}

/* 收藏夹背景遮罩样式 */
.bookmark-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    visibility: hidden;
}

.bookmark-backdrop.show {
    opacity: 1;
    visibility: visible;
}

body.dark-theme .bookmark-backdrop {
    background: rgba(0, 0, 0, 0.6);
}

/* 收藏夹面板样式 */
.bookmark-panel {
    position: fixed;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    max-width: 90vw;
    height: 600px;
    max-height: calc(100vh - 200px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    z-index: 10001;
    display: none;
    flex-direction: column;
    overflow: hidden;
    min-height: 400px;
    visibility: hidden;
}

.fav-search-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    visibility: hidden;
}

.fav-search-backdrop.show {
    opacity: 1;
    visibility: visible;
}

body.dark-theme .fav-search-backdrop {
    background: rgba(0, 0, 0, 0.6);
}

.fav-search-console {
    position: fixed;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    max-width: 90vw;
    height: 600px;
    max-height: calc(100vh - 200px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    z-index: 10002;
    display: none;
    flex-direction: column;
    overflow: hidden;
    visibility: hidden;
}

.fav-search-console.show {
    display: flex;
    visibility: visible;
    animation: slideUpPanel 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fav-search-console.hide {
    animation: slideDownPanel 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes fadeOutScale {
    from {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    to {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.98);
    }
}

.fav-search-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: transparent;
}

.fav-search-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid #e0e7ff;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.85);
}

.fav-search-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.12);
}

body.dark-theme .fav-search-input {
    background: rgba(68, 68, 68, 0.8);
    border-color: #555;
    color: #e8eaed;
}

body.dark-theme .fav-search-input:focus {
    border-color: #667eea;
}

.fav-search-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fee2e2;
    color: #dc2626;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10003;
    font-size: 16px;
    font-weight: bold;
}

.fav-search-close:hover {
    background: #dc2626;
    color: white;
}

.fav-search-results {
    display: flex;
    flex-direction: column;
    padding: 20px;
    overflow-y: auto;
}

.fav-search-results::-webkit-scrollbar {
    width: 10px;
}

.fav-search-results::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

.fav-search-results::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.4);
    border-radius: 6px;
}

.fav-search-results::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.6);
}

.fav-result-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.fav-result-card:hover {
    transform: translateY(-2px);
    background: rgba(102, 126, 234, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.fav-result-favicon {
    width: 32px;
    height: 32px;
    margin-right: 16px;
    border-radius: 6px;
    background: #f0f9ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    overflow: hidden;
}

.fav-result-content {
    flex: 1;
    min-width: 0;
}

.fav-result-title {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fav-result-url {
    font-size: 13px;
    color: #6b7280;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.keyboard-selected {
    background: rgba(102, 126, 234, 0.15);
}

.search-highlight {
    background: linear-gradient(transparent 60%, #fde68a 60%);
}

body.dark-theme .fav-search-console {
    background: rgba(42, 42, 42, 0.95);
    border-color: rgba(68, 68, 68, 0.8);
}

body.dark-theme .fav-result-favicon {
    background: rgba(255, 255, 255, 0.1);
}

body.dark-theme .fav-result-title {
    color: #e5e7eb;
}

body.dark-theme .fav-result-url {
    color: #9ca3af;
}

.bookmark-panel.show {
    display: flex;
    visibility: visible;
    animation: slideUpPanel 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.bookmark-panel.hide {
    animation: slideDownPanel 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

body.dark-theme .bookmark-panel {
    background: rgba(42, 42, 42, 0.95);
    border-color: rgba(68, 68, 68, 0.8);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.bookmark-header {
    padding: 20px;
    background: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.dark-theme .bookmark-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.bookmark-search-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.bookmark-search-box {
    max-width: 600px;
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #e0e7ff;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.bookmark-search-box:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

body.dark-theme .bookmark-search-box {
    background: rgba(68, 68, 68, 0.8);
    border-color: #555;
    color: #e8eaed;
}

body.dark-theme .bookmark-search-box:focus {
    border-color: #667eea;
}

.bookmark-main-content {
    display: flex;
    flex: 1;
    min-height: 0;
}

.bookmark-sidebar {
    width: 280px;
    background: transparent;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

#bookmarkFolderList {
    display: flex;
    flex-direction: column;
    flex: 1;
}

body.dark-theme .bookmark-sidebar {
    border-right-color: rgba(255, 255, 255, 0.1);
}

.bookmark-list {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    overflow-x: hidden;
    /* 隐藏横向滚动条 */
    word-wrap: break-word;
    /* 允许折行 */
}

.folder-item {
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    pointer-events: auto;
    /* 确保可点击 */
    user-select: none;
    /* 禁止选中文本 */
}

.folder-item:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(5px);
}

.folder-item.active {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 文件夹列表空白占位符 */
.folder-spacer {
    flex: 1;
    min-height: 20px;
}

/* 最近删除文件夹特殊样式 */
.folder-item-deleted {
    /* 不需要额外样式，通过spacer自动推到底部 */
}

.folder-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.folder-name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.folder-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.folder-item:not(.active) .folder-count {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.bookmark-item {
    display: flex;
    align-items: flex-start;
    /* 修改为 flex-start 支持多行内容 */
    padding: 16px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
    word-wrap: break-word;
    /* 允许折行 */
    min-height: 64px;
    /* 设置最小高度 */
}

body.dark-theme .bookmark-item {
    background: rgba(68, 68, 68, 0.8);
}

.bookmark-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-left-color: #667eea;
}

.bookmark-favicon {
    width: 32px;
    height: 32px;
    margin-right: 16px;
    border-radius: 6px;
    background: #f0f9ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

body.dark-theme .bookmark-favicon {
    background: rgba(255, 255, 255, 0.1);
}

.bookmark-content {
    flex: 1;
    min-width: 0;
    /* 允许内容区域缩小 */
    word-wrap: break-word;
    /* 允许折行 */
}

.bookmark-title {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
    line-height: 1.3;
}

body.dark-theme .bookmark-title {
    color: #e8eaed;
}

.bookmark-description {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
    margin-bottom: 6px;
}

body.dark-theme .bookmark-description {
    color: #9aa0a6;
}

.bookmark-url {
    font-size: 12px;
    color: #9ca3af;
    text-decoration: none;
    word-break: break-all;
    /* 强制折行长网址 */
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    /* 限制为最多2行 */
    overflow: hidden;
    line-height: 1.4;
}

.bookmark-actions {
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.bookmark-item:hover .bookmark-actions {
    opacity: 1;
}

.action-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.edit-icon {
    background: #fef3c7;
    color: #d97706;
}

.edit-icon:hover {
    background: #fbbf24;
    color: white;
}

.delete-icon {
    background: #fee2e2;
    color: #dc2626;
}

.delete-icon:hover {
    background: #ef4444;
    color: white;
}

.info-icon {
    background: #dbeafe;
    color: #2563eb;
}

.info-icon:hover {
    background: #3b82f6;
    color: white;
}

.restore-icon {
    background: #dbeafe;
    color: #2563eb;
}

.restore-icon:hover {
    background: #2563eb;
    color: white;
}

.permanent-delete-icon {
    background: #fee2e2;
    color: #dc2626;
}

.permanent-delete-icon:hover {
    background: #dc2626;
    color: white;
}

/* 多选功能样式 */
.multi-select-icon {
    background: #e0f2fe;
    color: #0077be;
}

.multi-select-icon:hover {
    background: #0077be;
    color: white;
}

.checkbox-icon {
    background: #f0f9ff;
    color: #0ea5e9;
    position: relative;
    user-select: none;
}

.checkbox-icon.checked {
    background: #0ea5e9;
    color: white;
}

.bookmark-item.selected {
    background: rgba(14, 165, 233, 0.1);
    border-left-color: #0ea5e9;
}

.multi-select-header {
    background: rgba(14, 165, 233, 0.05);
    border: 1px solid rgba(14, 165, 233, 0.2);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 16px;
}

.multi-select-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.select-count {
    font-weight: 600;
    color: #0ea5e9;
}

.multi-select-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.exit-multi-select {
    background: #f3f4f6;
    color: #374151;
}

.exit-multi-select:hover {
    background: #e5e7eb;
}

.multi-select-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bulk-folder-select {
    padding: 4px 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 12px;
    background: white;
}

.move-selected {
    background: #10b981;
    color: white;
}

.move-selected:hover {
    background: #059669;
}

.delete-selected {
    background: #ef4444;
    color: white;
}

.delete-selected:hover {
    background: #dc2626;
}

/* 深色主题适配 */
body.dark-theme .multi-select-header {
    background: rgba(14, 165, 233, 0.1);
    border-color: rgba(14, 165, 233, 0.3);
}

body.dark-theme .bookmark-item.selected {
    background: rgba(14, 165, 233, 0.2);
}

body.dark-theme .bulk-folder-select {
    background: #374151;
    border-color: #4b5563;
    color: #f9fafb;
}

.bookmark-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fee2e2;
    color: #dc2626;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10002;
    font-size: 16px;
    font-weight: bold;
    pointer-events: auto;
    /* 确保可点击 */
}

.bookmark-close-btn:hover {
    background: #dc2626;
    color: white;
}

body.dark-theme .bookmark-close-btn {
    background: rgba(220, 38, 38, 0.2);
    color: #ef4444;
}

body.dark-theme .bookmark-close-btn:hover {
    background: #dc2626;
    color: white;
}

body.dark-theme .restore-icon {
    background: rgba(37, 99, 235, 0.2);
    color: #60a5fa;
}

body.dark-theme .restore-icon:hover {
    background: #2563eb;
    color: white;
}

body.dark-theme .permanent-delete-icon {
    background: rgba(220, 38, 38, 0.2);
    color: #ef4444;
}

body.dark-theme .permanent-delete-icon:hover {
    background: #dc2626;
    color: white;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

body.dark-theme .empty-state {
    color: #9aa0a6;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* 收藏夹滚动条样式 */
.bookmark-sidebar::-webkit-scrollbar,
.bookmark-list::-webkit-scrollbar {
    width: 6px;
}

.bookmark-sidebar::-webkit-scrollbar-track,
.bookmark-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.bookmark-sidebar::-webkit-scrollbar-thumb,
.bookmark-list::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 3px;
}

.bookmark-sidebar::-webkit-scrollbar-thumb:hover,
.bookmark-list::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.5);
}

@keyframes slideUpPanel {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(50px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

@keyframes slideDownPanel {
    from {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }

    to {
        opacity: 0;
        transform: translateX(-50%) translateY(50px) scale(0.95);
    }
}

/* 响应式调整收藏夹面板 */
@media (max-width: 768px) {
    .bookmark-panel {
        width: 95vw;
        height: 70vh;
        bottom: 100px;
    }

    .bookmark-main-content {
        flex-direction: column;
    }

    .bookmark-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        padding: 15px;
        max-height: 150px;
    }

    body.dark-theme .bookmark-sidebar {
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }
}

/* ========== 历史记录功能样式 ========== */
/* 历史记录背景遮罩样式 */
.history-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    visibility: hidden;
}

.history-backdrop.show {
    opacity: 1;
    visibility: visible;
}

body.dark-theme .history-backdrop {
    background: rgba(0, 0, 0, 0.6);
}

/* 历史记录面板样式 */
.history-panel {
    position: fixed;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    max-width: 90vw;
    height: 600px;
    max-height: calc(100vh - 200px);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    z-index: 10001;
    display: none;
    flex-direction: column;
    overflow: hidden;
    min-height: 400px;
    visibility: hidden;
}

.history-panel.show {
    display: flex;
    visibility: visible;
    animation: slideUpPanel 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.history-panel.hide {
    animation: slideDownPanel 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

body.dark-theme .history-panel {
    background: rgba(42, 42, 42, 0.95);
    border-color: rgba(68, 68, 68, 0.8);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
}

.history-header {
    padding: 20px;
    background: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.dark-theme .history-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

.history-search-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.history-search-box {
    max-width: 100%;
    width: 100%;
    padding: 12px 20px;
    border: 2px solid #e0e7ff;
    border-radius: 25px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
}

.history-search-box:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

body.dark-theme .history-search-box {
    background: rgba(68, 68, 68, 0.8);
    border-color: #555;
    color: #e8eaed;
}

body.dark-theme .history-search-box:focus {
    border-color: #667eea;
}

.history-main-content {
    display: flex;
    flex: 1;
    min-height: 0;
}

.history-sidebar {
    width: 280px;
    background: transparent;
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    padding: 20px;
    overflow-y: auto;
}

body.dark-theme .history-sidebar {
    border-right-color: rgba(255, 255, 255, 0.1);
}

.history-list {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    overflow-x: hidden;
    word-wrap: break-word;
}

.time-range-item {
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 8px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    pointer-events: auto;
    user-select: none;
}

.time-range-item:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateX(5px);
}

.time-range-item.active {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.time-range-icon {
    width: 20px;
    height: 20px;
    margin-right: 12px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.time-range-name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.time-range-count {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.time-range-item:not(.active) .time-range-count {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.history-item {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 4px solid transparent;
    word-wrap: break-word;
    min-height: 64px;
}

body.dark-theme .history-item {
    background: rgba(68, 68, 68, 0.8);
}

.history-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-left-color: #667eea;
}

/* 键盘导航选中历史项时的高亮样式 */
.history-item.selected {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border-left-color: #667eea;
    background: rgba(255, 255, 255, 0.9);
}

body.dark-theme .history-item.selected {
    background: rgba(68, 68, 68, 0.85);
}

.history-favicon {
    width: 32px;
    height: 32px;
    margin-right: 16px;
    border-radius: 6px;
    background: #f0f9ff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

body.dark-theme .history-favicon {
    background: rgba(255, 255, 255, 0.1);
}

.history-content {
    flex: 1;
    min-width: 0;
    word-wrap: break-word;
}

.history-title {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 4px;
    line-height: 1.3;
}

body.dark-theme .history-title {
    color: #e8eaed;
}

.history-time {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.4;
    margin-bottom: 6px;
}

body.dark-theme .history-time {
    color: #9aa0a6;
}

.history-url {
    font-size: 12px;
    color: #9ca3af;
    text-decoration: none;
    word-break: break-all;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    line-height: 1.4;
}

.history-actions {
    display: flex;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.history-item:hover .history-actions {
    opacity: 1;
}

.history-close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #fee2e2;
    color: #dc2626;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10002;
    font-size: 16px;
    font-weight: bold;
    pointer-events: auto;
}

.history-close-btn:hover {
    background: #dc2626;
    color: white;
}

body.dark-theme .history-close-btn {
    background: rgba(220, 38, 38, 0.2);
    color: #ef4444;
}

body.dark-theme .history-close-btn:hover {
    background: #dc2626;
    color: white;
}

/* 历史记录滚动条样式 */
.history-sidebar::-webkit-scrollbar,
.history-list::-webkit-scrollbar {
    width: 6px;
}

.history-sidebar::-webkit-scrollbar-track,
.history-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 3px;
}

.history-sidebar::-webkit-scrollbar-thumb,
.history-list::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.3);
    border-radius: 3px;
}

.history-sidebar::-webkit-scrollbar-thumb:hover,
.history-list::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.5);
}

/* 响应式调整历史记录面板 */
@media (max-width: 768px) {
    .history-panel {
        width: 95vw;
        height: 70vh;
        bottom: 100px;
    }

    .history-main-content {
        flex-direction: column;
    }

    .history-sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        padding: 15px;
        max-height: 150px;
    }

    body.dark-theme .history-sidebar {
        border-bottom-color: rgba(255, 255, 255, 0.1);
    }
}

/* 编辑书签弹窗样式 */
.bookmark-edit-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10002;
    /* 在收藏夹面板(10001)之上，但不要太高 */
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    /* 默认不接收点击，让收藏夹可以交互 */
}

.bookmark-edit-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    /* 降低遮罩透明度，让收藏夹更清晰可见 */
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    cursor: default;
    pointer-events: none;
    /* 遮罩层不接收点击事件 */
}

.bookmark-edit-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 90%;
    max-width: 480px;
    max-height: 90vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: auto;
    z-index: 10003;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) translateY(-20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) translateY(0) scale(1);
    }
}

.bookmark-edit-header {
    padding: 24px 24px 16px;
    border-bottom: 1px solid #e8eaed;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bookmark-edit-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
}

.bookmark-edit-close {
    width: 32px;
    height: 32px;
    border: none;
    background: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    color: #6b7280;
    transition: all 0.2s ease;
    pointer-events: auto;
    /* 确保按钮可以接收点击 */
}

.bookmark-edit-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.bookmark-edit-content {
    padding: 24px;
}

.bookmark-edit-field {
    margin-bottom: 20px;
}

.bookmark-edit-field:last-child {
    margin-bottom: 0;
}

.bookmark-edit-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
    color: #374151;
}

.bookmark-edit-input,
.bookmark-edit-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    background: #ffffff;
    color: #1f2937;
    transition: none;
    /* 移除过渡动画 */
    outline: none;
    pointer-events: auto;
    /* 确保输入框可以接收事件 */
    z-index: 10005;
    /* 确保输入框在前面 */
    position: relative;
    /* 为z-index生效添加定位 */
}

/* 移除所有聚焦样式 */
.bookmark-edit-input:focus,
.bookmark-edit-select:focus,
.bookmark-edit-input:active,
.bookmark-edit-select:active,
.bookmark-edit-input:hover,
.bookmark-edit-select:hover {
    border-color: #e5e7eb;
    /* 保持原始边框颜色 */
    box-shadow: none;
    /* 移除阴影 */
    outline: none;
    /* 移除轮廓 */
    background: #ffffff;
    /* 保持背景颜色 */
}

.bookmark-edit-input::placeholder {
    color: #9ca3af;
}

.bookmark-edit-footer {
    padding: 16px 24px 24px;
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.bookmark-edit-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 80px;
    pointer-events: auto;
    /* 确保按钮可以接收点击 */
    z-index: 10005;
    /* 确保按钮在前面 */
    position: relative;
    /* 为z-index生效添加定位 */
}

.bookmark-edit-cancel {
    background: #f3f4f6;
    color: #374151;
}

.bookmark-edit-cancel:hover {
    background: #e5e7eb;
}

.bookmark-edit-save {
    background: #3b82f6;
    color: #ffffff;
}

.bookmark-edit-save:hover {
    background: #2563eb;
}

/* 深色主题适配 */
body.dark-theme .bookmark-edit-dialog {
    background: #1f2937;
}

body.dark-theme .bookmark-edit-header {
    border-bottom-color: #374151;
}

body.dark-theme .bookmark-edit-header h3 {
    color: #f9fafb;
}

body.dark-theme .bookmark-edit-close {
    color: #9ca3af;
}

body.dark-theme .bookmark-edit-close:hover {
    background: #374151;
    color: #f3f4f6;
}

body.dark-theme .bookmark-edit-field label {
    color: #f3f4f6;
}

body.dark-theme .bookmark-edit-input,
body.dark-theme .bookmark-edit-select {
    background: #374151;
    border-color: #4b5563;
    color: #f9fafb;
}

/* 深色主题下也移除聚焦样式 */
body.dark-theme .bookmark-edit-input:focus,
body.dark-theme .bookmark-edit-select:focus,
body.dark-theme .bookmark-edit-input:active,
body.dark-theme .bookmark-edit-select:active,
body.dark-theme .bookmark-edit-input:hover,
body.dark-theme .bookmark-edit-select:hover {
    border-color: #4b5563;
    /* 保持原始边框颜色 */
    box-shadow: none;
    /* 移除阴影 */
    outline: none;
    /* 移除轮廓 */
    background: #374151;
    /* 保持背景颜色 */
}

body.dark-theme .bookmark-edit-input::placeholder {
    color: #6b7280;
}

body.dark-theme .bookmark-edit-cancel {
    background: #374151;
    color: #f3f4f6;
}

body.dark-theme .bookmark-edit-cancel:hover {
    background: #4b5563;
}

.container {
    width: 100vw;
    height: 100vh;
    display: flex;
    position: relative;
    border: none;
    /* 移除边框 */
}

/* 搜索框样式 */
.search-container {
    position: fixed;
    top: 60px;
    /* 可通过控制器调节 */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 700px;
    z-index: 2000;
    transition: top 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 点击多样化图标时折叠状态 */
.search-container.collapsed {
    display: none;
}

.search-box {
    background: rgba(255, 255, 255, var(--search-box-bg-opacity, 0.9));
    border: 1px solid #e1e5e9;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

/* 当有扩展面板显示时，使用较小的圆角 */
.search-box.expanded {
    border-radius: 24px;
}

.search-box:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border-color: #c8d1db;
}

.search-box:focus-within {
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.15);
    border-color: #4285f4;
}

/* 深色模式适配 */
body.dark-theme .search-box {
    background: rgba(45, 45, 45, var(--search-box-bg-opacity, 0.9));
    border-color: #404040;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

body.dark-theme .search-box:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
    border-color: #505050;
}

body.dark-theme .search-box:focus-within {
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.3);
    border-color: #4285f4;
}

.search-input-container {
    display: flex;
    align-items: center;
    padding: 15px;
    cursor: text;
    /* 添加文本光标样式，提示用户可点击输入 */
}

.logo-button {
    width: 32px;
    height: 32px;
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin-right: 12px;
    transition: all 0.2s ease;
}

.logo-button:hover {
    background: #e8f0fe;
    border-color: #4285f4;
}

body.dark-theme .logo-button {
    background: #404040;
    border-color: #505050;
}

body.dark-theme .logo-button:hover {
    background: #1e3a8a;
    border-color: #4285f4;
}

.logo-text {
    color: white;
    font-weight: bold;
    font-size: 14px;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    color: #202124;
    background: transparent;
    user-select: text;
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
}

.search-input::placeholder {
    color: #9aa0a6;
}

body.dark-theme .search-input {
    color: #e8eaed;
}

body.dark-theme .search-input::placeholder {
    color: #9aa0a6;
}

.clear-button {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.2s ease;
    margin-left: 8px;
}

.clear-button:hover {
    background: #f1f3f4;
}

.clear-button span {
    font-size: 16px;
    color: #5f6368;
    font-weight: 300;
    line-height: 1;
}

body.dark-theme .clear-button:hover {
    background: #404040;
}

body.dark-theme .clear-button span {
    color: #9aa0a6;
}

.search-engines {
    display: none;
    padding: 16px;
    background: rgba(255, 255, 255, var(--search-box-bg-opacity, 0.9));
    animation: slideDown 0.2s ease;
}

body.dark-theme .search-engines {
    background: rgba(45, 45, 45, var(--search-box-bg-opacity, 0.9));
}

.search-engines.show {
    display: block;
}

.engines-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
}

.engine-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    padding: 12px 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.engine-item:hover {
    background: #f8f9fa;
}

body.dark-theme .engine-item:hover {
    background: #404040;
}

.engine-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    font-size: 22px;
    color: white;
}

.engine-name {
    font-size: 11px;
    color: #5f6368;
}

body.dark-theme .engine-name {
    color: #9aa0a6;
}



.search-history {
    display: none;
    padding: 16px;
    background: rgba(255, 255, 255, var(--search-box-bg-opacity, 0.9));
    animation: slideDown 0.2s ease;
    max-height: 400px;
    overflow-y: auto;
}

body.dark-theme .search-history {
    background: rgba(45, 45, 45, var(--search-box-bg-opacity, 0.9));
}

.search-history.show {
    display: block;
}

.search-history::-webkit-scrollbar {
    width: 8px;
}

.search-history::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.search-history::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.search-history::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.5);
}

body.dark-theme .search-history::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

body.dark-theme .search-history::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
}

body.dark-theme .search-history::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    min-height: 32px;
    padding: 6px 4px;
}

.history-title {
    color: #5f6368;
    font-size: 13px;
}

body.dark-theme .history-title {
    color: #9aa0a6;
}

.clear-history {
    color: #70757a;
    font-size: 12px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.clear-history:hover {
    background: #f8f9fa;
}

body.dark-theme .clear-history {
    color: #9aa0a6;
}

body.dark-theme .clear-history:hover {
    background: #404040;
}

.history-item {
    display: flex;
    align-items: center;
    padding: 6px 4px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    min-height: 32px;
}

.history-item:hover {
    background: #f8f9fa;
}

body.dark-theme .history-item:hover {
    background: #404040;
}

.history-icon {
    width: 16px;
    height: 16px;
    margin-right: 12px;
    opacity: 0.6;
}

.history-text {
    flex: 1;
    color: #202124;
    font-size: 14px;
}

body.dark-theme .history-text {
    color: #e8eaed;
}

.delete-item {
    opacity: 0;
    padding: 8px 10px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-size: 16px;
    font-weight: bold;
    color: #dc2626;
    min-width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.history-item:hover .delete-item {
    opacity: 0.8;
}

.delete-item:hover {
    opacity: 1 !important;
    background: #fee2e2;
    color: #dc2626;
    transform: scale(1.1);
}

body.dark-theme .delete-item {
    color: #f87171;
}

body.dark-theme .delete-item:hover {
    background: #450a0a;
    color: #fca5a5;
}

/* 搜索提示词样式 */
.search-suggestions {
    display: none;
    padding: 16px;
    background: rgba(255, 255, 255, var(--search-box-bg-opacity, 0.9));
    animation: slideDown 0.2s ease;
    max-height: 400px;
    overflow-y: auto;
}

body.dark-theme .search-suggestions {
    background: rgba(45, 45, 45, var(--search-box-bg-opacity, 0.9));
}

.search-suggestions.show {
    display: block;
}

.search-suggestions::-webkit-scrollbar {
    width: 8px;
}

.search-suggestions::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.search-suggestions::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.search-suggestions::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.5);
}

body.dark-theme .search-suggestions::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

body.dark-theme .search-suggestions::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
}

body.dark-theme .search-suggestions::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.suggestions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    min-height: 32px;
    padding: 6px 4px;
}

.suggestions-title {
    color: #5f6368;
    font-size: 13px;
}

body.dark-theme .suggestions-title {
    color: #9aa0a6;
}

.suggestions-loading {
    color: #70757a;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
}

.loading-spinner {
    display: inline-block;
    font-size: 14px;
    animation: rotate 1s linear infinite;
}

body.dark-theme .suggestions-loading {
    color: #9aa0a6;
}

.suggestion-item {
    display: flex;
    align-items: center;
    padding: 6px 4px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    min-height: 32px;
}

.suggestion-item:hover,
.suggestion-item.selected {
    background: #f8f9fa;
}

body.dark-theme .suggestion-item:hover,
body.dark-theme .suggestion-item.selected {
    background: #404040;
}

.suggestion-icon {
    width: 16px;
    height: 16px;
    margin-right: 12px;
    opacity: 0.6;
}

.suggestion-text {
    flex: 1;
    color: #202124;
    font-size: 14px;
}

body.dark-theme .suggestion-text {
    color: #e8eaed;
}

.suggestion-source {
    color: #70757a;
    font-size: 11px;
    opacity: 0.8;
    margin-left: 8px;
}

body.dark-theme .suggestion-source {
    color: #9aa0a6;
}

.main-page {
    width: 100%;
    /* 确保主页占满全屏 */
    height: 100vh;
    border: none;
    transition: width 0.3s ease;
    z-index: 1;
    position: relative;
}

.console-page {
    width: 0%;
    /* 默认隐藏设置页面 */
    height: 100vh;
    border: none;
    transition: width 0.3s ease;
    z-index: 100;
    position: relative;
    display: none;
    /* 默认隐藏 */
}

/* Dock栏容器样式 - 确保在最高层级 */
.dock-page {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100px;
    pointer-events: none;
    z-index: 10000 !important;
}

/* 为iframe元素添加层级管理 */
.main-page iframe {
    z-index: 1;
    position: relative;
}

.console-page iframe {
    z-index: 100;
    position: relative;
}

.dock-page iframe {
    z-index: 10000 !important;
    position: relative;
    pointer-events: auto;
}

/* 控制器窗口样式 */
.controller-window {
    position: absolute;
    top: 50px;
    left: 50px;
    width: 420px;
    height: 650px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    z-index: 1000;
    overflow: hidden;
    resize: both;
    min-width: 350px;
    min-height: 450px;
    animation: windowSlideIn 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.title-bar {
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    cursor: move;
    user-select: none;
    position: relative;
    box-shadow: 0 2px 10px rgba(102, 126, 234, 0.2);
}

.title-text {
    flex: 1;
    color: white;
    font-size: 16px;
    font-weight: 600;
    padding-left: 20px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.window-controls {
    display: flex;
    height: 100%;
}

.control-btn {
    width: 50px;
    height: 100%;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s ease;
    border-radius: 0;
}

.control-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
}

.close-btn:hover {
    background: #ff4757 !important;
    color: white !important;
}

.content {
    height: calc(100% - 50px);
    padding: 25px;
    overflow-y: auto;
    background: transparent;
}

.control-section {
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.control-section:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.section-title {
    font-size: 16px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 18px;
    padding-bottom: 10px;
    border-bottom: 2px solid transparent;
    background: linear-gradient(90deg, #667eea, #764ba2) left bottom/0% 2px no-repeat;
    background-size: 100% 2px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title::before {
    content: '⚙️';
    font-size: 14px;
}

.slider-container {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    margin-bottom: 15px;
    transition: all 0.2s ease;
}

.slider-container:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

.slider-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.slider-label span {
    font-size: 14px;
    color: #374151;
    font-weight: 500;
}

.percentage-value {
    font-weight: 700;
    color: #667eea;
    font-size: 16px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.slider {
    width: 100%;
    height: 6px;
    border-radius: 6px;
    background: linear-gradient(90deg, #e8f4f8, #f1f5f9);
    outline: none;
    -webkit-appearance: none;
    margin: 12px 0;
    position: relative;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    cursor: pointer;
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 4px 12px rgba(102, 126, 234, 0.3),
        0 2px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
    box-shadow:
        0 6px 20px rgba(102, 126, 234, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.15);
}

.slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    cursor: pointer;
    border: 3px solid rgba(255, 255, 255, 0.9);
    box-shadow:
        0 4px 12px rgba(102, 126, 234, 0.3),
        0 2px 6px rgba(0, 0, 0, 0.1);
}

.range-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    color: #6b7280;
    margin-top: 8px;
    font-weight: 500;
}

.info-section {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.2);
    border-left: 4px solid #667eea;
    position: relative;
    overflow: hidden;
}

.info-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.info-title {
    font-weight: 700;
    color: #667eea;
    margin-bottom: 12px;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-title::before {
    content: '💡';
    font-size: 14px;
}

.info-text {
    font-size: 13px;
    color: #4b5563;
    line-height: 1.6;
    font-weight: 400;
}

/* 滚动条样式 */
.content::-webkit-scrollbar {
    width: 8px;
}

.content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 5px 0;
}

.content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.6), rgba(118, 75, 162, 0.6));
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
    transition: all 0.3s ease;
}

.content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8));
    transform: scaleY(1.1);
}

/* 快捷操作按钮样式 */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.quick-btn {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
    white-space: nowrap;
}

.quick-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.quick-btn:hover::before {
    left: 100%;
}

.quick-btn:hover {
    background: linear-gradient(135deg, #5a67d8, #6b46c1);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.35);
}

.quick-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.25);
}

.btn-icon {
    font-size: 14px;
    min-width: 16px;
    text-align: center;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
    display: inline-block;
}

.btn-text {
    font-size: 11px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    display: inline-block;
}

/* 深色主题下的快捷按钮 */
body.dark-theme .quick-btn {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

body.dark-theme .quick-btn:hover {
    background: linear-gradient(135deg, #7c3aed, #8b5cf6);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
}

/* 窗口动画效果 */
@keyframes windowSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
        filter: blur(4px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
        filter: blur(0);
    }
}

/* ======================== */
/* Dock栏样式 - 从dock.html合并而来 */
/* ======================== */

/* 移除所有dock项目可能的蓝色边框 - 全面规则 */
.dock-item,
.dock-item *,
.dock-icon,
.dock-icon *,
.icon-text,
.dock-container,
.dock-container * {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-focus-ring-color: transparent !important;
}

.dock-item:focus,
.dock-item:active,
.dock-item:hover:focus,
.dock-item:visited,
.dock-item:target,
.dock-icon:focus,
.dock-icon:active,
.dock-icon:hover:focus,
.dock-icon:visited,
.dock-icon:target,
.icon-text:focus,
.icon-text:active,
.icon-text:hover:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-focus-ring-color: transparent !important;
}

/* 移除tabindex可能的焦点样式 */
.dock-item[tabindex],
.dock-icon[tabindex],
.icon-text[tabindex] {
    outline: none !important;
    border: none !important;
}

/* 深色主题样式 */
body.dark-theme .dock-container {
    background: rgba(42, 42, 42, 0.9);
    border-color: rgba(68, 68, 68, 0.8);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
}

body.dark-theme .dock-item:hover {
    background: rgba(255, 255, 255, 0.1);
}



.dock-container {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 8px 16px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 10000;
    /* 确保点击事件能正常触发 */
    pointer-events: auto;
}

.dock-item {
    width: 56px;
    height: 56px;
    margin: 0 4px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    /* 确保点击事件能正常触发 */
    pointer-events: auto;
    z-index: 1;
    /* 移除蓝色边框和outline */
    outline: none;
    border: none;
    background: none;
    user-select: none;
    /* 防止选中文本 */
}

/* 拖动状态样式 */
.dock-item.dragging {
    position: fixed !important;
    transform: scale(1.1) rotate(3deg);
    z-index: 10001 !important;
    opacity: 0.9;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4) !important;
    transition: none !important;
    cursor: grabbing !important;
    pointer-events: none !important;
}

/* 拖拽预览 - 跟随鼠标的半透明副本 */
.dock-item.drag-preview {
    position: fixed !important;
    transform: scale(1.05) rotate(1deg);
    z-index: 10002 !important;
    opacity: 0.85;
    pointer-events: none !important;
    transition: none !important;
    filter: drop-shadow(0 8px 32px rgba(0, 0, 0, 0.3));
    border-radius: 16px;
}

/* 原始元素隐藏状态 */
.dock-item.dragging-hidden {
    opacity: 0 !important;
    transform: scale(0.8) !important;
    pointer-events: none !important;
    transition: all 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
}

/* 移除占位符相关样式 */

/* 拖动过程中其他项目的动画 */
.dock-item.animating {
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* 鼠标样式 */
.dock-item {
    cursor: default !important;
}

.dock-item.grabbing {
    cursor: grabbing;
}

/* 拖动时dock容器样式 */
.dock-container.dragging {
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    background: rgba(255, 255, 255, 0.95);
}

/* 深色主题下的拖动容器 */
body.dark-theme .dock-container.dragging {
    background: rgba(42, 42, 42, 0.95);
}

.dock-item:focus {
    outline: none;
    border: none;
}

.dock-item:active {
    outline: none;
    border: none;
}

.dock-item:hover {
    transform: translateY(-8px) scale(1.1);
    background: rgba(255, 255, 255, 0.2);
    /* 确保悬停时不显示边框 */
    outline: none !important;
    border: none !important;
}

.dock-item:active {
    transform: translateY(-4px) scale(1.05);
}

.dock-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    /* 确保不阻塞父元素的点击事件 */
    pointer-events: none;
    /* 移除蓝色边框和outline */
    outline: none;
    border: none;
    /* 为SVG图标添加支持 */
    overflow: hidden;
}

/* SVG图标特定样式 */
.dock-icon svg {
    width: 100% !important;
    height: 100% !important;
    display: block !important;
    /* 确保颜色正确显示 */
    fill: currentColor;
    /* 适应容器大小 */
    max-width: 100%;
    max-height: 100%;
}

.dock-image-icon {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* 自定义图标的特殊样式 */
.dock-item[data-custom="true"] .dock-icon {
    /* 重置背景渐变，让SVG和图片显示自然颜色 */
    background: transparent;
}

/* 文字图标类型的背景会在JS中动态设置 */

.dock-icon:focus {
    outline: none;
    border: none;
}

/* Dock删除悬浮效果 */
.dock-item.hover-delete-ready {
    position: relative;
}

.dock-item.hover-delete-ready::after {
    content: 'Del';
    position: absolute;
    top: -35px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 71, 87, 0.9);
    color: white;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    animation: deleteHint 0.3s ease;
}

/* 自定义图标悬浮提示 */
.dock-item.hover-delete-ready[data-custom]::after {
    content: '自定义 Del';
    background: rgba(255, 71, 87, 0.9);
}

/* 默认图标（网页跳转）悬浮提示 */
.dock-item.hover-delete-ready.netease-music::after,
.dock-item.hover-delete-ready.bilibili::after,
.dock-item.hover-delete-ready.douyin::after,
.dock-item.hover-delete-ready.xiaohongshu::after,
.dock-item.hover-delete-ready.apple-music::after {
    content: '默认 Del';
    background: rgba(52, 152, 219, 0.9);
}

/* 系统功能图标悬浮提示 */
.dock-item.hover-delete-ready.add-app::after,
.dock-item.hover-delete-ready.cleanmymac::after,
.dock-item.hover-delete-ready.keynote::after,
.dock-item.hover-delete-ready.history-viewer::after,
.dock-item.hover-delete-ready.system-preferences::after {
    content: '系统功能';
    background: rgba(128, 128, 128, 0.9);
}

@keyframes deleteHint {
    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(5px);
    }

    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* 各应用的特定颜色 */
.netease-music .dock-icon {
    background: linear-gradient(135deg, #e60026, #cc001f);
}

.bilibili .dock-icon {
    background: linear-gradient(135deg, #fb7199, #e91e63);
}

.douyin .dock-icon {
    background: linear-gradient(135deg, #000000, #333333);
}

.xiaohongshu .dock-icon {
    background: linear-gradient(135deg, #ff2442, #e60026);
}

.add-app .dock-icon {
    background: #1de2ff;
}

.cleanmymac .dock-icon {
    background: #c800ff;
}

.apple-music .dock-icon {
    background: linear-gradient(135deg, #fa233b, #e60026);
}

.keynote .dock-icon {
    background: linear-gradient(135deg, #007aff, #0051d5);
}

.resource-station .dock-icon {
    background: transparent;
}

.history-viewer .dock-icon {
    background: #FF69B4;
}

.diversified-icons .dock-icon {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.system-preferences .dock-icon {
    background: #b5ffd3;
}



.dock-item .dock-icon:hover {
    transform: scale(1.05);
}

/* 图标字体样式 */
.icon-text {
    font-size: 18px;
    font-weight: bold;
    /* 确保不阻塞父元素的点击事件 */
    pointer-events: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .dock-container {
        padding: 6px 12px;
        border-radius: 20px;
    }

    .dock-item {
        width: 48px;
        height: 48px;
        margin: 0 2px;
    }

    .dock-icon {
        width: 40px;
        height: 40px;
        border-radius: 10px;
        font-size: 20px;
    }


}

/* 全局强制移除所有可能的蓝色边框和焦点样式 - 最终规则 */
* {
    -webkit-tap-highlight-color: transparent !important;
    -webkit-focus-ring-color: transparent !important;
}

*:focus {
    outline: none !important;
    border: none !important;
    box-shadow: none !important;
}

*:active {
    outline: none !important;
    border: none !important;
}

*:visited {
    outline: none !important;
    border: none !important;
}

/* 特别针对dock项目的强制规则 */
.dock-item,
.dock-item:focus,
.dock-item:active,
.dock-item:hover,
.dock-item:visited {
    outline: 0 !important;
    border: 0 !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

/* =======================
   Dock图标添加弹窗样式
   ======================= */

/* 弹窗遮罩 */
.dock-add-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 4000;
    display: none;
}

.dock-add-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

/* 弹窗主体 */
.dock-add-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    max-width: 90vw;
    max-height: 90vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 16px;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    animation: modalSlideIn 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

/* 弹窗动画 */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* 弹窗头部 */
.dock-add-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

.dock-add-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.dock-add-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    padding: 4px;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.dock-add-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333;
}

/* 弹窗内容 */
.dock-add-content {
    padding: 24px;
    max-height: 60vh;
    overflow-y: auto;
}

/* dock-add-content滚动条样式 */
.dock-add-content::-webkit-scrollbar {
    width: 8px;
}

.dock-add-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin: 5px 0;
}

.dock-add-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.6), rgba(118, 75, 162, 0.6));
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
    transition: all 0.3s ease;
}

.dock-add-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8), rgba(118, 75, 162, 0.8));
    transform: scaleY(1.1);
}

/* 深色主题滚动条样式 */
body.dark-theme .dock-add-content::-webkit-scrollbar-track {
    background: rgba(68, 68, 68, 0.5);
}

body.dark-theme .dock-add-content::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.6), rgba(167, 139, 250, 0.6));
    border-radius: 10px;
}

body.dark-theme .dock-add-content::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.8), rgba(167, 139, 250, 0.8));
}

.dock-add-field {
    margin-bottom: 24px;
}

.dock-add-field label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.dock-add-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease;
}

.dock-add-input:focus {
    outline: none;
    border-color: #007AFF;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.dock-add-help {
    font-size: 12px;
    color: #666;
    margin-top: 6px;
}

/* 图标输入方式选择 */
.icon-input-methods {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.5);
}

.icon-method-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.05);
}

.icon-tab {
    flex: 1;
    padding: 12px 16px;
    background: none;
    border: none;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #666;
}

.icon-tab.active {
    background: rgba(0, 122, 255, 0.1);
    color: #007AFF;
    font-weight: 500;
}

.icon-tab:hover:not(.active) {
    background: rgba(0, 0, 0, 0.05);
}

.icon-input-content {
    padding: 20px;
}

.icon-input-panel {
    display: block;
}

/* 文件上传区域 */
.icon-upload-area {
    text-align: center;
    padding: 20px;
}

.upload-btn {
    background: linear-gradient(135deg, #007AFF, #0051D5);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.upload-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.upload-help {
    font-size: 12px;
    color: #666;
    margin-top: 8px;
}

/* SVG输入框 */
.svg-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    background: rgba(255, 255, 255, 0.8);
    resize: vertical;
    min-height: 120px;
    transition: all 0.2s ease;
}

.svg-input:focus {
    outline: none;
    border-color: #007AFF;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

/* 文字图标输入 */
.text-icon-input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    background: rgba(255, 255, 255, 0.8);
    transition: all 0.2s ease;
}

.text-icon-input:focus {
    outline: none;
    border-color: #007AFF;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.text-icon-options {
    display: flex;
    gap: 20px;
    margin-top: 16px;
}

.color-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

.color-option label {
    font-size: 12px;
    margin: 0;
}

.color-option input[type="color"] {
    width: 40px;
    height: 32px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

/* 图标预览 */
.icon-preview-container {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding: 16px;
    background: rgba(0, 0, 0, 0.03);
    border-radius: 8px;
}

.preview-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.dock-icon-preview {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #9ca3af, #6b7280);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.dock-icon-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dock-icon-preview svg {
    width: 24px;
    height: 24px;
}

.preview-placeholder {
    opacity: 0.6;
}

/* 弹窗底部 */
.dock-add-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.1);
}

.dock-add-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dock-add-cancel {
    background: rgba(0, 0, 0, 0.1);
    color: #666;
}

.dock-add-cancel:hover {
    background: rgba(0, 0, 0, 0.15);
    color: #333;
}

.dock-add-save {
    background: linear-gradient(135deg, #007AFF, #0051D5);
    color: white;
}

.dock-add-save:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.dock-add-save:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 深色主题适配 */
body.dark-theme .dock-add-dialog {
    background: rgba(42, 42, 42, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme .dock-add-header {
    background: rgba(255, 255, 255, 0.05);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme .dock-add-header h3 {
    color: #ffffff;
}

body.dark-theme .dock-add-close {
    color: #cccccc;
}

body.dark-theme .dock-add-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

body.dark-theme .dock-add-field label {
    color: #cccccc;
}

body.dark-theme .dock-add-input {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

body.dark-theme .dock-add-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

body.dark-theme .dock-add-help {
    color: #999999;
}

body.dark-theme .icon-input-methods {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme .icon-method-tabs {
    background: rgba(0, 0, 0, 0.2);
}

body.dark-theme .icon-tab {
    color: #999999;
}

body.dark-theme .icon-tab.active {
    background: rgba(96, 165, 250, 0.2);
    color: #60a5fa;
}

body.dark-theme .icon-tab:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
}

body.dark-theme .svg-input {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

body.dark-theme .svg-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

body.dark-theme .text-icon-input {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

body.dark-theme .text-icon-input:focus {
    background: rgba(255, 255, 255, 0.15);
    border-color: #60a5fa;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

body.dark-theme .icon-preview-container {
    background: rgba(255, 255, 255, 0.05);
}

body.dark-theme .preview-label {
    color: #999999;
}

body.dark-theme .dock-add-footer {
    background: rgba(255, 255, 255, 0.05);
    border-top-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme .dock-add-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: #cccccc;
}

body.dark-theme .dock-add-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .dock-add-dialog {
        width: 95vw;
        margin: 20px;
    }

    .dock-add-content {
        padding: 16px;
    }

    .text-icon-options {
        flex-direction: column;
        gap: 12px;
    }

    .icon-method-tabs {
        flex-direction: column;
    }

    .icon-tab {
        text-align: left;
    }
}

/* TVT iframe 控制相关样式 */
.tvt-control-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
    justify-content: center;
}

.tvt-control-actions .quick-btn {
    flex: 1;
    min-width: 100px;
}

.tvt-control-actions .quick-btn[data-action="toggle-tvt"] {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.tvt-control-actions .quick-btn[data-action="reset-tvt"] {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

/* 壁纸位置控制操作区域样式 */
.wallpaper-control-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
    justify-content: center;
}

.wallpaper-control-row {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.wallpaper-control-actions .quick-btn {
    flex: 1;
    min-width: 60px;
    max-width: 80px;
    font-size: 10px;
    padding: 10px 8px;
    gap: 4px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

.wallpaper-control-actions .quick-btn .btn-icon {
    font-size: 12px;
    min-width: 14px;
}

.wallpaper-control-actions .quick-btn .btn-text {
    font-size: 9px;
    line-height: 1.2;
}

.wallpaper-control-actions .quick-btn[data-action="reset-wallpaper-position"] {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
}

/* Candy Theme - Dock & Search UI Refinement */
body.theme-purple .dock-container {
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    box-shadow:
        0 8px 32px rgba(142, 197, 252, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    padding-bottom: 12px;
    /* Slight adjustment for Macaron look */
}

body.theme-purple .dock-container:hover {
    background: rgba(255, 255, 255, 0.55);
    box-shadow:
        0 12px 40px rgba(142, 197, 252, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transform: translateX(-50%) translateY(-4px);
}

body.theme-purple .search-box {
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid transparent;
    border-radius: 28px;
    box-shadow:
        0 8px 28px rgba(142, 197, 252, 0.25);
    transition: all 0.3s ease;
}

body.theme-purple .search-box:hover {
    background: rgba(255, 255, 255, 0.7);
    box-shadow:
        0 8px 24px rgba(142, 197, 252, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border-color: transparent;
}

body.theme-purple .search-box:focus-within {
    background: rgba(255, 255, 255, 0.9);
    box-shadow:
        0 12px 32px rgba(142, 197, 252, 0.3),
        0 0 0 2px rgba(224, 195, 252, 0.3);
    border-color: transparent;
}

body.theme-purple .search-input {
    color: #4a5568;
}

body.theme-purple .search-input::placeholder {
    color: #a0aec0;
}

body.theme-purple .logo-button {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

body.theme-purple .logo-button:hover {
    background: #fff;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(142, 197, 252, 0.3);
}

body.theme-purple .search-engines {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 0 0 24px 24px;
}

body.theme-purple .engine-item:hover {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    transform: translateY(-2px);
}

body.theme-purple .search-suggestions {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 0 0 24px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

body.theme-purple .search-history {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 0 0 24px 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

body.theme-purple .suggestion-item:hover {
    background: rgba(142, 197, 252, 0.15);
}

/* Candy Theme - FavSearch Console (CTRL+G) */
body.theme-purple .fav-search-console {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 24px;
    box-shadow: 0 12px 40px rgba(142, 197, 252, 0.3);
}

body.theme-purple .fav-search-input {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid transparent;
    color: #4a5568;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

body.theme-purple .fav-search-input:focus {
    background: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 3px rgba(224, 195, 252, 0.3);
}

/* Candy Theme - Dock Add Modal & Custom Menu */
body.theme-purple .dock-add-modal .dock-add-content,
body.theme-purple .custom-menu,
body.theme-purple #custom-menu {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(142, 197, 252, 0.25);
}

body.theme-purple .dock-add-modal .dock-add-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

body.theme-purple .dock-add-modal .dock-add-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

/* Custom Menu Items Hover */
body.theme-purple .custom-menu-item:hover,
body.theme-purple .menu-item:hover {
    background: rgba(142, 197, 252, 0.2);
    border-radius: 12px;
    color: #4a5568;
}

/* Candy Theme - Search dropdown 3D animation */
@keyframes candySearchPanelEnter {
    0% {
        opacity: 0;
        transform: translateY(-6px) scale(0.98);
        filter: blur(4px);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

body.theme-purple .search-engines.show,
body.theme-purple .search-history.show {
    animation: candySearchPanelEnter 0.22s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Candy Theme - Controller window */
body.theme-purple .controller-window {
    background:
        radial-gradient(circle at top left, rgba(165, 180, 252, 0.35), transparent 55%),
        radial-gradient(circle at bottom right, rgba(248, 187, 247, 0.35), transparent 55%),
        rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 26px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow:
        0 24px 80px rgba(15, 23, 42, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    transform: translateZ(0) perspective(1200px) rotateX(0.5deg);
}

body.theme-purple .controller-window .content {
    background: rgba(255, 255, 255, 0.6);
}

body.theme-purple .title-bar {
    background: linear-gradient(135deg, #a5b4fc 0%, #f9a8d4 50%, #fda4af 100%);
    box-shadow: 0 8px 20px rgba(164, 179, 243, 0.45);
}

body.theme-purple .title-text {
    color: #1f2937;
}

body.theme-purple .control-btn {
    color: rgba(31, 41, 55, 0.85);
}

body.theme-purple .control-btn:hover {
    background: rgba(255, 255, 255, 0.45);
    color: #111827;
}

/* Candy Theme - Bookmark & History panels */
@keyframes candyBottomPanelIn {
    0% {
        opacity: 0;
        transform: translate(-50%, 20px) scale(0.96);
    }

    100% {
        opacity: 1;
        transform: translate(-50%, 0) scale(1);
    }
}

body.theme-purple .bookmark-panel,
body.theme-purple .history-panel {
    background:
        radial-gradient(circle at top left, rgba(165, 180, 252, 0.35), transparent 55%),
        radial-gradient(circle at bottom right, rgba(248, 187, 247, 0.35), transparent 55%),
        rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow:
        0 24px 70px rgba(15, 23, 42, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

body.theme-purple .bookmark-panel.show,
body.theme-purple .history-panel.show {
    animation: candyBottomPanelIn 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.wallpaper-control-actions .quick-btn[data-action="center-wallpaper"] {
    background: linear-gradient(135deg, #667eea, #764ba2);
}

.wallpaper-control-actions .quick-btn[data-action="reset-wallpaper-scale"] {
    background: linear-gradient(135deg, #4facfe, #00f2fe);
}

.wallpaper-control-actions .quick-btn[data-action="wallpaper-width-100"] {
    background: linear-gradient(135deg, #ffecd2, #fcb69f);
}

.wallpaper-control-actions .quick-btn[data-action="wallpaper-height-100"] {
    background: linear-gradient(135deg, #a8edea, #fed6e3);
}

.wallpaper-control-actions .quick-btn[data-action="toggle-video-sound"] {
    background: linear-gradient(135deg, #a8edea, #fed6e3);
}

.wallpaper-control-actions .quick-btn[data-action="toggle-video-sound"].sound-on {
    background: linear-gradient(135deg, #43e97b, #38f9d7);
}

.wallpaper-control-actions .quick-btn[data-action="reset-video-speed"] {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}

/* 重置所有壁纸设置按钮特殊样式 */
.wallpaper-reset-all-row {
    margin-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 12px;
}

.wallpaper-control-actions .reset-all-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52, #dc3545);
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
    border: none;
    position: relative;
    overflow: hidden;
    flex: 1;
    min-width: 70px;
    max-width: 90px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.wallpaper-control-actions .reset-all-btn:hover {
    background: linear-gradient(135deg, #ff5252, #e53e3e, #c53030);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
    transform: translateY(-2px);
}

.wallpaper-control-actions .reset-all-btn:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(220, 53, 69, 0.3);
}

/* 脉动动画图标 */
.pulse-icon {
    animation: pulse 2s ease-in-out infinite;
    display: inline-block;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* 深色模式适配 */
body.dark-theme .wallpaper-reset-all-row {
    border-top-color: rgba(255, 255, 255, 0.2);
}

body.dark-theme .wallpaper-control-actions .reset-all-btn {
    background: linear-gradient(135deg, #ff6b6b, #ee5a52, #dc3545);
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

body.dark-theme .wallpaper-control-actions .reset-all-btn:hover {
    background: linear-gradient(135deg, #ff5252, #e53e3e, #c53030);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
}

/* TVT iframe 动态样式变量 - 将在home.css中应用 */
/* 这些样式用于存储CSS变量供iframe使用 */
:root {
    --tvt-width: 90%;
    --tvt-height: 90%;
    --tvt-margin-top: 5%;
}

/* ==================== 鼠标拖尾特效样式 ==================== */

/* 控制器中的鼠标拖尾控制区域 */
.mouse-trail-controls {
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-top: 10px;
}

.trail-toggle-container {
    margin-bottom: 20px;
}

.trail-toggle-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

/* 拖尾开关样式 */
.trail-toggle-switch {
    width: 50px;
    height: 26px;
    background: #e5e7eb;
    border-radius: 13px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.trail-toggle-switch.active {
    background: linear-gradient(135deg, #10b981, #34d399);
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.1),
        0 0 10px rgba(16, 185, 129, 0.3);
}

.trail-toggle-slider {
    width: 22px;
    height: 22px;
    background: #ffffff;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.trail-toggle-switch.active .trail-toggle-slider {
    transform: translateX(24px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* 拖尾选项容器 */
.trail-options-container {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    animation: slideDown 0.3s ease;
}

.trail-option-label {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 12px;
}

/* 拖尾特效类型网格 */
.trail-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 20px;
}

.trail-type-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.trail-type-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.2);
}

.trail-type-item.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(167, 139, 250, 0.2));
    border-color: #8b5cf6;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.trail-type-icon {
    font-size: 18px;
    margin-bottom: 4px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.trail-type-name {
    font-size: 10px;
    font-weight: 500;
    color: #6b7280;
    line-height: 1.2;
}

.trail-type-item.active .trail-type-name {
    color: #8b5cf6;
    font-weight: 600;
}

/* 拖尾设置区域 */
.trail-settings {
    margin-bottom: 16px;
}

.trail-settings .slider-container {
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px;
}

/* 拖尾快捷操作 */
.trail-quick-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.trail-quick-actions .quick-btn {
    flex: 1;
    font-size: 11px;
    padding: 8px 10px;
}

.trail-quick-actions .quick-btn[data-action="reset-trail-settings"] {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.trail-quick-actions .quick-btn[data-action="preview-trail"] {
    background: linear-gradient(135deg, #8b5cf6, #a78bfa);
}

/* 深色主题适配 */
body.dark-theme .trail-toggle-label {
    color: #d1d5db;
}

body.dark-theme .trail-option-label {
    color: #9ca3af;
}

body.dark-theme .trail-type-item {
    background: rgba(68, 68, 68, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme .trail-type-item:hover {
    background: rgba(68, 68, 68, 0.5);
    border-color: rgba(139, 92, 246, 0.4);
}

body.dark-theme .trail-type-item.active {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.3), rgba(167, 139, 250, 0.3));
    border-color: #a78bfa;
}

body.dark-theme .trail-type-name {
    color: #9ca3af;
}

body.dark-theme .trail-type-item.active .trail-type-name {
    color: #a78bfa;
}

/* ==================== 鼠标拖尾粒子效果样式 ==================== */

/* 拖尾容器 */
.mouse-trail-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 99999;
    overflow: hidden;
}

/* 基础粒子样式 */
.trail-particle {
    position: absolute;
    pointer-events: none;
    border-radius: 50%;
    animation: trailFade 1s ease-out forwards;
}

/* 粒子轨迹效果 */
.trail-particle.particles {
    background: radial-gradient(circle, rgba(139, 92, 246, 0.8), rgba(139, 92, 246, 0));
    box-shadow: 0 0 6px rgba(139, 92, 246, 0.6);
}

/* 彩色轨迹效果 */
.trail-particle.colorful {
    background: radial-gradient(circle, var(--trail-color, #ff6b6b), transparent);
    box-shadow: 0 0 8px var(--trail-color, #ff6b6b);
    animation: trailColorShift 1s ease-out forwards;
}

/* 几何图形效果 */
.trail-particle.geometric {
    border-radius: 0;
    background: linear-gradient(45deg, #8b5cf6, #ec4899);
    transform: rotate(45deg);
    animation: trailRotate 1s ease-out forwards;
}

/* 烟花效果 */
.trail-particle.fireworks {
    background: radial-gradient(circle, #fbbf24, #f59e0b, transparent);
    box-shadow:
        0 0 10px #fbbf24,
        0 0 20px #f59e0b,
        0 0 30px #d97706;
    animation: trailFireworks 1.2s ease-out forwards;
}

/* 气泡效果 */
.trail-particle.bubble {
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.8), rgba(59, 130, 246, 0.6), rgba(59, 130, 246, 0.2));
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow:
        inset 0 0 10px rgba(255, 255, 255, 0.3),
        0 0 15px rgba(59, 130, 246, 0.4);
    animation: trailBubble 1.5s ease-out forwards;
}

/* 雪花效果 */
.trail-particle.snow {
    background: radial-gradient(circle, #ffffff, #e5e7eb, transparent);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
    animation: trailSnow 2s ease-out forwards;
}

/* 动画定义 */
@keyframes trailFade {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    100% {
        opacity: 0;
        transform: scale(0.3);
    }
}

@keyframes trailColorShift {
    0% {
        opacity: 1;
        transform: scale(1);
        filter: hue-rotate(0deg);
    }

    100% {
        opacity: 0;
        transform: scale(0.2);
        filter: hue-rotate(360deg);
    }
}

@keyframes trailRotate {
    0% {
        opacity: 1;
        transform: rotate(45deg) scale(1);
    }

    100% {
        opacity: 0;
        transform: rotate(225deg) scale(0.1);
    }
}

@keyframes trailFireworks {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.5);
    }

    100% {
        opacity: 0;
        transform: scale(0.1);
    }
}

@keyframes trailBubble {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }

    100% {
        opacity: 0;
        transform: scale(0.5) translateY(-20px);
    }
}

@keyframes trailSnow {
    0% {
        opacity: 1;
        transform: scale(1) translateY(0) rotate(0deg);
    }

    100% {
        opacity: 0;
        transform: scale(0.3) translateY(15px) rotate(180deg);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .trail-type-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .trail-type-item {
        padding: 8px 4px;
    }

    .trail-type-icon {
        font-size: 16px;
    }

    .trail-type-name {
        font-size: 9px;
    }

    .trail-quick-actions .quick-btn {
        font-size: 10px;
        padding: 6px 8px;
    }
}

/* 滑动动画 */
@keyframes slideDown {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== 鼠标点击特效样式 ==================== */

/* 控制器中的鼠标点击特效控制区域 */
.mouse-click-controls {
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    margin-top: 10px;
}

.click-toggle-container {
    margin-bottom: 20px;
}

.click-toggle-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
}

/* 点击特效开关样式 */
.click-toggle-switch {
    width: 50px;
    height: 26px;
    background: #e5e7eb;
    border-radius: 13px;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.click-toggle-switch.active {
    background: linear-gradient(135deg, #10b981, #34d399);
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.1),
        0 0 10px rgba(16, 185, 129, 0.3);
}

.click-toggle-slider {
    width: 22px;
    height: 22px;
    background: #ffffff;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.click-toggle-switch.active .click-toggle-slider {
    transform: translateX(24px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* 点击特效选项容器 */
.click-options-container {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 20px;
    animation: slideDown 0.3s ease;
}

/* Emoji预览区域 */
.click-emoji-preview {
    margin-bottom: 20px;
}

.click-preview-label {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 12px;
}

.click-emoji-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.click-emoji-item {
    font-size: 20px;
    text-align: center;
    padding: 6px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
}

.click-emoji-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(139, 92, 246, 0.3);
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(139, 92, 246, 0.2);
}

/* 点击特效设置区域 */
.click-settings {
    margin-bottom: 16px;
}

.click-settings .slider-container {
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 12px;
}

/* 点击特效快捷操作 */
.click-quick-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.click-quick-actions .quick-btn {
    flex: 1;
    font-size: 11px;
    padding: 8px 10px;
}

.click-quick-actions .quick-btn[data-action="reset-click-settings"] {
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
}

.click-quick-actions .quick-btn[data-action="preview-click"] {
    background: linear-gradient(135deg, #ec4899, #f472b6);
}

/* 深色主题适配 */
body.dark-theme .click-toggle-label {
    color: #d1d5db;
}

body.dark-theme .click-preview-label {
    color: #9ca3af;
}

body.dark-theme .click-emoji-grid {
    background: rgba(68, 68, 68, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme .click-emoji-item {
    background: rgba(68, 68, 68, 0.3);
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark-theme .click-emoji-item:hover {
    background: rgba(68, 68, 68, 0.5);
    border-color: rgba(139, 92, 246, 0.4);
}

/* ==================== 鼠标点击特效动画样式 ==================== */

/* 点击特效容器 */
.mouse-click-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 99998;
    overflow: hidden;
}

/* 点击特效元素 */
.click-effect {
    position: absolute;
    pointer-events: none;
    user-select: none;
    font-size: 24px;
    z-index: 99999;
    animation: clickEffectAnimation 2s ease-out forwards;
}

/* 点击特效动画 */
@keyframes clickEffectAnimation {
    0% {
        opacity: 1;
        transform: scale(0.5) translateY(0) rotate(0deg);
    }

    25% {
        opacity: 1;
        transform: scale(1.2) translateY(-10px) rotate(90deg);
    }

    50% {
        opacity: 0.8;
        transform: scale(1) translateY(-20px) rotate(180deg);
    }

    75% {
        opacity: 0.4;
        transform: scale(0.8) translateY(-30px) rotate(270deg);
    }

    100% {
        opacity: 0;
        transform: scale(0.3) translateY(-40px) rotate(360deg);
    }
}

/* 强烈动画模式 */
.click-effect.intense {
    animation: clickEffectIntenseAnimation 2.5s ease-out forwards;
}

@keyframes clickEffectIntenseAnimation {
    0% {
        opacity: 1;
        transform: scale(0.3) translateY(0) rotate(0deg);
        filter: hue-rotate(0deg) brightness(1.2);
    }

    15% {
        opacity: 1;
        transform: scale(1.5) translateY(-5px) rotate(60deg);
        filter: hue-rotate(60deg) brightness(1.5);
    }

    30% {
        opacity: 1;
        transform: scale(1.8) translateY(-15px) rotate(120deg);
        filter: hue-rotate(120deg) brightness(1.8);
    }

    50% {
        opacity: 0.9;
        transform: scale(1.2) translateY(-25px) rotate(240deg);
        filter: hue-rotate(240deg) brightness(1.3);
    }

    75% {
        opacity: 0.5;
        transform: scale(0.8) translateY(-35px) rotate(300deg);
        filter: hue-rotate(300deg) brightness(1);
    }

    100% {
        opacity: 0;
        transform: scale(0.2) translateY(-50px) rotate(720deg);
        filter: hue-rotate(360deg) brightness(0.8);
    }
}

/* 轻微动画模式 */
.click-effect.gentle {
    animation: clickEffectGentleAnimation 1.5s ease-out forwards;
}

@keyframes clickEffectGentleAnimation {
    0% {
        opacity: 0.8;
        transform: scale(0.8) translateY(0) rotate(0deg);
    }

    30% {
        opacity: 1;
        transform: scale(1.1) translateY(-8px) rotate(45deg);
    }

    60% {
        opacity: 0.6;
        transform: scale(0.9) translateY(-16px) rotate(135deg);
    }

    100% {
        opacity: 0;
        transform: scale(0.5) translateY(-25px) rotate(180deg);
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .click-emoji-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }

    .click-emoji-item {
        font-size: 18px;
        padding: 4px;
    }

    .click-quick-actions .quick-btn {
        font-size: 10px;
        padding: 6px 8px;
    }

    .click-effect {
        font-size: 20px;
    }
}
/*
 ==================== 左侧页面滚动条样式 ==================== */

.page-scroll-bar {
    position: fixed;
    left: 20px;
    top: 20%;
    height: 60%;
    width: 40px;
    z-index: 9999;
    display: flex;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.page-scroll-bar:hover {
    opacity: 1;
}

.page-scroll-bar.visible {
    opacity: 0.6;
}

.page-scroll-bar.visible:hover {
    opacity: 1;
}

/* 滚动轨道 */
.scroll-track {
    width: 12px;
    height: 100%;
    background: rgba(128, 128, 128, 0.2);
    border-radius: 6px;
    position: relative;
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-scroll-bar:hover .scroll-track {
    width: 16px;
    background: rgba(128, 128, 128, 0.3);
}

/* 滚动滑块 - 与 page-btn.active 样式一致 */
.scroll-thumb {
    width: 100%;
    min-height: 36px;
    background: rgba(100, 149, 237, 0.6);
    border-radius: 18px;
    position: absolute;
    top: 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.scroll-thumb:hover {
    background: rgba(100, 149, 237, 0.8);
    transform: scale(1.05);
}

/* 页面按钮面板 */
.page-buttons-panel {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    background: rgba(40, 40, 40, 0.85);
    backdrop-filter: blur(10px);
    padding: 12px;
    padding-left: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    min-width: 50px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.page-scroll-bar:hover .page-buttons-panel,
.page-buttons-panel.show {
    opacity: 1;
    pointer-events: auto;
}

/* 页面按钮 */
.page-btn {
    min-width: 36px;
    min-height: 36px;
    padding: 8px 12px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

/* 文字超过2个字符时变成椭圆形 */
.page-btn.ellipse {
    border-radius: 18px;
}

.page-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.08);
}

.page-btn.active {
    background: rgba(100, 149, 237, 0.6);
}

/* 编辑状态 */
.page-btn.editing {
    background: rgba(255, 255, 255, 0.25);
    outline: 2px solid rgba(100, 149, 237, 0.8);
}

.page-btn-input {
    width: 100%;
    background: transparent;
    border: none;
    color: white;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    outline: none;
}

/* ==================== 深色主题滚动条样式 ==================== */

body.dark-theme .scroll-track {
    background: rgba(200, 200, 200, 0.15);
}

body.dark-theme .page-scroll-bar:hover .scroll-track {
    background: rgba(200, 200, 200, 0.25);
}

body.dark-theme .scroll-thumb {
    background: rgba(100, 149, 237, 0.5);
}

body.dark-theme .scroll-thumb:hover {
    background: rgba(100, 149, 237, 0.7);
}

body.dark-theme .page-buttons-panel {
    background: rgba(30, 30, 30, 0.9);
}

body.dark-theme .page-btn {
    background: rgba(255, 255, 255, 0.1);
}

body.dark-theme .page-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* ==================== Candy主题滚动条样式 ==================== */

body.theme-purple .scroll-track {
    background: linear-gradient(180deg, 
        rgba(224, 195, 252, 0.3) 0%, 
        rgba(142, 197, 252, 0.3) 100%);
}

body.theme-purple .page-scroll-bar:hover .scroll-track {
    background: linear-gradient(180deg, 
        rgba(224, 195, 252, 0.5) 0%, 
        rgba(142, 197, 252, 0.5) 100%);
}

body.theme-purple .scroll-thumb {
    background: linear-gradient(180deg, 
        rgba(255, 182, 193, 0.7) 0%, 
        rgba(173, 216, 230, 0.7) 100%);
    box-shadow: 
        0 2px 8px rgba(255, 182, 193, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

body.theme-purple .scroll-thumb:hover {
    background: linear-gradient(180deg, 
        rgba(255, 182, 193, 0.9) 0%, 
        rgba(173, 216, 230, 0.9) 100%);
    box-shadow: 
        0 4px 12px rgba(255, 182, 193, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

body.theme-purple .page-buttons-panel {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 8px 32px rgba(224, 195, 252, 0.3),
        0 4px 16px rgba(142, 197, 252, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

body.theme-purple .page-btn {
    background: linear-gradient(135deg, 
        rgba(255, 182, 193, 0.5) 0%, 
        rgba(173, 216, 230, 0.5) 100%);
    color: #444;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 
        0 2px 8px rgba(255, 182, 193, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

body.theme-purple .page-btn:hover {
    background: linear-gradient(135deg, 
        rgba(255, 182, 193, 0.8) 0%, 
        rgba(173, 216, 230, 0.8) 100%);
    transform: scale(1.1);
    box-shadow: 
        0 4px 16px rgba(255, 182, 193, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

body.theme-purple .page-btn.active {
    background: linear-gradient(135deg, 
        rgba(255, 105, 180, 0.7) 0%, 
        rgba(135, 206, 250, 0.7) 100%);
    color: white;
}

body.theme-purple .page-btn-input {
    color: #444;
}
