/* Inter 字体导入（备用） */
@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,400;14..32,500;14..32,600;14..32,700&display=swap');

/* Rubik 字体 - 主字体 */
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@500;600;700;800&display=swap');

:root {
    --apple-bg: #121212;
    --apple-card: #1C1C1E;
    --apple-blue: #0A84FF;
    --apple-gray: #3d3d3d;
    --apple-red: #FF453A;
    --apple-green: #32D74B;
    --blur-val: blur(25px);
}

/* 全局禁用点击高亮框 */
* {
    -webkit-tap-highlight-color: transparent;
    outline: none;
}

/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    margin: 0;
    padding: 0;
    background: #121212;
    border: none;
}

body { 
    margin: 0;
    padding: 0;
    background: #121212; 
    color: white; 
    font-family: -apple-system, sans-serif; 
    overflow: hidden;
    height: 100vh;
    width: 100%;
    border: none;
}

/* overlay - 背景模糊层 */
.overlay { 
    position: fixed; 
    inset: 0; 
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    display: none; 
    z-index: 900; 
}

/* 左侧秘密面板触发器 */
.secret-trigger {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 50px; 
    height: 50px;
    z-index: 2100; 
    cursor: default;
    background: transparent;
    border: none;
    outline: none;
}

/* 右侧应用面板触发器 */
.apps-trigger {
    position: fixed; 
    top: 0; 
    right: 0; 
    width: 50px; 
    height: 50px;
    z-index: 2100; 
    cursor: default;
    background: transparent;
    border: none;
    outline: none;
}

.container { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    height: 100vh;
    padding-top: 25vh;
    overflow-y: auto;
    overflow-x: hidden;
}

/* 隐藏 container 的滚动条 */
.container::-webkit-scrollbar {
    display: none;
}

.search-section { 
    width: 700px; 
    max-width: 90%;
    margin-top: 0;
}

.search-bar { 
    background: rgba(255,255,255,0.06); 
    backdrop-filter: var(--blur-val); 
    border: 1px solid rgba(255,255,255,0.1); 
    border-radius: 40px;
    transition: box-shadow 0.2s, border-color 0.2s;
}
.search-bar:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.2);
}
.search-bar input { 
    width: 100%; 
    height: 100%; 
    background: none; 
    border: none; 
    color: white; 
    outline: none; 
    font-size: 16px; 
    padding: 14px 24px; 
    box-sizing: border-box; 
}

/* 网址网格 */
.url-grid { 
    display: flex; 
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 16px;
    margin-top: 40px;
    width: 700px;
    max-width: 90%;
    margin-left: auto;
    margin-right: auto;
}

.url-item { 
    text-decoration: none; 
    color: #aaa; 
    font-size: 14px; 
    opacity: 0.8; 
    transition: 0.2s; 
    cursor: pointer;
    padding: 4px 0;
    min-width: 56px;
    max-width: 80px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}
.url-item:hover { 
    opacity: 1; 
    transform: translateY(-2px);
    color: white;
}

/* 底部文件夹栏 */
.bottom-folders-bar { 
    position: fixed; 
    bottom: 20px; 
    left: 50px;
    display: flex; 
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 24px; 
    z-index: 500;
    background: transparent;
    backdrop-filter: none;
    padding: 0;
    border: none;
    max-width: calc(100% - 40px);
}

/* 手机端适配：让文件夹栏居中 */
@media (max-width: 768px) {
    .bottom-folders-bar {
        left: 0;
        right: 0;
        justify-content: center;
        max-width: 100%;
        padding: 0 16px;
        gap: 20px;
    }
}

/* 小屏手机适配 */
@media (max-width: 480px) {
    .bottom-folders-bar {
        gap: 16px;
        bottom: 15px;
        padding: 0 12px;
    }
    .folder-text {
        font-size: 13px;
    }
}
.folder-text { 
    font-size: 14px; 
    color: white; 
    opacity: 0.7; 
    cursor: pointer; 
    transition: 0.3s; 
    text-align: left; 
    user-select: none; 
    white-space: nowrap;
}
.folder-text:hover { 
    opacity: 1; 
    transform: translateY(-2px);
}

/* ==================== 右侧应用面板 ==================== */
.apps-panel {
    position: fixed;
    top: 60px;
    right: 20px;
    background: #2C2C2E;
    backdrop-filter: blur(30px);
    border-radius: 20px;
    padding: 16px;
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.95) translateY(-10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    min-width: 120px;
}
.apps-panel.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateY(0);
}
.apps-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    align-items: center;
}
.app-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 70px;
    padding: 10px 0;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
    background: transparent;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    text-decoration: none;
}
.app-card:hover {
    transform: translateY(-2px);
}
.app-card:active {
    transform: translateY(0);
    opacity: 0.8;
}
.app-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 6px;
    transition: color 0.2s, background 0.2s;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}
.app-card:hover .app-icon {
    color: white;
    background: rgba(255, 255, 255, 0.25);
}
.app-name {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    transition: color 0.2s;
}
.app-card:hover .app-name {
    color: white;
}

/* ==================== 计时器全屏界面 ==================== */
.timer-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #121212;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    will-change: opacity;
}
.timer-fullscreen.active {
    visibility: visible;
    opacity: 1;
}

/* 计时器关闭按钮 - 默认透明，鼠标悬停时显示 */
.timer-close-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 28px;
    color: rgba(255, 255, 255, 0);
    transition: color 0.2s, opacity 0.2s;
    z-index: 3001;
    background: transparent;
    border-radius: 0;
    opacity: 0;
    pointer-events: auto;  /* 可点击，但默认透明看不见 */
}

.timer-close-btn:hover {
    color: rgba(255, 255, 255, 1);
    opacity: 1;
}

/* 计时器显示区域 */
.timer-display {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
}
.timer-main {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}
.timer-digit {
    font-size: 15vw;
    font-weight: 600;
    color: #E0E0E0;
    text-align: center;
    min-width: 0.9em;
    cursor: default;
    font-family: 'Rubik', 'Nunito', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    font-feature-settings: 'tnum';
    letter-spacing: 0.02em;
}
.timer-colon {
    font-size: 15vw;
    font-weight: 600;
    color: #E0E0E0;
    margin: 0 0.05em;
    font-family: 'Rubik', 'Nunito', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    font-feature-settings: 'tnum';
    letter-spacing: 0.02em;
}
.timer-millisec {
    font-size: 4vw;
    font-weight: 500;
    color: #E0E0E0;
    font-family: 'Rubik', 'Nunito', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    font-feature-settings: 'tnum';
    opacity: 0.8;
    margin-bottom: 0.2em;
    align-self: flex-end;
}

/* 隐藏网址面板 */
.secret-panel {
    position: fixed; left: -340px; top: 0; bottom: 0; width: 280px;
    background: var(--apple-card); z-index: 1100; padding: 30px;
    transition: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.secret-panel.active { transform: translateX(340px); }
.panel-header { text-align: center; margin-bottom: 20px; font-size: 18px; font-weight: 600; }
.secret-scroll-list { height: calc(100% - 120px); overflow-y: auto; }
.panel-footer { position: absolute; bottom: 30px; left: 0; right: 0; text-align: center; }
.btn-add-secret { background: rgba(255,255,255,0.05); color: white; border: 1px solid rgba(255,255,255,0.1); padding: 12px 40px; border-radius: 12px; cursor: pointer; }
.btn-add-secret:hover { background: rgba(255,255,255,0.1); }

/* 文件夹弹窗 */
.folder-popover {
    position: fixed;
    bottom: 75px;
    background: transparent;
    backdrop-filter: none;
    padding: 0;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 90px;
    max-width: 150px;
    box-shadow: none;
    z-index: 1600;
    transform: translateX(-50%);
    animation: jellyUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pop-item { 
    text-decoration: none;
    color: white;
    opacity: 0.7;
    font-size: 14px;
    transition: 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    user-select: none;
    padding: 4px 0;
    border-radius: 0;
    cursor: pointer;
    background: transparent;
}
.pop-item:hover:not(.dragging) {
    opacity: 1;
    color: var(--apple-blue);
    transform: translateY(-2px);
}
.pop-item.dragging {
    opacity: 1;
    color: var(--apple-blue);
    background: transparent;
    cursor: move;
}

/* 下拉菜单 */
.select-items { 
    position: absolute; 
    top: 50px; 
    left: 0; 
    right: 0; 
    background: #2C2C2E; 
    border-radius: 10px; 
    z-index: 5; 
    opacity: 0; 
    pointer-events: none; 
    max-height: 250px; 
    overflow-y: auto; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.select-items::-webkit-scrollbar {
    display: none;
}
.select-items.show { opacity: 1; pointer-events: auto; animation: jellyDown 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }

@keyframes jellyUp { 0% { opacity: 0; transform: translateX(-50%) translateY(15px) scale(0.9); } 100% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); } }
@keyframes jellyDown { 0% { opacity: 0; transform: translateY(-15px) scale(0.9); } 100% { opacity: 1; transform: translateY(0) scale(1); } }

/* 弹窗右上角关闭按钮 */
.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: rgba(255,255,255,0);
    font-size: 16px;
    transition: color 0.2s;
    background: transparent;
    border-radius: 0;
    z-index: 20;
}
.modal-close:hover { color: rgba(255,255,255,0.6); }
.modal-close:hover:hover { color: white !important; }

/* 弹窗底部按钮 */
.modal-footer {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 16px;
}
.modal-footer.single-btn { justify-content: center; }
.btn-confirm { 
    background: var(--apple-blue); 
    color: white; 
    border: none; 
    padding: 10px 24px;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer; 
    transition: 0.2s;
    font-size: 14px;
}
.btn-confirm:hover { background: #0A6ED0; }
.btn-cancel {
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.15);
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
}
.btn-cancel:hover { background: rgba(255,255,255,0.15); }

/* 搜索引擎弹窗 */
.settings-modal-simple {
    width: 280px;
    padding: 20px;
}
.settings-modal-simple .modal-title { margin-bottom: 16px; }
.settings-modal-simple .select-container { margin: 0; }
.settings-modal-simple .select-selected {
    background: #2C2C2E;
    padding: 12px;
    border-radius: 10px;
}
.settings-modal-simple .select-items {
    background: #2C2C2E;
    border-radius: 10px;
    overflow: hidden;
    overflow-y: auto;
    max-height: 250px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.settings-modal-simple .select-items::-webkit-scrollbar {
    display: none;
}
.settings-modal-simple .select-items > div {
    text-align: center;
    padding: 12px;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
    transition: background 0.2s;
    position: relative;
}
.settings-modal-simple .select-items > div:last-child { border-bottom: none; }
.settings-modal-simple .select-items > div:hover { background: rgba(255,255,255,0.1); }

/* 自定义引擎容器 */
#customEnginesContainer { margin: 0; padding: 0; }
#customEnginesContainer > div { border-bottom: 1px solid rgba(255,255,255,0.05); }
#customEnginesContainer > div:last-child { border-bottom: none; }

/* 添加网址下拉菜单 */
.add-modal .select-container { margin: 10px 0; }
.add-modal .select-selected {
    background: #2C2C2E;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
}
.add-modal .select-items {
    background: #2C2C2E;
    border-radius: 10px;
    overflow-y: auto;
    max-height: 250px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.add-modal .select-items::-webkit-scrollbar {
    display: none;
}
.add-modal .select-items div {
    padding: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    cursor: pointer;
    transition: background 0.2s;
}
.add-modal .select-items div:hover { background: rgba(255,255,255,0.1); }
.add-modal .select-items .new-folder-option {
    color: var(--apple-blue);
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 4px;
}

#folderOptions {
    max-height: 250px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
#folderOptions::-webkit-scrollbar {
    display: none;
}

/* 管理文件夹弹窗 */
.folder-mgr-modal {
    width: 320px;
    max-width: 90%;
    padding: 20px;
}
.folder-list-container {
    max-height: 260px;
    overflow-y: auto;
    margin: 16px 0;
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.folder-list-container::-webkit-scrollbar {
    display: none;
}
.folder-list { display: flex; flex-direction: column; }
.folder-manage-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.folder-manage-item:last-child { border-bottom: none; }
.folder-name-click {
    cursor: pointer;
    flex: 1;
    font-size: 14px;
    color: white;
    text-align: left;
}
.folder-delete-btn {
    color: var(--apple-red);
    cursor: pointer;
    font-size: 13px;
    padding: 4px 8px;
    border-radius: 6px;
}
.folder-delete-btn:hover { background: rgba(255,69,58,0.15); }
.add-folder-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}
.add-folder-input {
    width: 100%;
    background: #2C2C2E;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 10px;
    padding: 12px;
    color: white;
    font-size: 13px;
    outline: none;
    box-sizing: border-box;
}
.add-folder-input:focus { border-color: var(--apple-blue); }
.add-folder-btn {
    width: auto;
    padding: 10px 20px;
    background: var(--apple-blue);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    align-self: center;
}

/* 备份中心样式 */
.backup-modal {
    width: 360px;
    max-width: 90%;
    padding: 24px;
}
.backup-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}
.backup-main-row { display: flex; gap: 12px; }
.main-card {
    flex: 1;
    padding: 16px 8px;
}
.main-card .icon { font-size: 32px; margin-bottom: 10px; }
.main-card .label { font-size: 14px; font-weight: 600; }
.main-card .desc { font-size: 11px; }
.backup-card { 
    background: rgba(255,255,255,0.05); 
    border: 1px solid rgba(255,255,255,0.1); 
    border-radius: 14px; 
    cursor: pointer; 
    transition: 0.2s;
    text-align: center;
}
.backup-card:hover { background: rgba(255,255,255,0.1); border-color: var(--apple-blue); transform: translateY(-2px); }
.backup-card .icon { font-size: 28px; margin-bottom: 8px; }
.backup-card .label { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.backup-card .desc { font-size: 10px; color: #888; }
.backup-footer-icons {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.icon-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.2s;
    color: rgba(255,255,255,0.7);
}
.icon-btn:hover { background: rgba(255,255,255,0.15); color: var(--apple-blue); }

/* 自动备份设置弹窗 */
.settings-modal {
    width: 340px;
    max-width: 90%;
    padding: 20px;
}
.settings-content { margin: 16px 0; }
.setting-card {
    background: rgba(255,255,255,0.04);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 12px;
}
.setting-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}
.setting-title { font-size: 14px; font-weight: 600; color: white; }
.setting-desc { font-size: 12px; color: #888; margin-bottom: 12px; }
.setting-input-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #aaa;
}
.setting-input-row input {
    width: 55px;
    background: #2C2C2E;
    border: none;
    border-radius: 8px;
    padding: 6px 8px;
    color: white;
    text-align: center;
    font-size: 13px;
    outline: none;
}
.setting-input-row input:focus { outline: 1px solid var(--apple-blue); }
.setting-switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
}
.setting-switch input { opacity: 0; width: 0; height: 0; }
.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #3a3a3c;
    transition: 0.3s;
    border-radius: 22px;
}
.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}
.setting-switch input:checked + .slider { background-color: var(--apple-blue); }
.setting-switch input:checked + .slider:before { transform: translateX(18px); }
.setting-stats {
    background: rgba(10,132,255,0.08);
    border-radius: 12px;
    padding: 12px;
    margin-top: 12px;
}
.stats-title { font-size: 12px; font-weight: 600; margin-bottom: 10px; color: var(--apple-blue); }
.stats-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    padding: 5px 0;
}
.stats-row span:first-child { color: #aaa; }
.stats-row span:last-child { color: white; font-weight: 500; }

/* 确认弹窗 */
.confirm-modal {
    width: 300px;
    max-width: 85%;
    padding: 24px;
    text-align: center;
    z-index: 1600;
    background: var(--apple-card);
}
.confirm-icon { font-size: 48px; margin-bottom: 12px; }
.confirm-title { font-size: 18px; font-weight: 600; margin-bottom: 12px; color: white; }
.confirm-message { font-size: 14px; color: #ddd; margin-bottom: 12px; line-height: 1.5; }
.confirm-details {
    font-size: 12px;
    color: #888;
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 20px;
    word-break: break-word;
}
.confirm-footer {
    display: flex;
    gap: 12px;
    justify-content: center;
    border-top: none;
    padding-top: 0;
}
.confirm-footer .btn-cancel, .confirm-footer .btn-confirm { flex: 1; float: none; margin: 0; }

/* 简洁提示弹窗 */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: rgba(28, 28, 30, 0.95);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.toast.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}
.toast-icon { font-size: 16px; font-weight: 600; }
.toast-icon.success { color: var(--apple-green); }
.toast-icon.error { color: var(--apple-red); }
.toast-icon.info { color: var(--apple-blue); }
.toast-message { font-size: 14px; color: white; font-weight: 500; }

/* 通用弹窗样式 */
.modal { 
    position: fixed; 
    top: 50%; 
    left: 50%; 
    transform: translate(-50%, -50%) scale(0.95); 
    opacity: 0; 
    pointer-events: none; 
    background: var(--apple-card); 
    padding: 20px; 
    border-radius: 20px; 
    width: 280px; 
    z-index: 1000; 
    box-shadow: 0 20px 40px rgba(0,0,0,0.4);
    transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.modal.show { 
    opacity: 1; 
    transform: translate(-50%, -50%) scale(1); 
    pointer-events: auto; 
}
.modal-title { 
    margin-top: 0; 
    margin-bottom: 20px; 
    font-size: 18px; 
    font-weight: 600; 
    text-align: center; 
}
.select-container { position: relative; margin: 15px 0; }
.select-selected { background: #2C2C2E; padding: 12px; border-radius: 10px; cursor: pointer; text-align: center; font-size: 14px; }
.select-items div { padding: 12px; text-align: center; cursor: pointer; border-bottom: 1px solid rgba(255,255,255,0.05); }

.sidebar { position: fixed; right: -320px; top: 0; bottom: 0; width: 280px; background: var(--apple-card); transition: 0.3s; z-index: 1100; padding: 30px; }
.sidebar.active { transform: translateX(-320px); }
.manage-scroll-list { height: calc(100% - 100px); overflow-y: auto; }
.sidebar-footer { 
    position: absolute; 
    bottom: 30px; 
    left: 20px; 
    right: 20px; 
    display: flex; 
    gap: 10px; 
    justify-content: center; 
}
.btn-folder-mgr { 
    flex: 1; 
    background: rgba(255,255,255,0.1); 
    color: white; 
    border: 1px solid rgba(255,255,255,0.1); 
    padding: 12px 0; 
    border-radius: 12px; 
    cursor: pointer; 
    font-size: 14px;
}
.btn-backup {
    width: 45px;
    height: 45px;
    background: rgba(255,255,255,0.1);
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}
.btn-backup:hover { background: rgba(255,255,255,0.2); border-color: var(--apple-blue); }

.manage-item, .folder-manage-item, .secret-item { 
    cursor: move; 
    transition: transform 0.2s cubic-bezier(0.2, 0, 0.2, 1); 
    user-select: none !important; 
    -webkit-user-drag: element !important;
}
.manage-item > div, .folder-manage-item > span:first-child, .secret-item > div { cursor: pointer; }
.dragging { opacity: 0.2 !important; transform: scale(0.95); transition: none !important; }

.modal input { 
    width: 100%; 
    background: #2C2C2E; 
    border: 1px solid rgba(255,255,255,0.1); 
    padding: 12px; 
    margin: 10px 0; 
    border-radius: 10px; 
    color: white; 
    box-sizing: border-box; 
    outline: none; 
}
.modal input:focus { border-color: var(--apple-blue); }

/* 右键菜单 */
.context-menu { 
    position: absolute; 
    display: none; 
    background: rgba(30, 30, 32, 0.98); 
    border-radius: 12px; 
    width: 150px; 
    z-index: 2100; 
    padding: 6px 0; 
    border: 1px solid rgba(255,255,255,0.1); 
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.menu-item { padding: 10px 0; text-align: center; font-size: 14px; cursor: pointer; }
.menu-item:hover { background-color: var(--apple-gray); }

.scroll-list { max-height: 200px; overflow-y: auto; }
.delete-btn { color: var(--apple-red) !important; font-size: 13px; cursor: pointer; padding-left: 10px; flex-shrink: 0; }
.delete-btn:hover { opacity: 0.8; }

/* 全局隐藏滚动条 */
::-webkit-scrollbar {
    display: none;
}
* {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .timer-digit, .timer-colon {
        font-size: 20vw;
    }
    .timer-millisec {
        font-size: 6vw;
        margin-bottom: 0.15em;
    }
    .timer-close-btn {
        bottom: 20px;
        right: 20px;
        font-size: 32px;
    }
}

/* 退出登录按钮 - 只出现在主页面 */
.logout-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: rgba(255, 69, 58, 0.9);
    border: 1px solid rgba(255, 69, 58, 0.5);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    z-index: 500;  /* 调低，让全屏页面覆盖它 */
    transition: opacity 0.2s ease;
    opacity: 0;
    pointer-events: none;
    font-weight: normal;
    backdrop-filter: blur(4px);
}