:root {
    --primary-color: #2c5282;
    --secondary-color: #1a365d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --dark-color: #1f2937;
    --light-bg: #f9fafb;
}

html, body {
    height: 100%;
    width: 100%;
    overflow-x: hidden; /* 防止水平滚动 */
}

body {
    background-color: var(--light-bg);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    display: flex;
    flex-direction: column;
    max-width: 100vw; /* 确保body不超过视口宽度 */
    overflow-x: hidden; /* 防止水平滚动 */
}

/* Main content area */
.main-content {
    flex: 1 0 auto;
    background: linear-gradient(135deg, rgba(44, 82, 130, 0.05) 0%, rgba(26, 54, 93, 0.05) 100%);
    padding-bottom: 2rem; /* Reduced padding to minimize whitespace */
    min-height: calc(100vh - 100px);
    margin-top: 0;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden; /* 防止水平滚动 */
}

footer {
    flex-shrink: 0;
}

.input-group .form-control:focus {
    z-index: 10;
}

.hero-search-section {
    padding: 2rem 0;
}

.search-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    padding: 1.5rem;
    margin: 1rem auto;
    transition: transform 0.2s;
}

.search-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.preset-btn {
    margin: 0.25rem;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    transition: all 0.3s;
    border: 1px solid #e5e7eb;
    background: white;
    color: var(--dark-color);
}

.preset-btn:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.preset-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.search-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    padding: 0.6rem 1.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(79, 70, 229, 0.4);
}

.progress-container {
    display: none;
    margin-top: 1rem;
}

.progress-container.active {
    display: block;
}


.table th {
    background: var(--light-bg);
    border: none;
    font-weight: 600;
    color: var(--dark-color);
    padding: 1rem;
    position: sticky;
    top: 0;
    z-index: 10;
}

.table td {
    padding: 1rem;
    vertical-align: middle;
    border-color: #e5e7eb;
}

.table tbody tr:hover {
    background-color: #f9fafb;
}

.rating-badge {
    background: #fef3c7;
    color: #92400e;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.action-buttons {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    display: none;
    gap: 1rem;
}

.action-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.action-btn:hover {
    transform: scale(1.1);
}

.download-btn {
    background: var(--success-color);
    color: white;
    border: none;
}

.scroll-top-btn {
    background: var(--primary-color);
    color: white;
    border: none;
}

.language-switcher {
    min-width: 100px;
}

.language-switcher .form-select {
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
    color: white;
    font-size: 0.875rem;
    padding: 0.25rem 0.75rem;
    height: auto;
    min-height: 32px;
    backdrop-filter: blur(10px);
}

.language-switcher .form-select:focus {
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.25);
}

.language-switcher .form-select option {
    color: var(--dark-color);
    background: white;
}

/* 导航栏中的语言切换器响应式调整 */
@media (max-width: 992px) {
    .language-switcher {
        min-width: 90px;
        margin-top: 0.5rem;
    }

    .language-switcher .form-select {
        font-size: 0.8rem;
        padding: 0.2rem 0.5rem;
    }
}

@media (max-width: 768px) {
    .navbar-nav .nav-item .language-switcher {
        margin: 0.5rem 0;
        width: 100%;
    }

    .language-switcher .form-select {
        width: 100%;
    }
}

.loading-spinner {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 2px solid #f3f3f3;
    border-top: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* 侧边栏样式 */
.sidebar-container {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    border-right: 1px solid #e8eeff;
    padding: 1rem;
    min-height: 100vh;
}

.sidebar-content {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    border-bottom: 2px solid #e8eeff;
    padding-bottom: 1rem;
}

.sidebar-tasks {
    flex: 1;
    overflow-y: auto;
    padding-right: 0.5rem;
    max-height: 100vh; /* 限制为1倍屏幕高度 */
}

/* 侧边栏滚动条样式 */
.sidebar-tasks::-webkit-scrollbar {
    width: 6px;
}

.sidebar-tasks::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.sidebar-tasks::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.sidebar-tasks::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}


.sidebar-container.collapsed {
    width: 60px !important;
    min-width: 60px !important;
    max-width: 60px !important;
    flex: 0 0 60px !important;
}

.sidebar-container.collapsed .sidebar-content {
    display: none;
}

.sidebar-container.collapsed .sidebar-toggle {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 1000;
}

.sidebar-container.collapsed .sidebar-toggle i {
    transform: rotate(180deg);
}

/* 侧边栏切换按钮样式 */
.sidebar-toggle {
    transition: all 0.3s ease;
}

.sidebar-toggle:hover {
    background-color: #2c5282 !important;
    color: white !important;
}

/* 响应式设计 */

/* 平板和桌面端 - 保持原有布局 */
@media (min-width: 992px) {
    .sidebar-container {
        display: block !important;
    }

    .main-content {
        flex: 1 0 auto;
        background: linear-gradient(135deg, rgba(44, 82, 130, 0.05) 0%, rgba(26, 54, 93, 0.05) 100%);
        padding-bottom: 2rem;
        min-height: calc(100vh - 100px);
        margin-top: 0;
    }

    .container-fluid {
        padding-left: 15px;
        padding-right: 15px;
    }

    .col-lg-9.col-xl-10 {
        width: auto;
        max-width: none;
        flex: 0 0 83.333333%;
        padding-left: 15px;
        padding-right: 15px;
    }

    .col-lg-10.col-xl-8 {
        width: auto;
        max-width: none;
        flex: 0 0 83.333333%;
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* 移动端样式 */
@media (max-width: 991.98px) {
    /* 移动端隐藏运营精选侧边栏 */
    .sidebar-container {
        display: none !important;
    }

    /* 移动端主内容区域占满整个宽度 */
    .main-content {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 0 auto !important; /* 保持flex布局 */
        padding: 0;
        margin: 0;
        min-height: calc(100vh - 150px); /* 确保有足够高度推动footer */
        overflow-x: hidden !important; /* 防止水平滚动 */
    }

    /* 确保容器占满宽度 */
    .container-fluid {
        padding-left: 0;
        padding-right: 0;
        margin-left: 0;
        margin-right: 0;
    }

    .row {
        margin-left: 0;
        margin-right: 0;
    }

    .col-lg-9.col-xl-10 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 0 auto !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 搜索卡片宽度优化 */
    .search-card {
        margin-left: 0;
        margin-right: 0;
        width: 100%;
    }

    .col-lg-10.col-xl-8 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 1 0 auto !important;
        padding-left: 0;
        padding-right: 0;
    }

    /* 功能卡片移动端优化 - 2x2布局 */
    .feature-card {
        margin-bottom: 1rem;
        height: 100%;
    }

    /* 移动端核心优势2x2布局 */
    @media (max-width: 767.98px) {
        .features-section .row > div {
            flex: 0 0 50%;
            max-width: 50%;
            padding-left: 8px;
            padding-right: 8px;
        }

        .features-section .card {
            margin-bottom: 16px;
            padding: 1rem;
            min-height: 180px;
        }

        .features-section .card-body {
            padding: 0.75rem;
        }

        .features-section .card-body i {
            font-size: 2rem !important;
            margin-bottom: 0.5rem;
        }

        .features-section .card-body h5 {
            font-size: 0.9rem;
            margin-bottom: 0.5rem;
        }

        .features-section .card-body p {
            font-size: 0.8rem;
            line-height: 1.3;
            margin-bottom: 0;
        }
    }

    /* 标题和内容移动端优化 */
    .display-4 {
        font-size: 2rem !important;
    }

    .lead {
        font-size: 1rem !important;
    }
}



/* Toast 容器 */
.toast-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1050;
}

.custom-toast {
    background: white;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.stats-card {
    background: white;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    text-align: center;
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.05);
}

.stats-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: #6b7280;
}

.empty-state i {
    font-size: 4rem;
    color: #d1d5db;
    margin-bottom: 1rem;
}

/* 搜索表单优化 */
.form-control-lg, .form-select-lg {
    font-size: 1.1rem;
}

/* 增加主搜索输入框高度 */
#searchItemInput, #locationInput {
    height: 44px;
    font-size: 0.95rem;
}

/* 城市快速选择按钮 */
.city-quick-btn {
    border-radius: 20px;
    border-width: 2px;
    font-weight: 500;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.city-quick-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.city-quick-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* 地区标题样式 */
.city-section h6 {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* 联系管理员链接 */
.admin-contact-link {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px dashed transparent;
    transition: all 0.3s ease;
}

.admin-contact-link:hover {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    text-decoration: none;
}

/* 快速开始指南关闭按钮 */
.btn-close-sm {
    font-size: 0.875rem;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.btn-close-sm:hover {
    opacity: 1;
}

/* Suggestion buttons */
.suggestion-btn {
    background: none;
    border: none;
    padding: 0.15rem 0.5rem;
    margin: 0;
    display: inline-block;
    max-width: 120px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    text-align: center;
    color: var(--dark-color);
    font-size: 0.8rem;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s, color 0.2s;
}

.suggestion-btn:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--primary-color);
}

.suggestion-btn.active {
    background: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

/* Sample Tasks Styles */
.sample-tasks-container {
    overflow-y: auto;
    max-height: 400px;
    position: relative;
    padding-right: 8px;
}

.sample-tasks-container::-webkit-scrollbar {
    width: 6px;
}

.sample-tasks-container::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.sample-tasks-container::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.sample-tasks-container::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.sample-tasks-scroll {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    animation: none;
}

.sample-task-item {
    background: rgba(102, 126, 234, 0.05);
    border: 1px solid rgba(102, 126, 234, 0.1);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--dark-color);
    font-weight: 400;
    font-size: 0.8rem;
    line-height: 1.3;
    white-space: normal;
    word-wrap: break-word;
}

.sample-task-item:hover {
    background: rgba(102, 126, 234, 0.1);
    border-color: rgba(102, 126, 234, 0.2);
    color: var(--primary-color);
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

.sample-task-item .task-name {
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 0.15rem;
    display: block;
    font-size: 0.8rem;
    line-height: 1.2;
}

.sample-task-item .task-details {
    font-size: 0.7rem;
    color: #6b7280;
    display: block;
    line-height: 1.2;
}

/* 运营精选卡片样式优化 */
.sample-task-item {
    background: white;
    border: 1px solid #e8eeff;
    border-radius: 8px;
    padding: 0.75rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.sample-task-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #2c5282;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
}

.sample-task-item .task-name {
    font-weight: 600;
    color: #2c3e50;
    font-size: 0.85rem;
    line-height: 1.2;
}

.sample-task-item .badge-sm {
    font-size: 0.65rem;
    padding: 0.2rem 0.4rem;
    background: linear-gradient(135deg, #2c5282 0%, #1a365d 100%);
    border: none;
}

.sample-task-item .task-details .text-muted {
    font-size: 0.7rem;
}

.sample-task-item .bi {
    font-size: 0.7rem;
}

/* 新的运营精选卡片样式 */
.sample-card {
    background: white;
    border: 1px solid #e8eeff;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.sample-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #2c5282;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
}

/* 侧边栏样式优化 */
.sidebar-container {
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    border-right: 1px solid #e8eeff;
    padding: 1rem;
    min-height: 100vh;
    position: sticky;
    top: 0;
    overflow-y: auto;
}

.sidebar-header h4 {
    color: #2c3e50;
    font-size: 1.1rem;
}

.sidebar-header .text-muted {
    font-size: 0.8rem;
}

/* 导航栏样式优化 */
.navbar-white .dropdown-menu {
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.navbar-white .dropdown-item:hover {
    background: linear-gradient(135deg, #2c5282 0%, #1a365d 100%);
    color: white;
}

/* 搜索表单样式优化 */
.search-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.search-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

/* 进度条样式优化 */
.progress {
    height: 25px;
    border-radius: 12px;
    background-color: #f1f5f9;
}

.progress-bar {
    border-radius: 12px;
    background: linear-gradient(135deg, #2c5282 0%, #1a365d 100%);
}

/* 表格样式优化 */
.table-hover tbody tr:hover {
    background-color: #f8f9ff;
}

/* 功能卡片样式 */
.feature-card {
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #2c5282;
}

/* 表格响应式样式 */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* 手机端表格横向滚动优化 */
@media (max-width: 768px) {
    .table-responsive {
        margin: 0 -1rem;
        padding: 0 1rem;
        scrollbar-width: thin;
        scrollbar-color: #cbd5e1 #f1f5f9;
    }

    .table-responsive::-webkit-scrollbar {
        height: 6px;
    }

    .table-responsive::-webkit-scrollbar-track {
        background: #f1f5f9;
        border-radius: 3px;
    }

    .table-responsive::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 3px;
    }

    .table-responsive::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
    }
}

.suggestion-wrapper {
    position: relative;
    margin-bottom: 0.2rem; /* 进一步减小底部间距 */
}

#searchItemSuggestions, #locationSuggestions {
    position: relative; /* 改为相对定位，避免重叠 */
    top: auto;
    left: auto;
    margin-top: 0.2rem; /* 进一步减小与输入框的间距 */
    margin-bottom: 0.2rem; /* 进一步减小与下方元素的间距 */
    z-index: 1; /* 确保在正确层级 */
}

/* Responsive suggestions */
@media (max-width: 768px) {
    .suggestion-btn {
        font-size: 0.75rem;
        padding: 0.3rem 0.6rem;
    }
}

/* 按钮组优化 */
.btn-group .btn-check:checked + .btn-outline-primary,
.btn-group .btn-check:checked + .btn-outline-info {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-group .btn-check:checked + .btn-outline-info {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-group .btn-outline-primary,
.btn-group .btn-outline-info {
    border-width: 2px;
    font-weight: 500;
}

.btn-group .btn-outline-primary:hover,
.btn-group .btn-outline-info:hover {
    background-color: rgba(79, 70, 229, 0.1);
    border-color: var(--primary-color);
}

/* 预设关键词按钮优化 */
.preset-btn {
    border-radius: 15px;
    border-width: 2px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.preset-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.preset-btn.active {
    background-color: var(--success-color);
    border-color: var(--success-color);
    color: white;
}

/* 响应式优化 */
/* 手机端响应式样式 */
@media (max-width: 768px) {
    /* 主布局调整 */
    .hero-search-section .row {
        flex-direction: column-reverse;
    }

    .hero-search-section .col-lg-3 {
        margin-bottom: 2rem;
    }

    .hero-search-section .col-lg-9 {
        width: 100%;
    }

    /* 示例任务区域手机端优化 */
    .sample-tasks-container {
        max-height: 200px;
        margin-bottom: 1rem;
    }

    .sample-task-item {
        padding: 0.6rem 0.8rem;
        font-size: 0.8rem;
    }

    /* 其他原有样式保持不变 */
    .quick-start-guide .row > div {
        margin-bottom: 1.5rem;
    }

    .search-guide .badge {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }

    .search-checklist .col-md-6 {
        margin-bottom: 1rem;
    }

    /* 搜索表单手机端优化 */
    .hero-search-section {
        padding: 2rem 0;
    }

    .search-card {
        padding: 1.5rem;
        margin: 1rem auto;
    }

    h1.display-3 {
        font-size: 2rem !important;
        line-height: 1.3;
    }

    p.lead {
        font-size: 1.1rem !important;
    }

    /* 搜索按钮手机端优化 */
    .search-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.95rem;
        white-space: nowrap;
    }

    /* 输入框高度调整 */
    #searchItemInput, #locationInput {
        height: 48px;
        font-size: 1rem;
    }

    /* 候选词按钮优化 */
    .suggestion-btn {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
        max-width: 90px;
        margin: 0.1rem;
    }

    /* 候选词容器优化 */
    #searchItemSuggestions, #locationSuggestions {
        gap: 0.2rem;
        margin-top: 0.15rem;
        margin-bottom: 0.15rem; /* 进一步减小间距 */
        flex-wrap: wrap;
        max-height: 50px; /* 减小高度 */
        overflow-y: auto;
        background: #f8f9fa;
        padding: 0.15rem; /* 进一步减小内边距 */
        border-radius: 3px;
    }

    /* 搜索表单布局优化 */
    .d-flex.gap-3 {
        flex-direction: column;
        gap: 1rem !important;
    }

    .d-flex.gap-3 > div {
        width: 100% !important;
    }

    .align-self-start {
        align-self: stretch !important;
    }

    .search-btn {
        width: 100%;
    }

    /* 邮箱订阅区域手机端优化 */
    section.bg-light {
        padding: 1.5rem 0;
    }

    section.bg-light h5 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }

    section.bg-light .input-group {
        max-width: 100% !important;
    }

    section.bg-light .form-text {
        font-size: 0.8rem;
    }

}

.features-card {
    background: linear-gradient(135deg, #fff9f0 0%, #fff4e8 100%);
    border-radius: 16px;
    border: 1px solid #ffeccc;
}

.feature-item {
    padding: 12px 16px;
    background: white;
    border-radius: 12px;
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.search-btn {
    background: linear-gradient(135deg, #2c5282 0%, #1a365d 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 82, 130, 0.4);
}

.form-control-lg {
    border-radius: 12px;
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
}

.form-control-lg:focus {
    border-color: #2c5282;
    box-shadow: 0 0 0 0.2rem rgba(44, 82, 130, 0.25);
}

.form-switch .form-check-input:checked {
    background-color: #2c5282;
    border-color: #2c5282;
}

/* 空状态样式 */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state h4 {
    margin-bottom: 1rem;
    font-weight: 600;
}

/* Toast 容器 */
.toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

/* 功能卡片样式 */
.feature-card {
    transition: all 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* 导航栏白色样式 */
.navbar-white {
    background: linear-gradient(135deg, #2c5282 0%, #1a365d 100%) !important;
    box-shadow: none;
    border-bottom: none;
}

.navbar-white .navbar-brand .fw-bold {
    color: white !important;
}

.navbar-white .navbar-brand .text-muted {
    color: rgba(255, 255, 255, 0.8) !important;
}

.navbar-white .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
}

.navbar-white .nav-link:hover,
.navbar-white .nav-link.active {
    color: white !important;
}

.navbar-white .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
}

.navbar-white .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* 导航栏下拉菜单样式 */
.navbar-white .dropdown-menu {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.navbar-white .dropdown-item {
    color: #333;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.navbar-white .dropdown-item:hover {
    background-color: #2c5282;
    color: white;
}

.navbar-white .dropdown-header {
    color: #6c757d;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.navbar-white .dropdown-divider {
    border-color: rgba(0, 0, 0, 0.1);
}