/* 后台管理界面样式 */
.admin-header {
    margin-bottom: 2rem;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.login-logo img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
}

.login-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #0f172a;
}

.login-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 1.5rem;
    gap: 2.5rem; /* 增加按钮之间的间距 */
}

/* 标签页样式 */
.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 1rem;
}

.admin-tab {
    padding: 0.7rem 1.2rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.6rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    font-weight: 500;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.admin-tab i {
    font-size: 0.9rem;
}

.admin-tab:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.admin-tab.active {
    background: #1e40af;
    color: white;
    border-color: #1e40af;
}

/* 标签内容样式 */
.admin-tab-content {
    display: none;
}

.admin-tab-content.active {
    display: block;
}

/* 子标题样式 */
.subsection-title {
    font-size: 1rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
}

/* 输入组样式 */
.input-group {
    display: flex;
    gap: 0.5rem;
}

.input-group .form-control {
    flex: 1;
}

.input-group button {
    white-space: nowrap;
}

/* 导入导出组样式 */
.import-export-group {
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

/* 后台分类过滤器样式 */
.admin-category-filters {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e2e8f0;
}

/* 按钮容器样式 */
.admin-buttons-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
}

.admin-category-btn {
    padding: 0.7rem 1rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.6rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    font-weight: 500;
    color: #475569;
    flex: 0 0 auto;
    max-width: calc(12.5% - 0.5rem); /* 每行最多8个按钮 */
    min-width: 80px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.admin-category-btn.add-link-btn {
    background-color: #f0f9ff;
    border-color: #bae6fd;
    color: #0284c7;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-category-btn.add-link-btn:hover {
    background-color: #e0f2fe;
    border-color: #7dd3fc;
}

.admin-category-btn:hover {
    border-color: #94a3b8;
    background: #f8fafc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.admin-category-btn.active {
    background: #1e40af;
    color: white;
    border-color: #1e40af;
    box-shadow: 0 2px 5px rgba(30, 64, 175, 0.2);
}

/* 页码导航样式 */
.pagination-numbers {
    display: flex;
    gap: 0.3rem;
    align-items: center;
    margin: 0 0.5rem;
}

.page-number {
    width: 2.2rem;
    height: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.4rem;
    background: white;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    color: #475569;
}

.page-number:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}

.page-number.active {
    background: #1e40af;
    color: white;
    border-color: #1e40af;
}

/* 底部操作按钮样式 */
.admin-bottom-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

/* 搜索框样式 */
.admin-search-container {
    display: flex;
    align-items: center;
    margin-right: 10px;
}

.admin-search-input {
    padding: 0.6rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.6rem 0 0 0.6rem;
    font-size: 0.9rem;
    width: 250px;
    transition: all 0.2s ease;
}

/* 页面标题样式 */
.page-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.admin-search-input:focus {
    outline: none;
    border-color: #94a3b8;
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.1);
}

.admin-search-button {
    padding: 0.6rem 1rem;
    background: #1e40af;
    color: white;
    border: 1px solid #1e40af;
    border-radius: 0 0.6rem 0.6rem 0;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-search-button:hover {
    background: #1e3a8a;
}

/* 搜索结果弹窗样式 */
.search-results-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.search-results-container {
    background-color: white;
    border-radius: 0.6rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    padding: 1.5rem;
}

.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.search-results-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #1e40af;
}

.search-results-close {
    background: #1e40af;
    border: none;
    font-size: 1.5rem;
    color: white;
    cursor: pointer;
}

.search-results-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.search-result-item {
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
    transition: background-color 0.2s;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: #f8fafc;
}

.search-result-name {
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.3rem;
}

.search-result-url {
    color: #64748b;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
    word-break: break-all;
}

.search-result-category {
    display: inline-block;
    background-color: #e2e8f0;
    color: #475569;
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    border-radius: 0.3rem;
    margin-right: 0.5rem;
}

.search-result-description {
    color: #334155;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* 检测状态卡片样式 */
.check-status-card {
    display: flex;
    align-items: center;
    background: #f8fafc;
    padding: 1.2rem;
    border-radius: 0.6rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    gap: 1.5rem;
}

.check-status-icon {
    font-size: 1.8rem;
    color: #64748b;
}

.check-status-info {
    flex: 1;
}

.check-status-info h4 {
    font-size: 1rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.3rem;
}

.check-status-info p {
    font-size: 0.9rem;
    color: #64748b;
}

/* 操作按钮组样式 */
.action-buttons-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.arrow-buttons-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.action-buttons-group button, 
.arrow-buttons-group button {
    width: 100%;
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
    height: 38px;
    min-width: 70px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.6rem;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    color: #475569;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 移动端优化 */
@media (max-width: 768px) {
    .admin-header {
        margin-bottom: 1.5rem;
    }
    
    .page-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.8rem;
        margin-bottom: 1.2rem;
    }
    
    .page-title h2 {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
        width: 100%;
    }
    
    .admin-search-container {
        width: 100%;
        margin-right: 0;
        margin-bottom: 0.5rem;
        display: flex;
    }
    
    .admin-search-input {
        width: calc(100% - 44px);
        flex: 1;
    }
    
    .admin-search-button {
        width: 44px;
        flex-shrink: 0;
    }
    
    .page-title > .btn-secondary {
        width: 100%;
    }
    
    .admin-tabs {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .admin-tab {
        width: 100%;
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        justify-content: center;
    }
    
    .admin-panel {
        padding: 1.2rem;
        border-radius: 0.6rem;
    }
    
    .admin-section {
        margin-bottom: 1.8rem;
        padding-bottom: 1.5rem;
    }
    
    .section-title {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    .check-status-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding: 1rem;
    }
    
    .check-status-card button {
        width: 100%;
    }
    
    .login-actions {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .login-actions button {
        width: 100%;
    }
    
    .admin-actions {
        flex-direction: column;
        gap: 0.6rem;
    }
    
    .admin-actions button {
        width: 100%;
    }
    
    .import-export-group {
        flex-direction: column;
        width: 100%;
    }
    
    .import-export-group button {
        width: 100%;
    }
    
    /* 后台分类过滤器移动端样式 */
    .admin-category-filters {
        flex-direction: column;
        padding-bottom: 0.8rem;
        gap: 0.5rem;
    }
    
    .admin-buttons-container {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .admin-buttons-container::-webkit-scrollbar {
        display: none;
    }
    
    .admin-category-btn {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
        white-space: nowrap;
        flex-shrink: 0;
        min-width: auto;
        max-width: none;
    }
    
    /* 页码导航移动端样式 */
    .pagination-numbers {
        overflow-x: auto;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        padding: 0.3rem 0;
    }
    
    .pagination-numbers::-webkit-scrollbar {
        display: none;
    }
    
    .page-number {
        width: 2rem;
        height: 2rem;
        font-size: 0.8rem;
    }
    
    /* 底部操作按钮移动端样式 */
    .admin-bottom-actions {
        flex-direction: column;
        gap: 0.6rem;
    }
    
    .admin-bottom-actions button {
        width: 100%;
    }
    
    /* 搜索框移动端样式 */
    .admin-search-container {
        width: 100%;
        margin-bottom: 0.8rem;
    }
    
    .admin-search-input {
        width: 100%;
    }
    
    /* 表格优化 */
    .links-table {
        display: block;
    }
    
    .links-table thead {
        display: none;
    }
    
    .links-table tbody {
        display: block;
    }
    
    .links-table tr {
        display: block;
        margin-bottom: 1.5rem;
        border: 1px solid #e2e8f0;
        border-radius: 0.6rem;
        padding: 1rem;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
        background-color: #ffffff;
    }
    
    .links-table td {
        display: block;
        border: none;
        padding: 0.8rem 0;
        position: relative;
    }
    
    .links-table td:before {
        content: attr(data-label);
        font-weight: 600;
        color: #475569;
        display: block;
        margin-bottom: 0.5rem;
        font-size: 0.9rem;
    }
    
    /* 在移动端只显示名称、分类、简介、LOGO和操作 */
    .links-table td:nth-child(),
    .links-table td:nth-child() {
        display: none;
    }
    
    /* 修正手机端列表项目顺序 */
    .links-table td[data-label="名称"]:before {
        content: "名称";
    }
    .links-table td[data-label="网址"]:before {
        content: "网址";
    }
    .links-table td[data-label="分类"]:before {
        content: "分类";
    }
    .links-table td[data-label="简介"]:before {
        content: "简介";
    }
    .links-table td[data-label="状态"]:before {
        content: "状态";
    }
    .links-table td[data-label="Logo"]:before {
        content: "Logo";
    }
    .links-table td[data-label="操作"]:before {
        content: "操作";
    }
    
    .links-table .arrow-cell {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        padding-bottom: 1rem;
        border-bottom: 1px solid #f1f5f9;
    }
    
    .links-table .action-cell {
        display: flex;
        flex-direction: column;
        padding-top: 1rem;
        border-top: 1px solid #f1f5f9;
        margin-top: 0.5rem;
    }
    
    .action-buttons-group, 
    .arrow-buttons-group {
        display: flex;
        width: 100%;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .action-buttons-group button, 
    .arrow-buttons-group button {
        flex: 1;
        height: 44px;
    }
    
    /* 表单控件优化 */
    .form-control {
        padding: 0.8rem 1rem;
        font-size: 16px;
        margin-bottom: 0.5rem;
    }
    
    input, select, textarea {
        padding: 0.8rem 1rem;
        font-size: 16px;
        margin-bottom: 0rem;
        border-radius: 0.6rem;
    }
    
    /* 添加快速操作浮动按钮 */
    .floating-action-button {
        position: fixed;
        bottom: 2rem;
        right: 2rem;
        width: 4rem;
        height: 4rem;
        border-radius: 50%;
        background: #1e40af;
        color: white;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 12px rgba(30, 64, 175, 0.3);
        z-index: 100;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .floating-action-button i {
        font-size: 1.8rem;
    }
    
    .floating-action-button:hover, .floating-action-button:active {
        transform: scale(1.1);
        box-shadow: 0 6px 16px rgba(30, 64, 175, 0.4);
    }
    
    /* 移动端表单布局优化 */
    .mobile-form-layout .form-group {
        margin-bottom: 1.5rem;
    }
    
    .mobile-form-layout label {
        display: block;
        margin-bottom: 0.6rem;
        font-weight: 500;
        font-size: 1rem;
    }
    
    /* 移动端触摸优化 */
    .touch-friendly {
        min-height: 44px;
        font-size: 16px;
    }
    
    /* 新增链接表单优化 */
    .new-link-form {
        background-color: #f8fafc;
        padding: 1.2rem;
        border-radius: 0.6rem;
        margin-bottom: 1.5rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }
    
    .new-link-form .form-group {
        margin-bottom: 1.2rem;
    }
    
    .new-link-form .form-actions {
        display: flex;
        gap: 0.8rem;
        margin-top: 1.5rem;
    }
    
    .new-link-form .form-actions button {
        flex: 1;
        height: 44px;
    }
}

/* 平板响应式调整 */
@media (min-width: 769px) and (max-width: 1024px) {
    .admin-tabs {
        flex-wrap: wrap;
        gap: 0.4rem;
    }
    
    .admin-tab {
        padding: 0.6rem 1rem;
    }
    
    .admin-panel {
        padding: 1.8rem;
    }
    
    .admin-actions {
        flex-wrap: wrap;
    }
    
    .links-table th, .links-table td {
        padding: 0.8rem 1rem;
    }
}

/* 新增样式 - 访问统计和系统工具 */

/* 统计卡片样式 */
.stats-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
}

.stats-card {
    flex: 1;
    min-width: 200px;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
}

.stats-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #1a56db;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.stats-icon i {
    font-size: 1.5rem;
}

.stats-info h4 {
    margin: 0;
    font-size: 0.9rem;
    color: #6b7280;
}

.stats-info p {
    margin: 0.5rem 0 0;
    font-size: 1.5rem;
    font-weight: bold;
    color: #111827;
}

/* 统计表格样式 */
.stats-tables {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 2rem;
}

.stats-table-container {
    flex: 1;
    min-width: 300px;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    background-color: white;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.stats-table th,
.stats-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.stats-table th {
    background-color: #f3f4f6;
    font-weight: 600;
    color: #374151;
}

.stats-table tbody tr:last-child td {
    border-bottom: none;
}

.stats-table tbody tr:hover {
    background-color: #f9fafb;
}

.stats-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* 工具卡片样式 */
.tool-card {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    overflow: hidden;
}

.tool-header {
    background-color: #f3f4f6;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e5e7eb;
}

.tool-header h4 {
    margin: 0;
    color: #111827;
    display: flex;
    align-items: center;
}

.tool-header h4 i {
    margin-right: 0.5rem;
    color: #1a56db;
}

.tool-content {
    padding: 1.5rem;
}

.tool-content p {
    margin-top: 0;
    color: #6b7280;
}

.cache-info,
.performance-metrics {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1rem;
    margin: 1rem 0;
}

.cache-item,
.metric-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e5e7eb;
}

.cache-item:last-child,
.metric-item:last-child {
    border-bottom: none;
}

.metrics-group {
    margin-bottom: 1.5rem;
}

.metrics-group h5 {
    margin: 0 0 0.5rem;
    color: #374151;
    font-size: 0.95rem;
}

.tool-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .stats-card {
        min-width: 100%;
    }
    
    .stats-table-container {
        min-width: 100%;
    }
    
    .stats-tables {
        gap: 1.5rem;
    }
    
    .stats-table th,
    .stats-table td {
        padding: 0.5rem;
    }
    
    .tool-content {
        padding: 1rem;
    }
}

/* 危险按钮样式 */
.btn-danger {
    background-color: #dc2626;
    color: white;
    border: none;
    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-danger:hover {
    background-color: #b91c1c;
}

.btn-danger:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.3);
}

.btn-danger.touch-friendly {
    padding: 0.75rem 1.25rem;
}

/* 搜索结果弹窗样式 */
.search-results-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.search-results-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.search-results-header h3 {
    margin: 0;
    color: #1e293b;
    font-size: 1.25rem;
    font-weight: 600;
}

.search-results-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #64748b;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-results-close:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.search-results-list {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow-y: auto;
    flex: 1;
}

.search-result-item {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-result-item:hover {
    background: #f8fafc;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-name {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
    font-size: 1rem;
}

.search-result-url {
    color: #3b82f6;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
    word-break: break-all;
}

.search-result-category {
    display: inline-block;
    background: #e0f2fe;
    color: #0369a1;
    padding: 0.125rem 0.5rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.search-result-description {
    color: #64748b;
    font-size: 0.875rem;
    line-height: 1.4;
}

/* 黑暗模式下的搜索结果弹窗样式 */
[data-theme="dark"] .search-results-container {
    background: #1e293b;
    border: 1px solid #334155;
}

[data-theme="dark"] .search-results-header {
    background: #0f172a;
    border-color: #334155;
}

[data-theme="dark"] .search-results-header h3 {
    color: #f1f5f9;
}

[data-theme="dark"] .search-results-close {
    color: #cbd5e1;
}

[data-theme="dark"] .search-results-close:hover {
    background: #334155;
    color: #f1f5f9;
}

[data-theme="dark"] .search-result-item {
    border-color: #334155;
}

[data-theme="dark"] .search-result-item:hover {
    background: #334155;
}

[data-theme="dark"] .search-result-name {
    color: #f1f5f9;
}

[data-theme="dark"] .search-result-url {
    color: #60a5fa;
}

[data-theme="dark"] .search-result-category {
    background: rgba(59, 130, 246, 0.2);
    color: #93c5fd;
}

[data-theme="dark"] .search-result-description {
    color: #cbd5e1;
}

/* 高亮效果 */
.highlight {
    background: #fef3c7 !important;
    animation: highlightFade 2s ease-out;
}

[data-theme="dark"] .highlight {
    background: rgba(251, 191, 36, 0.3) !important;
}

@keyframes highlightFade {
    0% {
        background: #fbbf24 !important;
    }
    100% {
        background: #fef3c7 !important;
    }
}

[data-theme="dark"] @keyframes highlightFade {
    0% {
        background: rgba(251, 191, 36, 0.5) !important;
    }
    100% {
        background: rgba(251, 191, 36, 0.3) !important;
    }
}

/* 移动端适配 */
@media (max-width: 768px) {
    .search-results-container {
        width: 95%;
        max-height: 85vh;
    }
    
    .search-results-header {
        padding: 1rem;
    }
    
    .search-results-header h3 {
        font-size: 1.125rem;
    }
    
    .search-result-item {
        padding: 0.875rem 1rem;
    }
    
    .search-result-name {
        font-size: 0.9rem;
    }
    
    .search-result-url {
        font-size: 0.8rem;
    }
    
    .search-result-description {
        font-size: 0.8rem;
    }
}


/* Toast 提示样式 */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #10b981;
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    max-width: 300px;
    word-wrap: break-word;
}

.toast.show {
    opacity: 1;
    transform: translateX(0);
}

/* 黑暗模式下的toast样式 */
[data-theme="dark"] .toast {
    background: #059669;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* 移动端适配 */
@media (max-width: 768px) {
    .toast {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        transform: translateY(-100%);
    }
    
    .toast.show {
        transform: translateY(0);
    }
}

