/* 重置默认样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* 容器样式 */
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 90px;
}

/* 导航栏样式 */
.navbar {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid #e5e7eb;
}

/* 修正导航栏布局，实现Logo靠左，菜单居中，登录按钮靠右 */
.nav-content {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    min-height: 4rem;
    padding: 0 0px;
    width: 100%;
    overflow: visible; /* 改为visible，防止下拉菜单被裁剪 */
}

.logo-container {
    justify-self: start;
    display: flex;
    align-items: center;
    text-decoration: none;
    flex-shrink: 0; /* 防止收缩 */
}

.nav-menu {
    display: flex;
    list-style: none;
    align-items: center;
    gap: 0.25rem;
    margin: 0;
    flex-wrap: nowrap; /* 防止换行 */
    padding: 0 1rem;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    z-index: 1; /* 降低z-index，让dropdown可以超出 */
    overflow: visible; /* 改为visible，允许下拉菜单显示 */
}

.nav-menu::-webkit-scrollbar {
    display: none; /* 隐藏滚动条 */
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo-icon {
    width: 2rem;
    height: 2rem;
    background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
}

.logo-text {
    color: white;
    font-weight: bold;
    font-size: 1.125rem;
}

.logo-name {
    font-weight: bold;
    font-size: 1.125rem;
    color: #1f2937;
}

.logo-image {
    height: 2.5rem;
    width: auto;
    display: block;
}

.nav-link {
    padding: 0.5rem 0.75rem;
    color: #374151;
    text-decoration: none;
    font-size: 0.875rem;
    border-radius: 0.375rem;
    transition: all 0.2s;
    margin: 0 0.25rem;
    white-space: nowrap; /* 防止换行 */
}

.nav-link:hover,
.nav-link.active {
    color: #3b82f6;
    background-color: #f3f4f6;
    text-decoration: none;
}

.dropdown {
    position: relative;
    z-index: 1001; /* 确保dropdown容器在下拉菜单之下但在其他元素之上 */
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    z-index: 1002; /* 确保下拉菜单在最上层 */
    padding: 0.5rem;
    min-width: 12rem;
    list-style: none;
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-link {
    display: block;
    padding: 0.5rem 1rem;
    color: #374151;
    text-decoration: none;
    border-radius: 0.25rem;
    transition: background-color 0.2s;
    font-size: 0.875rem;
}

.dropdown-link:hover {
    background-color: #eff6ff;
    color: #3b82f6;
}

.expert-btn {
    background-color: #ea580c;
    color: white !important;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: background-color 0.2s;
    text-decoration: none;
    display: inline-block;
    margin-left: 1rem;
}

.expert-btn:hover {
    background-color: #c2410c;
    text-decoration: none;
}

.login-btn {
    background-color: #3b82f6;
    color: white;
    border: none;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: background-color 0.2s;
    cursor: pointer;
}

.login-btn:hover {
    background-color: #2563eb;
}

/* 导航栏登录按钮 */
.nav-login-btn {
    background-color: #3b82f6;
    color: white;
    border: none;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: background-color 0.2s;
    cursor: pointer;
    white-space: nowrap;
}

.nav-login-btn:hover {
    background-color: #2563eb;
}

/* 登录区域容器 */
.login-section {
    display: flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
}

/* 已登录后的操作链接（进入后台、退出） */
.nav-action-link {
    color: #6b7280;
    font-size: 0.85rem;
    text-decoration: none;
    transition: color 0.2s;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-action-link:hover {
    color: #3b82f6;
    text-decoration: none;
}

/* 用户名区域 */
.nav-user-area {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #374151;
    font-size: 0.85rem;
}

/* 分隔符 */
.nav-sep {
    display: inline-block;
    width: 1px;
    height: 1rem;
    background: #d1d5db;
    margin: 0 0.5rem;
    flex-shrink: 0;
}

/* 用户信息容器 */
.user-info {
    display: flex;
    align-items: center;
}

/* 导航栏注册按钮 */
.nav-register-btn {
    background-color: #10b981;
    color: white;
    border: none;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: background-color 0.2s;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

/* 导航栏下载客户端按钮 */
.nav-download-btn {
    color: #6b7280;
    font-size: 0.85rem;
    transition: color 0.2s;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-download-btn:hover {
    color: #3b82f6;
    text-decoration: none;
}

.nav-register-btn:hover {
    background-color: #059669;
    text-decoration: none;
    color: white;
}

/* 登录按钮加载状态 */
.login-btn-submit {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    height: 48px;
    padding: 0 24px;
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 20px 0;
}

.login-btn-submit:hover {
    background-color: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.login-btn-submit:disabled {
    background-color: #93c5fd;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-loading {
    display: none;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 登录弹框样式优化 */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    backdrop-filter: blur(4px);
}

.login-modal.active {
    display: flex;
}

.login-modal-content {
    background-color: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 850px;
    max-height: 90vh;
    overflow: hidden;
    position: relative;
    animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.login-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    z-index: 10;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.login-close-btn:hover {
    color: #333;
    background-color: #f3f4f6;
}

.login-content {
    display: flex;
    min-height: 580px;
}


@keyframes backgroundMove {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(40px, 40px);
    }
}

/* 账号密码登录样式优化 */
.login-form {
    width: 100%;
    flex: 1;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background-color: #f9fafb;
}

.form-group input:focus {
    outline: none;
    border-color: #3b82f6;
    background-color: white;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
}

.register-btn {
    color: #3b82f6;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.register-btn:hover {
    color: #2563eb;
    text-decoration: underline;
}

.forgot-password {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.forgot-password:hover {
    color: #3b82f6;
}

/* 全局提示组件样式 */
.global-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: none;
    animation: toastSlideIn 0.3s ease;
}

.global-toast.show {
    display: block;
}

.global-toast.hide {
    animation: toastSlideOut 0.3s ease forwards;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    min-width: 250px;
    max-width: 400px;
    font-size: 14px;
    font-weight: 500;
}

.toast-content.success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.toast-content.error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.toast-content.info {
    background-color: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.toast-icon {
    font-size: 18px;
}

.toast-icon.success {
    color: #22c55e;
}

.toast-icon.error {
    color: #ef4444;
}

.toast-icon.info {
    color: #3b82f6;
}

@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(100%) translateY(-20px);
        scale: 0.9;
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(0);
        scale: 1;
    }
}

@keyframes toastSlideOut {
    from {
        opacity: 1;
        transform: translateX(0) translateY(0);
        scale: 1;
    }
    to {
        opacity: 0;
        transform: translateX(100%) translateY(-20px);
        scale: 0.9;
    }
}

/* 自定义错误提示样式 */
.login-error {
    color: #ef4444;
    background-color: #fee2e2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    display: none;
    align-items: center;
    gap: 8px;
    position: absolute;
    top: 30%;
    right: 10%;
    transform: translateY(0);
    z-index: 100;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    min-width: 200px;
    text-align: center;
    animation: errorFadeIn 0.3s ease;
}

.login-error.show {
    display: flex;
}

.login-error i {
    font-size: 16px;
}

@keyframes errorFadeIn {
    from {
        opacity: 0;
        transform: translateX(20px);
        scale: 0.9;
    }
    to {
        opacity: 1;
        transform: translateX(0);
        scale: 1;
    }
}

@keyframes errorFadeOut {
    from {
        opacity: 1;
        transform: translateX(0);
        scale: 1;
    }
    to {
        opacity: 0;
        transform: translateX(20px);
        scale: 0.9;
    }
}

.login-error.hide {
    animation: errorFadeOut 0.3s ease forwards;
}

/* 表单验证错误状态 */
.form-group.error input {
    border-color: #ef4444;
    background-color: #fef2f2;
}

.form-group.error input:focus {
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
    border-color: #ef4444;
}

/* 响应式设计优化 - 导航栏防挤压 */
@media (max-width: 1500px) {
    .nav-menu {
        gap: 0.125rem;
        padding: 0 0.25rem;
    }
    
    .nav-link {
        padding: 0.5rem 0.5rem;
        font-size: 0.8125rem;
        margin: 0 0.125rem;
    }
    
    .expert-btn {
        padding: 0.5rem 0.625rem;
        font-size: 0.8125rem;
        margin-left: 0.75rem;
        flex-shrink: 0; /* 防止按钮被压缩 */
    }
    
    .nav-right {
        width: auto;
        gap: 0.5rem;
    }
    
    .login-section {
        gap: 0;
    }
    
    .nav-sep {
        margin: 0 0.35rem;
    }
    
    .back-btn {
        font-size: 13px;
        padding: 0.375rem 0.625rem;
        flex-shrink: 0; /* 防止按钮被压缩 */
    }
    
    .logo-image {
        height: 2.25rem;
    }
}

@media (max-width: 1400px) {
    .container {
        padding: 0 40px;
    }
    
    .nav-menu {
        gap: 0;
        padding: 0;
    }
    
    .nav-link {
        padding: 0.375rem 0.375rem;
        font-size: 0.75rem;
        margin: 0 0.0625rem;
    }
    
    .expert-btn {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
        margin-left: 0.5rem;
        flex-shrink: 0; /* 防止按钮被压缩 */
    }
    
    .nav-right {
        gap: 0.375rem;
    }
    
    .login-section {
        gap: 0;
    }
    
    .nav-sep {
        margin: 0 0.25rem;
    }
    
    .back-btn {
        font-size: 12px;
        padding: 0.3125rem 0.5rem;
        flex-shrink: 0; /* 防止按钮被压缩 */
    }
    
    .nav-login-btn,
    .nav-register-btn {
        padding: 0.375rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .logo-image {
        height: 2rem;
    }
}

@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }
    
    .nav-link {
        padding: 0.3125rem 0.3125rem;
        font-size: 0.6875rem;
    }
    
    .expert-btn {
        padding: 0.3125rem 0.4375rem;
        font-size: 0.6875rem;
        margin-left: 0.375rem;
        flex-shrink: 0; /* 防止按钮被压缩 */
    }
    
    .back-btn span {
        display: none;
    }
    
    .back-btn {
        padding: 0.375rem;
        flex-shrink: 0; /* 防止按钮被压缩 */
    }
    
    .nav-action-link {
        font-size: 0.75rem;
    }
    
    .nav-user-area {
        font-size: 0.75rem;
    }
    
    .nav-sep {
        margin: 0 0.2rem;
    }
}

/* 响应式设计优化 - 登录弹框 */
@media (max-width: 768px) {
    .login-content {
        flex-direction: column;
        min-height: auto;
    }

    .login-left {
        padding: 30px;
        min-height: 200px;
    }

    .login-right {
        padding: 30px;
    }

    .login-image {
        max-height: 150px;
    }

    .login-modal-content {
        max-width: 95%;
        margin: 20px;
    }

    .login-qr-code {
        width: 160px;
        height: 160px;
    }
}

@media (max-width: 480px) {
    .login-right {
        padding: 25px;
    }

    .login-left {
        padding: 20px;
    }

    .login-btn-submit {
        padding: 10px 20px;
        font-size: 14px;
    }

    .form-group input {
        padding: 10px 14px;
    }
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #374151;
    padding: 0.5rem;
    transition: color 0.2s;
}

.mobile-menu-btn:hover {
    color: #3b82f6;
}

/* 移动端菜单 */
.mobile-menu {
    display: none;
}

/* 页脚样式 */
.footer {
    background-color: #111827;
    color: #d1d5db;
    margin-top: 4rem;
    padding: 2rem 0 1rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.2rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #374151;
}

@media (min-width: 768px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-content {
        grid-template-columns: 140px 1fr 1fr 2.5fr;
    }
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: #f9fafb;
    font-size: 1rem;
    font-weight: 600;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
    font-size: 0.82rem;
    line-height: 1.4;
    color: #9ca3af;
}

.contact-info .footer-section li,
.contact-info li {
    margin-bottom: 0.2rem;
}

/* ===== 联系我们 左右两列 ===== */
.footer-contact-inline {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.contact-col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-label {
    display: block;
    color: #d1d5db;
    font-size: 0.72rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.contact-group p {
    color: #9ca3af;
    font-size: 0.76rem;
    line-height: 1.4;
    margin: 0 0 0.1rem 0;
}

.contact-meta {
    color: #9ca3af;
    font-size: 0.76rem;
    line-height: 1.4;
    margin: 0 0 0.1rem 0;
}

.contact-meta-group {
    margin-top: 0.25rem;
}

.contact-meta i {
    width: 1rem;
    margin-right: 0.25rem;
    color: #6b7280;
}

.footer-section a {
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.2s;
    font-size: 0.775rem;
}

.footer-section a:hover {
    color: #60a5fa;
    text-decoration: none;
}

.contact-info i {
    width: 1rem;
    margin-right: 0.5rem;
}

.contact-subtitle {
    color: #d1d5db;
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.5rem;
    padding-top: 0.35rem;
    border-top: 1px solid #374151;
}

.footer-logo {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.footer-logo-name {
    font-weight: bold;
    color: white;
    margin-left: 0.5rem;
}

.footer-description {
    color: #9ca3af;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.social-links {
    display: flex;
    gap: 0.75rem;
}

.social-links a {
    color: #9ca3af;
    transition: color 0.2s;
}

.social-links a:hover {
    color: #60a5fa;
}

.footer-bottom {
    text-align: center;
    color: #9ca3af;
    font-size: 0.75rem;
    padding-top: 1rem;
}

.footer-bottom a {
    color: #9ca3af;
    transition: color 0.2s;
    margin: 0 0.5rem;
}

.footer-bottom a:hover {
    color: #60a5fa;
}

.powered-by {
    color: #60a5fa;
}

.footer-links {
    margin-bottom: 0.5rem;
}

/* 中等屏幕适配 - 切换到移动端菜单 */
@media (max-width: 1100px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-menu {
        display: none;
    }
    
    .nav-right {
        justify-self: end;
    }
}

/* 移动端适配 */
@media (max-width: 767px) {
    .nav-content {
        grid-template-columns: auto auto;
    }
    
    .nav-menu {
        display: none;
    }
    
    .nav-right {
        justify-self: end;
    }
    
    .mobile-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: white;
        border-top: 1px solid #e5e7eb;
        padding: 1rem;
        z-index: 50;
        flex-direction: column;
    }
    
    .mobile-menu.show {
        display: flex;
    }
    
    .mobile-nav-link {
        display: block;
        padding: 0.5rem 1rem;
        color: #374151;
        text-decoration: none;
        border-radius: 0.375rem;
        transition: background-color 0.2s;
        margin-bottom: 0.25rem;
    }
    
    .mobile-nav-link:hover,
    .mobile-nav-link.active {
        background-color: #f3f4f6;
        color: #3b82f6;
    }
    
    .mobile-expert-btn {
        display: block;
        background-color: #ea580c;
        color: white !important;
        padding: 0.5rem 1rem;
        border-radius: 0.375rem;
        text-align: center;
        text-decoration: none;
        margin-top: 0.5rem;
    }
    
    .mobile-expert-btn:hover {
        background-color: #c2410c;
        text-decoration: none;
    }
    
    .mobile-dropdown {
        margin-bottom: 0.5rem;
    }
    
    .mobile-dropdown-toggle {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.5rem 1rem;
        background-color: #f3f4f6;
        border-radius: 0.375rem;
        cursor: pointer;
    }
    
    .mobile-dropdown-content {
        display: none;
        padding: 0.5rem 0 0 1rem;
    }
    
    .mobile-dropdown-content.show {
        display: block;
    }
    
    .mobile-dropdown-link {
        display: block;
        padding: 0.5rem 1rem;
        color: #4b5563;
        text-decoration: none;
        border-radius: 0.25rem;
        transition: background-color 0.2s;
        font-size: 0.875rem;
    }
    
    .mobile-dropdown-link:hover {
        background-color: #f3f4f6;
        color: #3b82f6;
    }
    
    .footer-content {
        text-align: center;
    }
    
    .footer-links {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-links a {
        margin: 0 0.25rem 0.25rem;
    }
}

/* 旋转动画 */
.rotate {
    transform: rotate(180deg);
    transition: transform 0.2s;
}

/* 隐藏元素 */
.hidden {
    display: none;
}

.show {
    display: block;
}

/* 模态框样式 */
/*.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: 1002;
}*/

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #999;
}

.close-btn:hover {
    color: #333;
}

.modal-body {
    text-align: center;
}

.btn {
    display: inline-block;
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 14px;
    text-align: center;
    margin: 0 5px;
}

.btn-primary {
    background-color: #0066cc;
    color: white;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-outline:hover {
    background-color: #ea580c;
    color: white;
    border-color: #ea580c;
}

/* 招标详情页面样式 */
.bidding-detail-section {
    padding: 2rem 0;
    background-color: #f9fafb;
}

.detail-container {
    background: white;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* 招标类型筛选按钮样式 */
.bidding-type-filters {
    display: flex;
    gap: 0.5rem;
    padding: 1.5rem 1.5rem 0;
    flex-wrap: wrap;
    border-bottom: 1px solid #e5e7eb;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    background-color: white;
    color: #374151;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.875rem;
    transition: all 0.2s;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.filter-btn:hover:not(.disabled) {
    background-color: #f3f4f6;
    border-color: #9ca3af;
    color: #1f2937;
}

.filter-btn.active {
    background-color: #3b82f6;
    border-color: #3b82f6;
    color: white;
    font-weight: 500;
}

.filter-btn.active:hover {
    background-color: #2563eb;
    border-color: #2563eb;
}

/* 禁用状态样式 */
.filter-btn.disabled {
    background-color: #f3f4f6;
    border-color: #e5e7eb;
    color: #9ca3af;
    cursor: not-allowed;
    opacity: 0.6;
}

.filter-btn.disabled:hover {
    background-color: #f3f4f6;
    border-color: #e5e7eb;
    color: #9ca3af;
    transform: none;
}

/* 无数据指示器样式 */
.no-data-indicator {
    font-size: 0.75rem;
    margin-left: 0.25rem;
}

/* 鼠标悬浮提示样式 - 正上方显示 */
.filter-btn[data-tooltip]:not([data-tooltip=""]) {
    position: relative;
}

.filter-btn[data-tooltip]:not([data-tooltip=""]):hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 10px); /* 往下挪10px */
    left: 50%;
    transform: translateX(-50%);
    background-color: #1f2937;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.filter-btn[data-tooltip]:not([data-tooltip=""]):hover::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 6px); /* 往下挪6px，与提示框保持适当距离 */
    left: 50%;
    transform: translateX(-50%);
    border: 4px solid transparent;
    border-top-color: #1f2937;
    z-index: 1001;
}

/* ===================================================
   右侧悬浮联系图标
=================================================== */
.floating-icons {
    position: fixed;
    right: 20px;
    bottom: 100px;
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.floating-item {
    width: 48px;
    height: 48px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    position: relative;
}

.floating-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.floating-item i {
    font-size: 20px;
    color: #3b82f6;
}

.floating-item:hover i {
    color: #2563eb;
}

/* 悬浮提示框 */
.floating-tooltip {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    padding: 16px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1000;
}

.floating-item:hover .floating-tooltip {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* 在tooltip和item之间添加透明桥接区域，防止鼠标移动时消失 */
.floating-tooltip::before {
    content: '';
    position: absolute;
    right: -60px;
    top: 0;
    width: 60px;
    height: 100%;
}

.tooltip-content h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

.tooltip-content p {
    margin: 4px 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

/* 二维码容器 */
.qrcode-container {
    text-align: center;
    margin-bottom: 8px;
}

.qrcode-container img.qrcode {
    width: 150px;
    height: 150px;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.qrcode-container img.qrcode:hover {
    transform: scale(1.5);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    z-index: 1001;
}

.qrcode-text {
    text-align: center;
    font-size: 12px;
    color: #6b7280;
    margin: 8px 0 0 0;
}

/* 回到顶部按钮 - 使用绝对定位，不占用文档流 */
.back-to-top {
    background: #3b82f6;
    position: absolute;
    bottom: -60px;
    left: 0;
}

.back-to-top i {
    color: white;
}

.back-btn {
    background-color:white;
    border:none;
    font-size:14px;
    cursor:pointer;
}

/*.back-btn:hover{
    background-color: blanchedalmond;
}*/

/* 用户名样式 - 最多3个字,超出省略号 */
.head-user-name {
    max-width: 3em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    vertical-align: middle;
}
