/* 主题样式 - 从base.html提取 */
body {
    font-family: 'Inter', 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background-color: #f9fafb;
}

/* 深色模式样式 */
.dark body {
    background-color: #1a1a1a;
    color: #e5e7eb;
}
.dark .resource-card {
    background-color: #2a2a2a;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.dark .notification-bar {
    background-color: #0c4a6e;
    color: #e0f2fe;
    border-bottom: 1px solid #0369a1;
}
.dark .bg-white {
    background-color: #2a2a2a;
}
.dark .text-gray-700 {
    color: #d1d5db;
}
.dark .text-gray-500 {
    color: #9ca3af;
}
.dark .text-gray-600 {
    color: #b5bbc5;
}
.dark .border-gray-200 {
    border-color: #4b5563;
}
.dark .border-t {
    border-color: #4b5563;
}
.dark .search-input {
    background-color: #3a3a3a;
    border-color: #4b5563;
    color: #e5e7eb;
}
.dark .bg-gray-50 {
    background-color: #333333;
}
.dark .bg-gray-100 {
    background-color: #3a3a3a;
}
.dark .text-blue-600 {
    color: #60a5fa;
}
.dark .pagination-item {
    background-color: #333333;
    border-color: #4b5563;
    color: #e5e7eb;
}
.dark .pagination-arrow {
    background-color: #333333;
    border-color: #4b5563;
    color: #e5e7eb;
}
.dark .mobile-menu {
    background-color: #2a2a2a;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}
.dark .menu-btn__burger,
.dark .menu-btn__burger::before,
.dark .menu-btn__burger::after {
    background-color: #e5e7eb;
}

/* 原有样式 */
.resource-card {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.search-input {
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem 0 0 0.375rem;
    outline: none;
}
.search-button {
    background-color: #3B82F6;
    color: white;
    border-radius: 0 0.375rem 0.375rem 0;
    transition: background-color 0.2s;
}
.search-button:hover {
    background-color: #2563EB;
}
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
}
.pagination-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    padding: 0 0.5rem;
    margin: 0 0.25rem;
    border-radius: 0.375rem;
    background-color: white;
    border: 1px solid #e5e7eb;
    color: #374151;
    font-weight: 500;
    transition: all 0.2s;
}
.pagination-item:hover {
    background-color: #f3f4f6;
}
.pagination-item.active {
    background-color: #3B82F6;
    border-color: #3B82F6;
    color: white;
}
.pagination-arrow {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    background-color: white;
    border: 1px solid #e5e7eb;
    color: #374151;
    font-weight: 500;
    transition: all 0.2s;
}
.pagination-arrow:hover {
    background-color: #f3f4f6;
}
.tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 500;
    color: #ef4444;
}
.notification-bar {
    background-color: #f0f9ff;
    color: #0369a1;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e0f2fe;
    overflow: hidden;
    white-space: nowrap;
}
.notification-content {
    display: inline-block;
    white-space: nowrap;
    animation: marquee 15s linear infinite;
}
@keyframes marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}
.search-highlight {
    background-color: #fef3c7;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
}

/* 平板和手机端布局调整 */
@media (max-width: 1023px) {
    .header-top-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        margin-bottom: 0.75rem;
    }
    .search-container {
        width: 100%;
    }
}

/* 手机端菜单样式 */
.mobile-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
    z-index: 20;
    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

/* 菜单按钮动画 */
.menu-btn {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0.375rem;
}

.menu-btn:hover {
    background-color: #f3f4f6;
}

.menu-btn__burger {
    width: 20px;
    height: 2px;
    background-color: #4b5563;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-btn__burger::before,
.menu-btn__burger::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background-color: #4b5563;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.menu-btn__burger::before {
    transform: translateY(-6px);
}

.menu-btn__burger::after {
    transform: translateY(6px);
}

/* 汉堡按钮动画 */
.menu-btn.open .menu-btn__burger {
    background: transparent;
}

.menu-btn.open .menu-btn__burger::before {
    transform: rotate(45deg);
}

.menu-btn.open .menu-btn__burger::after {
    transform: rotate(-45deg);
}

/* 声明弹窗样式 */
.modal-overlay {
    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: 50;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-container {
    background-color: white;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(-20px);
    transition: all 0.3s ease;
}

.dark .modal-container {
    background-color: #2a2a2a;
    color: #e5e7eb;
}

.modal-overlay.active .modal-container {
    transform: translateY(0);
}

/* 二维码区域样式 */
.qrcode-section {
    display: none;
}

.qrcode-container {
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
} 