/* 产学研资源独立样式 */
body {
    background-image: url('../../蓝色基调的背景图.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-color: #f0f9ff;
}
.industry-container {
    width: 100%;
    margin: 30px auto;
    padding: 0 10px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.2);
    border: 1px solid #bfdbfe;
}

/* 导航标签 */
.nav-tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid #e2e8f0;
    margin-bottom: 20px;
}

.nav-tab {
    flex: 1 1 0;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 600;
    color: #64748b;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s;
    text-align: center;
}

.nav-tab:hover {
    color: #3b82f6;
}

.nav-tab.active {
    color: #3b82f6;
    border-bottom-color: #3b82f6;
}

/* 搜索与筛选 */
.search-row {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.search-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    outline: none;
}

.search-input:focus {
    border-color: #3b82f6;
}

.filter-row {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-row select {
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    outline: none;
    min-width: 100px;
}

/* 按钮 (统一浅蓝色风格) */
.btn {
    height: 36px;
    box-sizing: border-box;
    margin: 0;
    padding: 0 16px;
    line-height: 34px;
    vertical-align: middle;
    display: flex;
    align-items: center;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    outline: none;
    min-width: 0;
    width: auto;
}

.btn-primary { 
    background: linear-gradient(135deg, #3b82f6, #6366f1);
    color: white; 
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.6), 0 0 15px rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, #2563eb, #4f46e5);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #1e3a8a;
    border: 1px solid #bfdbfe;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.1);
}

.btn-secondary:hover {
    border-color: #3b82f6;
    color: #3b82f6;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4), 0 0 12px rgba(59, 130, 246, 0.2);
    transform: translateY(-1px);
}

/* Logo 样式 */
.logo {
    font-size: 24px; 
    font-weight: 800; 
    color: #3b82f6; 
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 模块切换按钮选中状态也调整为浅蓝 */
.module-btn.active {
    background: #60a5fa;
    border-color: #60a5fa;
}
.module-btn:hover {
    border-color: #60a5fa;
    color: #60a5fa;
}

/* 页脚全局层级置底，永远不会遮挡任何弹窗 */
.site-footer, .footer, footer {
    position: relative !important;
    z-index: 10 !important;
    margin-top: 40px;
    background: #f8fafc;
    width: 100%;
}

/* 所有弹窗遮罩 统一最高层级 */
.modal-mask, .modal, .modal-overlay, .mask {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0,0,0,0.5) !important;
    z-index: 9998 !important;
    justify-content: center !important;
    align-items: center !important;
    display: flex;
}

.modal-mask .modal-content,
.modal .modal-content,
.dialog,
.dialog-content,
.popup-dialog,
.popup-content {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    z-index: 9999 !important;
    margin: 0 !important;
}

/* 所有下拉菜单、下拉选项层级修正 */
.select-dropdown, #accountMenu, .dropdown-menu {
    z-index: 1003 !important;
}

/* 导航标签选中颜色 */
.nav-tab.active {
    color: #60a5fa;
    border-bottom-color: #60a5fa;
}
.nav-tab:hover {
    color: #60a5fa;
}

/* 表格 */
.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th, .data-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.data-table th {
    background: #f8fafc;
    color: #475569;
    font-weight: 600;
}

.data-table tr:hover {
    background: #f8fafc;
}

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

.modal-content {
    z-index: 9999 !important;
    background: white;
    padding: 30px;
    border-radius: 12px;
    width: 500px;
    max-width: 90%;
}

.modal-content h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #1e293b;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #475569;
    font-weight: 500;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 8px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    box-sizing: border-box;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

/* 账号下拉菜单 */
.account-menu-dropdown {
    position: absolute;
    top: 100%;
    margin-top: 10px;
    right: 0;
    width: 220px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    padding: 0;
    z-index: 9998 !important;
    border: none;
    overflow: hidden;
    text-align: center;
    animation: fadeIn 0.2s ease-out;
}

.account-menu-item.admin-link {
    padding: 8px 15px;
    cursor: pointer;
    color: #6366f1;
    font-weight: bold;
}

.account-box {
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
}

.auth-status {
    margin-bottom: 20px;
    font-size: 16px;
}

.upload-section {
    border-top: 1px solid #e2e8f0;
    padding-top: 20px;
}

.module-switch {
    display: flex;
    gap: 20px;
    margin: 0 40px;
}

.module-btn {
    padding: 8px 24px;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    color: #64748b;
    font-weight: 600;
    transition: all 0.3s;
}

.module-btn:hover {
    border-color: #3b82f6;
    color: #3b82f6;
}

.module-btn.active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* 产学研筛选行：间距合理 + 筛选项等分铺满 */
#search-filter-container .sb-row-secondary {
    align-items: center !important;
    flex-wrap: nowrap !important;
}

#search-filter-container .filter-grid {
    display: flex !important;
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0;
    flex-wrap: nowrap !important;
}

#search-filter-container .filter-grid > * + * {
    margin-left: 10px !important;
}

#search-filter-container .filter-grid .unified-select {
    flex: 1 1 0 !important;
    min-width: 96px;
    max-width: 145px;
}

#search-filter-container .unified-btn,
#search-filter-container .btn {
    margin: 0 !important;
}

#search-filter-container .unified-input-group + .filter-grid {
    margin-left: 12px !important;
}

#search-filter-container .unified-input-group {
    flex: 0 0 34% !important;
    max-width: 430px;
    min-width: 250px;
}

#search-filter-container #exportBtn,
#search-filter-container #demand-publish-container .btn {
    min-width: 0;
    padding: 0 12px !important;
}

/* 我的发布/不公开资源工具栏：按钮集中在右侧更整齐 */
#my-post-toolbar {
    margin-left: auto;
}

#my-post-toolbar > * + * {
    margin-left: 10px !important;
}

#demand-publish-container {
    margin-left: 10px;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

@media (max-width: 1440px) {
    #search-filter-container .sb-row-secondary {
        flex-wrap: wrap !important;
    }
    #search-filter-container .unified-input-group {
        flex-basis: 100% !important;
        max-width: none;
    }
    #search-filter-container .filter-grid {
        width: 100% !important;
        flex-wrap: wrap !important;
    }
}