/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background-color: #ffffff;
    color: #37352f;
    line-height: 1.5;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

ul, ol {
    list-style: none;
}

input, textarea {
    font-family: inherit;
    border: none;
    outline: none;
}

/* 移除未使用的懒加载样式 */

/* Favicon加载样式 */
.favicon {
    opacity: 0.7;
    transition: opacity 0.3s ease;
    background: #f5f5f5;
    border-radius: 2px;
}

.favicon-loaded {
    opacity: 1;
}

/* 移除未使用的动画样式 */

/* 错误页面样式 */
.error-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    padding: 2rem;
}

.error-content {
    text-align: center;
    max-width: 400px;
}

.error-content h2 {
    margin: 16px 0;
    color: #333;
    font-size: 1.5rem;
}

.error-content p {
    margin-bottom: 24px;
    color: #666;
    line-height: 1.6;
}

.retry-btn {
    background: #007bff;
    color: white;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.retry-btn:hover {
    background: #0056b3;
}

.retry-btn i {
    font-size: 12px;
}

/* 顶部标题栏 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-bottom: 1px solid #e9e9e7;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0;
    width: 100%;
    gap: 0;
}

.header-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-shrink: 0;
    padding-left: 24px;
}

.header-center {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 0 20px;
}

.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding-right: 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 700;
    color: #37352f;
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.02);
}

.logo i {
    font-size: 24px;
    color: #2eaadc;
    transition: all 0.3s ease;
}

.logo:hover i {
    transform: rotate(10deg);
    color: #2596be;
}

/* 顶部搜索框 */
.header .search-box {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 500px;
}

.header .search-box i {
    position: absolute;
    left: 16px;
    color: #9b9a97;
    font-size: 16px;
    z-index: 2;
    transition: color 0.2s ease;
}

.header .search-box input {
    width: 100%;
    padding: 12px 50px 12px 48px;
    border: 2px solid #e9e9e7;
    border-radius: 25px;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header .search-box input:focus {
    outline: none;
    border-color: #2eaadc;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(46, 170, 220, 0.15);
    transform: translateY(-1px);
}

.header .search-box input:focus + .search-clear {
    opacity: 1;
    pointer-events: auto;
}

/* 当输入框有内容时显示清除按钮 */
.header .search-box input:not(:placeholder-shown) + .search-clear {
    opacity: 1;
    pointer-events: auto;
}

.header .search-box .search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    height: auto;
    border: none;
    background: transparent;
    color: #9b9a97;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 2;
    padding: 4px;
    border-radius: 4px;
    touch-action: manipulation;
}

.header .search-box .search-clear i {
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header .search-box .search-clear:hover {
    background: rgba(155, 154, 151, 0.1);
    color: #37352f;
    transform: translateY(-50%);
}

.header .search-box .search-clear:active {
    background: rgba(155, 154, 151, 0.2);
    color: #37352f;
    transform: translateY(-50%);
}

/* 刷新按钮 */
.sync-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: linear-gradient(135deg, #2eaadc 0%, #2596be 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(46, 170, 220, 0.2);
}

.sync-btn:hover {
    background: linear-gradient(135deg, #2596be 0%, #1e7ba8 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 170, 220, 0.3);
}

.sync-btn:active {
    transform: translateY(0);
}

.sync-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
    box-shadow: none;
}

.sync-btn:disabled i {
    animation: spin 1s linear infinite;
    transform: none;
}

.sync-btn i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.sync-btn:hover i {
    transform: rotate(180deg);
}

.sync-text {
    display: none;
}

/* 菜单切换按钮 */
.menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.9);
    color: #37352f;
    border: 2px solid #e9e9e7;
    border-radius: 12px;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.menu-toggle:hover {
    background: #ffffff;
    color: #2eaadc;
    border-color: #2eaadc;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(46, 170, 220, 0.15);
}

/* 主容器 */
.container {
    display: flex;
    margin-top: 70px;
    min-height: calc(100vh - 70px);
}

/* 左侧边栏 */
.sidebar {
    width: 280px;
    background: linear-gradient(135deg, #f8f9fa 0%, #f1f3f4 100%);
    border-right: 1px solid #e1e5e9;
    padding: 24px 0;
    position: fixed;
    height: calc(100vh - 70px);
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
}

.nav-menu {
    padding: 0 12px;
}

.menu-section {
    margin-bottom: 28px;
    position: relative;
}

.menu-section::after {
    content: '';
    position: absolute;
    bottom: -14px;
    left: 16px;
    right: 16px;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, #e1e5e9 50%, transparent 100%);
}

.menu-section:last-child::after {
    display: none;
}

.menu-section h3 {
    font-size: 11px;
    font-weight: 700;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 12px;
    padding: 8px 16px;
    background-color: rgba(255, 255, 255, 0.6);
    border-radius: 6px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.menu-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 16px;
    font-weight: 500;
    color: #495057;
    position: relative;
    overflow: hidden;
    margin: 0 4px;
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(46, 170, 220, 0.1), transparent);
    transition: left 0.5s;
}

.menu-item:hover::before {
    left: 100%;
}

.menu-item:hover {
    background: linear-gradient(135deg, rgba(46, 170, 220, 0.08) 0%, rgba(46, 170, 220, 0.12) 100%);
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(46, 170, 220, 0.15);
    border-left: 3px solid #2eaadc;
}

.menu-item.active {
    background: linear-gradient(135deg, #2eaadc 0%, #2596be 100%);
    color: white;
    transform: translateX(6px);
    box-shadow: 0 6px 20px rgba(46, 170, 220, 0.3);
    border-left: 3px solid #1e7ba8;
}

.menu-item.active::before {
    display: none;
}

.menu-item i {
    width: 18px;
    font-size: 16px;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.menu-item:hover i {
    transform: scale(1.1);
}

.menu-item.active i {
    transform: scale(1.15);
}

.menu-item span {
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

/* 二级分类样式 */
.category-parent {
    position: relative;
}

.category-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border: none;
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.category-toggle i {
    font-size: 10px;
    transition: transform 0.3s ease;
}

.category-parent.expanded .category-toggle i {
    transform: rotate(90deg);
}

/* 子菜单样式 */
.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    margin-left: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 0 0 8px 8px;
    margin-top: 2px;
}

.submenu.expanded {
    max-height: 200px;
}

.submenu-item {
    margin-left: 20px;
    margin-right: 8px;
    padding: 8px 16px;
    font-size: 13px;
    border-left: 2px solid transparent;
    position: relative;
}

.submenu-item::before {
    content: '';
    position: absolute;
    left: -20px;
    top: 50%;
    width: 12px;
    height: 1px;
    background: #9b9a97;
    opacity: 0.5;
}

.submenu-item:hover {
    background: linear-gradient(135deg, rgba(46, 170, 220, 0.06) 0%, rgba(46, 170, 220, 0.1) 100%);
    border-left-color: #2eaadc;
    transform: translateX(2px);
}

.submenu-item.active {
    background: linear-gradient(135deg, #20c997 0%, #17a2b8 100%);
    color: white;
    border-left-color: #17a2b8;
    transform: translateX(4px);
}

/* 主内容区域 */
.main-content {
    flex: 1;
    margin-left: 280px;
    padding: 32px;
    max-width: calc(100vw - 280px);
}

/* 主内容区搜索框 */
.main-content .search-box {
    position: relative;
    width: 320px;
    margin-bottom: 24px;
    margin-left: auto; /* 移动到右侧 */
}

.main-content .search-box i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #9b9a97;
    font-size: 16px;
    z-index: 2;
    transition: color 0.2s ease;
}

.main-content .search-box input {
    width: 100%;
    padding: 12px 50px 12px 48px;
    border: 2px solid #e9e9e7;
    border-radius: 25px;
    font-size: 15px;
    background: #ffffff;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.main-content .search-box input:focus {
    outline: none;
    border-color: #2eaadc;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(46, 170, 220, 0.15);
    transform: translateY(-1px);
}

.main-content .search-box input:focus + .search-clear {
    opacity: 1;
    pointer-events: auto;
}

/* 当输入框有内容时显示清除按钮 */
.main-content .search-box input:not(:placeholder-shown) + .search-clear {
    opacity: 1;
    pointer-events: auto;
}

.main-content .search-box .search-clear {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    height: auto;
    border: none;
    background: transparent;
    color: #9b9a97;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 2;
    padding: 4px;
    border-radius: 4px;
    touch-action: manipulation;
}

.main-content .search-box .search-clear i {
    font-size: 14px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-content .search-box .search-clear:hover {
    background: rgba(155, 154, 151, 0.1);
    color: #37352f;
    transform: translateY(-50%);
}

.main-content .search-box .search-clear:active {
    background: rgba(155, 154, 151, 0.2);
    color: #37352f;
    transform: translateY(-50%);
}

/* 页面标题区域 */
.page-title-section {
    margin-bottom: 24px;
}

.page-title-section h1 {
    font-size: 22px;
    font-weight: 700;
    color: #37352f;
    margin: 0;
}

/* 页面头部布局 */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 20px;
}

.page-header .page-title-section {
    margin-bottom: 0;
    flex-shrink: 0;
}

.page-header .search-box {
    flex: 1;
    max-width: 400px;
    margin-left: auto;
}

/* 书签网格 */
.bookmarks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

/* 书签分组样式 */
.bookmark-group-header {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    padding: 16px 0;
    margin-bottom: 16px;
    border-bottom: 2px solid #f1f1ef;
}

.group-title {
    font-size: 20px;
    font-weight: 700;
    color: #37352f;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.group-title::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #2eaadc 0%, #2596be 100%);
    border-radius: 2px;
}

.group-count {
    font-size: 14px;
    color: #9b9a97;
    background: #f1f1ef;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 500;
    margin-left: 8px;
}

.bookmark-group {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .header-content {
        gap: 16px;
    }
    
    .header .search-box {
        max-width: 400px;
    }
    
    .sync-text {
        display: none;
    }
}

@media (max-width: 968px) {
    .header-content {
        gap: 12px;
    }
    
    .header .search-box {
        max-width: 300px;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1001;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        max-width: 100vw;
        padding: 24px 16px;
    }
    
    .bookmarks-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 16px;
    }
    
    /* 移动端快速访问按钮样式 */
    .bookmark-actions {
        opacity: 1 !important;
        transform: translateX(0) !important;
        position: absolute !important;
        top: 8px !important;
        right: 8px !important;
        margin-left: 0 !important;
    }
    
    .bookmark-quick-access {
        padding: 8px 12px;
        font-size: 11px;
        background: rgba(79, 172, 254, 0.1) !important;
        backdrop-filter: blur(10px);
        border: 1px solid rgba(79, 172, 254, 0.2);
        color: #4facfe;
        min-width: auto;
        min-height: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4px;
    }
    
    .bookmark-quick-access:hover {
        background: rgba(79, 172, 254, 0.15) !important;
        transform: translateY(-1px);
        color: #3a9bfe;
    }
    
    /* 移动端触摸反馈 */
    .bookmark-quick-access:active {
        transform: translateY(0) !important;
        background: rgba(79, 172, 254, 0.2) !important;
    }
}

/* 平板设备优化 */
@media (max-width: 768px) {
    .bookmark-actions {
        opacity: 1 !important;
        transform: translateX(0) !important;
        position: absolute !important;
        top: 8px !important;
        right: 8px !important;
    }
    
    .bookmark-quick-access {
        background: transparent !important;
        backdrop-filter: none;
        border: none;
        color: #4facfe;
        display: flex;
        align-items: center;
        gap: 4px;
    }
}

@media (max-width: 640px) {
    .header {
        height: 60px;
    }
    
    .header-content {
        gap: 8px;
    }
    
    .header-left {
        padding-left: 16px;
    }
    
    .header-center {
        padding: 0 16px;
    }
    
    .header-right {
        padding-right: 16px;
    }
    
    .header .search-box {
        max-width: none;
    }
    
    .header .search-box input {
        padding: 10px 40px 10px 40px;
        font-size: 14px;
    }
    
    .container {
        margin-top: 60px;
        min-height: calc(100vh - 60px);
    }
    
    .sidebar {
        height: calc(100vh - 60px);
        width: 100%;
        max-width: 280px;
    }
    
    .main-content {
        padding: 16px 12px;
    }
    
    .page-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }
    
    .page-header .search-box {
        max-width: none;
        margin-left: 0;
        width: 100%;
        margin-bottom: 0;
    }
    
    .page-title-section h1 {
        font-size: 20px;
    }
    
    .bookmarks-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .bookmark-group-header {
        padding: 10px 0;
        margin-bottom: 10px;
    }
    
    .group-title {
        font-size: 16px;
        gap: 6px;
    }
    
    .group-count {
        font-size: 11px;
        padding: 2px 6px;
        margin-left: 4px;
    }
    
    /* 小屏幕移动端快速访问按钮样式 */
    .bookmark-actions {
        opacity: 1 !important;
        transform: translateX(0) !important;
        position: absolute !important;
        top: 6px !important;
        right: 6px !important;
        margin-left: 0 !important;
    }
    
    .bookmark-quick-access {
        padding: 6px 10px;
        font-size: 11px;
        background: transparent !important;
        backdrop-filter: none;
        border: none;
        color: #4facfe;
        display: flex;
        align-items: center;
        gap: 3px;
    }
    
    .bookmark-quick-access:hover {
        background: rgba(79, 172, 254, 0.15) !important;
        transform: translateY(-1px);
        color: #3a9bfe;
    }
    
    .logo {
        font-size: 20px;
        gap: 8px;
    }
    
    .logo span {
        display: inline;
        font-size: 18px;
        font-weight: 600;
    }
    
    .header-left {
        padding-left: 12px;
        flex-shrink: 0;
        min-width: 0;
    }
    
    .header-center {
        padding: 0 8px;
        flex: 1;
        min-width: 0;
    }
    
    .header-right {
        padding-right: 12px;
        flex-shrink: 0;
    }
    
    .sync-btn {
        display: none;
    }
    
    .menu-toggle {
        display: flex;
        width: 36px;
        height: 36px;
    }
    
    .menu-toggle i {
        font-size: 16px;
    }
}

/* 下拉刷新指示器 */
.pull-refresh-indicator {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    border-bottom: 1px solid #e1e5e9;
}

.pull-refresh-content {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
}

.pull-refresh-icon {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.pull-refresh-indicator.can-refresh .pull-refresh-icon {
    color: #007bff;
    transform: rotate(180deg);
}

.pull-refresh-indicator.can-refresh .pull-refresh-text {
    color: #007bff;
}

/* 侧边栏遮罩 */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* 书签卡片 */
.bookmark-card {
    background: linear-gradient(135deg, #ffffff 0%, #fafafa 100%);
    border: 1px solid #e9e9e7;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    outline: none;
    outline-offset: 3px;
    box-shadow: 
        0 2px 8px rgba(0, 0, 0, 0.06), 
        0 1px 3px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.bookmark-card:hover {
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
    box-shadow: 0 12px 30px rgba(46, 170, 220, 0.3);
    transform: translateY(-3px);
    border-color: #2eaadc;
    outline: 3px solid #2eaadc;
    outline-offset: 3px;
    z-index: 10;
}

.bookmark-card:focus {
    outline: 2px solid #4facfe;
    outline-offset: 2px;
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.15), 0 4px 10px rgba(79, 172, 254, 0.1);
    border-color: #4facfe;
}

.bookmark-card:focus .bookmark-actions {
    opacity: 1;
    transform: translateX(0);
}

.bookmark-card.keyboard-focused {
    outline: 3px solid #2eaadc;
    outline-offset: 3px;
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(46, 170, 220, 0.3);
    z-index: 10;
    background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
    border-color: #2eaadc;
}

.bookmark-card.keyboard-focused .bookmark-actions {
    opacity: 1;
    transform: translateX(0);
}

.bookmark-card.keyboard-focused .bookmark-quick-access {
    background: linear-gradient(135deg, #2eaadc 0%, #2596be 100%);
    color: white;
    transform: scale(1.05);
}

.bookmark-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
    position: relative;
}

.bookmark-favicon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    flex-shrink: 0;
    background-color: #f7f6f3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.bookmark-favicon img {
    width: 100%;
    height: 100%;
    border-radius: 6px;
}

.bookmark-info {
    flex: 1;
    min-width: 0;
}

/* 移除分类徽章样式 */

/* 移除不再使用的样式 */

.bookmark-description {
    font-size: 14px;
    color: #6f6e69;
    line-height: 1.4;
    margin: 0 0 12px 0;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bookmark-title {
    font-size: 16px;
    font-weight: 600;
    color: #37352f;
    line-height: 1.3;
    margin: 0;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bookmark-url {
    font-size: 12px;
    color: #9b9a97;
    text-decoration: none;
}

/* 快速访问按钮 */
.bookmark-actions {
    position: absolute;
    top: 0;
    right: 0;
    opacity: 0;
    transform: translateX(10px);
    transition: all 0.3s ease;
}

.bookmark-card:hover .bookmark-actions {
    opacity: 1;
    transform: translateX(0);
}

.bookmark-card:hover .bookmark-quick-access {
    background: linear-gradient(135deg, #2eaadc 0%, #2596be 100%);
    color: white;
    transform: scale(1.05);
}

.bookmark-quick-access {
    padding: 6px 12px;
    border: none;
    background: transparent;
    color: #4facfe;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
}

.bookmark-quick-access:hover {
    background: transparent;
    color: #3a9bfe;
    transform: translateY(-1px);
}

.bookmark-quick-access:active {
    transform: translateY(0);
    background: transparent;
}

.bookmark-quick-access i {
    margin-right: 4px;
    transition: transform 0.3s ease;
}

.bookmark-quick-access span {
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

.bookmark-quick-access:hover i {
    transform: translateX(1px);
}

/* 移除重复的样式定义 */

.bookmark-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 8px;
    max-height: 60px;
    overflow: hidden;
    min-height: 20px;
    border: 1px solid transparent;
}

.tag {
    background-color: #f1f1ef;
    color: #37352f;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    transition: all 0.2s ease;
    display: inline-block;
    border: 1px solid #e1e5e9;
}

.tag:hover {
    background-color: #e9ecef;
    transform: translateY(-1px);
}

/* 标签数量限制提示 */
.bookmark-tags::after {
    content: '';
    display: none;
}

.bookmark-tags.has-more::after {
    content: '...';
    display: inline-block;
    color: #9b9a97;
    font-size: 12px;
    font-weight: 500;
    margin-left: 4px;
    align-self: center;
}

/* 移除未使用的bookmark-meta样式 */

/* 加载状态 */
.loading {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #9b9a97;
    font-size: 14px;
}

.loading i {
    font-size: 24px;
    margin-bottom: 12px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* 底部信息 */
.footer {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-top: 1px solid #e1e5e9;
    padding: 24px;
    margin-left: 260px;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05);
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    font-size: 14px;
    color: #6f6e69;
}

.footer-copyright {
    text-align: center;
}

.footer-copyright span {
    display: inline-block;
}

.footer-link {
    color: #2eaadc;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-link:hover {
    color: #2596be;
}

/* 返回顶部按钮 */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background-color: #2eaadc;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s;
    z-index: 1000;
}

.back-to-top:hover {
    background-color: #2596be;
    transform: translateY(-2px);
}

.back-to-top.show {
    display: flex;
}

/* 模态框 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid #e9e9e7;
}

.modal-header h2 {
    font-size: 20px;
    font-weight: 600;
    color: #37352f;
}

.modal-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #9b9a97;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.modal-close:hover {
    background-color: #f1f1ef;
}

.modal-body {
    padding: 24px;
}

/* 书签详情样式 */
.bookmark-detail-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e9e9e7;
}

.bookmark-detail-favicon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    flex-shrink: 0;
    background-color: #f7f6f3;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bookmark-detail-favicon img {
    width: 100%;
    height: 100%;
    border-radius: 6px;
}

.bookmark-detail-info h3 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 600;
    color: #37352f;
}

.bookmark-detail-url a {
    color: #2eaadc;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.bookmark-detail-url a:hover {
    color: #2596be;
    text-decoration: underline;
}

.bookmark-detail-content {
    margin-bottom: 24px;
}

.detail-section {
    margin-bottom: 20px;
}

.detail-section h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-section p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #37352f;
}

.bookmark-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.bookmark-detail-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    padding-top: 16px;
    border-top: 1px solid #e9e9e7;
}

.detail-action-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.detail-action-btn.primary {
    background: linear-gradient(135deg, #2eaadc 0%, #2596be 100%);
    color: white;
}

.detail-action-btn.primary:hover {
    background: linear-gradient(135deg, #2596be 0%, #1e7ba8 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(46, 170, 220, 0.3);
}

.detail-action-btn.secondary {
    background: #f8f9fa;
    color: #6c757d;
    border: 1px solid #dee2e6;
}

.detail-action-btn.secondary:hover {
    background: #e9ecef;
    color: #495057;
    transform: translateY(-1px);
}

.usage-tips {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px;
}

.usage-tips h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
}

.usage-tips ul {
    margin: 0;
    padding-left: 20px;
}

.usage-tips li {
    margin-bottom: 6px;
    font-size: 13px;
    line-height: 1.4;
    color: #6c757d;
}

.usage-tips li:last-child {
    margin-bottom: 0;
}

.usage-tips strong {
    color: #495057;
    font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }
    
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1001;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 1000;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
    }
    
    .sidebar-overlay.show {
        opacity: 1;
        visibility: visible;
    }
    
    .main-content {
        margin-left: 0;
        max-width: 100vw;
        padding: 24px 16px;
    }
    
    .footer {
        margin-left: 0;
    }
    
    .page-header {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .page-header .search-box {
        max-width: none;
        margin-left: 0;
        width: 100%;
        margin-bottom: 0;
    }
    
    .main-content .search-box {
        width: 100%;
        margin-bottom: 20px;
        margin-left: 0; /* 移动端居中显示 */
    }
    
    .page-title-section h1 {
        font-size: 20px;
    }
    
    /* 移动端隐藏使用提示 */
    .usage-tips {
        display: none;
    }
    
    .bookmarks-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .bookmark-group {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 24px;
    }
    
    .bookmark-group-header {
        padding: 12px 0;
        margin-bottom: 12px;
    }
    
    .group-title {
        font-size: 18px;
        gap: 8px;
    }
    
    .group-count {
        font-size: 12px;
        padding: 3px 8px;
        margin-left: 6px;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .back-to-top {
        bottom: 16px;
        right: 16px;
        width: 44px;
        height: 44px;
    }
    
    /* 标签筛选栏移动端样式 */
    .tags-filter-bar {
        margin-bottom: 20px;
    }
    
    .tags-filter-header h3 {
        font-size: 14px;
    }
    
    .clear-tags-btn {
        font-size: 12px;
        padding: 4px 8px;
    }
    
    .filter-tag {
        font-size: 12px;
        padding: 4px 8px;
    }
    
    .tags-filter-content {
        gap: 6px;
    }
    
    /* 隐藏网络检测按钮 */
    .diagnose-btn {
        display: none !important;
    }
}

/* 空状态 */
.empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    color: #9b9a97;
    text-align: center;
    min-height: 400px;
    background: #fafafa;
    border-radius: 12px;
    border: 2px dashed #e9e9e7;
    margin: 20px;
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 24px;
    color: #d1d0ce;
    animation: pulse 2s infinite;
}

.empty-state h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: #6f6e69;
    font-weight: 600;
}

.empty-state p {
    font-size: 16px;
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
}

/* 错误页面样式 */
.error-page {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    padding: 40px 20px;
}

.error-content {
    text-align: center;
    max-width: 500px;
    padding: 40px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid #f0f0f0;
}

.error-content h2 {
    font-size: 24px;
    color: #37352f;
    margin-bottom: 16px;
    font-weight: 600;
}

.error-content p {
    font-size: 16px;
    color: #6f6e69;
    line-height: 1.6;
    margin-bottom: 32px;
}

.retry-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #2eaadc;
    color: white;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: pointer;
}

.retry-btn:hover {
    background: #2596be;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(46, 170, 220, 0.3);
}

/* 脉冲动画 */
@keyframes pulse {
    0%, 100% {
        opacity: 0.6;
    }
    50% {
        opacity: 1;
    }
}



/* 移动端快速访问按钮 - 始终显示 */
@media (max-width: 968px) {
    .bookmark-card .bookmark-actions {
        opacity: 1 !important;
        transform: translateX(0) !important;
        position: absolute !important;
        top: 8px !important;
        right: 8px !important;
        z-index: 20 !important;
    }
    
    .bookmark-card .bookmark-quick-access {
        background: transparent !important;
        backdrop-filter: none;
        border: none;
        padding: 8px 12px;
        min-width: auto;
        min-height: auto;
        box-shadow: none;
        color: #4facfe;
        display: flex;
        align-items: center;
        gap: 4px;
    }
    
    .bookmark-card .bookmark-quick-access:hover {
        background: transparent !important;
        transform: translateY(-1px);
        box-shadow: none;
        color: #3a9bfe;
    }
    
    .bookmark-card .bookmark-quick-access:active {
        transform: translateY(0) !important;
        background: transparent !important;
    }
    
    /* 平板端图标尺寸调整 */
    .bookmark-favicon {
        width: 30px;
        height: 30px;
        border-radius: 5px;
        font-size: 15px;
    }
    
    .bookmark-favicon img {
        border-radius: 5px;
    }
    
    /* 移动端卡片布局优化 */
    /* 移除分类徽章相关样式 */
    
    .bookmark-title {
        font-size: 14px;
        white-space: normal;
        line-height: 1.2;
    }
    
    .bookmark-description {
        font-size: 13px;
    }
    
    .bookmark-tags {
        max-height: 50px;
    }
    
    .tag {
        font-size: 11px;
        padding: 3px 8px;
    }
}

/* 小屏幕移动端优化 */
@media (max-width: 640px) {
    .bookmark-card .bookmark-actions {
        top: 6px !important;
        right: 6px !important;
    }
    
    .bookmark-card .bookmark-quick-access {
        padding: 6px 10px;
        font-size: 11px;
        min-width: auto;
        min-height: auto;
        display: flex;
        align-items: center;
        gap: 3px;
    }
    
    .bookmark-card .bookmark-quick-access span {
        font-size: 10px;
    }
    
    .bookmark-quick-access span {
        font-size: 10px;
    }
    
    .bookmark-quick-access:hover {
        background: transparent !important;
        transform: translateY(-1px);
        color: #3a9bfe;
    }
    
    /* 移动端图标尺寸调整 */
    .bookmark-favicon {
        width: 28px;
        height: 28px;
        border-radius: 5px;
        font-size: 14px;
    }
    
    .bookmark-favicon img {
        border-radius: 5px;
    }
    
    /* 移除分类徽章相关样式 */
    
    .bookmark-title {
        font-size: 13px;
    }
    
    .bookmark-description {
        font-size: 12px;
    }
    
    .bookmark-tags {
        max-height: 45px;
        gap: 4px;
    }
    
    .tag {
        font-size: 10px;
        padding: 2px 6px;
    }
    
    /* 隐藏网络检测按钮 */
    .diagnose-btn {
        display: none !important;
    }
}

/* 标签筛选栏 */
.tags-filter-bar {
    background: #ffffff;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.tags-filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    gap: 16px;
}

.tags-filter-title {
    flex: 1;
    min-width: 0;
}

.tags-filter-title h3 {
    font-size: 16px;
    font-weight: 600;
    color: #37352f;
    margin: 0;
    white-space: nowrap;
}

.tags-filter-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.clear-tags-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.clear-tags-btn:hover {
    background: linear-gradient(135deg, #ee5a52 0%, #d63031 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
}

.expand-tags-btn {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.expand-tags-btn:hover {
    background: linear-gradient(135deg, #3a9bfe 0%, #00e6fe 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(79, 172, 254, 0.3);
}

.expand-tags-btn.expanded {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

.expand-tags-btn.expanded:hover {
    background: linear-gradient(135deg, #5a6268 0%, #343a40 100%);
}

.expand-tags-btn.expanded i {
    transform: rotate(180deg);
}

.expand-tags-btn:disabled {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    cursor: not-allowed;
    opacity: 0.5;
}

.expand-tags-btn:disabled:hover {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    transform: none;
    box-shadow: none;
}

.tags-filter-content {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    min-height: 32px;
    overflow: hidden;
    transition: max-height 0.3s ease;
    line-height: 1;
    width: 100%;
}

.tags-filter-content.expanded {
    max-height: none;
}

.filter-tag {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #495057;
    padding: 5px 10px;
    border-radius: 18px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
    display: flex;
    align-items: center;
    gap: 5px;
    position: relative;
    overflow: hidden;
}

.filter-tag:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.filter-tag.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.filter-tag.selected:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.filter-tag .tag-count {
    background: rgba(255, 255, 255, 0.2);
    color: inherit;
    padding: 1px 5px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    min-width: 18px;
    text-align: center;
}

.filter-tag:not(.selected) .tag-count {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

/* 标签筛选栏响应式设计 */
@media (max-width: 768px) {
    .tags-filter-bar {
        padding: 12px;
        margin-bottom: 16px;
    }
    
    .tags-filter-title h3 {
        font-size: 14px;
    }
    
    .tags-filter-actions {
        gap: 6px;
    }
    
    .expand-tags-btn,
    .clear-tags-btn {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    .filter-tag {
        padding: 4px 8px;
        font-size: 12px;
    }
    
    .tags-filter-content {
        gap: 5px;
    }
}

@media (max-width: 640px) {
    .tags-filter-bar {
        padding: 10px;
        margin-bottom: 12px;
    }
    
    .tags-filter-header {
        flex-direction: row;
        align-items: center;
        gap: 8px;
    }
    
    .tags-filter-title h3 {
        font-size: 13px;
    }
    
    .tags-filter-actions {
        gap: 4px;
        flex-shrink: 0;
    }
    
    .expand-tags-btn,
    .clear-tags-btn {
        padding: 3px 6px;
        font-size: 10px;
        min-width: 60px;
        justify-content: center;
    }
    
    .filter-tag {
        padding: 3px 6px;
        font-size: 11px;
    }
    
    .filter-tag .tag-count {
        font-size: 10px;
        padding: 1px 3px;
        min-width: 14px;
    }
    
    .tags-filter-content {
        gap: 4px;
    }
}

/* 消息提示样式 */
.message-toast {
    position: fixed;
    top: 80px;
    right: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 400px;
    border-left: 4px solid #3742fa;
}

.message-toast.show {
    transform: translateX(0);
}

.message-toast.message-success {
    border-left-color: #2ed573;
}

.message-toast.message-error {
    border-left-color: #ff4757;
}

.message-toast.message-warning {
    border-left-color: #ffa502;
}

.message-toast i {
    font-size: 18px;
    color: #3742fa;
}

.message-toast.message-success i {
    color: #2ed573;
}

.message-toast.message-error i {
    color: #ff4757;
}

.message-toast.message-warning i {
    color: #ffa502;
}

.message-toast span {
    flex: 1;
    font-size: 14px;
    color: #2f3542;
    line-height: 1.4;
}

.message-close {
    background: none;
    border: none;
    color: #a4b0be;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.message-close:hover {
    background: #f1f2f6;
    color: #2f3542;
}

/* 网络状态样式 */
.network-status {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100%);
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10001;
    transition: transform 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.network-status.network-online {
    border-left: 4px solid #2ed573;
}

.network-status.network-offline {
    border-left: 4px solid #ff4757;
}

.network-status.network-online i {
    color: #2ed573;
}

.network-status.network-offline i {
    color: #ff4757;
}

.network-status.show {
    transform: translateX(-50%) translateY(0);
}

.network-status.fade-out {
    transform: translateX(-50%) translateY(-100%);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .message-toast {
        top: 70px;
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100%);
    }
    
    .message-toast.show {
        transform: translateY(0);
    }
    
    .network-status {
        top: 10px;
        left: 10px;
        right: 10px;
        transform: translateY(-100%);
    }
    
    .network-status.show {
        transform: translateY(0);
    }
    
    .network-status.fade-out {
        transform: translateY(-100%);
    }
}

/* 网络诊断样式 */
.diagnosis-summary {
    margin-bottom: 24px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #3742fa;
}

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

.diagnosis-header h3 {
    margin: 0;
    font-size: 16px;
    color: #2f3542;
}

.diagnosis-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
}

.diagnosis-status.success {
    color: #2ed573;
}

.diagnosis-status.warning {
    color: #ffa502;
}

.diagnosis-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.diagnosis-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
}

.diagnosis-item strong {
    color: #2f3542;
}

.diagnosis-item span.success {
    color: #2ed573;
}

.diagnosis-item span.error {
    color: #ff4757;
}

.diagnosis-tests {
    margin-bottom: 24px;
}

.diagnosis-tests h4 {
    margin: 0 0 16px 0;
    font-size: 16px;
    color: #2f3542;
}

.test-item {
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.test-item.success {
    background: #f8fff9;
    border-color: #2ed573;
}

.test-item.error {
    background: #fff8f8;
    border-color: #ff4757;
}

.test-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.test-name {
    font-weight: 500;
    color: #2f3542;
}

.test-status {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 500;
}

.test-item.success .test-status {
    color: #2ed573;
}

.test-item.error .test-status {
    color: #ff4757;
}

.test-details {
    display: flex;
    gap: 16px;
    font-size: 12px;
    color: #747d8c;
}

.test-details span.error {
    color: #ff4757;
}

.diagnosis-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.diagnosis-retry,
.diagnosis-close {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.diagnosis-retry {
    background: linear-gradient(135deg, #3742fa 0%, #2f3542 100%);
    color: white;
    min-width: 120px;
    justify-content: center;
}

.diagnosis-retry:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(55, 66, 250, 0.3);
}

.diagnosis-retry:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
    box-shadow: none;
}

.diagnosis-retry:disabled i {
    animation: spin 1s linear infinite;
}

.diagnosis-close {
    background: #f1f2f6;
    color: #747d8c;
}

.diagnosis-close:hover {
    background: #e9ecef;
    color: #2f3542;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .diagnosis-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .diagnosis-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .test-details {
        flex-direction: column;
        gap: 4px;
    }
    
    .diagnosis-actions {
        flex-direction: column;
    }
    
    .diagnosis-retry,
    .diagnosis-close {
        width: 100%;
        justify-content: center;
        min-width: auto;
    }
    
    .diagnosis-retry:disabled {
        opacity: 0.7;
    }
}

.diagnose-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: linear-gradient(135deg, #ffa502 0%, #ff6348 100%);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(255, 165, 2, 0.2);
    margin-right: 8px;
}

.diagnose-btn:hover {
    background: linear-gradient(135deg, #ff6348 0%, #ff4757 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 165, 2, 0.3);
}

.diagnose-btn i {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.diagnose-btn:hover i {
    transform: rotate(180deg);
}

.diagnose-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
    box-shadow: none;
}

.diagnose-btn:disabled i {
    animation: spin 1s linear infinite;
    transform: none;
}

/* 移动端搜索框清除按钮样式优化 */
@media (max-width: 768px) {
    .main-content .search-box .search-clear {
        right: 10px;
        padding: 6px;
        font-size: 18px;
    }
    
    .main-content .search-box .search-clear i {
        font-size: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .main-content .search-box input {
        padding-right: 44px;
    }
    
    .header .search-box .search-clear {
        right: 10px;
        padding: 6px;
        font-size: 18px;
    }
    
    .header .search-box .search-clear i {
        font-size: 16px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .header .search-box input {
        padding-right: 44px;
    }
}

@media (max-width: 640px) {
    .main-content .search-box .search-clear {
        right: 8px;
        padding: 5px;
        font-size: 16px;
    }
    
    .main-content .search-box .search-clear i {
        font-size: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .main-content .search-box input {
        padding-right: 40px;
        font-size: 14px;
    }
    
    .header .search-box .search-clear {
        right: 8px;
        padding: 5px;
        font-size: 16px;
    }
    
    .header .search-box .search-clear i {
        font-size: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .header .search-box input {
        padding-right: 40px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .main-content .search-box .search-clear {
        right: 6px;
        padding: 4px;
        font-size: 14px;
    }
    
    .main-content .search-box .search-clear i {
        font-size: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .main-content .search-box input {
        padding-right: 36px;
        font-size: 13px;
    }
    
    .header .search-box .search-clear {
        right: 6px;
        padding: 4px;
        font-size: 14px;
    }
    
    .header .search-box .search-clear i {
        font-size: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .header .search-box input {
        padding-right: 36px;
        font-size: 13px;
    }
}

/* 移动端触摸优化 */
@media (hover: none) and (pointer: coarse) {
    .search-clear {
        transition: all 0.2s ease;
        -webkit-tap-highlight-color: transparent;
    }
    
    .search-clear:hover {
        transform: translateY(-50%);
    }
    
    .search-clear:active {
        transform: translateY(-50%);
        background: rgba(155, 154, 151, 0.2);
        color: #37352f;
    }
    
    .search-clear:focus {
        outline: none;
        box-shadow: 0 0 0 2px rgba(46, 170, 220, 0.3);
    }
    
    /* 移动端书签卡片优化 */
    .bookmark-card {
        -webkit-tap-highlight-color: transparent;
    }
    
    .bookmark-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(46, 170, 220, 0.2);
    }
    
    .bookmark-card:active {
        transform: translateY(-1px);
        box-shadow: 0 4px 15px rgba(46, 170, 220, 0.15);
    }
}