.auth-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.auth-box {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
}

.auth_header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
    position: relative;
}

.auth-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.auth-box {
    background: white;
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 400px;
}

.auth-header {
    text-align: center;
    margin-bottom: 30px;
}

.auth-header h1 {
    color: #333;
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 10px;
}

.auth-header p {
    color: #666;
    font-size: 14px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #1e3c72;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

.btn-auth {
    width: 100%;
    padding: 12px;
    background: #1e3c72;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-auth:hover {
    background: #0056b3;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.auth-footer a {
    color: #1e3c72;
    text-decoration: none;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 14px;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 14px;
}

/* 在文档2的CSS中添加以下样式 */

/* 侧边栏隐藏时控制面板文字隐藏 */
.sidebar.collapsed .sidebar-header h5 {
    display: none !important;
}

/* 紧凑的个人资料弹窗样式 */
#userProfileModal .modal-dialog.modal-sm {
    max-width: 350px;
}

#userProfileModal .modal-body {
    padding: 1rem;
}

#userProfileModal .user-details {
    font-size: 0.875rem;
}

#userProfileModal .detail-item {
    padding: 0.5rem 0;
}

#userProfileModal .detail-item:last-child {
    border-bottom: none;
}

/* 搜索结果显示样式 */
.search-result-item {
    cursor: pointer;
    transition: background-color 0.2s;
}

.search-result-item:hover {
    background-color: #f8f9fa;
}

.advanced-search-result {
    cursor: pointer;
    transition: transform 0.2s;
}

.advanced-search-result:hover {
    transform: translateY(-2px);
}

/* 图层控制样式 */
.form-check-sm .form-check-input {
    transform: scale(0.8);
}

.form-check-sm .form-check-label {
    font-size: 0.8rem;
}

/* 聚合模式按钮样式 */
.btn-group-sm .btn {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* 高级搜索弹窗样式 */
#advancedSearchModal .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}

#advancedSearchResults {
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 1rem;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        max-height: 40vh;
    }
    
    .map-container {
        height: 60vh;
    }
    
    .sidebar.collapsed {
        width: 100%;
        height: 60px;
    }
    
    .sidebar.collapsed .sidebar-content {
        display: none;
    }
    
    #advancedSearchModal .modal-dialog {
        margin: 1rem;
    }
}

/* PC 端登录页 */
.login-body {
    --baole-purple: #414878;
    --baole-purple-rgb: 65, 72, 120;
    min-width: 1000px;
    background: #71a8e3;
    color: var(--baole-purple);
    font-family: "Microsoft YaHei", "Microsoft YaHei UI", sans-serif;
}

.login-body > .navbar {
    display: none;
}

.login-body .app-main {
    height: 100vh;
}

.login-body .auth-container {
    position: relative;
    min-height: 100vh;
    padding: 0;
    background: #FBFCFB;
}

.login-panel {
    position: relative;
    z-index: 2;
    width: 412px;
    margin-top: 102px;
}

.platform-title {
    position: absolute;
    top: 47px;
    left: 50%;
    width: max-content;
    margin: 0;
    color: var(--baole-purple);
    font-size: clamp(42px, 4vw, 50px);
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    transform: translateX(-50%);
    z-index: 2;
}

.login-bdr-logo {
    position: absolute;
    top: 30px;
    right: 28px;
    width: 165px;
    height: auto;
    z-index: 2;
}

.login-company-name {
    position: absolute;
    right: 18px;
    bottom: 24px;
    width: 420px;
    height: auto;
    z-index: 2;
}

.login-body .auth-box {
    max-width: none;
    padding: 40px 66px 49px;
    border-radius: 22px;
    border: 2px solid rgba(var(--baole-purple-rgb), 0.55);
    box-shadow:
        0 24px 48px rgba(var(--baole-purple-rgb), 0.34),
        0 10px 22px rgba(var(--baole-purple-rgb), 0.27),
        0 3px 7px rgba(var(--baole-purple-rgb), 0.24),
        inset 0 1px 0 rgba(255, 255, 255, 0.95);
    color: var(--baole-purple);
    font-size: 20px;
    transform: translateY(-4px);
}

.login-body .auth-header {
    display: block;
    margin-bottom: 42px;
    text-align: center;
}

.auth-heading h2 {
    margin: 0 0 2px;
    color: var(--baole-purple);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 5px;
    white-space: nowrap;
}

.auth-heading h2 i {
    color: #f0b52a;
    font-size: 25px;
}

.auth-heading p {
    margin: 0;
    color: var(--baole-purple);
    font-size: 20px;
}

.login-body .form-group {
    margin-bottom: 19px;
}

.login-body .form-group label {
    margin-bottom: 7px;
    color: var(--baole-purple);
    font-size: 20px;
    font-weight: 600;
}

.login-body .form-group label i {
    width: 14px;
    color: var(--baole-purple);
    text-align: center;
}

.login-body .form-control {
    height: 46px;
    padding: 0 12px;
    border-color: #dedede;
    border-radius: 5px;
    color: var(--baole-purple);
    font-family: "Microsoft YaHei", "Microsoft YaHei UI", sans-serif;
    font-size: 20px;
}

.login-body .form-control:focus {
    border-color: var(--baole-purple);
    box-shadow: 0 0 0 2px rgba(var(--baole-purple-rgb), 0.2);
}

.login-body .remember-group {
    margin: 0 0 20px;
}

.login-body .checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.login-body .checkbox-item input {
    width: 14px;
    height: 14px;
    margin: 0;
    accent-color: var(--baole-purple);
}

.login-body .btn-auth {
    height: 46px;
    padding: 0 12px;
    background: var(--baole-purple);
    border-radius: 6px;
    font-family: "Microsoft YaHei", "Microsoft YaHei UI", sans-serif;
    font-size: 20px;
    font-weight: 600;
}

.login-body .btn-auth:hover,
.login-body .btn-auth:focus {
    background: #353b66;
}

.login-circles {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 29%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.login-circle {
    position: absolute;
    display: block;
    border-radius: 50%;
    background: rgba(20, 87, 152, 0.68);
}

.login-circle.circle-top {
    top: 31%;
    right: -32px;
    width: 150px;
    height: 150px;
}

.login-circle.circle-middle {
    top: 55%;
    right: 118px;
    width: 100px;
    height: 100px;
}

.login-circle.circle-bottom {
    right: -40px;
    bottom: -142px;
    width: 270px;
    height: 270px;
}

.login-footer {
    position: absolute;
    right: 35px;
    bottom: 14px;
    left: 35px;
    display: flex;
    justify-content: space-between;
    color: #145798;
    font-size: 11px;
    font-weight: 600;
}

@media (max-height: 650px) {
    .login-panel {
        margin-top: 82px;
        transform: scale(0.9);
    }
}
