/* 联合产业招商管理系统 - 统一样式表 */
:root {
    --primary-color: #164392;
    --primary-hover: #0d6efd;
    --bg-color: #f4f6f9;
    --card-bg: #ffffff;
    --text-primary: #333333;
    --text-secondary: #6c757d;
    --border-color: #dee2e6;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 8px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.15);
    --radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
}

/* 登录页面样式 */
.login-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 20px;
}

.login-logo-area {
    margin-bottom: 0px;
    text-align: center;
}

.login-logo-group {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.login-logo-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    position: relative;
}

/* Logo容器，确保圆形显示 */
.login-logo-wrapper {
    position: relative;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12), 
                0 2px 8px rgba(0, 0, 0, 0.08),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.login-logo-wrapper:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.15), 
                0 4px 12px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.login-logo-item img {
    
}

.login-logo-circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    border: 2px solid rgba(255, 255, 255, 0.95);
    background: #ffffff;
    display: block;
    /* 确保图片完全填充圆形区域，不会出现方形或长方形 */
    min-width: 100%;
    min-height: 100%;
}

.login-logo-item .logo-text {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-top: 4px;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.login-box {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 40px;
    width: 100%;
    max-width: 420px;
}

.login-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(22, 67, 146, 0.1);
}

.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 18px;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: var(--primary-color);
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.checkbox-group label {
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
}

.captcha-group {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.captcha-group .form-control {
    flex: 1;
}

.captcha-img {
    height: 38px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    cursor: pointer;
    padding: 2px;
    background: #f8f9fa;
}

.btn {
    display: inline-block;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
    width: 100%;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary:active {
    transform: translateY(0);
}

/* 主工作台样式 */
.navbar {
    background-color: var(--card-bg);
    box-shadow: var(--shadow-sm);
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
}

.navbar-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.navbar-btn {
    padding: 6px 16px;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
    display: inline-block!important;
}

/* 用户菜单样式 */
.user-menu-wrapper {
    position: relative;
}

.user-menu-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 4px 8px 4px 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.user-menu-trigger:hover {
    background-color: #f8f9fa;
    border-color: var(--primary-color);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background-color: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.user-avatar-large {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
}

.user-menu-arrow {
    font-size: 10px;
    color: var(--text-secondary);
    transition: transform 0.2s;
}

.user-menu-trigger.active .user-menu-arrow {
    transform: rotate(180deg);
}

.user-menu-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    z-index: 1001;
    overflow: hidden;
}

.user-menu-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.user-menu-avatar {
    flex-shrink: 0;
}

.user-menu-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.user-menu-avatar .user-avatar-large {
    width: 48px;
    height: 48px;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.user-menu-info {
    flex: 1;
    min-width: 0;
}

.user-menu-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-menu-dept {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-menu-divider {
    height: 1px;
    background: var(--border-color);
    margin: 8px 0;
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    transition: background-color 0.2s;
    cursor: pointer;
}

.user-menu-item:hover {
    background-color: #f8f9fa;
}

.user-menu-item.user-menu-logout {
    color: #dc3545;
}

.user-menu-item.user-menu-logout:hover {
    background-color: #fff5f5;
    color: #c82333;
}

.user-menu-icon {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* 个人资料页面样式 */
.profile-section {
    max-width: 900px;
    margin: 0 auto;
}

.profile-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.profile-header {
    padding: 32px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid var(--border-color);
}

.profile-avatar-section {
    display: flex;
    align-items: center;
    gap: 24px;
}

.profile-avatar {
    flex-shrink: 0;
}

.profile-avatar img,
.profile-avatar .user-avatar-large {
    width: 80px;
    height: 80px;
    border: 3px solid #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.profile-info h2 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.profile-meta {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.profile-role {
    display: inline-block;
    padding: 4px 12px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin-top: 8px;
}

.profile-content {
    padding: 32px;
}

.form-section {
    margin-bottom: 32px;
}

.form-section:last-of-type {
    margin-bottom: 0;
}

.form-section-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

/* 分页组件样式 */
.pagination-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 20px;
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-top: 24px;
}

.pagination-info {
    font-size: 14px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.pagination-size-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
}

.pagination-size-selector label {
    margin: 0;
    font-weight: normal;
}

.pagination-size-select {
    padding: 6px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.2s;
}

.pagination-size-select:hover {
    border-color: var(--primary-color);
}

.pagination-size-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(22, 67, 146, 0.1);
}

.pagination-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background: #fff;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f8f9fa;
}

.pagination-btn.pagination-active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    font-weight: 600;
}

.pagination-btn.pagination-active:hover {
    background: var(--primary-hover);
}

.pagination-ellipsis {
    padding: 0 8px;
    color: var(--text-secondary);
    font-size: 14px;
    user-select: none;
}

.pagination-jump {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-left: 8px;
}

.pagination-jump-input {
    width: 60px;
    height: 36px;
    padding: 0 8px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
    transition: all 0.2s;
}

.pagination-jump-input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(22, 67, 146, 0.1);
}

.pagination-jump-btn {
    min-width: auto;
    padding: 0 16px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 24px;
}

.filter-section {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.filter-row {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-item {
    flex: 1;
    min-width: 150px;
}

.filter-item label {
    display: block;
    margin-bottom: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.filter-actions {
    display: flex;
    gap: 10px;
    white-space: nowrap;
}

.btn-secondary {
    background-color: #6c757d;
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-success {
    background-color: #28a745;
    color: #ffffff;
}

.btn-success:hover {
    background-color: #218838;
}

/* 项目卡片样式 */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 20px;
}

.project-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    transition: all 0.3s;
    cursor: pointer;
}

.project-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
    flex: 1;
}

.card-actions {
    display: flex;
    gap: 8px;
}

.btn-icon {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 16px;
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.2s;
}

.btn-icon:hover {
    background-color: #f8f9fa;
    color: var(--primary-color);
}

.card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.tag-level-a {
    background-color: #e3f2fd;
    color: #1976d2;
}

.tag-level-b {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.tag-level-c {
    background-color: #fff3e0;
    color: #e65100;
}

.tag-level-d {
    background-color: #fce4ec;
    color: #c2185b;
}

.tag-location {
    background-color: #fff9c4;
    color: #f57f17;
}

.tag-invest {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.tag-push {
    background-color: #e1bee7;
    color: #6a1b9a;
}

.tag-carrier {
    background-color: #ffccbc;
    color: #bf360c;
}

/* A级标签（蓝色椭圆） */
.level-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #ffffff;
}

.level-badge-a {
    background-color: #42a5f5;
}

/* 联系方式红色边框 */
.contact-info {
    border: 2px solid #dc3545;
    border-radius: 4px;
    padding: 12px;
    margin-top: 12px;
    background-color: #fff5f5;
}

/* 折叠区域样式 */
.collapsible-section {
    margin-bottom: 12px;
}

.collapsible-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 8px 0;
    user-select: none;
}

.collapsible-header:hover {
    background-color: #f8f9fa;
    border-radius: 4px;
}

.collapsible-toggle {
    font-size: 12px;
    color: var(--text-secondary);
    transition: transform 0.3s;
}

.collapsible-content {
    padding-left: 16px;
    margin-top: 8px;
}

/* 摘要行样式 */
.summary-row {
    display: flex;
    gap: 20px;
    margin-bottom: 8px;
    font-size: 13px;
}

.summary-row > div {
    flex: 1;
}

.card-summary {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.card-details {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.card-details.expanded {
    max-height: 1000px;
    transition: max-height 0.5s ease-in;
}

.detail-item {
    margin-bottom: 10px;
    font-size: 13px;
}

.detail-label {
    font-weight: 500;
    color: var(--text-primary);
    margin-right: 8px;
}

.detail-value {
    color: var(--text-secondary);
}

.card-footer {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: var(--text-secondary);
}

/* 新建按钮 */
.fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s;
    z-index: 999;
}

.fab:hover {
    background-color: var(--primary-hover);
    transform: scale(1.1);
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    padding: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.modal-content .modal-header {
    padding: 24px 30px;
    margin-bottom: 0;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
    background: var(--card-bg);
    position: sticky;
    top: 0;
    z-index: 10;
}

.modal-content form {
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    min-height: 0;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.modal-close:hover {
    background-color: #f8f9fa;
    color: var(--text-primary);
}

.form-body {
    padding: 30px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    min-height: 0;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.form-group {
    position: relative;
}

.form-group-full {
    width: 100%;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.required-mark {
    color: #dc3545;
    font-weight: 600;
    margin-left: 2px;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
    background-color: #fff;
    color: var(--text-primary);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(22, 67, 146, 0.1);
}

.form-control:hover:not(:disabled) {
    border-color: #adb5bd;
}

.form-control:disabled {
    background-color: #f8f9fa;
    cursor: not-allowed;
    opacity: 0.6;
}

.form-control::placeholder {
    color: #adb5bd;
}

select.form-control {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 36px;
}

.form-help {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.form-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 0;
    padding: 24px 30px;
    border-top: 1px solid var(--border-color);
    flex-shrink: 0;
    background: var(--card-bg);
    position: sticky;
    bottom: 0;
    z-index: 10;
}

.form-footer .btn {
    min-width: 100px;
    padding: 10px 24px;
    font-weight: 500;
}

/* 表单验证错误样式 */
.form-control:invalid:not(:placeholder-shown) {
    border-color: #dc3545;
}

.form-control:invalid:not(:placeholder-shown):focus {
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

/* 表单组间距优化 */
.form-body .form-row:last-child {
    margin-bottom: 0;
}

.form-body .form-group:last-child {
    margin-bottom: 0;
}

/* 确保表单滚动区域正确显示 */
.modal-content form {
    min-height: 0;
}

.modal-content .form-body {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 #f7fafc;
}

.modal-content .form-body::-webkit-scrollbar {
    width: 8px;
}

.modal-content .form-body::-webkit-scrollbar-track {
    background: #f7fafc;
    border-radius: 4px;
}

.modal-content .form-body::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}

.modal-content .form-body::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

/* 模态框内容滚动优化 */
.modal-content {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e0 #f7fafc;
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: #f7fafc;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: #cbd5e0;
    border-radius: 4px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: #a0aec0;
}

.help-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: #ffffff;
    font-size: 11px;
    text-align: center;
    line-height: 16px;
    cursor: help;
    margin-left: 4px;
}

.tooltip {
    position: absolute;
    background-color: #333;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    max-width: 300px;
    z-index: 3000;
    display: none;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .login-logo-group {
        flex-direction: column;
        gap: 30px;
    }
    
    .login-logo-wrapper {
        width: 100px;
        height: 100px;
        padding: 6px;
    }
    
    .login-logo-item .logo-text {
        font-size: 13px;
    }
    
    .login-box {
        padding: 24px;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-row {
        flex-direction: column;
    }
    
    .filter-item {
        width: 100%;
        min-width: 100%;
    }
    
    .filter-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .filter-actions .btn {
        width: 100%;
    }
    
    .navbar {
        padding: 8px 12px;
        flex-wrap: nowrap;
    }
    
    .navbar-brand {
        font-size: 14px;
        flex: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .navbar-user {
        flex-shrink: 0;
        gap: 8px;
    }
    
    .navbar-btn {
        font-size: 12px;
        padding: 4px 10px;
        display: none;
    }
    
    /* 手机端只显示第一个按钮（用户管理或日志查看） */
    .navbar-btn:nth-of-type(1) {
        display: inline-block;
    }
    
    .navbar-btn:nth-of-type(2),
    .navbar-btn:nth-of-type(3) {
        display: none;
    }
    
    .dict-items-grid {
        grid-template-columns: 1fr;
    }
    
    .dict-item-card {
        padding: 12px;
    }
    
    .user-menu-trigger {
        padding: 3px 6px 3px 3px;
    }
    
    .user-menu-arrow {
        display: none;
    }
    
    .user-menu-dropdown {
        min-width: 180px;
        right: 0;
    }
    
    .user-menu-header {
        padding: 12px;
    }
    
    .user-menu-avatar img,
    .user-menu-avatar .user-avatar-large {
        width: 40px;
        height: 40px;
    }
    
    .user-menu-name {
        font-size: 14px;
    }
    
    .user-menu-dept {
        font-size: 12px;
    }
    
    .user-menu-item {
        padding: 10px 12px;
        font-size: 13px;
    }
    
    .container {
        padding: 12px;
    }
    
    .page-header {
        align-items: flex-start;
    }
    
    .page-header .btn {
        width: auto!important;
    }
    
    .page-title {
        font-size: 18px !important;
        flex:1!important;
    }
    
    .filter-section {
        padding: 12px;
    }
    
    .project-card {
        padding: 16px;
    }
    
    .card-header {
        flex-wrap: wrap;
    }
    
    .card-actions {
        margin-top: 8px;
    }
    
    .modal-content {
        width: 95%;
        padding: 20px;
        max-height: 95vh;
    }
    
    .form-row {
        flex-direction: column;
        gap: 16px;
        margin-bottom: 16px;
    }
    
    .form-row .form-group {
        width: 100%;
    }
    
    .form-body {
        padding: 20px 16px;
    }
    
    .form-footer {
        flex-direction: column-reverse;
        padding: 20px 16px;
    }
    
    .form-footer .btn {
        width: 100%;
    }
    
    .modal-content .modal-header {
        padding: 20px 16px;
    }
    
    table {
        font-size: 12px;
    }
    
    table th,
    table td {
        padding: 8px 4px;
    }
    
    .users-table th,
    .users-table td {
        padding: 8px 6px;
        font-size: 12px;
    }
    
    /* 手机端日志表格隐藏，显示卡片 */
    .logs-table-wrapper {
        display: none;
    }
    
    .logs-cards {
        display: block;
    }
    
    .log-card {
        padding: 12px;
    }
    
    .log-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .log-card-time {
        font-size: 12px;
    }
    
    .log-card-action {
        font-size: 11px;
        padding: 3px 8px;
    }
    
    .log-card-item {
        font-size: 13px;
        flex-direction: column;
        gap: 4px;
    }
    
    .log-label {
        min-width: auto;
        font-size: 12px;
        color: var(--text-secondary);
    }
    
    .log-card-item span:not(.log-label) {
        font-size: 13px;
    }
    
    .fab {
        width: 48px;
        height: 48px;
        bottom: 20px;
        right: 20px;
        font-size: 20px;
    }
}

/* 手机端特殊优化 */
@media (max-width: 480px) {
    .login-logo-wrapper {
        width: 80px;
        height: 80px;
        padding: 5px;
    }
    
    .login-logo-item .logo-text {
        font-size: 12px;
    }
    
    .navbar-brand {
        font-size: 12px;
    }
    
    .user-info {
        font-size: 11px;
    }
    
    .container {
        padding: 8px;
    }
    
    .filter-section {
        padding: 8px;
    }
    
    .page-title {
        font-size: 16px !important;
        margin-bottom: 12px !important;
    }
    
    .project-card {
        padding: 12px;
    }
    
    .card-title {
        font-size: 14px;
    }
    
    .modal-content {
        padding: 16px;
    }
    
    .modal-title {
        font-size: 18px;
    }
    
    .profile-header {
        padding: 16px 12px;
    }
    
    .profile-avatar img,
    .profile-avatar .user-avatar-large {
        width: 50px;
        height: 50px;
    }
    
    .profile-info h2 {
        font-size: 18px;
    }
    
    .profile-content {
        padding: 16px 12px;
    }
    
    .form-section-title {
        font-size: 15px;
    }
    
    table {
        font-size: 11px;
    }
    
    table th,
    table td {
        padding: 6px 2px;
    }
    
    .users-table th,
    .users-table td {
        padding: 6px 4px;
        font-size: 11px;
    }
    
    /* 隐藏部分列在手机上 */
    table th:nth-child(3),
    table td:nth-child(3) {
        display: none;
    }
    
    .users-table th:nth-child(3),
    .users-table td:nth-child(3) {
        display: none;
    }
    
    .profile-header {
        padding: 20px 16px;
    }
    
    .profile-avatar-section {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .profile-avatar img,
    .profile-avatar .user-avatar-large {
        width: 60px;
        height: 60px;
    }
    
    .profile-info h2 {
        font-size: 20px;
    }
    
    .profile-content {
        padding: 20px 16px;
    }
    
    .form-section {
        margin-bottom: 24px;
    }
    
    .form-section-title {
        font-size: 16px;
    }
    
    .pagination-wrapper {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        gap: 12px;
    }
    
    .pagination-info {
        text-align: center;
    }
    
    .pagination-size-selector {
        justify-content: center;
    }
    
    .pagination-buttons {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .pagination-jump {
        margin-left: 0;
        justify-content: center;
        width: 100%;
    }
}

/* 加载动画 */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-secondary);
}

.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 自定义提示框样式 */
.toast-container {
    position: fixed;
    top: 80px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.toast {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 16px 20px;
    min-width: 300px;
    max-width: 500px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    animation: slideInRight 0.3s ease-out;
    border-left: 4px solid var(--primary-color);
}

.toast.success {
    border-left-color: #28a745;
}

.toast.error {
    border-left-color: #dc3545;
}

.toast.warning {
    border-left-color: #ffc107;
}

.toast.info {
    border-left-color: var(--primary-color);
}

.toast-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.toast.success .toast-icon {
    color: #28a745;
}

.toast.error .toast-icon {
    color: #dc3545;
}

.toast.warning .toast-icon {
    color: #ffc107;
}

.toast.info .toast-icon {
    color: var(--primary-color);
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.toast-message {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    white-space: pre-wrap;
}

.toast-close {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.toast-close:hover {
    opacity: 1;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.toast.hiding {
    animation: slideOutRight 0.3s ease-out forwards;
}

/* 确认对话框样式 */
.confirm-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s;
}

.confirm-dialog {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    padding: 24px;
    min-width: 400px;
    max-width: 500px;
    animation: scaleIn 0.2s;
}

.confirm-dialog-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.confirm-dialog-message {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
    white-space: pre-wrap;
}

.confirm-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.confirm-dialog-input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 14px;
    margin-bottom: 16px;
    font-family: inherit;
}

.confirm-dialog-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* 用户管理页面样式 */
.users-table-wrapper {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.users-table {
    width: 100%;
    border-collapse: collapse;
}

.users-table thead {
    background: #f8f9fa;
}

.users-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
}

.users-table th.text-right {
    text-align: right;
}

.users-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-primary);
}

.users-table td.text-right {
    text-align: right;
}

.users-table tbody tr:hover {
    background-color: #f8f9fa;
}

.users-table tbody tr:last-child td {
    border-bottom: none;
}

.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-enabled {
    background-color: #d4edda;
    color: #155724;
}

.status-disabled {
    background-color: #f8d7da;
    color: #721c24;
}

.btn-icon-danger {
    color: #dc3545 !important;
}

.btn-icon-danger:hover {
    background-color: #f8d7da !important;
    color: #c82333 !important;
}

/* 日志表格样式 */
.logs-table-wrapper {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    display: block;
}

.logs-table {
    width: 100%;
    border-collapse: collapse;
}

.logs-table thead {
    background: #f8f9fa;
}

.logs-table th {
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    font-size: 14px;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
}

.logs-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-primary);
}

.logs-table tbody tr:hover {
    background-color: #f8f9fa;
}

.logs-table tbody tr:last-child td {
    border-bottom: none;
}

.log-col-id {
    white-space: nowrap;
}

.log-detail {
    font-size: 12px;
    color: var(--text-secondary);
    max-width: 400px;
    word-break: break-word;
}

/* 日志卡片样式（手机端） */
.logs-cards {
    display: none;
}

.log-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 16px;
    margin-bottom: 12px;
}

.log-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-color);
}

.log-card-time {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.log-card-action {
    display: inline-block;
    padding: 4px 10px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.log-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.log-card-item {
    display: flex;
    font-size: 14px;
    line-height: 1.6;
}

.log-label {
    font-weight: 500;
    color: var(--text-primary);
    min-width: 80px;
    flex-shrink: 0;
}

.log-card-item span:not(.log-label) {
    color: var(--text-secondary);
    flex: 1;
    word-break: break-word;
}

.log-card-detail {
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid var(--border-color);
}

.log-card-detail .log-label {
    min-width: 60px;
}

/* 字典管理样式 */
.dict-group {
    background: var(--card-bg);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: 20px;
}

.dict-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.dict-item-card {
    background: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 16px;
    transition: all 0.2s;
}

.dict-item-card:hover {
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
}

.dict-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.dict-item-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.dict-item-body {
    margin-bottom: 12px;
}

.dict-item-meta {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.dict-item-meta span {
    font-weight: 500;
    color: var(--text-primary);
    margin-right: 4px;
}

.dict-item-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    gap: 16px;
}

.page-title {
    font-size: 24px;
    color: var(--primary-color);
    margin: 0;
    font-weight: 600;
    flex:1;
}
.page-header .btn {
    flex:0;
    width: auto!important;
    white-space: nowrap;
}

