/* ===== 变量定义 ===== */
:root {
  /* 导航栏颜色 */
  --top-header:#bfbfbf80;
  --bg-nav: #bfbfbf70;
  --bg-nav-hover: #ffffff60;
  --bg-subnav: #c7c7c740;
  --bg-thirdnav: #d5d5d520;
  --text-nav: #000;
  
  /* 通用颜色 */
  --primary-color: #009eff;
  --primary-hover: #009eff60;
  --border-color: #e5e7eb50;
  --shadow: 1px 2px 4px -1px rgba(0, 0, 0, 0.1);
  --radius: 8px;
  
  /* 内容区域颜色 */
  --bg-primary: #ffffff;
  --bg--color: #d7d7d7;
  --bg-card: #ffffff70;
  --hover-color:  #ffffffc1;
  --text-color: #000;
  --text-color2: #333333;
  --background-image: url(bg01.jpg);
}

[data-theme="dark"] {
  --top-header:#22222280;
  --bg-nav: #22222270;
  --bg-nav-hover: #77777760;
  --bg-subnav: #2b2b2b40;
  --bg-thirdnav: #33333320;
  --text-nav: #fff;
  /* 内容区域颜色 */
  --primary-color: #0b1f31;
  --bg-primary: #111314;
  --bg--color: #090e12;
  --bg-card: #ffffff20;
  --hover-color: #ffffff50;
  --text-color: #fff;
  --text-color2: #999999;
  --border-color: #242b35;
  --background-image: url(bg1.jpg);
  
}

/* ===== 重置与基础样式 ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    border: none;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

*::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg--color);
    color: var(--text-color);
    min-height: 95vh;
    background-image: var(--background-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

	
/* ============================== 顶部栏布局 ==================== */
.top-header {
    background: var(--top-header);
	border-bottom: 1px solid var(--border-color);
	/*position: sticky;
	top: 0px;
	z-index: 1007;*/
}

/* Logo和主题切换行 */
.header-top-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 40px;
    padding: 0.2rem 1rem;
}
.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
	margin: 0 1rem;
}

.logo {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
}

.site-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-nav);
}

.header-actions {
    display: flex;
    gap: 0.5rem;
}

.nav-btn {
    padding: 0.5rem;
    border: none;
    background: transparent;
    color: var(--text-nav);
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.2s;
}

.nav-btn:hover {
    background: var(--bg-nav-hover);
}


/* ============================= 主内容区域 ============================= */
.main-content {
    min-height: calc(100vh - 120px);
}

.content-area {
    display: block;
    margin: 0 auto;
	padding: 50px;
    max-width: 1412px;
}

.content-header {
   display: none;
}

.content-header p {
    color: var(--text-color2);
}

/* ===== 主导航栏 ===== */
.main-nav-container {
    position: sticky;
	display: flex;
    top: 0px; /* header-top-row的高度 */
    z-index: 1008;
    background: var(--bg-nav);
    justify-content: center;
    overflow: hidden;
	backdrop-filter: blur(10px); 
}

.main-nav {
    display: flex;
    height: 40px;
    overflow-x: auto;
    scrollbar-width: thin;
    white-space: nowrap;
    justify-content: space-evenly;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.main-nav::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.nav-item {
    position: relative;
    height: 100%;
    flex-shrink: 0;
}

.nav-link {
    display: flex;
    align-items: center;
	justify-content: center;
    padding: 0 1.5rem;
	width: 90px;
    height: 100%;
    color: var(--text-nav);
	font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}

.nav-link:hover,
.nav-link.active {
    background: var(--bg-nav-hover);
}

.nav-link.active {
    color: var(--text-nav);
	font-size:1.2rem;
	font-weight:500;
	border-bottom-color: var(--primary-color);
}

.nav-link:not(.active) {
    opacity: 0.7;
}

/* ===== 子导航栏 ===== */
.subnav-bar,
.thirdnav-bar {
    background: var(--bg-subnav);
    padding: 0 1.5rem;
    height: 30px;
    display: flex;
    align-items: center;
    gap: 2rem;
    overflow-x: auto;
    scrollbar-width: thin;
    white-space: nowrap;
    justify-content: center;	
    scroll-behavior: smooth;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.thirdnav-bar {
    background: var(--bg-thirdnav);
    height: 30px;
}

/* 滚动条样式 */
.main-nav::-webkit-scrollbar,
.subnav-bar::-webkit-scrollbar,
.thirdnav-bar::-webkit-scrollbar {
    height: 4px;
}

.main-nav::-webkit-scrollbar-track,
.subnav-bar::-webkit-scrollbar-track,
.thirdnav-bar::-webkit-scrollbar-track {
    background: var(--bg-nav);
}

.main-nav::-webkit-scrollbar-thumb,
.subnav-bar::-webkit-scrollbar-thumb,
.thirdnav-bar::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 2px;
}

.subnav-item,
.thirdnav-item {
    color: var(--text-nav);
    padding: 0.5rem 1rem;
    white-space: nowrap;
    transition: all 0.2s;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.subnav-item:hover,
.subnav-item.active,
.thirdnav-item:hover,
.thirdnav-item.active {
    background: var(--bg-nav-hover);
    color: var(--text-nav);
	font-size:1.2rem;
	font-weight:500;
}

.subnav-item:not(.active),
.thirdnav-item:not(.active) {
    opacity: 0.7;
}
.subnav-bar::-webkit-scrollbar,
.thirdnav-bar::-webkit-scrollbar {
    display: none;
}

/* ===== 书签网格 ===== */
.bookmarks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap:0.8rem;
}

.bookmark-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 1rem;
    position: relative;
    height: 100px;
    display: flex;
    flex-direction: column;
    /*box-shadow: var(--shadow);*/
    justify-content: center;
    transition: all 0.3s ease;
}

.bookmark-card:hover {
    transform: translateY(-2px);
    box-shadow: 2px 4px 8px rgba(0, 0, 0, 0.2);
    background: var(--hover-color);
}

.bookmark-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center; /* 添加垂直居中 */
}

.bookmark-icon .favicon {
    width: 24px;
    height: 24px;
    border-radius: 5px;
}
.bookmark-icon {
	font-size: 1.2rem;
}

.bookmark-info {
    overflow: hidden;
    width: 100%; /* 确保宽度100% */
}

/*.bookmark-icon {
    width: 40px;
    height: 40px;
	font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-color));
    flex-shrink: 0;
}*/

.bookmark-title {
    font-size: 0.9rem;
    font-weight: 450;
    color: var(--text-color);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 1; /* 限制为1行 */
    -webkit-box-orient: vertical;
    overflow: auto;
    white-space: nowrap; /* 确保单行显示 */
    /*text-overflow: ellipsis;  添加省略号 */
    width: 100%; /* 确保宽度100% */
    text-align: center; /* 文本居中 */
    margin: 0; /* 移除默认边距 */
}

.bookmark-meta {
    text-align: center; /* 文本居中 */
    width: 100%; /* 确保宽度100% */
}

.bookmark-url {
    color: var(--text-color2);
    border-radius: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* 添加省略号 */
    max-width: 100%;
    font-size: 0.6rem;
    display: block; /* 确保块级显示 */
}
    
.bookmark-desc {
    font-size: 0.6rem;
    color: var(--text-color2);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: nowrap;
    text-align: center; /* 文本居中 */
    width: 100%; /* 确保宽度100% */
}

.bookmark-actions {
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    display: flex;
    gap: 0.25rem;
    opacity: 0;
    transition: all 0.3s ease;
}

.bookmark-card:hover .bookmark-actions {
    opacity: 1;
}

.action-btn:hover {
    background: var(--primary-color);
    color: white;
}

/* ---------------------------三种布局样式---------------------- */

/* 标准 */
.bookmarks-grid.medium {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap:1rem;
}


/* 极简*/
.bookmarks-grid.compact {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.bookmarks-grid.compact .bookmark-card {
  height: 40px;
}

.bookmarks-grid.compact .bookmark-icon {
  display: none; /* 隐藏图标 */
}

.bookmarks-grid.compact .bookmark-desc {
  display: none;
}

.bookmarks-grid.compact .bookmark-meta {
  display: none;
}

.bookmarks-grid.compact .bookmark-actions {
  display: none; /* 隐藏复制按钮 */
}


/* 列表 */
.bookmarks-grid.large {
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
}

.bookmarks-grid.large .bookmark-card {
  height:40px;
  padding: 12px;
}
.bookmarks-grid.large .bookmark-content {
    flex-direction: row;
	gap: 8px;
}
.bookmarks-grid.large  .bookmark-info {
    width: 100%;
    justify-content: flex-start;
}
.bookmarks-grid.large .bookmark-title {
  font-weight: 400;
  -webkit-box-orient: horizontal;
}

.bookmarks-grid.large .bookmark-icon .favicon {
    width: 16px;
    height: 16px;
}

.bookmarks-grid.large .bookmark-meta {
  display: none;
}

.bookmarks-grid.large .bookmark-desc {
  display: none;
}


/* ============================ 模态弹出框 ======================= */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    background-image: var(--background-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

.extension-modal-content {
    display: flex;
    max-width: 800px;
    flex-direction: column;
    width: 90vw;
	max-height: 80vh;
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
	font-size: 0.9rem;
    color: var(--text-color2);
    padding: 1rem 1.5rem;
    background: var(--top-header);
	border-radius: 10px 10px 0 0;
	border-bottom: 1px solid var(--border-color);
}
.modal-body {
    flex: 1;
    padding: 1.2rem;
    overflow: auto;
	border-radius:  0 0 10px 10px;
    background: var(--bg-subnav);
	
}
.modal-body pre {
    white-space: pre-wrap;
    word-wrap: break-word;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-color);
    margin: 0;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: 6px;
    border: 1px solid var(--border-color);
    overflow: auto;
    word-break: break-all;
	max-height: 70vh;
}
.modal-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.action-btn:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.1);
}
.action-btn {
    pointer-events: auto;
    background: var(--bg-subnav);
    border-radius: 4px;
    padding: 0.4rem;
    cursor: pointer;
    transition: all 0.2s;
	line-height: 1.2;
	color: var(--text-nav);
}
/* ===== 状态消息 ===== */
.no-links-message,
.no-search-results {
    text-align: center;
    padding: 2rem;
    color: var(--text-color2);
    grid-column: 1 / -1;
}

.error-state {
    text-align: center;
    padding: 3rem;
    color: #ef4444;
    grid-column: 1 / -1;
}

.retry-btn {
    margin-top: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}
/* 下拉菜单统一样式 */
.dropdown-container {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg--color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    min-width: 140px;
    z-index: 1010;
    margin-top: 5px;
    padding: 8px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    color: var(--text-color);
    font-size: 14px;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    gap: 8px;
}

.dropdown-item:hover {
    background-color: var(--primary-hover);
}

.dropdown-item.active {
    background-color: var(--primary-color);
    color: white;
}

.dropdown-icon {
    margin-right: 10px;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.dropdown-separator {
    height: 1px;
    background-color: var(--border-color, #e1e5e9);
    margin: 4px 0;
}

/* 布局下拉菜单特定样式 */
.layout-dropdown {
    min-width: 120px;
}

/* 更多下拉菜单特定样式 */
.more-dropdown {
    min-width: 160px;
}



/* ===== 页底 ===== */
.footer-content {
    max-width: 960px;
    margin: 30px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color2);
    font-size: 0.875rem;
    text-align: center;
}

/* =====================移动端底部导航栏图标样式================ */
.mobile-nav-icon {
    width: 24px;
    height: 24px;
    transition: all 0.3s ease;
}

.mobile-nav-item.active .mobile-nav-icon {
    transform: scale(1.1);
    filter: brightness(1.2);
}

/* 确保原有的移动端导航样式不变 */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-nav);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 4px 0;
    border-top: 1px solid var(--border-color);
    z-index: 1010;
    backdrop-filter: blur(10px);
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2px 4px;
    color: var(--text-nav);
    opacity: 0.5;
    transition: all 0.3s ease;
    cursor: pointer;
    flex: 1;
    text-align: center;
}

.mobile-nav-item.active {
    opacity: 1;
    color: var(--text-nav);
}

.mobile-nav-text {
    font-size: 10px;
    font-weight: 400;
}
/* ======================================= 设置应用样式 ============================ */
.settings-nav-container {
    display: flex;
    background: var(--bg-nav);
    backdrop-filter: blur(10px);
    width: 100%;
    justify-content: center;
    position: sticky;
    top: 0;
}

.settings-nav {
    display: flex;
    height: 40px;
    overflow-x: auto;
    scrollbar-width: thin;
    white-space: nowrap;
    justify-content: space-evenly;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.settings-nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1.5rem;
    width: 100px;
    height: 100%;
    color: var(--text-nav);
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
}

.settings-nav-item:not(.active) {
    opacity: 0.7;
}

.settings-nav-item.active {
    opacity: 1;
    border-bottom-color: var(--primary-color);
    background: var(--bg-nav-hover);
}

.settings-nav-item:hover {
    background: var(--bg-nav-hover);
}

.settings-content {
    padding: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

/* ===== 设置区域样式 ===== */
.settings-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border-color);
}

.settings-section h3 {
    margin-bottom: 1rem;
    color: var(--text-color);
    font-size: 1.2rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

/* ===== 设置项样式 ===== */
.setting-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
}

.setting-item:last-child {
    margin-bottom: 0;
    border-bottom: none;
}

.setting-item label {
    font-weight: 500;
    color: var(--text-color);
    flex: 1;
}

.setting-input,
.setting-select {
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: var(--bg-primary);
    color: var(--text-color);
    flex: 0 0 200px;
}

.setting-input {
    width: 100px;
}

.setting-select {
    min-width: 150px;
}

/* ===== 复选框组样式 ===== */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-right: 0.5rem;
}

/* ===== API路径组样式 ===== */
.api-path-group {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.api-path-group select {
    flex: 0 0 100px;
}

.api-path-group input {
    flex: 1;
}

/* ===== URL预览样式 ===== */
.url-preview {
    background: var(--bg-subnav);
    padding: 0.75rem;
    border-radius: 4px;
    border: 1px solid var(--border-color);
    margin-top: 0.5rem;
    font-family: monospace;
    font-size: 0.8rem;
    word-break: break-all;
    color: var(--text-color);
}

/* ===== 设置按钮样式 ===== */
.settings-buttons,
.setting-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.settings-btn,
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 0.5rem;
}

.settings-btn {
    background: var(--primary-color);
    color: white;
}

.settings-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
}

.settings-btn.success {
    background: #27ae60;
}

.settings-btn.warning {
    background: #f39c12;
}

.settings-btn.danger {
    background: #e74c3c;
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-light);
}

/* ===== 网格布局样式 ===== */
.notes-settings-grid,
.bookmarks-settings-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.notes-settings-grid .setting-item,
.bookmarks-settings-grid .setting-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.notes-settings-grid .setting-input,
.bookmarks-settings-grid .setting-input {
    flex: 1;
    width: 100%;
}

/* ===== 系统信息网格样式 ===== */
.system-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
}

.info-item {
    text-align: center;
    padding: 1rem;
    background: var(--bg-subnav);
    border-radius: 6px;
}

.info-label {
    font-size: 0.8rem;
    color: var(--text-color2);
    margin-bottom: 0.5rem;
}

.info-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-color);
}

/* ===== 关于内容样式 ===== */
.about-content {
    padding: 0 1.5rem;
}

@media (min-width: 769px) {
    .mobile-bottom-nav {
        display: none !important;
    }
    
    /* 桌面端显示应用切换器 */
    .app-switcher {
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .app-tab {
        padding: 0.5rem 1rem;
        border: none;
        background: transparent;
        color: var(--text-nav);
        cursor: pointer;
        border-radius: 4px;
        transition: background 0.2s;
        opacity: 0.7;
    }
    
    .app-tab.active {
        opacity: 1;
        background: var(--bg-nav-hover);
    }
    
    .app-tab:hover {
        background: var(--bg-nav-hover);
    }
}

/* ===== 移动端响应式设计 ===== */
@media (max-width: 768px) {
    /* 设置导航项 */
    .settings-nav-item {
        font-size: 0.9rem;
    }
    
    /* 设置内容区域 */
    .settings-content {
        padding: 1rem;
    }
    
    .settings-section {
        padding: 1rem;
        margin-bottom: 1rem;
    }
    
    /* 设置项调整 */
    .setting-item {
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .setting-input {
        flex: 1;
    }
    
    /* 网格布局调整为单列 */
    .notes-settings-grid,
    .bookmarks-settings-grid {
        grid-template-columns: 1fr;
    }
    
    /* 系统信息网格 */
    .system-info-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    /* 按钮容器 */
    .settings-buttons {
        flex-direction: column;
    }
    
    .settings-btn {
        width: 100%;
    }
    
    .setting-buttons {
        width: 160px;
    }
    
    /* 书签网格布局调整 */
    .bookmarks-grid.medium {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.8rem;
    }
    
    .bookmarks-grid.medium .bookmark-card {
        height: 90px;
    }
    
    .bookmarks-grid.compact {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
    
    .bookmarks-grid.large {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 0.5rem;
    }
    
    .bookmarks-grid.large .bookmark-card {
        height: 30px;
        padding: 10px;
    }
    
    /* 导航栏调整 */
    .main-nav-container {
        justify-content: left;
    }
    
    .app-switcher {
        display: none !important;
    }
    
    .mobile-bottom-nav {
        display: flex;
    }
    
    /* 子导航栏 */
    .subnav-bar,
    .thirdnav-bar {
        padding: 0 1rem;
        gap: 1rem;
        justify-content: left;
    }
    
    /* 内容区域 */
    .content-area {
        margin: 1rem;
        padding: 0;
    }
    
    .bookmark-title {
        font-size: 0.8rem;
    }
    
    /* 搜索页面调整 */
    .search-page {
        bottom: 60px;
    }
    
    .search-container {
        max-width: 300px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        overflow: hidden;
        border: 1px solid #dfe1e5;
        position: sticky;
        z-index: 1002;
    }
    
    .bookmark-results-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 0.5rem;
    }
    
    .search-result-card {
        height: 60px;
    }
    
    .search-btn {
        padding: 5px;
    }
    
    /* 新建便签按钮 */
    .new-note-btn {
        bottom: 80px;
        right: 20px;
    }
    
    /* 模态框 */
    .modal-body {
        padding: 0.5rem;
    }
    
    .modal-body pre {
        max-height: 70vh;
    }
    
    .modal-header {
        padding: 0.6rem 1rem;
    }
    
    /* 移动端滚动条 */
    .subnav-bar::-webkit-scrollbar,
    .thirdnav-bar::-webkit-scrollbar {
        height: 3px;
    }
    
    .main-nav::-webkit-scrollbar {
        height: 2px;
    }
    
    /* 移动端翻页提示 */
    .swipe-hint {
        position: fixed;
        bottom: 5%;
        left: 50%;
        transform: translate(-50%, -50%);
        background: rgba(0, 0, 0, 0.1);
        color: white;
        padding: 12px 24px;
        border-radius: 24px;
        font-size: 15px;
        z-index: 1000;
        pointer-events: none;
        animation: fadeInOut 2s ease-in-out;
        backdrop-filter: blur(10px);
    }
}




/* 工具类 */
.hidden {
    display: none !important;
}

/* 同步状态样式 */
.sync-status {
    position: fixed;
    top: 80px;
    right: 20px;
    padding: 10px 15px;
    border-radius: 4px;
    z-index: 1000;
    font-size: 14px;
    background-color: #4a6fa5;
    color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.sync-status.success {
    background-color: #28a745;
}

.sync-status.error {
    background-color: #dc3545;
}

.sync-status.info {
    background-color: #4a6fa5;
}

@keyframes fadeInOut {
    0% { opacity: 0; }
    20% { opacity: 1; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}




@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}