/* 移动端全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
}

header {
    background: #fafafc35 ;
    color: white;
    padding: 1rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    background-color: rgba(232, 233, 240, 0.1);
}

header h1 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.search-container {
    display: flex;
    gap: 10px;
    align-items: center;
}

.menu-button {
    background-color: #807ef7;
    color: white;
    border: 2px solid #fff;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
    flex-shrink: 0;
}

.menu-button:active {
    background-color: #6a67d0;
    transform: scale(0.95);
}

#searchInput {
    flex: 1;
    min-width: 0; /* 允许输入框收缩 */
    padding: 12px 15px;
    border: none;
    border-radius: 25px;
    font-size: 1rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#searchButton {
    width: auto; /* 固定宽度 */
    white-space: nowrap; /* 防止文字换行 */
    padding: 12px 20px;
    background-color: #807ef7;
    color: white;
    border: 2px solid #fff;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s, transform 0.1s;
    flex-shrink: 0; /* 防止按钮收缩 */
}

/* 侧边栏菜单样式 */
.sidebar-menu {
    position: fixed;
    top: 0;
    left: -250px;
    width: 180px;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    z-index: 1001;
    transition: left 0.3s ease;
    overflow-y: auto;
    padding: 20px 0;
}

.sidebar-menu.open {
    left: 0;
}

.sidebar-menu .menu-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.1);
    margin-bottom: 10px;
}

.sidebar-menu .menu-header h2 {
    color: #4a69bd;
    font-size: 1.3rem;
    margin: 0;
}



.sidebar-menu .menu-items {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu .menu-items li {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.sidebar-menu .menu-items li:last-child {
    border-bottom: none;
}

.sidebar-menu .menu-items li a {
    text-decoration: none;
    color: #333;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-menu .menu-items li a i {
    width: 20px;
    text-align: center;
}

.sidebar-menu .menu-items li:hover {
    background-color: rgba(74, 105, 189, 0.1);
}

/* 遮罩层 */
.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: none;
}

.menu-overlay.open {
    display: block;
}

#searchButton:active {
    transform: scale(0.98);
    background-color: #ffffff;
    color: #000000;
    border: 2px solid #000000;
}



/* 我的常去区域样式 (dock栏) */
.favorites-section {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 999;
    width: fit-content;
    max-width: 90%;
}

.favorites-container {
    display: flex;
    gap: 15px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.dock-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 60px;
    cursor: pointer;
    transition: transform 0.2s;
    position: relative;
}

.dock-item:active {
    transform: scale(0.9);
}

.dock-item .website-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
    font-size: 20px;
    color: #4a69bd;
    object-fit: cover;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.dock-item .website-icon img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
}

.dock-item .website-name {
    font-size: 0.7rem;
    text-align: center;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    padding: 0 2px;
}

/* 主内容容器样式 */
#main-content-container {
    padding: 20px;
    background-color: #f8f9fa;
    min-height: calc(100vh - 120px); /* 减去头部和底部dock栏的高度 */
}

/* 手风琴样式 - 移动端优化 */
.accordion {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 15px;
    overflow: hidden;
    animation: fadeInUp 0.3s ease-out;
}

.accordion-header {
    background-color: #4a69bd;
    color: white;
    padding: 15px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 600;
    transition: background-color 0.3s;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    will-change: background-color;
}

.accordion-header::after {
    content: '▶';
    font-size: 1rem;
    transition: transform 0.4s cubic-bezier(0.645, 0.045, 0.355, 1);
    will-change: transform;
}

.accordion-header.active::after {
    transform: rotate(90deg);
}

/* 动画效果 */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.website-item-mobile {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    opacity: 0;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.website-item-mobile.card-enter {
    animation: cardEnter 0.4s cubic-bezier(0.645, 0.045, 0.355, 1) forwards;
}

.website-item-mobile:active {
    transform: scale(0.98);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes cardEnter {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.645, 0.045, 0.355, 1), opacity 0.3s ease-out;
    background-color: #f8f9fa;
    opacity: 0;
    will-change: max-height, opacity;
}

.accordion-content.active {
    max-height: 500px; /* 限制为三张网站卡片的高度 */
    overflow-y: auto;
    transition: max-height 0.5s cubic-bezier(0.645, 0.045, 0.355, 1), opacity 0.3s ease-in;
    opacity: 1;
}

.accordion-content .website-item-mobile {
    opacity: 0;
}

/* 网站卡片样式 - 移动端优化 */
.website-list {
    padding: 15px;
}

.website-item {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    transition: transform 0.2s, box-shadow 0.2s;
}

.website-item h3 {
    color: #4a69bd;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.website-item p {
    color: #666;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.visit-button {
    display: block;
    width: 100%;
    background: linear-gradient(to right, #4a69bd, #6a89cc);
    color: white;
    padding: 12px;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}



/* 移动端图标按钮样式 (已弃用，保留以防止样式错误) */
.visit-icon-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: linear-gradient(to right, #4a69bd, #6a89cc);
    color: white;
    border-radius: 50%;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    margin: 0 auto;
    font-size: 16px;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
}

.visit-icon-button:active {
    transform: scale(0.95);
    background: linear-gradient(to right, #3c5aa6, #5a77bb);
}

.visit-icon-button i {
    pointer-events: none; /* 防止图标拦截点击事件 */
}

/* 网站卡片链接样式 */
.website-item-link {
    text-decoration: none;
    color: inherit;
    display: block;
    margin-bottom: 12px;
    border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.website-item-link:active .website-item-mobile {
    transform: scale(0.98);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* 移动端网站卡片优化 */
.website-item-mobile {
    background: white;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 12px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

/* 网站卡片头部（包含图标和标题） */
.website-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

/* 网站图标样式 */
.website-icon {
    width: 24px;
    height: 24px;
    margin-right: 10px;
    object-fit: contain;
}

.website-item-mobile h3 {
    color: #4a69bd;
    margin-bottom: 8px;
    font-size: 1.1rem;
}

.website-item-mobile p {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.9rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 搜索结果样式 */
.search-result-section {
    margin-bottom: 20px;
}

.result-category {
    font-size: 1.2rem;
    color: #4a69bd;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #4a69bd;
}

.no-results {
    text-align: center;
    padding: 30px;
    color: #666;
    font-size: 1.1rem;
}

/* 响应式设计 */
@media (max-width: 480px) {
    header {
        padding: 0.8rem;
    }
    
    header h1 {
        font-size: 1.3rem;
    }
    
    .search-container {
        flex-direction: row;
    }
    
    #searchInput {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    #searchButton {
        padding: 10px 15px;
        font-size: 0.9rem;
    }
    
    .website-item-mobile h3 {
        font-size: 1rem;
    }
    
    .website-item-mobile p {
        font-size: 0.85rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .visit-icon-button {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
}

/* 更小屏幕优化 */
@media (max-width: 360px) {
    header h1 {
        font-size: 1.1rem;
    }
    
    .website-item-mobile h3 {
        font-size: 0.95rem;
    }
    
    .website-item-mobile p {
        font-size: 0.8rem;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* 悬浮菜单样式 */
.context-menu {
    position: absolute;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 5px 0;
    z-index: 1000;
    min-width: 150px;
    display: none;
}

.context-menu.visible {
    display: block;
}

.context-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.context-menu li {
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #333;
}

.context-menu li:hover {
    background-color: #f5f5f5;
}

.context-menu i {
    width: 16px;
    text-align: center;
}

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

.modal {
    display: none;
    background-color: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    max-width: 90%;
    max-height: 60vh;
    width: 500px;
    height: 60vh;
    opacity: 0;
    transform: scale(0.7);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.modal.active {
    display: block;
    opacity: 1;
    transform: scale(1);
}

.modal-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.modal-header {
    padding: 10px;
    background-color: #f8f9fa3a;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
    flex: 1;
    text-align: center;
}

/* 通知详情模态框头部特殊样式 */
#notification-detail-modal .modal-header {
    justify-content: flex-start;
}

#notification-detail-modal .modal-header h2 {
    text-align: left;
    margin-left: 10px;
}
#notification-detail-body{
    color: #000000;
}

.modal-close {
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer;
    color: #aaa;
    background: none;
    border: none;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s;
    display: none; /* 隐藏关闭按钮 */
}

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

.modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

/* 通知详情样式 */
.notification-detail {
    padding: 10px;
}

/* 通知详情模态框样式 */
#notification-detail-modal {
    z-index: 2001; /* 设置更高的z-index，确保在其他模态框之上 */
}

/* 通知详情模态框返回按钮样式 */
.modal-back-button {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: #007bff;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
    margin-right: 10px;
}

.modal-back-button:hover {
    background-color: #e9ecef;
}

.notification-detail-header {
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.notification-detail-header h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.3em;
}

.notification-detail-time {
    color: #666;
    font-size: 0.9em;
}

.notification-detail-content h4,
.notification-detail-attachment h4,
.notification-detail-link h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 1.1em;
}

.notification-detail-content p,
.notification-detail-attachment p {
    margin: 0 0 15px 0;
    color: #000000;
    line-height: 1.5;
    white-space: pre-wrap;
}

.notification-detail-link a {
    color: #007bff;
    text-decoration: none;
    word-break: break-all;
}

.notification-detail-link a:hover {
    text-decoration: underline;
}

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

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(74, 105, 189, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(74, 105, 189, 0.5);
}

/* 为模态框保持特定的滚动条样式 */
.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
    border-radius: 4px;
}

/* 工具模态框样式 */
.tools-section {
    margin-bottom: 20px;
}

.tools-section h3 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
    font-size: 1.2em;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 15px;
    padding: 10px 0;
}

.tool-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 10px;
    padding: 15px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    aspect-ratio: 1 / 1; /* 保持正方形 */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.tool-item:hover {
    background-color: rgba(74, 105, 189, 0.2);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.tool-item i {
    font-size: 24px;
    margin-bottom: 10px;
    color: #4a69bd;
}

.tool-item span {
    font-size: 14px;
    text-align: center;
    color: #333;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(74, 105, 189, 0.3);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(74, 105, 189, 0.5);
}

/* 通知模态框样式 */
.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.notification-item {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 8px;
}

.notification-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pinned-marker {
    font-size: 0.9rem;
    color: #ff9800;
    background: rgba(255, 152, 0, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
}

.notification-time {
    font-size: 0.8rem;
    color: #666;
}

.notification-content {
    margin: 10px 0;
}

.notification-content p {
    margin: 0 0 10px 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #444;
}

.notification-content .content-preview {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    line-clamp: 1;
    -webkit-box-orient: vertical;
    box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.5;
    max-height: 1.5em; /* 1行的高度 */
    margin: 0 0 10px 0;
    font-size: 0.95rem;
    color: #444;
    word-wrap: break-word;
    word-break: break-word;
}

/* 响应式设计优化 */
@media (max-width: 480px) {
    .notification-content .content-preview {
        font-size: 0.9rem;
        line-height: 1.4;
        max-height: 1.4em; /* 1行的高度 */
    }
}

@media (max-width: 360px) {
    .notification-content .content-preview {
        font-size: 0.85rem;
        line-height: 1.4;
        max-height: 1.4em; /* 1行的高度 */
    }
}

.notification-content .full-content {
    display: none;
    line-height: 1.5;
    margin-top: 10px;
}

.expand-btn {
    background: none;
    border: none;
    color: #4a69bd;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: underline;
    padding: 0;
    margin-top: 5px;
}

.expand-btn:hover {
    color: #3a599d;
}

.notification-attachment {
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 8px;
}

.notification-link a {
    color: #4a69bd;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
}

.notification-link a:hover {
    text-decoration: underline;
}

/* 通知卡片底部布局 */
.notification-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.notification-footer .notification-time {
    margin: 0;
}

/* Toast提示样式 */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 3000;
}

.toast {
    background-color: #333;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    min-width: 250px;
    animation: toastSlideIn 0.3s ease-out forwards;
}

.toast.success {
    background-color: #28a746bd;
    backdrop-filter: blur(10px);
}

.toast.error {
    background-color: #dc3546bd;
    backdrop-filter: blur(10px);
}

.toast.warning {
    background-color: #ffc107bd;
    backdrop-filter: blur(10px);
    color: #333;
}

.toast.info {
    background-color: #17a2b8bd;
    backdrop-filter: blur(10px);
}

.toast .toast-icon {
    margin-right: 10px;
    font-size: 1.2rem;
}

.toast .toast-message {
    flex: 1;
}

.toast .toast-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    margin-left: 10px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.toast .toast-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

@keyframes toastSlideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes toastSlideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

/* 收藏夹模态框样式 */
#favorites-modal .modal-body {
    padding: 20px;
    overflow-y: auto;
}

/* 设置模态框样式 */
.settings-section {
    margin-bottom: 20px;
}

.settings-section h3 {
    color: #4a69bd;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #eee;
}

.setting-item {
    margin-bottom: 20px;
}

.setting-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 15px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    color: #333;
    cursor: pointer;
    transition: all 0.3s;
    text-align: left;
}

.setting-btn i {
    width: 20px;
    text-align: center;
}

.setting-btn:hover {
    background: #f5f5f5;
    border-color: #4a69bd;
}

.setting-btn.warning {
    color: #dc3545;
    border-color: #dc3545;
}

.setting-btn.warning:hover {
    background: #fff5f5;
    border-color: #dc3545;
}

.setting-description {
    margin-top: 8px;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.4;
}

.favorite-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    border-radius: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.3s;
}

.favorite-item:hover {
    background-color: #f5f5f5;
}

.favorite-item-content {
    flex: 1;
}

.favorite-item-content h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #333;
}

.favorite-item-content p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.unfavorite-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 18px;
    padding: 5px;
    transition: color 0.3s;
}

.unfavorite-btn:hover {
    color: #ff4444;
}

/* 历史记录项样式 */
.history-item {
    display: flex;
    padding: 15px;
    border-radius:10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    transition: background-color 0.3s;
}

.history-item:hover {
    background-color: #f5f5f5;
}

.history-item-content {
    flex: 1;
}

.history-item-content h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #333;
    display: inline-block;
}

.history-item-content p {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #666;
}

.visit-time {
    font-size: 12px;
    color: #585858;
    float: right;
    margin-top: 2px;
}

.favorites-list {
    margin: 0;
    padding: 0;
}

.notification-item.unread {
    border-left: 4px solid #4a69bd;
    background: rgba(74, 105, 189, 0.05);
}

.notification-item.read {
    opacity: 0.7;
}

.notification-item.unread .notification-header h3 {
    font-weight: bold;
}

.notification-item.read .notification-header h3 {
    font-weight: normal;
}